/* 199X public site chrome. One scrolling home page (Home / Dev Log tabs).
   Pure CSS, no ROM-derived art.
   Aesthetic: pitch black, neon purple + toxic "Chemical Z" green. */

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

/* The `hidden` attribute must ALWAYS win. Any rule that sets `display` on an
   element (e.g. .enlist-form { display: grid }) silently overrides the UA's
   [hidden] { display: none } — which made the account panel show BOTH the
   login form and the account card at once. */
[hidden] { display: none !important; }

:root {
  --purple: #b14dff;
  --purple-dim: #7a36b0;
  --green: #5dff5d;        /* toxic Chemical-Z green */
  --green-deep: #1f8f1f;
  --ink: #ece8ff;
  --muted: #9a90c0;
  --faint: #6a6090;
  --line: rgba(177, 77, 255, 0.18);
  --panel: rgba(20, 10, 34, 0.66);
  --font: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Consolas', 'SFMono-Regular', ui-monospace, monospace;
  --header-h: 60px;
}

html { scroll-behavior: smooth; }
html, body { background: #04030a; }

body {
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fixed atmosphere behind everything: a purple void up top, a green crater glow
   leaking from the bottom, plus faint CRT scanlines. */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(123, 40, 180, 0.40) 0%, rgba(20, 8, 34, 0) 55%),
    radial-gradient(90% 60% at 50% 118%, rgba(57, 255, 60, 0.18) 0%, rgba(10, 20, 8, 0) 55%),
    #04030a;
}
.bg-fx::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.22) 3px);
  mix-blend-mode: multiply; opacity: 0.5;
}

.site { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 clamp(14px, 4vw, 40px);
  background: rgba(4, 3, 10, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: baseline; gap: 8px; text-decoration: none;
  color: var(--purple); font-weight: 800; font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0.16em;
  text-shadow: 0 0 14px rgba(177, 77, 255, 0.7);
}
.brand small {
  color: var(--green); font-size: 0.4em; font-weight: 700; letter-spacing: 0.34em;
  text-shadow: 0 0 10px rgba(93, 255, 93, 0.6);
}

.site-nav { display: flex; align-items: center; gap: clamp(6px, 1.6vw, 14px); }

/* Tab buttons (Home / Dev Log). */
.tab-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-family: var(--font); font-weight: 700; text-transform: uppercase;
  font-size: clamp(11px, 1.5vw, 13px); letter-spacing: 0.16em;
  padding: 8px 10px; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, text-shadow 0.15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  color: var(--green); border-bottom-color: var(--green);
  text-shadow: 0 0 10px rgba(93, 255, 93, 0.5);
}

/* Header audio toggle + dev game link. */
.icon-btn {
  background: rgba(177, 77, 255, 0.08); border: 1px solid var(--line);
  color: var(--purple); cursor: pointer; border-radius: 8px;
  width: 34px; height: 32px; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: var(--ink); border-color: var(--purple); }

.nav-game {
  text-decoration: none; color: #04030a;
  background: linear-gradient(90deg, var(--green), #aaff66);
  font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 0 16px rgba(93, 255, 93, 0.45);
}
.nav-game:hover { filter: brightness(1.08); }

/* ------------------------------------------------------------------ tabs */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid; grid-template-columns: 1fr 0.9fr; align-items: center;
  gap: clamp(16px, 2vw, 30px);
  padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 56px);
}
.hero-copy { max-width: 640px; justify-self: end; }
.eyebrow {
  color: var(--green); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.28em; font-size: clamp(11px, 1.6vw, 14px);
  text-shadow: 0 0 12px rgba(93, 255, 93, 0.5); margin-bottom: 18px;
}
.hero-headline {
  font-weight: 900; line-height: 1.02; letter-spacing: 0.01em;
  font-size: clamp(34px, 6vw, 68px); text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 28px rgba(177, 77, 255, 0.55), 0 2px 0 rgba(0,0,0,0.6);
}
.hero-headline .accent { color: var(--purple); }
.hero-sub {
  margin-top: 22px; color: var(--muted); font-size: clamp(15px, 1.9vw, 18px);
  max-width: 56ch;
}
.hero-sub strong { color: var(--ink); }
.hero-sub .call {
  display: block; margin-top: 14px; color: var(--green); font-weight: 700;
  font-size: 1.04em; text-shadow: 0 0 10px rgba(93, 255, 93, 0.35);
}
.hero-copy .soon-banner { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

/* Closed-alpha seat counter + steps. Hidden until /api/wave answers (site.js),
   so an unreachable API shows nothing rather than an empty box. */
.alpha-call {
  margin-top: 22px; padding: 16px 18px; border-radius: 10px;
  border: 1px solid var(--green-deep);
  background: linear-gradient(180deg, rgba(31, 143, 31, 0.14), rgba(20, 10, 34, 0.5));
}
.alpha-call.is-full { border-color: var(--purple-dim); background: var(--panel); }
.alpha-head {
  display: flex; align-items: center; gap: 10px;
  color: var(--green); font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; font-size: clamp(14px, 1.7vw, 17px);
}
.alpha-call.is-full .alpha-head { color: var(--purple); }
/* Pulsing "live" dot — stilled for reduced-motion and when the wave is full. */
.alpha-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: alpha-pulse 1.8s ease-in-out infinite;
}
.alpha-call.is-full .alpha-dot { background: var(--purple); box-shadow: none; animation: none; }
@keyframes alpha-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .alpha-dot { animation: none; } }
.alpha-steps {
  margin: 12px 0 0; padding-left: 20px;
  color: var(--ink); font-size: 14px; line-height: 1.85;
}
.alpha-steps li::marker { color: var(--green); font-weight: 700; }
.alpha-fine { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* Alpha announcement modal — shown once per wave per visitor (site.js). */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 3, 10, 0.82); backdrop-filter: blur(3px);
  animation: modal-in 0.22s ease-out;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 26px 28px; border-radius: 14px;
  border: 1px solid var(--green-deep); background: #0d0718;
  box-shadow: 0 0 0 1px rgba(93, 255, 93, 0.1), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.modal-title {
  margin: 6px 0 0; color: var(--ink); line-height: 1.25;
  font-size: clamp(21px, 3.2vw, 27px); font-weight: 800;
}
.modal-title #alpha-modal-count { color: var(--green); }
/* Claim-your-spot card inside the account panel (src/site/claim.ts). */
.claim-box {
  margin: 4px 0 2px; padding: 16px 16px 18px; border-radius: 10px;
  border: 1px solid var(--green-deep);
  background: linear-gradient(180deg, rgba(31, 143, 31, 0.14), rgba(20, 10, 34, 0.4));
  display: flex; flex-direction: column; gap: 10px;
}
.claim-box[hidden] { display: none; }
.claim-step {
  color: var(--green); font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.claim-title { color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.3; }

/* Visible to screen readers only — the checklist state as words, not a glyph. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Four-step checklist: every step visible, with its state. */
.claim-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.claim-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; line-height: 1.45; color: var(--faint);
}
.claim-mark { flex: none; width: 15px; text-align: center; font-weight: 800; }
.claim-item.is-done { color: var(--muted); }
.claim-item.is-done .claim-mark { color: var(--green); }
/* The current step is the only one that should pull the eye. */
.claim-item.is-now { color: var(--ink); font-weight: 700; }
.claim-item.is-now .claim-mark { color: var(--green); }
.claim-item.is-todo .claim-mark { color: var(--faint); }
.claim-body { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.claim-progress {
  color: var(--green); font-family: var(--mono); font-size: 12.5px;
}
.claim-progress[hidden] { display: none; }

.modal-when {
  margin: 10px 0 0; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--green-deep); background: rgba(31, 143, 31, 0.12);
  color: var(--green); font-family: var(--mono); font-size: 14px; font-weight: 700;
}
.modal-when[hidden] { display: none; }
.modal-lede { margin: 12px 0 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
.modal .alpha-steps { margin-top: 14px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.modal-x {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; cursor: pointer;
  color: var(--faint); font-size: 26px; line-height: 1; padding: 4px 8px;
}
.modal-x:hover { color: var(--ink); }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal-backdrop { animation: none; } }

/* CSS-only hero art placeholder: animated crater glow + drifting sparks.
   SWAP this whole block for the real pixel-art GIF when it exists. */
.hero-art {
  position: relative; align-self: stretch; min-height: 320px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(60% 40% at 50% 82%, rgba(57, 255, 60, 0.30), rgba(0,0,0,0) 70%),
    radial-gradient(80% 60% at 50% 30%, rgba(123, 40, 180, 0.30), rgba(0,0,0,0) 72%),
    #07040e;
}
.hero-art .crater {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  width: 64%; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(93, 255, 93, 0.85), rgba(93,255,93,0) 75%);
  filter: blur(2px); animation: craterPulse 2.4s ease-in-out infinite;
}
@keyframes craterPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.hero-art .spark {
  position: absolute; bottom: 52px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: spark 2.6s linear infinite;
}
.hero-art .spark.p { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.hero-art .spark:nth-child(2) { left: 42%; animation-delay: 0.2s; }
.hero-art .spark:nth-child(3) { left: 50%; animation-delay: 0.9s; }
.hero-art .spark:nth-child(4) { left: 56%; animation-delay: 1.4s; }
.hero-art .spark:nth-child(5) { left: 47%; animation-delay: 1.9s; }
.hero-art .spark:nth-child(6) { left: 53%; animation-delay: 0.6s; }
@keyframes spark {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(-220px) scale(0.4); opacity: 0; }
}
.hero-art .hero-img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: pixelated; /* keep pixel art crisp */
}
/* Once the real art loads, drop the CSS placeholder fx. */
.hero-art.has-img .art-note,
.hero-art.has-img .spark,
.hero-art.has-img .crater { display: none; }
.hero-art .art-note {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--faint); text-transform: uppercase;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  cursor: pointer; font-weight: 800; text-transform: uppercase;
  font-size: clamp(13px, 1.7vw, 16px); letter-spacing: 0.07em;
  padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font);
  transition: transform 0.1s, filter 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-buy {
  color: #04030a; background: linear-gradient(90deg, var(--green), #b6ff5a);
  box-shadow: 0 0 22px rgba(93, 255, 93, 0.5);
}
.btn-buy:hover { filter: brightness(1.07); box-shadow: 0 0 30px rgba(93, 255, 93, 0.7); }
.btn-ghost { color: var(--purple); border-color: rgba(177, 77, 255, 0.55); }
.btn-ghost:hover { color: var(--ink); border-color: var(--purple); box-shadow: 0 0 18px rgba(177,77,255,0.4); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; filter: grayscale(0.35); box-shadow: none;
  pointer-events: none;
}

/* "Coming Soon · no ETA" status pill — used wherever the Founders Pass is offered
   so it's unmistakable the pass is not on sale yet. */
.soon-banner {
  display: inline-flex; align-items: center; gap: 9px; align-self: center;
  font-family: var(--mono); font-size: clamp(11px, 1.5vw, 13px); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green);
  border: 1px solid rgba(93, 255, 60, 0.45); border-radius: 999px;
  padding: 8px 16px; background: rgba(57, 255, 60, 0.07);
}
.soon-banner .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: blink 1.4s ease-in-out infinite; flex: none;
}

/* ------------------------------------------------------------- founders box */
.section { padding: clamp(40px, 7vw, 80px) clamp(16px, 5vw, 56px); }
.section-narrow { max-width: 760px; margin: 0 auto; }

.founders {
  border: 1px solid rgba(93, 255, 93, 0.45); border-radius: 16px;
  background: var(--panel); backdrop-filter: blur(6px);
  box-shadow: 0 0 40px rgba(57, 255, 60, 0.12), inset 0 0 60px rgba(123, 40, 180, 0.08);
  padding: clamp(24px, 4vw, 44px);
}
.founders h2 {
  font-size: clamp(20px, 3vw, 30px); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--green); text-shadow: 0 0 16px rgba(93, 255, 93, 0.45);
}
.founders .lede { color: var(--muted); margin-top: 12px; font-size: clamp(14px, 1.8vw, 17px); }
.perks { list-style: none; margin: 26px 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks b { color: var(--ink); }
.perks .tick { color: var(--green); flex: none; font-weight: 900; }
.perks span.txt { color: var(--muted); }

.buy-row {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}
.slots {
  font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); font-size: clamp(12px, 1.6vw, 14px);
}
.slots b { color: var(--ink); }
.price-tag { color: var(--faint); font-size: 13px; }

/* --------------------------------------------------------------- mission */
.section-title {
  text-align: center; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(20px, 3vw, 30px); color: var(--purple);
  text-shadow: 0 0 18px rgba(177, 77, 255, 0.4); margin-bottom: 8px;
}
.section-kicker { text-align: center; color: var(--green); letter-spacing: 0.28em;
  text-transform: uppercase; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 30px; max-width: 980px; margin-inline: auto; }
.card {
  border: 1px solid var(--line); border-radius: 12px; padding: 22px;
  background: var(--panel);
}
.card h3 { color: var(--green); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 15px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- dev log */
.devlog { max-width: 760px; margin: 0 auto; padding: clamp(40px,7vw,80px) clamp(16px,5vw,56px); }
.devlog-head { text-align: center; margin-bottom: 36px; }
.log-entry {
  border-left: 2px solid var(--purple); padding: 4px 0 24px 22px; position: relative;
}
.log-entry::before {
  content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green);
}
.log-date { font-family: var(--mono); color: var(--green); font-size: 12px; letter-spacing: 0.12em; }
.log-entry h3 { color: var(--ink); margin: 4px 0 8px; font-size: clamp(16px,2.2vw,20px); }
.log-entry p { color: var(--muted); font-size: 14px; }
.log-empty {
  text-align: center; font-family: var(--mono); color: var(--faint);
  letter-spacing: 0.16em; padding: 40px 0;
}
.log-images { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.log-images img, .log-images video { max-width: 100%; border: 1px solid var(--purple); image-rendering: pixelated; }
.log-images iframe { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--purple); display: block; }

/* --------------------------------------------------------- briefing (lore) */
.briefing { padding: clamp(40px, 7vw, 80px) clamp(16px, 5vw, 56px); }
.briefing .section-kicker { margin-bottom: 22px; }
.dossier {
  max-width: 860px; margin: 0 auto; position: relative; overflow: hidden;
  border: 1px solid rgba(93, 255, 60, 0.35); border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 18, 8, 0.85), rgba(12, 6, 22, 0.9));
  box-shadow: 0 0 42px rgba(57, 255, 60, 0.1), inset 0 0 90px rgba(0, 0, 0, 0.45);
}
.dossier-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; padding: 12px 18px;
  border-bottom: 1px solid rgba(93, 255, 60, 0.22); background: rgba(57, 255, 60, 0.06);
  font-family: var(--mono); font-size: clamp(11px, 1.5vw, 13px); letter-spacing: 0.12em;
  color: var(--green); text-transform: uppercase;
}
.dossier-head .stamp {
  color: #ff5d6c; border: 1px solid rgba(255, 93, 108, 0.5); border-radius: 4px;
  padding: 2px 9px; font-size: 10px; letter-spacing: 0.22em;
}
.dossier-body { padding: clamp(22px, 3.6vw, 36px); }
.dossier-body p { color: var(--ink); font-size: clamp(15px, 1.95vw, 18px); line-height: 1.75; font-style: italic; }
.dossier-body p + p { margin-top: 16px; }
.dossier-body b { color: var(--green); font-style: normal; }
.dossier-sign {
  margin-top: 22px; font-family: var(--mono); font-style: normal;
  color: var(--green); letter-spacing: 0.12em; font-size: 14px;
}
.dossier-sign .cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------- tech & roadmap */
.roadmap-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 980px; margin: 30px auto 0;
}
.tech-card { border: 1px solid var(--line); border-radius: 12px; padding: 26px; background: var(--panel); }
.tech-card h3 {
  color: var(--purple); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 15px; margin-bottom: 12px; text-shadow: 0 0 12px rgba(177, 77, 255, 0.4);
}
.tech-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.tech-card code { color: var(--green); font-family: var(--mono); }
.phase-badge {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--green); border: 1px solid rgba(93, 255, 60, 0.4); border-radius: 999px;
  padding: 3px 11px; margin-bottom: 16px; text-transform: uppercase;
}
.phase-list { list-style: none; display: grid; gap: 11px; }
.phase-list li { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.phase-list .tick { color: var(--green); font-weight: 900; flex: none; }
.phase-list b { color: var(--ink); }
@media (max-width: 720px) { .roadmap-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- footer */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 18px clamp(16px, 5vw, 56px);
  border-top: 1px solid var(--line); color: var(--faint); font-size: 12px;
}
.site-footer a { color: var(--faint); text-decoration: none; }
.site-footer a:hover { color: var(--muted); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { justify-self: stretch; max-width: 100%; }
  .hero-art { order: -1; min-height: 200px; }
}
@media (max-width: 480px) {
  .site-nav { gap: 4px; }
  .tab-btn { padding: 8px 6px; }
}

/* ------------------------------------------------------------------ enlist */
/* Registration IS the mailing-list signup (one accounts row per player). */
.enlist-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px);
  max-width: 980px; margin: 30px auto 0; align-items: center;
}
@media (max-width: 820px) { .enlist-grid { grid-template-columns: 1fr; } }
.enlist-copy p { color: var(--muted); font-size: clamp(14px, 1.8vw, 17px); line-height: 1.7; }
.enlist-copy p + p { margin-top: 14px; }
.enlist-copy b { color: var(--ink); }
.enlist-fine { font-size: 0.88em; color: var(--faint); }
.enlist-form {
  display: grid; gap: 12px;
  border: 1px solid rgba(93, 255, 93, 0.45); border-radius: 16px;
  background: var(--panel); backdrop-filter: blur(6px);
  box-shadow: 0 0 40px rgba(57, 255, 60, 0.12), inset 0 0 60px rgba(123, 40, 180, 0.08);
  padding: clamp(20px, 3vw, 30px);
}
.enlist-form .field {
  font-family: var(--mono); font-size: 14px; color: var(--ink); width: 100%;
  background: rgba(7, 4, 14, 0.8); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; outline: none;
}
.enlist-form .field::placeholder { color: var(--faint); }
.enlist-form .field:focus { border-color: var(--purple); box-shadow: 0 0 12px rgba(177, 77, 255, 0.35); }
.enlist-form .check {
  display: flex; gap: 10px; align-items: center; color: var(--muted);
  font-size: 14px; cursor: pointer; user-select: none;
}
.enlist-form .check input { accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.form-msg { min-height: 1.3em; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #ff5d6c; }
.enlist-done {
  text-align: center; font-family: var(--mono); color: var(--ink);
  line-height: 1.8; padding: 16px 6px;
}
.enlist-done b { color: var(--green); letter-spacing: 0.14em; }
.log-cta { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--green); text-decoration: underline;
}
.linklike:hover { text-shadow: 0 0 10px rgba(93, 255, 93, 0.5); }

/* ------------------------------------------------------------------ account */
/* Header button: "Sign In" signed out, the username signed in. */
.nav-account {
  background: rgba(177, 77, 255, 0.08); border: 1px solid var(--line);
  color: var(--purple); cursor: pointer; border-radius: 999px;
  font-family: var(--font); font-weight: 800; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  padding: 7px 14px;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.nav-account:hover { color: var(--ink); border-color: var(--purple); box-shadow: 0 0 14px rgba(177, 77, 255, 0.35); }
.nav-account.signed-in { color: var(--green); border-color: rgba(93, 255, 93, 0.45); }
.nav-account.signed-in:hover { box-shadow: 0 0 14px rgba(93, 255, 93, 0.35); }

/* Account panel: one centered card (login form or account card). */
.account-wrap { max-width: 460px; margin: 30px auto 0; }
.account-loading {
  text-align: center; font-family: var(--mono); color: var(--faint);
  letter-spacing: 0.16em; padding: 24px 0;
}
.acct-row {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  font-size: 14px; color: var(--muted);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.acct-row span:first-child {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); flex: none;
}
.acct-row b { color: var(--ink); overflow-wrap: anywhere; text-align: right; }
.acct-row span:last-child { overflow-wrap: anywhere; text-align: right; }
