:root{color-scheme:dark;--bone:#f2efdd;--muted:#c4c1ac;--amber:#e0cf89;--ink:#15160f;--line:rgba(243,239,215,.32);--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);font:16px Arial,Helvetica,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#11120d;touch-action:none}body{color:var(--bone);overscroll-behavior:none;-webkit-tap-highlight-color:transparent;touch-action:none}button,input,select{font:inherit}button{color:inherit;cursor:pointer;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;touch-action:none}button:disabled{cursor:default;opacity:.35}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--amber);outline-offset:4px}button:not(:disabled):active{filter:brightness(1.22)}[hidden]{display:none!important}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.icon{display:block;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;overflow:visible}
#scene{display:block;position:fixed;inset:0;width:100%;height:100%;touch-action:none;outline:none}.screen{position:fixed;inset:0;z-index:20}.atmosphere{position:fixed;inset:0;z-index:2;pointer-events:none;overflow:hidden}.vignette{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,transparent 38%,rgba(7,8,5,.14) 80%,rgba(7,8,5,.3) 100%)}.grain{position:absolute;inset:0;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}
#threat-wash{position:fixed;inset:0;z-index:4;opacity:0;pointer-events:none;box-shadow:inset 0 0 24vw 4vw rgba(81,38,17,.8);transition:opacity .18s linear}
/* The scene fills the display; the small start prompt unlocks play and audio. */
.menu-screen{display:flex;align-items:flex-end;justify-content:center;padding:32px 24px calc(var(--safe-bottom) + clamp(42px,12vh,105px));background:linear-gradient(0deg,rgba(7,9,6,.82),rgba(7,9,6,.18) 47%,transparent 73%)}.game-start{width:min(280px,100%);text-align:center;text-shadow:0 2px 12px #000}h1{margin:0 0 24px;font-size:34px;font-weight:700;line-height:1.05;letter-spacing:-.035em;white-space:nowrap}.menu-actions{display:grid;gap:8px}.button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:12px 18px;border:1px solid var(--line);border-radius:2px;background:rgba(15,17,11,.62);color:var(--bone);font-size:14px;line-height:1.35;font-weight:700;letter-spacing:.08em}.button.primary{background:rgba(238,231,199,.94);border-color:rgba(255,247,215,.8);color:#24271b;text-shadow:none}.button.secondary{background:rgba(20,23,15,.52)}.button:not(:disabled):hover{border-color:var(--bone)}.button.dark{background:#303024;color:#f3eed2;border-color:#303024}.menu-options{display:flex;justify-content:center;gap:30px;margin-top:5px}.text-button{min-height:44px;padding:10px 5px;background:none;border:0;font-size:13px;font-weight:600;letter-spacing:.06em;color:var(--muted)}.text-button:hover{color:var(--bone)}.load-status{min-height:17px;margin:0;font-size:12px;line-height:1.4;color:rgba(240,233,206,.65)}
/* Compact navigation and equipment leave the center available for aiming. */
#hud{position:fixed;inset:0;z-index:8;pointer-events:none;text-shadow:0 1px 5px rgba(0,0,0,.9)}.hud-navigation{position:absolute;top:calc(var(--safe-top) + 14px);left:calc(var(--safe-left) + 14px);display:flex;align-items:flex-start;gap:12px;width:calc(100% - var(--safe-left) - var(--safe-right) - 90px);max-width:430px}.minimap-frame{position:relative;flex:0 0 82px;width:82px;height:82px;border:1px solid rgba(239,231,196,.36);background:rgba(16,19,12,.42);box-shadow:0 1px 7px rgba(0,0,0,.15)}#minimap{display:block;width:100%;height:100%;opacity:.92}.map-north{position:absolute;left:5px;top:3px;color:rgba(243,239,216,.73);font:10px "Courier New",monospace}.objective-block{min-width:0;padding-top:2px}.eyebrow{font:700 11px/1.4 "Courier New",monospace;letter-spacing:.08em;color:var(--amber)}#objective{margin-top:5px;font-size:14px;line-height:1.35;font-weight:600}.progress-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:8px;font:11px/1.4 "Courier New",monospace;color:var(--muted)}.progress-row .circuit{display:block;flex:0 0 16px;height:4px;border:1px solid rgba(235,225,178,.6);background:rgba(11,15,8,.4)}.progress-row .circuit.complete{background:#dccb88;border-color:#e8dcaf}.progress-label{flex-basis:100%;margin-top:2px;font-size:10px;letter-spacing:.025em}
.hud-actions{position:absolute;right:calc(var(--safe-right) + 12px);top:calc(var(--safe-top) + 10px);display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:auto}.hud-button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:8px;background:rgba(14,17,10,.24);border:1px solid rgba(241,236,210,.3);border-radius:50%;color:rgba(245,241,221,.9)}.hud-button .icon{width:23px;height:23px}.sound-control{width:38px;height:38px;min-width:38px;position:relative;overflow:hidden;font-size:0!important;color:transparent}.sound-control:before{content:"";display:block;width:21px;height:21px;background:var(--bone);opacity:.8;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4V9Zm12-1c3 3 3 5 0 8m3-11c5 4 5 10 0 14' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}.sound-control[aria-pressed="true"]:after,.sound-control[aria-label="Enable sound"]:after{content:"";position:absolute;width:27px;height:2px;background:var(--bone);transform:rotate(-45deg)}
#crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:19px;width:19px;display:grid;place-items:center}#crosshair:before{content:"";width:3px;height:3px;border-radius:50%;background:#f4f0db;box-shadow:0 0 2px #000}#crosshair span{position:absolute;inset:0;border:1px solid rgba(243,234,200,.8);border-radius:50%;opacity:0;transform:scale(.65);transition:opacity .12s,transform .12s}#crosshair.available span,#crosshair.interactable span,#crosshair.active span{opacity:1;transform:scale(1)}#observed{position:absolute;top:calc(50% - 63px);left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:7px;max-width:85%;color:#e7d59d;font:11px/1.4 "Courier New",monospace;letter-spacing:.035em;text-align:center}#observed .icon{flex:0 0 22px;width:22px;height:22px}.bottom-hud{position:absolute;inset:0;pointer-events:none}#signal-caption{position:absolute;left:calc(var(--safe-left) + 16px);top:calc(var(--safe-top) + 123px);max-width:calc(100% - var(--safe-left) - 64px);font:12px/1.45 "Courier New",monospace;color:#d7d0ac}#signal-caption:empty,#subtitle:empty{display:none}#subtitle{position:absolute;top:calc(var(--safe-top) + 166px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(440px,calc(100% - 32px));padding:7px 10px;background:rgba(10,13,7,.55);font-size:14px;line-height:1.45;text-align:center;color:#f4eed9}
#interaction{position:absolute;top:calc(50% + 27px);left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:8px;max-width:80%;min-height:28px;padding:3px 8px;background:rgba(12,15,9,.5);border:0;color:#f3e8ba;font-size:14px;line-height:1.4;text-align:center;pointer-events:auto;border-radius:1px;text-shadow:0 1px 5px #000}kbd{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:20px;padding:0 4px;border:1px solid rgba(241,235,205,.4);font:11px "Courier New",monospace;color:#e9e4ce;border-radius:2px}#control-hint{position:absolute;bottom:calc(var(--safe-bottom) + 12px);left:20px;display:flex;align-items:center;gap:6px;font:10px "Courier New",monospace;color:rgba(237,230,198,.65)}#control-hint kbd:not(:first-child){margin-left:9px}
#action-progress{position:absolute;top:calc(50% + 66px);left:50%;transform:translateX(-50%);height:3px;width:90px;background:rgba(235,228,195,.22);overflow:hidden}#action-progress-fill{display:block;height:100%;width:100%;background:var(--amber);transform-origin:left center}#pickup-toast{position:absolute;top:calc(var(--safe-top) + 204px);left:50%;transform:translateX(-50%);max-width:90%;padding:7px 13px;border-left:2px solid var(--amber);background:rgba(21,24,13,.72);font-size:14px;line-height:1.35;text-align:center;color:#f1e7bd}
.equipment-dock{position:absolute;left:50%;bottom:calc(var(--safe-bottom) + 15px);transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}#stamina{height:3px;width:120px;background:rgba(235,230,201,.19);opacity:.85;overflow:hidden}#stamina-fill{display:block;width:100%;height:100%;background:#d6d1b8;transform-origin:left center;transition:background-color .15s}#stamina.low #stamina-fill,#stamina.exhausted #stamina-fill{background:#cf9d70}.quickbar{display:flex;gap:5px;pointer-events:auto}.quickslot{position:relative;display:grid;place-items:center;width:51px;height:51px;padding:9px;border:1px solid rgba(239,232,200,.3);background:rgba(16,19,11,.34);border-radius:2px;color:rgba(239,233,204,.7)}.quickslot.selected,.quickslot[aria-pressed="true"]{border-color:rgba(239,228,182,.83);background:rgba(86,79,46,.37);color:#f5e9bc;box-shadow:inset 0 -2px 0 #d6c281}.quickslot.empty{opacity:.48}.quickslot .icon{width:28px;height:28px}.quickslot kbd{position:absolute;top:3px;left:4px;width:auto;min-width:0;height:auto;border:0;padding:0;font-size:9px;color:rgba(241,233,199,.5)}.item-count{position:absolute;right:4px;bottom:3px;font:700 13px "Courier New",monospace;color:var(--bone);line-height:1}.notes-button{display:none}
/* Portrait thumb zones. Right-middle remains clear for aiming. */
#touch-controls{position:fixed;inset:0;z-index:7;pointer-events:none;touch-action:none}#move-zone,#look-zone{position:absolute;top:calc(var(--safe-top) + 100px);bottom:0;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none}#move-zone{left:0;width:45%}#look-zone{left:45%;right:0}#joystick-home,#joystick{width:116px;height:116px;border:1px solid rgba(242,237,214,.32);border-radius:50%;background:rgba(14,18,9,.12);pointer-events:none}#joystick-home{position:absolute;left:calc(var(--safe-left) + 24px);bottom:calc(var(--safe-bottom) + 104px);opacity:.7}#joystick-home:before{content:"";position:absolute;inset:13px;border:1px solid rgba(235,231,207,.08);border-radius:50%}#joystick-home>span,#joystick-thumb{position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px;border:1px solid rgba(242,237,214,.52);border-radius:50%;background:rgba(244,237,206,.13);box-shadow:0 2px 12px rgba(0,0,0,.08)}.stick-mark{position:absolute;display:block;width:5px;height:1px;background:rgba(242,237,214,.4)}.stick-mark.up{top:6px;left:calc(50% - 2px)}.stick-mark.down{bottom:6px;left:calc(50% - 2px)}.stick-mark.left{left:5px;top:50%;transform:rotate(90deg)}.stick-mark.right{right:5px;top:50%;transform:rotate(90deg)}#joystick{position:fixed;z-index:3;left:0;top:0;background:rgba(240,231,197,.055);border-color:rgba(243,236,209,.5)}#touch-controls:has(#joystick:not([hidden])) #joystick-home{opacity:0}
.touch-button{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:52px;height:52px;padding:7px;border:1px solid rgba(241,236,211,.4);border-radius:50%;background:rgba(20,24,14,.24);color:rgba(246,239,216,.85);pointer-events:auto;z-index:4;text-shadow:0 1px 3px #000;touch-action:none}.touch-button .icon{width:26px;height:26px}.touch-button:disabled{opacity:.34}.touch-button[aria-pressed="true"],.touch-button.active{background:rgba(199,184,126,.42);border-color:rgba(239,220,162,.9);color:#fff4cd}.control-name{font:11px/1.1 Arial,sans-serif;letter-spacing:.04em}#touch-run{left:calc(var(--safe-left) + 59px);bottom:calc(var(--safe-bottom) + 239px);width:48px;height:48px;padding:4px}#touch-run .icon{width:23px;height:23px}#touch-turn{left:calc(var(--safe-left) + 37px);bottom:calc(var(--safe-bottom) + 40px);width:45px;height:45px}#touch-turn .icon{width:25px;height:25px}#touch-light{right:calc(var(--safe-right) + 104px);bottom:calc(var(--safe-bottom) + 123px);width:48px;height:48px}#touch-crouch{right:calc(var(--safe-right) + 26px);bottom:calc(var(--safe-bottom) + 78px);width:52px;height:52px}#touch-use{right:calc(var(--safe-right) + 23px);bottom:calc(var(--safe-bottom) + 154px);width:76px;height:76px;padding:10px;background:rgba(190,176,120,.22);border-color:rgba(244,232,187,.74);color:#fbefc7}#touch-use .icon{width:31px;height:31px}#touch-use-label{display:block;width:100%;font-size:14px;font-weight:700;line-height:1.15;text-align:center;letter-spacing:.035em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#touch-use:disabled{background:rgba(19,22,13,.15);border-color:rgba(239,232,200,.4);color:#e4dcc4}.touch #interaction{pointer-events:none}.touch #interaction kbd,.touch #control-hint,.touch .quickslot kbd{display:none}
/* Pausing and found documents are in-game overlays. */
.modal-screen{display:flex;align-items:center;justify-content:center;padding:calc(var(--safe-top) + 22px) calc(var(--safe-right) + 24px) calc(var(--safe-bottom) + 22px) calc(var(--safe-left) + 24px);background:rgba(6,9,4,.78);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.panel{width:min(100%,370px);max-height:100%;padding:12px 0;overflow-y:auto;scrollbar-width:thin;touch-action:pan-y}.panel h2{margin:0 0 24px;font-size:28px;font-weight:500;line-height:1.15;letter-spacing:.035em}.panel>.button{margin:9px 0}.pause-secondary{display:flex;justify-content:space-between;gap:16px;margin-top:5px}.panel>.text-button{display:block;margin:12px auto 0;text-align:center}.panel p{font-size:16px;line-height:1.55;color:#cbc8b5;margin:0 0 22px}.panel .panel-footnote{margin:12px 0 0;font-size:12px;text-align:center;color:#969782}.settings-panel h2{margin-bottom:16px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:58px;padding:11px 0;border-top:1px solid rgba(230,225,194,.13);font-size:14px;line-height:1.4}.setting-row>span{min-width:0}.setting-row small{display:block;color:#989e89;font-size:12px;line-height:1.5;margin-top:3px}.setting-row input[type=range]{width:42%;min-width:100px;max-width:150px;accent-color:#d6c68f;touch-action:pan-x}.setting-row select{appearance:none;-webkit-appearance:none;max-width:42%;min-width:115px;padding:9px 24px 9px 10px;border:1px solid #6a6b56;border-radius:2px;background:#282c1e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m2 2 5 4 5-4' fill='none' stroke='%23ded5ae' stroke-width='1.5'/%3E%3C/svg%3E") right 7px center/12px 7px no-repeat;color:#e5e0c6;font-size:14px}.setting-row input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 42px;width:42px;height:24px;border:1px solid #747764;border-radius:14px;background:#2a2f20;margin:0;cursor:pointer}.setting-row input[type=checkbox]:before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#90947e;border-radius:50%}.setting-row input[type=checkbox]:checked{background:#7d784e;border-color:#bcb17b}.setting-row input[type=checkbox]:checked:before{left:21px;background:#f0e5b6}.settings-panel>.button:first-of-type{margin-top:20px}.build-number{text-align:center;font:11px "Courier New",monospace;letter-spacing:.06em;color:#7f846f;margin-top:20px}
.note-screen{background:rgba(5,7,3,.45);align-items:flex-end}.paper{position:relative;width:min(100%,420px);max-height:100%;overflow-y:auto;padding:34px 27px 24px;background:linear-gradient(100deg,#d8cfad,#e4dcbc 45%,#d7ceaa);color:#343425;box-shadow:0 8px 50px rgba(0,0,0,.48);transform:rotate(-.7deg);touch-action:pan-y;scrollbar-width:thin}.paper-clip{position:absolute;top:0;left:50%;transform:translateX(-50%);width:74px;height:18px;border:3px solid #707267;border-top:0;background:#949387;box-shadow:0 3px 2px rgba(0,0,0,.16)}.paper-meta{display:flex;justify-content:space-between;gap:20px;padding-bottom:13px;border-bottom:1px solid rgba(64,62,37,.28);font:11px/1.4 "Courier New",monospace;letter-spacing:.06em;color:#737054}.paper h2{font:700 25px/1.13 "Courier New",monospace;margin:20px 0}#note-content{font:15px/1.55 "Courier New",monospace}#note-content p{margin:0 0 16px}#note-content strong{font-weight:700;color:#282b1c}.handwritten{font-family:Georgia,serif;font-size:18px;font-style:italic;color:#5e5540;transform:rotate(-1deg);padding:5px 0}.paper-footer{border-top:1px solid rgba(64,62,37,.25);margin:16px 0;padding-top:10px;font:10px "Courier New",monospace;letter-spacing:.1em;color:#837b5d}.end-panel .eyebrow{margin-bottom:13px}#run-stats{display:flex;justify-content:space-between;gap:14px;margin:20px 0 26px;color:#bdbda7;font-size:14px;line-height:1.5}#run-stats strong{display:block;font:28px "Courier New",monospace;color:var(--bone)}#run-stats span{display:block;font:10px/1.5 "Courier New",monospace;margin-top:4px}.credits-panel dl{margin:0 0 25px;font-size:14px;line-height:1.5}.credits-panel dt{color:#d6c895;font-weight:600;margin-top:17px}.credits-panel dd{margin:4px 0;color:#b7b9a4}.noscript{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:30px;background:#12160e;font-size:18px;text-align:center}.reduced-motion .grain{display:none}.reduced-motion .paper{transform:none}
/* Short portrait phones retain the same controls and generous thumb spacing. */
@media(max-width:360px){.hud-navigation{gap:9px;width:calc(100% - var(--safe-left) - var(--safe-right) - 77px)}.minimap-frame{width:68px;height:68px;flex-basis:68px}#objective{font-size:13px}.objective-block .eyebrow{font-size:10px}#joystick-home{left:17px}#touch-run{left:52px}#touch-turn{left:28px}#touch-use{right:17px}#touch-crouch{right:21px}#touch-light{right:96px}.quickslot{width:47px;height:47px}.quickbar{gap:4px}}
@media(max-height:700px) and (orientation:portrait){.menu-screen{padding-bottom:calc(var(--safe-bottom) + 42px)}.game-start h1{margin-bottom:20px}.minimap-frame{width:70px;height:70px;flex-basis:70px}.hud-navigation{gap:10px}#signal-caption{top:calc(var(--safe-top) + 117px);font-size:11px}#subtitle{top:calc(var(--safe-top) + 157px);font-size:13px}#pickup-toast{top:calc(var(--safe-top) + 190px)}#touch-run{bottom:calc(var(--safe-bottom) + 224px)}#joystick-home{bottom:calc(var(--safe-bottom) + 96px);width:110px;height:110px}#touch-use{bottom:calc(var(--safe-bottom) + 145px)}#touch-light{bottom:calc(var(--safe-bottom) + 116px)}#touch-crouch{bottom:calc(var(--safe-bottom) + 73px)}.modal-screen{padding-top:calc(var(--safe-top) + 15px);padding-bottom:calc(var(--safe-bottom) + 15px)}.panel h2{margin-bottom:18px}.setting-row{min-height:51px;padding:9px 0}.paper{padding:29px 23px 20px}#note-content{font-size:14px}}
/* Rotation is supported, never required. */
@media(orientation:landscape) and (max-height:600px){.menu-screen{padding-bottom:calc(var(--safe-bottom) + 24px)}.game-start{width:240px}.game-start h1{font-size:30px;margin-bottom:16px}.menu-actions{gap:6px}.menu-actions .button{min-height:43px;padding:9px 16px}.menu-options{margin-top:2px}.menu-options .text-button{min-height:36px}.hud-navigation{top:calc(var(--safe-top) + 10px);left:calc(var(--safe-left) + 16px);max-width:350px}.minimap-frame{width:60px;height:60px;flex-basis:60px}.hud-actions{flex-direction:row;top:calc(var(--safe-top) + 8px);right:calc(var(--safe-right) + 12px)}.sound-control{order:-1}.objective-block .eyebrow{font-size:10px}#objective{margin-top:3px;font-size:14px}.progress-row{margin-top:5px;flex-wrap:nowrap}.progress-label{flex-basis:auto;font-size:10px;margin-left:4px}#signal-caption{top:calc(var(--safe-top) + 84px);font-size:11px;max-width:330px}#subtitle{top:calc(var(--safe-top) + 114px);max-width:45%;font-size:13px}#pickup-toast{top:calc(var(--safe-top) + 158px);font-size:13px}#move-zone,#look-zone{top:calc(var(--safe-top) + 75px)}#joystick-home{left:calc(var(--safe-left) + 28px);bottom:calc(var(--safe-bottom) + 38px);width:108px;height:108px}#joystick{width:108px;height:108px}#touch-run{left:calc(var(--safe-left) + 62px);bottom:calc(var(--safe-bottom) + 163px);width:44px;height:44px}#touch-turn{left:calc(var(--safe-left) + 154px);bottom:calc(var(--safe-bottom) + 28px);width:42px;height:42px}#touch-use{right:calc(var(--safe-right) + 24px);bottom:calc(var(--safe-bottom) + 70px);width:70px;height:70px}#touch-crouch{right:calc(var(--safe-right) + 112px);bottom:calc(var(--safe-bottom) + 24px);width:48px;height:48px}#touch-light{right:calc(var(--safe-right) + 113px);bottom:calc(var(--safe-bottom) + 98px);width:45px;height:45px}.equipment-dock{bottom:calc(var(--safe-bottom) + 12px);gap:6px}.quickslot{width:45px;height:45px}.quickslot .icon{width:25px;height:25px}#control-hint{display:none}.modal-screen{padding:16px max(30px,var(--safe-right)) 16px max(30px,var(--safe-left))}.panel{max-width:380px}.panel h2{font-size:24px;margin-bottom:16px}.panel>.button{min-height:43px;margin:7px 0;padding:9px 15px}.panel p{font-size:14px;margin-bottom:15px}.setting-row{min-height:48px;padding:9px 0}.settings-panel>.button:first-of-type{margin-top:12px}.build-number{margin-top:12px}.paper{max-width:490px;padding:28px 28px 20px}#note-content{font-size:14px}}
@media(prefers-reduced-motion:reduce){.grain{display:none}.paper{transform:none}*,*:before,*:after{scroll-behavior:auto!important;transition-duration:0s!important}}

/* Two-player room controls stay inside the game's pause/start overlays. */
.coop-panel-content h2{font-size:25px}.coop-name-label{display:block;margin:0 0 17px;font:12px/1.4 "Courier New",monospace;letter-spacing:.08em;color:#c5c09f}.coop-name-label input{display:block;width:100%;min-height:46px;margin-top:7px;padding:10px 12px;border:1px solid rgba(237,228,191,.35);border-radius:2px;background:rgba(14,18,8,.65);color:var(--bone);font:16px Arial,sans-serif;letter-spacing:0;touch-action:manipulation}.coop-panel-content #coop-message{min-height:24px;margin:16px 0;font-size:14px;line-height:1.5;color:#c5c7b0}#coop-link{display:block;width:100%;min-height:43px;padding:10px;margin:12px 0;border:1px solid rgba(226,220,187,.24);background:rgba(16,20,10,.7);color:#d4c899;border-radius:2px;font:12px/1.4 "Courier New",monospace;user-select:all;-webkit-user-select:all;touch-action:manipulation}.coop-hud{position:absolute;left:50%;bottom:calc(var(--safe-bottom) + 88px);transform:translateX(-50%);max-width:46%;display:flex;align-items:center;flex-direction:column;gap:3px;text-align:center;color:#ded9bd;font:11px/1.25 "Courier New",monospace;pointer-events:none}#coop-status{color:#c0cfad}#coop-status[data-mode="offline"],#coop-status[data-mode="connecting"]{color:#d7bd8b}#partner-presence{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b9bda5}
@media(orientation:landscape) and (max-height:600px){.coop-hud{bottom:calc(var(--safe-bottom) + 76px);max-width:35%;font-size:10px}.coop-panel-content{max-width:360px}.coop-name-label{margin-bottom:12px}.coop-panel-content #coop-message{margin:10px 0}}

/* Combat feedback is part of the game view, clear of both thumb controls. */
.minimap-stack{flex:0 0 82px;width:82px}.minimap-stack .minimap-frame{width:100%;height:82px}.health-readout{display:flex;align-items:center;gap:4px;height:15px;margin-top:4px;font:10px/1 "Courier New",monospace;color:#e6ddbd}.health-label{font-size:8px;letter-spacing:.025em;color:#c8c2a6}.health-meter{height:3px;flex:1;background:rgba(237,228,193,.2);overflow:hidden}#health-fill{display:block;height:100%;width:100%;background:#c9b98a;transform-origin:left center}#health-value{min-width:19px;text-align:right;font-weight:700}.health-readout.low #health-fill{background:#db7f67}.health-readout.low #health-value{color:#f2ac8b}
#damage-wash{position:fixed;inset:0;z-index:5;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 50% 46%,transparent 38%,rgba(104,19,9,.2) 72%,rgba(125,25,10,.7));box-shadow:inset 0 0 12vw rgba(139,34,14,.45)}#hit-marker{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:28px;height:28px;opacity:0;pointer-events:none;filter:drop-shadow(0 1px 1px #15140d)}#hit-marker.active{opacity:1}#hit-marker i{position:absolute;width:8px;height:2px;background:#fff2c8}#hit-marker i:nth-child(1){top:5px;left:1px;transform:rotate(45deg)}#hit-marker i:nth-child(2){top:5px;right:1px;transform:rotate(-45deg)}#hit-marker i:nth-child(3){bottom:5px;left:1px;transform:rotate(-45deg)}#hit-marker i:nth-child(4){bottom:5px;right:1px;transform:rotate(45deg)}
.equipment-dock{gap:6px}#stamina{width:96px}.quickbar{gap:5px}.quickslot{width:46px;height:46px;padding:9px}.quickslot .icon{width:27px;height:27px}.weapon-readout{display:flex;align-items:baseline;gap:8px;width:100%;min-height:17px;font:10px/1.3 "Courier New",monospace;letter-spacing:.035em;color:#e2d8b8}#weapon-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#ammo-count{margin-left:auto;flex-shrink:0;font-size:15px;font-weight:700;letter-spacing:0;font-variant-numeric:tabular-nums;color:#f4e6ba}#reload-status{margin-left:auto;font-size:9px;color:#cbb67f;white-space:nowrap}#reload-status:empty,#ammo-count:empty{display:none}.coop-hud{bottom:calc(var(--safe-bottom) + 114px)}
/* Five slots fit 320px portrait. Action buttons sit above the equipment row. */
#joystick-home{bottom:calc(var(--safe-bottom) + 150px)}#touch-run{bottom:calc(var(--safe-bottom) + 284px)}#touch-turn{bottom:calc(var(--safe-bottom) + 100px)}#touch-light{right:calc(var(--safe-right) + 110px);bottom:calc(var(--safe-bottom) + 108px);width:46px;height:46px}#touch-crouch{bottom:calc(var(--safe-bottom) + 102px);width:50px;height:50px}#touch-use{bottom:calc(var(--safe-bottom) + 184px)}#touch-fire{right:calc(var(--safe-right) + 21px);bottom:calc(var(--safe-bottom) + 184px);width:76px;height:76px;border-color:rgba(247,225,175,.8);background:rgba(128,95,58,.24);color:#ffedc6}#touch-fire .icon{width:31px;height:31px}#touch-fire .control-name{font-size:12px;font-weight:700;letter-spacing:.06em}#touch-fire.active{background:rgba(202,156,89,.48);border-color:#ffe4a6}#touch-reload{right:calc(var(--safe-right) + 35px);bottom:calc(var(--safe-bottom) + 279px);width:48px;height:48px}#touch-reload .icon{width:25px;height:25px}
#touch-controls:has(#touch-fire:not([hidden])) #touch-use{right:calc(var(--safe-right) + 111px);bottom:calc(var(--safe-bottom) + 181px);width:52px;height:52px;padding:6px}#touch-controls:has(#touch-fire:not([hidden])) #touch-use .icon{width:23px;height:23px}#touch-controls:has(#touch-fire:not([hidden])) #touch-use-label{font-size:10px}.touch .coop-hud{left:38%;bottom:calc(var(--safe-bottom) + 111px);max-width:23%;font-size:9px}.touch #control-hint{display:none}
@media(max-width:360px){.minimap-stack{width:68px;flex-basis:68px}.minimap-stack .minimap-frame{height:68px}.quickslot{width:44px;height:44px;padding:8px}.quickbar{gap:4px}#touch-use{right:calc(var(--safe-right) + 17px)}#touch-fire{right:calc(var(--safe-right) + 17px)}#touch-crouch{right:calc(var(--safe-right) + 21px)}#touch-reload{right:calc(var(--safe-right) + 31px)}}
@media(max-height:700px) and (orientation:portrait){.minimap-stack{width:70px;flex-basis:70px}.minimap-stack .minimap-frame{height:70px}#joystick-home{width:110px;height:110px}#touch-run{bottom:calc(var(--safe-bottom) + 278px)}}
@media(orientation:landscape) and (max-height:600px){.minimap-stack{width:60px;flex-basis:60px}.minimap-stack .minimap-frame{height:60px}.health-readout{height:12px;margin-top:3px;font-size:9px}.health-label{font-size:7px}.health-readout #health-value{min-width:17px}.equipment-dock{gap:6px}.quickslot{width:42px;height:42px;padding:8px}.quickbar{gap:4px}.quickslot .icon{width:25px;height:25px}#joystick-home{left:calc(var(--safe-left) + 28px);bottom:calc(var(--safe-bottom) + 42px);width:108px;height:108px}#touch-run{left:calc(var(--safe-left) + 62px);bottom:calc(var(--safe-bottom) + 168px);width:44px;height:44px}#touch-turn{left:calc(var(--safe-left) + 153px);bottom:calc(var(--safe-bottom) + 102px);width:42px;height:42px}#touch-light{right:calc(var(--safe-right) + 176px);bottom:calc(var(--safe-bottom) + 108px);width:42px;height:42px}#touch-crouch{right:calc(var(--safe-right) + 112px);bottom:calc(var(--safe-bottom) + 28px);width:46px;height:46px}#touch-use,#touch-fire{right:calc(var(--safe-right) + 24px);bottom:calc(var(--safe-bottom) + 90px);width:72px;height:72px}#touch-reload{right:calc(var(--safe-right) + 37px);bottom:calc(var(--safe-bottom) + 180px);width:44px;height:44px}#touch-controls:has(#touch-fire:not([hidden])) #touch-use{right:calc(var(--safe-right) + 112px);bottom:calc(var(--safe-bottom) + 116px);width:48px;height:48px}.coop-hud,.touch .coop-hud{left:50%;bottom:calc(var(--safe-bottom) + 101px);max-width:27%;font-size:9px}}
