/* ==========================================================================
   DISCO69 — shared styles
   Palette from NTD: deep-space purple, cyan UI frames, terminal green,
   the orange "LEVEL CLEAR" banner, gold '89.
   Type: Chakra Petch (display), Inter (body), Press Start 2P only for tiny accents.
   ========================================================================== */

@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url("../fonts/press-start-2p.woff2") format("woff2"); font-display: swap; }

:root {
  --space-0: #05030c;
  --space-1: #0b0618;
  --nebula: #5a0f3a;
  --panel: #0a1220;
  --panel-2: #0e1a2e;
  --line: #16263a;
  --cyan: #00f0f0;
  --cyan-mid: #00a9b8;
  --cyan-dim: #067a8a;
  --cyan-dark: #07343a;
  --green: #5cff6a;
  --green-dim: #2fa83c;
  --orange: #e2501f;
  --orange-dark: #8c2a0e;
  --gold: #ffc21a;
  --pink: #ff3fa4;
  --red: #ff4b4b;
  --lime: #ccff00;
  --mint: #2ee6a6;
  --ink: #eef6ff;
  --ink-dim: #a9bccd;
  --ink-faint: #6b8197;

  --font-display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", monospace;

  --w: 1140px;
  --gutter: 20px;
  --notch: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(255, 63, 164, .18), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(90, 15, 58, .5), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, rgba(0, 169, 184, .12), transparent 60%),
    var(--space-1);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* very light CRT scanlines */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .06) 3px);
}

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; pointer-events: none; }

img, video, canvas { max-width: 100%; }
img.px, .px img, canvas { image-rendering: pixelated; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
p a, td a, li a, .dim a { text-decoration: underline; text-decoration-color: rgba(0, 240, 240, .35); text-underline-offset: 3px; }
:focus-visible { outline: 2px dashed var(--gold); outline-offset: 3px; }
::selection { background: var(--pink); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: #000; padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--w), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); color: #fff; }
h3 { font-size: 20px; font-weight: 600; color: var(--gold); }
h4 { font-size: 13px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .12em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); max-width: 46ch; line-height: 1.55; }
.dim { color: var(--ink-dim); }
.small { font-size: 14px; }
.eyebrow {
  display: inline-block; font-family: var(--font-pixel); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 16px; line-height: 1.6;
}
.eyebrow::before { content: "> "; color: var(--pink); }
.accent { color: var(--pink); }

/* ---------- section ---------- */
section { padding: 80px 0; position: relative; }
.sec-head { margin-bottom: 32px; }
.sec-head h2 { margin-bottom: 0; }
.sec-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; background: linear-gradient(90deg, var(--orange) 0 60%, var(--gold) 60%); }
.sec-head p { margin: 14px 0 0; }

/* ---------- panel with notched corners ---------- */
.panel {
  --b: var(--cyan-dim);
  position: relative; padding: 26px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid var(--b);
  clip-path: polygon(0 var(--notch), var(--notch) var(--notch), var(--notch) 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) var(--notch), 100% var(--notch), 100% calc(100% - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch)));
}
.panel--pink { --b: #a12a6b; } .panel--gold { --b: #9a7410; } .panel--green { --b: var(--green-dim); } .panel--orange { --b: var(--orange); }
.panel > :last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--cyan); --fg: #031014; --sh: var(--cyan-dim);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .02em;
  padding: 14px 20px; background: var(--bg); color: var(--fg); border: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 0 var(--sh);
  transition: transform .08s ease, box-shadow .08s ease, filter .12s;
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% 100%, 0 100%);
}
.btn:hover { color: var(--fg); filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 6px 0 var(--sh); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sh); }
.btn--orange { --bg: var(--orange); --fg: #fff; --sh: var(--orange-dark); }
.btn--gold { --bg: var(--gold); --fg: #1a1000; --sh: #a37700; }
.btn--ghost { --bg: transparent; --fg: var(--cyan); --sh: transparent; box-shadow: inset 0 0 0 2px var(--cyan-dim); }
.btn--ghost:hover { --fg: #fff; box-shadow: inset 0 0 0 2px var(--cyan); }
.btn--sm { font-size: 13px; padding: 10px 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 3, 12, .86); border-bottom: 1px solid var(--cyan-dark); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-pixel); font-size: 13px; color: #fff; text-decoration: none; }
.brand img { width: 38px; height: 38px; image-rendering: pixelated; }
.brand b { color: var(--pink); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 10px 14px; color: var(--ink-dim); text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: var(--cyan); box-shadow: inset 0 -2px 0 var(--orange); }
.nav-links .btn { margin-left: 10px; padding: 10px 14px; font-size: 14px; color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--cyan-dim); color: var(--cyan); font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 8px 12px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--space-0); border-bottom: 1px solid var(--cyan-dark); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 20px; border-top: 1px solid #12202c; }
  .nav-links .btn { margin: 12px 20px 16px; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero h1 { color: #fff; }
.hero-art { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-art img { width: 100%; display: block; }
.frame { border: 3px solid var(--cyan-mid); box-shadow: 10px 10px 0 var(--nebula), 0 0 60px rgba(0, 240, 240, .12); }
.frame--pink { border-color: var(--pink); }
.logo-h1 { margin: 0; line-height: 0; }
.logo-h1 img { width: min(100%, 470px); margin: -28px 0 -24px -22px; image-rendering: pixelated; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 5px 11px; background: rgba(7, 52, 58, .6); color: var(--cyan); border: 1px solid var(--cyan-dim); }
.chip--pink { background: rgba(58, 15, 44, .6); color: #ff7cc0; border-color: #8a2764; }
.chip--gold { background: rgba(58, 42, 5, .6); color: var(--gold); border-color: #8a6a10; }
.chip--green { background: rgba(11, 42, 16, .6); color: var(--green); border-color: var(--green-dim); }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--cyan); color: #031014; border-color: var(--cyan); }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.crew-card { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; }
.crew-card img { width: 132px; height: 132px; object-fit: cover; }
.crew-card .avatar-circle { border-radius: 50%; }
.crew-card h3 { margin-bottom: 2px; color: #fff; font-size: 22px; }
.crew-card .role { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.crew-card p { margin-bottom: 8px; }
@media (max-width: 520px) { .crew-card { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.game-card { display: grid; grid-template-columns: 1.15fr 1fr; padding: 0; }
.game-card .shot { display: block; position: relative; min-height: 300px; background: #000; }
.game-card .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: 34px; }
@media (max-width: 800px) { .game-card { grid-template-columns: 1fr; } .game-card .shot { min-height: 0; aspect-ratio: 16/9; } }

.tile { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--ink); background: rgba(10, 18, 32, .85); border: 1px solid var(--cyan-dark); font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.3; text-decoration: none; transition: transform .1s, border-color .1s, box-shadow .1s; }
.tile:hover { border-color: var(--cyan); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--pink); color: #fff; }
.tile small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--ink-dim); margin-top: 2px; }
.tile .ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--cyan-dark); color: var(--cyan); font-family: var(--font-pixel); font-size: 12px; }
.tile.hot .ico { background: var(--orange); color: #fff; }

.roster { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
@media (max-width: 700px) { .roster { grid-template-columns: 1fr; } }
.mods { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.mods li { background: #000; border: 1px solid var(--cyan-dark); padding: 8px; display: grid; place-items: center; }
.mods img { width: 40px; height: 40px; image-rendering: pixelated; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; padding: 26px 0; }
.feature:nth-child(even) .media { order: 2; }
.feature .media { border: 3px solid var(--cyan-mid); background: #000; box-shadow: 8px 8px 0 var(--nebula); }
.feature .media video { display: block; width: 100%; height: auto; }
.feature h3 { font-size: 26px; margin-bottom: 12px; }
.feature p { font-size: 18px; color: var(--ink-dim); max-width: 42ch; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: 20px; } .feature:nth-child(even) .media { order: 0; } }

.banner { display: inline-block; padding: 12px 44px 12px 18px; background: var(--orange); color: #fff; font-family: var(--font-pixel); font-size: 12px; text-shadow: 2px 2px 0 #000; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; position: relative; background: #000; border: 1px solid var(--cyan-dark); }
.gallery figure:hover { border-color: var(--cyan); }
.gallery img, .gallery video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery button.open { all: unset; cursor: zoom-in; display: block; width: 100%; }
.gallery button.open:focus-visible { outline: 2px dashed var(--gold); outline-offset: -4px; }
.gallery figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink-dim); }
.gallery figcaption a { font-family: var(--font-display); font-weight: 600; white-space: nowrap; text-decoration: none; }
.gallery figcaption span { display: flex; gap: 12px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(2, 1, 8, .94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border: 3px solid var(--cyan-mid); }
.lightbox .lb-ui { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 10px; } .lightbox .next { right: 10px; }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--ink-dim); }

.video-frame { position: relative; aspect-ratio: 16/9; background: #000; border: 3px solid var(--cyan-mid); box-shadow: 10px 10px 0 var(--nebula); }
.video-frame iframe, .video-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame button { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .3); border: 0; cursor: pointer; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.video-frame button span { background: var(--orange); padding: 16px 26px; box-shadow: 0 4px 0 var(--orange-dark); }
.video-frame button:hover span { filter: brightness(1.15); }

/* ---------- space diamond companion ---------- */
#companion, #trail { position: fixed; pointer-events: none; }
#trail { inset: 0; width: 100%; height: 100%; z-index: 89; image-rendering: pixelated; }
#companion { left: 0; top: 0; z-index: 90; width: 56px; height: 56px; margin: -28px 0 0 -28px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(0, 240, 240, .55)); will-change: transform; opacity: 0; transition: opacity .4s; }
#companion.on { opacity: 1; }
@media (pointer: coarse) { #companion { width: 44px; height: 44px; margin: -22px 0 0 -22px; } }
.companion-toggle { margin-top: 16px; }

/* ---------- press kit ---------- */
.press-layout { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .press-layout { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 92px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--cyan-dark); }
.toc a { display: block; padding: 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-dim); font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--cyan); border-left-color: var(--orange); }
@media (max-width: 960px) { .toc { display: none; } }
.press-layout section { padding: 48px 0; border-top: 1px solid var(--line); }
.press-layout section:first-of-type { border-top: 0; padding-top: 0; }

table.facts { width: 100%; border-collapse: collapse; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.facts tr:last-child th, table.facts tr:last-child td { border-bottom: 0; }
table.facts th { width: 180px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); padding-top: 15px; }
@media (max-width: 560px) { table.facts th, table.facts td { display: block; width: auto; } table.facts th { padding-bottom: 0; border: 0; } }

.copyblock .label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.copyblock p { font-size: 17px; }
.copyblock p:last-child { margin-bottom: 0; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.swatch { all: unset; cursor: pointer; display: block; border: 1px solid var(--line); background: var(--panel); }
.swatch:focus-visible { outline: 2px dashed var(--gold); outline-offset: 3px; }
.swatch i { display: block; height: 56px; }
.swatch span { display: block; padding: 8px 10px; font-size: 13px; color: var(--ink-dim); }
.swatch b { display: block; color: #fff; font-family: var(--font-display); font-weight: 600; }

.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.asset { background: var(--panel); border: 1px solid var(--cyan-dark); display: flex; flex-direction: column; }
.asset .pv { display: grid; place-items: center; height: 170px; padding: 16px; }
.asset .pv img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pv.dark { background: #05030c; }
.pv.check { background: conic-gradient(#1a2538 25%, #101a2a 0 50%, #1a2538 0 75%, #101a2a 0) 0 0 / 20px 20px; }
.asset .meta { padding: 12px 14px 14px; border-top: 1px solid var(--cyan-dark); display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: space-between; }
.asset .meta b { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff; }
.asset .meta small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--ink-dim); margin-top: 2px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--cyan-dark); }
.timeline li { position: relative; padding: 0 0 24px 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; background: var(--orange); box-shadow: 0 0 0 3px var(--space-1); }
.timeline time { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.timeline b { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.timeline p { margin: 2px 0 0; color: var(--ink-dim); }

/* coverage */
.mention-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.mention { display: grid; grid-template-columns: 200px 1fr auto; gap: 20px; align-items: center; background: rgba(10, 18, 32, .85); border: 1px solid var(--cyan-dark); padding: 12px; }
.mention:hover { border-color: var(--cyan); }
.mention .thumb { position: relative; display: block; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.mention .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mention .thumb .kind { position: absolute; left: 6px; top: 6px; }
.mention .kind { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; background: var(--cyan-dark); color: var(--cyan); }
.mention .kind[data-k="article"] { background: #3a0f2c; color: #ff7cc0; }
.mention .kind[data-k="video"], .mention .kind[data-k="stream"] { background: var(--orange); color: #fff; }
.mention .kind[data-k="review"] { background: #3a2a05; color: var(--gold); }
.mention .kind[data-k="playtest"] { background: #0b2a10; color: var(--green); }
.mention h4 { font-size: 18px; color: #fff; margin: 0 0 4px; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.mention p { margin: 0; font-size: 15px; color: var(--ink-dim); }
.mention .src { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--cyan); }
.mention .src span { color: var(--ink-faint); font-weight: 500; }
@media (max-width: 760px) { .mention { grid-template-columns: 1fr; } }
.filters { margin-bottom: 18px; }

details.faq { border: 1px solid var(--cyan-dark); background: var(--panel); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 18px; font-family: var(--font-display); font-weight: 600; font-size: 17px; list-style: none; color: #fff; }
details.faq summary::before { content: "+ "; color: var(--orange); }
details.faq[open] summary::before { content: "– "; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq div { padding: 0 18px 16px; color: var(--ink-dim); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--cyan-dark); background: rgba(5, 3, 12, .85); padding: 44px 0 56px; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.foot h4 { margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot li a { text-decoration: none; }
.foot small { color: var(--ink-faint); font-size: 14px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(30px); z-index: 400; background: var(--green); color: #021a05; font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 12px 18px; opacity: 0; pointer-events: none; transition: all .15s; }
.toast.show { opacity: 1; transform: translateX(-50%); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- page loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: radial-gradient(600px 400px at 50% 45%, rgba(0, 169, 184, .12), transparent 70%), rgba(5, 3, 12, .96);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s;
}
#loader.on { opacity: 1; visibility: visible; transition: opacity .15s; }
.ld-box { width: min(340px, 100% - 40px); text-align: center; }
.ld-box img { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(0, 240, 240, .6)); }
.ld-title { margin: 16px 0 14px; font-family: var(--font-pixel); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.ld-dots::after { content: ""; display: inline-block; width: 3ch; text-align: left; animation: ld-dots 1s steps(4) infinite; }
@keyframes ld-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
.ld-bar { height: 16px; padding: 3px; border: 2px solid var(--cyan-mid); background: #000; }
.ld-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--cyan) 0 10px, transparent 10px 13px); }
#loader.go .ld-bar i { animation: ld-fill 1.6s steps(12) forwards; }
@keyframes ld-fill { to { width: 92%; } }
.ld-tip { margin: 18px 0 0; font-size: 15px; color: var(--ink-dim); min-height: 3em; }
.ld-tip b { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
#loader.still .ld-dots::after { animation: none; content: "..."; }
#loader.still .ld-bar i { animation: none; width: 60%; }

@media print {
  body::after, #stars, #companion, #trail, .site-header, .toc, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
