:root{color-scheme:dark;--bg:#19212c;--panel:#19212cf2;--line:#8295aa29;--text:#e3e9ec;--muted:#8f9eae;--gold:#ffb574;--green:#9cdb9d;--red:#f58b87;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text)}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:disabled{opacity:.4;cursor:default}svg{width:20px;height:20px;flex-shrink:0}#app{position:relative;width:100%;height:100dvh;overflow:hidden}#world{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline:0}#world:active{cursor:grabbing}#world.building{cursor:crosshair}.panel{background:var(--panel);border:1px solid var(--line);box-shadow:0 6px 20px #090e1826;border-radius:5px}.topbar{height:68px;position:absolute;top:0;left:0;right:0;display:flex;align-items:center;padding:0 22px;gap:30px;background:#151c27f5;border-bottom:1px solid var(--line)}.brand{display:flex;gap:9px;align-items:center;min-width:186px}.brand-mark{color:var(--gold);font-size:36px;line-height:1}.brand strong{display:block;font-size:17px;font-weight:650;letter-spacing:3px}.brand small{display:block;font-size:8px;letter-spacing:3.6px;color:var(--muted);margin-top:4px}.stocks{display:flex;gap:29px;flex:1;justify-content:center}.stock{display:grid;grid-template-columns:25px auto;column-gap:8px;min-width:67px}.stock svg{grid-row:1/3;width:23px;height:27px;align-self:center}.stock b{font-size:19px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2}.stock small{font-size:9px;color:var(--muted);margin-top:3px}.stock:nth-child(1) svg{color:#83d579}.stock:nth-child(2) svg{color:#bd9bfa}.stock:nth-child(3) svg{color:#55d9e5}.stock:nth-child(4) svg{color:#e6cc76}.stock:nth-child(5) svg{color:#f29b69}.top-actions{display:flex;gap:6px}.icon-button{width:30px;height:30px;border:1px solid var(--line);border-radius:4px;color:#a7b5c4;font-size:16px}.icon-button:hover{border-color:#eeb88199;color:var(--gold)}.day-panel{position:absolute;left:18px;top:86px;width:288px;padding:12px 14px 10px}.day-heading{display:flex;align-items:center;gap:10px}.day-heading>span:first-child{display:grid;place-items:center;border:1px solid #ffb57440;border-radius:50%;width:38px;height:38px;color:var(--gold);font-size:23px}.day-heading>div:not(.time-controls){flex:1}.day-heading div>span{display:block;color:var(--muted);font-size:9px;white-space:nowrap}.day-heading strong{display:block;font-size:19px;font-weight:600;margin-top:3px}#phase-time{font-size:13px;font-family:monospace;color:#e6cbab}.time-controls{display:grid;gap:3px}.time-controls button{height:22px;width:29px;border:1px solid var(--line);font-size:11px;border-radius:3px;color:#c2cdd8}.time-controls button:hover{background:#ffffff12}.progress-track{height:2px;background:#ffffff0c;margin:10px 0 8px}.progress-track i{display:block;height:100%;background:var(--gold);transition:width .3s}.day-footer{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--muted)}#night-button{font-size:10px;color:var(--gold);padding:3px 0}#night-button span{font-size:9px;color:#b1a089}.objective-panel{position:absolute;top:224px;left:22px;width:238px;padding:0 10px 0 2px;text-shadow:0 2px 4px #111}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--gold);display:flex;justify-content:space-between;margin-bottom:13px}.eyebrow span{color:var(--muted);letter-spacing:0}.objective{display:flex;align-items:center;gap:8px;font-size:11px;color:#b3bfca;margin:10px 0}.objective i{display:grid;place-items:center;width:13px;height:13px;font-size:9px;font-style:normal;border:1px solid #8899ac66;border-radius:2px}.objective.done{color:#8dc898}.objective.done i{background:#8dc89822;border-color:#8dc89877}.map-status{position:absolute;bottom:19px;left:20px;display:flex;align-items:center;gap:7px;color:#96a6b5;font-size:9px;max-width:30%}.live-dot{width:5px;height:5px;flex-shrink:0;background:var(--green);border-radius:50%}.divider{opacity:.5}#save-status{display:none}.map-tools{position:absolute;right:20px;bottom:231px;display:flex;padding:4px;gap:2px}.map-tools button{width:38px;height:30px;font-size:19px;color:var(--muted);border-radius:3px}.map-tools button:hover,.map-tools button.active{background:#c0d8ef12;color:var(--gold)}.minimap-panel{position:absolute;right:20px;bottom:20px;padding:10px;width:192px}.minimap-panel>div{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#b4c0cf;margin-bottom:8px}.minimap-panel small{font:9px monospace;color:var(--muted)}#minimap{display:block;width:170px;height:127.5px;cursor:crosshair;border:1px solid #8c9bb226}.minimap-caption{display:block;margin-top:8px;color:#a4cda5;font-size:8px;letter-spacing:1px}.minimap-caption i{float:right;color:var(--muted);font-style:normal}.inspector{position:absolute;right:20px;top:86px;width:254px;padding:16px}.inspector-head{display:flex;gap:9px;align-items:center}.inspector-head img{width:49px;height:49px}.inspector-head strong{display:block;font-size:15px}.inspector-head small{font-size:9px;color:var(--muted);display:block;margin-top:6px}.close-inspector{position:absolute;right:6px;top:5px;font-size:20px;color:var(--muted)}.inspector p{font-size:11px;color:#9babbc;line-height:1.8;margin:12px 0}.hp-track{height:3px;background:#ffffff12}.hp-track i{display:block;height:100%;background:var(--green)}.inspector-stats{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:7px}.inspector-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.action-button{border:1px solid #ffb57444;border-radius:3px;padding:9px;background:#ffb57410;color:var(--gold);font-size:11px;flex:1}.action-button:first-child{flex-basis:100%}.action-button small{display:block;font-size:9px;margin-top:4px;color:var(--muted)}.action-button.secondary{border-color:var(--line);color:#b5c3d1;background:transparent}.action-button:hover{background:#ffb57420}.cost-line{display:flex;gap:12px;color:var(--gold);font-size:12px}.cost-line span{display:flex;align-items:center;gap:4px}.cost-line svg{width:14px;height:14px}.cost-line .short{color:var(--red)}.command-area{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);width:min(840px,calc(100% - 450px));min-width:550px}.command-strip{display:flex;align-items:center;gap:11px;height:31px;padding:0 3px;font-size:10px;text-shadow:0 2px 3px #111}.dock-label{font-size:9px;letter-spacing:3px;color:var(--gold);border-right:1px solid #a3b2bf55;padding-right:10px}.hotkey{margin-left:auto;font-size:9px;color:#8e9ead}#selection-hint{color:#b8c7d5}.build-dock{padding:7px 9px 9px;position:relative}.build-dock nav{display:flex;gap:6px;height:29px;margin-bottom:5px;border-bottom:1px solid var(--line)}.build-dock nav button{font-size:10px;padding:0 14px 6px;color:var(--muted);position:relative}.build-dock nav button.active{color:var(--gold)}.build-dock nav button.active:after{content:"";position:absolute;bottom:-1px;height:2px;background:var(--gold);left:12px;right:12px}.build-dock nav button:hover{color:#fff}#building-list{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#536170 transparent;padding-bottom:2px;align-items:stretch}.building-card{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;width:72px;min-width:64px;flex:1;max-width:110px;height:92px;padding:0 3px 6px;border:1px solid #ffffff05;background:#ffffff03;border-radius:3px}.building-card>.sprite-icon{width:54px;height:54px;object-fit:contain;transition:transform .15s}.building-card strong{font-size:9px;font-weight:500;white-space:nowrap}.building-card small{display:flex;gap:5px;margin-top:5px;font-size:8px;color:#91a1b0}.building-card small span{white-space:nowrap;display:flex;align-items:center;gap:2px}.building-card small svg{width:9px;height:9px}.building-card:hover{border-color:#ffb57455;background:#ffb5740a}.building-card:hover>.sprite-icon{transform:translateY(-2px)}.building-card.selected{border-color:#ffb574;background:#ffb57413}.building-card.selected strong{color:var(--gold)}.building-card.unaffordable{opacity:.42}.card-key{position:absolute;top:3px;right:5px;color:#687c90;font:8px monospace}#cancel-build{position:absolute;right:7px;top:7px;width:22px;height:23px;font-size:19px;color:var(--muted)}.bottom-caption{display:flex;justify-content:space-between;padding:8px 2px 0;font-size:8px;color:#7d8d9f}.pause-label{position:absolute;top:88px;left:50%;transform:translateX(-50%);padding:10px 22px;background:var(--panel);border:1px solid #ffb57455;border-radius:4px;font-size:12px;letter-spacing:2px;color:var(--gold)}.pause-label span{font-size:9px;display:block;color:var(--muted);margin-top:5px;letter-spacing:0}#toast{position:absolute;left:50%;bottom:215px;max-width:80%;transform:translate(-50%,7px);opacity:0;pointer-events:none;padding:11px 20px;border:1px solid #ffb57466;border-radius:4px;background:#19212cf5;color:#f5cda6;font-size:12px;transition:opacity .2s,transform .2s;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}.modal-layer{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:24px;background:#0c121cba;backdrop-filter:blur(3px)}.modal{position:relative;width:min(490px,100%);background:linear-gradient(140deg,#26313f,#19212d);border:1px solid #92a7c044;border-radius:7px;padding:34px;box-shadow:0 30px 100px #0006;max-height:92dvh;overflow:auto;outline:0}.modal h2{font-size:25px;letter-spacing:1px;line-height:1.5;margin:0 0 18px;font-weight:600}.modal .eyebrow{font-size:9px;letter-spacing:2px}.guide-row{font-size:12px;line-height:1.9;color:#9baec1;margin:14px 0}.guide-row b{color:#e4cfb7}.modal-primary{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 20px;background:var(--gold);color:#222b35;border:1px solid #ffd5a4;border-radius:3px;font-size:14px;font-weight:700;margin-top:22px;box-shadow:0 3px 0 #b97944}.modal-primary:hover{background:#ffca91}.modal-primary b{font-size:22px;line-height:1}.modal-secondary{display:block;width:100%;padding:12px;color:#b8c5d3;border:1px solid var(--line);border-radius:3px;margin-top:12px;font-size:12px}.modal-secondary:hover{background:#ffffff06}.fineprint{font-size:10px;color:var(--muted);line-height:1.8;margin:18px 0 0;text-align:center}.research-choice{display:block;width:100%;padding:16px;text-align:left;border:1px solid #93a2b333;border-radius:4px;margin-top:10px;font-size:14px;color:var(--gold);background:#ffffff03}.research-choice span{display:block;font-size:11px;color:var(--muted);margin-top:7px}.research-choice:hover{border-color:var(--gold);background:#ffb5740c}.lost-stats{display:flex;gap:8px;margin:20px 0}.lost-stats div{flex:1;text-align:center;padding:16px 7px;border:1px solid var(--line)}.lost-stats b{display:block;font-size:26px;color:var(--gold)}.lost-stats span{display:block;font-size:10px;color:var(--muted);margin-top:7px}.hidden{display:none!important}
/* Launch screen keeps the actual live map visible beside the controls. */
.modal-layer:has(.launch-content){background:linear-gradient(90deg,#111925fa 0%,#111925f0 25%,#11192590 47%,#11192505 73%),linear-gradient(0deg,#111925b0,transparent 24%,transparent 80%,#11192590);backdrop-filter:none;justify-content:flex-start;padding:6vw}.modal:has(.launch-content){width:420px;background:none;border:0;box-shadow:none;padding:0;overflow:visible}.launch-kicker{font-size:9px;letter-spacing:2.5px;color:#a0afbf;display:flex;gap:9px;align-items:center}.launch-kicker i{width:5px;height:5px;background:var(--gold)}.launch-emblem{color:var(--gold);font-size:53px;margin:32px 0 13px;line-height:1}.launch-content h1{font-size:63px;line-height:1.18;letter-spacing:5px;margin:0;font-weight:800;color:#f0f1eb}.launch-content h1 span{display:block}.english-title{font-size:14px;letter-spacing:10px;color:var(--gold);margin:19px 0 27px;font-weight:500}.lead{color:#a6b5c5;font-size:14px;line-height:2;margin:0}.launch-rule{display:flex;align-items:center;gap:10px;color:#b8c6d2;font-size:10px;letter-spacing:1px;margin:24px 0}.launch-rule i{color:#546375;font-style:normal}.launch-content .modal-primary{width:315px;margin-top:27px}.launch-content .modal-secondary{width:315px}.launch-meta{display:flex;justify-content:space-between;width:315px;font-size:8px;color:#788ba0;margin-top:27px}.launch-map-label{position:fixed;right:11vw;bottom:21vh;font-size:13px;letter-spacing:2px;color:#e9c296;pointer-events:none;border-left:2px solid #e5a35e88;padding:8px 12px}.launch-map-label span{display:block;font-size:9px;color:#8d9eae;letter-spacing:1px;margin-top:7px}#app:has(.modal-layer:not(.hidden) .launch-content)>.topbar,#app:has(.modal-layer:not(.hidden) .launch-content)>.day-panel,#app:has(.modal-layer:not(.hidden) .launch-content)>.objective-panel,#app:has(.modal-layer:not(.hidden) .launch-content)>.command-area,#app:has(.modal-layer:not(.hidden) .launch-content)>.map-tools,#app:has(.modal-layer:not(.hidden) .launch-content)>.map-status,#app:has(.modal-layer:not(.hidden) .launch-content)>.minimap-panel{visibility:hidden}
@media(min-width:1500px){.command-area{width:840px}.building-card{min-width:73px}.topbar{padding:0 28px}.stocks{gap:45px}}
@media(max-width:1100px){.brand{min-width:146px}.stocks{gap:16px}.topbar{gap:18px}.stock{min-width:55px}.command-area{left:18px;transform:none;width:calc(100% - 248px);min-width:0}.map-status{display:none}.building-card{min-width:65px}.hotkey{display:none}.minimap-panel{width:182px}#minimap{width:160px;height:120px}.launch-content h1{font-size:56px}.launch-content .modal-primary,.launch-content .modal-secondary,.launch-meta{width:280px}}
@media(max-width:700px){.topbar{height:99px;padding:10px 13px 8px;flex-wrap:wrap;gap:6px;align-content:space-between;justify-content:space-between}.brand{min-width:0;gap:6px}.brand-mark{font-size:28px}.brand strong{font-size:14px;letter-spacing:2px}.brand small{font-size:6px;letter-spacing:2.5px;margin-top:2px}.top-actions{gap:5px}.icon-button{width:28px;height:28px;font-size:14px}.stocks{width:100%;order:3;flex:auto;justify-content:space-between;gap:6px}.stock{min-width:0;grid-template-columns:17px auto;gap:2px 5px}.stock svg{width:16px;height:23px}.stock b{font-size:15px}.stock small{font-size:7px;margin-top:0}.day-panel{top:110px;left:11px;width:242px;padding:9px 11px}.day-heading{gap:7px}.day-heading>span:first-child{width:30px;height:30px;font-size:20px}.day-heading strong{font-size:16px}.day-heading div>span{font-size:8px}.time-controls{display:flex;align-self:flex-start}.time-controls button{width:25px;height:24px}.day-heading{flex-wrap:wrap}.day-heading #phase-time{margin-left:auto}.day-heading .time-controls{position:absolute;left:253px;top:0;padding:5px;background:var(--panel);border:1px solid var(--line);border-radius:4px;gap:3px}.progress-track{margin:8px 0 6px}.day-footer{font-size:8px}#night-button{font-size:9px}#night-button span{font-size:8px}.objective-panel{left:14px;top:219px;width:240px;pointer-events:none}.objective-panel .eyebrow,.objective.done{display:none}.objective{font-size:9px;margin:0}.objective:not(.done)~.objective:not(.done){display:none}.objective i{width:10px;height:10px}.minimap-panel{display:none}.map-tools{right:11px;bottom:184px;padding:3px;gap:0}.map-tools button{width:29px;height:28px;font-size:17px}.command-area{left:10px;right:10px;width:auto;bottom:calc(8px + env(safe-area-inset-bottom))}.command-strip{height:27px;font-size:9px}.dock-label{font-size:8px}.build-dock{padding:6px 6px 7px}.build-dock nav{gap:0;height:27px}.build-dock nav button{font-size:10px;padding:0 12px 6px}#building-list{gap:4px}.building-card{min-width:73px;height:90px}.building-card>.sprite-icon{width:50px;height:50px}.building-card strong{font-size:9px}.building-card small{font-size:8px;gap:3px}.card-key{display:none}.bottom-caption{font-size:7px;padding-top:7px}.bottom-caption>span:first-child{font-size:0}.bottom-caption>span:first-child:before{content:'拖动地图 · 双指缩放';font-size:7px}.pause-label{left:auto;right:11px;top:152px;transform:none;padding:8px;font-size:10px}.pause-label span{font-size:7px;max-width:75px}.inspector{top:auto;bottom:184px;left:11px;right:11px;width:auto;max-height:40dvh;overflow:auto;padding:12px}.inspector.placement-info{display:none}.inspector-head img{width:40px;height:40px}.inspector p{font-size:10px;margin:8px 0}.inspector-actions{flex-wrap:nowrap;margin-top:10px}.action-button:first-child{flex-basis:50%}.action-button{font-size:10px;padding:7px}.action-button small{font-size:8px}#toast{bottom:235px;font-size:10px;padding:10px 13px;max-width:85%;width:max-content}.modal-layer{padding:16px}.modal{padding:24px;max-height:92dvh}.modal h2{font-size:22px}.guide-row{font-size:11px}.modal-layer:has(.launch-content){padding:32px;background:linear-gradient(90deg,#111925ed,#111925c0),linear-gradient(0deg,#111925,transparent)}.modal:has(.launch-content){width:100%}.launch-kicker{font-size:7px;letter-spacing:1.5px}.launch-emblem{font-size:44px;margin:28px 0 12px}.launch-content h1{font-size:56px;letter-spacing:5px}.english-title{font-size:12px;letter-spacing:8px;margin:16px 0 25px}.lead{font-size:12px}.launch-rule{font-size:9px;gap:9px;margin:22px 0}.launch-content .modal-primary,.launch-content .modal-secondary,.launch-meta{width:100%}.launch-content .modal-primary{margin-top:25px}.launch-map-label{display:none}.launch-meta{margin-top:24px}.modal-primary{font-size:13px}.research-choice{padding:13px}.research-choice span{line-height:1.6}}
@media(max-width:360px){.day-panel{width:215px}.day-heading .time-controls{left:225px}.day-heading div>span{font-size:7px}.day-footer{font-size:7px}.launch-content h1{font-size:48px}.launch-rule{font-size:8px;gap:6px}.modal-layer:has(.launch-content){padding:25px}.stock b{font-size:13px}.stock{column-gap:3px}.brand strong{font-size:13px}.objective-panel{top:215px}.bottom-caption{font-size:6px}}
@media(max-height:650px){.objective-panel{display:none}.modal{max-height:94dvh;padding:22px}.launch-emblem{font-size:30px;margin:13px 0 8px}.launch-content h1{font-size:42px}.english-title{font-size:10px;margin:12px 0 16px}.lead{font-size:11px}.launch-rule{margin:15px 0;font-size:9px}.launch-content .modal-primary{margin-top:17px;padding:12px 17px}.launch-content .modal-secondary{padding:9px}.launch-meta{margin-top:16px}.launch-kicker{font-size:8px}.inspector{max-height:calc(100dvh - 285px);overflow:auto}.minimap-panel{display:none}.map-tools{bottom:210px}}
@media(max-height:450px) and (min-width:701px){.topbar{height:52px}.day-panel{top:61px;padding:7px 10px}.inspector{top:61px}.command-area{width:calc(100% - 270px);bottom:8px}.building-card{height:73px}.building-card>.sprite-icon{width:40px;height:40px}.map-tools{bottom:15px}.bottom-caption{display:none}.launch-content h1 span{display:inline}.launch-content h1{font-size:42px}.launch-emblem{display:none}.launch-rule{margin:10px 0}.launch-meta{margin-top:10px}.launch-content .modal-primary{padding:10px 14px}.modal-layer:has(.launch-content){padding:25px 6vw}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Account and save controls share the same compact game panels. */
.cloud-button{height:30px;max-width:110px;white-space:nowrap;padding:0 9px;border:1px solid #ffb57444;color:var(--gold);font-size:10px;border-radius:4px}.cloud-button.attention{color:#ffce85;border-color:#ffce8580;background:#ffce8512}.launch-account{display:block;text-align:left;color:#d4b594;font-size:11px;padding:0;margin:22px 0 0;text-decoration:underline;text-underline-offset:5px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin:0 0 20px}.auth-tabs button{flex:1;padding:12px;color:var(--muted);font-size:13px;border-bottom:2px solid transparent}.auth-tabs button.active{color:var(--gold);border-color:var(--gold)}#auth-form label{display:block;font-size:11px;color:#bdc8d5;margin-top:15px}#auth-form input{display:block;width:100%;height:43px;margin-top:8px;padding:10px 12px;background:#111923;border:1px solid #7c8da444;border-radius:4px;color:#e7ecf3;font:13px inherit}#auth-form input:focus{outline:1px solid var(--gold);border-color:var(--gold)}#auth-form input::placeholder{font-size:11px;color:#6e8196}.form-error{font-size:11px;line-height:1.7;color:#ecc192;min-height:18px;white-space:pre-wrap}.save-choice{border:1px solid var(--line);border-radius:4px;padding:14px;margin:12px 0}.save-choice strong{display:block;font-size:12px;color:var(--gold)}.save-choice span{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:7px}@media(max-width:700px){.cloud-button{height:28px;font-size:9px;padding:0 6px;max-width:86px}.top-actions{gap:4px}.launch-account{font-size:10px;margin-top:18px}}@media(max-height:650px){.launch-account{margin-top:13px;font-size:10px}.launch-meta{margin-top:13px}}
