/* Roadshell Rush — landing site
   Motion identity (Playful): signature spring --ease-pop, entrances --ease-out,
   durations 180 / 320 / 600ms, staggered rise-in under 400ms total. */

@font-face {
  font-family: "Baloo 2";
  src: url("img/baloo2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1d2340;
  --ink-soft: #4b5170;
  --ink-mute: #747a94;
  --cream: #fff8ea;
  --cream-2: #fbefd6;
  --paper: #ffffff;
  --line: #ecdfc4;
  --meadow: #4f9a35;
  --meadow-deep: #2f6b22;
  --go: #3fae2a;
  --go-deep: #2a861c;
  --sun: #f8b023;
  --sun-deep: #d98a0b;
  --sky: #2f6fe0;
  --sky-deep: #1f4fb0;
  --shell: #8c4a26;
  --coin: #f5c21a;
  --asphalt: #4c4b50;
  --night: #16191f;

  --font-display: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --t-quick: 180ms;
  --t-std: 320ms;
  --t-slow: 600ms;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow-chunky: 0 6px 0 rgba(29, 35, 64, 0.9);
  --shadow-soft: 0 20px 50px -20px rgba(54, 40, 10, 0.35);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--meadow-deep);
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 680px; display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--go); --bg-deep: var(--go-deep); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border: 3px solid var(--ink); border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, #fff) 0%, var(--bg) 55%);
  color: var(--fg); text-decoration: none; cursor: pointer;
  font: 800 1.08rem/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}
.btn::after { /* glossy top highlight, like the in-game buttons */
  content: ""; position: absolute; left: 10px; right: 10px; top: 5px; height: 30%;
  border-radius: 10px; background: rgba(255, 255, 255, 0.28); pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(5px) scale(0.98); box-shadow: 0 1px 0 var(--ink); transition-duration: 90ms; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-sun { --bg: var(--sun); --bg-deep: var(--sun-deep); }
.btn-sky { --bg: var(--sky); }
.btn-ghost {
  background: var(--paper); color: var(--ink); text-shadow: none;
}
.btn-ghost::after { display: none; }
.btn-tf { /* TestFlight */
  background: linear-gradient(180deg, #2a2f45, #10131c); text-shadow: none; text-transform: none; letter-spacing: 0;
  padding: 0 24px 0 18px; gap: 12px;
}
.btn-tf::after { display: none; }
.btn-tf .tf-copy { display: grid; text-align: left; gap: 3px; }
.btn-tf small { font: 600 0.72rem/1 var(--font-body); opacity: 0.75; letter-spacing: 0.02em; }
.btn-tf strong { font: 700 1.15rem/1 var(--font-body); letter-spacing: -0.01em; }
.btn-tf svg { width: 30px; height: 30px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--t-std) var(--ease-out), box-shadow var(--t-std) var(--ease-out), transform var(--t-std) var(--ease-out);
}
.site-header.scrolled, .site-header.solid {
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem/1 var(--font-display); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 0 rgba(29, 35, 64, 0.25); }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none;
  font-weight: 650; color: var(--ink-soft); transition: color var(--t-quick), background var(--t-quick);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(29, 35, 64, 0.06); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 0.92rem; border-width: 2.5px; box-shadow: 0 4px 0 var(--ink); }
.nav .btn:hover { box-shadow: 0 5px 0 var(--ink); }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: 96px;
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(255, 216, 120, 0.55), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(173, 222, 255, 0.55), transparent 60%),
    linear-gradient(180deg, #fff4dc 0%, var(--cream) 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(16px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.hero-copy { display: grid; gap: 18px; justify-items: start; position: relative; z-index: 2; }
.beta-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 999px;
  font-weight: 650; font-size: 0.92rem; color: var(--ink-soft); text-decoration: none;
  box-shadow: 0 6px 18px -10px rgba(54, 40, 10, 0.4);
}
.beta-pill b { background: var(--go); color: #fff; border-radius: 999px; padding: 4px 9px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { width: min(400px, 100%); margin: -6px 0 -8px; }
.hero h1 img { width: 100%; filter: drop-shadow(0 14px 18px rgba(80, 40, 0, 0.25)); }
.hero-lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; }
.hero-lede strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 4px 0 0; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--go); }

.hero-stage { position: relative; aspect-ratio: 1 / 0.8; z-index: 1; max-height: 520px; justify-self: center; width: 100%; }
.hero-sun {
  position: absolute; inset: 6% 4% 8% 6%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 196, 70, 0.32) 0 10deg, rgba(255, 233, 170, 0.15) 10deg 20deg);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  animation: spin 60s linear infinite;
}
.hero-runner {
  position: absolute; left: 50%; bottom: 6%; width: 92%; translate: -50% 0;
  animation: bob 3.6s ease-in-out infinite;
  filter: drop-shadow(0 26px 24px rgba(60, 40, 0, 0.28));
}
.hero-shadow {
  position: absolute; left: 50%; bottom: 3%; width: 54%; height: 7%; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 40, 10, 0.35), transparent);
  animation: shadow 3.6s ease-in-out infinite;
}
.float { position: absolute; width: clamp(44px, 7vw, 76px); will-change: transform; }
.float img { animation: drift 5s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(60, 40, 0, 0.22)); }
.float.f1 { left: 2%; top: 14%; } .float.f1 img { animation-delay: -1s; }
.float.f2 { right: 4%; top: 6%; } .float.f2 img { animation-delay: -2.4s; }
.float.f3 { right: -1%; top: 50%; width: clamp(40px, 6vw, 64px); } .float.f3 img { animation-delay: -3.1s; }
.float.f4 { left: 8%; top: 56%; width: clamp(36px, 5vw, 56px); } .float.f4 img { animation-delay: -0.4s; }
.float.f5 { left: 40%; top: -2%; width: clamp(34px, 4.5vw, 52px); } .float.f5 img { animation-delay: -4s; }

@media (max-width: 860px) {
  .hero { padding-top: 92px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-ctas, .trust { justify-content: center; }
  .hero h1 { width: min(380px, 88%); }
  .hero-stage { width: min(520px, 100%); margin: -10px auto 0; }
}

/* ---------- Live road (hero strip) ---------- */
.road-scene {
  --lane-h: clamp(64px, 9vw, 104px);
  position: relative; height: calc(var(--lane-h) * 2 + 140px); overflow: hidden;
  background: url("img/ground-meadow.webp") center / 640px auto repeat;
  border-top: 4px solid rgba(29, 35, 64, 0.08);
}
.road-scene::before { /* soften the top edge into the hero */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 50px; z-index: 3; pointer-events: none;
  background: linear-gradient(var(--cream), transparent);
}
.road {
  position: absolute; left: 0; right: 0; top: 70px; height: calc(var(--lane-h) * 2 + 24px);
  background: url("img/road-2.webp") 0 50% / auto 100% repeat-x;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.08));
}
.road-scene .actor { position: absolute; left: 0; top: 0; will-change: transform; z-index: 2; pointer-events: none; }
.road-scene .car { height: calc(var(--lane-h) * 0.82); width: auto; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.28)); }
.road-scene .turtle {
  width: calc(var(--lane-h) * 1.25); height: calc(var(--lane-h) * 1.25);
  background: url("img/turtle-walk.webp") 0 0 / auto 100% no-repeat;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.25)); z-index: 3;
}
.road-scene .turtle.tucked { background-image: url("img/turtle-tuck.webp"); }
.road-scene .coin { width: calc(var(--lane-h) * 0.4); transition: transform var(--t-std) var(--ease-pop), opacity var(--t-std); filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.25)); }
.road-scene .coin.got { opacity: 0; }
.road-hud {
  position: absolute; z-index: 4; left: var(--gutter); top: 16px;
  display: flex; gap: 10px; align-items: center; pointer-events: none;
}
.hud-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 14px;
  background: linear-gradient(#b8743f, #8f5427); color: #fff; border: 3px solid var(--ink); border-radius: 16px;
  font: 800 1rem/1 var(--font-display); letter-spacing: 0.04em; box-shadow: 0 4px 0 var(--ink);
}
.hud-chip b { color: #ffd34d; font-size: 1.5rem; min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.hud-chip.dark { background: #1f2335; font-size: 0.9rem; padding: 9px 14px; }
.float-text {
  position: absolute; z-index: 5; font: 800 1.2rem/1 var(--font-display); color: #ffd34d;
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; pointer-events: none;
  animation: floatUp 900ms var(--ease-out) forwards;
}
.road-caption {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 16px; font-weight: 700; font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.85); padding: 6px 12px; border-radius: 999px; color: var(--ink-soft);
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0;
  border-block: 4px solid var(--night);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 14px; padding: 0 7px; margin: 0; list-style: none; }
.marquee li {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 700 1.05rem/1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.07);
}
.marquee li img { width: 26px; height: 26px; object-fit: contain; }
.marquee li b { color: var(--coin); }

/* ---------- How it plays ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius-lg);
  padding: 22px 22px 26px; box-shadow: var(--shadow-chunky);
  display: grid; gap: 12px; align-content: start;
  transition: transform var(--t-std) var(--ease-pop);
}
.step:hover { transform: translateY(-6px) rotate(-0.6deg); }
.step-demo {
  height: 190px; border-radius: 20px; position: relative; overflow: hidden;
  background: url("img/road-2.webp") center / auto 100% repeat-x, var(--asphalt);
  display: grid; place-items: center;
}
.step h3 { font-size: 1.7rem; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.step h3::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--sun); border: 3px solid var(--ink); font-size: 1.15rem; box-shadow: 0 3px 0 var(--ink);
}
.step p { color: var(--ink-soft); }
.step .kbd { display: inline-block; font-weight: 700; color: var(--ink); background: var(--cream-2); border-radius: 8px; padding: 0 8px; }

.demo-phone {
  width: 150px; height: 74px; border-radius: 18px; background: #11131a; border: 3px solid #2c3040; padding: 5px;
  box-shadow: 0 14px 20px -6px rgba(0, 0, 0, 0.5); animation: tilt 2.8s ease-in-out infinite;
}
.demo-phone span {
  display: block; width: 100%; height: 100%; border-radius: 12px;
  background: url("img/shot-meadow.webp") center / cover;
}
.demo-arrows { position: absolute; bottom: 12px; display: flex; gap: 96px; }
.demo-arrows i {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); border: 2.5px solid var(--ink); font-style: normal; font-weight: 900; color: var(--ink);
  animation: tap 2.8s ease-in-out infinite;
}
.demo-arrows i:last-child { animation-delay: -1.4s; }
.sprite {
  width: 132px; height: 132px; background-size: auto 100%; background-repeat: no-repeat;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.3));
}
.sprite.tuck { background-image: url("img/turtle-tuck.webp"); animation: tuck 2.6s steps(1) infinite; }
.sprite.walk { background-image: url("img/turtle-walk.webp"); animation: walk 0.9s steps(24) infinite; }
.demo-hold {
  position: absolute; bottom: 12px; left: 50%; translate: -50% 0;
  font: 800 0.8rem/1 var(--font-display); letter-spacing: 0.06em; color: #fff;
  background: rgba(20, 22, 30, 0.75); padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.demo-hold::after { content: "HOLD TO HIDE"; animation: holdText 2.6s steps(1) infinite; }
.demo-rush .sprite { position: absolute; left: 50%; translate: -50% 0; animation: walk 0.6s steps(24) infinite, rush 2.4s var(--ease-in) infinite; }
.demo-rush .mini-coin { position: absolute; width: 34px; left: 50%; translate: -50% 0; animation: coinUp 2.4s var(--ease-out) infinite; }
.demo-rush .mini-coin.c2 { animation-delay: -1.2s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Worlds ---------- */
.worlds { overflow: hidden; }
.worlds-bg { position: absolute; inset: 0; z-index: -1; transition: opacity var(--t-slow) var(--ease-out); opacity: 0; }
.worlds-bg.on { opacity: 1; }
.worlds-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--cream) 0%, rgba(255, 248, 234, 0.78) 30%, rgba(255, 248, 234, 0.78) 70%, var(--cream) 100%); }
.worlds-bg[data-world="meadow"] { background: url("img/ground-meadow.webp") center / 720px repeat; }
.worlds-bg[data-world="city"] { background: url("img/ground-city.webp") center / 720px repeat; }
.worlds-bg[data-world="beach"] { background: url("img/ground-beach.webp") center / 720px repeat; }
.tabs { display: inline-flex; gap: 8px; padding: 6px; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; border-radius: 15px;
  padding: 10px 18px; background: transparent; color: var(--ink-soft);
  font: 800 1rem/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
  transition: background var(--t-quick), color var(--t-quick), transform var(--t-quick) var(--ease-pop);
}
.tab img { width: 44px; height: 26px; object-fit: contain; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--sun); color: var(--ink); }
.tab:active { transform: scale(0.95); }
.world-panel { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.world-panel[hidden] { display: none; }
.device {
  position: relative; border-radius: clamp(26px, 4vw, 46px); background: #0f1117; padding: clamp(8px, 1.2vw, 14px);
  box-shadow: 0 0 0 2px #2c3040, 0 40px 60px -30px rgba(20, 20, 40, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device img { border-radius: clamp(18px, 3vw, 34px); width: 100%; aspect-ratio: 1600 / 738; object-fit: cover; }
.device::before { /* dynamic island, landscape */
  content: ""; position: absolute; left: clamp(14px, 2vw, 22px); top: 50%; translate: 0 -50%;
  width: clamp(6px, 0.8vw, 10px); height: 13%; border-radius: 99px; background: #000; z-index: 2;
}
.world-info { display: grid; gap: 16px; justify-items: start; }
.world-info .world-card { width: min(280px, 70%); filter: drop-shadow(0 12px 14px rgba(40, 30, 0, 0.25)); }
.world-info h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; }
.world-info p { color: var(--ink-soft); }
.price-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; background: var(--paper); border: 2px solid var(--line); }
.price-tag img { width: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: rgba(29, 35, 64, 0.07); font-weight: 650; font-size: 0.9rem; }
.world-panel.enter .device { animation: worldIn var(--t-slow) var(--ease-out) both; }
.world-panel.enter .world-info > * { animation: riseIn var(--t-std) var(--ease-out) both; }
.world-panel.enter .world-info > *:nth-child(2) { animation-delay: 60ms; }
.world-panel.enter .world-info > *:nth-child(3) { animation-delay: 120ms; }
.world-panel.enter .world-info > *:nth-child(4) { animation-delay: 180ms; }
.world-panel.enter .world-info > *:nth-child(5) { animation-delay: 240ms; }
@media (max-width: 860px) { .world-panel { grid-template-columns: 1fr; } .tabs { display: flex; width: 100%; } .tab { flex: 1; justify-content: center; padding: 10px 8px; } .tab img { display: none; } }

/* ---------- Runners ---------- */
.runners { background: linear-gradient(180deg, var(--cream), #fdf1d6); }
.runner-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.runner-stage { position: relative; aspect-ratio: 1.25; display: grid; place-items: center; }
.runner-stage::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 196, 70, 0.3) 0 9deg, rgba(255, 240, 200, 0.2) 9deg 18deg);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  animation: spin 80s linear infinite reverse;
}
.runner-stage img { position: relative; width: 92%; filter: drop-shadow(0 24px 20px rgba(60, 40, 0, 0.28)); }
.runner-stage img.swap { animation: runnerIn 520ms var(--ease-pop) both; }
.runner-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.runner-chip {
  position: relative; border: 3px solid var(--ink); background: linear-gradient(#fffaf0, #fbe8be); border-radius: 20px; cursor: pointer;
  padding: 8px 6px 10px; display: grid; justify-items: center; gap: 4px; box-shadow: 0 4px 0 var(--ink);
  font: 800 0.78rem/1.05 var(--font-display); text-transform: uppercase; color: var(--ink); letter-spacing: 0.03em;
  transition: transform var(--t-quick) var(--ease-pop), box-shadow var(--t-quick);
}
.runner-chip img { width: 72%; }
.runner-chip:hover { transform: translateY(-3px); }
.runner-chip[aria-pressed="true"] { background: linear-gradient(#fff2c4, #ffcf55); box-shadow: 0 4px 0 var(--ink), 0 0 0 4px var(--go); }
.runner-card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-chunky); display: grid; gap: 14px; }
.runner-card h3 { font-size: 2rem; font-weight: 800; }
.runner-card .tagline { color: var(--ink-soft); font-weight: 600; }
.stats { display: grid; gap: 12px; margin: 4px 0; }
.stat { display: grid; grid-template-columns: 70px 1fr 64px; gap: 12px; align-items: center; font-weight: 700; }
.stat .val { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 16px; border-radius: 99px; background: #e9dcc0; border: 2px solid var(--ink); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; transition: width var(--t-slow) var(--ease-pop); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4); }
.bar.armor i { background: var(--sky); } .bar.speed i { background: var(--go); } .bar.boost i { background: var(--sun); }
.unlock { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.unlock img { width: 22px; }
@media (max-width: 860px) { .runner-layout { grid-template-columns: 1fr; } .runner-stage { max-width: 460px; margin: 0 auto; width: 100%; } }

/* ---------- Power-ups ---------- */
.powerups { background: var(--ink); color: #fff; overflow: hidden; }
.powerups .eyebrow { color: var(--coin); }
.powerups .section-head p { color: rgba(255, 255, 255, 0.72); }
.powerups::before {
  content: ""; position: absolute; inset: 0; opacity: 0.08;
  background: url("img/road-2.webp") center / auto 220px repeat;
}
.pu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.pu {
  position: relative; border-radius: var(--radius); padding: 22px 20px 20px; display: grid; gap: 8px; align-content: start;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--t-std) var(--ease-pop), background var(--t-std), border-color var(--t-std);
}
.pu:hover { transform: translateY(-6px); background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)); border-color: rgba(255, 211, 77, 0.5); }
.pu img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.35)); transition: transform var(--t-std) var(--ease-pop); }
.pu:hover img { transform: scale(1.15) rotate(-8deg); }
.pu h3 { font-size: 1.45rem; font-weight: 800; }
.pu p { color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; }
.pu .dur { position: absolute; top: 18px; right: 16px; font: 800 0.85rem/1 var(--font-display); color: var(--ink); background: var(--coin); padding: 6px 9px; border-radius: 10px; }
.upgrade-note {
  margin-top: 24px; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 20px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1.5px dashed rgba(255, 255, 255, 0.2);
}
.upgrade-note p { color: rgba(255, 255, 255, 0.8); flex: 1 1 320px; }
.lvl { display: flex; gap: 6px; }
.lvl i { width: 26px; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.lvl i.on { background: var(--go); box-shadow: 0 0 12px rgba(63, 174, 42, 0.7); }
@media (max-width: 960px) { .pu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pu { padding: 18px 14px; } .pu h3 { font-size: 1.2rem; } .pu p { font-size: 0.9rem; } }

/* ---------- Road events ---------- */
.events-strip {
  position: relative; height: 180px; margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden;
  background: url("img/road-2.webp") 0 50% / auto 100% repeat-x, var(--asphalt);
  border: 3px solid var(--ink); box-shadow: var(--shadow-chunky);
}
.events-strip .convoy { position: absolute; top: 50%; display: flex; gap: 22px; align-items: center; height: 60%; translate: 0 -50%; animation: convoy 16s linear infinite; }
.events-strip .convoy img { height: 100%; width: auto; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.3)); }
.events-strip .convoy img.tractor { height: 78%; }
.events-strip .banner { position: absolute; z-index: 2; left: 50%; top: 14px; translate: -50% 0; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--shadow-chunky); transition: transform var(--t-std) var(--ease-pop); }
.event-card:hover { transform: translateY(-6px); }
.event-card img { aspect-ratio: 16 / 8.5; object-fit: cover; width: 100%; border-bottom: 3px solid var(--ink); }
.event-card div { padding: 18px 20px 22px; display: grid; gap: 6px; }
.event-card h3 { font-size: 1.5rem; font-weight: 800; }
.event-card p { color: var(--ink-soft); }
@media (max-width: 860px) { .events-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Progression ---------- */
.progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.panel { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-chunky); display: grid; gap: 16px; align-content: start; }
.panel h3 { font-size: 1.8rem; font-weight: 800; }
.panel > p { color: var(--ink-soft); }
.stage-track { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; position: relative; }
.stage-track::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 6px; border-radius: 6px; background: var(--line); }
.stage-track::after {
  content: ""; position: absolute; left: 21px; top: 10px; width: 6px; border-radius: 6px; background: var(--go);
  height: calc((100% - 20px) * var(--p, 0)); transition: height 1.4s var(--ease-out);
}
.stage-track li { position: relative; z-index: 1; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.stage-track .n {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 3px solid var(--ink);
  font: 800 1.2rem/1 var(--font-display); transition: background var(--t-std), transform var(--t-std) var(--ease-pop);
}
.stage-track li.lit .n { background: var(--sun); transform: scale(1.06); }
.stage-track strong { font: 800 1.15rem/1.1 var(--font-display); letter-spacing: 0.03em; }
.stage-track small { display: block; color: var(--ink-mute); font-weight: 600; font-size: 0.85rem; }
.stage-track .roads { font-weight: 700; color: var(--ink-mute); font-size: 0.85rem; }
.daily-shot { border-radius: 18px; border: 3px solid var(--ink); }
.ach-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.ach-grid img { border-radius: 18px; border: 2.5px solid var(--ink); transition: transform var(--t-std) var(--ease-pop); }
.ach-grid img:hover { transform: scale(1.12) rotate(-4deg); }
.span-2 { grid-column: 1 / -1; }
.ach-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: center; }
@media (max-width: 860px) { .progress-grid, .ach-row { grid-template-columns: 1fr; } .ach-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Gallery ---------- */
.gallery { padding-bottom: clamp(72px, 10vw, 128px); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 720px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 28px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; scroll-snap-align: start; display: grid; gap: 12px; }
.rail figcaption { font-weight: 700; color: var(--ink-soft); padding-left: 6px; }
.rail-controls { display: flex; gap: 10px; justify-content: flex-end; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sun); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 0 var(--ink); transition: transform var(--t-quick) var(--ease-pop);
}
.round-btn:hover { transform: translateY(-2px); }
.round-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.round-btn svg { width: 22px; height: 22px; }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.gallery-head .section-head { margin: 0; }

/* ---------- Fair play ---------- */
.fair { background: linear-gradient(180deg, #eaf6df, #f6fbef); }
.fair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.fair-item { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 2px solid #d4e9c4; }
.fair-item svg { width: 40px; height: 40px; color: var(--go-deep); }
.fair-item h3 { font-size: 1.4rem; font-weight: 800; }
.fair-item p { color: var(--ink-soft); }
.shop-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 2px solid #d4e9c4; }
.shop-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.shop-table th, .shop-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid #e6f0dc; vertical-align: top; }
.shop-table th { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); background: #f4faee; }
.shop-table tr:last-child td { border-bottom: 0; }
.shop-table td:last-child, .shop-table th:last-child { text-align: right; white-space: nowrap; font-weight: 800; }
.shop-table small { color: var(--ink-mute); display: block; }
.fine { margin-top: 12px; color: var(--ink-mute); font-size: 0.9rem; }
@media (max-width: 860px) { .fair-grid { grid-template-columns: 1fr; } .shop-table th, .shop-table td { padding: 12px; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font: 700 1.15rem/1.3 var(--font-display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); font: 800 1.2rem/1 var(--font-body);
  transition: transform var(--t-std) var(--ease-pop);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 20px 20px; color: var(--ink-soft); display: grid; gap: 10px; }
.faq-list details[open] .answer { animation: riseIn var(--t-std) var(--ease-out); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: clamp(28px, 4vw, 48px);
  background: radial-gradient(800px 400px at 80% 0%, rgba(255, 220, 120, 0.5), transparent 60%), linear-gradient(135deg, #3fae2a, #2a7d1d);
  color: #fff; border: 4px solid var(--ink); box-shadow: 0 10px 0 var(--ink);
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 20px;
  padding: clamp(28px, 5vw, 56px);
}
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.cta-band p { font-size: 1.15rem; opacity: 0.92; max-width: 40ch; }
.cta-band .cta-copy { display: grid; gap: 18px; justify-items: start; position: relative; z-index: 1; }
.cta-band .peek { position: relative; align-self: end; margin-bottom: calc(clamp(28px, 5vw, 56px) * -1 - 4px); }
.cta-band .peek img { width: 100%; max-width: 420px; margin-left: auto; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.3)); }
.cta-band .btn-ghost { border-color: var(--ink); }
.qr { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 0.92rem; opacity: 0.95; }
.qr svg { width: 92px; height: 92px; background: #fff; border-radius: 12px; padding: 6px; border: 3px solid var(--ink); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band .cta-copy { justify-items: center; } .cta-band .peek img { margin: 0 auto; max-width: 300px; } .qr { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.72); padding: 64px 0 40px; margin-top: clamp(72px, 10vw, 120px); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; letter-spacing: 0.03em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color var(--t-quick); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { width: 170px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 40px; padding-top: 24px; display: grid; gap: 8px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Legal / doc pages ---------- */
.doc-hero { padding: 132px 0 40px; background: linear-gradient(180deg, #fff1d2, var(--cream)); }
.doc-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; margin: 10px 0 12px; }
.doc-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 60ch; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding-top: 32px; }
.toc { position: sticky; top: 96px; display: grid; gap: 4px; font-size: 0.92rem; }
.toc strong { font-family: var(--font-display); font-size: 1rem; margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--ink-soft); padding: 5px 10px; border-radius: 8px; border-left: 3px solid transparent; }
.toc a:hover { background: rgba(29, 35, 64, 0.05); color: var(--ink); }
.toc a.active { border-left-color: var(--go); color: var(--ink); font-weight: 650; }
.prose { max-width: 72ch; display: grid; gap: 16px; }
.prose section { display: grid; gap: 12px; scroll-margin-top: 96px; padding-bottom: 18px; }
.prose h2 { font-size: 1.75rem; font-weight: 800; margin-top: 12px; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 6px; }
.prose p, .prose li { color: #353b58; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--sky-deep); text-underline-offset: 3px; }
.callout { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 8px; }
.callout.green { background: #eff8e7; border-color: #cfe6bf; }
.data-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: var(--cream-2); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }
.table-scroll { overflow-x: auto; border-radius: 14px; border: 2px solid var(--line); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-14px) rotate(0.6deg); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.84); opacity: 0.7; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(6px, -16px) rotate(6deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes tilt { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes tap { 0%, 40%, 100% { transform: scale(1); background: rgba(255, 255, 255, 0.92); } 20% { transform: scale(0.86); background: var(--sun); } }
@keyframes walk { to { background-position: 100% 0; } }
@keyframes tuck {
  0% { background-position: 0 0; } 8% { background-position: 12.5% 0; } 12% { background-position: 25% 0; } 16% { background-position: 37.5% 0; }
  20% { background-position: 50% 0; } 24% { background-position: 62.5% 0; } 28% { background-position: 75% 0; } 32% { background-position: 87.5% 0; }
  36%, 74% { background-position: 100% 0; } 78% { background-position: 75% 0; } 82% { background-position: 50% 0; } 86% { background-position: 25% 0; } 90%, 100% { background-position: 0 0; }
}
@keyframes holdText { 0%, 74% { content: "HOLD TO HIDE"; } 75%, 100% { content: "LET GO TO RUSH"; } }
@keyframes rush { 0% { top: 100%; } 100% { top: -75%; } }
@keyframes coinUp { 0% { top: 30%; opacity: 1; transform: scale(1); } 40% { top: 30%; opacity: 1; transform: scale(1); } 55% { top: 10%; opacity: 0; transform: scale(1.5); } 100% { top: 10%; opacity: 0; } }
@keyframes floatUp { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -46px); opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes worldIn { from { opacity: 0; transform: translateX(-24px) rotate(-1.5deg) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes runnerIn { 0% { opacity: 0; transform: translateY(30px) scale(0.85); } 100% { opacity: 1; transform: none; } }
@keyframes convoy { from { left: 100%; } to { left: -1400px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .events-strip .convoy { left: 8%; animation: none; }
}
