/* Art direction 02: detailed industrial pixels, readable live UI. */
:root{--bg:#0b1119;--panel:#131e2a;--border:#304052;--text:#e0e6ec;--muted:#93a4b5;--accent:#dab166;--gold:#e1b365}
body{background:radial-gradient(ellipse at 75% 0,#182b3a55,transparent 55%),#0b1119;color:var(--text)}
button{background:linear-gradient(#e1b76a,#c29243);border:1px solid #e7bd7644;border-radius:5px;color:#211b11;box-shadow:inset 0 1px #ffe0a72e}
button.secondary{background:#243647;border-color:#3a4c5b;color:#d2dde6}
button.outline{border-color:#465769;color:#b5c3d0}
.shell{max-width:1600px;padding:24px 30px 30px}.header{padding-bottom:18px}.header h1{font-size:26px;letter-spacing:-1px}.header .muted{font-size:12px}
.eyebrow{letter-spacing:2.5px;font-size:10px;color:#dda952}
.resourcebar{padding:11px 0;gap:8px;background:#121d284d}.resource{border-right:1px solid #30405266;min-width:99px;padding:0 17px 0 5px}.resource:last-child{border:0}.resource em{color:#8faebc}.resource strong{font-family:'Consolas','Malgun Gothic',monospace;font-size:19px}.resource small{color:#acbbc8}
.tabs{gap:6px;margin:15px 0}.tabs button{box-shadow:none;border:1px solid transparent;border-radius:4px;min-height:42px}.tabs button.selected{border-color:#856739;background:#493a234f;color:#e7c58b}
.grid{grid-template-columns:minmax(0,2.3fr) minmax(285px,1fr);gap:18px}
.card{background:linear-gradient(140deg,#172331,#111c27);border-color:#304052;border-radius:8px;padding:20px;box-shadow:0 10px 30px #00000012}
.scene-card{padding:0;border-color:#455564}.scene-head{background:linear-gradient(90deg,#192938,#111c26);padding:17px 20px 10px}.scene-head h2{font-family:'Consolas','Malgun Gothic',monospace;font-size:27px;color:#e4c589}
.scene-bottom{padding:15px 20px;background:#111e2a}.scene-bottom p{margin:4px 0}.scene-bottom .actions{margin-top:10px}
.target-card{background:linear-gradient(130deg,#27303a,#141f2a);border-color:#7a6845}.target-card .progress span,.progress span{background:linear-gradient(90deg,#a77432,#e3ba73)}.progress{background:#09141f;height:6px;border-radius:2px}.progress span{border-radius:2px}
.focus{background:#182c374d;border-color:#3d5668;border-radius:7px}.focus .progress span{background:linear-gradient(90deg,#5d8996,#a4c0c7)}
.badge{border-radius:3px;border-color:#46586b;color:#c5d1db}.test-badge{background:#483820;border-color:#7b653d;color:#e6c586}
.stat{background:#0e1924;border:1px solid #2c3d4b;border-radius:5px}.stat strong{color:#dce4ea}.chip{background:#273b4d;border-radius:4px}
.notice{background:#26343d;border-color:#576877}.toast{background:#d8c59e;color:#231c11;border-radius:6px}.admin{background:#202528;border-color:#8c7547}
.pixel-toolbar{display:flex;align-items:center;justify-content:space-between;padding:7px 15px;background:#0c1823;color:#869aa9;font-size:11px;border-top:1px solid #344658;border-bottom:1px solid #263949}
.pixel-toolbar div{display:flex;gap:4px}.pixel-zoom{min-height:32px;padding:3px 11px;font-size:11px;box-shadow:none;background:#132434;border:1px solid #354b5e;color:#8fa7b9}
.pixel-zoom[aria-pressed=true]{border-color:#927543;color:#e5c17f;background:#3f342566}
.status-dot{width:5px;height:5px;background:#bca365;display:inline-block;margin-right:7px;box-shadow:0 0 8px #c4a86966}
.pixel-viewport{width:100%;max-height:720px;overflow:auto;background:#0b131d;overscroll-behavior:contain}
.mine-canvas{display:block;width:100%;height:auto;max-width:none;image-rendering:pixelated;aspect-ratio:3/2}
.pixel-readout{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 15px 4px;background:#0d1b27;color:#7c93a5;font-size:10px;border-top:1px solid #354c5d}
.pixel-readout b{margin-left:5px;color:#a9bac6;font-weight:normal}
.pixel-caption{font-size:10px;color:#6e8698;margin:0;padding:3px 15px 8px;background:#0d1b27}
.pixel-rocket{border:1px solid #314558;shape-rendering:crispEdges}
@media(max-width:1100px){.grid{grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)}.shell{padding:22px}}
@media(max-width:760px){.shell{padding:17px 12px}.header h1{font-size:23px}.grid{grid-template-columns:1fr}.card{padding:17px}.scene-card{padding:0}.scene-head{padding:15px 16px 8px}.scene-head h2{font-size:24px}.scene-bottom{padding:13px 16px}.pixel-viewport{max-height:520px}.pixel-readout{padding-left:10px;padding-right:10px;gap:7px}.pixel-caption{padding-left:10px;padding-right:10px}.resource{min-width:89px}.tabs{margin:12px 0}}
/* Every gameplay control lives over the world, including scrollable detail panels. */
.game-shell{padding:12px 20px;max-width:1640px}.game-shell .header{padding-bottom:9px;gap:10px}.game-shell .header h1{font-size:21px}.game-shell .head-tools{gap:8px}.game-shell .header .eyebrow{font-size:8px}.game-shell .footer{margin-top:8px;font-size:10px}
.game-stage{height:clamp(570px,calc(100dvh - 135px),880px);border:1px solid #425767;border-radius:7px;overflow:hidden;background:#07121d}
.game-stage .pixel-scene{height:100%;position:relative;isolation:isolate}.game-stage .pixel-toolbar{height:38px;position:relative;z-index:8;padding:3px 10px;border-top:0}.pixel-motion{font-size:11px;padding:4px 9px;min-height:30px;background:#243c47;color:#c2d5d5;border-color:#43616e}.pixel-motion[aria-pressed=false]{background:#56432b;color:#ebc88b}
.game-stage .pixel-viewport{height:calc(100% - 70px);max-height:none;overflow:auto}.game-stage .mine-canvas{height:100%;aspect-ratio:auto;min-width:800px;max-width:none}.game-stage .pixel-readout{position:absolute;bottom:15px;left:0;right:0;z-index:9;padding:2px 10px;height:18px;font-size:9px}.game-stage .pixel-caption{position:absolute;bottom:0;left:0;right:0;z-index:9;font-size:8px;height:15px;padding:0 10px}
.game-hud{position:absolute;top:44px;left:10px;right:10px;z-index:3;pointer-events:none}.game-hud .resourcebar{margin:0;padding:8px;background:#091521e8;border:1px solid #52677877;border-radius:5px;flex-wrap:nowrap;overflow:auto;pointer-events:auto;max-width:100%;scrollbar-width:thin}.game-hud .resource{padding:0 11px;min-width:95px}.game-hud .resource strong{font-size:18px}.game-hud .resource small{font-size:10px}.game-hud .resource em{font-size:9px}
.world-point{position:absolute;z-index:4;background:#142a35e6;border:1px solid #7894a088;color:#e5d5a9;font-size:11px;min-height:32px;padding:5px 12px;box-shadow:0 4px 10px #0008}.world-point:hover{background:#305063;transform:translateY(-2px)}.crew-point{left:31%;top:37%}.workshop-point{left:64%;top:37%}.rocket-point{right:12%;top:21%}
.game-target{position:absolute;left:13px;bottom:145px;z-index:4;max-width:calc(100% - 26px);display:flex;flex-wrap:wrap;gap:6px}.game-target button{background:#0c1c27ee;color:#d4c293;font-size:11px;min-height:34px;border-color:#635534;padding:6px 10px}.game-target .reward-prompt{background:#6d5126;color:#ffe5a9}
.game-actionbar{position:absolute;left:13px;right:13px;bottom:94px;z-index:4;display:flex;align-items:center;gap:12px;padding:7px 10px;background:#0a1826e8;border:1px solid #3f5969;border-radius:5px}.game-actionbar .primary-mine{min-height:38px;padding:7px 18px;white-space:nowrap}.game-actionbar #scene-status{font-size:11px;color:#9eb1bf}.auto-mining{color:#a3c8b2;font-size:13px;white-space:nowrap}.auto-mining i{display:inline-block;width:7px;height:7px;background:#7db39f;border-radius:50%;margin-right:7px}
.game-stage .game-dock{position:absolute;left:10px;right:10px;bottom:38px;z-index:12;margin:0;padding:5px;background:#091623f5;border:1px solid #3a5267;border-radius:5px;display:flex;flex-wrap:nowrap;overflow:auto;gap:4px;scrollbar-width:thin}.game-dock button{flex:0 0 auto;min-height:36px;padding:6px 12px;font-size:12px;color:#b5c4d2}.game-dock button.selected{background:#55432b;color:#ead09c}
.game-panel-wrap{position:absolute;inset:112px 14px 99px;z-index:10;display:flex;justify-content:flex-end;pointer-events:none}.game-panel{display:flex;flex-direction:column;max-width:920px;width:78%;min-width:0;max-height:100%;border:1px solid #697c8b;border-radius:7px;background:#101d2afa;box-shadow:0 15px 50px #000a;pointer-events:auto;overflow:hidden;backdrop-filter:blur(5px)}
.panel-titlebar{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;padding:7px 14px;background:#1e3444;border-bottom:1px solid #4d6474;font-size:11px;color:#b7c7d3}.panel-titlebar button{min-height:30px;padding:3px 11px;font-size:11px}.game-panel-body{overflow:auto;overscroll-behavior:contain;padding:18px;min-height:0;scrollbar-width:thin}.game-panel-body h2{font-size:19px}.game-panel-body .card{padding:14px;margin-bottom:10px;box-shadow:none}.game-panel-body .work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.game-panel-body .rocket-layout{grid-template-columns:minmax(140px,230px) minmax(0,1fr)}.game-panel-body .admin-grid{grid-template-columns:1fr}.game-panel-body .actions{gap:7px}.game-panel-body p{font-size:12px}.game-panel-body .focus{margin-top:10px}
@media(max-width:760px){.game-shell{padding:8px}.game-shell .header{flex-direction:column;align-items:flex-start}.game-shell .header h1{font-size:18px}.game-shell .head-tools{width:100%;flex-wrap:wrap}.game-shell .head-tools button{min-height:30px;padding:4px 10px;font-size:11px}.game-stage{height:clamp(570px,calc(100dvh - 130px),760px)}.game-stage .mine-canvas{min-width:780px}.game-stage .pixel-toolbar{font-size:10px;padding:3px 8px}.game-stage .pixel-toolbar div{gap:2px}.pixel-motion,.pixel-zoom{padding:3px 6px;font-size:10px}.game-hud{left:6px;right:6px}.game-hud .resource{min-width:78px;padding:0 7px}.game-hud .resource strong{font-size:16px}.crew-point{left:20%;top:35%}.workshop-point{left:auto;right:7%;top:35%}.rocket-point{right:7%;top:24%}.game-target{left:7px;right:7px;bottom:151px}.game-target button{font-size:10px;min-height:30px}.game-actionbar{left:7px;right:7px;bottom:97px;gap:7px;padding:5px}.game-actionbar #scene-status{font-size:9px}.game-actionbar .primary-mine{padding:7px 9px;font-size:11px}.game-stage .game-dock{left:6px;right:6px;bottom:38px}.game-dock button{font-size:11px;padding:5px 9px}.game-panel-wrap{inset:112px 6px 99px}.game-panel{width:100%}.game-panel-body{padding:12px}.game-panel-body .work-grid,.game-panel-body .rocket-layout{grid-template-columns:1fr}.game-panel-body .planet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-panel-body .planet{padding:10px}.game-stage .pixel-readout{gap:4px;justify-content:flex-start}.game-stage .pixel-readout span{font-size:8px}.game-stage .pixel-caption{font-size:7px}}
.game-stage button{width:auto}.game-stage input[type=checkbox]{width:auto}.game-hud .resource em{display:none}.game-hud .resource{padding:3px 10px}.game-hud .resource strong{font-size:17px}.motion-indicator{font-size:10px;white-space:nowrap;color:#9ad9c7}.help-document{max-width:760px;margin:auto;font-size:14px;line-height:1.8}.help-document h2{margin:8px 0 18px}.help-document h3{font-size:16px;color:#e0d0ab;margin:0 0 10px}.help-document section{margin:22px 0;padding-top:18px;border-top:1px solid #3c5363}.help-document p{font-size:14px!important;margin:10px 0}.help-document li{margin:9px 0}.help-kicker{color:#95b7ca}.world-point{background:#152736dd}.game-dock{overflow-x:auto;scrollbar-width:thin}.game-dock button{min-height:36px;flex-shrink:0}.cinematic-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px;background:#020711ee}.cinematic{width:min(960px,100%);max-height:95dvh;overflow:auto;border:1px solid #5f7990;border-radius:12px;background:#081623;color:#e3eaf0;box-shadow:0 20px 80px #000}.cinematic header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px}.cinematic header button{width:auto;min-height:36px}.film-host{aspect-ratio:16/9}.film-host>div{width:100%!important;height:100%!important}.film-host button{width:auto}.film-host svg{max-width:none}.cinematic-caption{font-size:12px;padding:8px 18px;color:#b9c8d3}@media(max-width:760px){.cinematic-backdrop{padding:8px}.cinematic header{padding:8px;font-size:12px}.help-document{font-size:13px}.help-document p{font-size:13px!important}.game-hud{max-height:52px}.motion-indicator{font-size:9px}}

.cinematic-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px}.cinematic-head button{width:auto;min-height:36px}.cinematic-head span{font-size:12px;color:#b9c8d3}@media(max-width:760px){.cinematic-head{padding:8px}}

.game-hud .resourcebar{padding:5px 6px;min-height:0}.game-hud .resource{padding:0 10px;line-height:1.35}.game-hud .resource strong{line-height:1.4}.hide-markers .world-points,.hide-markers .game-target{display:none}.game-stage .pixel-toolbar>span{min-width:0}.game-stage .pixel-toolbar>div{flex-shrink:0}@media(max-width:760px){.game-stage .pixel-toolbar{gap:3px}.game-stage .pixel-toolbar>span{font-size:9px}.pixel-motion{padding:3px 4px}.game-stage .pixel-readout{gap:6px}}

.film-host button{border:0;box-shadow:none;min-height:24px;min-width:24px;padding:0;background:transparent;color:#fff}

/* Keep the deepest floor above the permanent controls instead of behind them. */
.game-stage .pixel-viewport{height:calc(100% - 164px)}

.beta-save-warning{display:flex;align-items:center;gap:14px;margin:0 0 14px;padding:12px 16px;border:1px solid #8c6c3b;border-radius:7px;background:#2a241b;color:#e9d6ac;font-size:12px}.beta-save-warning strong{white-space:nowrap}.beta-save-warning p{margin:0;flex:1;line-height:1.65}.beta-save-warning a{white-space:nowrap;color:#e9d6ac}@media(max-width:760px){.beta-save-warning{align-items:flex-start;flex-wrap:wrap;gap:5px 10px;padding:10px;font-size:11px}.beta-save-warning p{flex-basis:100%}}
