/* Exploration is an unobstructed world; resources and tools live in Refuge. */
.playing header{top:max(12px,env(safe-area-inset-top));left:14px;right:14px;justify-content:flex-end}
.playing .wordmark{display:none}
.playing nav{gap:0}
.playing #pauseBtn{border:0;background:#0d151647;border-radius:50%;backdrop-filter:none;width:44px;height:44px}
.playing .vignette{background:linear-gradient(#050a0c50,transparent 16%,transparent 82%,#050a0c66)}
.top-hud{left:50%;right:auto;top:max(15px,env(safe-area-inset-top));width:auto;transform:translateX(-50%);display:block}
.hunt-info{width:auto;min-width:120px;padding:3px 10px;background:transparent;border:0;backdrop-filter:none;text-shadow:0 2px 5px #000}
.hunt-info>div:first-child{gap:9px;justify-content:center}
.hunt-info #phaseName{font-size:10px;color:#e3e5da}
.hunt-info #timer{font:500 14px/1.4 monospace;color:#eee8da}
.threat-line{justify-content:center;gap:8px;margin-top:4px;font-size:8px;letter-spacing:.6px}
#hearts{font-size:8px;letter-spacing:1px;color:#ded2b8}
.threat-meter{display:none}
.threatened .threat-meter{display:block;height:1px;margin-top:5px;background:#bda37c30}
.threatened #timer{color:#edb399}
#huntState{top:72px;max-width:82%;width:max-content;font:600 9px/1.5 Arial;letter-spacing:1.5px;color:#cbd8cc;background:#10201d66;border-radius:2px;padding:7px 10px}
#objective{position:static;transform:none;max-width:none;width:auto;font-size:10px;margin:14px 0 12px;color:#b9c4b6;text-shadow:none}
#planningBadge{top:65px;background:#0c1716a6;padding:7px 11px;font-size:9px;z-index:5}
.action-dock{top:max(9px,env(safe-area-inset-top));bottom:auto;left:12px;right:auto;transform:none;width:auto;padding:0;background:none;border:0;box-shadow:none;backdrop-filter:none}
#buildToggle{padding:5px 6px;background:transparent;color:#ece9dc;border:0;box-shadow:none;gap:6px;min-height:48px;font-size:11px;font-weight:400;text-shadow:0 2px 5px #000}
#buildToggle .build-symbol{font:27px Georgia;color:#d2c4a8}
#buildToggle .refuge-label{font:500 10px/1.4 Arial;display:block;text-align:left;letter-spacing:.5px}
#buildToggle small{font:11px/1.3 monospace;display:block;margin:1px 0 0;color:#e1dcc9}
#touchHint{display:none!important}
#taskBar{top:auto;bottom:max(140px,calc(env(safe-area-inset-bottom) + 130px));left:50%;transform:translateX(-50%);border:0;background:none;max-width:75%;padding:0}
#missionText{display:block;text-align:center;color:#e4e2d3;font:10px/1.4 Arial;text-shadow:0 1px 4px #000,0 0 9px #000;margin:0 0 6px;white-space:nowrap}
#taskBtn{color:#ebe3cf;background:#121e1b88;border:1px solid #eee4c82e;border-radius:24px;padding:8px 18px;font-size:11px;min-height:40px;box-shadow:0 2px 12px #0002;font-weight:400}
#joystick{left:max(20px,env(safe-area-inset-left));bottom:max(28px,env(safe-area-inset-bottom));width:94px;height:94px;border:1px solid #e2e6d33c;background:#0d191d14;box-shadow:none;opacity:.58;transition:opacity .15s}
#joystick.moving{opacity:1;background:#13211f55}
#stickKnob{width:34px;height:34px;background:#b3bba241;border:1px solid #ece6cc65;box-shadow:none}
#joystick span{display:none}
.scout-actions{right:max(18px,env(safe-area-inset-right));bottom:max(27px,env(safe-area-inset-bottom));width:140px;height:114px;gap:0}
.scout-actions button{position:absolute;width:48px;height:48px;min-height:44px;background:#101c1c6b;border:1px solid #d6d7bc49;box-shadow:0 2px 8px #0002}
.scout-actions strong{font-size:23px;color:#e4dcc5}
.scout-actions small{font-size:8px;margin-top:2px;color:#e0dfd3}
#dashBtn{right:0;bottom:0;width:61px;height:61px}
#dashBtn strong{font-size:28px}
#sneakBtn{left:0;bottom:2px}
#lureBtn{right:18px;top:0}
#scoutControls>.hush-button{position:absolute;pointer-events:auto;left:35px;bottom:max(133px,calc(env(safe-area-inset-bottom) + 125px));width:52px;height:44px;min-width:0;min-height:44px;flex:none;padding:0;justify-content:center;gap:4px;background:transparent;border:0;text-align:center;text-shadow:0 1px 6px #000}
#scoutControls>.hush-button .hush-icon{font-size:25px}
#scoutControls>.hush-button strong{font-size:9px;font-weight:400}
#scoutControls>.hush-button small{display:none}
#scoutControls>.hush-button.is-hushed{color:#e6d6ab;background:#293b3055;border-radius:20px}
#toast{bottom:205px;background:#10201bd9;border:0;border-radius:4px;padding:9px 13px;font-size:11px;max-width:74%;z-index:9}
#refugeResources{width:100%;border:1px solid var(--line);background:#0b131638;backdrop-filter:none}
#refugeResources>div{flex:1;padding:10px 4px;min-width:0}
#refugeResources span{font-size:22px}
#refugeResources label{font-size:8px;margin-top:5px}
#refugeTools{display:flex;gap:8px;margin-top:16px;align-items:stretch}
#refugeTools .dock-secondary{padding:6px 12px;min-width:62px}
.camera-tools{position:static;display:flex;flex:1;grid-template-columns:none;background:transparent;border:1px solid var(--line)}
.camera-tools button,.camera-tools #viewModeBtn{width:auto;flex:1;min-height:44px;border:0;font-size:19px}
.camera-tools #viewModeBtn{flex:2;font:10px/1.3 Arial;min-width:70px}
.camera-tools #zoomIn,.camera-tools #zoomOut{display:block}
#buildTray{bottom:max(18px,env(safe-area-inset-bottom));max-height:calc(100dvh - 106px);width:min(680px,calc(100% - 28px));padding:22px 16px 16px;overflow:auto}
#buildTray .sheet-heading{margin-bottom:17px}
#buildTray h2{font-size:27px}
#buildTray .eyebrow{font-size:8px}
#buildButtons{margin-top:10px;gap:6px}
.build-button{min-height:118px}
.build-icon{height:73px;width:72px}
#selection{bottom:24px;max-height:calc(100dvh - 105px);overflow:auto}
.pause-settings{display:flex;gap:9px;padding:8px 0 12px;border-bottom:1px solid var(--line);margin-bottom:12px}
.pause-settings .icon-button{flex:1;max-width:74px}
#pauseOverlay .modal{width:min(400px,100%)}
@media(max-width:600px){.top-hud{top:max(15px,env(safe-area-inset-top));left:50%;right:auto;width:auto;display:block}.hunt-info{display:block;min-width:118px;width:auto}.hunt-info #phaseName{font-size:9px}.hunt-info #timer{font-size:13px}.threat-line{font-size:7px}.playing header{top:max(10px,env(safe-area-inset-top))}.action-dock{width:auto}.build-button strong{font-size:9px}.build-button small{font-size:8px}.build-icon{height:65px;width:61px}.build-button{min-height:108px}#buildTray{padding:20px 12px 14px}.sheet-note{margin-top:12px;font-size:9px}.camera-tools #zoomIn,.camera-tools #zoomOut{display:none}#selection{left:14px;right:14px;width:auto}.top-hud #phaseName{max-width:99px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-height:540px) and (min-width:601px){.top-hud{top:12px;left:50%;right:auto}.hunt-info{width:auto;min-width:170px;padding:3px 10px}.hunt-info #phaseName{font-size:10px}.threat-line{margin-top:2px}#huntState{top:62px;font-size:8px;max-width:60%}#planningBadge{top:58px}#joystick{bottom:19px;width:86px;height:86px}.scout-actions{bottom:19px}#scoutControls>.hush-button{bottom:112px;left:33px}#taskBar{bottom:24px;top:auto;left:50%;max-width:40%;padding:0}#taskBtn{min-height:40px}#toast{bottom:78px;max-width:45%;font-size:10px}#buildTray{bottom:12px;max-height:calc(100dvh - 89px);width:min(670px,calc(100% - 160px));padding:16px}#buildButtons{grid-template-columns:repeat(4,1fr)}.build-icon{height:55px;width:55px}.build-button{min-height:90px}#buildTray .sheet-heading{margin-bottom:10px}#refugeResources>div{padding:6px 4px}#refugeResources span{font-size:17px}#refugeTools{margin-top:10px}#objective{margin:9px 0}#selection{bottom:15px}#placementBar{bottom:12px}.camera-tools button,.camera-tools #viewModeBtn{min-height:44px}}

#taskBar{text-align:center;display:flex;flex-direction:column;align-items:center}

#taskBtn.working{background:linear-gradient(90deg,#b9a57555 var(--work),#121e1b99 var(--work));border-color:#d9c69e70}

.graphics-settings{display:grid;grid-template-columns:1fr 1.4fr;align-items:center;gap:8px;margin:12px 0;padding:12px 0;border-top:1px solid #a5b5aa25;border-bottom:1px solid #a5b5aa25}.graphics-settings label{font-size:13px;color:#c3cbbb}.graphics-settings select{min-height:40px;border:1px solid #718075;background:#172824;color:#e4e8dc;border-radius:6px;padding:8px;font:inherit;font-size:13px}.graphics-settings p{grid-column:1/-1;font-size:11px!important;line-height:1.45!important;margin:0!important;color:#a5b2ac!important}.graphics-settings button{grid-column:1/-1;font-size:12px;padding:5px}#performanceReadout{position:fixed;right:max(12px,env(safe-area-inset-right));top:70px;z-index:35;background:#091715d9;color:#dae7d9;padding:7px 9px;border-radius:5px;font:10px/1.5 monospace;pointer-events:none;white-space:pre-line}.modal{max-height:calc(100dvh - 30px);overflow-y:auto}
