/* BeamWars prelaunch site. One dark theme: the game has no light mode. */

@font-face { font-family: "Orbitron"; src: url("../fonts/Orbitron-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("../fonts/Orbitron-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("../fonts/Orbitron-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "ChicagoFLF"; src: url("../fonts/ChicagoFLF.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: dark;
  /* The game's seat colors (CLAUDE.md, SEAT_COLORS). */
  --blue: #5fa8ff;
  --red: #ff4545;
  --green: #45ff45;
  --yellow: #ffff45;

  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: #0e1526;
  --line: #1c2740;
  --text: #dfe7f5;
  --muted: #8d9bb5;
  --glow: 0 0 18px rgb(95 168 255 / 0.55);

  --display: "Orbitron", "Eurostile", "Arial Black", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --retro: "ChicagoFLF", "Chicago", "Charcoal", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(640px, 100% - 32px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--blue); color: #000; padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 6px;
  font: 700 15px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, .play:focus-visible, .strip-nav:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 3px;
}
.btn-steam, .btn-primary {
  background: var(--blue); color: #02060f;
  box-shadow: 0 0 0 1px rgb(95 168 255 / 0.4), 0 0 28px rgb(95 168 255 / 0.45);
}
.btn-steam:hover, .btn-primary:hover { background: #8ac0ff; box-shadow: 0 0 0 1px rgb(95 168 255 / 0.6), 0 0 40px rgb(95 168 255 / 0.7); }
.btn-steam.soon { font-size: 13px; }
.btn-ghost { color: var(--text); border-color: rgb(223 231 245 / 0.35); background: rgb(5 7 13 / 0.4); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; overflow: hidden; isolation: isolate;
  background: #02040a;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-board, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media video { object-fit: cover; }
/* The clip and the board 20% brighter (Steve, 2026-11-28: "a bit too dim"); the wordmark keeps
   its own dark band (.hero-inner::before), so this never reaches it. */
.hero-media { filter: brightness(1.2); }
/* Until the clip: the game's board, breathing, with a band of light passing over the grid
   lines (color-dodge lights the bright lines and leaves the dark cells dark). */
.hero-board {
  background: url("../img/board.jpg") center / cover no-repeat;
  animation: breathe 6s ease-in-out infinite alternate;
}
.hero-sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 300%;
  background: linear-gradient(110deg, transparent 38%, rgb(95 168 255 / 0.55) 50%, transparent 62%);
  mix-blend-mode: color-dodge;
  animation: sweep 9s linear infinite;
}
@keyframes breathe { from { opacity: 0.62; } to { opacity: 1; } }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(-66.67%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgb(2 4 10 / 0.25) 0%, rgb(2 4 10 / 0.7) 70%),
    linear-gradient(to bottom, rgb(5 7 13 / 0) 60%, var(--bg) 100%);
}
.hero-inner { position: relative; padding: 96px 16px 120px; width: min(980px, 100%); }
/* The dark band behind the wordmark and buttons: the clip's flashes and in-game banners
   (PLAYER ONE LEADS, the detonation's white-out) pass behind the text. Full width,
   feathered top and bottom. */
.hero-inner::before {
  content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; translate: -50% 0;
  top: 40px; bottom: 70px;
  background: linear-gradient(to bottom,
    rgb(2 4 10 / 0) 0%, rgb(2 4 10 / 0.72) 22%, rgb(2 4 10 / 0.78) 50%,
    rgb(2 4 10 / 0.72) 78%, rgb(2 4 10 / 0) 100%);
}
/* The 35th anniversary badge (img/badge-35.svg, already tilted 12°): small, beside the
   "Since 1992" heading (Steve, 2026-11-27: "much less conspicuous" than over the wordmark). */
.history .wrap { position: relative; }
.badge-35 { position: absolute; top: -18px; right: 0; width: 104px; height: auto; opacity: 0.9; }
.tagline, .lede { text-shadow: 0 1px 12px rgb(0 0 0 / 0.9); }
.wordmark img {
  width: min(860px, 100%); height: auto; margin-inline: auto;
  mix-blend-mode: screen; /* the wordmark is drawn on black: screen drops the black */
}
.tagline {
  margin: 18px 0 6px;
  font: 700 clamp(17px, 2.6vw, 26px)/1.3 var(--display); letter-spacing: 0.06em;
  color: #fff; text-shadow: var(--glow);
}
.lede { margin: 0 auto 30px; max-width: 34em; color: #c3cee2; font-size: clamp(16px, 2vw, 19px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.status { margin: 18px 0 0; font: 400 13px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgb(223 231 245 / 0.4); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--blue); border-radius: 2px; animation: hint 1.8s infinite;
}
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }


/* ---------- sections ---------- */
main > section { padding: clamp(64px, 10vw, 120px) 0; }
.kicker {
  font: 700 13px/1 var(--display); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-lede {
  margin: 0 0 40px; font: 900 clamp(26px, 4.4vw, 44px)/1.15 var(--display);
  letter-spacing: 0.02em; color: #fff;
}
.section-lede.retro { font: 400 clamp(26px, 4vw, 40px)/1.2 var(--retro); letter-spacing: 0; }

/* the game cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 26px 24px 24px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--c); box-shadow: 0 0 16px var(--c);
}
.card h3 { font: 700 17px/1.3 var(--display); letter-spacing: 0.04em; color: var(--c); margin-bottom: 10px; }
.card p { margin: 0; color: #b9c4d8; font-size: 16px; }

/* roster strip */
.roster { background: linear-gradient(var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.strip-wrap { position: relative; }
.strip {
  list-style: none; margin: 0; padding: 8px max(16px, calc((100% - 1120px) / 2)) 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - 1120px) / 2));
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.strip li {
  scroll-snap-align: start; background: var(--panel); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 3px solid var(--c);
  transition: transform 0.2s, box-shadow 0.2s;
}
.strip li:hover { transform: translateY(-4px); box-shadow: 0 10px 34px -10px var(--c); }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.strip h3 { padding: 16px 18px 4px; font: 700 16px/1.2 var(--display); letter-spacing: 0.05em; color: var(--c); }
.strip p { margin: 0; padding: 0 18px 20px; font-size: 14.5px; line-height: 1.5; color: #aeb9cd; }
.strip-nav {
  position: absolute; top: 130px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgb(10 15 28 / 0.9); color: var(--text);
  font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.strip-nav.prev { left: 12px; }
.strip-nav.next { right: 12px; }
.strip-nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .strip-nav { display: none; } }

/* history */
.history-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: start; }
.history-text p { margin: 0 0 18px; color: #c3cee2; }
.quote { margin: 0; padding: 28px; border-left: 3px solid var(--yellow); background: var(--panel); border-radius: 0 10px 10px 0; }
.quote blockquote { margin: 0 0 14px; font: 400 21px/1.45 var(--retro); color: #fff; }
.quote figcaption { color: var(--muted); font-size: 14px; }
.placeholder {
  border: 2px dashed rgb(255 255 69 / 0.55); color: var(--yellow) !important;
  padding: 12px 16px; border-radius: 6px; background: rgb(255 255 69 / 0.05); font-size: 15px;
}
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 56px 0 40px; }
.compare figure { margin: 0; }
.compare img, .shot { width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.compare img.whole { object-fit: contain; background: #000; }  /* the 1992 shot is 1222 x 874: shown whole, black at the sides */
/* The 2027 slideshow: the frames stacked in the same 16:10 box, crossfading (js/site.js). */
.slides { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; cursor: pointer; background: #000; }
.compare .slides img { position: absolute; inset: 0; height: 100%; border: 0; border-radius: 0; opacity: 0; transition: opacity 0.9s ease; }
.compare .slides img.on { opacity: 1; }
.slide-dots { position: absolute; right: 10px; bottom: 8px; display: flex; gap: 6px; }
.slide-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgb(223 231 245 / 0.35); transition: background 0.3s; }
.slide-dots i.on { background: var(--text); }
.compare figcaption { margin-top: 10px; text-align: center; font: 700 15px/1 var(--display); letter-spacing: 0.2em; color: var(--muted); }
.compare figcaption.retro { font: 400 17px/1 var(--retro); letter-spacing: 0.05em; }
.placeholder-shot {
  display: grid; place-content: center; gap: 6px; text-align: center; color: var(--yellow);
  border: 2px dashed rgb(255 255 69 / 0.5); font: 700 14px/1.3 var(--display); letter-spacing: 0.05em;
  background: repeating-linear-gradient(0deg, transparent 0 23px, rgb(95 168 255 / 0.08) 23px 24px),
              repeating-linear-gradient(90deg, transparent 0 23px, rgb(95 168 255 / 0.08) 23px 24px), #070b16;
}
.placeholder-shot.retro { font: 400 15px/1.3 var(--retro); background: #000; }
.placeholder-shot small { font: 400 12px/1 var(--body); color: var(--muted); }
.credits { display: flex; gap: 24px; align-items: center; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.credits p { margin: 0; color: #b9c4d8; font-size: 15.5px; }
.credits strong { color: #fff; }
.icons { display: grid; grid-template-columns: repeat(4, 40px); gap: 8px; flex: none; }
.icons img { width: 40px; height: 40px; image-rendering: pixelated; }
.icons img.wide { grid-column: span 2; width: 88px; height: 58px; } /* the two auto icons, 61 x 40 in the original, under the four numerals */

.play-classic { display: flex; gap: 18px; align-items: center; margin: 26px 0 22px; }
.play-classic .btn { flex: none; }
.play-classic span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) { .play-classic { flex-direction: column; align-items: stretch; } }

/* trailer */
.trailer-box {
  position: relative; max-width: 960px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); display: grid; place-items: center; align-content: center; gap: 16px;
  background: linear-gradient(rgb(5 7 13 / 0.55), rgb(5 7 13 / 0.8)), url("../img/board.jpg") center / cover;
}
.trailer-box iframe, .trailer-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.play {
  width: 88px; height: 88px; border-radius: 50%; border: 2px solid rgb(223 231 245 / 0.6);
  background: rgb(5 7 13 / 0.5); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.play svg { width: 40px; height: 40px; fill: currentColor; margin-left: 5px; }
.play:hover:not([disabled]) { transform: scale(1.06); border-color: var(--blue); box-shadow: var(--glow); }
.play[disabled] { opacity: 0.45; cursor: default; }
.trailer-note { margin: 0; font: 700 13px/1 var(--display); letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }

/* signup */
.signup { text-align: center; }
.signup .section-lede { margin-bottom: 28px; }
.signup-form { display: flex; gap: 10px; }
.signup-form input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 6px;
  border: 1px solid #2a3a5c; background: var(--panel); color: #fff; font: 17px var(--body);
}
.signup-form input::placeholder { color: #5f6e8a; }
.form-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.form-note.error { color: var(--red); }
.form-note.ok { color: var(--green); }
.merch-note { margin: 36px 0 0; font-size: 15px; color: var(--muted); }

/* footer */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); text-align: center; }
.footer-mark { width: 200px; margin: 0 auto 18px; mix-blend-mode: screen; opacity: 0.85; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font: 700 12px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; }
.footer-links a:hover { color: var(--blue); }
.copy { margin: 0; color: #5f6e8a; font-size: 13px; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-inner { padding: 80px 16px 110px; }
  .badge-35 { top: -28px; width: 72px; }
  .cta-row { flex-direction: column; align-items: stretch; width: min(360px, 100%); margin-inline: auto; }
  .history-grid, .compare { grid-template-columns: 1fr; }
  .compare { gap: 28px; }
  .credits { flex-direction: column; align-items: flex-start; }
  .signup-form { flex-direction: column; }
  .strip { grid-auto-columns: 78%; }
}

/* Phones held upright: a 16:10 clip cropped to fill a tall screen would show a sliver of
   the board, so the clip (or the breathing board) sits whole at the top, full width,
   fading into the page, with the wordmark and buttons below it. */
@media (max-width: 760px) and (max-aspect-ratio: 1/1) {
  .hero { align-content: start; }
  .hero-media {
    position: relative; inset: auto; z-index: 0; width: 100%; aspect-ratio: 16 / 10;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
            mask-image: linear-gradient(to bottom, #000 80%, transparent);
  }
  .hero-shade, .hero-inner::before { display: none; }
  .hero-inner { padding: 20px 16px 104px; }
  .sound-btn { bottom: auto; top: calc(62.5vw - 52px); right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; opacity: 1; }
  .strip li, .btn, .play { transition: none; }
  .hero-board { animation: none; }
  .hero-sweep { display: none; }
}
