:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;background:#071a31;color:#fff1d6;--ink:#071a31;--ivory:#fff1d6;--muted:#c0d0e2;--orange:#f27917;--danger:#ff9690;--accent:#ffb478;--line:#fff1d64d;--surface:#091b28ed;--safe-top:max(14px,env(safe-area-inset-top));--safe-bottom:max(14px,env(safe-area-inset-bottom));--safe-left:max(14px,env(safe-area-inset-left));--safe-right:max(14px,env(safe-area-inset-right));--hand-width:min(960px,160vw);--hand-crop:.27}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;height:100dvh;margin:0;overflow:hidden;overscroll-behavior:none}html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}body{touch-action:none}::selection{background:var(--orange);color:var(--ink)}button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ivory);font:700 12px/1.2 Arial,Helvetica,sans-serif;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:background .12s ease,transform .12s ease}@media(hover:hover)and (pointer:fine){button:hover{background:#244052;border-color:var(--ivory)}}button:focus-visible{outline:3px solid var(--ivory);outline-offset:3px}button:active{transform:scale(.96)}button:disabled{opacity:.5;cursor:not-allowed}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#compound{position:fixed;inset:0;display:block;width:100%;height:100%;touch-action:none}.hud{position:fixed;inset:0;z-index:6;pointer-events:none}.hud>*{pointer-events:none}.top-actions{position:absolute;top:var(--safe-top);right:var(--safe-right);display:flex;gap:5px;pointer-events:auto}.top-actions button{width:44px;height:44px;background:#071a31e8;border-radius:4px}.status{position:absolute;top:var(--safe-top);left:var(--safe-left);display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;min-width:210px;padding:10px 12px;background:#071a31e8;border:1px solid var(--line);border-bottom:2px solid var(--accent);box-shadow:0 10px 22px #00111a66}#role{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;line-height:1.1;text-transform:capitalize}#role svg{width:22px;height:22px;color:var(--accent)}#identity-status{margin-left:0;text-align:right;font-size:10px;line-height:1.1;color:var(--accent);text-transform:uppercase}#identity-status[data-burned=true],#role[data-burned=true]{color:var(--danger)}#role[data-burned=true] .role-name{text-decoration:line-through}.readouts{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-height:22px}#health{display:flex;gap:2px;color:var(--ivory)}#health svg{width:16px;height:16px;fill:currentColor;stroke:none}progress{appearance:none;-webkit-appearance:none;width:54px;height:5px;border:0;background:#30414f;color:var(--accent);accent-color:var(--accent)}progress::-webkit-progress-bar{background:#30414f}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}#shield-charge{color:#9be9ee;accent-color:#9be9ee}#shield-charge::-webkit-progress-value{background:#9be9ee}#shield-charge::-moz-progress-bar{background:#9be9ee}#cargo-status,#security{position:static;display:grid;place-items:center;min-width:24px;min-height:24px;padding:2px;background:#0c2637;color:var(--muted)}#cargo-status svg,#security svg{width:17px;height:17px}#cargo-status[data-state=empty]{display:none}#cargo-status[data-state=secured]{color:var(--accent)}#cargo-status[data-state=delivered]{color:#9be9ee}#security{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:700}#security[data-level="0"]{display:none}#security[data-level="1"]{color:var(--accent)}#security[data-level="2"]{color:var(--danger)}#escape-stage,#bearing{position:fixed;z-index:5;left:50%;display:flex;align-items:center;justify-content:center;background:#071a31eb;color:var(--ivory);pointer-events:none;font-weight:700;box-shadow:0 8px 18px #00111a4d}#escape-stage{top:var(--safe-top);gap:7px;min-height:30px;max-width:min(360px,calc(100vw - 250px));padding:7px 11px;border-bottom:1px solid var(--accent);transform:translate(-50%);font-size:11px;line-height:1}#escape-stage svg{width:17px;height:17px;flex:0 0 auto;color:var(--accent)}#escape-stage span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#bearing{top:calc(var(--safe-top) + 31px);gap:5px;min-height:26px;padding:4px 9px;border:1px solid var(--line);transform:translate(-50%);font-size:11px;font-variant-numeric:tabular-nums}#bearing[hidden]{display:none}#bearing svg{width:27px;height:27px;stroke-width:2.6;color:var(--accent)}#reticle{position:fixed;z-index:4;left:50%;top:50%;width:28px;height:28px;transform:translate(-50%,-50%);color:#fff1d6b3;pointer-events:none}#reticle svg{width:100%;height:100%}#reticle[data-target=true]{color:var(--accent)}.commitment{position:fixed;z-index:5;left:50%;top:calc(50% + 30px);width:84px;height:5px;transform:translate(-50%);pointer-events:none}#visor{position:fixed;inset:0;z-index:3;pointer-events:none}.helmet{display:none;width:100%;height:100%;stroke:none}.helmet-shell{fill:#07131ee6}.helmet-seam{fill:none;stroke:var(--accent);stroke-width:1;opacity:.5;vector-effect:non-scaling-stroke}body[data-mode=guard] .helmet,body[data-mode=scientist] .helmet{display:block}body[data-mode=scientist] .helmet-shell{display:none}body[data-mode=scientist] .helmet-seam{stroke-width:2;opacity:.65}body[data-shield=true] #visor{box-shadow:inset 0 0 0 5px #69e8fa,inset 0 0 24px #69e8fa55}body[data-hit=true] #visor{box-shadow:inset 0 0 0 8px var(--danger),inset 0 0 40px #ff969044}#suit-change{position:absolute;left:50%;top:calc(50% + 55px);display:none;align-items:center;gap:8px;transform:translate(-50%);color:var(--accent)}#suit-change svg{width:20px;height:20px}#suit-change progress{width:80px}body[data-changing=true] #suit-change{display:flex}body[data-changing=true] .helmet,body[data-changing=true] #viewmodel{opacity:.35}#incoming-shot{position:fixed;z-index:5;left:50%;top:24%;display:grid;justify-items:center;gap:5px;transform:translate(-50%);color:var(--danger);pointer-events:none}#incoming-shot svg{width:32px;height:32px;transform:rotate(var(--shot-bearing,0rad))}#incoming-shot progress{width:46px;height:4px;accent-color:var(--danger)}#incoming-shot progress::-webkit-progress-value,#incoming-shot progress::-moz-progress-bar{background:var(--danger)}#viewmodel{position:fixed;z-index:3;left:50%;bottom:calc(-1 * (var(--hand-width) * 342 / 512 * var(--hand-crop) + 35px));width:var(--hand-width);height:calc(var(--hand-width) * 342 / 512);transform:translate(calc(-50% + var(--hand-x,0px)),var(--hand-y,0px));pointer-events:none}#viewmodel .hand-left,#viewmodel .hand-right{position:absolute;bottom:0;width:50%;height:100%;background-image:var(--viewmodel-image);background-size:200% 100%;background-repeat:no-repeat;transform:rotate(var(--hand-roll,0deg))}#viewmodel .hand-left{left:0;background-position:left bottom;transform-origin:left bottom}#viewmodel .hand-right{right:0;background-position:right bottom;transform-origin:right bottom}body[data-mode=guard]{--hand-crop:.32}body[data-mode=scientist]{--hand-crop:.37}#viewmodel[data-pose=attack]{--hand-crop:.28}#viewmodel[data-pose=reach]{--hand-crop:.32}body[data-mode=guard] #viewmodel[data-pose=reach],body[data-mode=scientist] #viewmodel[data-pose=attack]{--hand-crop:.36}body[data-mode=scientist] #viewmodel[data-pose=scan]{--hand-crop:.42}body[data-mode=scientist] #viewmodel[data-pose=reach]{--hand-crop:.39}#viewmodel[data-pose=lift]{--hand-crop:.3}body[data-mode=hovercraft] #viewmodel,body[data-mode=bike] #viewmodel{left:0;bottom:-30px;width:100%;height:min(570px,65vh);transform:translate(var(--hand-x,0px),var(--hand-y,0px));background:var(--viewmodel-image) center bottom/contain no-repeat}body[data-mode=hovercraft] #viewmodel .hand-left,body[data-mode=hovercraft] #viewmodel .hand-right,body[data-mode=bike] #viewmodel .hand-left,body[data-mode=bike] #viewmodel .hand-right{display:none}#held-body{position:fixed;z-index:4;bottom:18px;left:50%;width:260px;height:185px;object-fit:contain;transform:translate(calc(-25% + var(--hand-x,0px)),var(--hand-y,0px)) rotate(var(--hand-roll,0deg));pointer-events:none}body[data-carrying=guard] #viewmodel,body[data-carrying=scientist] #viewmodel{opacity:.2}#vehicle-speed{position:fixed;z-index:5;bottom:26px;left:50%;min-width:76px;padding:8px 12px;transform:translate(-50%);background:#071a31e8;color:var(--ivory);text-align:center;font-size:30px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums;pointer-events:none}#vehicle-speed:after{content:"m/s";display:block;margin-top:4px;color:var(--accent);font-size:10px}#touch{position:fixed;z-index:7;right:var(--safe-right);bottom:var(--safe-bottom);left:var(--safe-left);display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none}#touch>*{pointer-events:auto}#stick{position:relative;width:88px;height:88px;flex:0 0 88px;border:1px solid #fff1d659;border-radius:50%;background:#071a3173;touch-action:none}#stick span{position:absolute;left:28px;top:28px;width:32px;height:32px;border:1px solid #fff1d680;border-radius:50%;background:#fff1d629}.touch-actions{position:relative;width:216px;height:176px;pointer-events:none!important}.touch-actions button{position:absolute;width:48px;height:48px;padding:7px;pointer-events:auto;touch-action:manipulation}.touch-actions #action{right:0;bottom:76px;width:64px;height:64px;border:0;background:var(--accent);color:var(--ink)}.action-verb{font-size:10px;font-weight:700}.nearby .action-verb{display:none}.touch-actions #fire{right:64px;bottom:0;width:64px;height:64px;background:linear-gradient(90deg,var(--accent) var(--disc-ready,100%),#30414f 0) left bottom/100% 4px no-repeat,var(--surface);color:var(--ivory)}.touch-actions #shield{right:0;bottom:0}.touch-actions #profiles{right:144px;bottom:0}.touch-actions #sprint{right:72px;bottom:76px}.touch-actions #crouch{right:144px;bottom:76px}.touch-actions button[aria-pressed=true]{border-color:var(--accent);background:#264552;color:var(--accent)}.touch-actions button.ready{border-color:var(--accent);color:var(--accent)}#action:disabled{background:var(--surface);color:var(--muted)}#touch.desktop{left:auto;justify-content:flex-end}#touch.desktop .touch-actions{width:auto;height:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:218px;gap:5px}#touch.desktop .touch-actions button{position:relative;right:auto;bottom:auto;width:106px;height:46px;display:grid;grid-template-columns:22px 18px 1fr;gap:5px;padding:5px 7px;border-radius:3px;background:#071a31e8;color:var(--ivory);text-align:left}#touch.desktop .touch-actions button:before{display:grid;place-items:center;min-width:20px;height:19px;border:1px solid var(--line);background:#102b3d;color:var(--accent);font-size:9px;line-height:1;font-variant-numeric:tabular-nums}#touch.desktop .touch-actions button:after{font-size:10px;font-weight:700;white-space:nowrap}#touch.desktop .touch-actions button svg{width:18px;height:18px}#touch.desktop #action{order:1;border-color:var(--accent)}#touch.desktop #action:before{content:"E"}#touch.desktop #action:after{content:"Use"}#touch.desktop #fire{order:2;background:#071a31e8}#touch.desktop #fire:before{content:"F"}#touch.desktop #fire:after{content:"Disc"}#touch.desktop #profiles{order:3}#touch.desktop #profiles:before{content:"Q"}#touch.desktop #profiles:after{content:"Suit"}#touch.desktop #crouch{order:4}#touch.desktop #crouch:before{content:"C"}#touch.desktop #crouch:after{content:"Crouch"}#touch.desktop #sprint{order:5}#touch.desktop #sprint:before{content:"Shift";font-size:7px}#touch.desktop #sprint:after{content:"Run"}#touch.desktop #shield{order:6}#touch.desktop #shield:before{content:"Space";font-size:7px}#touch.desktop #shield:after{content:"Shield"}#touch.desktop .action-verb{display:none}#signal{position:fixed;z-index:5;left:var(--safe-left);bottom:calc(var(--safe-bottom) + 126px);width:30px;height:30px;padding:5px;background:var(--surface);color:var(--danger);pointer-events:none}#signal svg{width:20px;height:20px}#speech{position:fixed;z-index:5;left:var(--speech-x,50%);top:var(--speech-y,65%);display:flex;align-items:center;gap:6px;max-width:min(250px,calc(100vw - 40px));padding:6px 9px;background:var(--surface);font-size:12px;line-height:1.3;transform:translate(-50%,-100%);pointer-events:none}.speech-speaker{width:8px;height:8px;flex:0 0 8px;background:#85c9f4}.speech-line{white-space:normal}.nearby{position:fixed;z-index:5;min-width:48px;min-height:48px;background:var(--accent);color:var(--ink);transform:translate(-50%,-50%)}body[data-mode=human] .status{border-bottom-color:var(--orange)}body[data-mode=guard]{--accent:#ffd09a;--surface:#101c25f0;--line:#e6c29c66}body[data-mode=guard] .status,body[data-mode=guard] .touch-actions button{border-radius:0;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}body[data-mode=guard] .status{border-top:2px solid var(--accent)}body[data-mode=guard] #reticle{width:34px;height:34px}body[data-mode=scientist]{--accent:#bfeff1;--surface:#102b34f2;--line:#bfeff180}body[data-mode=scientist] .status{border:1px solid var(--line);border-bottom:2px solid var(--accent)}body[data-mode=scientist] #health svg{fill:none;stroke:var(--accent);stroke-width:2}body[data-mode=scientist] .touch-actions button{border-radius:3px}body[data-mode=scientist] #reticle{width:40px;height:40px}body[data-mode=scientist][data-scanning=true] #reticle{border-bottom:2px solid var(--accent)}body[data-mode=hovercraft],body[data-mode=bike]{--accent:#b4edf0;--surface:#0b2029f2;--line:#b4edf069}body[data-mode=hovercraft] .status,body[data-mode=bike] .status{border-radius:0;border-top:2px solid var(--accent)}body[data-mode=bike] .status{border-radius:14px 14px 0 0}body[data-mode=bike] #vehicle-speed{border-radius:18px 18px 0 0}#dialog{padding:0;border:0;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);color:var(--ivory);background:transparent}#dialog::backdrop{background:#021326cf}.dialog-panel{width:min(390px,calc(100vw - 32px));max-height:min(80dvh,600px);margin:0;padding:24px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;background:var(--ink)}.kicker{margin:0 0 7px;color:var(--muted);font-size:12px}.kicker:empty{display:none}.dialog-panel h1{margin:0 0 20px;font:400 32px/1.12 Georgia,serif}.dialog-panel p{line-height:1.5}.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.dialog-actions button{flex:1}.primary{border-color:var(--orange);background:var(--orange);color:var(--ink)}.chapter-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.help-grid{display:grid;grid-template-columns:auto 1fr;gap:10px;font-size:13px}.help-grid kbd{color:var(--accent);font:inherit}.role-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.role-list button{grid-template-rows:100px auto auto;gap:5px;min-width:0;padding:12px 6px;border-radius:6px}.role-list img{width:70px;height:100px;object-fit:contain}.role-list strong{font-size:12px}.role-list span{color:var(--muted);font-size:10px}.role-list button[aria-pressed=true]{border-color:var(--accent);background:#193a48}.role-list button:disabled span{color:var(--danger)}.sr-only{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}[hidden]{display:none!important}#loading-screen{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:var(--ink)}#loading-screen[hidden]{display:none}.loading-panel{width:min(360px,100%)}.loading-mark{width:44px;height:44px;margin-bottom:16px;color:var(--orange)}.loading-panel h1{margin:0 0 26px;font-size:clamp(25px,5vw,34px);line-height:1.1}.loading-panel progress{display:block;width:100%;height:10px;overflow:hidden;border:0;border-radius:2px;background:#263d50;accent-color:var(--orange)}.loading-panel progress::-webkit-progress-bar{background:#263d50}.loading-panel progress::-webkit-progress-value,.loading-panel progress::-moz-progress-bar{background:var(--orange)}.loading-readout{display:flex;justify-content:space-between;gap:12px;margin-top:12px;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}@media(max-width:600px){:root{--safe-left:max(10px,env(safe-area-inset-left));--safe-right:max(10px,env(safe-area-inset-right));--safe-top:max(10px,env(safe-area-inset-top));--hand-width:min(600px,160vw)}.status{top:var(--safe-top);bottom:auto;min-width:142px;max-width:178px;gap:4px;padding:7px 8px}body[data-mode=human] .status{padding:7px 8px}#role{gap:6px;font-size:12px}#role svg{width:20px;height:20px}#identity-status{margin-left:0;font-size:9px}.readouts{gap:5px;min-height:18px}#health svg{width:13px;height:13px}progress{width:30px}#cargo-status,#security{min-width:21px;min-height:21px}#security .security-word{display:none}.top-actions{gap:4px}.top-actions button{background:#071a3199}#escape-stage{top:calc(var(--safe-top) + 75px);max-width:calc(100vw - 34px);font-size:10px}#bearing{top:calc(var(--safe-top) + 106px);font-size:10px}#held-body{bottom:30px;width:230px;height:160px;transform:translate(calc(-50% + var(--hand-x,0px)),var(--hand-y,0px)) rotate(var(--hand-roll,0deg))}body[data-mode=hovercraft] #viewmodel,body[data-mode=bike] #viewmodel{left:0;bottom:-10px;width:100%;height:300px}#vehicle-speed{bottom:130px;font-size:26px}#signal{top:calc(var(--safe-top) + 140px);bottom:auto}#dialog[data-kind=suits]{position:fixed;inset:auto 0 0;width:100%;max-width:100%;margin:0 auto}#dialog[data-kind=suits] .dialog-panel{width:100%;max-height:72dvh;padding-bottom:calc(20px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0}.role-list button{grid-template-rows:95px auto auto}.role-list img{height:95px}}@media(max-width:360px){.status{min-width:128px;max-width:142px;gap:4px 5px;padding:6px}body[data-mode=human] .status{padding:6px}#role{gap:4px;font-size:11px}#role svg{width:16px;height:16px}#identity-status{font-size:8px}.readouts{gap:4px}}@media(max-height:480px)and (orientation:landscape){:root{--safe-top:max(8px,env(safe-area-inset-top));--safe-bottom:max(8px,env(safe-area-inset-bottom));--hand-width:min(600px,90vw)}.status{top:var(--safe-top);bottom:auto;min-width:180px;padding:6px 9px}#escape-stage{top:var(--safe-top);left:50%;max-width:min(300px,calc(100vw - 300px))}#bearing{top:calc(var(--safe-top) + 31px)}#held-body{bottom:0;width:230px;height:145px}body[data-mode=hovercraft] #viewmodel,body[data-mode=bike] #viewmodel{height:280px}#vehicle-speed{bottom:14px;font-size:26px}#speech{max-width:220px;font-size:11px}.dialog-panel{max-height:calc(100dvh - 20px);padding:18px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}#viewmodel{transform:translate(-50%)!important}body[data-mode=hovercraft] #viewmodel,body[data-mode=bike] #viewmodel,#viewmodel .hand-left,#viewmodel .hand-right{transform:none!important}}
