/* ─────────────────────────────────────────────────────────────────────────────
   ASTRO — public site
   One visual language, borrowed whole from the game: space navy, molded
   orange plastic, LCD yellow, cassette console labels. No webfonts, no JS.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --space: #070a16;
  --panel: #1a1c28;
  --edge: #3a3e52;
  --orange: #ff7a1a;
  --lcd: #ffe14d;
  --ice: #c8d2ee;
  --dim: #7d86a3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background-color: var(--space);
  color: var(--ice);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  /* the chart's starfield, tiled */
  background-image:
    radial-gradient(1px 1px at 22px 34px, #ffffff59 50%, #0000 51%),
    radial-gradient(1px 1px at 128px 156px, #ffffff40 50%, #0000 51%),
    radial-gradient(1.5px 1.5px at 231px 87px, #ffffff4d 50%, #0000 51%),
    radial-gradient(1px 1px at 74px 210px, #ffffff30 50%, #0000 51%),
    radial-gradient(1.5px 1.5px at 301px 190px, #ffffff38 50%, #0000 51%);
  background-size: 380px 300px;
}

/* CRT scanlines over everything — the game's own switchable effect, on. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: repeating-linear-gradient(#0000 0 2px, #0002 2px 4px);
}

.lcd {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--lcd);
  font-weight: 700;
  text-shadow: 0 0 8px #ffe14d44;
}

a { color: var(--lcd); }
a:focus-visible, button:focus-visible { outline: 3px solid #45e3ff; outline-offset: 3px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 22px; }

/* ── hero: the toy on its box ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60vw 40vh at 70% 20%, #2f6bff1f 0%, #0000 70%),
    radial-gradient(50vw 36vh at 15% 80%, #59d8ff14 0%, #0000 70%);
}
.hero .ship {
  width: min(340px, 66vw);
  filter: drop-shadow(0 16px 34px #000d) drop-shadow(0 0 24px #ff7a1a2e);
}
.hero .wordmark {
  display: block;
  width: min(420px, 78vw);
  margin: 18px auto 10px;
  filter: drop-shadow(0 0 18px #ff7a1a66);
}
.hero .pitch {
  max-width: 34em;
  margin: 8px auto 26px;
  font-size: 19px;
  color: var(--ice);
}
.hero .pitch b { color: var(--lcd); font-weight: 600; }

/* molded plastic button — the game's own control */
.molded {
  display: inline-block;
  background: linear-gradient(#ffa04d, var(--orange));
  color: #14161f;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 13px 26px;
  box-shadow: 0 3px 0 #a34a08, 0 0 22px #ff7a1a44;
}
.molded:active { transform: translateY(2px); box-shadow: 0 1px 0 #a34a08; }
.hero .sub { display: block; margin-top: 12px; font-size: 12px; letter-spacing: 3px; color: var(--dim); }

/* ── cassette console labels — the signature device ─────────────────────── */
.console-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--ice);
  text-transform: uppercase;
}
.console-code {
  background: var(--orange);
  color: #14161f;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 1px;
}
.console-lamp {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lcd);
  box-shadow: 0 0 8px #ffe14dcc;
  margin-left: auto;
}

section { padding: 52px 0; }

/* ── the console screen: real gameplay in a molded frame ────────────────── */
.console-frame {
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 44px #000a, inset 0 1px 0 #ffffff12;
  position: relative;
}
.console-frame img {
  display: block;
  width: 100%;
  border-radius: 9px;
  border: 1px solid #000;
}
/* CRT carousel: native horizontal scroll with snap points — swipe on touch,
   drag/scroll on desktop; the dots (tiny inline script) mirror position. */
.carousel {
  display: flex; /* no gap: slide width must equal the viewport for snap math */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel img,
.carousel video {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: block;
  width: 100%;
  border-radius: 9px;
  border: 1px solid #000;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.carousel-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--edge);
  transition: background .2s;
}
.carousel-dots i.on { background: var(--orange); }
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 56px;
  border: 2px solid var(--edge);
  border-radius: 10px;
  background: var(--panel);
  color: var(--orange);
  font-size: 18px;
  cursor: pointer;
  opacity: .85;
}
.car-btn:hover { opacity: 1; border-color: var(--orange); }
.car-prev { left: -20px; }
.car-next { right: -20px; }
.screen-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

/* ── features: three cassette cards ─────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 20px 20px 22px;
}
.feature h3 {
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--lcd);
  margin-bottom: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.feature p { font-size: 15px; color: var(--ice); }
.feature p b { color: #fff; font-weight: 600; }

/* ── seed strip: the determinism promise, spoken in LCD ─────────────────── */
.seedstrip {
  text-align: center;
  background: #10121c;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  padding: 34px 0;
}
.seedstrip .lcd { font-size: 24px; letter-spacing: 4px; }
.seedstrip p { margin-top: 8px; font-size: 15px; color: var(--dim); }

/* ── footer ─────────────────────────────────────────────────────────────── */
footer {
  padding: 40px 0 60px;
  text-align: center;
  font-size: 14px;
  color: var(--dim);
}
footer nav { margin-bottom: 12px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
footer a { color: var(--ice); text-decoration: none; border-bottom: 1px solid var(--edge); padding-bottom: 1px; }
footer a:hover { color: var(--lcd); border-color: var(--lcd); }

/* ── subpages (privacy / support) ───────────────────────────────────────── */
.page { max-width: 640px; margin: 0 auto; padding: 64px 22px; }
.page h1 { font-size: 26px; letter-spacing: 2px; color: var(--lcd); margin: 14px 0 20px; }
.page h2 { font-size: 16px; letter-spacing: 1px; color: var(--orange); margin: 26px 0 8px; }
.page p, .page li { font-size: 16px; color: var(--ice); margin-bottom: 12px; }
.page ul { padding-left: 22px; }
.page .backlink { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: 2px; text-decoration: none; }
