/* ==========================================================================
   Bubble Shooter: Pop Magic — landing page
   Colours, type and component recipes are taken from the game itself:
   lib/core/theme/valley_theme.dart (Sunny Valley tokens), valley_kit.dart
   (ValleyButton / ValleyIconDisc), splash_chrome.dart (wordmark, GlossyBubble)
   and the Play Store art in Play_store_images/generated_playstore_assets_v1.
   ========================================================================== */

/* ---------- Fonts: the game's own bundled families ---------- */
@font-face {
  font-family: "Titan One";
  src: url("../fonts/TitanOne-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Night-sky canvas of the store art */
  --navy: #0A1852;
  --navy-deep: #060A2B;
  --navy-ink: #0E1A46;

  /* Sunny Valley chrome */
  --panel-top: #3C74E0;
  --panel-bottom: #2450AE;
  --panel-deep: #16306F;
  --panel-stroke: #9FC6FF;
  --card-top: #2F5FC8;
  --card-bottom: #1C3A8A;

  --ink: #FFFFFF;
  --ink-soft: #C5DBFF;
  --ink-card: #DCE8FF;
  --ink-dim: #8AA7DD;

  --gold-light: #FFF0A8;
  --gold: #FFD65C;
  --gold-mid: #E0A020;
  --gold-deep: #A96D0E;

  --pink-light: #FF9AD9;
  --pink: #FF3FAE;
  --pink-deep: #B81477;

  --keyline: #1B3E9B;
  --keyline-deep: #102765;

  --sky-top: #1F6FD8;
  --sky-mid: #5FB2F2;
  --sky-low: #AFE0FF;

  --font-display: "Titan One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1200px;
  --section-pad: clamp(64px, 8vw, 112px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Read by screen readers, never shown. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--gold);
  color: #3A2600;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 16, 60, 0.94);
  box-shadow: 0 1px 0 rgba(159, 198, 255, 0.16), 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
}

.brand__icon {
  width: 44px;
  height: 44px;
  flex: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-shadow: 0 2px 0 var(--keyline-deep), 0 3px 8px rgba(0, 0, 0, 0.35);
}

.brand__accent {
  color: var(--pink-light);
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-card);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(60, 116, 224, 0.3);
}

@media (max-width: 959px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 559px) {
  :root {
    --header-h: 64px;
  }

  .site-header__inner {
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand__icon {
    width: 38px;
    height: 38px;
  }

  .brand__name {
    display: flex;
    flex-direction: column;
    font-size: 0.84rem;
  }

  .site-header .play-btn--sm {
    padding-right: 12px;
  }

  .site-header .play-btn--sm .play-btn__big {
    font-size: 0.92rem;
  }
}

@media (max-width: 339px) {
  .brand__name {
    display: none;
  }
}

/* ---------- Buttons ---------- */

/* The store button: the game's pink PLAY cap with its gold rim and lip. */
.play-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 28px 8px 8px;
  border: 2.5px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink-light) 0%, var(--pink) 55%, var(--pink-deep) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 6px 0 var(--gold-deep),
    0 14px 26px -6px rgba(255, 63, 174, 0.55),
    0 20px 34px -14px rgba(4, 8, 36, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.play-btn::before {
  content: "";
  position: absolute;
  top: 9%;
  left: 24%;
  right: 12%;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 var(--gold-deep),
    0 18px 32px -6px rgba(255, 63, 174, 0.7),
    0 24px 40px -14px rgba(4, 8, 36, 0.75);
}

.play-btn:active {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 var(--gold-deep),
    0 8px 16px -8px rgba(255, 63, 174, 0.6);
}

.play-btn:focus-visible {
  outline-offset: 5px;
  border-radius: 999px;
}

.play-btn__logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 -3px 0 rgba(20, 30, 70, 0.08), 0 2px 5px rgba(120, 10, 70, 0.4);
}

.play-btn__logo svg {
  width: 22px;
  height: 24px;
  margin-left: 3px;
}

.play-btn__text {
  position: relative;
  display: flex;
  white-space: nowrap;
  flex-direction: column;
  text-align: left;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(122, 12, 76, 0.9),
    0 0 1px rgba(122, 12, 76, 0.9),
    0 2px 3px rgba(122, 12, 76, 0.6);
}

.play-btn__small {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.play-btn__big {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.3px;
}

.play-btn--sm {
  gap: 8px;
  min-height: 44px;
  padding: 4px 16px 4px 4px;
  border-width: 2px;
  box-shadow:
    0 4px 0 var(--gold-deep),
    0 8px 18px -6px rgba(255, 63, 174, 0.5);
}

.play-btn--sm::before {
  left: 30%;
}

.play-btn--sm .play-btn__logo {
  width: 34px;
  height: 34px;
}

.play-btn--sm .play-btn__logo svg {
  width: 16px;
  height: 18px;
  margin-left: 2px;
}

.play-btn--sm .play-btn__small {
  font-size: 0.56rem;
}

.play-btn--sm .play-btn__big {
  margin-top: 2px;
  font-size: 1.02rem;
}

.play-btn--lg {
  min-height: 76px;
  padding-right: 34px;
  gap: 14px;
}

.play-btn--lg .play-btn__logo {
  width: 56px;
  height: 56px;
}

.play-btn--lg .play-btn__logo svg {
  width: 26px;
  height: 28px;
}

.play-btn--lg .play-btn__small {
  font-size: 0.8rem;
}

.play-btn--lg .play-btn__big {
  font-size: 1.85rem;
}

/* A ValleyButton in the slate tone. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px 0 20px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 18%;
  right: 18%;
  height: 26%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn .icon {
  position: relative;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn span {
  position: relative;
  text-shadow: 0 1.5px 2px rgba(10, 24, 82, 0.75);
}

.btn--slate {
  border: 1.6px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bottom) 55%, var(--panel-deep) 100%);
  box-shadow: 0 5px 0 var(--panel-deep), 0 14px 26px -10px rgba(59, 123, 255, 0.55);
}

.btn--slate:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--panel-deep), 0 18px 30px -10px rgba(59, 123, 255, 0.7);
}

.btn--slate:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--panel-deep), 0 8px 16px -10px rgba(59, 123, 255, 0.6);
}

.btn:focus-visible {
  outline-offset: 5px;
  border-radius: 999px;
}

/* ValleyIconButton — the round glossy control with a gold rim. */
.round-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2.5px solid var(--gold);
  border-radius: 50%;
  background: linear-gradient(180deg, #7FC4FF 0%, #2E8BE6 55%, #14488F 100%);
  box-shadow: 0 4px 0 var(--gold-deep), 0 10px 20px -8px rgba(46, 139, 230, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.round-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  filter: drop-shadow(0 1.5px 0 rgba(20, 72, 143, 0.9));
}

.round-btn:hover {
  transform: translateY(-2px);
}

.round-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--gold-deep), 0 6px 12px -8px rgba(46, 139, 230, 0.7);
}

.round-btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.round-btn:focus-visible {
  outline-offset: 4px;
  border-radius: 50%;
}

/* ---------- Game pieces ---------- */

/* ValleyIconDisc: light→deep gradient, soft white rim, coloured bloom, gloss. */
.disc {
  --size: 48px;
  --t-light: #7FC4FF;
  --t-base: #2E8BE6;
  --t-deep: #14488F;
  --t-glow: rgba(127, 196, 255, 0.45);
  --t-icon: #fff;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--t-light) 0%, var(--t-base) 50%, var(--t-deep) 100%);
  box-shadow: 0 0 calc(var(--size) * 0.32) var(--t-glow);
}

.disc::before {
  content: "";
  position: absolute;
  top: 11%;
  left: 27%;
  width: 46%;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}

.disc svg {
  position: relative;
  width: 50%;
  height: 50%;
  fill: var(--t-icon);
}

.disc--red { --t-light: #FF9C7A; --t-base: #F0533F; --t-deep: #A82415; --t-glow: rgba(255, 156, 122, 0.45); }
.disc--purple { --t-light: #C98BF0; --t-base: #8B3BC4; --t-deep: #4E1580; --t-glow: rgba(201, 139, 240, 0.45); }
.disc--blue { --t-light: #7FC4FF; --t-base: #2E8BE6; --t-deep: #14488F; --t-glow: rgba(127, 196, 255, 0.45); }
.disc--green { --t-light: #8CE9A0; --t-base: #3FC75B; --t-deep: #1C7C36; --t-glow: rgba(140, 233, 160, 0.45); }
.disc--orange { --t-light: #FFC078; --t-base: #FF8A2B; --t-deep: #C1500A; --t-glow: rgba(255, 192, 120, 0.45); }
.disc--pink { --t-light: #FF9AD9; --t-base: #FF3FAE; --t-deep: #B81477; --t-glow: rgba(255, 154, 217, 0.45); }
.disc--gold { --t-light: #FFF0A8; --t-base: #FFD65C; --t-deep: #C58A12; --t-glow: rgba(255, 240, 168, 0.4); --t-icon: #6B4300; }

.disc--sm { --size: 40px; }
.disc--xs { --size: 28px; border-width: 1px; }

/* Level Start draws its boosters with a gold rim so they read as collectables. */
.disc--float {
  position: absolute;
  border: calc(var(--size) * 0.06) solid var(--gold);
  box-shadow:
    0 0 calc(var(--size) * 0.32) var(--t-glow),
    0 calc(var(--size) * 0.1) calc(var(--size) * 0.2) rgba(4, 10, 40, 0.45);
}

/* GlossyBubble: radial body, hot top-left sheen, rim light, coloured bloom. */
.bubble {
  --s: 48px;
  --hi: #FBC8C8;
  --lit: #F25656;
  --c: #F03B3B;
  --lo: #9E2727;
  --glow: rgba(240, 59, 59, 0.45);
  position: absolute;
  display: block;
  width: var(--s);
  height: var(--s);
  border: max(1px, calc(var(--s) * 0.035)) solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(92% 92% at 65% 71%, rgba(255, 255, 255, 0) 74%, rgba(255, 255, 255, 0.34) 100%),
    radial-gradient(95% 95% at 33% 29%, var(--hi) 0%, var(--lit) 30%, var(--c) 64%, var(--lo) 100%);
  box-shadow:
    0 0 calc(var(--s) * 0.34) calc(var(--s) * -0.04) var(--glow),
    0 calc(var(--s) * 0.08) calc(var(--s) * 0.16) rgba(10, 19, 48, 0.24);
}

.bubble::before {
  content: "";
  position: absolute;
  left: 14%;
  top: 11%;
  width: 36%;
  height: 24%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15));
  transform: rotate(-28.6deg);
}

.bubble::after {
  content: "";
  position: absolute;
  right: 20%;
  bottom: 20%;
  width: 10%;
  height: 10%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.b-red { --hi: #FBC8C8; --lit: #F25656; --c: #F03B3B; --lo: #9E2727; --glow: rgba(240, 59, 59, 0.45); }
.b-blue { --hi: #C1D0F6; --lit: #426FE4; --c: #2358E0; --lo: #173A94; --glow: rgba(35, 88, 224, 0.45); }
.b-green { --hi: #C9EFD1; --lit: #5ACE73; --c: #3FC65C; --lo: #2A833D; --glow: rgba(63, 198, 92, 0.45); }
.b-yellow { --hi: #FFEEC4; --lit: #FFCC4B; --c: #FFC42E; --lo: #A8811E; --glow: rgba(255, 196, 46, 0.45); }
.b-purple { --hi: #E3CFFB; --lit: #A96CF2; --c: #9B54F0; --lo: #66379E; --glow: rgba(155, 84, 240, 0.45); }
.b-pink { --hi: #FFD2EB; --lit: #FF75C0; --c: #FF5FB6; --lo: #A83F78; --glow: rgba(255, 95, 182, 0.45); }
.b-orange { --hi: #FFDEC4; --lit: #FF9A49; --c: #FF8A2B; --lo: #A85B1C; --glow: rgba(255, 138, 43, 0.45); }
.b-cyan { --hi: #BDEEF2; --lit: #35CCD6; --c: #14C4CF; --lo: #0D8189; --glow: rgba(20, 196, 207, 0.45); }

.coin,
.sparkle {
  position: absolute;
  display: block;
  width: var(--s);
  height: var(--s);
  overflow: visible;
}

.coin {
  filter: drop-shadow(0 4px 6px rgba(60, 30, 0, 0.35));
}

.sparkle {
  fill: #fff;
}

/* Phone frame around a real 1080×2412 screenshot. Margins in % resolve
   against the phone's own width, so the bezel scales with it. */
.phone {
  position: relative;
  border-radius: 14% / 6.52%;
  background: linear-gradient(160deg, #3A4668 0%, #121833 28%, #070A18 70%, #2A3352 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.2),
    inset 0 0 0 4px #04071A,
    0 30px 60px -22px rgba(2, 6, 28, 0.8),
    0 12px 26px -12px rgba(2, 6, 28, 0.55);
}

.phone::after {
  content: "";
  position: absolute;
  right: -1.3%;
  top: 21%;
  width: 1.6%;
  height: 8%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #1B2340, #3A4668);
}

.phone img {
  display: block;
  width: 93.2%;
  height: auto;
  margin: 3.4%;
  border-radius: 11.4% / 5.1%;
  background: #1F6FD8;
}

/* ---------- Motion ---------- */
.float {
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.float--alt {
  animation-name: float-alt;
  animation-duration: 7.5s;
}

.float--slow {
  animation-duration: 8.5s;
}

.twinkle {
  animation: twinkle 3.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes float-alt {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 5px -10px; rotate: 6deg; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; scale: 0.6; }
  50% { opacity: 1; scale: 1; }
}

@keyframes spin {
  to { rotate: 360deg; }
}

@keyframes rise {
  from { opacity: 0; translate: 0 26px; }
}

@keyframes pop-in {
  from { scale: 0.9; }
  60% { scale: 1.02; }
}

@keyframes phone-in {
  from { opacity: 0; translate: 0 60px; }
}

/* No opacity here: the front phone is the largest paint above the fold. */
@keyframes phone-rise {
  from { translate: 0 48px; }
}

[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
}

.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Shared section chrome ---------- */
.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-pad);
  overflow-x: clip;
}

.section__bloom {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.section__bloom--indigo {
  background:
    radial-gradient(55% 45% at 18% 30%, rgba(93, 59, 181, 0.45), transparent 70%),
    radial-gradient(50% 45% at 85% 70%, rgba(44, 37, 124, 0.7), transparent 70%);
}

.section__bloom--purple {
  background:
    radial-gradient(60% 55% at 50% 48%, rgba(81, 31, 164, 0.62), transparent 72%),
    radial-gradient(35% 30% at 85% 60%, rgba(154, 66, 208, 0.28), transparent 70%);
}

.section__bloom--teal {
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(19, 100, 124, 0.6), transparent 72%),
    radial-gradient(40% 35% at 18% 70%, rgba(57, 168, 93, 0.3), transparent 70%);
}

.section__bloom--blue {
  background:
    radial-gradient(65% 55% at 50% 55%, rgba(45, 84, 170, 0.6), transparent 72%),
    radial-gradient(40% 40% at 90% 20%, rgba(61, 132, 221, 0.25), transparent 70%);
}

.section-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* The gold plaque (ValleyBanner / ValleyTone.gold). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 16px 7px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-mid) 100%);
  box-shadow: 0 3px 0 var(--gold-deep), 0 10px 22px -8px rgba(255, 214, 92, 0.55);
  color: #5A3B00;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.eyebrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Store-art headline: Titan One capitals on a heavy blue keyline. */
.section-title,
.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.1rem + 3.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  filter:
    drop-shadow(0 -2px 0 var(--keyline))
    drop-shadow(0 2px 0 var(--keyline))
    drop-shadow(-2px 0 0 var(--keyline))
    drop-shadow(2px 0 0 var(--keyline))
    drop-shadow(0 4px 0 var(--keyline-deep))
    drop-shadow(0 10px 12px rgba(3, 8, 36, 0.45));
}

.hl {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl--gold {
  background-image: linear-gradient(180deg, #FFF0AE 18%, #FFC63A 55%, #F08A18 92%);
}

.hl--pink {
  background-image: linear-gradient(180deg, #FFD2EB 18%, #FF75C0 55%, #E0228F 92%);
}

.hl--green {
  background-image: linear-gradient(180deg, #D9FFC9 18%, #83DC77 55%, #3FA54F 92%);
}

.section-lead {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
  text-wrap: pretty;
}

/* Store-art subtitle pill (a ValleyPanel strip). */
.pill {
  position: relative;
  display: inline-block;
  padding: 10px 26px;
  border: 2px solid rgba(159, 198, 255, 0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow: 0 6px 18px rgba(8, 20, 54, 0.4);
  font-weight: 800;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(10, 24, 82, 0.6);
}

.pill::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 18px;
  right: 18px;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* Sunburst behind the key art (the win screen / store slides). */
.sunburst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1500px;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.075) 0deg 5deg,
    rgba(255, 255, 255, 0) 6.5deg 16.5deg,
    rgba(255, 255, 255, 0.075) 18deg
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.6) 40%, transparent 72%);
  mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.6) 40%, transparent 72%);
  animation: spin 160s linear infinite;
  will-change: rotate;
}

.starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 24px 36px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 130px 90px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.8px 1.8px at 210px 170px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 70px 200px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.3px 1.3px at 250px 40px, rgba(255, 255, 255, 0.7), transparent);
  background-size: 280px 240px;
  opacity: 0.55;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: calc(var(--header-h) + clamp(12px, 3vw, 36px));
  padding-bottom: clamp(56px, 8vw, 112px);
  background:
    radial-gradient(55% 60% at 74% 48%, rgba(64, 150, 245, 0.55), transparent 72%),
    radial-gradient(40% 40% at 15% 25%, rgba(46, 96, 214, 0.35), transparent 72%),
    linear-gradient(180deg, #0A1852 0%, #133A99 34%, #1E56C0 66%, #16409F 84%, #0A1852 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__bg .sunburst {
  left: 72%;
  top: 48%;
}

.hero__bg .starfield {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 85%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 48px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  width: min(100%, 560px);
  margin: 0;
  line-height: 0;
  animation: pop-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.hero__wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.hero__tagline {
  margin-top: -4px;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 20px;
  color: #DCE8FF;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 16px;
  margin-top: 28px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #E6EEFF;
  font-weight: 700;
  font-size: 0.93rem;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__copy > :not(.hero__title) {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__copy > :nth-child(2) { animation-delay: 0.1s; }
.hero__copy > :nth-child(3) { animation-delay: 0.18s; }
.hero__copy > :nth-child(4) { animation-delay: 0.26s; }
.hero__copy > :nth-child(5) { animation-delay: 0.34s; }

.hero__art {
  position: relative;
  min-width: 0;
}

.hero__stage {
  position: relative;
  container-type: inline-size;
  width: min(100%, 620px);
  aspect-ratio: 620 / 660;
  margin-inline: auto;
}

.hero__glow {
  position: absolute;
  left: 62%;
  top: 46%;
  width: 90%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(180, 225, 255, 0.45), rgba(95, 178, 242, 0.18) 45%, transparent 75%);
  pointer-events: none;
}

.phone--hero-front,
.phone--hero-back {
  position: absolute;
  animation: phone-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.phone--hero-front {
  z-index: 3;
  left: 43%;
  top: 3%;
  width: 44%;
  rotate: 5deg;
  animation-name: phone-rise;
}

.phone--hero-back {
  z-index: 2;
  left: 8%;
  top: 9%;
  width: 37%;
  rotate: -8deg;
  animation-delay: 0.25s;
}

.hero__mascot {
  position: absolute;
  z-index: 4;
  left: -2%;
  bottom: -1%;
  width: 30%;
  filter: drop-shadow(0 12px 16px rgba(10, 20, 60, 0.45));
}

.deco {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero__edge {
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(10, 24, 82, 0), var(--navy));
  pointer-events: none;
}

@media (min-width: 960px) {
  .hero {
    min-height: min(100svh, 900px);
    display: flex;
    align-items: center;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .hero__copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero__title {
    margin-left: calc(min(100%, 560px) * -0.05);
  }

  .hero__actions,
  .hero__facts {
    justify-content: flex-start;
  }
}

@media (max-width: 959px) {
  .hero__bg .sunburst {
    left: 50%;
    top: 72%;
    width: 1100px;
  }

  .hero__stage {
    width: min(100%, 520px);
  }
}

@media (max-width: 480px) {
  .hero__title {
    width: min(100%, 400px);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .play-btn,
  .hero__actions .btn {
    width: min(100%, 300px);
    justify-content: center;
  }

  .hero__stage {
    width: 100%;
  }

  .phone--hero-front {
    left: 42%;
    width: 46%;
  }

  .phone--hero-back {
    left: 6%;
    width: 39%;
  }
}

/* ==========================================================================
   GAMEPLAY — a window onto the valley the game is played in
   ========================================================================== */
.gameplay {
  padding-top: clamp(40px, 6vw, 72px);
}

.valley {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(28px, 4vw, 52px) clamp(12px, 2.5vw, 36px) 0;
  border: 3px solid var(--gold);
  border-radius: clamp(26px, 3.2vw, 44px);
  background:
    radial-gradient(40% 30% at 50% 12%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, #3F92E8 32%, var(--sky-mid) 60%, var(--sky-low) 100%);
  box-shadow:
    0 0 0 6px rgba(255, 214, 92, 0.14),
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.valley__sky {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cloud {
  position: absolute;
  width: var(--w, 180px);
  aspect-ratio: 2.4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(0.5px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 46%;
  aspect-ratio: 1;
  left: 16%;
  bottom: 38%;
}

.cloud::after {
  width: 34%;
  aspect-ratio: 1;
  right: 18%;
  bottom: 44%;
}

.cloud--1 { --w: 190px; left: 4%; top: 12%; opacity: 0.9; }
.cloud--2 { --w: 150px; right: 6%; top: 24%; opacity: 0.8; }
.cloud--3 { --w: 120px; left: 42%; top: 46%; opacity: 0.55; }

.valley__land {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 52%;
}

.valley__stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 3vw, 44px);
  padding-bottom: clamp(26px, 4vw, 52px);
}

.phone--center {
  z-index: 2;
  width: clamp(120px, 24vw, 290px);
}

.phone--side {
  width: clamp(92px, 19vw, 230px);
  margin-bottom: 4%;
}

.phone--left {
  rotate: -6deg;
}

.phone--right {
  rotate: 6deg;
}

.callouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 clamp(26px, 3.5vw, 44px);
  padding: 0;
  list-style: none;
}

.callout,
.note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1.5px solid rgba(159, 198, 255, 0.55);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 48, 111, 0.94), rgba(14, 26, 70, 0.94));
  box-shadow: 0 12px 26px -12px rgba(4, 12, 44, 0.7);
  color: var(--ink-card);
  font-size: 0.88rem;
  line-height: 1.35;
}

.callout strong,
.note strong {
  display: block;
  margin-bottom: 1px;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

@media (max-width: 1023px) {
  .callouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .valley__land {
    height: 40%;
  }
}

@media (max-width: 599px) {
  .callouts {
    gap: 10px;
    margin-bottom: 24px;
  }

  .callout {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 10px 12px;
    text-align: center;
    font-size: 0.8rem;
  }

  .callout strong {
    font-size: 0.92rem;
  }

  .valley__stage {
    gap: 3%;
    padding-bottom: 28px;
  }

  .phone--center {
    width: 38%;
  }

  .phone--side {
    width: 28%;
  }

  .valley__land {
    height: 32%;
  }
}

/* ==========================================================================
   FEATURES — bento of game panels
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: dense;
  gap: clamp(14px, 2vw, 22px);
  margin: clamp(36px, 5vw, 60px) 0 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 26px);
  overflow: hidden;
  border: 2px solid rgba(159, 198, 255, 0.45);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
  box-shadow: 0 6px 18px rgba(8, 20, 54, 0.35), 0 28px 48px -26px rgba(0, 0, 0, 0.6);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.card__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.card__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.02rem + 0.45vw, 1.4rem);
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(10, 24, 82, 0.5);
}

.card__text {
  position: relative;
  color: var(--ink-card);
  font-size: 0.98rem;
  text-wrap: pretty;
}

.card__text strong {
  color: #fff;
  font-weight: 800;
}

.card__media {
  position: relative;
  margin-top: auto;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  background: var(--panel-deep);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.7);
}

.card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.card__media--tall img {
  object-fit: cover;
  object-position: 50% 55%;
}

.card--trail .card__media {
  height: clamp(300px, 70vw, 440px);
}

.card--trail .card__media img {
  height: 100%;
}

.card--spin .card__media--wheel {
  align-self: center;
  width: min(100%, 340px);
}

@media (hover: hover) {
  .card {
    transition: translate 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease;
  }

  .card:hover {
    box-shadow: 0 10px 24px rgba(8, 20, 54, 0.4), 0 34px 60px -26px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(255, 214, 92, 0.5);
  }
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "boost boost"
      "daily goal"
      "trail spin"
      "gifts gifts";
  }

  .card--boosters { grid-area: boost; }
  .card--trail { grid-area: trail; }
  .card--daily { grid-area: daily; }
  .card--goal { grid-area: goal; }
  .card--gifts { grid-area: gifts; }
  .card--spin { grid-area: spin; }

  .card--trail .card__media {
    height: 300px;
  }

  .card--spin .card__media--wheel {
    width: min(100%, 280px);
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "boost boost boost boost trail trail"
      "daily daily goal  goal  trail trail"
      "gifts gifts gifts gifts spin  spin";
  }

  .card--spin .card__media--wheel {
    width: min(100%, 340px);
  }

  .card--trail .card__media {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
  }

  .bento .card:nth-child(2) { transition-delay: 0.06s; }
  .bento .card:nth-child(3) { transition-delay: 0.1s; }
  .bento .card:nth-child(4) { transition-delay: 0.14s; }
  .bento .card:nth-child(6) { transition-delay: 0.06s; }
}

/* ==========================================================================
   HOW TO PLAY
   ========================================================================== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 48px);
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  text-align: center;
}

.step__visual {
  position: relative;
  width: min(250px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto 26px;
}

/* The magnifier circles of the store art: white ring inside a gold one. */
.step__img {
  display: block;
  width: 100%;
  height: 100%;
  border: 7px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sky-mid);
  box-shadow:
    0 0 0 7px var(--gold),
    0 0 0 10px rgba(169, 109, 14, 0.75),
    0 24px 44px -14px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(255, 214, 92, 0.22);
}

.step__num {
  position: absolute;
  top: -2%;
  left: -2%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--pink-light) 0%, var(--pink) 55%, var(--pink-deep) 100%);
  box-shadow: 0 5px 0 var(--gold-deep), 0 12px 22px -6px rgba(255, 63, 174, 0.6);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 2px 0 #7A0C4C;
}

.step__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  filter:
    drop-shadow(0 -1.5px 0 var(--keyline))
    drop-shadow(0 1.5px 0 var(--keyline))
    drop-shadow(-1.5px 0 0 var(--keyline))
    drop-shadow(1.5px 0 0 var(--keyline))
    drop-shadow(0 3px 0 var(--keyline-deep));
}

.step__text {
  max-width: 30ch;
  margin-inline: auto;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@media (max-width: 599px) {
  .steps {
    gap: 22px;
  }

  /* The aim guide's dots, running down behind the circles. */
  .steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 40px;
    bottom: 40px;
    left: 52px;
    width: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 3px, transparent 3.5px) 50% 0 / 8px 20px repeat-y;
    opacity: 0.7;
  }

  .step {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: center;
    text-align: left;
  }

  .step__visual {
    grid-row: 1 / span 2;
    width: 112px;
    margin: 0;
  }

  .step__img {
    border-width: 4px;
    box-shadow:
      0 0 0 4px var(--gold),
      0 0 0 6px rgba(169, 109, 14, 0.75),
      0 14px 24px -10px rgba(0, 0, 0, 0.65);
  }

  .step__num {
    top: -6px;
    left: -6px;
    width: 38px;
    height: 38px;
    border-width: 2px;
    font-size: 1.2rem;
    box-shadow: 0 3px 0 var(--gold-deep);
  }

  .step__title {
    align-self: end;
    margin-bottom: 4px;
    font-size: 1.6rem;
  }

  .step__text {
    align-self: start;
    max-width: none;
    margin: 0;
    font-size: 0.95rem;
  }
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* The aim guide's dotted path, running behind the three circles. */
  .steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(min(250px, 70vw) / 2 - 4px);
    left: 17%;
    right: 17%;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 3px, transparent 3.5px) 0 50% / 22px 8px repeat-x;
    opacity: 0.8;
  }

  .step:nth-child(2) { transition-delay: 0.1s; }
  .step:nth-child(3) { transition-delay: 0.2s; }
}

/* ==========================================================================
   EXPERIENCE — the landscape gameplay view
   ========================================================================== */
.showcase {
  position: relative;
  max-width: 980px;
  margin: clamp(36px, 5vw, 60px) auto 0;
}

.showcase__frame {
  position: relative;
  z-index: 1;
  padding: clamp(6px, 0.8vw, 10px);
  border-radius: clamp(20px, 2.6vw, 32px);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-mid) 100%);
  box-shadow:
    0 0 0 2px rgba(169, 109, 14, 0.8),
    0 36px 80px -28px rgba(0, 0, 0, 0.75),
    0 0 90px rgba(57, 168, 93, 0.28);
}

.showcase__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(clamp(20px, 2.6vw, 32px) - clamp(6px, 0.8vw, 10px));
  background: var(--sky-mid);
}

/* Decorations live wholly outside the frame, so none of them sits on the
   gameplay. Only shown where the gutters have room for them. */
.showcase__deco {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .showcase__deco {
    display: block;
  }
}

.showcase__deco .bubble:nth-child(1) { left: -96px; top: 14%; }
.showcase__deco .bubble:nth-child(2) { left: -58px; top: 46%; }
.showcase__deco .bubble:nth-child(3) { right: -88px; top: 22%; }
.showcase__deco .bubble:nth-child(4) { right: -60px; top: 58%; }
.showcase__deco .coin { right: -72px; top: 2%; }

.notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
}

.note {
  max-width: none;
}

@media (min-width: 600px) {
  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .notes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   SCREENSHOTS — featured view + thumbnail wall (desktop), swipe strip (below)
   ========================================================================== */
.gallery {
  --shot-w: clamp(230px, 68vw, 320px);
  position: relative;
  margin-top: clamp(20px, 3vw, 36px);
}

.gallery__feature {
  display: none;
}

.gallery__list {
  position: relative;
  display: flex;
  gap: clamp(10px, 2vw, 22px);
  margin: 0;
  padding: 36px max(var(--gutter), calc((100% - var(--shot-w)) / 2)) 44px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  list-style: none;
}

.gallery__list::-webkit-scrollbar {
  display: none;
}

.gallery__list:focus-visible {
  outline-offset: -3px;
  border-radius: 24px;
}

.shot {
  flex: 0 0 var(--shot-w);
  scroll-snap-align: center;
}

.shot__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.shot__btn:focus-visible {
  outline-offset: 4px;
  border-radius: 22px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: var(--panel-deep);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 26px 50px -20px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.3s ease, translate 0.3s ease;
}

.js .shot {
  opacity: 0.5;
  scale: 0.86;
  transition: opacity 0.4s ease, scale 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .shot.is-active {
  opacity: 1;
  scale: 1.04;
}

.js .shot.is-active img {
  box-shadow:
    0 0 0 3px var(--gold),
    0 30px 60px -18px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(255, 214, 92, 0.28);
}

.carousel__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-inline: var(--gutter);
}

.js .carousel__controls {
  display: flex;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  translate: -50% -50%;
  border-radius: 999px;
  background: rgba(197, 219, 255, 0.35);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.dot[aria-current="true"]::before {
  width: 24px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 214, 92, 0.6);
}

.dot:focus-visible {
  outline-offset: 0;
  border-radius: 999px;
}

@media (min-width: 1024px) {
  .gallery {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
    max-width: var(--container);
    margin-inline: auto;
    padding: 24px calc(var(--gutter) + 20px) 12px;
  }

  .gallery__feature {
    position: relative;
    display: block;
  }

  .gallery__big {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
    background: var(--panel-deep);
    rotate: -3deg;
    box-shadow:
      0 0 0 4px var(--gold),
      0 0 0 7px rgba(169, 109, 14, 0.7),
      0 40px 70px -24px rgba(0, 0, 0, 0.85),
      0 0 80px rgba(255, 214, 92, 0.25);
    transition: opacity 0.25s ease;
  }

  .gallery__big.is-swapping {
    opacity: 0;
  }

  .gallery__deco {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  .gallery__deco .bubble:nth-child(1) { left: -34px; top: 8%; }
  .gallery__deco .bubble:nth-child(2) { right: -30px; bottom: 12%; }
  .gallery__deco .sparkle { right: -22px; top: 4%; }

  .gallery__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 18px;
    padding: 0 0 32px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .gallery__list .shot:nth-child(even) {
    translate: 0 32px;
  }

  .js .gallery__list .shot {
    opacity: 1;
    scale: 1;
  }

  .shot img,
  .shot__btn {
    border-radius: 16px;
  }

  .shot__btn:hover img {
    translate: 0 -5px;
    box-shadow: 0 0 0 2px rgba(255, 214, 92, 0.6), 0 30px 50px -20px rgba(0, 0, 0, 0.85);
  }

  .shot__btn[aria-pressed="true"] img {
    box-shadow:
      0 0 0 3px var(--gold),
      0 22px 40px -18px rgba(0, 0, 0, 0.85),
      0 0 30px rgba(255, 214, 92, 0.3);
  }

  .js .gallery .carousel__controls {
    display: none;
  }
}

/* ==========================================================================
   FAQ — one question per row; answers fold open (the page's navy rows)
   ========================================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 40px) clamp(18px, 2.5vw, 28px);
  max-width: 1040px;
  margin: clamp(32px, 5vw, 52px) auto 0;
}

@media (min-width: 960px) {
  .faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq__group + .faq__group {
    transition-delay: 0.1s;
  }
}

.faq__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* The game's ValleyCaption: tracked-out caps over a group of rows. */
.faq__heading {
  margin: 0 0 4px 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq__item {
  border: 1.5px solid rgba(159, 198, 255, 0.4);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 48, 111, 0.94), rgba(14, 26, 70, 0.94));
  box-shadow: 0 12px 26px -16px rgba(4, 12, 44, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item.is-open {
  border-color: rgba(255, 214, 92, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 214, 92, 0.2), 0 16px 30px -16px rgba(4, 12, 44, 0.8);
}

.faq__q {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 12px 12px 18px;
  border: 0;
  border-radius: 17px;
  background: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq__text {
  transition: color 0.2s ease;
}

.faq__btn:hover .faq__text {
  color: var(--gold-light);
}

.faq__btn:focus-visible {
  outline-offset: 2px;
  border-radius: 17px;
}

/* The page's glossy icon disc, carrying a chevron that turns when open. */
.faq__icon {
  --size: 32px;
  transition: rotate 0.25s ease;
}

.faq__icon svg {
  width: 72%;
  height: 72%;
}

.faq__item.is-open .faq__icon {
  rotate: 180deg;
}

/* Answers ship open so they read (and index) without JS; the script folds
   them. A folded answer animates its height and leaves the a11y tree. */
.faq__a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease, visibility 0s linear 0s;
}

.js .faq__item:not(.is-open) .faq__a {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}

.faq__inner {
  min-height: 0;
  overflow: hidden;
}

.faq__inner p {
  padding: 0 18px 16px;
  color: var(--ink-card);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq__inner a {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__inner a:hover {
  color: #fff;
}

@media (max-width: 599px) {
  .faq__btn {
    padding-left: 16px;
    font-size: 0.95rem;
  }

  .faq__inner p {
    padding: 0 16px 14px;
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   DOWNLOAD CTA
   ========================================================================== */
.download {
  padding-top: clamp(24px, 4vw, 48px);
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
  border: 3px solid var(--gold);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(255, 120, 200, 0.35), transparent 70%),
    linear-gradient(180deg, #3B1C8C 0%, #6B2A9E 52%, #A8327F 100%);
  box-shadow:
    0 0 0 6px rgba(255, 214, 92, 0.14),
    inset 0 0 0 2px rgba(255, 255, 255, 0.25),
    0 40px 80px -30px rgba(0, 0, 0, 0.75);
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.sunburst--cta {
  top: 34%;
  width: 1300px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 230, 150, 0.1) 0deg 5deg,
    rgba(255, 230, 150, 0) 6.5deg 16.5deg,
    rgba(255, 230, 150, 0.1) 18deg
  );
}

.cta__deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__icon {
  width: clamp(120px, 15vw, 164px);
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 18px 26px rgba(20, 5, 50, 0.55));
}

.cta__text {
  max-width: 34rem;
  margin: 16px auto 32px;
  color: #F3E6FF;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  text-wrap: pretty;
}

.cta__mascot {
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: clamp(110px, 15vw, 190px);
  filter: drop-shadow(0 14px 18px rgba(20, 5, 50, 0.5));
}

@media (max-width: 767px) {
  .cta__mascot {
    display: none;
  }

  .cta__deco .bubble:nth-child(n+3),
  .cta__deco .coin {
    display: none;
  }
}

/* ==========================================================================
   BEHIND THE GAME — developer credits
   ========================================================================== */
.developer {
  padding-top: clamp(8px, 2vw, 24px);
}

.credits {
  position: relative;
  max-width: 860px;
  margin: clamp(32px, 5vw, 52px) auto 0;
}

/* Bubbles float beside the plate, never on it; only where there is room. */
.credits__deco {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .credits__deco {
    display: block;
  }
}

.credits__deco .bubble:nth-child(1) { left: -78px; top: 12%; }
.credits__deco .bubble:nth-child(2) { left: -40px; bottom: 10%; }
.credits__deco .bubble:nth-child(3) { right: -66px; top: 36%; }

/* A gold-rimmed nameplate (ValleyPlate) cut from the page's card blues. */
.credits__plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3vw, 30px);
  padding: clamp(22px, 3.5vw, 36px);
  overflow: hidden;
  border: 3px solid var(--gold);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
  box-shadow:
    0 0 0 6px rgba(255, 214, 92, 0.14),
    0 0 44px -8px rgba(255, 214, 92, 0.35),
    0 30px 60px -28px rgba(0, 0, 0, 0.75);
}

.credits__plate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.credits__list {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credit {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding-block: 16px;
}

.credit:first-child {
  padding-top: 2px;
}

.credit + .credit {
  border-top: 1px solid rgba(159, 198, 255, 0.28);
}

.credit .disc {
  --size: 56px;
}

/* The in-game Developer Info disc (settings_screen.dart). */
.disc--cyan { --t-light: #7FE3FF; --t-base: #23B8E6; --t-deep: #0B6E96; --t-glow: rgba(127, 227, 255, 0.45); }

.credit__body {
  min-width: 0;
}

.credit__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 0 var(--keyline-deep), 0 4px 10px rgba(3, 8, 36, 0.35);
}

.credit__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.credit__link:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.credit__external {
  flex: none;
  width: 0.7em;
  height: 0.7em;
  fill: currentColor;
  opacity: 0.85;
}

.credit__role {
  margin-top: 6px;
  color: var(--ink-card);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* The page's slate button, with LinkedIn's mark on a white chip like the
   Play logo on the store button. */
.btn--linkedin {
  gap: 12px;
  padding: 0 22px 0 8px;
}

.btn__chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 -3px 0 rgba(20, 30, 70, 0.08), 0 2px 5px rgba(8, 20, 60, 0.45);
}

.btn__chip svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 699px) {
  .credit:last-child {
    padding-bottom: 2px;
  }

  .btn--linkedin {
    width: 100%;
    text-align: center;
  }
}

/* Small phones: keep "Connect on LinkedIn" on one line. */
@media (max-width: 379px) {
  .credits__plate {
    padding: 18px;
  }

  .btn--linkedin {
    gap: 8px;
    padding-right: 16px;
    font-size: 0.98rem;
  }
}

/* Side by side from tablets up: each credit stacks disc, name and role. */
@media (min-width: 700px) {
  .credits__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credit {
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 4px 24px;
    text-align: center;
  }

  .credit:first-child {
    padding-top: 4px;
  }

  .credit + .credit {
    border-top: 0;
    border-left: 1px solid rgba(159, 198, 255, 0.28);
  }

  .credit .disc {
    --size: 64px;
  }

  .credit__role {
    letter-spacing: 0.12em;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgba(159, 198, 255, 0.12);
  background: var(--navy-deep);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__brand img {
  width: 56px;
  height: 56px;
  flex: none;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}

.site-footer__tag {
  margin-top: 4px;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(159, 198, 255, 0.24);
  border-radius: 999px;
  background: rgba(60, 116, 224, 0.14);
  color: var(--ink-card);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.site-footer__nav a:hover {
  border-color: rgba(255, 214, 92, 0.6);
  background: rgba(60, 116, 224, 0.3);
  color: #fff;
}

.site-footer__nav svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

@media (max-width: 599px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float,
  .twinkle,
  .sunburst,
  .hero__title,
  .hero__copy > *,
  .phone--hero-front,
  .phone--hero-back {
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }

  [data-parallax] {
    transform: none;
  }

  .carousel__track {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
