:root{color-scheme:dark;--ink:#10151b;--chalk:#dce3da;--orange:#ff743d;--muted:#afbbb4;--line:#344149;--red:#ff5d64;--amber:#e1bb72;font-family:Arial,Helvetica,sans-serif;background:var(--ink);color:var(--chalk)}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 48% 34%,#1a262d66,transparent 60%),var(--ink)}button{font:inherit;cursor:pointer;color:inherit;border:1px solid var(--line);background:#182127;min-height:44px;border-radius:2px;transition:background .15s,border-color .15s}button:hover{background:#27343a;border-color:#9ba69f}button:disabled{opacity:.35;cursor:default}button:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:2px solid var(--orange);outline-offset:3px}button:active{background:#37453e}button small{font:11px 'Courier New',monospace;color:var(--muted)}[hidden]{display:none!important}h1,h2,p{margin:0}h1{font-size:15px;letter-spacing:.13em;font-weight:700}.app{height:100svh;min-height:690px;max-width:1700px;margin:auto;padding:0 34px;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.masthead{display:flex;align-items:center;justify-content:space-between;min-height:76px;border-bottom:1px solid #33414880}.identity{display:flex;gap:13px;align-items:center}.identity p{font-family:Georgia,serif;font-style:italic;font-size:13px;color:#9caaa4;margin-top:4px}.brand-mark{color:var(--orange);font-size:30px;letter-spacing:-8px;width:24px;font-family:Georgia,serif}.quiet{background:transparent;border:0;font-size:12px;color:#b7c0b9;padding:0 4px}.quiet span{color:var(--orange);padding-left:12px}.game{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0}.building-head{display:flex;align-items:center;gap:30px;padding:20px 0 2px}.eyebrow{font:9px/1.5 'Courier New',monospace;letter-spacing:.11em;color:var(--muted)}h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(25px,3vw,39px);font-weight:400;letter-spacing:-.045em;margin-top:3px}.chapter-note{font-size:12px;color:#9ba9a3;margin-left:auto;max-width:260px;line-height:1.5;font-style:italic}.beat{display:flex;align-items:center;gap:9px;margin-left:16px}.beat>span{font:40px/1 'Courier New',monospace;letter-spacing:-.1em;font-weight:400}.beat>div{font:9px/1.6 'Courier New',monospace;letter-spacing:.1em;color:#b4bfb7}.beat small{color:var(--orange);font-size:9px}.world{position:relative;min-height:0;background-image:linear-gradient(#4455630b 1px,transparent 1px),linear-gradient(90deg,#4455630b 1px,transparent 1px);background-size:26px 26px}.world:before{content:'';position:absolute;inset:10% 9%;border-radius:50%;box-shadow:0 0 100px 20px #060b0d55;pointer-events:none}#map{display:block;width:100%;height:100%;overflow:visible;position:relative}.map-caption{position:absolute;left:0;top:16px;right:0;display:flex;justify-content:space-between;font:8px 'Courier New',monospace;color:#63747b;letter-spacing:.13em;pointer-events:none}.map-caption b{font-weight:400;color:#a6b4b3}.map-legend{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:21px;white-space:nowrap;font:9px 'Courier New',monospace;color:#93a29c}.map-legend span{display:flex;align-items:center;gap:6px}.map-legend i{display:inline-block;font-style:normal}.legend-you{width:10px;height:10px;border:1.5px solid var(--chalk);border-radius:50%}.legend-enemy{color:var(--red);font-size:19px;line-height:10px}.legend-person{color:var(--amber);font-size:10px}.legend-seam{width:18px;height:5px;border-top:1px dashed var(--orange);border-bottom:1px dashed var(--orange)}
.corridor-shadow{stroke:#030709;stroke-width:12;fill:none}.corridor{stroke:#657b83;stroke-width:1.4;fill:none;stroke-linecap:square}.corridor-center{stroke:#9db2b4;stroke-width:.5;fill:none;opacity:.4}.room-floor{fill:#172128;stroke:#65747c;stroke-width:1}.room-inner{fill:none;stroke:#71858b;stroke-width:.5;opacity:.25}.room-number{font:7px 'Courier New',monospace;fill:#788a8e}.room-title{font:12px 'Courier New',monospace;letter-spacing:.04em;fill:#d1dbd5}.remembered .room-floor{fill:#1e2b30;stroke:#a4b3b0}.remembered .room-title{fill:#e0e7dc}.room-tick{stroke:#829f97;fill:none;stroke-width:1.2}.room-button{cursor:pointer;outline:none}.room-button:hover .room-floor,.room-button:focus-visible .room-floor{stroke:#f3f2db;fill:#2b3b3d}.room-button:focus-visible .room-inner{stroke:var(--orange);opacity:1;stroke-width:2}.room-button.current .room-floor{stroke:#e4e7d7;stroke-width:1.5;fill:#263736}.room-button.selected .room-floor{stroke:var(--orange);stroke-width:2;fill:#402d28}.editing .room-button:not(.remembered){opacity:.37}.drafting .room-button.remembered .room-floor{stroke:#cd9b79}.stair-lines{stroke:#a1b0aa;stroke-width:.6;opacity:.4}.seam-under{stroke:#10151b;stroke-width:8;fill:none}.seam-outer{stroke:var(--orange);stroke-width:4;fill:none;stroke-dasharray:9 4;opacity:.95}.seam-inner{stroke:#10151b;stroke-width:1.8;fill:none;stroke-dasharray:9 4}.old-seam{stroke:#c07165;stroke-width:1.4;stroke-dasharray:2 5;fill:none;opacity:.65}.new-seam{stroke:#ffc19b}.intent-path{fill:none;stroke:#ff5d6466;stroke-dasharray:3 5;stroke-width:1.2}.draft-mark{stroke:#596b72;stroke-width:.7;fill:none}.draft-label{fill:#5b6e76;font:7px 'Courier New',monospace;letter-spacing:.06em}.actor-you{fill:#182329;stroke:#f5f7e9;stroke-width:2.3}.actor-enemy{fill:#ff5d64;stroke:#10151b;stroke-width:1.4}.enemy-eye{stroke:#ff7377;fill:#2e151f;stroke-width:1.2}.actor-person{fill:var(--amber);stroke:none}.exit-mark{stroke:#dce3da;stroke-width:1.5;fill:none}.exit-label{font:10px 'Courier New',monospace;fill:#dce3da;letter-spacing:.1em}.room-button .touch-target{fill:transparent;stroke:none}
.console{border-top:1px solid #53626180;padding-top:12px;padding-bottom:5px}.readout{display:flex;gap:35px;align-items:center}.readout>div{display:flex;flex-direction:column;gap:1px}.readout strong{font:19px Georgia,serif;font-weight:400}.readout .intent{margin-left:auto}.intent strong{font:13px 'Courier New',monospace;color:#b9c4be}.readout .rescue-count{flex-direction:row;align-items:center;gap:10px;border-left:1px solid var(--line);padding-left:24px}.rescue-count #rescue-number{font:24px 'Courier New',monospace}.rescue-count .eyebrow{max-width:44px}.message-row{display:flex;gap:14px;align-items:center;justify-content:space-between;min-height:34px;padding:5px 0}.message-row p{font-size:13px;line-height:1.4;color:#d1ddd4;max-width:100%}.message-row .eyebrow{color:var(--orange);flex-shrink:0}.neighbors,.seam-controls{display:flex;gap:7px}.neighbors button{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:7px 13px;gap:7px;min-height:48px}.travel-label{display:flex;gap:10px;align-items:center;font-size:12px}.travel-label kbd{color:var(--orange)}kbd{font:10px 'Courier New',monospace;color:#7e908c}.travel-forecast{font:11px 'Courier New',monospace;color:#c4d8d0;line-height:1.4;max-width:100%;overflow-wrap:anywhere}.danger{color:#ff8489!important}.neighbors button.risky{border-color:#7f4145}.seam-controls button{flex:1;display:flex;gap:20px;align-items:center;justify-content:center;min-height:48px}.primary{color:var(--ink);background:var(--orange);border-color:var(--orange)}.primary:hover{background:#ff9869;border-color:#ff9869}.primary small{color:#452215}.tools{display:flex;gap:7px;margin-top:7px}.tools button{flex:1;font-size:12px;display:flex;justify-content:center;align-items:center;gap:12px;min-width:0;background:transparent}.tools .seam-tool{color:var(--orange);border-color:#78503c}.seam-tool>span{font-size:25px;line-height:10px}.tools button[aria-pressed=true]{background:#402b24}.roster{display:flex;flex-wrap:wrap;gap:18px;margin-top:9px;font:11px 'Courier New',monospace;color:#d9bb88;min-height:16px}.roster span{display:inline-flex;align-items:center;gap:5px}.roster .rescued{color:#bdd2b9}.roster .rescued b{font-weight:400;color:#bdd2b9}.roster b{font-size:9px;color:var(--amber)}footer{border-top:1px solid #33414880;display:flex;justify-content:space-between;align-items:center;color:#748881;font:9px 'Courier New',monospace;min-height:44px;gap:8px}.text-button{border:0;background:none;font:10px 'Courier New',monospace;color:#a1b0a9;padding:0 4px}.text-button span{color:var(--orange);margin-left:8px}.outcome{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,90%);padding:30px;background:#10191bf5;border-top:2px solid var(--orange);box-shadow:0 15px 70px #000b;z-index:3}.outcome h3{font:36px/.97 Georgia,serif;letter-spacing:-.04em;margin:10px 0 15px}.outcome p{font-size:13px;line-height:1.5;color:#becac1}.outcome .eyebrow{font:9px 'Courier New',monospace;color:var(--orange)}.outcome button{margin-top:18px;width:100%;font-size:12px;padding:0 16px}.outcome.caught{border-color:var(--red)}.outcome.caught .eyebrow{color:var(--red)}.outcome .thanks-names{font:22px/1.4 Georgia,serif;color:var(--chalk);margin:12px 0}.outcome .replay-small{display:flex;gap:6px}.outcome .replay-small button{padding:0 6px;font-size:11px;margin-top:10px}dialog{color:var(--chalk);background:#182227;border:1px solid #54645f;width:min(540px,calc(100% - 24px));max-height:85svh;padding:30px 28px;box-shadow:0 24px 100px #000b}dialog::backdrop{background:#060a0fd9;backdrop-filter:blur(6px)}dialog h2{font-size:33px;margin-bottom:20px}dialog p{font-size:13px;line-height:1.65;margin-bottom:15px;color:#bbc7bf}dialog p.eyebrow{font-size:9px;color:var(--orange);margin-right:36px}dialog b{color:#e4e9dd}dialog .dialog-close{position:absolute;right:8px;top:8px;width:44px;background:transparent;border:0;font-size:25px}summary{cursor:pointer;min-height:44px;font-size:13px;padding:12px 0;color:var(--orange)}#replay-list{display:grid;gap:8px}#replay-list button{font-size:14px;text-align:left;padding:12px;display:flex;justify-content:space-between}#replay-list small{color:var(--orange)}
@media(min-width:1000px){.console{width:100%;max-width:1120px;margin:auto}.world{margin:0 20px}.building-head{padding-top:20px}.map-legend{bottom:12px}.room-title{font-size:12px}.room-number{font-size:9px;fill:#afbbb4}.room-floor{filter:drop-shadow(4px 8px 5px #0006)}}
@media(max-width:650px){.app{padding:0 14px;min-height:730px}.masthead{min-height:60px}.identity{gap:10px}h1{font-size:11px;letter-spacing:.1em}.identity p{font-size:11px;margin-top:3px}.brand-mark{font-size:26px;width:18px}.quiet{font-size:0;width:44px;padding:0}.quiet span{font-size:21px;padding:0}.building-head{padding:12px 0 4px;gap:8px}.building-head h2{font-size:27px}.building-head .eyebrow{font-size:10px;letter-spacing:.04em}.chapter-note{display:none}.beat{margin-left:auto;gap:7px}.beat>span{font-size:33px}.beat>div{font-size:10px}.beat small{font-size:10px}.map-caption{top:7px;font-size:6px}.map-caption span:last-child{display:none}.map-legend{bottom:7px;gap:10px;font-size:9px;color:#afbbb4}.console{padding-top:9px}.readout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:10px}.readout>div{min-width:0}.readout .intent{margin-left:0}.readout strong{font-size:17px}.readout .eyebrow{font-size:10px;letter-spacing:.06em}.intent strong{font-size:11px;max-width:100%;min-height:16px;overflow-wrap:anywhere}.readout .rescue-count{padding-left:10px;gap:5px}.rescue-count #rescue-number{font-size:21px}.rescue-count .eyebrow{display:none}.message-row{min-height:41px;gap:4px}.message-row p{font-size:12px;line-height:1.4}.message-row .eyebrow{display:none}.neighbors{gap:5px}.neighbors button{padding:6px 7px;flex-direction:column;align-items:flex-start;justify-content:center;min-height:49px;gap:3px}.travel-label{display:block;font-size:11px;min-width:0;overflow-wrap:anywhere}.travel-label kbd{margin-right:5px}.travel-label kbd{font-size:9px}.travel-forecast{font-size:11px}.tools{gap:5px;margin-top:6px}.tools button{font-size:12px;gap:5px}.tools kbd{display:none}.roster{gap:12px;margin-top:8px;font-size:11px;min-height:16px}footer{min-height:39px;font-size:8px}.text-button{font-size:9px}.text-button span{margin-left:4px}.outcome{padding:22px}.outcome h3{font-size:31px}.outcome p{font-size:12px}.outcome .thanks-names{font-size:20px}.world{margin:0 -6px}dialog{padding:26px 22px}.map-caption{left:6px}.room-title{font-size:12px}.room-number{font-size:9px;fill:#afbbb4}.seam-controls button{font-size:12px}.seam-controls button small{font-size:11px}}
@media(max-width:350px){.app{padding:0 10px}.building-head h2{font-size:24px}.readout strong{font-size:15px}.intent strong{font-size:11px;max-width:100%}.readout{gap:8px}.roster{gap:8px}.map-legend{gap:8px;font-size:9px}.message-row p{font-size:12px}.neighbors button{padding:5px}.travel-label{font-size:11px}.travel-forecast{font-size:11px}footer>span{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Static route replacement and movement warnings; no animation is needed. */
.route-notice>span{display:block}.route-notice b{font:700 11px/1.4 'Courier New',monospace;letter-spacing:.025em}.route-close{color:#b9bcb3}.route-close>span{text-decoration:line-through;text-decoration-color:#b9bcb380}.route-open{color:#ffc19b}.route-result{color:#d1ddd4}.message-row:has(.route-notice)>.eyebrow{display:none}.intent strong.movement,.travel-forecast.movement{color:#ffe4c4;background:#48292b;border-left:3px solid #ffab77;padding:3px 5px;font-weight:700}.travel-forecast.danger{background:#48292b;border-left:3px solid #ff8489;padding:3px 5px;font-weight:700}.beat small.movement{color:#ffe4c4;text-decoration:underline;text-underline-offset:3px}
