.featured-library {
  padding: 32px 0 20px;
}

.featured-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.featured-heading h2 {
  margin: 0;
}

.featured-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

#featuredGameStatus {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(104, 208, 223, .24);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(104, 208, 223, .045);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.featured-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featured-game-grid .game-card {
  min-width: 0;
  border-color: rgba(104, 208, 223, .2);
  background:
    radial-gradient(circle at 80% 0, rgba(104, 208, 223, .07), transparent 38%),
    rgba(7, 21, 28, .9);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .23);
}

.featured-game-grid .game-card::after {
  content: "FEATURED";
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #06151b;
  background: linear-gradient(135deg, #dffbff, #74d5e2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  font-size: .55rem;
  font-weight: 950;
  letter-spacing: .1em;
}

.featured-game-grid .card-media {
  min-height: 220px;
}

.featured-game-grid .card-body {
  min-height: 220px;
}

.clicker-preview,
.launcher-preview,
.flappy-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.clicker-preview {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(104, 208, 223, .24), transparent 27%),
    radial-gradient(circle at 72% 15%, rgba(139, 207, 155, .11), transparent 30%),
    linear-gradient(145deg, #0b2b37, #041016);
}

.clicker-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .62) 0 1px, transparent 1.3px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.clicker-preview img {
  position: relative;
  z-index: 2;
  width: 40%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .38)) drop-shadow(0 0 24px rgba(104, 208, 223, .22));
  animation: clickerCoreFloat 2.8s ease-in-out infinite;
}

.clicker-orbit {
  position: absolute;
  z-index: 1;
  width: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(104, 208, 223, .34);
  border-radius: 50%;
  animation: previewOrbit 7s linear infinite;
}

.clicker-orbit::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 18%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 15px rgba(242, 199, 92, .58);
}

.clicker-orbit.orbit-two {
  width: 67%;
  border-color: rgba(139, 207, 155, .18);
  animation-direction: reverse;
  animation-duration: 10s;
}

.clicker-gain {
  position: absolute;
  z-index: 3;
  color: #e7fcff;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-shadow: 0 3px 11px rgba(0, 0, 0, .6);
  animation: previewGain 2.4s ease-out infinite;
}

.clicker-gain.one { left: 20%; top: 58%; }
.clicker-gain.two { right: 18%; top: 29%; animation-delay: .7s; color: var(--mint); }
.clicker-gain.three { right: 25%; bottom: 19%; animation-delay: 1.35s; color: var(--gold); }

.launcher-preview {
  background:
    radial-gradient(circle at 75% 23%, rgba(242, 199, 92, .18), transparent 12%),
    linear-gradient(180deg, #0a3445 0%, #0a2430 68%, #081319 68%);
}

.launcher-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 32%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .6) 0 1px, transparent 1.3px);
  background-size: 42px 42px;
  opacity: .42;
}

.launcher-ground {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 33%;
  border-top: 2px solid rgba(139, 207, 155, .48);
  background: linear-gradient(180deg, #11312d, #06110f);
}

.launcher-cannon {
  position: absolute;
  z-index: 4;
  left: 13%;
  bottom: 21%;
  width: 68px;
  height: 22px;
  border-radius: 999px 10px 10px 999px;
  background: linear-gradient(180deg, #91dfe8, #397f8b);
  box-shadow: 0 8px 17px rgba(0, 0, 0, .38);
  transform: rotate(-38deg);
  transform-origin: 16% 50%;
}

.launcher-cannon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 30px;
  height: 30px;
  border: 6px solid #245d67;
  border-radius: 50%;
  background: #07171d;
}

.launcher-preview img {
  position: absolute;
  z-index: 5;
  left: 46%;
  top: 27%;
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 13px 18px rgba(0, 0, 0, .42)) drop-shadow(0 0 12px rgba(104, 208, 223, .2));
  animation: launcherEarthArc 3.1s ease-in-out infinite;
}

.launcher-trail {
  position: absolute;
  z-index: 3;
  left: 29%;
  top: 55%;
  width: 37%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(242, 199, 92, .85), transparent);
  box-shadow: 0 0 12px rgba(242, 199, 92, .45);
  transform: rotate(-24deg);
}

.launcher-ring {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 44px;
  border: 4px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 17px rgba(242, 199, 92, .32);
  animation: launcherRing 1.45s ease-in-out infinite alternate;
}

.launcher-ring.one { right: 18%; top: 22%; }
.launcher-ring.two { right: 9%; top: 52%; transform: scale(.72); animation-delay: .45s; }

.flappy-preview {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, #0c3a4c, #071a23);
  background-size: 38px 100%, 100% 100%;
}

.flappy-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(104, 208, 223, .16), transparent 38%);
}

.flappy-gate {
  position: absolute;
  z-index: 2;
  right: 14%;
  width: 58px;
  border: 2px solid rgba(139, 207, 155, .48);
  background: linear-gradient(90deg, #174a44, #28685f 55%, #153c38);
  box-shadow: inset 5px 0 rgba(255, 255, 255, .035), 0 0 20px rgba(139, 207, 155, .13);
}

.flappy-gate::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 68px;
  height: 18px;
  border: 2px solid rgba(139, 207, 155, .55);
  border-radius: 7px;
  background: #28685f;
}

.flappy-gate.top { top: 0; height: 29%; border-top: 0; }
.flappy-gate.top::after { bottom: -10px; }
.flappy-gate.bottom { bottom: 0; height: 35%; border-bottom: 0; }
.flappy-gate.bottom::after { top: -10px; }

.flappy-cloud {
  position: absolute;
  z-index: 4;
  left: 25%;
  top: 45%;
  width: 74px;
  height: 36px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #bdebf1);
  filter: drop-shadow(0 9px 11px rgba(0, 0, 0, .3)) drop-shadow(0 0 13px rgba(104, 208, 223, .28));
  animation: flappyCloudFlight 2.2s ease-in-out infinite;
}

.flappy-cloud i {
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: inherit;
}

.flappy-cloud i:nth-child(1) { left: 8px; width: 34px; height: 34px; }
.flappy-cloud i:nth-child(2) { left: 28px; width: 44px; height: 44px; }
.flappy-cloud i:nth-child(3) { right: 4px; width: 29px; height: 29px; }
.flappy-cloud b,
.flappy-cloud b::after {
  position: absolute;
  z-index: 2;
  width: 5px;
  height: 7px;
  border-radius: 50%;
  background: #12333e;
}
.flappy-cloud b { left: 44px; top: 14px; }
.flappy-cloud b::after { content: ""; left: 13px; }

.flappy-star {
  position: absolute;
  z-index: 4;
  right: 30%;
  top: 46%;
  color: var(--gold);
  font-size: 1.6rem;
  text-shadow: 0 0 14px rgba(242, 199, 92, .6);
  animation: flappyStar 1.2s ease-in-out infinite alternate;
}

.flappy-wind {
  position: absolute;
  z-index: 1;
  left: 8%;
  width: 20%;
  height: 2px;
  border-radius: 999px;
  background: rgba(223, 251, 255, .22);
}
.flappy-wind.one { top: 28%; }
.flappy-wind.two { bottom: 24%; left: 38%; width: 15%; }

@keyframes previewOrbit { to { transform: rotate(360deg); } }
@keyframes clickerCoreFloat { 50% { transform: translateY(-7px) scale(1.045); } }
@keyframes previewGain { 0% { opacity: 0; transform: translateY(12px) scale(.84); } 25%, 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-27px) scale(1.08); } }
@keyframes launcherEarthArc { 0%, 100% { transform: translate(-42px, 27px) rotate(-22deg) scale(.78); } 50% { transform: translate(36px, -24px) rotate(155deg) scale(1); } }
@keyframes launcherRing { to { filter: brightness(1.35); opacity: .72; } }
@keyframes flappyCloudFlight { 0%, 100% { transform: translateY(18px) rotate(5deg); } 50% { transform: translateY(-23px) rotate(-7deg); } }
@keyframes flappyStar { to { transform: rotate(15deg) scale(1.17); } }

@media (max-width: 980px) {
  .featured-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-game-grid .game-card:only-child,
  .featured-game-grid .game-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); }
  .featured-game-grid .game-card:only-child .card-media,
  .featured-game-grid .game-card:last-child:nth-child(odd) .card-media { aspect-ratio: auto; border-right: 1px solid var(--line); border-bottom: 0; }
  .featured-game-grid .game-card:only-child .card-body,
  .featured-game-grid .game-card:last-child:nth-child(odd) .card-body { min-height: 270px; }
}

@media (max-width: 680px) {
  .featured-library { padding-top: 22px; }
  .featured-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .featured-game-grid { grid-template-columns: 1fr; }
  .featured-game-grid .game-card:only-child,
  .featured-game-grid .game-card:last-child:nth-child(odd) { display: block; grid-column: auto; }
  .featured-game-grid .game-card:only-child .card-media,
  .featured-game-grid .game-card:last-child:nth-child(odd) .card-media { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .featured-game-grid .game-card .card-media { min-height: 0; }
  .featured-game-grid .game-card .card-body { min-height: 0; }
  .launcher-cannon { left: 11%; }
}

@media (prefers-reduced-motion: reduce) {
  .clicker-preview *,
  .launcher-preview *,
  .flappy-preview * { animation: none !important; }
}
