/* Secret-world UI remains absent outside local discovery zones. */
#pop-secret-prompt[hidden],#pop-secret-dialog:not([open]){display:none!important}
#pop-secret-prompt{position:fixed;z-index:60;left:50%;transform:translateX(-50%);bottom:calc(126px + env(safe-area-inset-bottom,0px));width:min(310px,calc(100vw - 32px));padding:9px 11px;display:grid;gap:6px;background:#061320ed;border:1px solid #3688b9;border-radius:12px;color:#fff;text-align:center;box-shadow:0 0 15px #008dff38;font:600 12px/1.25 system-ui,sans-serif;touch-action:none}
#pop-secret-prompt span{letter-spacing:.065em;color:#d4eaff}#pop-secret-prompt button,#pop-secret-dialog button{font:700 14px/1.15 system-ui,sans-serif;min-height:40px;border:1px solid #59c9ff;border-radius:8px;background:#071a2c;color:white;padding:9px 13px;cursor:pointer}#pop-secret-prompt.revealed{border-color:#49e4ff;box-shadow:0 0 22px #00aaff80}#pop-secret-prompt.holding button{background:linear-gradient(90deg,#0076c5 0%,#071a2c 0%);animation:pop-secret-hold .85s linear forwards}@keyframes pop-secret-hold{to{background:#0076c5;box-shadow:0 0 18px #27bfff}}
#pop-secret-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 30px);overflow:auto;padding:36px 20px 24px;border:1px solid #27c4ff;border-radius:14px;background:#020914;color:#fff;font:16px/1.4 system-ui,sans-serif;text-align:center;box-shadow:0 0 40px #008dff66;z-index:1000}#pop-secret-dialog::backdrop{background:#000c}#pop-secret-dialog h2{font-size:clamp(21px,5.4vw,30px);line-height:1.15;margin:6px 0 18px;color:#dff7ff;letter-spacing:.04em}#pop-secret-dialog .pop-secret-close{position:absolute;top:8px;right:8px;padding:6px 11px;min-height:34px;font-size:20px}.pop-secret-clue strong{display:block;letter-spacing:.1em;font-size:clamp(32px,8vw,52px);color:#fff;text-shadow:0 0 16px #26bfff}.pop-secret-clue p{font-size:14px}.pop-secret-keypad{display:grid;gap:13px}.pop-secret-keypad label{display:grid;gap:9px}.pop-secret-keypad input{box-sizing:border-box;width:100%;text-align:center;background:#040f20;color:white;border:1px solid #5bd5ff;border-radius:8px;font:700 30px/1.3 ui-monospace,monospace;letter-spacing:.28em;padding:10px}.pop-secret-keypad p{font-size:13px;color:#b6deff;margin:0}
#pop-secret-dialog.pop-secret-helix{width:min(96vw,760px);height:min(92dvh,850px);max-height:92dvh;padding:0;overflow:hidden;background:#000;color:#fff;border-radius:12px;text-align:center}#pop-secret-dialog.pop-secret-helix header{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;z-index:120;padding:12px 16px;text-align:left;letter-spacing:.13em;background:#000b}#pop-secret-dialog.pop-secret-helix header small{display:block;font-size:10px;margin-top:4px}#pop-secret-dialog.pop-secret-helix canvas{position:absolute;inset:0;width:100%;height:100%}.pop-secret-orbit{position:absolute;inset:70px 0 66px;perspective:800px;touch-action:none}.pop-secret-panel{position:absolute;left:50%;top:50%;width:min(290px,68%);height:145px;display:grid;place-content:center;text-align:center;gap:12px;padding:8px;border:1px solid #fff;background:linear-gradient(130deg,#ffffff44,#000000ef 50%,#00bfff44);border-radius:10px;box-shadow:0 0 25px #ffffff44,inset 0 0 20px #ffffff22;color:#fff;text-decoration:none;will-change:transform}.pop-secret-panel[hidden]{display:none}.pop-secret-panel strong{overflow-wrap:anywhere;font-size:16px}.pop-secret-panel small{font-size:11px}.pop-secret-helix nav{position:absolute;bottom:14px;left:0;right:0;z-index:130;display:flex;justify-content:center;align-items:center;gap:15px;background:#000b;padding:6px}.pop-secret-helix nav button{min-width:48px}@media(max-height:560px){#pop-secret-prompt{bottom:calc(82px + env(safe-area-inset-bottom,0px))}.pop-secret-panel{height:104px;gap:5px}}@media(prefers-reduced-motion:reduce){#pop-secret-prompt.holding button{animation:none;background:#0076c5}.pop-secret-panel{will-change:auto}}

/* V2.4.89 compact resource and riding HUD */
#pop-frontier-hud[hidden],#pop-horse-controls[hidden]{display:none!important}#pop-frontier-hud{position:fixed;z-index:48;left:max(8px,env(safe-area-inset-left));display:grid;gap:3px;max-width:155px;color:#e4faff;font:700 10px/1.2 system-ui;pointer-events:none}#pop-frontier-hud button{pointer-events:auto;padding:4px 5px;min-height:26px;border:1px solid #3f91ba;border-radius:6px;background:#061622e8;color:#e4faff;font:700 10px system-ui}#pop-frontier-hud button:disabled{opacity:.55}#pop-horse-controls,.pop-resource-row{display:flex;gap:3px;flex-wrap:wrap}#pop-feathers{padding:3px 6px;width:max-content;background:#071824d9;border-radius:5px;color:#d6f3ff}
/* Compact ammo HUD: keep combat controls accessible in either mode. */
body.spatial-world #pop-archery-hud .pop-ammo-heading{display:flex;align-items:center;gap:5px;min-width:0}body.spatial-world #pop-archery-hud .pop-ammo-heading strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.spatial-world #pop-ammo-collapse{flex:0 0 44px;min-height:44px;font-size:18px;line-height:1;touch-action:manipulation}body.spatial-world #pop-archery-hud.ammo-minimized{width:min(154px,42vw);gap:2px;padding:4px}body.spatial-world #pop-archery-hud.ammo-minimized #pop-archery-holster{display:none}body.spatial-world #pop-archery-hud.ammo-minimized .pop-ammo-actions{display:flex;gap:3px}body.spatial-world #pop-archery-hud.ammo-minimized #pop-archery-ammo{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.spatial-world #pop-archery-hud.ammo-minimized #pop-weapon-reload{min-height:44px}

/* Mounted speed selection and brake, compact and touch-safe. */
#pop-horse-controls{display:grid;grid-template-columns:1fr 1fr;gap:3px;pointer-events:auto;background:#061622e8;border:1px solid #3f91ba;border-radius:7px;padding:4px}#pop-horse-controls .pop-mount-label{grid-column:1/-1;font:700 9px/1.2 system-ui;color:#a7eeff}#pop-horse-controls select{min-width:0;width:100%;border:1px solid #3f91ba;border-radius:5px;background:#071824;color:#e4faff;font:700 11px system-ui;min-height:36px;touch-action:manipulation}#pop-horse-controls button{min-height:36px;touch-action:manipulation}#pop-horse-off{grid-column:1/-1}#pop-horse-run[aria-pressed="true"]{background:#16434e}

#pop-boss-hud,#pop-ufo-hud,#pop-bunker-action{position:fixed;z-index:29;background:#06131eea;color:#fff;border:1px solid #38c8ff;border-radius:9px;padding:7px 10px;font:600 11px system-ui;box-shadow:0 0 14px #1cbfff45;max-width:calc(100vw - 30px)}#pop-boss-hud{top:max(62px,calc(env(safe-area-inset-top) + 50px));left:50%;transform:translateX(-50%);width:min(250px,56vw);text-align:center;pointer-events:none}#pop-boss-hud progress{width:100%;height:9px;display:block;accent-color:#ff4545}#pop-boss-hud small{display:block;color:#ffb6b6}#pop-boss-sighting{position:fixed;z-index:40;top:37%;left:50%;transform:translate(-50%,-50%);font:900 clamp(28px,8vw,64px) system-ui;white-space:nowrap;color:white;text-shadow:0 2px 15px #000,0 0 22px #000;pointer-events:none}#pop-bunker-action{left:50%;bottom:calc(env(safe-area-inset-bottom) + 232px);transform:translateX(-50%);font-size:14px;min-height:44px;z-index:61}#pop-ufo-hud{left:12px;bottom:calc(env(safe-area-inset-bottom) + 144px);width:146px;z-index:32}#pop-ufo-hud button{display:block;width:100%;margin:5px 0;min-height:38px;background:#11526a;color:white;border:1px solid #7ce8ff;border-radius:6px}#pop-ufo-hud small{display:block;font-size:10px}#pop-ufo-hud.beam{box-shadow:0 0 32px #1ceeff}#pop-boss-hud[hidden],#pop-boss-sighting[hidden],#pop-bunker-action[hidden],#pop-ufo-hud[hidden]{display:none!important}#pop-important-items-list article{padding:8px;border:1px solid #4c9eba;border-radius:6px}#pop-important-items-list small{display:block;margin-top:4px}@media(max-height:480px){#pop-boss-hud{top:45px;width:190px}#pop-bunker-action{bottom:calc(env(safe-area-inset-bottom) + 172px)}#pop-ufo-hud{bottom:calc(env(safe-area-inset-bottom) + 95px)}}

#pop-ufo-hud label{display:block;margin-top:5px;color:#b7eaff;font-size:10px}#pop-ufo-speed{display:block;box-sizing:border-box;width:100%;min-height:44px;background:#103245;color:#fff;border:1px solid #7ce8ff;border-radius:6px;font:600 13px system-ui;padding:4px}#pop-ufo-telemetry{margin-top:4px;color:#b7eaff;font-variant-numeric:tabular-nums}#pop-ufo-hud button{min-height:44px} @media(max-height:480px){#pop-ufo-hud{padding:5px 8px}#pop-ufo-speed{min-height:36px}#pop-ufo-hud button{min-height:36px}}

/* V2.4.103: native collectible glyphs with alpha-clipped laser grid; fixed hit area. */
#treasure-layer .cash-laser-art{display:block;width:1em;height:1em;object-fit:contain;pointer-events:none}
#pop-ufo-hud .pop-ufo-height{display:flex;gap:4px}#pop-ufo-hud .pop-ufo-height button{flex:1;min-width:0;margin:0;font-size:11px;touch-action:none;user-select:none;-webkit-user-select:none}#pop-ufo-hud .pop-ufo-height button:disabled{opacity:.45}#pop-ufo-hud{box-sizing:border-box;width:166px;max-height:calc(100dvh - 210px);overflow-y:auto;overscroll-behavior:contain}@media(max-height:480px){#pop-ufo-hud{bottom:calc(env(safe-area-inset-bottom) + 82px);max-height:calc(100dvh - 128px);width:156px}}

/* V2.4.104: compact flight fuel meter, fed by saved feather inventory. */
#pop-feathers{display:grid;gap:3px;min-width:100px}#pop-flight-fuel{width:100%;height:5px;appearance:none;-webkit-appearance:none;border:0;background:#122b3d;border-radius:4px;overflow:hidden;accent-color:#20aaff}#pop-flight-fuel::-webkit-progress-bar{background:#122b3d}#pop-flight-fuel::-webkit-progress-value{background:#20aaff}#pop-flight-fuel::-moz-progress-bar{background:#20aaff}


#pop-frontier-hud #pop-suit-action{position:static;justify-self:start;min-height:44px;padding:5px 8px;border:1px solid #ffb761;border-radius:9px;background:linear-gradient(180deg,#1c1a15f7,#101418f4);color:#fff3d0;font:700 11px/1.25 system-ui;box-shadow:0 0 18px #ffb64b33;max-width:100%;text-align:left;white-space:normal;touch-action:manipulation;pointer-events:auto}
#pop-suit-action[hidden]{display:none!important}


/* V2.4.128: fully isolated lunar world overlay, safe-area aware. */
#pop-ufo-return-home{width:100%;border-color:#58d4ff!important;color:#fff!important;background:#103149!important;font-weight:800!important;min-height:44px!important;margin:4px 0!important}
#pop-moon-world{position:fixed;inset:0;box-sizing:border-box;width:100vw;height:100vh;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#02040a;color:#fff;overflow:hidden;touch-action:none;font:600 13px/1.25 system-ui,sans-serif}
#pop-moon-world::backdrop{background:#000}#pop-moon-world[hidden],#pop-moon-world [hidden]{display:none!important}#pop-moon-world canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}
#pop-moon-world .lunar-top{position:absolute;top:calc(9px + env(safe-area-inset-top,0px));left:calc(10px + env(safe-area-inset-left,0px));right:calc(10px + env(safe-area-inset-right,0px));display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:none}#pop-moon-world .lunar-title{display:block;letter-spacing:.14em;font-size:clamp(15px,3.2vw,24px);text-shadow:0 0 10px #168eff}#pop-moon-world .lunar-readout,#pop-moon-world .lunar-ammo{display:block;color:#c4eaff;font-size:11px}#pop-moon-world .lunar-health{width:120px;height:10px;accent-color:#27b8ff;display:block;margin-top:4px}#pop-moon-world button,#pop-moon-world select{box-sizing:border-box;min-height:44px;border:1px solid #359fdb;border-radius:7px;background:#061528d9;color:#fff;font:700 12px system-ui;touch-action:none;pointer-events:auto;padding:6px 10px;cursor:pointer}#pop-moon-world button:active{background:#14527e}#pop-moon-world .lunar-note{position:absolute;left:12%;right:12%;top:20%;text-align:center;font-size:clamp(12px,2vw,17px);text-shadow:0 2px 5px #000,0 0 9px #067eff;pointer-events:none}#pop-moon-world .lunar-weapons{position:absolute;right:calc(10px + env(safe-area-inset-right,0px));top:calc(70px + env(safe-area-inset-top,0px));max-width:46%;text-align:right}#pop-moon-world .lunar-select{max-width:100%;width:164px;min-height:36px;touch-action:auto}#pop-moon-world .lunar-ammo{margin-top:4px}#pop-moon-world .lunar-controls{position:absolute;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:calc(10px + env(safe-area-inset-left,0px));right:calc(10px + env(safe-area-inset-right,0px));display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none;gap:12px}#pop-moon-world .lunar-pad{text-align:center}#pop-moon-world .lunar-pad button{width:44px;padding:0;margin:2px}#pop-moon-world .lunar-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}#pop-moon-world .lunar-actions button{min-width:49px}#pop-moon-world .lunar-actions [data-move="fire"]{border-color:#80ddff;background:#0a2940e8} @media(max-height:420px){#pop-moon-world .lunar-note{top:25%}#pop-moon-world .lunar-weapons{top:calc(57px + env(safe-area-inset-top,0px))}#pop-moon-world .lunar-controls{bottom:calc(4px + env(safe-area-inset-bottom,0px))}}

/* V2.4.129: locked lunar departure remains a tappable instructional action. */
#pop-ufo-return-home[data-ready="false"]{border-color:#668aa3!important;color:#c3d8e5!important;background:#122332!important}
#pop-ufo-return-home[data-ready="true"]{box-shadow:0 0 13px #159fff88}
#pop-ufo-moon-hint{display:block;color:#bce8ff;font:600 10px/1.35 system-ui;overflow-wrap:anywhere;margin:0 0 5px}
#pop-ufo-moon-notice{position:fixed;z-index:3600;top:44%;left:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(90vw,560px);padding:13px 16px;text-align:center;background:#06111bea;border:1px solid #30baff;border-radius:9px;color:#fff;font:750 clamp(13px,3vw,18px)/1.4 system-ui;text-shadow:0 0 7px #008dff;pointer-events:none}
#pop-ufo-moon-marker{position:fixed;z-index:11;left:0;top:0;color:white;font:700 10px/1 system-ui;letter-spacing:1px;text-shadow:0 0 6px #009dff,0 1px 4px #000;pointer-events:none;text-align:center;width:0;height:0;white-space:nowrap;display:flex;justify-content:center;align-items:flex-start;padding-top:18px}
#pop-ufo-moon-marker::before{content:"";position:absolute;top:-13px;left:-13px;width:26px;height:26px;border:1px solid #8fe5ff;border-radius:50%;box-shadow:0 0 6px #009dff}
#pop-ufo-moon-marker[hidden],#pop-ufo-moon-notice[hidden]{display:none!important}

/* V2.4.138: Earth-style compact lunar controls. */
#pop-moon-world .lunar-resources{display:grid;gap:4px;align-items:start;max-width:48%;color:#d8f8ff;font:700 11px system-ui;pointer-events:none}#pop-moon-world .lunar-feathers,#pop-moon-world .lunar-air-readout{display:block;background:#061528d9;padding:5px 7px;border:1px solid #359fdb;border-radius:6px}#pop-moon-world .lunar-actions{max-width:52%;gap:4px}#pop-moon-world .lunar-actions button{min-width:44px;padding:4px 8px;border-radius:22px;background:linear-gradient(150deg,#176b91dc,#082236ed)}#pop-moon-world .lunar-actions button:disabled{opacity:.45}#pop-moon-world .lunar-help{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(90%,520px);max-height:75%;overflow:auto;touch-action:pan-y;padding:14px;background:#061528f5;border:1px solid #359fdb;border-radius:12px;color:white;line-height:1.45}#pop-moon-world .lunar-help button{float:right}#pop-moon-world .lunar-help p{clear:both;margin:10px 0 0}#pop-moon-world .lunar-note{top:27%;font-size:clamp(11px,2vw,15px)}@media(max-height:420px){#pop-moon-world .lunar-note{top:31%}#pop-moon-world .lunar-resources{gap:3px}#pop-moon-world .lunar-controls{align-items:flex-end}}

#pop-moon-world .lunar-cells,#pop-moon-world .lunar-parts{display:block;background:#061528d9;padding:5px 7px;border:1px solid #359fdb;border-radius:6px;color:#d8f8ff;font:700 11px system-ui}
/* V2.4.140 lunar navigation — scoped to Moon only. */
#pop-moon-world .lunar-interact{position:absolute;z-index:3;left:50%;bottom:calc(126px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);min-height:44px;max-width:70%;padding:7px 14px;border:1px solid #75e8ff;border-radius:10px;color:#fff;background:#10364ded;box-shadow:0 0 14px #159fff66;font:750 13px system-ui;pointer-events:auto}
#pop-moon-world .lunar-map-button{pointer-events:auto;min-height:35px;color:#c9f7ff;background:#103649;border:1px solid #58caff;border-radius:8px;font-weight:700}
#pop-moon-world .lunar-map-panel{position:absolute;z-index:8;inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:7px;padding:10px;background:#06101bf7;border:1px solid #48caff;border-radius:12px;box-sizing:border-box;overflow:auto;touch-action:pan-y;color:#e7faff}
#pop-moon-world .lunar-map-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px;letter-spacing:.1em}#pop-moon-world .lunar-map-panel button{min-width:44px;min-height:40px;border:1px solid #54caff;background:#11334b;color:white;border-radius:8px;font-size:20px}#pop-moon-world .lunar-map-panel label{display:flex;align-items:center;gap:8px}#pop-moon-world .lunar-map-target{min-width:0;flex:1;min-height:38px;background:#122a3c;color:#fff;border:1px solid #3ea6dd;border-radius:6px;font-size:13px}#pop-moon-world .lunar-map-canvas{position:relative;inset:auto;flex:1 1 120px;min-height:100px;width:100%;height:auto;border:1px solid #274e68;box-sizing:border-box;touch-action:pan-y}#pop-moon-world .lunar-map-detail{font-size:11px;line-height:1.35;margin:0;max-height:24%;overflow:auto;color:#c9eaff;touch-action:pan-y}@media(max-height:460px){#pop-moon-world .lunar-interact{bottom:calc(82px + env(safe-area-inset-bottom,0px))}#pop-moon-world .lunar-map-panel{gap:4px;padding:6px}#pop-moon-world .lunar-map-detail{font-size:10px}}

/* V2.4.142 compact lunar controls */
#pop-moon-world .lunar-top-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:56%;pointer-events:auto}#pop-moon-world .lunar-top-actions button{min-height:40px;font-size:11px;padding:5px 9px}#pop-moon-world .lunar-cheats[aria-pressed="true"]{border-color:#f9cf70;color:#ffe29b;background:#382b0a}#pop-moon-world .lunar-mars{border-color:#ec9860;color:#ffd4a8}#pop-moon-world .lunar-top-actions button[hidden]{display:none!important}

#pop-response-panel{position:fixed;left:50%;top:max(92px,calc(env(safe-area-inset-top) + 78px));transform:translateX(-50%);z-index:49;max-width:min(85vw,470px);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;background:#051321ea;border:1px solid #43baff;border-radius:8px;padding:6px;color:#e3f7ff;font:700 10px system-ui}#pop-response-panel[hidden],#pop-response-panel [hidden],#pop-sim-shield[hidden]{display:none!important}#pop-response-panel button{min-height:44px;background:#103149;border:1px solid #70d2ff;border-radius:6px;color:white;padding:5px 8px;font:700 11px system-ui}#pop-response-panel span{flex-basis:100%;text-align:center}#pop-response-panel span:empty{display:none}#pop-sim-shield{background:#052034;padding:4px;border-radius:5px;color:#a6e7ff}@media(max-height:450px){#pop-response-panel{top:max(48px,calc(env(safe-area-inset-top) + 36px))}#pop-response-panel button{min-height:40px}}

/* V2.4.145: prominent fictional simulator shortcuts, independent of map coordinates. */
#pop-response-launch,#pop-map-response{border:1px solid #65caff;background:#103954;color:#fff;font:800 13px/1.2 system-ui;min-height:44px;border-radius:8px;}
#pop-response-launch{margin:4px 0 0;}
#pop-map-response{display:block;width:100%;margin-top:5px;padding:8px 12px;}
#pop-map-response-hint{display:block;margin-top:3px;letter-spacing:0;line-height:1.25;color:#d1ebff;}

/* Fictional rotorcraft controls */
#pop-heli-hud[hidden],#pop-heli-board[hidden]{display:none!important}#pop-heli-hud,#pop-heli-board{position:fixed;z-index:61;right:max(8px,env(safe-area-inset-right));bottom:calc(env(safe-area-inset-bottom) + 118px);box-sizing:border-box;max-width:174px;border:1px solid #38c8ff;border-radius:9px;padding:7px;background:#06131eef;color:#e4faff;font:700 11px/1.25 system-ui;box-shadow:0 0 10px #1cbfff35}#pop-heli-hud{display:grid;gap:5px;width:174px}#pop-heli-hud label,#pop-heli-hud small{display:block}#pop-heli-hud select,#pop-heli-hud button,#pop-heli-board{min-height:40px;color:#fff;background:#123d58;border:1px solid #62cfff;border-radius:7px;font:700 11px system-ui;touch-action:none}#pop-heli-hud select{width:100%;margin-top:3px}#pop-heli-hud .heli-height{display:flex;gap:4px}#pop-heli-hud .heli-height button{flex:1}#pop-heli-hud button:disabled,#pop-heli-hud select:disabled{opacity:.45}#pop-heli-hud [data-heli-fire]{background:#125778;border-color:#b2f0ff}#pop-heli-board{min-width:130px;bottom:calc(env(safe-area-inset-bottom) + 155px)}@media(max-height:480px){#pop-heli-hud{bottom:calc(env(safe-area-inset-bottom) + 54px);max-height:calc(100dvh - 112px);overflow-y:auto;width:152px;gap:3px;padding:5px}#pop-heli-hud button,#pop-heli-hud select{min-height:34px}#pop-heli-board{bottom:calc(env(safe-area-inset-bottom) + 88px)}}

/* Startup monitor: only visible until the renderer has produced a frame. */
#pop-startup-status[hidden],#pop-startup-status [hidden]{display:none!important}#pop-startup-status{position:fixed;left:50%;top:49%;transform:translate(-50%,-50%);z-index:68;width:min(86vw,420px);max-height:65vh;overflow:auto;box-sizing:border-box;padding:16px;background:#061624f2;border:1px solid #4cbdea;border-radius:12px;color:#e7f9ff;font:600 14px/1.5 system-ui;text-align:center;box-shadow:0 8px 30px #0009}#pop-startup-status strong,#pop-startup-status small{display:block}#pop-startup-status small{margin-top:7px;color:#8ac8e3}#pop-startup-status p{margin:8px 0}#pop-startup-status a{display:inline-block;min-height:44px;padding:10px 12px;margin:3px;color:#fff;border:1px solid #49b8e4;border-radius:7px;background:#103954;text-decoration:none;box-sizing:border-box}
/* Named checkpoints */
#pop-save-dialog{color:#e9faff;background:#061523;border:1px solid #4bb8ff;border-radius:13px;width:min(92vw,520px);max-height:84dvh;box-sizing:border-box;padding:14px;overflow:auto;font:14px/1.4 system-ui;overscroll-behavior:contain}#pop-save-dialog::backdrop{background:#000a}#pop-save-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}#pop-save-dialog h2{font-size:18px;margin:0}#pop-save-dialog form{display:grid;gap:7px;margin:12px 0}#pop-save-dialog input,#pop-save-dialog button{box-sizing:border-box;color:white;background:#103954;border:1px solid #78cfff;border-radius:7px;padding:9px;font:inherit;min-height:44px}#pop-save-dialog input{width:100%;background:#08121d}#pop-save-dialog article{display:flex;gap:7px;align-items:center;border-top:1px solid #25475f;padding:10px 0}#pop-save-dialog article div{flex:1;min-width:0;overflow-wrap:anywhere}#pop-save-dialog small{display:block;color:#b6d6e8;font-size:11px}#pop-save-dialog [data-save-message]{color:#bdeaff}#pop-save-dialog [data-save-list]{max-height:45dvh;overflow:auto}#pop-moon-world .lunar-save-button{pointer-events:auto}
/* Keep return/cheat actions above the weapon panel, including wrapped mobile rows. */
#pop-moon-world .lunar-top{z-index:3}#pop-moon-world .lunar-top>div:first-child{min-width:0;max-width:45%}#pop-moon-world .lunar-top-actions{min-width:0} @media(max-width:600px){#pop-moon-world .lunar-weapons{top:calc(114px + env(safe-area-inset-top,0px))}#pop-moon-world .lunar-note{top:32%}} @media(max-height:480px){#pop-moon-world .lunar-resources{grid-template-columns:repeat(2,minmax(0,1fr));max-width:57%;width:min(350px,57%);gap:3px}#pop-moon-world .lunar-resources button{min-height:36px;font-size:10px}#pop-moon-world .lunar-weapons{top:calc(65px + env(safe-area-inset-top,0px))}#pop-moon-world .lunar-note{top:34%}}

/* V2.4.151: direct named checkpoint actions at the top of Controls. */
.pop-checkpoint-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:6px 0 10px;clear:both}.pop-checkpoint-actions button{box-sizing:border-box;min-height:44px;width:100%;margin:0!important;padding:7px 5px;background:#103954;color:white;border:1px solid #65caff;border-radius:8px;font:800 12px/1.2 system-ui;text-align:center}#pop-moon-world .lunar-checkpoint-actions button{float:none;min-height:44px}#pop-save-dialog form[hidden],#pop-save-dialog [data-save-list][hidden]{display:none!important}
