:root {
  --ink: #eaf0e8;
  --muted: #9aa9a5;
  --deep: #071110;
  --panel: #0e1b1a;
  --panel-2: #142523;
  --line: #29413e;
  --acid: #d8ff72;
  --mint: #68e0cf;
  --amber: #ffc96b;
  --danger: #ff837a;
  --paper: #e8e9df;
  --paper-ink: #1f2927;
  --radius: 18px;
  --shadow: 0 26px 80px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--deep);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--deep); color: var(--ink); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35; background-image: linear-gradient(rgba(104,224,207,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(104,224,207,.025) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.055em; margin-bottom: 1.4rem; }
h2 { letter-spacing: -.025em; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--acid); color: #111; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
[hidden] { display: none !important; }
.eyebrow { color: var(--mint); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.lead { max-width: 68ch; color: #c6d0cd; font-size: 1.05rem; line-height: 1.65; }
.microcopy { color: var(--muted); font-size: .76rem; line-height: 1.5; }

.site-header, .game-header { position: relative; z-index: 5; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 4rem); border-bottom: 1px solid var(--line); background: rgba(7,17,16,.86); backdrop-filter: blur(16px); }
.brand { display: inline-flex; gap: .8rem; align-items: center; text-decoration: none; }
.brand img { border: 1px solid #31504c; border-radius: 11px; }
.brand span { display: flex; flex-direction: column; }
.brand b { font-size: .86rem; letter-spacing: .12em; }
.brand small { color: var(--muted); margin-top: .15rem; font-size: .66rem; }
.brand.compact small { letter-spacing: .12em; }
.text-link, .text-button { color: var(--muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.text-link:hover, .text-button:hover { color: var(--acid); }
.site-header nav { display: flex; gap: 1rem; align-items: center; }
.site-header nav form { margin: 0; }

.entry-page { background: radial-gradient(circle at 72% 28%, #153b36 0, #091716 30%, #071110 62%); }
.entry-shell { min-height: calc(100vh - 126px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .7fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; max-width: 1320px; margin: auto; padding: clamp(3rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem); }
.hero-copy h1 span { color: var(--acid); }
.hero-copy .intro { max-width: 700px; color: #b9c5c1; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.75; }
.mission-facts { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2rem; }
.mission-facts span { border: 1px solid var(--line); background: rgba(20,37,35,.65); color: #c8d2cf; padding: .6rem .8rem; border-radius: 99px; font-size: .78rem; }
.join-console { position: relative; overflow: hidden; border: 1px solid #37514d; border-radius: 24px; padding: 1.3rem clamp(1.25rem, 4vw, 2.5rem) 2.2rem; background: linear-gradient(145deg, rgba(23,42,39,.95), rgba(10,22,21,.98)); box-shadow: var(--shadow); }
.console-top { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .62rem; letter-spacing: .15em; }
.console-top span { width: 6px; height: 6px; background: #38504d; border-radius: 50%; }
.console-top b { margin-left: auto; }
.vault-visual { min-height: 176px; display: grid; place-items: center; position: relative; }
.vault-ring { display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; border: 2px solid var(--mint); box-shadow: 0 0 0 12px rgba(104,224,207,.06), 0 0 50px rgba(104,224,207,.12); background: repeating-conic-gradient(from 0deg, #2c4b46 0 4deg, transparent 4deg 22deg); animation: vault-pulse 5s ease-in-out infinite; }
.vault-core { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid #4f736d; border-radius: 50%; background: #0b1917; color: var(--acid); font-size: 1.7rem; font-weight: 800; letter-spacing: .1em; }
.scanline { position: absolute; left: -3rem; right: -3rem; height: 1px; top: 30%; background: linear-gradient(90deg, transparent, var(--acid), transparent); opacity: .35; animation: scan 4s linear infinite; }
.join-console h2 { margin-bottom: .5rem; }
.join-console > p { color: var(--muted); line-height: 1.5; }
.join-form { display: grid; gap: .7rem; margin-top: 1.5rem; }
.join-form label, .stack-form label, .round-form label { display: grid; gap: .45rem; color: #b8c4c1; font-size: .77rem; font-weight: 700; }
input, select { width: 100%; border: 1px solid #3a5651; border-radius: 10px; color: var(--ink); background: #091513; padding: .85rem 1rem; }
.join-form input { text-transform: uppercase; text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: .25em; }
.primary-button, .secondary-button, .danger-button { border: 0; border-radius: 10px; padding: .85rem 1rem; display: inline-flex; justify-content: center; align-items: center; gap: .9rem; font-weight: 800; cursor: pointer; }
.primary-button { background: var(--acid); color: #14200c; box-shadow: 0 10px 28px rgba(216,255,114,.12); }
.primary-button:hover { background: #e5ff9c; transform: translateY(-1px); }
.primary-button:disabled { opacity: .45; cursor: wait; }
.secondary-button { background: #203632; border: 1px solid #43605b; }
.danger-button { background: #402321; border: 1px solid #7c4541; }
.site-footer { min-height: 50px; display: flex; justify-content: center; gap: 2rem; align-items: center; color: #60736f; font-size: .7rem; letter-spacing: .1em; }

.game-header { position: sticky; top: 0; }
.team-chip, .timer { display: grid; align-items: center; }
.team-chip { grid-template-columns: auto auto; column-gap: .5rem; }
.team-chip small { color: var(--muted); font-size: .6rem; grid-column: 2; letter-spacing: .1em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); grid-row: span 2; }
.timer { text-align: right; }
.timer small { color: var(--muted); font-size: .56rem; letter-spacing: .12em; }
.timer strong { color: var(--acid); font-variant-numeric: tabular-nums; font-size: 1.25rem; }
.timer.elapsed strong { color: var(--amber); }
.game-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 260px; gap: 1px; min-height: calc(100vh - 76px); background: var(--line); }
.game-layout.complete { grid-template-columns: 280px minmax(0, 1fr); }
.room-map, .workbench, .help-drawer { background: var(--deep); }
.room-map { padding: 1.4rem 1rem; }
.room-heading, .answer-heading, .privacy-head, .privacy-footer, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.room-heading { color: var(--muted); font-size: .6rem; letter-spacing: .1em; padding: 0 .5rem 1rem; }
.room-heading b { color: var(--mint); }
.station-nav { display: grid; gap: .55rem; }
.station-node { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; gap: .7rem; align-items: center; text-align: left; border: 1px solid transparent; background: #0b1716; border-radius: 12px; padding: .75rem; cursor: pointer; }
.station-node > span:nth-child(2) { display: grid; gap: .18rem; }
.station-node small { color: var(--muted); }
.station-node i { color: var(--muted); font-size: .5rem; font-style: normal; letter-spacing: .08em; }
.station-node .node-index { color: #75908a; font: 700 .72rem ui-monospace, monospace; border-right: 1px solid var(--line); }
.station-node.active { border-color: var(--mint); background: #122622; box-shadow: inset 3px 0 var(--acid); }
.station-node.solved { border-color: #315149; }
.station-node.solved i { color: var(--acid); }
.station-node:disabled { opacity: .52; cursor: not-allowed; }
.door-status { display: flex; gap: .9rem; align-items: center; border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.4rem .5rem; }
.door-status > div:last-child { display: grid; }
.door-status small { color: var(--muted); font-size: .58rem; letter-spacing: .12em; }
.door-status strong { color: var(--danger); font-size: .75rem; }
.door-status.open strong { color: var(--acid); }
.door-icon { position: relative; width: 52px; height: 66px; border: 2px solid #49615d; border-radius: 7px 7px 2px 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; }
.door-icon span { background: #1c312e; }
.door-icon b { position: absolute; top: 25px; left: 7px; right: 7px; color: var(--danger); font-size: .48rem; text-align: center; background: #0b1716; padding: 3px; }
.workbench { padding: clamp(1.5rem, 4vw, 4.5rem); min-width: 0; }
.loading-panel { min-height: 55vh; display: grid; place-items: center; align-content: center; color: var(--muted); }
.loader { width: 42px; height: 42px; border: 2px solid #28423e; border-top-color: var(--acid); border-radius: 50%; animation: rotate 1s linear infinite; }
.station-panel { max-width: 1020px; margin: 0 auto; }
.station-panel h1, .completion h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
.station-introduction { margin: 1.3rem 0 1.8rem; padding: 1.05rem 1.2rem; border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: 0 12px 12px 0; background: var(--panel); }
.station-introduction dl { display: grid; gap: .8rem; margin: 0; }
.station-introduction dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .8rem; }
.station-introduction dt { color: var(--mint); font-weight: 800; font-size: .77rem; line-height: 1.6; }
.station-introduction dd { margin: 0; color: #cbd7d2; font-size: .86rem; line-height: 1.6; }
.training-card:has(input:focus-visible), .document:has(input:focus-visible), .module-choice label:has(input:focus-visible) { outline: 3px solid var(--acid); outline-offset: 4px; }
#return-completion { margin-top: 1rem; }
.station-kicker { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.station-kicker span { color: var(--acid); font: 800 .7rem ui-monospace, monospace; letter-spacing: .14em; }
.station-kicker i { font-style: normal; color: var(--muted); font-size: .66rem; border-left: 1px solid var(--line); padding-left: .8rem; }
.simulation-board, .prompt-lab, .archive-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.2rem; margin: 2rem 0 1rem; }
.scanner-panel, .prompt-builder, .answer-console, .switch-console, .privacy-terminal { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 1.2rem; }
.scanner-panel { min-height: 430px; display: grid; place-items: center; align-content: space-between; overflow: hidden; }
.scanner-display { width: 100%; display: grid; gap: .35rem; background: #06110f; border: 1px solid #294d46; padding: .8rem; font-family: ui-monospace, monospace; }
.scanner-display span, .prompt-preview small, .instruction-tape small { color: var(--muted); font-size: .58rem; letter-spacing: .12em; }
.scanner-display strong { color: var(--danger); font-size: .8rem; }
.scanner-display strong.correct-rule { color: var(--acid); }
.scanner-display small { color: #76908a; }
.scan-object { position: relative; width: 170px; height: 95px; filter: drop-shadow(0 0 18px rgba(255,131,122,.22)); }
.key-head { position: absolute; left: 6px; top: 15px; width: 65px; height: 65px; border: 17px solid var(--danger); border-radius: 50%; }
.key-shaft { position: absolute; left: 63px; top: 43px; width: 95px; height: 18px; background: var(--danger); }
.key-shaft::after { content: ""; position: absolute; right: 10px; bottom: -18px; width: 16px; height: 22px; background: var(--danger); box-shadow: -28px 0 var(--danger); }
.rejected { display: grid; text-align: center; gap: .25rem; color: var(--danger); }
.rejected small { color: var(--muted); }
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1rem 0; }
.training-card { position: relative; min-height: 148px; display: grid; align-content: center; gap: .2rem; padding: 1rem; border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; cursor: pointer; }
.training-card:has(input:checked) { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.training-card input { position: absolute; opacity: 0; width: 1px; }
.training-card small { color: var(--muted); font-size: .7rem; }
.card-code { position: absolute; top: .6rem; right: .7rem; color: var(--muted); font: 700 .7rem ui-monospace, monospace; }
.mini-symbol { font-size: 1.9rem; margin-bottom: .35rem; }
.mini-symbol.red { color: var(--danger); }.mini-symbol.blue { color: #74b8ff; }
.feedback { min-height: 0; margin-top: 1rem; border-radius: 10px; color: #cdd7d4; line-height: 1.5; }
.feedback:not(:empty) { background: #172723; border-left: 3px solid var(--amber); padding: .9rem 1rem; }
.feedback.success:not(:empty) { border-color: var(--acid); }
.feedback.error:not(:empty) { border-color: var(--danger); }
.memory { margin-top: 1rem; padding: 1rem 1.2rem; background: var(--acid); color: #17200f; border-radius: 10px; }
.memory small { font-weight: 900; font-size: .6rem; letter-spacing: .15em; }.memory p { margin: .3rem 0 0; font-weight: 800; }
.test-tray { display: grid; grid-template-columns: 1fr 1fr auto; gap: .7rem; align-items: stretch; padding: 1rem; margin-top: 1rem; background: #10201d; border: 1px solid var(--mint); border-radius: var(--radius); }
.test-tray > div { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .7rem; background: #071311; border-radius: 9px; }.test-tray small { grid-column: 1 / -1; color: var(--muted); font-size: .52rem; letter-spacing: .1em; }.test-tray i { color: var(--muted); font-size: .7rem; font-style: normal; }.test-symbol { grid-row: 2 / 4; font-size: 2rem; }.test-symbol.yellow { color: var(--amber); }.test-symbol.green { color: var(--mint); }
.instruction-tape { background: #e7eadf; color: #26322e; border-left: 5px solid var(--amber); padding: 1rem 1.2rem; margin: 2rem 0 1rem; transform: rotate(-.2deg); box-shadow: 0 12px 35px rgba(0,0,0,.18); }
.instruction-tape small { color: #5d6a66; }.instruction-tape p { margin: .5rem 0 0; line-height: 1.6; font-family: ui-monospace, monospace; font-size: .84rem; }
.prompt-lab { grid-template-columns: 1fr 1fr; }
.block-row { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .55rem; cursor: pointer; }
.block-row:has(input:checked) { background: #183029; border-color: #4d7168; }
.block-row input { width: 18px; height: 18px; accent-color: var(--acid); }
.block-row span { display: grid; gap: .15rem; }.block-row small { color: var(--mint); font-size: .56rem; letter-spacing: .12em; }.block-row b { font-size: .8rem; line-height: 1.35; }.block-row i { color: var(--muted); font-size: .65rem; font-style: normal; }
.mode-note { color: var(--muted); font-size: .8rem; }
.prompt-preview { min-height: 110px; padding: .85rem; margin: 1rem 0; border: 1px dashed #49635e; background: #071310; }
.prompt-preview p { margin: .5rem 0 0; line-height: 1.5; font-family: ui-monospace, monospace; font-size: .78rem; }
.prompt-builder .primary-button { width: 100%; }
.answer-console { background: #071311; }
.answer-heading { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }.answer-heading h2 { margin: 0; }.answer-heading span { color: var(--mint); font: .7rem ui-monospace, monospace; }
.answers { display: grid; gap: .8rem; margin-top: .8rem; }
.answer-card { border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 1rem; }
.answer-card header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }.answer-card header b { color: var(--acid); font-size: .68rem; letter-spacing: .08em; }.answer-card header small { color: var(--muted); }.answer-card p, .answer-card li { color: #cfdbd7; line-height: 1.5; font-size: .82rem; }.answer-card ol { padding-left: 1.2rem; }.answer-card .notice { color: var(--muted); font-size: .68rem; border-top: 1px solid var(--line); padding-top: .6rem; }.report-controls { display: flex; gap: .4rem; align-items: center; }.report-controls select { padding: .4rem; font-size: .7rem; }.report-controls button { font-size: .7rem; }
.switch-console { margin-top: 1rem; }
.switches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1rem 0; }
.switches button { min-height: 105px; display: grid; place-items: center; align-content: center; gap: .4rem; border: 1px solid #3a5953; border-radius: 12px; background: #0a1715; cursor: pointer; }.switches button:hover { border-color: var(--acid); }.switches span { color: var(--amber); font-size: 1.8rem; }.switches b { font-size: .72rem; letter-spacing: .12em; }
.sequence-display { display: flex; justify-content: space-between; align-items: center; background: #06100f; padding: .7rem 1rem; color: var(--mint); font-family: ui-monospace, monospace; font-size: .8rem; }
.reflection { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; border: 0; padding: 1.2rem 0; }.reflection legend { width: 100%; font-weight: 700; margin-bottom: .6rem; }.reflection label { color: #bdcac6; font-size: .8rem; }.reflection input { width: auto; accent-color: var(--acid); }
.archive-grid { grid-template-columns: .75fr 1.25fr; align-items: start; }
.ai-claim { margin: 0; padding: 1.3rem; background: linear-gradient(145deg, #18312c, #0e201d); border: 1px solid #3d5f57; border-radius: var(--radius); box-shadow: var(--shadow); }.ai-claim small { color: var(--mint); font-size: .6rem; letter-spacing: .12em; }.ai-claim p { font-size: 1.18rem; font-weight: 700; line-height: 1.5; margin: 1.5rem 0; }.ai-claim footer { color: var(--muted); font-size: .68rem; }
.documents { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.document { position: relative; min-height: 260px; padding: 1.5rem; background: var(--paper); color: var(--paper-ink); box-shadow: 0 14px 30px rgba(0,0,0,.24); transform: rotate(1deg); cursor: pointer; }.document.old { background: #d9d3c0; transform: rotate(-1deg); }.document:has(input:checked) { outline: 4px solid var(--acid); outline-offset: 3px; }.document input { position: absolute; opacity: 0; width: 1px; }.document small { color: #5e6864; font: 700 .58rem ui-monospace, monospace; letter-spacing: .08em; }.document h2 { margin-top: 2rem; border-bottom: 1px solid #9fa69e; padding-bottom: .5rem; }.document p { line-height: 1.7; }.paperclip { position: absolute; top: .8rem; right: 1rem; font-size: 1.6rem; color: #66726d; }
.module-choice { border: 0; padding: 0; margin: 2rem 0 1rem; display: flex; gap: .7rem; flex-wrap: wrap; }.module-choice legend { width: 100%; margin-bottom: .6rem; font-weight: 700; }.module-choice label input { position: absolute; opacity: 0; width: 1px; }.module-choice label span { min-width: 100px; display: grid; place-items: center; padding: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font: 800 1.2rem ui-monospace, monospace; }.module-choice label:has(input:checked) span { border-color: var(--acid); color: var(--acid); }
.fiction-note { color: var(--muted); font-size: .72rem; margin-top: 2rem; }
.privacy-terminal { margin: 2rem 0 1rem; padding: 0; overflow: hidden; }.privacy-head, .privacy-footer { padding: .8rem 1rem; background: #091311; color: var(--muted); font-size: .65rem; letter-spacing: .08em; }.privacy-head { border-bottom: 1px solid var(--line); }.privacy-footer { border-top: 1px solid var(--line); }
.privacy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: 1rem; }.privacy-cards label { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; min-height: 76px; border: 1px solid var(--line); background: #0b1715; border-radius: 10px; padding: .8rem; cursor: pointer; }.privacy-cards label:has(input:checked) { border-color: var(--mint); background: #17302a; }.privacy-cards label:not(:has(input:checked)) { opacity: .48; text-decoration: line-through; }.privacy-cards input { width: 20px; height: 20px; accent-color: var(--acid); }.privacy-cards i { color: var(--muted); font-size: .55rem; font-style: normal; letter-spacing: .1em; }.privacy-footer b { color: var(--acid); }
.help-drawer { padding: 1.3rem 1rem; }.help-title { display: flex; justify-content: space-between; align-items: center; color: var(--mint); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }.help-title i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--mint); border-radius: 50%; font-style: normal; }.help-drawer > p { color: var(--muted); font-size: .8rem; line-height: 1.5; margin: 1rem 0; }.hint-buttons { display: grid; gap: .5rem; }.hint-buttons button { display: grid; text-align: left; gap: .15rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: .7rem; cursor: pointer; }.hint-buttons button:hover { border-color: var(--acid); }.hint-buttons button.used { border-color: var(--mint); }.hint-buttons b { font-size: .75rem; }.hint-buttons span { color: var(--muted); font-size: .65rem; }.hint-output { margin-top: 1rem; border-left: 2px solid var(--amber); padding: .8rem; background: #111f1d; color: #becac7; font-size: .76rem; line-height: 1.55; }
.hint-buttons button:disabled { cursor: wait; opacity: .65; }
.hint-card { min-width: 0; margin-top: 1rem; padding: .85rem; border: 1px solid #49635e; border-radius: 12px; background: var(--panel); }
.hint-card-header { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.hint-card-header h2 { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--amber); }
.hint-card-header button { padding: .25rem 0; font-size: .75rem; min-height: 34px; }
.hint-card .hint-output { padding: .6rem 0; margin: .65rem 0; border: 0; background: none; font-size: .86rem; overflow-wrap: anywhere; }
.hint-card .secondary-button { width: 100%; font-size: .78rem; }
.hint-card .microcopy { margin: .7rem 0 0; }
.help-drawer .hint-transparency { font-size: .72rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.help-drawer .hint-availability { font-size: .75rem; }
.station-node { grid-template-columns: 28px minmax(0, 1fr); column-gap: .5rem; row-gap: .25rem; }
.station-node > span:nth-child(2) b { font-size: .85rem; overflow-wrap: anywhere; }
.station-node > span:nth-child(2) small { font-size: .66rem; }
.station-node i { grid-column: 2; }
.toast { position: fixed; z-index: 20; bottom: 1.2rem; left: 50%; transform: translate(-50%, 160%); max-width: min(90vw, 620px); background: var(--acid); color: #14200c; box-shadow: var(--shadow); border-radius: 9px; padding: .85rem 1.2rem; font-weight: 800; transition: transform .25s ease; }.toast:empty { display: none; }.toast.show { transform: translate(-50%, 0); }
.completion { max-width: 850px; margin: auto; text-align: center; }.completion .lead { margin-inline: auto; }.open-door { position: relative; width: 145px; height: 180px; margin: 0 auto 2rem; border: 5px solid #3b5550; border-bottom: 0; display: grid; place-items: end center; overflow: hidden; }.open-door .light { position: absolute; inset: 0; background: linear-gradient(145deg, #d8ff72 0%, #68e0cf 100%); clip-path: polygon(15% 0,100% 0,100% 100%,0 100%); filter: drop-shadow(0 0 40px var(--acid)); }.open-door span { z-index: 1; color: #14200c; font-weight: 900; font-size: .65rem; letter-spacing: .2em; margin-bottom: .8rem; }.memory-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; text-align: left; margin: 2rem 0; }.memory-list article { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--panel); }.memory-list small { color: var(--mint); font-size: .6rem; letter-spacing: .1em; }.memory-list p { margin: .4rem 0 0; line-height: 1.45; }.discussion { text-align: left; padding: 1.4rem; background: var(--acid); color: #16200f; border-radius: var(--radius); }.discussion li { margin: .5rem 0; }.discussion small { color: #46532d; }.completion-facts { color: var(--muted); font-size: .78rem; margin-top: 1rem; }

.admin-page { background: #091312; }.admin-login { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 2rem; }.admin-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: var(--shadow); }.admin-login .admin-card { width: min(100%, 480px); }.admin-card h1 { font-size: 2.8rem; }.admin-card > p { color: var(--muted); line-height: 1.6; }.stack-form { display: grid; gap: 1rem; margin-top: 1.5rem; }.admin-shell { max-width: 1280px; margin: auto; padding: 2rem; }.round-form { display: grid; grid-template-columns: 1.2fr .6fr .8fr 1.2fr auto; gap: .8rem; align-items: end; }.admin-note { padding: .7rem 1rem; border-left: 2px solid var(--amber); background: #211d13; font-size: .8rem; }.rounds-section { margin-top: 2.5rem; }.section-heading h2 { margin: 0; font-size: 2rem; }.section-heading > span { color: var(--muted); }.round-list { display: grid; gap: 1rem; margin-top: 1rem; }.round-card { border: 1px solid var(--line); border-radius: var(--radius); background: #0c1917; overflow: hidden; }.round-card > header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }.round-card header div { display: grid; }.round-card header small, .round-meta small { color: var(--muted); font-size: .55rem; letter-spacing: .12em; }.round-card header strong { color: var(--acid); font: 900 1.55rem ui-monospace, monospace; letter-spacing: .15em; }.pill { padding: .45rem .65rem; border: 1px solid #67433e; color: var(--danger); border-radius: 99px; font-size: .65rem; }.pill.on { border-color: #416b60; color: var(--mint); }.round-meta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }.round-meta span { display: grid; gap: .2rem; padding: .9rem 1.1rem; background: var(--panel); font-size: .78rem; }.team-table { padding: .8rem 1.4rem; }.team-row { display: grid; grid-template-columns: 1fr .7fr .7fr 1fr; padding: .6rem; border-bottom: 1px solid #1e312e; font-size: .78rem; }.team-row.head { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }.round-card > footer { display: flex; gap: .7rem; align-items: center; padding: .9rem 1.4rem; background: #091311; }.round-card footer form { margin: 0; }.round-card footer .text-link { margin-left: auto; font-size: .8rem; }.empty-state { color: var(--muted); font-size: .78rem; text-align: center; padding: 1rem; }.empty-state.large { padding: 4rem; border: 1px dashed var(--line); border-radius: var(--radius); }

.guide-page { background: #dfe2d9; color: #1a2421; }.guide-page .site-header { background: #0b1715; color: var(--ink); }.guide-sheet { width: min(920px, calc(100% - 2rem)); margin: 2rem auto; padding: clamp(1.5rem, 5vw, 4rem); background: #f6f7f1; box-shadow: 0 20px 70px rgba(0,0,0,.15); }.guide-sheet h1 { font-size: 3.8rem; }.guide-sheet h2 { margin-top: 2rem; border-bottom: 2px solid #c9cec3; padding-bottom: .4rem; }.guide-sheet p, .guide-sheet li { line-height: 1.65; }.timeline { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #bbc4b9; }.timeline span { display: grid; gap: .3rem; padding: 1rem; border-right: 1px solid #bbc4b9; }.timeline span:last-child { border: 0; }.timeline b { color: #176e61; }.guide-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }.checklist { list-style: none; padding: 0; }.checklist li::before { content: "□"; margin-right: .6rem; color: #176e61; font-weight: 900; }

@media (max-width: 1100px) {
  .game-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .game-layout.complete { grid-template-columns: 220px minmax(0, 1fr); }
  .help-drawer { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: .8rem; align-items: start; border-top: 1px solid var(--line); }
  .help-drawer > p { margin: 0; }.hint-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }.hint-output { margin-top: 0; }
  .hint-card { margin-top: 0; }
  .station-introduction dl > div { grid-template-columns: 1fr; gap: .15rem; }
  .round-form { grid-template-columns: 1fr 1fr; }.round-form .primary-button { align-self: stretch; }
}

@media (max-width: 760px) {
  h1 { letter-spacing: -.04em; }
  .site-header { padding: .8rem 1rem; }.site-header .brand small { display: none; }
  .entry-shell { grid-template-columns: 1fr; padding-top: 3rem; }.vault-visual { min-height: 145px; }
  .game-header { position: relative; padding: .7rem .8rem; gap: .5rem; }.game-header .brand small, .game-header .brand b { font-size: .58rem; }.game-header .brand { gap: .4rem; }.team-chip { display: grid; grid-template-columns: 1fr; min-width: 0; }.team-chip b { font-size: .82rem; }.team-chip small { grid-column: 1; font-size: .48rem; max-width: 15ch; overflow-wrap: anywhere; }.team-chip .status-dot { display: none; }.timer small { font-size: .46rem; }
  .game-layout { display: block; }.room-map { padding: .7rem; border-bottom: 1px solid var(--line); }.room-heading, .door-status { display: none; }.station-nav { grid-template-columns: repeat(4, 1fr); }.station-node { display: grid; grid-template-columns: 1fr; place-items: center; text-align: center; padding: .5rem; min-height: 58px; }.station-node > span:nth-child(2) small, .station-node i { display: none; }.station-node > span:nth-child(2) b { font-size: .58rem; }.station-node .node-index { border: 0; }
  .workbench { padding: 1.5rem 1rem 2.5rem; }.simulation-board, .prompt-lab, .archive-grid { grid-template-columns: 1fr; }.scanner-panel { min-height: 350px; }.training-grid { grid-template-columns: 1fr; }.training-card { min-height: 110px; }.documents, .privacy-cards, .memory-list, .reflection { grid-template-columns: 1fr; }.document { min-height: 220px; }.help-drawer { display: block; padding: 1rem; }.help-drawer > p { margin: .8rem 0; }.hint-buttons { display: grid; grid-template-columns: repeat(3, 1fr); }.hint-buttons button { text-align: center; }.hint-output { margin-top: .8rem; }
  .test-tray { grid-template-columns: 1fr; }
  .station-introduction { padding: .9rem; }
  .hint-buttons b { font-size: .7rem; line-height: 1.5; }
  .switches button { min-height: 88px; }.privacy-head, .privacy-footer { align-items: flex-start; flex-direction: column; }
  .round-form, .round-meta { grid-template-columns: 1fr; }.round-card > footer { align-items: stretch; flex-direction: column; }.round-card footer .text-link { margin: 0; }.team-row { grid-template-columns: 1fr .65fr .5fr .8fr; }.guide-columns { grid-template-columns: 1fr; }.timeline { grid-template-columns: 1fr; }.timeline span { grid-template-columns: 60px 1fr; border-right: 0; border-bottom: 1px solid #bbc4b9; }.guide-sheet h1 { font-size: 2.7rem; }
}

@media print {
  :root { background: white; }.no-print { display: none !important; }.guide-page { background: white; }.guide-sheet { width: auto; margin: 0; padding: .3cm; box-shadow: none; }.guide-sheet h1 { font-size: 28pt; }.guide-sheet h2 { break-after: avoid; }.guide-sheet section { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes scan { from { top: 15%; } to { top: 80%; } }
@keyframes vault-pulse { 50% { transform: scale(1.025); box-shadow: 0 0 0 16px rgba(104,224,207,.035), 0 0 65px rgba(104,224,207,.18); } }
