/* DW Online — the site.
   The Digital World seen through its own code: black space, a faint fall of green glyphs, dark-glass windows with a
   thin neon edge and bracket corners, and the game's own art up front. Headings use the bitmap face of the game's
   menus (Silkscreen, served from this site); reading text is the system's own sans so it stays easy on any screen;
   labels, buttons and numbers use the system monospace. One family of greens; amber and red only for warnings and
   errors. Crest and zone colours are information, so they stay. Square corners everywhere. */

@font-face { font-family: "Silkscreen"; src: url("/fonts/silkscreen-regular.woff") format("woff"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --black: #000; --ground: #010402;
  --grid: #3cff5c; --grid-dim: #1c9a3a; --grid-deep: #0a3d1a; --head: #eafff0;
  --glass: rgba(2, 12, 5, .86); --glass-deep: rgba(0, 7, 2, .92); --line: rgba(60, 255, 92, .42); --line-soft: rgba(60, 255, 92, .18);
  --text: #dcf5e3; --muted: #9cc8a9; --dim: #6f9f7b;
  /* Older names, kept so every page and the portal follow the palette without edits. */
  --panel-a: var(--glass); --panel-b: var(--glass); --panel-line: var(--line); --panel-inner: #000; --panel-deep: var(--glass-deep); --panel-mid: var(--glass);
  --yellow: var(--head); --yellow-2: var(--grid); --cyan: #7dffa8;
  --ok: #3cff5c; --warn: #ffc857; --bad: #ff6b6b;
  --funds: #7dff9a;
  --premium: #ffd36b;
  --crest-courage: #f28c28; --crest-friendship: #3a7bd5; --crest-love: #d9413a; --crest-knowledge: #8a5ad6;
  --crest-sincerity: #3fa35a; --crest-reliability: #8e9aa6; --crest-hope: #f2c230; --crest-light: #f08bc1;
  --zone-trial: #7d8aa5; --zone-savanna: #c9a227; --zone-dino: #b4532c; --zone-frost: #8fd3f4;
  --zone-factory: #8e9aa6; --zone-canyon: #d08b4b; --zone-trail: #e0762a; --zone-spiral: #8f6bd6; --zone-guild: #3cff5c;
  --font-head: "Silkscreen", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-read: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-data: var(--font-ui);
  --glow: 0 0 12px rgba(60, 255, 92, .35);
  --c: var(--grid);
  /* Bracket corners, drawn as eight thin bars over the glass. */
  --brackets:
    linear-gradient(var(--c), var(--c)) left top / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) left top / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) right top / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 2px 14px no-repeat;
  --bevel: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--text); font: 400 1.0625rem/1.65 var(--font-read); min-height: 100vh; -webkit-font-smoothing: antialiased; }
/* A faint scanline over everything, like the game's own screen. */
body::after { content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 3px); }
#signal { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .3; }
[hidden] { display: none !important; }
.page { position: relative; z-index: 1; }
a { color: var(--grid); text-underline-offset: 3px; }
a:hover { color: var(--head); }
img, svg, canvas, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 .7rem; color: var(--head); letter-spacing: .01em; text-shadow: 0 0 16px rgba(60, 255, 92, .4); }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
h3 { font-size: 1.02rem; color: var(--grid); }
h4 { margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
strong { color: var(--head); font-weight: 600; }
::selection { background: var(--grid); color: #000; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mono, .num, table.ledger-table { font-family: var(--font-data); }
:is(p, li, td, h3) .mono { font-size: .86em; }
.label { font: 500 .78rem/1.4 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--grid); }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--head); color: #011a07; font: 600 .9rem/1 var(--font-ui); text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Terminal windows: dark glass, a thin neon edge, bracket corners. (.ledger is the portal's.) */
.panel, .ledger { background: var(--brackets), var(--glass); border: 1px solid var(--line); padding: 26px; color: var(--text); position: relative; backdrop-filter: blur(4px); }
.ledger-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ledger-head h2, .ledger-head h3 { margin: 0; }
.ledger-head h2::before { content: "> "; color: var(--grid); text-shadow: none; }
.ledger .muted { color: var(--muted); }
.card { --c: var(--zone, var(--grid)); background: var(--brackets), var(--glass-deep); border: 1px solid var(--line-soft); padding: 20px; position: relative; }
.card .zone { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--zone, var(--grid)); box-shadow: 0 0 8px var(--zone, var(--grid)); }
.media { background: #000; border: 1px solid var(--line); overflow: hidden; position: relative; }
.media img, .media canvas { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 7; }
.media.tall img, .media.tall canvas { aspect-ratio: 16 / 9; }
.media canvas[data-plate] { background: radial-gradient(ellipse at 50% 45%, #041a0c 0%, #010703 70%, #000 100%); }
.media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 30px rgba(60, 255, 92, .1), inset 0 0 70px rgba(0, 0, 0, .55); }
.caption { display: block; padding: 10px 16px; background: var(--glass); border: 1px solid var(--line); border-top: 0; font: 500 .9rem/1.4 var(--font-ui); text-decoration: none; color: var(--text); }
.caption::before { content: "> "; color: var(--grid); }
a.caption:hover, a:hover .caption, a.caption:focus-visible { color: var(--head); }
.strip { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--glass-deep); border: 1px solid var(--line); }
.tri { width: 0; height: 0; border-left: 14px solid var(--text); border-top: 9px solid transparent; border-bottom: 9px solid transparent; flex: none; }
.tri.yellow { border-left-color: var(--grid); }

/* Header: the wordmark, the four places, the account. Over the home hero it sits on the video. */
header.page { z-index: 5; }
.topbar { display: flex; align-items: center; gap: 22px; padding: 10px 14px; margin: 14px 0 0; background: var(--brackets), var(--glass); border: 1px solid var(--line); backdrop-filter: blur(6px); }
header.over-hero { position: absolute; top: 0; left: 0; right: 0; }
header.over-hero .topbar { background: var(--brackets), rgba(0, 6, 2, .55); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .04em; color: var(--head); padding: 6px 12px; border: 1px solid var(--grid);
  background: rgba(60, 255, 92, .08); text-shadow: 0 0 12px rgba(60, 255, 92, .8); text-transform: uppercase; white-space: nowrap; }
.logo:hover { color: #000; background: var(--grid); text-shadow: none; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a, .nav button { display: inline-flex; align-items: center; min-height: 44px; font: 500 .86rem/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--text); padding: 11px 13px; border: 1px solid transparent; background: none; cursor: pointer; }
.nav a:hover, .nav button:hover { color: var(--head); text-shadow: var(--glow); }
.nav a[aria-current="page"] { border-color: var(--grid); color: var(--head); }
.nav .session { padding-left: 10px; margin-left: 6px; border-left: 1px solid var(--line); display: flex; gap: 2px; align-items: center; }
.nav .session .btn { text-transform: uppercase; }
.ribbon { position: relative; z-index: 6; background: var(--warn); color: #120d00; font: 500 .9rem/1.3 var(--font-data); text-align: center; padding: 6px 16px; }

/* Buttons: outlined green commands; the primary one is lit. */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 22px; border: 1px solid var(--grid); background: rgba(60, 255, 92, .06); color: var(--head); text-decoration: none; font: 600 .92rem/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background 90ms ease, color 90ms ease, box-shadow 90ms ease; }
.btn:hover, .btn:focus-visible { background: rgba(60, 255, 92, .18); box-shadow: var(--glow); color: var(--head); text-shadow: none; }
.btn-primary { background: var(--grid); color: #011a07; box-shadow: 0 0 22px rgba(60, 255, 92, .35); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--head); color: #011a07; }
.btn-primary::before { content: ""; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--grid); text-decoration: underline; text-underline-offset: 4px; }
.btn-large { padding: 17px 30px; font-size: 1rem; }
.btn-small { padding: 7px 12px; font-size: .8rem; gap: 8px; }
.btn-small.btn-primary::before { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--head); outline-offset: 2px; }
.tag { display: inline-block; padding: 3px 8px; font: 600 .72rem/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; }
.tag-claimed, .tag-ok { color: var(--ok); } .tag-active { color: var(--head); text-shadow: var(--glow); } .tag-available { color: var(--cyan); } .tag-locked { color: var(--dim); }
.tag-warn { color: var(--warn); } .tag-bad { color: var(--bad); } .tag-dark { color: var(--muted); }
label { display: block; font: 600 .76rem/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--grid); margin: 16px 0 7px; }
input[type="text"], input[type="email"], input[type="password"], select, textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); background: #000; color: var(--head); font: 400 1rem var(--font-read); caret-color: var(--grid); }
input:focus, select:focus, textarea:focus { border-color: var(--grid); box-shadow: var(--glow); }
input::placeholder { color: var(--dim); }
.turnstile { margin-top: 16px; }
.turnstile:empty { margin: 0; }
#launcher-code { font: 400 .9rem/1.5 var(--font-data); resize: vertical; overflow-wrap: anywhere; }
select option { background: #000; }
.help { font-size: .93rem; color: var(--muted); margin: 6px 0 0; }
.msg { margin: 14px 0 0; padding: 10px 13px; font: 400 .97rem/1.45 var(--font-read); border: 1px solid; display: none; background: rgba(0, 0, 0, .55); }
.msg.show { display: block; }
.msg-ok { color: var(--ok); } .msg-bad { color: var(--bad); } .msg-info { color: var(--cyan); } .msg-warn { color: var(--warn); }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--grid); background: var(--glass-deep); padding: 12px 16px; font-size: 1rem; line-height: 1.5; }
.transmission { border: 1px dashed var(--grid-dim); padding: 16px 18px; background: rgba(0, 0, 0, .78); color: var(--text); font: 400 1.02rem/1.65 var(--font-read); }
.transmission .label { color: var(--grid); display: block; margin-bottom: 8px; }
.transmission em { font-style: normal; color: var(--grid-dim); }
.player { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.player .bar { height: 8px; }
.player time { font-family: var(--font-data); font-size: .82rem; color: var(--muted); min-width: 4.5em; text-align: right; }

/* The Tag and the Crests */
.tagdevice { background: #000; color: var(--text); border: 1px solid var(--grid); padding: 16px; position: relative; box-shadow: inset 0 0 0 1px rgba(60, 255, 92, .2), 0 0 18px rgba(60, 255, 92, .14); }
.tagdevice::after { content: ""; position: absolute; top: -1px; left: 50%; width: 36px; height: 10px; margin-left: -18px; background: #000; border: 1px solid var(--grid); border-top: 0; }
.tagdevice .label { color: var(--grid); }
.crest-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.crest-slot { aspect-ratio: 1; border: 1px solid var(--grid-deep); background: #000; display: grid; place-items: center; position: relative; color: var(--grid-dim); }
.crest-slot svg { width: 60%; height: 60%; }
.crest-slot.lit { color: #000; background: var(--crest, var(--grid)); border-color: var(--crest, var(--grid)); box-shadow: 0 0 12px var(--crest, var(--grid)); animation: lit 3s ease-in-out infinite; }
@keyframes lit { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }
.crest-slot .pips { position: absolute; bottom: 3px; left: 3px; right: 3px; display: flex; gap: 2px; justify-content: center; }
.crest-slot .pips i { width: 5px; height: 5px; background: currentColor; opacity: .35; }
.crest-slot .pips i.on { opacity: 1; }
.crest { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.crest i { width: 16px; height: 16px; display: inline-grid; place-items: center; background: var(--crest, var(--dim)); color: #000; border: 1px solid #000; }
.crest i svg { width: 11px; height: 11px; }
.crest-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.crest-row .glyph { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: #000; color: var(--dim); }
.crest-row .glyph.lit { background: var(--crest); color: #000; border-color: var(--crest); box-shadow: 0 0 10px var(--crest); }
.crest-row .glyph svg { width: 26px; height: 26px; }
.crest-row .title { font-family: var(--font-head); font-size: .9rem; color: var(--head); }
.crest-row .meta { font-size: .93rem; line-height: 1.45; color: var(--muted); }
.pips-row { display: flex; gap: 4px; }
.pips-row i { width: 10px; height: 10px; border: 1px solid var(--grid); background: transparent; }
.pips-row i.on { background: var(--grid); box-shadow: 0 0 6px rgba(60, 255, 92, .6); }
.crest-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.crest-card { --c: var(--crest, var(--grid)); background: var(--brackets), var(--glass-deep); border: 1px solid var(--line-soft); padding: 14px; display: grid; gap: 6px; }
.crest-card .glyph { width: 40px; height: 40px; display: grid; place-items: center; background: var(--crest); color: #000; box-shadow: 0 0 12px var(--crest); }
.crest-card .glyph svg { width: 24px; height: 24px; }
.crest-card .title { font-family: var(--font-head); font-size: .85rem; color: var(--head); }
.crest-card .meta { font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* Stats, bars, tables */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .num { font-size: 1.7rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--head); }
.stat .num.big { font-size: 2.6rem; }
.funds-num, .chrome-num { color: var(--funds); text-shadow: 0 0 12px rgba(125, 255, 154, .55); }
.bar { height: 10px; border: 1px solid var(--line); background: #000; position: relative; }
.bar > span { display: block; height: 100%; background: var(--grid); width: 0; transition: width 300ms ease; box-shadow: 0 0 8px rgba(60, 255, 92, .6); }
.bar.chrome-bar > span { background: var(--funds); box-shadow: 0 0 8px rgba(125, 255, 154, .5); }
.bar.crest-bar > span { background: linear-gradient(90deg, var(--crest-hope), var(--crest-friendship), var(--crest-courage), var(--crest-love), var(--crest-knowledge), var(--crest-reliability), var(--crest-sincerity), var(--crest-light)); box-shadow: none; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line-soft); padding: 12px; background: rgba(0, 0, 0, .55); }
/* Premium Digimon: gold, the same mark the game draws over premium partners. */
.tiles-stack { display: grid; gap: 12px; }
.tiles-stack + h3 { margin-top: 20px; }
.tile-premium { border-color: rgba(255, 211, 107, .5); background: linear-gradient(160deg, rgba(255, 211, 107, .09), rgba(0, 0, 0, .6) 55%); }
.tile-premium h3 { color: var(--premium); }
.premium-mark { color: var(--premium); text-shadow: 0 0 8px rgba(255, 211, 107, .6); }
.premium-note { color: var(--premium); margin: 6px 0 0; }
.line-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 10px 0 4px; }
.line-stage { font: 11px/1.2 var(--font-ui); text-align: center; padding: 5px 2px; border: 1px solid rgba(255, 211, 107, .25); color: var(--dim); }
@media (max-width: 520px) { .line-stage { font-size: 10px; padding: 4px 1px; } }
.line-mega { display: inline-block; margin-top: 6px; font: 11px/1.2 var(--font-ui); padding: 4px 10px; border: 1px solid var(--premium); color: #1a1200; background: var(--premium); box-shadow: 0 0 10px rgba(255, 211, 107, .6); }
.line-mega::before { content: "\2726\00a0"; }
.card-premium { border-color: rgba(255, 211, 107, .45); }
.card-premium h3 { color: var(--premium); }
.line-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.line-chips li { font: 12px/1.3 var(--font-ui); padding: 3px 8px; border: 1px solid rgba(255, 211, 107, .45); color: var(--premium); background: rgba(255, 211, 107, .06); }
.line-chips li::before { content: "\25C6\00a0"; }
.line-chips a { color: inherit; text-decoration: none; }
.line-chips li:has(a):hover, .line-chips li:has(a:focus-visible) { border-color: var(--premium); background: rgba(255, 211, 107, .14); }
/* The premium lines gallery (/lines): each line's own forms, in-game screenshots shown at whole-pixel scale. */
.line-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.line-jump a { font: 12px/1.3 var(--font-ui); padding: 5px 9px; border: 1px solid rgba(255, 211, 107, .45); color: var(--premium); background: rgba(255, 211, 107, .06); text-decoration: none; }
.line-jump a:hover, .line-jump a:focus-visible { border-color: var(--premium); background: rgba(255, 211, 107, .16); }
.line-sheet { --c: var(--premium); scroll-margin-top: 16px; }
.line-sheet h2 { color: var(--premium); }
.line-sheet .ledger-head .summary-note { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.form-tile { margin: 0; border: 1px solid rgba(255, 211, 107, .22); background: #000; }
.form-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.form-tile figcaption { padding: 6px 8px 8px; font: 13px/1.25 var(--font-read); color: var(--head); border-top: 1px solid rgba(255, 211, 107, .18); }
.form-tile .form-stage { display: block; font: 10px/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--premium); }
.form-tile.mega { border-color: var(--premium); box-shadow: 0 0 10px rgba(255, 211, 107, .35); }
.form-soon { display: grid; place-items: center; aspect-ratio: 1; font: 11px/1.3 var(--font-ui); color: var(--dim); }
.form-tile.mega .form-stage::before { content: "\2726\00a0"; }
.atlas-controls { display:grid; grid-template-columns:minmax(190px, 1fr) minmax(240px, 2fr); gap:20px; margin:24px 0; align-items:start; }
.atlas-controls label { display:block; color:var(--head); font:14px/1.4 var(--font-read); }
.atlas-controls input, .atlas-controls select { width:100%; min-height:46px; margin-top:8px; padding:10px 12px; color:var(--head); background:#08110d; border:1px solid var(--muted); font:16px/1.4 var(--font-read); border-radius:0; }
.atlas-search-field { display:flex; gap:8px; align-items:center; }
.atlas-search-field button { margin-top:8px; min-height:46px; }
.atlas-search { position:relative; }
#atlas-search-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#atlas-results { position:absolute; top:100%; left:0; right:0; z-index:5; margin:4px 0 0; padding:6px; max-height:320px; overflow:auto; list-style:none; border:1px solid var(--premium); background:#07100c; box-shadow:0 12px 24px #000b; }
#atlas-results li { margin:0; padding:0; }
#atlas-results button { width:100%; min-height:44px; text-align:left; padding:10px; border:0; color:var(--head); background:transparent; font:15px/1.4 var(--font-read); cursor:pointer; }
#atlas-results button:hover { background:#203627; }
.atlas-panel { border-top:1px solid var(--premium); padding-top:22px; }
.atlas-panel > h2 { color:var(--premium); margin:0 0 20px; }
.atlas-route { display:grid; grid-template-columns:1fr minmax(160px, .8fr) 1fr; gap:28px; align-items:center; padding:20px; border:1px solid #617b67; background:#050c09ed; }
.atlas-route h3 { font:14px/1.4 var(--font-read); color:var(--head); margin:0 0 10px; }
.atlas-relations ul, .atlas-stage ul { list-style:none; padding:0; margin:0; display:grid; gap:6px; }
.atlas-form { width:100%; min-height:48px; display:flex; gap:8px; align-items:center; padding:8px; border:1px solid #41564a; border-radius:0; color:var(--head); background:#0a1610; text-align:left; font:14px/1.3 var(--font-read); cursor:pointer; overflow-wrap:anywhere; }
.atlas-form:hover { border-color:var(--premium); background:#1c2b1b; }
.atlas-form[aria-pressed=true] { border-color:var(--premium); background:#352e15; box-shadow:inset 3px 0 var(--premium); }
.atlas-form img { width:40px; height:40px; flex:none; image-rendering:pixelated; }
.atlas-form > span { min-width:0; }
.atlas-method { display:block; margin-top:3px; color:var(--premium); font-size:12px; }
.atlas-selected { position:relative; text-align:center; padding:20px 8px; border-block:2px solid var(--premium); }
.atlas-selected::before, .atlas-selected::after { content:'→' / ''; position:absolute; top:calc(50% - 14px); color:var(--premium); font-size:24px; }
.atlas-selected::before { left:-25px; }.atlas-selected::after { right:-25px; }
.atlas-selected img { display:block; margin:0 auto 10px; width:96px; height:96px; image-rendering:pixelated; }
.atlas-selected h3 { font-size:20px; margin-bottom:4px; overflow-wrap:anywhere; }
.atlas-selected p { margin:4px 0; color:var(--premium); font-size:13px; }
.atlas-selected .atlas-shared { color:var(--muted); }
.atlas-empty { color:var(--muted); font-size:14px; margin:0; }
.atlas-stages { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin:28px 0; align-items:start; }
.atlas-stage h3 { min-height:36px; margin:0 0 8px; font:12px/1.4 var(--font-ui); color:var(--premium); overflow-wrap:anywhere; }
.atlas-stage .atlas-form { flex-direction:column; text-align:center; padding:9px 4px; min-height:58px; }
.atlas-shared-form { border-style:dashed; }
.atlas-rules { margin:24px 0; max-width:72ch; }
.atlas-rules summary, #line-gallery > summary { cursor:pointer; min-height:44px; display:list-item; padding:12px 0; color:var(--head); }
.atlas-rules p { color:var(--muted); font:14px/1.6 var(--font-read); }
.atlas-cta { margin:28px 0; }
#evolution-atlas :focus-visible { outline:2px solid var(--premium); outline-offset:3px; }
@media (max-width:760px) {
 .atlas-controls { grid-template-columns:1fr; gap:14px; }
 .atlas-route { grid-template-columns:1fr; gap:22px; padding:16px; }
 .atlas-relations ul { grid-template-columns:1fr; }
 .atlas-selected::before { content:'↓' / ''; top:-26px; left:calc(50% - 8px); }
 .atlas-selected::after { content:'↓' / ''; top:auto; bottom:-26px; right:calc(50% - 8px); }
 .atlas-selected { padding:12px 8px; }
 .atlas-selected img { width:72px; height:72px; }
 .atlas-stages { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 10px; }
 .atlas-stage h3 { min-height:0; }
 .atlas-stage .atlas-form { padding:8px; }
}
@media (max-width: 520px) { .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .form-tile figcaption { font-size: 12px; padding: 5px 6px 6px; } }
.line-stage.on { border-color: var(--premium); color: #1a1200; background: var(--premium); box-shadow: 0 0 8px rgba(255, 211, 107, .45); }
.small { font-size: 12px; }
table.ledger-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.ledger-table th { text-align: left; font: 600 .74rem/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--grid); border-bottom: 1px solid var(--line); padding: 6px 8px 6px 0; }
table.ledger-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.ledger-table td.num, table.ledger-table th.num { text-align: right; }
.pos { color: var(--ok); } .neg { color: var(--bad); }
/* Purchases and receipts: the reference wraps; on a phone each purchase is a small card. */
table.receipts td.ref { word-break: break-all; font-size: .74rem; color: var(--muted, inherit); }
.refund-ask { display: block; margin-top: 4px; font-size: .74rem; }
@media (max-width: 600px) {
  table.receipts thead { display: none; }
  table.receipts tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
  table.receipts td { border: 0; padding: 0; }
  table.receipts td.ref { grid-column: 1 / -1; }
}
.list { margin: 0; padding-left: 1.2rem; }
.list li { margin-bottom: 7px; }
.list li::marker { content: "> "; color: var(--grid); font-family: var(--font-ui); }
.two-col { columns: 2; column-gap: 40px; }
.empty { color: var(--dim); font-style: italic; }
.skeleton { color: var(--grid-dim); font: 500 .95rem var(--font-ui); padding: 20px 0; }
.skeleton::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
main.page { padding-bottom: 70px; }
section.band { padding: 56px 0 12px; }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head h2 { margin-bottom: 0; }
.section-head h2 + p { margin-top: .75rem; }
.section-head .lead, p.lead { font-size: 1.16rem; color: var(--text); }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; padding: 48px 0 36px; }
.hero .panel { padding: 32px 30px; }
.hero h1 { margin-bottom: .8rem; }
.hero p.lead { max-width: 40ch; margin-bottom: 1.3rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.scene-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trailer { min-width: 0; }
.trailer video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.scene-row a { text-decoration: none; display: block; }
.scene-row .media img, .scene-row .media canvas { aspect-ratio: 5 / 2; }
.scene-row a:hover .media { border-color: var(--grid); box-shadow: var(--glow); }
.menu-stack { display: grid; gap: 10px; }
.menu-stack a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; text-decoration: none; color: var(--text); background: var(--glass); border: 1px solid var(--line); font: 500 .95rem/1.3 var(--font-ui); }
.menu-stack a::before { content: ""; width: 0; height: 0; border-left: 12px solid transparent; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.menu-stack a:hover, .menu-stack a:focus-visible, .menu-stack a[aria-current="page"] { border-color: var(--grid); color: var(--head); background: rgba(60, 255, 92, .1); }
.menu-stack a:hover::before, .menu-stack a:focus-visible::before, .menu-stack a[aria-current="page"]::before { border-left-color: var(--grid); }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 400 1.8rem/1 var(--font-head); color: var(--grid); text-shadow: var(--glow); }
.step h3 { margin-bottom: .35rem; }

/* Footer: four short columns, then the fan-project line. */
footer.site { position: relative; z-index: 1; padding: 44px 20px 54px; color: var(--muted); font-size: .93rem; }
footer.site::before { content: ""; display: block; height: 1px; margin-bottom: 30px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
footer.site .row { align-items: flex-start; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-grid h2 { font: 600 .74rem/1.2 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--grid); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--head); text-decoration: underline; }
.foot-brand .logo { font-size: 1.05rem; margin-bottom: 14px; }
.foot-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .84rem; color: var(--dim); display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: space-between; }

/* A single account action occupies a single column, including hidden reset states. */
.auth-flow { max-width: 640px; margin-inline: auto; }

/* Portal */
.portal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 24px 20px 60px; }
.rail { display: grid; gap: 8px; position: sticky; top: 16px; align-self: start; }
.rail a { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; font: 500 .88rem/1.1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text); background: var(--glass); border: 1px solid var(--line-soft); }
.rail a::before { content: ""; width: 0; height: 0; border-left: 10px solid transparent; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.rail a:hover { border-color: var(--grid); color: var(--head); }
.rail a[aria-current="page"] { border-color: var(--grid); color: var(--head); background: rgba(60, 255, 92, .12); box-shadow: var(--glow); }
.rail a[aria-current="page"]::before { border-left-color: var(--grid); }
#view { display: grid; gap: 20px; min-width: 0; }
.stack { display: grid; gap: 20px; min-width: 0; }
.quest { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.quest .title { font-family: var(--font-head); font-size: .85rem; color: var(--head); }
.quest .meta { font-size: .93rem; line-height: 1.45; color: var(--muted); }
.quest .bar { grid-column: 1 / -1; }
.lookpick { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border: 1px solid var(--line); cursor: pointer; padding: 0; background: var(--sw, #999); position: relative; }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--head); box-shadow: var(--glow); }
.swatch.own { background: repeating-linear-gradient(45deg, #04170a 0 4px, #0b3d1a 4px 8px); }
.tamer-portrait { width: 128px; height: 160px; display: block; object-fit: contain; image-rendering: pixelated; flex: none; }
.tamer-portrait.portrait-small { width: 64px; height: 80px; }
.tamer-profile, .friend-identity { display: flex; align-items: center; gap: 20px; }
.friend-identity { min-width: 0; max-width: 100%; }
.friend-identity > div { min-width: 0; overflow-wrap: anywhere; }
.wardrobe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.wardrobe-choice { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 8px; }
.wardrobe-choice h3, .wardrobe-choice p { margin: 0; }
.wardrobe-choice .btn { margin-top: auto; max-width: 100%; }
.swatch[disabled] { cursor: not-allowed; }
.friend { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.moment { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
.moment .label { display: inline-block; margin-right: 8px; }
.moment-premium .label { color: var(--premium); }
.moment-premium .label::before { content: "\25C6\00a0"; }

/* Keep the four Masters intact (the world page's illustration). */
.masters-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro art" "call art"; grid-template-rows: auto 1fr; gap: 20px 36px; }
.hero-intro { grid-area: intro; }
.hero-transmission { grid-area: call; min-width: 0; }
.masters-art { position: relative; width: 100%; max-width: 460px; margin: 0; justify-self: center; background: #000; border: 1px solid var(--line-soft); }
.masters-hero > .masters-art { grid-area: art; }
.masters-art::after { content: ""; position: absolute; inset: 10px; background: var(--brackets); pointer-events: none; }
.masters-art > img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.masters-signal { position: absolute; inset: auto 0 0; height: 14%; display: grid; place-items: center; padding: 10px 22px; background: #000; color: var(--head); text-align: center; font: 500 1rem/1.3 var(--font-ui); }
.masters-signal canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.masters-signal.has-signal > span { visibility: hidden; }
.world-masters-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }

/* The owner's notice for players, under the header on every page. */
.site-notice { position: relative; z-index: 4; max-width: 1160px; margin: 12px auto 0; }
.site-notice::before { content: "// NOTICE  "; color: var(--grid); letter-spacing: .1em; font-family: var(--font-ui); }
header.over-hero + .site-notice { position: absolute; top: 92px; left: 20px; right: 20px; }

/* Folding windows: reference material stays one click away instead of filling the page. */
[id] { scroll-margin-top: 16px; }
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary.ledger-head { margin-bottom: 0; border-bottom-color: transparent; }
details.fold[open] > summary.ledger-head { margin-bottom: 16px; border-bottom-color: var(--line); }
details.fold > summary.ledger-head h2::before { content: "[+] "; }
details.fold[open] > summary.ledger-head h2::before { content: "[-] "; }
details.fold > summary:hover h2, details.fold > summary:focus-visible h2 { color: var(--head); text-shadow: var(--glow); }
details.fold > summary .summary-note { color: var(--muted); font-size: .93rem; }

/* Questions and answers. */
details.qa { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
details.qa > summary { cursor: pointer; list-style: none; font: 600 1.02rem/1.45 var(--font-read); color: var(--head); display: flex; gap: 10px; }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::before { content: "+"; font-family: var(--font-ui); color: var(--grid); width: 1em; flex: none; }
details.qa[open] > summary::before { content: "–"; }
details.qa > :not(summary) { margin: 10px 0 0 1.6rem; color: var(--muted); }

/* The next-steps checklist on My Tag. */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, .55); }
.checklist li::before { content: "[ ]"; font: 400 .9rem/1.6 var(--font-data); color: var(--dim); }
.checklist li.done::before { content: "[x]"; color: var(--ok); }
.checklist li.done .title { color: var(--muted); }
.checklist li.current { border-color: var(--grid); box-shadow: var(--glow); }
.checklist li.current::before { content: "[>]"; color: var(--head); }
.checklist .title { font-family: var(--font-head); font-size: .85rem; color: var(--head); }
.checklist .help { margin-top: 4px; }
.checklist .cta { margin-top: 10px; }

/* Jump links at the top of a long page. */
.jump { display: flex; gap: 6px; flex-wrap: wrap; }
.jump a { font: 500 .8rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; padding: 9px 11px; border: 1px solid var(--line-soft); text-decoration: none; color: var(--text); background: var(--glass); }
.jump a:hover, .jump a:focus-visible { border-color: var(--grid); color: var(--head); }
.panel .jump { margin-top: 18px; }

/* The map page (js/map.js). */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.map-board svg { display: block; width: 100%; height: auto; }
.map-route { stroke: var(--line-soft); stroke-width: 2; stroke-dasharray: 6 6; }
.map-node { cursor: pointer; outline: none; }
.map-dot { fill: rgba(0, 0, 0, .8); stroke: var(--zone, var(--grid)); stroke-width: 2; transition: stroke-width .15s, filter .15s; }
.map-node.hub .map-dot { stroke-width: 3; }
.map-node:hover .map-dot, .map-node:focus-visible .map-dot { stroke-width: 4; filter: drop-shadow(0 0 6px var(--zone, var(--grid))); }
.map-node.selected .map-dot { fill: var(--zone, var(--grid)); filter: drop-shadow(0 0 10px var(--zone, var(--grid))); }
.map-label { fill: var(--text); font: 500 26px var(--font-ui); letter-spacing: .03em; pointer-events: none; }
.map-node.selected .map-label { fill: var(--head); }
.map-count { fill: var(--head); font: 600 21px var(--font-data); pointer-events: none; }
.map-node.selected .map-count { fill: #000; }
.map-detail { border-top: 2px solid var(--zone, var(--grid)); position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.map-entry { border-top: 1px dashed var(--line-soft); padding: 12px 0 4px; }
.map-entry h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: .9rem; color: var(--head); }
.map-entry dl { display: grid; grid-template-columns: 4.6rem 1fr; gap: 3px 10px; margin: 0; }
.map-entry dt { color: var(--dim); font: 600 .74rem/1.9 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.map-entry dd { margin: 0; color: var(--muted); }
.map-everywhere { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 22px; }
.map-area { border-left: 2px solid var(--zone, var(--grid)); margin-bottom: 12px; }
details.fold.map-area > summary.ledger-head h3::before { content: "[+] "; }
details.fold.map-area[open] > summary.ledger-head h3::before { content: "[-] "; }

/* ===== The game, up front ===== */

/* The home hero: the game's own footage behind the first words. Phones and reduced motion get the still frame. */
.stage { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-soft); }
.stage-media, .stage-media video, .stage-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-media { z-index: -2; background: #000; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 38%, rgba(0, 0, 0, .15) 70%, rgba(0, 0, 0, .35) 100%),
  linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 32%), linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 22%); }
.stage-copy { padding: 150px 0 70px; max-width: 640px; }
.stage-copy h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); margin-bottom: 1rem; }
.stage-copy h1::after { content: "_"; color: var(--grid); animation: blink 1.1s steps(1) infinite; }
.stage-copy .lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: #eefbf1; max-width: 46ch; }
.stage-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font: 500 .8rem/1.4 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stage-facts span::before { content: "■ "; color: var(--grid); font-size: .7em; vertical-align: .15em; }

/* The call: the voice's message and its audio, one band under the hero. */
.call { display: grid; gap: 16px; max-width: 48rem; margin-inline: auto; }
.call h2 { margin-bottom: .4rem; }
.call-audio { min-width: 0; }

/* Feature tiles: one picture, a title, two lines. */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--glass-deep); border: 1px solid var(--line-soft); display: flex; flex-direction: column; min-width: 0; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--line); transform: translateY(-2px); }
.feature figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.feature figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature:hover figure img { transform: scale(1.04); }
.feature figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 7, 2, .85) 0%, rgba(0, 0, 0, 0) 45%); }
.feature .body { padding: 18px 20px 22px; }
.feature h3 { font-size: 1.05rem; color: var(--head); margin-bottom: .45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

/* The Dark Masters: four wide frames (each still carries the Master's name). */
.masters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.masters figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line-soft); background: #000; }
.masters img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.masters figure:hover img { transform: scale(1.03); }
.masters figcaption { position: absolute; right: 14px; top: 12px; padding: 5px 9px; background: rgba(0, 0, 0, .72); border: 1px solid var(--line-soft); font: 600 .72rem/1.3 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--grid); }

/* Real gameplay: frames from the game itself. */
.shots { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.shots figure { margin: 0; position: relative; border: 1px solid var(--line-soft); background: #000; overflow: hidden; }
.shots figure:first-child { grid-row: span 2; }
.shots img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.shots figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 22px 12px 10px; background: linear-gradient(0deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, 0)); font: 500 .78rem/1.35 var(--font-ui); letter-spacing: .06em; color: var(--text); }

/* Play your way: two doors. */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.door { --c: var(--grid); background: var(--brackets), var(--glass); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.door h2, .door h3 { font-size: 1.25rem; color: var(--head); margin: 0 0 .4rem; }
.door .meta { font: 500 .78rem/1.4 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.door ol { margin: 6px 0 18px; padding-left: 1.4rem; display: grid; gap: 6px; }
.door ol li::marker { font-family: var(--font-ui); color: var(--grid); }
.door .cta { margin-top: 0; }   /* buttons sit under their headings (the Windows card is taller with Before you install) */
.door .fine { font-size: .88rem; color: var(--dim); margin: 12px 0 0; }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
.status-list li div { display: grid; gap: 2px; }
.status-list li span:not(.dot) { color: var(--dim); font-size: .92rem; }
.status-list em { font: 500 .82rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--head); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--grid); box-shadow: 0 0 10px rgba(60, 255, 92, .7); }
.dot.bad { background: #ff5a5a; box-shadow: 0 0 10px rgba(255, 90, 90, .6); }
.dot.warn { background: var(--warn); }
.news-list { display: grid; gap: 20px; max-width: 860px; }
.news-item h2 { margin: .3rem 0 .8rem; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; margin: 18px 0 8px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 14px 16px; border: 1px solid var(--line-soft); background: var(--glass-deep); }
.pack-best { border-color: var(--grid); box-shadow: var(--glow); }
.pack-ribbon { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 10px; background: var(--grid); color: #001a06; font: 700 .7rem/1.4 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.pack-units { font: 1.9rem/1 var(--font-head); color: var(--head); }
.pack .tag, .pack-gap { min-height: 1.6em; }
.pack .btn { margin-top: 8px; width: 100%; justify-content: center; white-space: nowrap; }
.pack .btn::before { display: none; }
.store-intro { color: var(--text); max-width: 70ch; }
.store-terms a { color: inherit; }
.first-play { margin: 0 0 22px; padding: 26px 26px 20px; border: 1px solid var(--grid); background: var(--brackets), linear-gradient(180deg, rgba(60, 255, 92, .07), rgba(0, 0, 0, 0) 60%), var(--glass); }
.first-play-head { margin-bottom: 18px; }
.first-play-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: .2rem 0 .4rem; }
.first-play .door { background: var(--glass-deep); }
.first-play > .help { margin: 14px 0 0; }
.tutorials { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tutorial { margin: 0; }
.tutorial video { display: block; width: 100%; height: auto; background: #000; border: 1px solid var(--line); }
.tutorial-phone video { max-height: 70vh; aspect-ratio: 9 / 16; object-fit: contain; }
.tutorial figcaption { font-size: .9rem; color: var(--dim); margin-top: 10px; }
.tutorial .transcript ol { margin: 8px 0 4px; padding-left: 1.4rem; display: grid; gap: 4px; font-size: .92rem; }

/* The closing call to action, over a still. */
.finale { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line-soft); padding: 70px 32px; text-align: center; }
.finale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .9) 75%); }
.finale h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.finale .cta { justify-content: center; }

/* Facts in a row (requirements, the download). */
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 .8rem/1.5 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts span::before { content: "■ "; color: var(--grid); font-size: .7em; vertical-align: .15em; }

/* A page's opening band (not the home page). */
.page-head { padding: 56px 0 8px; max-width: 820px; }
.page-head h1 { margin-bottom: 0; }
.page-head h1 + p { margin-top: .75rem; }
.page-head .lead { color: var(--text); }

/* A long text page (legal, details). */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0 18px; }
.prose th, .prose td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font: 600 .74rem/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--grid); }

/* The download card (start page) and the release details page. */
.download-card { border: 1px solid var(--line); border-left: 4px solid var(--grid); background: var(--glass-deep); padding: 18px 20px; margin-top: 4px; }
.download-card .facts { margin-top: 12px; }
.fingerprint .mono { overflow-wrap: anywhere; }
.fingerprint .copy { vertical-align: middle; margin-left: 6px; }
.other-files { margin-top: 12px; }
.other-files > summary { cursor: pointer; color: var(--muted); font-size: .93rem; }
.other-files .mono { overflow-wrap: anywhere; }
ol.walkthrough { counter-reset: install; padding-left: 2.2rem; }
ol.walkthrough li { counter-increment: install; margin-bottom: 10px; }
ol.walkthrough li::marker { content: counter(install) ". "; color: var(--grid); }
.nudge { margin-bottom: 18px; }
.nudge p { margin: 0; }
.release-file { border: 1px solid var(--line-soft); background: var(--glass-deep); padding: 16px 18px; margin-bottom: 12px; }
.release-file h3 { color: var(--head); margin-bottom: 4px; }
.release-file .mono { overflow-wrap: anywhere; font-size: .85rem; }

/* On a phone the main action stays in reach. */
.dock { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature, .feature figure img, .masters img, .dock { transition: none; }
  .crest-slot.lit { animation: none; } .bar > span { transition: none; }
  .stage-copy h1::after, .hero h1::after, .skeleton::after { animation: none; }
  .map-dot { transition: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 28px 0; }
  .grid-3, .grid-4, .crest-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-row { grid-template-columns: 1fr; }
  .portal { grid-template-columns: 1fr; gap: 16px; }
  .rail { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
  .lookpick { grid-template-columns: 1fr; }
  .two-col { columns: 1; }
  .crest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .masters-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "art" "call"; grid-template-rows: auto; gap: 20px; }
  .world-masters-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:first-child { grid-column: span 2; grid-row: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-detail { position: static; max-height: none; }
  .map-label { font-size: 32px; }
  .doors, .tutorials { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .crest-cards, .features { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 6px; padding: 8px 6px; }
  .nav { margin-left: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .nav > a { justify-content: center; }
  .nav a, .nav button { padding: 10px 4px; font-size: .68rem; letter-spacing: .02em; white-space: nowrap; }
  .nav .session { grid-column: 1 / -1; justify-content: flex-end; margin-left: 0; padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .nav .session .btn { padding: 9px 8px; letter-spacing: .02em; }
  .stat .num.big { font-size: 2.2rem; }
  .panel, .ledger { padding: 18px; }
  .hero .panel { padding: 22px 18px; }
  .stage { min-height: 0; }
  .stage-copy { padding: 204px 0 44px; }
  header.over-hero + .site-notice { top: 164px; }
  .door { padding: 22px 18px; }
  .finale { padding: 48px 18px; }
  .shots { grid-template-columns: 1fr; }
  .masters { grid-template-columns: 1fr; }
  .shots figure:first-child { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .foot-brand { grid-column: 1 / -1; }
  /* The Tag menu as a three-column grid, all six visible. */
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 6px; }
  .rail a { padding: 10px 8px; gap: 6px; font-size: .74rem; line-height: 1.15; min-width: 0; white-space: normal; letter-spacing: .03em; }
  .rail a::before { flex: none; }
  .dock { display: flex; transform: translateY(110%); transition: transform .25s ease; position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(0, 6, 2, .94); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .dock .btn { flex: 1; }
  body.dock-on .dock { transform: none; }
  body.has-dock { padding-bottom: 76px; }
}

/* Before you install (Get started): plain trust facts beside the download. */
.trust { border: 1px solid var(--line); border-left: 4px solid var(--grid); background: var(--glass-deep); padding: 12px 16px; margin: 4px 0 14px; }
.trust h3 { font-size: 1rem; margin: 0 0 6px; }
.trust .list { margin: 0; }
.check { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; }

/* Recovery controls remain readable alongside wrapping receipt references. */
.receipts .ref .btn { display: block; margin-top: 8px; }
#signout-error { color: var(--text); font-size: .8rem; white-space: normal; }

.trust summary { cursor: pointer; font-weight: 700; }
.trust[open] summary { margin-bottom: 12px; }
