/* =====================================================================
   outdusk landing page - 90s arcade / CRT theme
   Palette + fonts mirror the game (lib/core/theme/arcade_theme.dart).
   Dark-only by design: the game lives in the dark.
   ===================================================================== */

:root {
  --ink: #0e0c17;
  --ink-2: #17132b; /* raised panel */
  --ink-3: #211b3d; /* card / border-lit */
  --teal: #5dcaa5;
  --amber: #ef9f27;
  --coral: #d85a30;
  --purple: #7f77dd;
  --pink: #f4c0d1;

  --text: #efebff;
  --muted: #a79fd0;
  --dim: #6e6699;

  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-term: "VT323", "Courier New", monospace;

  --maxw: 1140px;
  --radius: 14px;
  --glow-teal: 0 0 18px rgba(93, 202, 165, 0.55);
  --glow-amber: 0 0 18px rgba(239, 159, 39, 0.55);
  --glow-purple: 0 0 22px rgba(127, 119, 221, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-term);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtle radial neon glows behind the page */
  background-image:
    radial-gradient(
      60% 50% at 15% 0%,
      rgba(127, 119, 221, 0.16),
      transparent 70%
    ),
    radial-gradient(
      50% 40% at 90% 12%,
      rgba(93, 202, 165, 0.12),
      transparent 70%
    ),
    radial-gradient(
      60% 60% at 50% 120%,
      rgba(239, 159, 39, 0.1),
      transparent 70%
    );
  background-attachment: fixed;
}

h1,
h2,
h3,
.pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  line-height: 1.35;
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  color: var(--amber);
}

img {
  max-width: 100%;
  display: block;
}

/* ---- CRT overlay (scanlines + vignette over everything) ---- */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.16) 3px,
    rgba(0, 0, 0, 0.16) 4px
  );
}
.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 50% 50%,
    transparent 62%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(14, 12, 23, 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 2px solid var(--ink-3);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 15px;
  letter-spacing: 1px;
}
.site-logo:hover {
  color: var(--text);
}
.site-logo img {
  filter: drop-shadow(0 0 6px rgba(93, 202, 165, 0.5));
}

.header-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 21px;
}
.header-nav a {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.header-nav a:hover {
  color: var(--teal);
  text-shadow: var(--glow-teal);
}

.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 2px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--glow-amber);
  white-space: nowrap;
}
.soon-pill svg {
  width: 13px;
  height: 13px;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn span {
  min-width: 0;
  white-space: normal;
}
.btn {
  max-width: 100%;
}
.btn-primary {
  background: var(--amber);
  color: #1a1200;
  box-shadow:
    0 0 0 rgba(239, 159, 39, 0),
    6px 6px 0 rgba(216, 90, 48, 0.55);
}
.btn-primary:hover {
  color: #1a1200;
  transform: translate(-2px, -2px);
  box-shadow:
    var(--glow-amber),
    8px 8px 0 rgba(216, 90, 48, 0.6);
}
.btn-primary.is-soon {
  cursor: default;
  opacity: 0.96;
}
.btn-primary.is-soon:hover {
  transform: none;
  box-shadow: 6px 6px 0 rgba(216, 90, 48, 0.55);
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px) 60px;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-text {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--teal);
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.blink {
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 6.2vw, 62px);
  color: var(--text);
  text-shadow:
    3px 3px 0 var(--coral),
    -1px -1px 0 var(--teal),
    0 0 26px rgba(127, 119, 221, 0.5);
}
.subtitle {
  margin: 0 0 20px;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--amber);
  line-height: 1.3;
}
.game-desc {
  margin: 0 0 24px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 21px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.chip {
  padding: 6px 14px;
  border: 2px solid var(--ink-3);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--teal);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cta-row {
  margin-bottom: 18px;
}
.disclaimer {
  margin: 0;
  max-width: 52ch;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.4;
}

/* =====================================================================
   Phone mockup + game scenes
   ===================================================================== */
.app-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone {
  width: min(300px, 78vw);
  aspect-ratio: 300 / 620;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2450, #100d20);
  border: 2px solid #3a3363;
  box-shadow:
    0 0 0 2px #05040c,
    0 30px 60px rgba(0, 0, 0, 0.6),
    var(--glow-purple);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid #070510;
}
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #05040c;
  border-radius: 999px;
  z-index: 6;
}
.phone-screen .scanlines {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 0, 0, 0.22) 3px 4px
  );
  mix-blend-mode: multiply;
}
.phone-screen .scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    130% 100% at 50% 50%,
    transparent 60%,
    rgba(0, 0, 0, 0.5)
  );
}

/* carousel */
.scene-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.scene-carousel::-webkit-scrollbar {
  display: none;
}
.scene {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}
/* per-scene background tints (zones) */
.scene-run {
  background: linear-gradient(180deg, #171233 0%, #0d0a1c 100%);
}
.scene-plane {
  background: linear-gradient(180deg, #241a3a 0%, #0e0a1e 100%);
}
.scene-relic {
  background: linear-gradient(180deg, #2a2038 0%, #100b1e 100%);
}
.scene-gadget {
  background: linear-gradient(180deg, #10233a 0%, #0a0d1e 100%);
}

.scene-hud {
  position: absolute;
  top: 40px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--text);
}
.hud-dist i {
  font-style: normal;
  font-size: 8px;
  color: var(--muted);
  margin-left: 2px;
}
.hud-relics {
  display: inline-flex;
  gap: 3px;
  font-size: 12px;
}
.hud-relics .relic {
  color: var(--dim);
  font-style: normal;
}
.hud-relics .relic.on {
  color: var(--amber);
  text-shadow: var(--glow-amber);
}
.hud-badge {
  font-size: 8px;
  color: var(--ink);
  background: var(--teal);
  padding: 4px 6px;
  border-radius: 4px;
  box-shadow: var(--glow-teal);
}
.scene-substat {
  position: absolute;
  top: 66px;
  left: 16px;
  z-index: 3;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--purple);
  letter-spacing: 0.5px;
}
.scene-substat b {
  color: var(--teal);
}

.scene-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.scene-stage.dim {
  filter: brightness(0.45) saturate(0.8);
}

.scene-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(127, 119, 221, 0), rgba(127, 119, 221, 0.14)),
    repeating-linear-gradient(
      90deg,
      rgba(93, 202, 165, 0.25) 0 2px,
      transparent 2px 26px
    );
  border-top: 2px solid var(--teal);
  box-shadow: 0 -2px 14px rgba(93, 202, 165, 0.35);
}

/* runner */
.runner {
  position: absolute;
  left: 46px;
  bottom: 74px;
  width: 26px;
  height: 26px;
  background: var(--amber);
  border-radius: 5px;
  box-shadow: var(--glow-amber);
  z-index: 3;
}
.runner-eyes {
  position: absolute;
  top: 7px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: -9px 0 0 var(--ink);
}
.runner.jumping {
  animation: hop 1.6s ease-in-out infinite;
}
@keyframes hop {
  0%,
  100% {
    bottom: 74px;
  }
  45% {
    bottom: 150px;
  }
  55% {
    bottom: 150px;
  }
}
.runner.flying {
  bottom: 150px;
  background: var(--teal);
  box-shadow: var(--glow-teal);
}
.jet-flame {
  position: absolute;
  bottom: -14px;
  left: 6px;
  width: 12px;
  height: 16px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, var(--amber), var(--coral));
  animation: flicker 0.18s steps(2) infinite;
}
@keyframes flicker {
  0% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.7);
    opacity: 0.7;
  }
}

/* obstacles + sparks */
.obstacle {
  position: absolute;
  bottom: 74px;
  width: 20px;
  height: 44px;
  background: var(--coral);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(216, 90, 48, 0.6);
  z-index: 2;
}
.obstacle.o1 {
  right: 40px;
  animation: slide 2.2s linear infinite;
}
.obstacle.o2 {
  right: 150px;
}
.obstacle.low {
  height: 24px;
  background: var(--purple);
  box-shadow: var(--glow-purple);
}
@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-260px);
    opacity: 0.2;
  }
}
.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: var(--glow-teal);
}
.spark.s1 {
  top: 120px;
  right: 70px;
  animation: twinkle 1.3s ease-in-out infinite;
}
.spark.s2 {
  top: 150px;
  right: 120px;
  animation: twinkle 1.7s ease-in-out infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* plane + crate */
.plane {
  position: absolute;
  top: 96px;
  right: 30px;
  width: 40px;
  height: 12px;
  background: var(--pink);
  border-radius: 8px 3px 3px 8px;
  box-shadow: 0 0 14px rgba(244, 192, 209, 0.6);
  animation: fly 3.4s linear infinite;
}
.plane-wing {
  position: absolute;
  top: -6px;
  left: 14px;
  width: 12px;
  height: 8px;
  background: var(--purple);
  border-radius: 3px;
}
@keyframes fly {
  from {
    transform: translateX(30px);
  }
  to {
    transform: translateX(-230px);
  }
}
.crate {
  position: absolute;
  top: 150px;
  right: 120px;
  width: 20px;
  height: 20px;
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: var(--glow-teal);
}
.crate.falling {
  animation: drop 3.4s ease-in infinite;
}
@keyframes drop {
  0% {
    top: 120px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 210px;
  }
}
.plane-banner {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--amber);
  text-shadow: 2px 2px 0 var(--coral);
  animation: pop 3.4s ease-in-out infinite;
}
@keyframes pop {
  0%,
  20% {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }
  35%,
  80% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
  }
}

/* relic burst */
.relic-burst {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
}
.relic-medal {
  font-size: 52px;
  color: var(--amber);
  text-shadow: var(--glow-amber);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}
.relic-label {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--text);
  margin-top: 8px;
}
.relic-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 4px;
}

/* dots */
.scene-dots {
  display: flex;
  gap: 8px;
}
.scene-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
  border: 1px solid var(--dim);
  transition: all 0.2s;
}
.scene-dot.active {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: var(--glow-teal);
}

/* =====================================================================
   Sections
   ===================================================================== */
section {
  position: relative;
}
.section-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 8vw, 96px) clamp(16px, 4vw, 40px);
}
section h2 {
  margin: 0 0 16px;
  font-size: clamp(20px, 3.4vw, 34px);
  color: var(--text);
  text-shadow: 2px 2px 0 var(--purple);
}
.section-intro {
  margin: 0 auto 48px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 22px;
}
.features-section h2,
.customize-section h2,
.howto-section h2,
.faq-section h2,
.final-cta h2 {
  text-align: center;
}
.features-section .section-intro,
.customize-section .section-intro,
.howto-section .section-intro {
  text-align: center;
}
.features-section .section-intro,
.customize-section .section-intro,
.howto-section .section-intro {
  max-width: 74ch;
  color: var(--dim);
}

.customize-section,
.final-cta {
  background: linear-gradient(180deg, rgba(23, 19, 43, 0.5), transparent);
  border-top: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
}
.howto-section {
  background: rgba(23, 19, 43, 0.35);
}

/* ---- feature deep-dive rows ---- */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-bottom: 72px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature-row:nth-child(even) .feature-row-media {
  order: 2;
}
.feature-row-text h3 {
  margin: 14px 0 12px;
  font-size: clamp(15px, 2vw, 20px);
  color: var(--amber);
}
.feature-row-text p {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  background: var(--ink-2);
  color: var(--teal);
}
.feature-icon svg {
  width: 26px;
  height: 26px;
}

/* art panels */
.feature-row-media {
  display: flex;
  justify-content: center;
}
.art {
  width: 100%;
  max-width: 380px;
  min-height: 210px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.art-seed .seed-tile {
  text-align: center;
}
.seed-day {
  display: block;
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--amber);
}
.seed-code {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 18px;
  letter-spacing: 2px;
}
.seed-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 60px;
  margin: 16px 0;
}
.seed-node {
  width: 12px;
  height: 22px;
  background: var(--teal);
  border-radius: 2px;
  opacity: 0.55;
}
.seed-node.tall {
  height: 46px;
  opacity: 1;
}
.seed-caption {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--teal);
  letter-spacing: 1px;
}

.art-controls svg {
  width: 100%;
  max-width: 240px;
  color: var(--dim);
}
.controls-legend {
  display: flex;
  gap: 26px;
  font-size: 20px;
  color: var(--muted);
}
.controls-legend .k {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 5px;
  margin-right: 8px;
}
.k.teal {
  background: var(--teal);
  color: var(--ink);
}
.k.amber {
  background: var(--amber);
  color: var(--ink);
}

.art-relic .relic-badges {
  display: flex;
  gap: 16px;
}
.badge {
  width: 74px;
  height: 88px;
  border-radius: 10px;
  border: 1px solid var(--ink-3);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--dim);
}
.badge.on {
  border-color: var(--amber);
  color: var(--amber);
}
.badge-star {
  font-size: 26px;
}
.badge-m {
  font-family: var(--font-pixel);
  font-size: 11px;
}
.streak-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--amber);
}
.streak-flame {
  font-size: 20px;
}

/* ---- feature grid ---- */
.features-more {
  text-align: center;
  margin: 0 0 34px;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--amber);
}
/* 3-and-2 split: six-column track, each card spans two so three sit per row.
   The fourth card starts on column 2, centering the last two under the top row. */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.features-grid .feature-card {
  grid-column: span 2;
}
.features-grid .feature-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.feature-card {
  padding: 26px 22px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}
.feature-card h3 {
  margin: 16px 0 10px;
  font-size: 14px;
  color: var(--amber);
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

/* =====================================================================
   Customize
   ===================================================================== */
.runner-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}
.runner-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--ink-2);
  min-width: 108px;
}
.runner-chip span {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--muted);
}
.runner-face {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 8px currentColor;
}
.runner-face::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: -13px 0 0 var(--ink);
}
.runner-1 .runner-face {
  background: var(--teal);
  color: var(--teal);
}
.runner-2 .runner-face {
  background: var(--amber);
  color: var(--amber);
}
.runner-3 .runner-face {
  background: var(--coral);
  color: var(--coral);
}
.runner-4 .runner-face {
  background: var(--purple);
  color: var(--purple);
}
.runner-5 .runner-face {
  background: var(--pink);
  color: var(--pink);
}

.color-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: 0 0 5px currentColor;
}
.color-1 {
  background: #5dcaa5;
  color: #5dcaa5;
}
.color-2 {
  background: #ef9f27;
  color: #ef9f27;
}
.color-3 {
  background: #d85a30;
  color: #d85a30;
}
.color-4 {
  background: #7f77dd;
  color: #7f77dd;
}
.color-5 {
  background: #f4c0d1;
  color: #f4c0d1;
}
.color-6 {
  background: #4fb0e0;
  color: #4fb0e0;
}
.color-7 {
  background: #e14b8a;
  color: #e14b8a;
}
.color-8 {
  background: #9be15d;
  color: #9be15d;
}
.color-9 {
  background: #f2d74e;
  color: #f2d74e;
}
.color-10 {
  background: #c06bf0;
  color: #c06bf0;
}
.color-11 {
  background: #58e0c8;
  color: #58e0c8;
}
.color-12 {
  background: #ff7b5a;
  color: #ff7b5a;
}

/* =====================================================================
   How it works
   ===================================================================== */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.howto-step {
  padding: 30px 24px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--ink-2);
  text-align: center;
}
.howto-num {
  font-family: var(--font-pixel);
  font-size: 30px;
  color: var(--amber);
}
.howto-step h3 {
  margin: 16px 0 10px;
  font-size: 14px;
  color: var(--teal);
}
.howto-step p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-container {
  max-width: 780px;
}
.faq-item {
  border: 1px solid var(--ink-3);
  border-radius: 10px;
  background: var(--ink-2);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.7;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--amber);
  font-size: 20px;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item[open] summary {
  color: var(--amber);
}
.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 21px;
}

/* =====================================================================
   Final CTA
   ===================================================================== */
.final-cta .section-container {
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(26px, 5vw, 50px);
  margin-bottom: 18px;
}
.final-cta p {
  margin: 0 auto 30px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 22px;
}

/* glitch text */
.glitch {
  position: relative;
  color: var(--text);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.85;
}
.glitch::before {
  color: var(--teal);
  animation: gl1 2.6s infinite steps(2);
}
.glitch::after {
  color: var(--coral);
  animation: gl2 3.1s infinite steps(2);
}
@keyframes gl1 {
  0%,
  92%,
  100% {
    transform: translate(0, 0);
  }
  94% {
    transform: translate(-2px, 1px);
  }
  96% {
    transform: translate(2px, -1px);
  }
}
@keyframes gl2 {
  0%,
  90%,
  100% {
    transform: translate(0, 0);
  }
  93% {
    transform: translate(2px, 1px);
  }
  97% {
    transform: translate(-2px, -1px);
  }
}

/* =====================================================================
   Footer
   ===================================================================== */
.legal-footer {
  border-top: 1px solid var(--ink-3);
  padding: 20px clamp(16px, 4vw, 40px) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  background: rgba(14, 12, 23, 0.7);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text);
}
.footer-brand img {
  border-radius: 5px;
}
.footer-copy {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  font-size: 12px;
}
.footer-links a {
  color: var(--dim);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-links a[aria-current="page"] {
  color: var(--text);
}
.footer-links .dot {
  color: var(--dim);
  opacity: 0.5;
}

/* =====================================================================
   Legal + 404 pages
   ===================================================================== */
.back-link {
  margin-left: auto;
  font-size: 20px;
  color: var(--muted);
}
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 64px) clamp(16px, 4vw, 40px) 72px;
}
.legal-main h1 {
  font-size: clamp(18px, 3vw, 26px);
  color: var(--amber);
  margin: 0 0 8px;
  text-shadow: 2px 2px 0 var(--coral);
}
.legal-updated {
  color: var(--dim);
  font-size: 18px;
  margin: 0 0 34px;
}
.legal-content h2 {
  font-size: 14px;
  color: var(--teal);
  margin: 30px 0 12px;
  text-shadow: none;
}
.legal-content p {
  color: var(--muted);
  font-size: 21px;
  margin: 0 0 16px;
}
.legal-content a {
  color: var(--teal);
  text-decoration: underline;
}
.contact-cta {
  margin: 28px 0 34px;
}
.contact-cta a.btn-primary {
  text-decoration: none;
}

.error-body {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}
.error-main {
  text-align: center;
  padding: 40px;
}
.error-code {
  font-family: var(--font-pixel);
  font-size: clamp(44px, 12vw, 92px);
  color: var(--text);
  margin: 0;
}
.error-main h1 {
  font-size: clamp(18px, 4vw, 30px);
  color: var(--coral);
  margin: 14px 0 12px;
}
.error-text {
  color: var(--muted);
  font-size: 22px;
  margin: 0 0 28px;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    order: 2;
  }
  .app-showcase {
    order: 1;
  }
  .eyebrow,
  .chips,
  .cta-row {
    justify-content: center;
  }
  .chips {
    justify-content: center;
  }
  .game-desc,
  .disclaimer {
    margin-left: auto;
    margin-right: auto;
  }
  .feature-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .feature-row:nth-child(even) .feature-row-media {
    order: 0;
  }
  .feature-row-media {
    order: 0 !important;
  }
  .feature-icon {
    margin: 0 auto;
  }
  .howto-steps {
    grid-template-columns: 1fr;
  }
  .header-nav {
    display: none;
  }
  /* Two-up on tablets; drop the desktop 3-and-2 centering. */
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .features-grid .feature-card,
  .features-grid .feature-card:nth-child(4) {
    grid-column: auto;
  }
}
@media (max-width: 460px) {
  body {
    font-size: 18px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .soon-pill span:last-child {
    display: none;
  }
  .soon-pill {
    padding: 8px;
  }
  /* Press Start 2P doesn't shrink on its own; keep the wide CTA + chips
     inside the viewport on small phones. */
  .btn {
    font-size: 10px;
    padding: 14px 18px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .hero h1 {
    font-size: 34px;
    text-shadow:
      2px 2px 0 var(--coral),
      0 0 20px rgba(127, 119, 221, 0.5);
  }
  .chip {
    font-size: 8px;
    padding: 6px 10px;
  }
  .site-logo span {
    display: none;
  }
  .final-cta h2 {
    font-size: 26px;
  }
  .legal-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px 12px;
  }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .runner.jumping {
    bottom: 120px;
  }
}
