@font-face{font-family:Title;src:url('./assets/BlackHanSans-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:Mono;src:url('./assets/IBMPlexMono-Regular.ttf') format('truetype');font-display:swap}
:root{color-scheme:dark;--ink:#e1e6e2;--muted:#96a8a9;--accent:#b7d6d8;--deep:#0b151c;font-family:Mono,monospace;color:var(--ink);background:#080d10}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{opacity:.35;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:5px}[hidden]{display:none!important}
#stage,#stage iframe{position:fixed;inset:0;width:100%;height:100%;border:0;background:#080d10}#stage:focus{outline:none}.screen{position:fixed;inset:0;z-index:5}.shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,7,11,.86),rgba(4,10,15,.52) 43%,rgba(4,9,13,.08) 78%),linear-gradient(0deg,rgba(3,7,10,.83),transparent 45%,rgba(3,7,10,.28));pointer-events:none}.title-layout{position:relative;height:100%;padding:5.5vh 6vw;display:flex;flex-direction:column;align-items:flex-start}.topline{width:100%;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.2em;color:#a7b9bc}.brand{margin:auto 0 3.5vh}.brand h1{font-family:Title,sans-serif;font-weight:400;font-size:clamp(64px,12.6vw,186px);line-height:1.1;letter-spacing:-.045em;margin:0 0 .1em -.025em;text-shadow:0 6px 30px #050b0f44}.brand p{margin:0;font-size:clamp(17px,2.4vw,32px);letter-spacing:.34em}.actions{width:min(320px,85vw);margin-bottom:auto}.primary{width:100%;display:flex;align-items:center;justify-content:space-between;border:1px solid #b2c8ce6b;background:#111d25b5;padding:17px 20px;min-height:58px;font-size:13px;letter-spacing:.17em;text-decoration:none;text-align:left}.primary:hover{background:#819b9e30;border-color:var(--accent)}.primary span{font-family:sans-serif;font-size:23px;font-weight:400}.actions>.primary+.primary{margin-top:9px}.links{display:flex;gap:27px;margin:22px 0 18px}.links button,.back{background:none;border:0;font-size:10px;letter-spacing:.13em;padding:4px 0;color:#b4c5c7}.links button:hover,.back:hover{color:white}.fine{font-size:9px;line-height:1.8;color:var(--muted);letter-spacing:.08em}.footer{width:100%;display:flex;gap:20px;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.11em;color:#a2b0b2}.footer b{font-weight:400;margin:0 12px;color:#617478}.status{display:flex;gap:9px;align-items:center}.status i{width:5px;height:5px;border-radius:50%;background:#b7d6d8;box-shadow:0 0 12px #b7d6d8}
dialog{width:min(560px,calc(100% - 32px));max-height:88dvh;padding:32px;background:var(--deep);color:var(--ink);border:1px solid #7d99983b;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#03070bbd;backdrop-filter:blur(5px)}dialog h2{font-family:Title,sans-serif;font-weight:400;font-size:30px;letter-spacing:-.025em;margin:18px 0 25px}dialog h3{font-size:10px;letter-spacing:.1em;color:var(--accent);margin:26px 0 13px}dialog p{text-transform:uppercase;font-size:11px;line-height:1.9}.eyebrow{font-size:10px;letter-spacing:.16em;color:var(--accent)}.setting{display:flex;position:relative;justify-content:space-between;align-items:center;gap:15px;min-height:45px;border-bottom:1px solid #acc1be18;font-size:10px;letter-spacing:.04em}.fixed{margin-bottom:8px}.fixed strong{color:var(--accent)}input[type=range]{width:140px;accent-color:var(--accent)}input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent)}select{background:#122027;color:var(--ink);border:1px solid #64808544;padding:6px;font-size:10px}.help{position:absolute;right:30px;color:var(--muted);font-size:8px}.back{display:block;margin-top:28px;padding:10px 0}.setting:has(.help) input{margin-left:auto}dl{display:grid;grid-template-columns:1fr 1fr;gap:18px;font-size:10px}dt{color:var(--muted)}dd{margin:0}#new-game .primary{margin-top:25px}#reports h3{font-size:12px}#reports p{white-space:pre-line;text-transform:uppercase}
.veil{position:fixed;inset:0;background:#060a0d;z-index:10;display:flex;align-items:flex-end;justify-content:flex-start;padding:9vh 7vw;transition:opacity .8s ease;pointer-events:none}.veil span{font-size:10px;letter-spacing:.2em;color:#b9c6c7}.veil p{font-size:9px;letter-spacing:.13em;color:#6d858b}.travel-line{height:1px;width:180px;background:#4c626a;margin-top:18px}.veil.fading{opacity:0}#chapter-caption{position:fixed;z-index:4;bottom:21vh;left:6vw;pointer-events:none;text-shadow:0 2px 15px #000;transition:opacity 1s}#chapter-caption span{display:block;font-size:9px;letter-spacing:.18em;margin-bottom:12px;color:var(--accent)}#chapter-caption strong{font-weight:400;font-size:23px;letter-spacing:.1em}body[data-chapter=lower]{--accent:#b9c497;--deep:#151a13;--ink:#e8e4cf}body[data-chapter=warden]{--accent:#df9c91;--deep:#1b1111}.final-brand h2{font:400 clamp(40px,6.7vw,100px)/1.12 Title,sans-serif;letter-spacing:-.035em;margin:25px 0}.final-brand .outcome{font-size:11px;letter-spacing:.18em;color:#bdaca4}.final-brand{margin-bottom:5vh}.storage-warning{position:fixed;bottom:0;left:0;right:0;margin:0;padding:9px;text-align:center;font-size:9px;background:#1e2523;z-index:40;color:#d7d6bf}
@media(max-width:650px){.title-layout{padding:5vh 7vw}.brand{margin:auto 0 4vh}.brand h1{font-size:17vw}.brand p{font-size:4vw;letter-spacing:.24em}.topline{font-size:8px}.footer{font-size:7px;line-height:1.8;gap:10px}.footer b{margin:0 4px}.footer .status{display:none}.primary{min-height:52px;padding:13px 18px}dialog{padding:24px}.brand.final-brand h2{font-size:12vw}}
@media(max-height:560px){.title-layout{padding:4vh 5vw}.brand{margin:5vh 0 3vh}.brand h1{font-size:16vh}.brand p{font-size:4vh}.actions{margin-bottom:auto}.actions .primary{min-height:42px;padding:8px 17px}.links{margin:12px 0}.fine{margin:6px 0}.footer{font-size:8px}.topline{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* VOID: one quiet, opaque main title for the whole campaign. */
#title{background:#000;color:#e8e7df}
#title .title-layout{padding:0;display:block;text-align:center}
#title .brand{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);margin:0;width:94%}
#title .brand h1{font-size:clamp(44px,10vw,150px);line-height:1.16;letter-spacing:.07em;text-indent:.07em;margin:0;text-shadow:none}
#title .brand p{margin:21px 0 0;font-size:clamp(11px,1.55vw,17px);letter-spacing:.43em;text-indent:.43em;color:#bebfb9}
#title .actions{position:absolute;left:50%;top:70%;transform:translateX(-50%);width:min(300px,90%);margin:0}
#title .primary{justify-content:center;border:0;background:transparent;min-height:44px;padding:10px 18px;font-size:12px;letter-spacing:.28em;text-indent:.28em;text-align:center}
#title .primary:hover{color:#fff;text-shadow:0 0 14px #ffffff85}
#title .actions>.primary+.primary{margin:0}
#title .links{justify-content:center;gap:30px;margin:10px 0}
#title .links button{font-size:11px;color:#949992;padding:10px 0}
#title .fine{font-size:10px;color:#8d948d;margin:8px 0}
.title-sound{position:absolute;right:28px;bottom:20px;min-height:44px;font-size:10px;letter-spacing:.1em;border:0;background:transparent;color:#949992;padding:10px}
@media(max-width:650px){#title .brand{top:40%}#title .brand p{letter-spacing:.22em;text-indent:.22em}#title .actions{top:65%}.title-sound{right:12px;bottom:8px}}
@media(max-height:560px){#title .brand{top:32%}#title .brand h1{font-size:clamp(38px,16vh,85px)}#title .brand p{margin-top:12px;font-size:11px}#title .actions{top:52%}#title .primary{min-height:36px;padding:8px}#title .links{margin:2px 0}#title .fine{margin:2px 0}.title-sound{bottom:6px;right:12px}}

/* Do not hand in-game swipes to the outer browser viewport. */
html,body{overscroll-behavior:none}
#stage,#stage iframe{touch-action:none;overscroll-behavior:none}
