/* ==========================================================================
   ARCADE APPRENTICE — arcadeapprentice.co.uk
   80s Blackpool, Golden Mile at night, synthwave sunset over the Irish Sea.
   Colours and fonts match the trailer.  © 2026 Jonathan Terrington
   ========================================================================== */

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face { font-family: "Press Start 2P"; src: url(../fonts/press-start-2p.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Monoton"; src: url(../fonts/monoton.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url(../fonts/vt323.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --sky-0: #05010d;
  --sky-1: #1a0633;
  --sky-2: #3a0a4a;
  --night: #12052a;
  --night-2: #0b0320;
  --panel: #170838;
  --pink: #ff3cac;
  --cyan: #22e6ff;
  --yellow: #ffe14d;
  --orange: #ff6a1a;
  --orange-dk: #b8420a;
  --cream: #fbf3e1;
  --navy: #0c1626;
  --green: #7cff6b;
  --purple: #b86bff;
  --red: #ff2a3c;
  --muted: #cbbbe0;
  --line: rgba(184, 107, 255, .35);

  --px: "Press Start 2P", "Courier New", monospace;
  --neon: "Monoton", "Press Start 2P", cursive;
  --crt: "VT323", "Courier New", monospace;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: 16px;
  --radius: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; 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(--yellow); color: var(--navy); padding: 10px 14px; border-radius: 8px;
  font-family: var(--px); font-size: 11px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Pixel label used above headings */
.label {
  display: inline-block;
  font-family: var(--px); font-size: 11px; letter-spacing: .08em;
  color: var(--cyan); text-shadow: 0 0 8px rgba(34, 230, 255, .6);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--px);
  font-size: clamp(20px, 3.4vw, 34px);
  line-height: 1.35;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--pink), 0 0 24px rgba(255, 60, 172, .45);
  margin-bottom: 18px;
}
.section-sub { color: var(--muted); font-size: 1.125rem; margin-bottom: 28px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--orange); --b-dk: var(--orange-dk); --t: var(--navy);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 26px 14px;
  background: var(--b); color: var(--t);
  border: 4px solid var(--navy); border-radius: 12px;
  box-shadow: 0 6px 0 var(--b-dk), 0 6px 0 4px var(--navy), 0 0 30px rgba(255, 106, 26, .45);
  text-decoration: none; text-align: center;
  font-family: var(--px); font-size: clamp(14px, 2vw, 18px); line-height: 1.2;
  transition: transform .08s ease, box-shadow .08s ease, filter .2s ease;
  cursor: pointer;
}
.btn small { font-family: var(--body); font-weight: 700; font-size: 14px; letter-spacing: 0; }
.btn:hover { color: var(--t); filter: brightness(1.08); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--b-dk), 0 1px 0 4px var(--navy), 0 0 20px rgba(255, 106, 26, .4); }
.btn--coin { --b: var(--yellow); --b-dk: #b99a1c; box-shadow: 0 6px 0 var(--b-dk), 0 6px 0 4px var(--navy), 0 0 30px rgba(255, 225, 77, .4); }
.btn--ghost {
  --b: transparent; --t: var(--cyan);
  border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 230, 255, .3), inset 0 0 12px rgba(34, 230, 255, .15);
  font-size: 12px; padding: 12px 18px;
}
.btn--ghost:hover { color: var(--yellow); border-color: var(--yellow); }
.btn.is-soon { --b: #3a2a55; --b-dk: #241838; --t: var(--muted); box-shadow: 0 6px 0 var(--b-dk), 0 6px 0 4px var(--navy); cursor: default; }
.btn.is-soon:active { transform: none; }
.blink { animation: blink 1.2s step-end infinite; }
@keyframes blink { 0% { opacity: 1; } 68% { opacity: 0; } 100% { opacity: 1; } }

/* ---------- Illuminations: strings of bulbs ---------- */
.bulbs {
  position: relative; height: 16px; width: 100%;
  background: radial-gradient(circle at 8px 8px, var(--yellow) 0 3.4px, rgba(255, 225, 77, .35) 4.6px, transparent 7px) 0 0 / 24px 16px repeat-x;
}
.bulbs::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20px 8px, var(--pink) 0 3.4px, rgba(255, 60, 172, .35) 4.6px, transparent 7px) 0 0 / 24px 16px repeat-x;
  animation: chase 1s steps(1, end) infinite;
}
.bulbs::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgba(12, 22, 38, .9);
}
@keyframes chase { 50% { opacity: .15; } }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: 14px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--px); font-size: 12px; color: var(--cream); text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 106, 26, .7);
}
.brand img { width: 38px; height: 38px; }
.nav { display: none; gap: 6px; align-items: center; }
.nav a {
  font-family: var(--px); font-size: 10px; color: var(--cream); text-decoration: none;
  padding: 9px 10px; border-radius: 8px;
}
.nav a:hover { color: var(--yellow); background: rgba(255, 255, 255, .06); }
.nav a.nav-cta { background: var(--orange); color: var(--navy); border: 3px solid var(--navy); box-shadow: 0 0 16px rgba(255, 106, 26, .5); }
.free-play {
  font-family: var(--px); font-size: 10px; color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 225, 77, .7);
}
.topbar .mobile-cta { font-size: 10px; padding: 9px 10px; border-width: 3px; box-shadow: 0 0 16px rgba(255, 106, 26, .5); flex-direction: row; }
@media (min-width: 980px) {
  .nav { display: flex; }
  .topbar .mobile-cta { display: none; }
}

/* ==========================================================================
   HERO — the Golden Mile at sunset
   ========================================================================== */
.hero {
  --hz: clamp(420px, 64svh, 640px);   /* where the sea meets the sky */
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night-2);
  padding: 96px 0 72px;
}
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky {
  position: absolute; left: 0; right: 0; top: 0; height: var(--hz);
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 48%, #2e0943 78%, var(--sky-2) 100%);
}
.stars, .stars::after {
  position: absolute; inset: 0 0 auto 0; height: calc(var(--hz) * .7);
  background-image:
    radial-gradient(1.5px 1.5px at 7% 12%, #ffe9ff 90%, transparent),
    radial-gradient(1px 1px at 18% 30%, #ffe9ff 90%, transparent),
    radial-gradient(2px 2px at 26% 8%, #ffe9ff 90%, transparent),
    radial-gradient(1px 1px at 35% 22%, #ffe9ff 90%, transparent),
    radial-gradient(1.5px 1.5px at 47% 14%, #ffe9ff 90%, transparent),
    radial-gradient(1px 1px at 55% 35%, #ffe9ff 90%, transparent),
    radial-gradient(2px 2px at 63% 6%, #ffe9ff 90%, transparent),
    radial-gradient(1px 1px at 71% 26%, #ffe9ff 90%, transparent),
    radial-gradient(1.5px 1.5px at 82% 16%, #ffe9ff 90%, transparent),
    radial-gradient(1px 1px at 90% 33%, #ffe9ff 90%, transparent),
    radial-gradient(1.5px 1.5px at 96% 9%, #ffe9ff 90%, transparent),
    radial-gradient(1px 1px at 12% 44%, #ffe9ff 90%, transparent),
    radial-gradient(1px 1px at 41% 48%, #ffe9ff 90%, transparent),
    radial-gradient(1px 1px at 77% 46%, #ffe9ff 90%, transparent);
  opacity: .8;
}
.stars::after {
  content: ""; height: 100%;
  background-image:
    radial-gradient(2px 2px at 15% 20%, #fff 90%, transparent),
    radial-gradient(1.5px 1.5px at 38% 10%, #fff 90%, transparent),
    radial-gradient(2px 2px at 58% 24%, #fff 90%, transparent),
    radial-gradient(1.5px 1.5px at 86% 28%, #fff 90%, transparent),
    radial-gradient(2px 2px at 68% 40%, #fff 90%, transparent);
  animation: twinkle 3.2s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .1; } to { opacity: 1; } }

/* The sun, sinking into the Irish Sea */
.sun-glow {
  position: absolute; left: var(--sun-x, 50%); top: var(--hz);
  width: calc(var(--sun) * 2.2); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 60, 172, .45), rgba(255, 106, 26, .12) 45%, transparent 68%);
}
.sun {
  --sun: clamp(240px, 34vw, 430px);
  position: absolute; left: var(--sun-x, 50%); top: var(--hz);
  width: var(--sun); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe14d 8%, #ffb43c 26%, #ff7a3c 40%, #ff3cac 52%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 29%, transparent 29% 30.5%, #000 30.5% 34%, transparent 34% 36%, #000 36% 39.5%, transparent 39.5% 42%, #000 42% 44.5%, transparent 44.5% 47.5%, #000 47.5% 49.5%, transparent 49.5%);
          mask-image: linear-gradient(180deg, #000 0 29%, transparent 29% 30.5%, #000 30.5% 34%, transparent 34% 36%, #000 36% 39.5%, transparent 39.5% 42%, #000 42% 44.5%, transparent 44.5% 47.5%, #000 47.5% 49.5%, transparent 49.5%);
}
.hero .sun, .hero .sun-glow { --sun-x: 50%; }

/* Blackpool Tower, lit up */
.tower {
  position: absolute; bottom: calc(100% - var(--hz) - 4px);
  left: var(--tower-x, 8%);
  height: calc(var(--hz) * .82); width: auto; aspect-ratio: 240 / 640;
  filter: drop-shadow(0 0 18px rgba(255, 60, 172, .35));
}
.tw-bulbs path { stroke-dasharray: 0 9; animation: bulbs 1.2s linear infinite; }
.tw-bulbs .b2 { stroke-dashoffset: 4.5; animation-name: bulbs2; }
@keyframes bulbs { to { stroke-dashoffset: -18; } }
@keyframes bulbs2 { from { stroke-dashoffset: 4.5; } to { stroke-dashoffset: -13.5; } }

/* The sea, the prom, the tram */
.sea {
  position: absolute; left: 0; right: 0; top: var(--hz); height: 64px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 60, 172, .55) 0 2px, transparent 2px 9px) 50% 0 / 34% 100% no-repeat,
    linear-gradient(180deg, #2b0745, #1a0533);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,.85));
}
.sea::after { /* sun shimmer */
  content: ""; position: absolute; left: 50%; top: 0; width: 34%; height: 100%; translate: -50% 0;
  background: repeating-linear-gradient(90deg, rgba(255, 225, 77, .0) 0 18px, rgba(255, 225, 77, .5) 18px 30px, rgba(255, 225, 77, 0) 30px 52px);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 9px);
          mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 9px);
  animation: shimmer 3s linear infinite;
  opacity: .7;
}
@keyframes shimmer { to { background-position: 52px 0; } }
.prom {
  position: absolute; left: 0; right: 0; top: calc(var(--hz) + 64px); height: 4px;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 30px rgba(34, 230, 255, .6);
}
.tram {
  position: absolute; top: calc(var(--hz) + 64px - 52px); left: 0;
  width: 132px; height: 54px;
  animation: tram 26s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 225, 77, .35));
}
@keyframes tram { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 40px)); } }

/* The neon grid (the beach, obviously) */
.floor {
  position: absolute; left: 0; right: 0; top: calc(var(--hz) + 68px); bottom: 0; overflow: hidden;
  background: linear-gradient(180deg, #2a0640, #07020f 70%);
  perspective: 320px;
}
.floor::before {
  content: ""; position: absolute; left: -60%; right: -60%; top: 0; height: 160%;
  background-image:
    linear-gradient(rgba(255, 60, 172, .85) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 60, 172, .85) 2px, transparent 2px);
  background-size: 64px 64px;
  transform: rotateX(62deg); transform-origin: 50% 0;
  animation: grid 1.4s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 25%, #000 55%, transparent 85%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 25%, #000 55%, transparent 85%);
}
@keyframes grid { to { background-position: 0 64px; } }

/* A seagull. It's Blackpool. */
.gull {
  position: absolute; top: calc(var(--hz) * .22); left: 0; width: 34px;
  animation: gull 38s linear 6s infinite;
  opacity: 0;
}
.gull .w2 { visibility: hidden; }
.gull .w1, .gull .w2 { animation: flap .5s steps(1, end) infinite; }
.gull .w2 { animation-name: flap2; }
@keyframes flap { 50% { visibility: hidden; } }
@keyframes flap2 { 50% { visibility: visible; } }
@keyframes gull {
  0% { transform: translate(-60px, 0); opacity: 1; }
  30% { transform: translate(40vw, -30px); opacity: 1; }
  60% { transform: translate(80vw, 10px); opacity: 1; }
  72% { transform: translate(105vw, -20px); opacity: 1; }
  73%, 100% { transform: translate(105vw, -20px); opacity: 0; }
}

.crt-lines { /* scanlines over the whole hero */
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* Hero content */
.hero-inner {
  position: relative; z-index: 2;
  display: grid; gap: 34px; align-items: center;
}
.hero-copy { text-align: center; }
.hero-panel { /* a smoked-glass box so the words stay readable over the sunset */
  margin: 4px auto 0; max-width: 470px;
  padding: 16px 18px 22px;
  background: rgba(10, 2, 24, .66);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 60, 172, .35);
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(255, 60, 172, .18);
}
.hero h1 { margin: 0 auto; width: min(78vw, 380px); }
.hero h1 img { width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .55)); }
.kicker {
  font-family: var(--px); font-size: 11px; color: var(--cyan); letter-spacing: .1em;
  text-shadow: 0 0 10px rgba(34, 230, 255, .8); margin: 6px 0 14px;
}
.tagline {
  font-family: var(--body); font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem); line-height: 1.2;
  margin: 0 auto 12px; max-width: 18ch;
  text-shadow: 0 2px 0 var(--night-2), 0 0 22px rgba(18, 5, 42, .9);
}
.sub { color: var(--cream); opacity: .92; margin: 0 auto 26px; max-width: 34ch; text-shadow: 0 1px 0 var(--night-2), 0 0 14px rgba(18, 5, 42, .95); }
.hero-ctas { display: flex; gap: 22px 18px; flex-wrap: wrap; justify-content: center; align-items: center; }
.hero-note { margin: 20px 0 0; font-family: var(--crt); font-size: 21px; line-height: 1.2; color: var(--muted); letter-spacing: .02em; text-shadow: 0 0 10px rgba(18,5,42,1); }

@media (min-width: 900px) {
  .hero { padding: 104px 0 96px; }
  .hero-inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; }
  .hero .sun, .hero .sun-glow { --sun-x: 27%; }
  .tower { --tower-x: 31%; height: calc(var(--hz) * .86); }
  .hero h1 { width: min(100%, 410px); }
  .sea { background:
    repeating-linear-gradient(180deg, rgba(255, 60, 172, .55) 0 2px, transparent 2px 9px) 27% 0 / 28% 100% no-repeat,
    linear-gradient(180deg, #2b0745, #1a0533); }
  .sea::after { left: 27%; width: 28%; }
}
@media (max-width: 899px) {
  .tower { --tower-x: 4%; height: calc(var(--hz) * .74); opacity: .9; }
}

/* ---------- The cabinet ---------- */
.cabinet { position: relative; width: min(100%, 600px); margin: 0 auto; }
.marquee {
  position: relative;
  background: linear-gradient(180deg, #ff7a2a, var(--orange) 60%, #e5520c);
  border: 4px solid var(--navy); border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 18px 12px 14px; text-align: center;
  box-shadow: 0 0 40px rgba(255, 106, 26, .55), inset 0 -10px 18px rgba(0,0,0,.2);
}
.marquee .bulbs { position: absolute; left: 10px; right: 10px; top: 4px; width: auto; height: 12px; background-size: 20px 12px; }
.marquee .bulbs::after { background-size: 20px 12px; background-image: radial-gradient(circle at 16px 6px, var(--pink) 0 3px, rgba(255, 60, 172, .35) 4px, transparent 6px); }
.marquee .bulbs { background-image: radial-gradient(circle at 6px 6px, var(--yellow) 0 3px, rgba(255, 225, 77, .4) 4px, transparent 6px); }
.marquee .bulbs::before { top: 5px; }
.marquee-title {
  font-family: var(--px); font-size: clamp(13px, 2.4vw, 19px);
  color: var(--cream); letter-spacing: .04em;
  text-shadow: 3px 3px 0 var(--navy), 0 0 14px rgba(255, 255, 255, .5);
  margin-top: 8px; display: block;
}
.bezel {
  position: relative;
  background:
    linear-gradient(90deg, var(--pink) 0 8px, transparent 8px calc(100% - 8px), var(--cyan) calc(100% - 8px)),
    linear-gradient(180deg, #101b31, var(--navy));
  border: 4px solid var(--navy); border-top: 0; border-bottom: 0;
  padding: 18px 22px 20px;
}
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border-radius: 14px / 18px;
  box-shadow: 0 0 0 3px #05080f, 0 0 0 6px rgba(34, 230, 255, .5), 0 0 40px rgba(34, 230, 255, .35);
}
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.screen .trailer { object-fit: contain; z-index: 2; }
.screen-glass { /* scanlines and curve on the glass */
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0, 0, 0, .5)),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
  border-radius: inherit;
}
.screen.is-playing .screen-glass { opacity: .35; }
.coin-btn {
  position: absolute; inset: auto 0 0 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 26px 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 1, 13, .85) 55%);
  border: 0; color: var(--cream); cursor: pointer; font: inherit;
}
.coin-btn .coin-main { font-family: var(--px); font-size: clamp(13px, 2.2vw, 18px); color: var(--yellow); text-shadow: 0 0 12px rgba(255, 225, 77, .9), 2px 2px 0 var(--navy); }
.coin-btn .coin-sub { font-family: var(--body); font-weight: 700; font-size: 14px; }
.coin-btn:hover .coin-main, .coin-btn:focus-visible .coin-main { color: #fff; }
.screen.is-playing .coin-btn { display: none; }
.game-over {
  position: absolute; inset: 0; z-index: 5; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: rgba(5, 1, 13, .88); padding: 12px;
}
.screen.is-over .game-over { display: flex; }
.game-over strong { font-family: var(--px); font-size: clamp(16px, 3vw, 26px); color: var(--red); text-shadow: 0 0 16px rgba(255, 42, 60, .8); }
.game-over .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.game-over button, .game-over a {
  font-family: var(--px); font-size: 11px; padding: 10px 12px; border-radius: 8px;
  border: 3px solid var(--cyan); background: transparent; color: var(--cyan); cursor: pointer; text-decoration: none;
}
.game-over a { border-color: var(--orange); background: var(--orange); color: var(--navy); }

.deck {
  position: relative; height: 92px;
  background: linear-gradient(180deg, #1b2a45, #0f1a2e);
  border: 4px solid var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 10px 10px;
  display: flex; align-items: center; justify-content: center; gap: clamp(18px, 6vw, 46px);
  box-shadow: inset 0 6px 0 rgba(255, 106, 26, .9);
}
.stick { position: relative; width: 56px; height: 56px; }
.stick::before { /* base */
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 16px; border-radius: 50%; background: #05080f;
}
.stick::after { /* shaft + ball */
  content: ""; position: absolute; left: 50%; bottom: 14px; width: 30px; height: 30px; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb27a, var(--orange) 45%, #b8420a);
  border: 3px solid var(--navy);
  box-shadow: 0 16px 0 -11px #c9c2b4;
  animation: waggle 2.4s ease-in-out infinite;
  transform-origin: 50% 160%;
}
@keyframes waggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -14deg; } 45% { rotate: 10deg; } 70% { rotate: -6deg; } }
.btns { display: flex; gap: 14px; }
.btns span { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--navy); box-shadow: 0 5px 0 #05080f; }
.btns span:nth-child(1) { background: var(--pink); animation: press 1.8s steps(1) infinite; }
.btns span:nth-child(2) { background: var(--yellow); animation: press 1.8s steps(1) .6s infinite; }
.btns span:nth-child(3) { background: var(--cyan); animation: press 1.8s steps(1) 1.2s infinite; }
@keyframes press { 0% { transform: translateY(4px); box-shadow: 0 1px 0 #05080f, 0 0 16px currentColor; filter: brightness(1.4); } 15% { transform: none; box-shadow: 0 5px 0 #05080f; filter: none; } }
.deck .p1 { font-family: var(--px); font-size: 9px; color: var(--muted); line-height: 1.6; text-align: center; }
.coin-door {
  width: 150px; margin: 0 auto; padding: 10px 8px 12px; text-align: center;
  background: linear-gradient(180deg, #0f1a2e, #0a1222);
  border: 4px solid var(--navy); border-top: 0; border-radius: 0 0 12px 12px;
  font-family: var(--crt); font-size: 24px; line-height: 1; color: var(--orange);
  text-shadow: 0 0 10px rgba(255, 106, 26, .8);
}
.coin-door s { color: var(--muted); text-shadow: none; margin-right: 6px; }
.coin-door .slot { display: block; width: 8px; height: 26px; margin: 0 auto 8px; border-radius: 4px; background: #05080f; box-shadow: 0 0 0 3px #2a3a55, 0 0 10px rgba(255, 42, 60, .9); }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
  position: relative; overflow: hidden;
  background: #070210;
  border-block: 3px solid #2a1150;
  padding: 10px 0;
}
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span {
  font-family: var(--crt); font-size: 30px; line-height: 1; white-space: nowrap;
  color: var(--orange); text-shadow: 0 0 8px rgba(255, 106, 26, .9);
  padding-right: 40px;
}
.ticker::after { /* LED dot mask */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, transparent 55%, #070210 60%) 0 0 / 4px 4px;
  opacity: .55;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.section > .bulbs:first-child { position: absolute; top: 0; left: 0; }
.alt { background: linear-gradient(180deg, var(--night-2), #170737 60%, var(--night-2)); }

/* ---------- Meet Chip ---------- */
.meet-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .meet-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.chip-stage {
  position: relative; margin: 0 auto; width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background:
    radial-gradient(60% 40% at 50% 96%, rgba(34, 230, 255, .28), transparent 70%),
    radial-gradient(70% 60% at 50% 40%, rgba(255, 60, 172, .18), transparent 70%),
    linear-gradient(180deg, #1c0a3d, #0b0320);
  border: 3px solid #2d1458;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.chip-stage::before { /* corner brackets */
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 22px 3px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 3px 22px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 22px 3px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 3px 22px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 100% / 22px 3px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 100% / 3px 22px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 22px 3px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 3px 22px no-repeat;
  opacity: .8;
}
.chip-stage .stage-label { position: absolute; left: 22px; top: 20px; font-family: var(--crt); font-size: 20px; color: var(--cyan); }
.chip-stage .stage-label.r { left: auto; right: 22px; color: var(--yellow); }
.chip {
  position: absolute; left: 50%; bottom: 6%; width: 86%; translate: -50% 0;
  aspect-ratio: 640 / 620; padding: 0; border: 0; background: none; cursor: pointer;
  animation: hover-bob 3.2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.chip img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.chip .rig-cheer, .chip .face { visibility: hidden; }
.chip .face.is-on { visibility: visible; }
.chip.is-cheering .rig-idle { visibility: hidden; }
.chip.is-cheering .rig-cheer { visibility: visible; }
.chip.is-cheering { animation: hop .5s ease-out 2; }
.chip:focus-visible { outline-offset: -6px; }
@keyframes hover-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-34px); } }
.beam {
  position: absolute; left: 50%; bottom: 0; width: 40%; height: 26%; translate: -50% 0;
  background: linear-gradient(180deg, rgba(34, 230, 255, .35), transparent);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  animation: beam 1.6s ease-in-out infinite alternate;
}
@keyframes beam { from { opacity: .45; } to { opacity: 1; } }
.pop {
  position: absolute; left: 50%; top: 16%; translate: -50% 0; z-index: 3;
  font-family: var(--px); font-size: 18px; color: var(--yellow);
  text-shadow: 0 0 12px rgba(255, 225, 77, .9), 2px 2px 0 var(--navy);
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.pop.is-on { animation: pop 1.2s ease-out forwards; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scale(1); } }
.poke-hint { text-align: center; margin-top: 14px; font-family: var(--crt); font-size: 22px; color: var(--muted); }

.stats {
  margin-top: 26px; padding: 18px 18px 14px;
  border: 2px solid rgba(34, 230, 255, .55); border-radius: 10px;
  background: rgba(7, 2, 16, .55);
  box-shadow: 0 0 24px rgba(34, 230, 255, .12), inset 0 0 24px rgba(34, 230, 255, .06);
  font-family: var(--crt); font-size: 22px; line-height: 1.2; color: var(--cyan);
}
.stats-title { font-family: var(--px); font-size: 10px; color: var(--yellow); margin-bottom: 12px; }
.stat { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.stat .bar { height: 12px; background: rgba(34, 230, 255, .12); border: 1px solid rgba(34, 230, 255, .5); position: relative; overflow: hidden; }
.stat .bar i { position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 10px); }
.stat .bar i.learning { animation: learning 4s ease-in-out infinite; }
@keyframes learning { 0% { width: 8%; } 80%, 100% { width: 92%; } }
.stat .val { color: var(--cream); min-width: 6.5em; text-align: right; }
@media (max-width: 520px) {
  .stat { grid-template-columns: 1fr auto; }
  .stat .bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- How to play ---------- */
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: lvl; }
@media (min-width: 700px) { .levels { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .levels { grid-template-columns: repeat(4, 1fr); } }
.level {
  position: relative; padding: 24px 22px 22px;
  background: linear-gradient(180deg, #1d0b40, #120529);
  border: 3px solid #3a1a6e; border-radius: var(--radius);
  box-shadow: 0 10px 0 #0a0219;
}
.level:nth-child(1) { --c: var(--pink); }
.level:nth-child(2) { --c: var(--yellow); }
.level:nth-child(3) { --c: var(--cyan); }
.level:nth-child(4) { --c: var(--green); }
.level { border-top-color: var(--c); }
.level-tag { font-family: var(--px); font-size: 10px; color: var(--c); text-shadow: 0 0 10px var(--c); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.level-tag svg { width: 28px; height: 28px; image-rendering: pixelated; flex: none; }
.level h3 { font-family: var(--body); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.level p { color: #e9dff3; font-size: 1rem; margin: 0; }
/* tutorial video link card */
.tutorial-card {
  display: grid; gap: 18px 24px; align-items: center; margin-top: 34px; padding: 16px;
  text-decoration: none; color: var(--cream);
  background: linear-gradient(180deg, #1d0b40, #120529);
  border: 3px solid var(--pink); border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(255, 60, 172, .2);
  transition: box-shadow .2s ease, transform .2s ease;
}
.tutorial-card:hover { color: var(--cream); box-shadow: 0 0 40px rgba(255, 60, 172, .45); transform: translateY(-2px); }
@media (min-width: 760px) { .tutorial-card { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.tutorial-thumb { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px #05080f; }
.tutorial-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tutorial-play {
  position: absolute; right: 10px; bottom: 10px;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--navy); font-size: 19px; padding-left: 4px;
  border: 3px solid var(--navy); box-shadow: 0 0 20px rgba(255, 225, 77, .7);
  transition: transform .2s ease;
}
.tutorial-card:hover .tutorial-play { transform: scale(1.1); }
.tutorial-text { display: grid; gap: 6px; min-width: 0; }
.tutorial-text .label { margin-bottom: 2px; }
.tutorial-text strong { font-family: var(--px); font-size: clamp(14px, 2.2vw, 18px); line-height: 1.5; color: var(--yellow); }
.tutorial-text span:last-child { color: #e9dff3; }
.level code, .faq code, .card code {
  font-family: var(--crt); font-size: 1.15em; color: var(--yellow);
  background: rgba(255, 225, 77, .08); padding: 0 .3em; border-radius: 4px;
}

/* ---------- High scores ---------- */
.neon-sign {
  font-family: var(--neon); font-weight: 400;
  font-size: clamp(34px, 8vw, 84px); line-height: 1; letter-spacing: .04em;
  color: #ffd6f0; text-align: center; margin: 0 0 8px;
  text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 28px var(--pink), 0 0 54px var(--pink);
}
.neon-sign .flick { animation: flicker 7s linear infinite; }
@keyframes flicker { 0%, 9%, 11%, 50%, 52%, 100% { opacity: 1; } 10%, 51% { opacity: .25; } }
.scores-grid { display: grid; gap: 28px; margin-top: 34px; }
@media (min-width: 900px) { .scores-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.hiscore {
  background: #000; border-radius: 16px; padding: 26px 18px 22px;
  border: 4px solid #22104a; box-shadow: 0 0 0 4px #05010d, 0 0 40px rgba(255, 60, 172, .25);
  font-family: var(--px); text-align: center;
}
.hiscore h3 { font-family: var(--px); font-size: clamp(14px, 2.4vw, 18px); color: var(--red); text-shadow: 0 0 12px rgba(255, 42, 60, .7); margin-bottom: 20px; }
.hs-table { width: 100%; max-width: 440px; margin: 0 auto; border-collapse: collapse; font-size: clamp(11px, 2.6vw, 15px); }
.hs-table th { color: var(--cyan); font-weight: 400; padding: 0 6px 14px; font-size: .78em; }
.hs-table td { padding: 9px 6px; }
.hs-table td:nth-child(2) { text-align: right; padding-right: 18px; }
.hs-table td:nth-child(3) { text-align: left; }
.hs-table tbody tr:nth-child(1) { color: var(--yellow); }
.hs-table tbody tr:nth-child(2) { color: var(--pink); }
.hs-table tbody tr:nth-child(3) { color: var(--cyan); }
.hs-table tbody tr:nth-child(4) { color: var(--green); }
.hs-table tbody tr:nth-child(5) { color: var(--orange); }
.hs-table tbody tr:nth-child(6) { color: var(--purple); }
.hs-table tbody tr:nth-child(7) { color: var(--cream); }
.hs-table tbody tr:nth-child(8) { color: var(--red); }
.hs-table .chip-row td { animation: hs-flash .9s steps(2) infinite; }
@keyframes hs-flash { 50% { color: var(--cream); } }
.hs-new { display: inline-block; margin-left: 8px; font-size: .62em; color: var(--red); vertical-align: middle; }
.hs-foot { margin-top: 18px; font-family: var(--crt); font-size: 19px; color: var(--muted); }

.report {
  border: 2px solid rgba(34, 230, 255, .55); border-radius: 16px; padding: 24px 22px;
  background: linear-gradient(180deg, rgba(7, 2, 16, .8), rgba(23, 8, 56, .8));
  box-shadow: 0 0 30px rgba(34, 230, 255, .12);
}
.report h3 { font-family: var(--px); font-size: 13px; color: var(--yellow); margin-bottom: 10px; line-height: 1.6; }
.report > p { color: var(--muted); font-size: 1rem; }
.report dl { margin: 18px 0; display: grid; gap: 14px; }
.report dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed rgba(34, 230, 255, .3); padding-bottom: 10px; }
.report dt { font-family: var(--crt); font-size: 22px; color: var(--cyan); line-height: 1.1; }
.report dd { margin: 0; font-family: var(--px); font-size: clamp(18px, 3vw, 26px); color: var(--cream); white-space: nowrap; }
.report dd.big { color: var(--yellow); text-shadow: 0 0 14px rgba(255, 225, 77, .6); }
.report .punch { font-weight: 700; color: var(--cream); margin: 0; }

/* ---------- Story ---------- */
.story-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .story-grid { grid-template-columns: 1.35fr .9fr; gap: 56px; align-items: start; } }
.story p { font-size: 1.125rem; color: #f1e8fa; }
.story p:first-of-type::first-letter {
  font-family: var(--px); float: left; font-size: 2.6em; line-height: 1; margin: 6px 12px 0 0; color: var(--orange);
  text-shadow: 3px 3px 0 var(--navy);
}
.story .signoff { font-family: var(--crt); font-size: 30px; line-height: 1.1; color: var(--yellow); margin-top: 6px; }
.stages { list-style: none; margin: 0; padding: 0; position: relative; }
.stages::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--pink), var(--cyan), var(--yellow), var(--orange)); border-radius: 2px; }
.stages li { position: relative; padding: 0 0 26px 46px; }
.stages li::before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 21px; height: 21px; border-radius: 4px;
  background: var(--night); border: 3px solid var(--c, var(--pink)); box-shadow: 0 0 12px var(--c, var(--pink));
}
.stages li:nth-child(2) { --c: var(--cyan); }
.stages li:nth-child(3) { --c: var(--yellow); }
.stages li:nth-child(4) { --c: var(--orange); }
.stages b { display: block; font-family: var(--px); font-size: 10px; color: var(--c, var(--pink)); margin-bottom: 8px; letter-spacing: .06em; }
.stages span { color: #e9dff3; }

/* Tucked-away extras */
.extra {
  margin-top: 26px; border: 3px solid #3a1a6e; border-radius: var(--radius);
  background: linear-gradient(180deg, #1a0939, #110527);
}
.extra > summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 14px;
  font-family: var(--px); font-size: clamp(11px, 1.8vw, 14px); line-height: 1.6; color: var(--cream);
}
.extra > summary::-webkit-details-marker { display: none; }
.extra > summary .coin-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3a8, var(--yellow) 45%, #b99a1c);
  border: 3px solid var(--navy); display: grid; place-items: center; font-size: 7px; letter-spacing: 0; color: var(--navy);
  transition: rotate .3s ease;
}
.extra[open] > summary .coin-icon { rotate: 180deg; }
.extra > summary small { display: block; font-family: var(--body); font-size: 15px; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.extra-body { padding: 4px 22px 24px; }
.extra-link {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; text-decoration: none;
  font-family: var(--px); font-size: clamp(11px, 1.8vw, 14px); line-height: 1.6; color: var(--cream);
  border-color: var(--orange); box-shadow: 0 0 24px rgba(255, 106, 26, .2);
}
.extra-link small { display: block; font-family: var(--body); font-size: 15px; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.extra-link:hover { color: var(--yellow); }
.extra-link .coin-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb27a, var(--orange) 45%, var(--orange-dk));
  border: 3px solid var(--navy); display: grid; place-items: center; font-size: 12px; color: var(--navy);
}
.dl-story { margin-top: 18px; color: var(--muted); }
.concepts { display: grid; gap: 16px; }
@media (min-width: 760px) { .concepts { grid-template-columns: 1fr 1fr; } }
.concept { padding: 18px 18px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.concept h4 { margin: 0 0 8px; font-family: var(--body); font-weight: 700; font-size: 1.15rem; color: var(--yellow); }
.concept p { margin: 0; color: #eadff5; font-size: 1rem; }
.concept p + p { margin-top: .7em; }
.thanks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .thanks { grid-template-columns: 1fr 1fr; } }
.thanks li { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.thanks .who { display: block; font-family: var(--crt); font-size: 20px; color: var(--cyan); line-height: 1.1; margin-bottom: 4px; }
.thanks a { font-weight: 700; }
.thanks p { margin: 6px 0 0; color: #e2d7ee; font-size: .98rem; }
.thanks-note { color: var(--muted); margin-top: 18px; font-size: 1rem; }

/* ---------- Instruction card ---------- */
.card {
  position: relative;
  background: var(--cream); color: var(--navy);
  border-radius: 10px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 0 0 6px var(--navy), 0 0 0 10px var(--orange), 0 20px 50px rgba(0, 0, 0, .5);
  background-image: repeating-linear-gradient(0deg, rgba(12, 22, 38, .03) 0 2px, transparent 2px 4px);
}
.card::before, .card::after { /* screws */
  content: ""; position: absolute; top: 12px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff, #9aa3b5 60%, #5b6477); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3);
}
.card::before { left: 12px; } .card::after { right: 12px; }
.card h2 { font-family: var(--px); font-size: clamp(15px, 2.6vw, 22px); color: var(--orange-dk); margin-bottom: 8px; text-align: center; }
.card .card-sub { text-align: center; font-weight: 700; margin-bottom: 26px; }
.card-cols { display: grid; gap: 26px; }
@media (min-width: 820px) { .card-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.card h3 { font-family: var(--px); font-size: 12px; color: var(--navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 3px solid var(--orange); }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 30px; margin-bottom: 12px; line-height: 1.5; }
.card li::before { content: "▶"; position: absolute; left: 0; top: 1px; color: var(--orange); font-size: 14px; }
.card code { color: var(--orange-dk); background: rgba(255, 106, 26, .12); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq {
  border: 2px solid #3a1a6e; border-radius: 12px; background: rgba(23, 8, 56, .6);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 18px; display: flex; gap: 14px; align-items: center;
  font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "?"; flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--px); font-size: 12px; color: var(--navy); background: var(--yellow); border-radius: 6px; border: 2px solid var(--navy);
}
.faq[open] summary::before { content: "!"; background: var(--cyan); }
.faq .faq-body { padding: 0 18px 16px 62px; color: #eadff5; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Download ---------- */
.download { text-align: center; }
.download .section-title { margin-inline: auto; }
.download p { max-width: 56ch; margin-inline: auto; }
.download .btn { margin: 14px auto 6px; font-size: clamp(16px, 2.6vw, 22px); padding: 20px 34px 16px; }
.dl-meta { font-family: var(--crt); font-size: 22px; color: var(--muted); }
.more-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.more-links [hidden] { display: none; }

/* ---------- CONTINUE? ---------- */
.continue {
  text-align: center; background: #000;
  background-image: radial-gradient(60% 50% at 50% 50%, rgba(255, 60, 172, .14), transparent 70%);
}
.continue-word {
  font-family: var(--px); font-size: clamp(28px, 7vw, 64px); color: var(--cream);
  text-shadow: 4px 4px 0 var(--pink), 0 0 30px rgba(255, 60, 172, .6); margin-bottom: 10px;
}
.countdown {
  font-family: var(--px); font-size: clamp(64px, 16vw, 150px); line-height: 1.1; color: var(--yellow);
  text-shadow: 6px 6px 0 var(--orange-dk), 0 0 40px rgba(255, 225, 77, .6);
  margin: 6px 0 22px; min-height: 1.1em;
}
.countdown.is-over { color: var(--red); font-size: clamp(30px, 7vw, 64px); text-shadow: 4px 4px 0 #5a0010, 0 0 30px rgba(255, 42, 60, .6); display: grid; place-items: center; }
.continue p { max-width: 54ch; margin: 0 auto 1em; color: #eadff5; font-size: 1.12rem; }
.continue .btn { margin-top: 12px; }
.joking { min-height: 1.6em; font-family: var(--crt); font-size: 26px; color: var(--cyan); margin-top: 18px; }
.again { margin-top: 10px; background: none; border: 0; color: var(--muted); font-family: var(--px); font-size: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   FOOTER — the olden days corner
   ========================================================================== */
.footer { background: #07020f; border-top: 3px solid #2a1150; padding: 44px 0 36px; }
.counter-box { text-align: center; margin-bottom: 26px; }
.counter-label { display: block; font-family: "Times New Roman", Times, serif; font-size: 18px; color: #d9d0e6; margin-bottom: 8px; }
.odometer { display: inline-flex; gap: 3px; padding: 5px; background: #111; border: 3px ridge #8a8a8a; }
.digit {
  position: relative; width: 26px; height: 38px; overflow: hidden;
  background: linear-gradient(180deg, #000 0%, #1a1a1a 50%, #000 50.5%, #111 100%);
  border-radius: 3px;
}
.digit .strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.digit .strip span { height: 38px; display: grid; place-items: center; font-family: var(--crt); font-size: 34px; color: var(--orange); text-shadow: 0 0 8px rgba(255, 106, 26, .9); }
.counter-since { display: block; margin-top: 8px; font-family: var(--crt); font-size: 18px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 30px; padding: 0; list-style: none; }
.badge {
  width: 88px; height: 31px; display: grid; place-items: center; text-align: center;
  font-family: var(--px); font-size: 6.5px; line-height: 1.35; letter-spacing: .02em;
  border: 2px outset #cfcfcf; padding: 2px;
}
.badge.b1 { background: linear-gradient(#000080, #0000c8); color: #fff; }
.badge.b2 { background: linear-gradient(var(--orange), #c4470b); color: var(--cream); }
.badge.b3 { background: #111; color: var(--green); }
.badge.b4 { background: linear-gradient(#5b3a1a, #3a2410); color: #ffe7c2; }
.badge.b5 { background: #c0c0c0; color: #000; border-style: outset; }
.badge.b6 { background: linear-gradient(var(--pink), #b0156f); color: #fff; }
.smallprint { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; font-size: .95rem; color: #d3c7e2; }
@media (min-width: 760px) { .smallprint { grid-template-columns: 1fr 1fr; gap: 16px 34px; } }
.smallprint h3 { font-family: var(--px); font-size: 10px; color: var(--yellow); margin-bottom: 6px; }
.smallprint p { margin: 0; }
.foot-links { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; margin: 30px 0 14px; font-weight: 700; }
.foot-links [hidden] { display: none; }
.copyright { text-align: center; font-family: var(--crt); font-size: 21px; color: var(--muted); margin: 0; }
.to-top { display: block; text-align: center; margin-top: 12px; font-family: var(--px); font-size: 9px; color: var(--muted); }

/* ==========================================================================
   THE TECHNICAL BIT (journey.html)
   ========================================================================== */
.page-top { padding: 22px 0; border-bottom: 3px solid #2a1150; background: #07020f; }
.page-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back { font-family: var(--px); font-size: 10px; color: var(--cyan); text-decoration: none; white-space: nowrap; }
@media (max-width: 520px) { .back .long { display: none; } }
.back:hover { color: var(--yellow); }
.journey-head {
  padding: clamp(48px, 8vw, 90px) 0 28px; text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 60, 172, .22), transparent 70%),
    linear-gradient(180deg, #0b0320, var(--night));
}
.journey-head h1 {
  font-family: var(--px); font-size: clamp(20px, 4.2vw, 40px); line-height: 1.4; margin: 0 auto 18px; max-width: 22ch;
  text-shadow: 3px 3px 0 var(--pink), 0 0 24px rgba(255, 60, 172, .45);
}
.journey-head .intro { max-width: 60ch; margin: 0 auto; font-size: 1.15rem; color: #efe5f8; }
.article { width: min(100% - 2 * var(--gutter), 780px); margin: 0 auto; padding-bottom: 80px; }
.bubble { border-radius: 18px; padding: 20px 22px; margin: 28px 0; position: relative; }
.bubble .who { display: block; font-family: var(--px); font-size: 10px; margin-bottom: 12px; letter-spacing: .06em; }
.bubble.you { background: #26124d; border: 2px solid var(--purple); margin-left: clamp(0px, 8vw, 80px); }
.bubble.you .who { color: var(--purple); }
.bubble.you p { margin: 0; font-size: 1.1rem; }
.bubble.claude { background: #fbf3e1; color: var(--navy); border: 2px solid var(--orange); }
.bubble.claude .who { color: var(--orange-dk); }
.reply { background: var(--cream); color: var(--navy); border-radius: 18px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 0 0 4px var(--orange), 0 20px 60px rgba(0, 0, 0, .45); }
.reply .who { display: block; font-family: var(--px); font-size: 10px; color: var(--orange-dk); margin-bottom: 18px; letter-spacing: .06em; }
.reply p { font-size: 1.06rem; line-height: 1.7; }
.reply a { color: #b13a00; font-weight: 700; }
.reply a:hover { color: var(--pink); }
.reply h2 { font-family: var(--px); font-size: clamp(13px, 2vw, 16px); line-height: 1.6; color: var(--navy); margin: 40px 0 14px; padding-top: 8px; border-top: 3px dashed rgba(12, 22, 38, .2); }
.reply h2:first-of-type { border-top: 0; margin-top: 8px; }
.stage-block { margin: 30px 0 0; padding: 22px 0 6px; border-top: 3px dashed rgba(12, 22, 38, .18); }
.stage-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 10px; }
.stage-meta .date { font-family: var(--px); font-size: 10px; background: var(--navy); color: var(--yellow); padding: 6px 9px; border-radius: 6px; }
.stage-meta .num { font-family: var(--px); font-size: 10px; color: var(--orange-dk); }
.stage-block h3 { font-family: var(--body); font-weight: 700; font-size: 1.35rem; margin: 0 0 8px; color: var(--navy); }
.folder { display: inline-block; font-family: var(--crt); font-size: 18px; line-height: 1.2; background: rgba(12, 22, 38, .08); border: 1px solid rgba(12, 22, 38, .2); padding: 1px 7px; border-radius: 4px; color: #2b3a55; }
.idea, .diff { margin-top: 12px; padding: 14px 16px; border-radius: 10px; font-size: 1rem; }
.idea { background: rgba(34, 230, 255, .12); border-left: 5px solid #0aa7c0; }
.diff { background: rgba(255, 106, 26, .12); border-left: 5px solid var(--orange); }
.idea b, .diff b { display: block; font-family: var(--px); font-size: 9px; letter-spacing: .06em; margin-bottom: 8px; color: #0b6f80; }
.diff b { color: var(--orange-dk); }
.idea p, .diff p { margin: 0 0 .6em; line-height: 1.6; }
.idea p:last-child, .diff p:last-child { margin-bottom: 0; }
.star { color: var(--orange-dk); font-weight: 700; }
.reply blockquote { margin: 14px 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--pink); font-style: italic; color: #3a2a55; }
.reply .signed { font-family: var(--crt); font-size: 30px; color: var(--orange-dk); margin: 30px 0 0; }
.reply ul { padding-left: 22px; }
.reply li { margin-bottom: 8px; line-height: 1.6; }
.journey-foot { text-align: center; margin-top: 40px; }
/* the story, in plain English */
.tale { margin: 10px 0 0; }
.tale-stage { position: relative; padding: 26px 0 22px 0; border-top: 2px dashed rgba(184, 107, 255, .35); }
.tale-stage:first-child { border-top: 0; }
.tale-date {
  display: inline-block; font-family: var(--px); font-size: 10px; letter-spacing: .06em;
  color: var(--navy); background: var(--pink); padding: 6px 9px; border-radius: 6px; margin-bottom: 12px;
}
.tale-stage h3 { font-family: var(--body); font-weight: 700; font-size: 1.4rem; color: var(--yellow); margin: 0 0 10px; text-wrap: balance; }
.tale-stage p { font-size: 1.1rem; line-height: 1.7; color: #efe5f8; }
.tale-stage p:last-child { margin-bottom: 0; }
.tale-eureka {
  margin: 10px 0; padding: 26px 22px 24px; border: 3px solid var(--yellow); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 225, 77, .1), rgba(255, 60, 172, .08));
  box-shadow: 0 0 34px rgba(255, 225, 77, .18);
}
.tale-eureka .tale-date { background: var(--yellow); }
.tale-eureka + .tale-stage { border-top: 0; }
.tech-divider { text-align: center; margin: 70px 0 6px; padding-top: 46px; border-top: 3px solid #2a1150; }
.tech-divider h2 {
  font-family: var(--px); font-size: clamp(16px, 3vw, 26px); line-height: 1.45; margin: 0 auto 16px; max-width: 24ch;
  text-shadow: 3px 3px 0 var(--pink), 0 0 20px rgba(255, 60, 172, .4); text-wrap: balance;
}
.tech-divider .intro { max-width: 60ch; margin: 0 auto; font-size: 1.08rem; color: #efe5f8; }

/* ==========================================================================
   404
   ========================================================================== */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 16px; background: radial-gradient(60% 50% at 50% 50%, rgba(255, 60, 172, .16), transparent 70%), #000; }
.lost h1 { font-family: var(--px); font-size: clamp(26px, 7vw, 56px); color: var(--red); text-shadow: 4px 4px 0 #5a0010, 0 0 30px rgba(255, 42, 60, .6); margin-bottom: 18px; }
.lost p { max-width: 40ch; margin: 0 auto 26px; font-size: 1.15rem; }
.lost img { width: min(60vw, 260px); margin: 0 auto 10px; }

/* ==========================================================================
   Calm mode: respect "reduce motion"
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tram { transform: translateX(62vw); }
  .gull { display: none; }
  .ticker-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .ticker-track span[aria-hidden="true"] { display: none; }
  .blink { visibility: visible; }
}

/* Library Robot add-on card (download section) */
.robot-card {
  display: grid; gap: 14px 22px; align-items: start; text-align: left;
  max-width: 760px; margin: 34px auto 0; padding: 20px;
  background: linear-gradient(180deg, #10233f, #0b1530);
  border: 3px dashed var(--cyan); border-radius: var(--radius);
}
@media (min-width: 640px) { .robot-card { grid-template-columns: 130px minmax(0, 1fr); } }
@media (max-width: 639px) { .robot-face { width: 96px; } }
.robot-face { width: 130px; height: auto; image-rendering: auto; filter: drop-shadow(0 0 14px rgba(0, 229, 255, .35)); }
.robot-text { min-width: 0; }
.robot-text h3 { margin: 6px 0 10px; color: var(--yellow); }
.download .robot-text p { max-width: none; margin-inline: 0; }
.robot-text .btn { margin: 10px 0 0; font-size: clamp(13px, 2vw, 16px); padding: 14px 22px 11px; }
.beta { display: inline-block; margin-left: 8px; padding: 2px 7px 1px; border-radius: 4px; background: var(--pink); color: #fff; }
.robot-soon { font-family: var(--crt); font-size: 21px; color: var(--cyan); margin-top: 8px; }
.robot-text a:not([hidden]) + .robot-soon { display: none; }
