#game-root{--g-amber:#eab66c;--g-ink:#091014;--g-line:rgba(214,230,235,.16);--g-soft:#a4b1b7;position:fixed;inset:0;z-index:1000;background:#080d10;color:#edf1ed;font-family:Manrope,Arial,sans-serif;font-size:14px;overflow:hidden;isolation:isolate;touch-action:none}#game-root[hidden],#game-root [hidden]{display:none!important}body.game-active{overflow:hidden!important}#game-root *{box-sizing:border-box}#game-root button,#game-root input,#game-root select{font:inherit}#game-root button{cursor:pointer;color:inherit}#game-root button:focus-visible,#game-root input:focus-visible,#game-root select:focus-visible,#game-root summary:focus-visible{outline:2px solid var(--g-amber);outline-offset:4px}#game-root button:disabled{opacity:.4;cursor:default}#game-root svg{width:22px;height:22px;flex-shrink:0}#g-viewport,.g-canvas,.g-vignette,#g-danger{position:absolute;inset:0;width:100%;height:100%}.g-canvas{display:block;outline:none;touch-action:none}.g-vignette{pointer-events:none;background:radial-gradient(ellipse at 50% 46%,transparent 35%,rgba(0,5,9,.5) 100%),linear-gradient(to bottom,rgba(0,6,10,.65),transparent 25%,transparent 70%,rgba(0,6,10,.65));z-index:1}#g-danger{z-index:2;pointer-events:none;opacity:0;box-shadow:inset 0 0 100px 25px #a22f19;transition:opacity .2s}.g-hud{position:absolute;z-index:5;top:max(28px,env(safe-area-inset-top));left:max(32px,env(safe-area-inset-left));right:max(32px,env(safe-area-inset-right));display:flex;align-items:flex-start;justify-content:space-between;gap:16px;pointer-events:none}.g-location{display:grid;gap:6px;min-width:180px}.g-eyebrow{font-size:10px;letter-spacing:.2em;font-weight:600;color:var(--g-amber)}.g-location strong{font-weight:500;font-size:18px}.g-location #g-save{font-size:10px;color:#9cb6b7;min-height:12px}.g-clock{position:absolute;left:50%;transform:translateX(-50%);text-align:center}.g-clock>span{display:block;font-size:8px;letter-spacing:.22em;color:#c1ccce;margin-bottom:4px}.g-clock strong{font-family:'Barlow Condensed',Arial,sans-serif;font-size:36px;letter-spacing:.08em;font-variant-numeric:tabular-nums;font-weight:600}.g-clock .urgent{color:#ff8a71}.g-tools{display:flex;gap:8px;pointer-events:auto}.g-tools button,.g-equipment button,.g-touch-actions button,.g-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--g-line);border-radius:50%;background:rgba(8,17,22,.66);backdrop-filter:blur(8px);transition:background .2s,border-color .2s}.g-tools button:hover,.g-equipment button:hover,.g-icon:hover{border-color:var(--g-amber);background:#223037}.g-objective{position:absolute;z-index:4;top:124px;left:max(32px,env(safe-area-inset-left));border-left:1px solid var(--g-amber);padding-left:15px;max-width:350px;pointer-events:none}.g-objective>span:first-child{color:var(--g-amber);font-size:9px;letter-spacing:.15em}.g-objective p{font-size:13px;line-height:1.5;margin:6px 0;color:#f1efdf}.g-objective #g-distance{font-size:11px;color:#97afb9;font-variant-numeric:tabular-nums}.g-crosshair{position:absolute;z-index:3;top:50%;left:50%;width:4px;height:4px;border-radius:50%;background:#e2e8d8;box-shadow:0 0 4px #000;transform:translate(-50%,-50%);pointer-events:none}.g-interact{position:absolute;z-index:5;left:50%;top:61%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;border:1px solid rgba(234,182,108,.6);border-radius:4px;padding:9px 14px;background:rgba(7,17,21,.9);box-shadow:0 10px 30px #0004;max-width:calc(100% - 40px);font-size:13px;white-space:nowrap}.g-interact>svg{display:none}.g-key,kbd{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 5px;border:1px solid #ffffff35;border-radius:3px;color:#e4b975;background:#172026;font-size:11px;font-family:inherit}.g-caption{position:absolute;z-index:6;left:50%;bottom:132px;transform:translateX(-50%) translateY(8px);width:max-content;max-width:min(600px,75%);text-align:center;line-height:1.6;font-size:15px;padding:10px 18px;background:#071116d9;border-radius:3px;opacity:0;pointer-events:none;transition:opacity .3s,transform .3s}.g-caption>span{display:block;font-size:9px;letter-spacing:.18em;color:var(--g-amber);margin-bottom:4px}.g-caption.show,.g-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.g-toast{position:absolute;z-index:30;left:50%;top:100px;transform:translateX(-50%) translateY(-8px);padding:11px 17px;border:1px solid #ffffff20;background:#0c1a20ef;max-width:calc(100% - 40px);font-size:12px;line-height:1.5;text-align:center;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}.g-bottom{position:absolute;z-index:4;bottom:max(26px,env(safe-area-inset-bottom));left:max(32px,env(safe-area-inset-left));right:max(32px,env(safe-area-inset-right));display:flex;align-items:flex-end;justify-content:space-between;gap:20px;pointer-events:none}.g-condition{width:185px}.g-condition>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:10px;color:#a4b9bb}.g-condition #g-visibility{display:flex;align-items:center;gap:6px}.g-condition svg{width:17px;height:17px}.g-condition .danger{color:#ff9d7d}.g-condition #g-stance{font-size:8px}.g-stamina{height:2px;background:#ffffff20;margin-top:9px}.g-stamina i{height:100%;width:100%;display:block;background:#b7c9c6;transition:width .15s}.g-control-hints{display:flex;gap:20px;color:#92a5ab;font-size:9px;align-self:flex-end;padding-bottom:9px}.g-control-hints kbd{height:22px;min-width:22px;font-size:9px;margin-right:5px;background:#0c17208f}.g-equipment{display:flex;gap:9px;pointer-events:auto}.g-equipment button[aria-pressed=true],.g-touch-actions button[aria-pressed=true]{color:var(--g-amber);border-color:var(--g-amber)}.g-touch{display:none}.g-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:22px;background:radial-gradient(ellipse at center,#15242a,#050a0d 65%);padding:30px}.g-loading-mark{font-family:'Barlow Condensed',Arial,sans-serif;font-size:110px;letter-spacing:-.05em;color:var(--g-amber);line-height:1}.g-loading-mark>span{font-weight:300;color:#ebefea}.g-loading p{font-size:10px;letter-spacing:.28em;color:#cad2cd}.g-loading small{font-size:11px;color:#839b9f}.g-load-track{height:1px;width:180px;background:#ffffff16;overflow:hidden}.g-load-track i{width:70px;display:block;height:1px;background:var(--g-amber);animation:gload 1.4s ease-in-out infinite}.g-error h2{font-size:32px;margin:0}.g-error p{max-width:400px;letter-spacing:0;line-height:1.7;font-size:14px}.g-error button{min-width:200px}.g-modal{position:absolute;inset:0;z-index:20;background:#02090cbb;backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;padding:28px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.g-panel{position:relative;width:min(100%,480px);max-height:calc(100dvh - 56px);overflow:auto;padding:38px;background:linear-gradient(135deg,#132027,#0b1318);border:1px solid #b4c9ca26;box-shadow:0 30px 120px #0009;scrollbar-width:thin;scrollbar-color:#52636a #111b20;touch-action:pan-y}.g-panel-wide{width:min(100%,760px)}.g-panel h2{font-family:'Barlow Condensed',Arial,sans-serif;font-weight:600;font-size:46px;line-height:1.06;letter-spacing:-.015em;margin:18px 0 22px;color:#f0eee4}.g-panel p{color:#b1bec2;font-size:13px;line-height:1.85;margin:14px 0}.g-panel blockquote{margin:22px 0;padding-left:17px;border-left:1px solid var(--g-amber);font-size:16px;line-height:1.7;color:#e6cfab}.g-panel-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.g-icon{width:34px;height:34px}.g-icon svg{width:17px;height:17px}.g-primary{display:flex;justify-content:space-between;align-items:center;gap:15px;width:100%;min-height:52px;padding:14px 20px;margin-top:20px;border:1px solid var(--g-amber);color:#11181a!important;background:var(--g-amber);font-size:13px!important;font-weight:600;transition:background .2s,transform .2s}.g-primary:hover{background:#f5d3a1;transform:translateY(-1px)}.g-primary svg{width:19px!important;height:19px!important}.g-text{display:block;text-align:center;border:0;background:transparent;font-size:12px!important;margin:15px auto 0;padding:10px;color:#9eb0b7!important;min-height:40px}.g-text:hover{color:#e5bd85!important}.g-menu{display:grid;gap:0;margin-bottom:24px}.g-menu>button{display:flex;align-items:center;justify-content:space-between;min-height:46px;text-align:left;border:0;border-bottom:1px solid var(--g-line);padding:12px 0;background:transparent;font-size:12px}.g-menu>button.g-primary{padding:14px 20px;margin:0 0 10px;border:1px solid var(--g-amber);background:var(--g-amber)}.g-menu>button>svg{width:17px;height:17px}.g-menu>button:hover:not(.g-primary){color:var(--g-amber)}.g-muted{color:#859ba5!important;font-size:11px!important;line-height:1.6}.g-start-controls{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 0;border-block:1px solid var(--g-line);font-size:11px;line-height:1.8;color:#b7c6c8;margin:20px 0}.g-start-controls kbd{margin-right:5px}.g-settings{display:grid;gap:17px}.g-field{display:grid;gap:10px;font-size:12px;color:#c0cccf;margin:10px 0}.g-field input[type=range]{width:100%;accent-color:var(--g-amber);min-height:24px}.g-field select,.g-field input[type=text]{background:#0c151b;color:#ecebe1;border:1px solid #61707965;min-height:44px;padding:10px 12px;width:100%;border-radius:0}.g-check{display:flex;align-items:center;gap:10px;font-size:12px;color:#b9c8cc;min-height:24px}.g-check input{accent-color:var(--g-amber);width:17px;height:17px}.g-key-settings{font-size:12px;border-block:1px solid var(--g-line);margin-top:20px;padding:15px 0}.g-key-settings summary{cursor:pointer}.g-key-settings>div{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;margin-top:16px}.g-key-settings label{display:flex;justify-content:space-between;align-items:center;font-size:10px;gap:8px}.g-keybind{min-width:43px;min-height:32px;border:1px solid var(--g-line);background:#16232b;font-size:10px!important}.g-map-wrap{border:1px solid var(--g-line);margin:20px 0 12px;background:#091419}.g-map{display:block;width:100%!important;height:auto!important;max-height:48dvh}.g-map-legend{display:flex;gap:22px;justify-content:center;font-size:10px;color:var(--g-amber)}.g-map-legend>span:first-child{color:#82dad5}.g-code-slips{display:flex;gap:10px;margin:20px 0}.g-code-slips>div{flex:1;background:#1c2a30;border:1px solid var(--g-line);padding:16px 8px;text-align:center}.g-code-slips small{display:block;color:#91a3aa;font-size:8px;letter-spacing:.16em}.g-code-slips strong{font-family:'Barlow Condensed',sans-serif;font-size:44px;font-weight:600;color:var(--g-amber)}.g-journal-goal{border-left:1px solid var(--g-amber);padding-left:14px}.g-journal-goal p{margin:5px 0}.g-inventory{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.g-inventory span{font-size:10px;background:#b8c9c810;border:1px solid var(--g-line);padding:6px 9px}.g-notes details{padding:14px 0;border-bottom:1px solid var(--g-line)}.g-notes summary{font-size:12px;cursor:pointer;color:#d7e0dc}.g-notes p{font-size:12px}.g-achievements{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px;font-size:11px;color:#b8c9ce}.g-achievements .g-eyebrow{width:100%}.g-note-text{font-size:16px!important;line-height:1.9!important}.g-switches{display:flex;gap:12px;margin:28px 0}.g-switches button{flex:1;display:flex;align-items:center;flex-direction:column;gap:15px;border:1px solid var(--g-line);background:#0b161c;padding:18px 6px;min-height:150px}.g-switches button>span{font-size:15px}.g-switches i{display:block;width:24px;height:48px;background:#26363d;border:1px solid #647279;border-radius:3px;position:relative}.g-switches i:after{content:'';position:absolute;left:3px;right:3px;bottom:3px;height:18px;background:#7e9197;border-radius:1px;transition:transform .2s}.g-switches small{font-size:8px;letter-spacing:.14em;color:#7e9197}.g-switches [aria-pressed=true] i:after{transform:translateY(-22px);background:var(--g-amber)}.g-switches [aria-pressed=true] small{color:var(--g-amber)}.g-flight-line{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;background:#050b0e;padding:15px;font-size:10px;border:1px solid var(--g-line)}.g-flight-line strong{color:#e99b7c;font-size:9px}#g-code-input{text-align:center;letter-spacing:.5em;font-size:32px!important;color:var(--g-amber);min-height:64px}#g-code-error{color:#ff9d7d;font-size:11px}.g-ending-stats{display:flex;gap:30px;margin:28px 0;padding:20px 0;border-block:1px solid var(--g-line)}.g-ending-stats>span{flex:1;color:var(--g-amber);font-size:26px;font-family:'Barlow Condensed',sans-serif}.g-ending-stats small{display:block;font-family:Manrope,sans-serif;color:#839ca8;font-size:8px;letter-spacing:.1em;margin-top:6px}.g-rotate{position:absolute;inset:0;z-index:50;background:radial-gradient(ellipse at center,#192b31,#080e12);display:none;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:16px;padding:25px}.g-rotate>span{width:68px;height:68px;display:grid;place-items:center;border:1px solid #eab66c50;border-radius:50%;color:var(--g-amber);margin-bottom:15px}.g-rotate svg{width:30px!important;height:30px!important}.g-rotate h2{font-family:'Barlow Condensed',sans-serif;font-size:40px;margin:0}.g-rotate p{font-size:13px;color:#9cafb8;margin:0}.is-paused .g-hud,.is-paused .g-bottom,.is-paused .g-crosshair,.is-paused .g-objective,.is-paused .g-touch,.is-paused .g-interact{visibility:hidden}.g-cctv-window{height:180px;border:1px solid #bdd1c936;margin:15px 0;display:flex;justify-content:space-between;align-items:flex-start;padding:12px;background:transparent}.g-cctv-window span{font-size:9px;letter-spacing:.15em;text-shadow:0 1px 4px #000}.g-rec{color:#efad8a}.g-cam-buttons{display:flex;gap:8px}.g-cam-buttons button{flex:1;border:1px solid var(--g-line);background:#0d191f;padding:12px 5px;font-size:11px}.is-cctv .g-modal{background:#02090c55;backdrop-filter:none}.is-cctv .g-panel{background:linear-gradient(#0e1c22ee,#0e1c2266 25%,#0e1c2210 50%,#0e1c22ee 70%)}.is-cctv .g-vignette{background:repeating-linear-gradient(0deg,#0002 0px,#0002 1px,transparent 1px,transparent 3px)}
@keyframes gload{0%{transform:translateX(-70px)}100%{transform:translateX(180px)}}
@media(pointer:coarse){.g-touch{display:block}.g-control-hints{display:none}.g-touch #g-joystick{position:absolute;z-index:7;bottom:max(34px,env(safe-area-inset-bottom));left:max(35px,env(safe-area-inset-left));width:112px;height:112px;border-radius:50%;background:#a9c1c20c;border:1px solid #d9e7e52b;touch-action:none;display:grid;place-items:center;box-shadow:inset 0 0 30px #0003}.g-touch #g-stick{width:44px;height:44px;pointer-events:none;border:1px solid #c1d0ce5c;border-radius:50%;background:#b1c4c31a}.g-touch-actions{position:absolute;z-index:7;right:max(30px,env(safe-area-inset-right));bottom:max(36px,env(safe-area-inset-bottom));display:flex;gap:13px;align-items:center}.g-touch-actions button{width:50px;height:50px;touch-action:none}.g-touch-actions [data-g=interact]{width:64px;height:64px;border-color:#eab66c8f;color:var(--g-amber);background:#1d272bbd}.g-bottom{bottom:20px}.g-condition{position:fixed;bottom:14px;left:40px;width:105px}.g-condition #g-stance{display:none}.g-condition>div:first-child{font-size:9px}.g-equipment{position:fixed;right:30px;top:92px}.g-equipment button{width:38px;height:38px}.g-interact .g-key{display:none}.g-interact>svg{display:block;width:17px!important;height:17px!important}.g-interact{top:52%;max-width:55%;font-size:11px}.g-caption{bottom:40px;max-width:46%;font-size:12px}.g-caption>span{font-size:8px}.g-objective{max-width:240px}.g-toast{top:78px}.g-canvas{cursor:default}}
@media(pointer:coarse) and (orientation:portrait){.g-rotate{display:flex}}
@media(max-height:600px){.g-hud{top:max(15px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right))}.g-location{min-width:130px;gap:4px}.g-location strong{font-size:13px}.g-location .g-eyebrow{font-size:8px}.g-clock strong{font-size:27px}.g-clock>span{font-size:7px}.g-tools{gap:6px}.g-tools button{width:36px;height:36px}.g-tools svg{width:18px!important;height:18px!important}.g-objective{top:82px;left:20px;max-width:220px;padding-left:10px}.g-objective p{font-size:11px;margin:4px 0}.g-objective #g-distance{font-size:9px}.g-objective #g-step{font-size:8px}.g-equipment{top:64px;right:20px;gap:6px}.g-equipment button{width:32px;height:32px}.g-equipment svg{width:17px!important;height:17px!important}.g-touch #g-joystick{width:92px;height:92px;bottom:30px;left:24px}.g-touch #g-stick{width:36px;height:36px}.g-touch-actions{right:20px;bottom:25px;gap:10px}.g-touch-actions button{width:44px;height:44px}.g-touch-actions [data-g=interact]{width:54px;height:54px}.g-condition{left:23px;width:94px;bottom:10px}.g-caption{bottom:30px;font-size:11px;padding:8px 12px}.g-caption>span{font-size:7px}.g-modal{padding:14px}.g-panel{max-height:calc(100dvh - 28px);padding:24px;width:min(100%,520px)}.g-panel-wide{width:min(100%,700px)}.g-panel h2{font-size:35px;margin:12px 0 16px}.g-panel p{font-size:12px;margin:12px 0}.g-panel blockquote{font-size:14px;margin:16px 0}.g-primary{min-height:45px;margin-top:16px;font-size:12px!important}.g-menu>button{min-height:40px;padding:9px 0}.g-menu{margin-bottom:12px}.g-start-controls{padding:12px 0;margin:15px 0}.g-map{max-height:42dvh}.g-panel-top .g-icon{width:30px;height:30px}.g-toast{top:64px;font-size:11px}.g-cctv-window{height:120px}.g-settings{grid-template-columns:1fr 1fr;gap:10px 20px}.g-switches{margin:15px 0}.g-switches button{min-height:120px;gap:8px;padding:12px}.g-loading-mark{font-size:80px}}
@media(max-width:700px) and (min-height:601px){.g-control-hints{display:none}.g-hud{left:20px;right:20px}.g-location{min-width:100px}.g-location strong{font-size:13px}.g-location .g-eyebrow{font-size:8px}.g-tools{gap:5px}.g-tools button{width:35px;height:35px}.g-clock{top:68px}.g-clock strong{font-size:28px}.g-objective{top:170px;left:20px}.g-panel{padding:25px}.g-panel h2{font-size:38px}.g-modal{padding:16px}.g-bottom{left:20px;right:20px}.g-caption{max-width:90%;bottom:100px}.g-settings{gap:12px}}
@media(prefers-reduced-motion:reduce){#game-root *,#game-root *:before,#game-root *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(pointer:coarse){.g-caption{left:calc(50% - 26px);max-width:min(500px,calc(100% - 330px));width:max-content;white-space:normal}}

@media(pointer:coarse){.g-touch-actions{display:grid;grid-template-columns:50px 64px;gap:10px;justify-items:center}.g-touch-actions [data-g=interact]{grid-column:2;grid-row:2}.g-touch-actions #g-run{grid-column:1;grid-row:2}}
@media(pointer:coarse) and (max-height:600px){.g-touch-actions{grid-template-columns:44px 54px;gap:9px}.g-caption{left:50%;max-width:calc(100% - 300px)}}
@media(max-width:1050px){.g-control-hints{gap:9px;font-size:8px}.g-control-hints span:nth-child(2){display:none}}

#game-root.is-driving .g-touch-actions [data-g=crouch],#game-root.is-driving .g-touch-actions #g-run{visibility:hidden}
.g-field-error{color:#ffad91!important}.g-field input[aria-invalid=true]{border-color:#ed997f}.g-field input[type=text]:focus-visible{outline:2px solid var(--g-amber);outline-offset:3px}#g-name-form input{font-size:16px;min-width:0}#g-name-form .g-field{margin-top:22px}#g-name-error[hidden]{display:none}
#game-root .g-text,#game-root .g-menu>button,#game-root .g-keybind,#game-root .g-cam-buttons button{min-height:44px}
#game-root .g-keybind{min-width:44px}
#game-root .g-panel-top .g-icon{width:44px;height:44px;min-width:44px;flex-shrink:0}
@media(pointer:coarse){#game-root .g-tools button,#game-root .g-equipment button{width:44px;height:44px;min-width:44px}}
.g-millinet{display:inline-flex;align-items:center;justify-content:center;width:176px;padding:12px 16px;border:1px solid #fff9;border-radius:4px;background:#eae8e0;box-shadow:0 6px 18px #0002;flex-shrink:0}
.g-millinet img{display:block;width:100%;height:auto;object-fit:contain;user-select:none}
.g-loading>.g-millinet{margin-top:10px}
.g-intro-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.g-intro-head .g-millinet{width:132px;padding:8px 12px}
@media(max-height:600px){.g-loading:not(.g-error){gap:14px;padding:20px}.g-loading:not(.g-error) .g-loading-mark{font-size:64px}.g-loading:not(.g-error) p{margin:0}.g-loading:not(.g-error) small{max-width:350px;line-height:1.5}.g-loading>.g-millinet{width:150px;padding:9px 14px;margin-top:0}}

/* The local plan stays visible while keyboard and touch controls keep their own space. */
.g-ammo{position:absolute;right:max(32px,env(safe-area-inset-right));top:34px;z-index:5;min-width:70px;text-align:right;color:#e8d5b4;pointer-events:none;font-variant-numeric:tabular-nums;text-shadow:0 2px 6px #000}
.g-ammo>span{display:block;font-size:8px;letter-spacing:.2em;color:#9eb1b5}.g-ammo strong{font-family:'Barlow Condensed',sans-serif;font-size:32px;font-weight:600}.g-ammo small{font-family:Manrope,sans-serif;font-size:12px;color:#9eb1b5}.g-ammo.empty strong{color:#eaa28c}
#game-root .g-fire{display:none;position:absolute;z-index:8;width:52px;height:52px;border:1px solid #eab66c9c;border-radius:50%;background:#15232be0;color:#eac68c;touch-action:none;box-shadow:0 4px 16px #0004}.g-fire svg{width:25px!important;height:25px!important}.g-fire:active{background:#786044}
.is-armed .g-crosshair{border:1px solid #eac68c99;width:7px;height:7px;background:transparent}.shot-hit .g-crosshair{border-color:#ffc486;box-shadow:0 0 0 4px #eab66c44}.is-paused .g-ammo,.is-paused .g-fire{visibility:hidden}
@media(pointer:coarse){#game-root .g-fire:not([hidden]){display:grid;place-items:center;right:calc(var(--mini-size) + var(--mini-edge) + 20px);bottom:max(184px,calc(env(safe-area-inset-bottom) + 158px))}.g-ammo{top:auto;right:var(--mini-edge);bottom:calc(var(--mini-size) + 38px);width:var(--mini-size);text-align:center}.g-ammo strong{font-size:26px}}
@media(pointer:coarse) and (max-height:600px){#game-root .g-fire:not([hidden]){width:44px;height:44px;right:calc(var(--mini-size) + var(--mini-edge) + 21px);bottom:145px}.g-ammo{bottom:calc(var(--mini-size) + 34px)}.g-ammo strong{font-size:23px}.g-ammo>span{font-size:7px}}
#game-root{--mini-size:184px;--mini-edge:max(28px,env(safe-area-inset-right))}
.g-minimap{position:absolute;z-index:5;width:var(--mini-size);height:var(--mini-size);right:var(--mini-edge);bottom:max(24px,env(safe-area-inset-bottom));border:1px solid #b9d1cb66;border-radius:50%;background:#09161eea;box-shadow:0 8px 28px #0007,0 0 0 5px #07111650;overflow:hidden;pointer-events:none;user-select:none}
.g-minimap-canvas{display:block;width:100%;height:100%;border-radius:50%}
.g-minimap-distance{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);padding:3px 7px;border:1px solid #eab66c44;border-radius:12px;background:#101b20eb;color:#f3c786;font-size:10px;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.is-paused .g-minimap{visibility:hidden}
@media(pointer:fine){
 #game-root .g-tools,#game-root .g-equipment{display:none}
 #game-root .g-bottom{right:calc(var(--mini-size) + var(--mini-edge) + 24px);gap:24px}
 #game-root .g-condition{flex:0 0 175px}
 #game-root .g-control-hints{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px 14px;padding:0;max-width:780px;line-height:1.7}
 #game-root .g-control-hints span{display:inline-flex;align-items:center;white-space:nowrap}
 #game-root .g-caption{max-width:min(600px,calc(100% - 2 * (var(--mini-size) + var(--mini-edge) + 30px)))}
}
@media(pointer:fine) and (max-width:1100px){
 #game-root{--mini-size:144px;--mini-edge:20px}
 #game-root .g-condition{flex-basis:135px}
 #game-root .g-condition>div:first-child{font-size:9px;gap:6px}
 #game-root .g-bottom{gap:16px}
 #game-root .g-control-hints{gap:5px 10px;font-size:8px}
}
@media(pointer:fine) and (max-height:600px){
 #game-root{--mini-size:124px}
 #game-root .g-condition{position:static;flex-basis:130px}
 #game-root .g-caption{bottom:135px}
}
@media(pointer:coarse){
 #game-root{--mini-size:144px;--mini-edge:max(24px,env(safe-area-inset-right))}
 #game-root .g-touch-actions{right:calc(var(--mini-size) + var(--mini-edge) + 20px)}
 #game-root .g-caption{left:calc(50% - 80px);max-width:calc(100% - 500px)}
}
@media(pointer:coarse) and (max-height:600px){
 #game-root{--mini-size:96px;--mini-edge:max(20px,env(safe-area-inset-right))}
 #game-root .g-interact{left:calc(50% - 60px);max-width:calc(100% - 392px);white-space:normal;text-align:left}
 #game-root .g-minimap{bottom:max(20px,env(safe-area-inset-bottom))}
 #game-root .g-touch-actions{right:calc(var(--mini-size) + var(--mini-edge) + 16px)}
 #game-root .g-minimap-distance{bottom:5px;font-size:8px;padding:2px 5px}
 #game-root .g-caption{left:calc(50% - 60px);max-width:calc(100% - 400px);padding:8px 10px}
}

.g-policy-links{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;margin-top:16px}.g-policy-links a{display:inline-flex;align-items:center;min-height:44px;padding:5px 8px;color:#aeb9b9;font-size:12px;text-decoration:underline;text-underline-offset:4px}.g-policy-links a:hover{color:#edab50}.g-policy-links a:focus-visible{outline:2px solid #edab50;outline-offset:3px}

/* Keep the movement control clear of the phone edge and gesture area. */
@media(pointer:coarse){#game-root .g-touch #g-joystick{bottom:max(52px,calc(env(safe-area-inset-bottom,0px) + 18px))}}
@media(pointer:coarse) and (max-height:600px){#game-root .g-touch #g-joystick{bottom:max(48px,calc(env(safe-area-inset-bottom,0px) + 18px))}}
