@charset "UTF-8";
#detail-dialog{max-height:calc(100dvh - 32px);overflow:auto}#close-dialog{position:sticky;top:0;z-index:3;min-width:40px;min-height:40px;border-radius:9px;background:#fff0d5;box-shadow:0 2px 5px #332b3320}
#detail-dialog{max-height:calc(100dvh - 32px);overflow:auto}#close-dialog{position:sticky;top:0;z-index:3;min-width:40px;min-height:40px;border-radius:9px;background:#fff0d5;box-shadow:0 2px 5px #332b3320}
.resource-route{margin-top:10px;padding:10px;border-radius:10px;background:#e2f0e6;color:#203e3b;border:1px solid #759e8c;font-size:13px;line-height:1.5}
.resource-route ol{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0;padding:0;list-style:none;counter-reset:steps}.resource-route li{counter-increment:steps;padding:4px 6px;border-radius:6px;background:#fff9e9;color:#65574a}.resource-route li::before{content:counter(steps) ". "}.resource-route li.done{background:#285a52;color:#fff}.resource-route p{margin:6px 0}
.resource-chain{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.resource-chain .game-icon{width:25px;height:25px}
.resource-targets{display:grid;gap:8px}.resource-targets button{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;text-align:left;padding:10px;border:1px solid #68958a;border-radius:10px;background:#e3f0e7;color:#173d38}.resource-targets button>span:first-of-type{flex:1}.resource-targets small{display:block;margin-top:3px}.resource-targets .game-icon{width:34px;height:34px;flex-shrink:0}.resource-targets h3{margin:10px 0 0}.inventory-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.inventory-actions button{min-height:44px;padding:8px;border-radius:8px;background:#285a52;color:white}
.life-balances{display:grid;gap:8px}.stock-balance{padding:10px;border:1px solid #b59c74;background:#f3e1bc;border-radius:10px}.stock-balance>div{display:flex;gap:6px;align-items:center}.stock-balance strong{margin-left:auto;font-size:18px;white-space:nowrap}.stock-balance .game-icon{width:26px;height:26px}.stock-balance .net{margin:4px 0;color:#1e635c}.stock-balance .negative,.stock-balance .unmet{color:#a22f20}.stock-balance small{display:block;font-size:12px;line-height:1.5}.stock-balance button,.power-balance button,.production-line button{min-height:36px;margin-top:6px;padding:6px 10px;border:1px solid #75988b;border-radius:7px;background:#e3f0e5;color:#173d38;font-size:12px}
.power-balance{margin:12px 0;padding:12px;border-radius:10px;background:#193d43;color:#fff1d6}.power-balance h3{margin:0 0 8px;font-size:16px}.power-balance p{font-size:12px;line-height:1.6}.power-numbers{display:grid;grid-template-columns:1fr 1fr;gap:8px}.power-numbers span{font-size:12px}.power-numbers b{display:block;font-size:19px}
.production-lines,.material-balances{margin:14px 0}.production-lines summary,.material-balances summary{min-height:36px;cursor:pointer;font-weight:bold;font-size:15px}.production-line{margin-top:8px;padding:10px;border:1px solid #80a69a;border-radius:10px;background:#e2eee2}.production-line>b{display:flex;gap:6px;align-items:center}.production-line>span{display:block;font-size:12px;color:#285b48;margin-top:4px}.production-line.stopped{border-color:#bb694d;background:#f4dfc9}.production-line.stopped>span{color:#982f22}.production-line p{font-size:13px;line-height:1.9;margin:5px 0}.production-line .game-icon{width:24px;height:24px;vertical-align:middle}.production-line>b .game-icon{width:28px;height:28px}
.tile .source-owner{position:absolute;z-index:5;top:1px;left:1px;padding:1px 3px;border-radius:3px;font-size:10px;line-height:1.25;background:#493e36;color:white;pointer-events:none}.tile .source-owner.ours{background:#12544f}.tile .source-owner.rival{background:#842f38}.starter-note{border-left:3px solid #81c7a7;padding:6px 8px;background:#285a52;color:#fff}
.event-banner{max-height:104px;font-size:12px;line-height:1.4}.event-banner button{min-height:30px;font-size:12px}.action-sheet.minimized{top:166px!important}
@media(orientation:landscape) and (max-height:430px){.event-banner{width:min(310px,42vw);max-height:82px}.action-sheet:not(.minimized){max-height:calc(100dvh - 155px)!important}.action-sheet.minimized{top:145px!important}}
.app.base-active .bottom-nav{display:none}
#base-page{position:relative;height:100dvh;overflow:auto;padding:68px 14px 24px;background:radial-gradient(circle at 50% 15%,#635042,#252d34 65%,#151f26);color:#f5ead6}
.base-back{position:fixed;top:max(8px,env(safe-area-inset-top));left:8px;z-index:12;min-height:44px;border:1px solid #e3c491;border-radius:12px;background:#203a40;color:#fff1d6;padding:0 14px}
.base-title{max-width:900px;margin:0 auto 12px;padding-right:40px}.base-title small{color:#89ded6;font-size:11px;letter-spacing:.08em}.base-title h1{font-size:25px;margin:3px 0 5px}.base-title p{font-size:13px;line-height:1.5;margin:0;color:#dfd4bd}
.base-overview{max-width:900px;margin:0 auto 12px;display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.base-overview div{background:#19343af0;border:1px solid #61847f;border-radius:10px;padding:8px;font-size:12px}.base-overview b{display:block;font-size:16px;color:#ffe3a9}
.base-layout{max-width:900px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:12px}.base-scene,.base-work{border:1px solid #9c866d;border-radius:16px;background:#20353bcf;padding:14px}.base-scene{min-height:260px;position:relative;overflow:hidden}.base-scene h2,.base-work h2{font-size:18px;margin:0 0 10px}.base-art{height:230px;position:relative;border-radius:14px;background:linear-gradient(#3c5360 0 48%,#b16e50 48% 100%);overflow:hidden}.base-art::after{content:"";position:absolute;left:-5%;right:-5%;bottom:-35%;height:55%;background:#9a5842;border-radius:50%}.base-art .habitat{position:absolute;z-index:2;left:36%;top:29%;width:29%;height:38%;border:5px solid #e9d2a9;border-radius:50% 50% 16% 16%;background:#ded9ca;box-shadow:0 10px 0 #794635}.base-art .habitat::after{content:"";position:absolute;left:32%;top:45%;width:35%;height:45%;border-radius:8px 8px 0 0;background:#6b91a2}.base-module{position:absolute;z-index:3;display:grid;place-items:center;width:53px;height:53px;border:2px solid #e9d2a9;border-radius:14px;background:#294d57;box-shadow:0 5px 0 #6e453a;color:#fff;text-align:center}.base-module .game-icon{width:29px;height:29px}.base-module small{display:block;font-size:8px}.base-module.waterPlant{left:8%;top:52%}.base-module.oxygenPlant,.base-module.moxie{left:69%;top:38%}.base-module.greenhouse{left:66%;top:68%}.base-module.solar{left:7%;top:13%}.base-module.battery{left:75%;top:8%}.base-module.workshop,.base-module.recycler{left:20%;top:72%}.base-module.smelter{left:51%;top:72%}
.base-tabs{display:flex;gap:6px;overflow:auto;margin-bottom:12px}.base-tabs button{min-height:44px;min-width:82px;padding:7px;border:1px solid #8ea9a2;border-radius:10px;background:#28454b;color:#fff3db}.base-tabs button[aria-pressed="true"]{background:#a96b47;border-color:#ffe1ad}
.base-flow{display:grid;gap:3px;min-height:86px;padding:8px;border-radius:12px;background:#142a31}.base-flow-row{display:flex;align-items:center;gap:5px;overflow:auto;border-bottom:1px solid #55706a;padding:4px}.base-flow-row:last-child{border:0}.base-flow span{flex:1;min-width:62px;text-align:center;font-size:11px}.base-flow .game-icon{display:block;width:38px;height:38px;margin:auto}.base-flow b{color:#ffc487}.base-list{display:grid;gap:7px;margin-top:12px}.base-device{display:grid;grid-template-columns:40px 1fr auto;gap:8px;align-items:center;padding:8px;border:1px solid #63877f;border-radius:12px;background:#1c3940}.base-device .game-icon{width:38px;height:38px}.base-device-info{min-width:0}.base-device b{font-size:13px}.base-device small{display:block;color:#cbd9cf;font-size:11px;line-height:1.4}.base-device .base-recipe{color:#ffe2b0;margin-top:4px}.base-device a{display:inline-block;margin-top:4px;font-size:12px;color:#8de0dc}.base-device button,.base-work .base-more{min-height:44px;border:1px solid #efc794;border-radius:9px;background:#bb734e;color:#fff;padding:6px 10px;font-weight:bold}.base-device button:disabled{opacity:.5}.base-more{margin-top:10px;text-decoration:none;display:inline-flex;align-items:center}
.base-fleet{margin-top:10px;border:1px solid #789b92;border-radius:10px;padding:10px;background:#162e35}.base-fleet summary{cursor:pointer;font-weight:bold}.base-fleet>div{display:grid;gap:5px;margin-top:8px}.base-fleet button{display:flex;align-items:center;gap:8px;min-height:44px;border:1px solid #af9b80;border-radius:8px;background:#2b4b50;color:#fff;padding:5px}.base-fleet button:disabled{opacity:.5}.base-fleet .game-icon{width:34px;height:34px}.base-fleet p{font-size:12px;line-height:1.5;color:#d8d5c3}
.base-device .base-tech-link{display:block;min-height:32px;margin-top:4px;padding:2px 7px;border-color:#79baba;background:#244a50;color:#c1eeea;font-size:12px;text-align:left}
.base-overview div{font-size:13px}.base-flow span{font-size:12px}.base-device small{font-size:13px}.base-device a{font-size:13px}
.base-device.focused{border-color:#f3c789;box-shadow:0 0 0 2px #c78659aa}.base-device .base-device-choice{display:grid;place-items:center;width:40px;height:44px;min-height:44px;padding:0;border:0;background:transparent}.base-device .base-name-button{display:block;min-height:28px;padding:0;border:0;background:transparent;color:#fff2d9;text-align:left}.base-device-detail{margin-top:9px;padding:10px;border:1px solid #dfb77c;border-radius:12px;background:#3a3638;color:#f8eacb}.base-device-detail h3{display:flex;align-items:center;gap:7px;margin:0 0 7px;font-size:16px}.base-device-detail .game-icon{width:30px;height:30px}.base-device-detail p{margin:5px 0;font-size:13px;line-height:1.5}.base-device-detail a{display:inline-block;margin-top:6px;color:#95e4e0;font-size:13px}
.base-module.recycler{left:5%;top:68%}.base-module.workshop{left:24%;top:68%}.base-module.smelter{left:47%;top:68%}.base-module.kiln{left:48%;top:11%}.base-module.moxie{left:80%;top:12%}.base-module.oxygenPlant{left:74%;top:40%}.base-module.battery{left:26%;top:12%}.base-module.greenhouse{left:73%;top:68%}
.base-flow-row>span{min-width:0;overflow-wrap:anywhere}.base-flow-row>.game-icon{flex-shrink:0}.base-flow .game-icon{width:32px;height:32px}
.base-art{background:radial-gradient(circle at 85% 18%,#d79273 0 18px,transparent 19px),linear-gradient(#223d4f 0 48%,#be7a55 48% 100%)}.base-art::before{content:"";position:absolute;left:-5%;right:-5%;top:41%;height:35%;background:#995842;clip-path:polygon(0 100%,18% 32%,27% 68%,48% 5%,61% 83%,76% 26%,100% 100%)}.base-art .starter-panel{position:absolute;z-index:3;left:8%;bottom:15%;width:72px;height:30px;transform:skew(-20deg);background:repeating-linear-gradient(90deg,transparent 0 16px,#90d1d3 17px 19px),repeating-linear-gradient(0deg,#204d69 0 9px,#83d5d8 10px 12px);border:3px solid #d5cbaa;box-shadow:0 10px 0 -5px #4b4843}.base-art .starter-lander{position:absolute;z-index:3;right:9%;top:34%;width:52px;height:64px;border:5px solid #dfd2b9;border-radius:18px 18px 5px 5px;background:linear-gradient(#ede7d1 0 46%,#708e99 47% 76%,#e5c499 77%);box-shadow:0 8px 0 #754837}.base-art .starter-lander::after{content:"";position:absolute;left:-13px;right:-13px;bottom:-19px;height:21px;border-left:5px solid #e0c69d;border-right:5px solid #e0c69d;transform:skew(-12deg)}.base-fortify{color:#d9efcf;font-size:13px}
.tile[data-area="0"]{box-shadow:inset 0 0 0 1px #4cdbf68c}.tile[data-area="1"]{box-shadow:inset 0 0 0 1px #f5908a8c}.tile[data-area="0"][data-connected="false"]{box-shadow:inset 0 0 0 2px #ffcf78}.tile .pod-mark{position:absolute;z-index:5;right:0;bottom:1px;font-size:10px;border-radius:3px;background:#163b40;color:#fff;padding:1px 3px}
@media(max-width:650px){.base-overview{grid-template-columns:repeat(3,1fr)}.base-layout{grid-template-columns:1fr}.base-scene{min-height:0}.base-art{height:145px}.base-title h1{font-size:21px}.base-module{width:43px;height:43px}.base-module .game-icon{width:25px;height:25px}.base-module small{font-size:7px}.base-art .starter-lander{transform:scale(.75);transform-origin:top right}.base-art .starter-panel{transform:skew(-20deg) scale(.75);transform-origin:bottom left}}
@media(orientation:landscape) and (max-height:430px){#base-page{padding-top:54px}.base-scene{min-height:0}.base-art{height:175px}.base-layout{grid-template-columns:1fr 1.25fr}}
.map{position:relative}.pod-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}.pod-links line{stroke-width:7;stroke-linecap:round;stroke-dasharray:10 8;opacity:.88}.pod-links .team-0{stroke:#65e2e5}.pod-links .team-1{stroke:#ff897b}.pod-links .disconnected{stroke:#ffd183;opacity:.6}
html[lang="en"] .atlas-links a[href*="map=phb"]{display:none}
.pod-impact{margin:7px 0;padding:8px 10px;border-left:3px solid #79d9dd;border-radius:6px;background:#1b3f43;color:#f5e8c7;font-size:12px;line-height:1.5}
.tech-detail p{font-size:14px;line-height:1.55}.tech-detail .detail-title small,.tech-detail .research-status{font-size:12px}.tech-detail .detail-actions .action,.tech-detail .learn-link{font-size:13px;min-height:48px}
/* Desktop browser zoom must not make the map controls unreadable. */
html.desktop-game .round-chip{top:calc(14px * var(--desktop-ui-scale));left:calc(16px * var(--desktop-ui-scale));width:44px;height:44px;transform:scale(var(--desktop-ui-scale));transform-origin:top left}
html.desktop-game .hud{top:calc(14px * var(--desktop-ui-scale));left:calc(72px * var(--desktop-ui-scale));right:auto!important;width:440px!important;max-width:none;height:44px;transform:scale(var(--desktop-ui-scale));transform-origin:top left}
html.desktop-game #dp-chip{width:70px;flex:0 0 70px}html.desktop-game #energy-chip{display:block;flex:0 0 105px}html.desktop-game #supply-chip{flex:1}
html.desktop-game .hud-chip small,html.desktop-game #dp-chip small{font-size:10px}html.desktop-game .hud-chip strong,html.desktop-game #dp-chip strong{font-size:16px}html.desktop-game #supply .resource-reading>small{font-size:10px}
html.desktop-game .event-banner{top:calc(68px * var(--desktop-ui-scale));left:calc(16px * var(--desktop-ui-scale));right:auto;width:400px;max-height:110px;font-size:14px;line-height:1.5;transform:scale(var(--desktop-ui-scale));transform-origin:top left}
html.desktop-game .event-banner button{font-size:12px;min-height:30px}
html.desktop-game .action-sheet,html.desktop-game .action-sheet.minimized{left:calc(16px * var(--desktop-ui-scale))!important;right:auto!important;top:calc(190px * var(--desktop-ui-scale))!important;bottom:auto!important;width:390px!important;max-height:440px!important;transform:scale(var(--desktop-ui-scale));transform-origin:top left}
html.desktop-game .action-sheet.minimized,html.desktop-game #map-page.alerting .action-sheet.minimized{top:calc(140px * var(--desktop-ui-scale))!important;width:auto!important;max-width:390px!important;height:52px!important}
html.desktop-game .sheet-toggle{font-size:14px}html.desktop-game .sheet-desc,html.desktop-game .sheet-meta,html.desktop-game .pod-impact{font-size:13px}html.desktop-game .action{font-size:14px}html.desktop-game .action small{font-size:11px}
html.desktop-game .map-zoom{top:calc(16px * var(--desktop-ui-scale));right:calc(16px * var(--desktop-ui-scale));transform:scale(var(--desktop-ui-scale));transform-origin:top right}
html.desktop-game .map-zoom button{width:48px;height:48px}
html.desktop-game .map-scale{left:calc(16px * var(--desktop-ui-scale));bottom:calc(16px * var(--desktop-ui-scale));font-size:10px;transform:scale(var(--desktop-ui-scale));transform-origin:bottom left}
html.desktop-game .bottom-nav{right:calc(16px * var(--desktop-ui-scale));bottom:calc(16px * var(--desktop-ui-scale));width:auto;height:62px;transform:scale(var(--desktop-ui-scale));transform-origin:bottom right}
html.desktop-game .bottom-nav button{width:62px;height:62px;min-height:62px;flex:0 0 62px;font-size:10px}html.desktop-game .bottom-nav button span{font-size:24px}html.desktop-game .bottom-nav .next-turn{width:106px;flex:0 0 106px;font-size:12px}html.desktop-game .bottom-nav .next-turn span{font-size:25px}
html.desktop-game .tech-node b,html.desktop-game .tech-hub b{font-size:calc(14px * var(--desktop-ui-scale))}
html.desktop-game .tree-controls{top:calc(68px * var(--desktop-ui-scale));right:calc(16px * var(--desktop-ui-scale));transform:scale(var(--desktop-ui-scale));transform-origin:top right}
html.desktop-game .lab-head{top:calc(14px * var(--desktop-ui-scale));right:calc(16px * var(--desktop-ui-scale))}html.desktop-game .lab-head .outline{transform:scale(var(--desktop-ui-scale));transform-origin:top right}
html.desktop-game .tech-detail{right:calc(16px * var(--desktop-ui-scale));bottom:calc(16px * var(--desktop-ui-scale));width:390px;max-height:460px;transform:scale(var(--desktop-ui-scale));transform-origin:bottom right}
html.desktop-game #base-page{padding:calc(64px * var(--desktop-ui-scale)) calc(20px * var(--desktop-ui-scale)) 24px}
html.desktop-game #base-content{zoom:var(--desktop-ui-scale)}
html.desktop-game .base-back{top:calc(12px * var(--desktop-ui-scale));left:calc(12px * var(--desktop-ui-scale));transform:scale(var(--desktop-ui-scale));transform-origin:top left}
html.desktop-game .base-layout{align-items:start}
