/* A single RTS command deck. Coordinates use the existing 1600 × 900 interface. */
:root{--deck-height:270px;--rts-paper:#e0e2d4;--rts-muted:#939c92;--rts-gold:#d7be7e;--rts-line:#51574b}
#game{display:block;background:#151915;color:var(--rts-paper)}
#topbar{position:absolute;inset:0 0 auto;height:46px;display:flex;gap:18px;padding:0 15px;background:#1c211e;border:0;border-bottom:1px solid #656958;box-shadow:0 2px 8px #0008;font-size:15px}
#menu-button{height:45px;width:136px;min-width:136px;margin:0;border:0;border-right:1px solid #50554b;background:#252b25;color:#d9ddcf;font-size:19px;box-shadow:none}
#menu-button .brand-mark{display:none}
#topbar .location{min-width:130px;gap:5px;padding:0;border:0;font-size:14px}
#topbar .location b{font-size:15px;font-weight:500;color:#c3caba}
#topbar .location span{font-size:12px;color:#90998b}
.operation-clock{display:flex;align-items:center;gap:14px;color:#b5bea9;min-width:210px;font-size:13px}
#wave-label{font-size:14px;color:#d7dccc}#wave-timer{font-size:13px;color:#969f8f}.wave-track{display:none}
#topbar .resource{margin-left:auto;gap:8px;min-width:130px}#resources{font-size:23px;color:#e1c890;font-weight:600}#income{font-size:12px;color:#9aa68c}
#topbar .stat{display:flex;gap:8px;align-items:center;font-size:14px}#population{font-size:17px;font-weight:500}
#topbar .base-stat{width:84px;min-width:84px;font-size:12px}#topbar .base-stat .bar{height:3px;margin-top:3px}#hq-text{font-size:13px}
#clock{font-size:16px;color:#bcc4b4;min-width:45px}
#topbar>button:not(#menu-button){width:auto;min-width:30px;height:32px;padding:0 7px;border:1px solid #51594d;background:#272e27;box-shadow:none;font-size:15px;color:#bac5af}
#help-button{color:#ead298!important;border-color:#8f815b!important;white-space:nowrap}
#intel-toggle.report-ready{color:#d8dca2!important;border-color:#a5b16d!important}
#battle-area{position:absolute;left:0;right:0;top:46px;bottom:var(--deck-height);width:auto;height:auto;min-height:0;border:0}
#battlefield{display:block;width:100%;height:100%}
#command-panel{position:absolute;inset:auto 0 0;height:var(--deck-height);display:grid;grid-template-columns:280px minmax(0,1fr) 604px;gap:0;min-height:0;padding:0;background:#222823;border:0;border-top:2px solid #777a63;box-shadow:0 -3px 12px #0007}
#command-panel>section{min-width:0;min-height:0;border:0;border-right:1px solid #51594b;background:none;box-shadow:none;padding:10px 12px}
#command-panel .panel-title{height:25px;margin:0 0 6px;padding:0;border:0;font-size:15px;font-weight:500;color:#c5cdbb;display:flex;align-items:center;justify-content:space-between}
#command-panel .panel-title small{font-size:12px;color:#8d9c85}
#minimap-panel{display:flex;flex-direction:column;gap:0}
#minimap{width:254px;height:154px;display:block;border:1px solid #7b8069;background:#0e1411;box-shadow:none}
.minimap-controls{height:26px;display:flex;align-items:center;justify-content:space-between;gap:5px;margin:5px 0 0;padding:0;font-size:11px;color:#8e9d86}
.minimap-controls button{height:23px;min-width:29px;padding:1px 6px;color:#bdcbb0;background:#2d352c;border:1px solid #53604c;box-shadow:none;font-size:13px}
.minimap-controls span{font-size:10px}
#save-status{font-size:10px;color:#788570;margin-top:auto}
#selection-panel{display:flex;flex-direction:column;position:relative}
.selection-body{display:grid;grid-template-columns:minmax(235px,1fr) minmax(190px,.85fr);gap:16px;min-height:116px;flex:1}
#selected-content{min-height:95px;overflow:hidden}
.selection-info{display:flex;align-items:flex-start;gap:14px;margin:0;padding:0;border:0;background:none}
.selection-info .portrait{height:100px;width:102px;min-width:102px;padding:2px;border:1px solid #525d4c;background:#192119;box-shadow:none}
.selection-info .portrait .sprite-icon{width:96px;height:96px}
.selection-description{font-size:13px;line-height:1.75;color:#aebba2;padding:7px 0;max-width:210px}
.selection-description strong{font-size:16px;font-weight:500;color:#d5ddc7}
.selection-icons{display:grid;grid-template-columns:repeat(8,42px);grid-auto-rows:42px;gap:3px;max-height:132px;overflow:hidden;padding:0}
.selection-icons button{width:42px;height:42px;padding:0;border:1px solid #526047;background:#182217;box-shadow:none}
.selection-icons .sprite-icon{width:40px;height:40px;margin:0}
#command-help{padding:8px 0 0 15px;border-left:1px solid #454e40;min-width:0;font-size:13px;line-height:1.7;color:#a5b397;visibility:hidden}
#command-help.inspecting{visibility:visible}
#command-help b{display:block;font-size:17px;font-weight:500;color:#d9d9bd;margin-bottom:5px}
#command-help p{margin:0;font-size:13px;line-height:1.7;color:#a3b397}
#command-help small{display:block;margin-top:6px;color:#d1ba85;font-size:12px;line-height:1.5}
#terrain-readout{font-size:12px;color:#9aa997;min-height:19px;padding:3px 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#terrain-readout.advantage{color:#d7c48e}
#mission{position:static;inset:auto;padding:5px 0 0;margin:0;width:auto;height:auto;display:flex;align-items:center;gap:10px;background:none;border:0;border-top:1px solid #46513f;box-shadow:none;max-width:none}
#mission .eyebrow{font-size:11px;color:#b5ad8b;margin:0;white-space:nowrap}#stage-label{display:none}#objective{font-size:13px;line-height:1.5;color:#d4dac7;margin:0}#mission .wave-detail{display:none}
#supports{display:flex;gap:9px;margin:6px 0 0;min-height:22px;align-items:center}
.support-card{display:flex!important;align-items:center;gap:5px;flex:1;min-width:0;height:22px;min-height:0;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:none!important}
.support-card .sprite-icon,.support-card .bar{display:none!important}.support-card b{font-size:12px;color:#afbda2;font-weight:500;margin:0!important}.support-card strong{font-size:11px!important;font-weight:400;color:#b2a784;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-card.locked{display:none!important}.support-card.active b{color:#d9ce97}
#supports:not(:has(.support-card:not(.locked))){display:none}
#right-panel{position:absolute;left:auto;right:16px;top:58px;bottom:auto;width:310px;max-height:390px;z-index:14;display:flex;gap:10px;padding:17px 18px;background:#1d271ff5;border:1px solid #778463;box-shadow:0 5px 20px #0009;overflow:auto}
#right-panel[hidden]{display:none!important}#right-panel .panel-title{font-size:16px;color:#e1dcc0}#intel-close{float:right;background:none;border:0;color:#bfc8b1;font-size:20px}
#recon-report{flex:1;overflow:auto}#recon-report b{font-size:15px}#recon-report p,.recon-line span{font-size:13px;line-height:1.7}#combat-log{display:none}.recon-line{padding:8px 0;border-bottom:1px solid #45523c}
#production-panel{display:flex;flex-direction:column;padding:7px 10px 6px!important;border:0!important;overflow:hidden}
#production-tabs{display:flex;flex-wrap:nowrap;gap:2px;align-items:stretch;height:30px;min-height:30px;padding:0;margin:0;border:0;background:none}
#production-tabs button{flex:1;min-width:0;height:29px;padding:0 4px;font-size:15px;font-weight:500;color:#9fae93;background:#293327;border:1px solid #44533d;border-bottom-color:#5e6a4c;box-shadow:none;white-space:nowrap}
#production-tabs button:hover{background:#354330;color:#e4e5c8}#production-tabs button.active{background:#4c5738;color:#f0dfac;border-color:#a39561}
#production-tabs button:disabled{opacity:.4;cursor:default}
#production-tabs button.has-choice{color:#f4d58c;border-color:#af955a;animation:guide-tab 2.4s ease-in-out infinite}#growth-badge{font-size:12px;margin-left:4px;color:#f2ca71}
#production-caption{display:none}
#production-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,73px);gap:4px;flex:1;min-height:0;height:150px;padding:5px 0 2px;margin:0;align-items:stretch}
#production-grid[hidden],#queue-strip[hidden]{display:none!important}
.production-card,.tech-node{display:block;position:relative;min-width:0;min-height:0;max-width:none!important;height:73px;padding:0!important;margin:0;border:1px solid #58674b!important;background:#1c291cf2!important;box-shadow:inset 0 1px #7e8d6322!important;text-align:left;overflow:hidden}
.production-card .sprite-icon,.tech-node .sprite-icon{position:absolute;left:5px;top:1px;width:65px;height:65px;margin:0;filter:none}
.production-card .card-meta{position:absolute;inset:0;display:block;padding:0!important;margin:0}
.production-card b,.tech-node>b{position:absolute;left:9px;right:2px;bottom:3px;margin:0;font-size:16px;font-weight:500;color:#e0dfc3;white-space:nowrap;text-shadow:0 1px 3px #000}
.production-card .cost{position:absolute;right:7px;top:6px;font-size:13px;color:#ddc18b;background:#172113bb;padding:0 2px}
.production-card .cost-line{position:absolute;right:7px;top:6px;bottom:auto;left:auto;display:block;padding:0;font-size:13px;color:#ddc18b;background:#172113bb}.production-card .cost-line small{display:none}
.production-card .duration,.production-card small:not(.cost),.production-card .lock,.tech-node>small{display:none!important}
.production-card:hover,.tech-node:hover{border-color:#e2c984!important;background:#2e4029!important;transform:none;box-shadow:inset 0 0 10px #b6c47b1a!important}
.production-card.locked,.tech-node.locked{opacity:.42;filter:saturate(.45)}.production-card.unaffordable .cost{color:#d49b7d}.production-card.complete:after{content:'✓';position:absolute;right:8px;top:5px;color:#abc48b;font-size:18px}
.production-card.complete .cost-line{display:none}
.empty-command-slot{height:73px;border:1px solid #34412e;background:#1b251a77}
.tech-tree{display:contents}.tech-node>span:not(.sprite-icon){position:absolute;right:5px;top:6px;font-size:11px;color:#cbb884}.tech-node.pending{border-color:#9c8d54!important}
#queue-strip{height:27px;min-height:27px;padding:0;margin:0;border:0;display:flex;gap:7px;align-items:center;background:none;overflow:hidden}
#queue-strip .queue-label{font-size:11px;color:#91a183;width:43px;min-width:43px}#queue-strip>small{display:none}#production-queue{display:flex;gap:3px;align-items:center;min-width:0;overflow:hidden}.queue-building{font-size:10px;color:#8da276}.queue-item{position:relative;width:32px;height:26px;min-width:32px;padding:0;border:1px solid #56694a;background:#1a2719}.queue-item .sprite-icon{width:27px;height:24px}.queue-item>span:not(.sprite-icon){position:absolute;right:1px;bottom:0;font-size:10px;color:#f1d296;background:#111c11ad}.queue-item .bar{position:absolute;bottom:0;height:2px;left:0;right:0;margin:0}
#unit-orders{position:static;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;height:32px;min-height:32px;padding:3px 0 0;border-top:1px solid #48583c;margin:0}
#unit-orders button{height:28px;min-height:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:0;background:#2b3827;border:1px solid #556947;box-shadow:none;font-size:13px;color:#c2cfb4}
#unit-orders button:disabled{opacity:.34}#unit-orders button .order-art{display:none}#unit-orders button b{font:12px Consolas,monospace;color:#e2c789;border:1px solid #6c7d55;padding:0 3px;margin:0}#unit-orders button span:last-child{font-size:12px;position:static}
#growth{position:static;inset:auto;flex:1;height:150px;min-height:0;padding:5px 0 0;margin:0;border:0;background:none;box-shadow:none;display:flex;flex-direction:column}
#growth[hidden]{display:none!important}.growth-heading{height:21px;margin:0;display:flex;gap:6px;align-items:center}.growth-heading b{font-size:12px}.growth-heading>span{font-size:11px;color:#99a78e}.growth-heading small{font-size:11px;margin-left:auto;color:#bcb291}
#growth-options{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(3,41px);gap:3px}.growth-card{min-height:0;height:41px;padding:3px 8px;display:flex;align-items:center;gap:9px;background:#283823;border:1px solid #66784d;box-shadow:none;text-align:left}.growth-card .growth-icon{height:32px;width:32px;min-width:32px;margin:0}.growth-card>span:last-child{display:flex;gap:13px;align-items:center}.growth-card b{font-size:14px;min-width:114px}.growth-card small{font-size:11px;line-height:1.4;color:#c5c6a8}.growth-card:hover{border-color:#e3c57a;background:#3b4c2e;transform:none}
#bottom-strip,#floating-tooltip{display:none!important}
#battle-notice{left:50%;right:auto;top:12px;bottom:auto;transform:translateX(-50%);max-width:560px;min-width:0;padding:7px 16px;border:1px solid #817950;background:#1a241bdd;color:#d8d8b5;box-shadow:0 2px 6px #0004;font-size:15px;white-space:nowrap}
#boss-status{position:absolute;inset:12px auto auto 50%;width:380px;max-width:calc(100% - 40px);height:48px;min-height:0;max-height:48px;box-sizing:border-box;transform:translateX(-50%);display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:20px 6px;gap:4px 10px;align-items:center;padding:8px 13px;background:#2c241df0;border:1px solid #957458;pointer-events:none;overflow:hidden;z-index:10}
#boss-status>span{display:none}
#boss-status>b{font-size:16px;line-height:20px;min-width:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#boss-status>strong{float:none;font-size:13px;line-height:20px;margin:0;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#boss-status .bar{grid-column:1/-1;align-self:stretch;height:6px;margin:0;width:auto}
#battle-area:has(#boss-status:not([hidden])) #battle-notice{top:72px;pointer-events:none}
#command-mode{bottom:14px;left:50%;transform:translateX(-50%);font-size:16px;padding:8px 20px;background:#263420ed;border:1px solid #7e965b}
#tutorial{position:absolute;left:22px;top:19px;bottom:auto;right:auto;width:318px;padding:16px 18px 18px;background:#1c271ff5;border:1px solid #c4b17a;border-left:4px solid #e9cf86;box-shadow:0 4px 20px #0006;z-index:15;display:block;color:#d8e0cf}
#tutorial[hidden]{display:none!important}.guide-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.guide-top>span{font-size:12px;letter-spacing:.4px;color:#e2c890}.guide-top button{background:none;border:0;padding:0;color:#92a38b;font-size:11px}.guide-dots{display:flex;gap:4px;margin:10px 0 13px}.guide-dots i{height:3px;flex:1;background:#4d5c48}.guide-dots i.done{background:#a5b57d}.guide-dots i.current{background:#efd48d}
#guide-title{font-size:24px;font-weight:600;letter-spacing:-.6px;line-height:1.3;margin:0 0 11px;color:#f0e6c3;word-break:keep-all;text-wrap:balance}#tutorial-text{font-size:15px;line-height:1.8;margin:0;color:#c8d2bf;word-break:keep-all}
.guide-bottom{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.guide-bottom button{border:1px solid #819264;background:#3d5132;padding:8px 11px;font-size:13px;color:#e5e5bc}.guide-bottom #guide-ack{background:#6d6238;border-color:#c7ae6c}.guide-note{display:block;font-size:10px;color:#82977a;margin-top:9px}
#tutorial .guide-top button{position:static;float:none;border:0;background:none;color:#92a38b;font-size:11px;padding:0;line-height:1.3}
#tutorial .guide-bottom button{position:static;float:none;border:1px solid #819264;background:#3d5132;padding:8px 11px;font-size:13px;line-height:1.4;color:#e5e5bc;min-height:0}
#tutorial .guide-bottom #guide-ack{background:#6d6238;border-color:#c7ae6c}
#guide-pin{position:absolute;width:74px;height:74px;transform:translate(-50%,-50%);pointer-events:none;z-index:11;border:2px solid #f2d28a;border-radius:50%;box-shadow:0 0 0 6px #e7bd5421,0 0 20px #f6d37c44;animation:guide-pin 2s ease-in-out infinite}
#guide-pin:before{content:'';position:absolute;left:28px;top:-25px;border:8px solid transparent;border-top:12px solid #f6d789}#guide-pin span{position:absolute;top:77px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#16251de8;padding:4px 9px;font-size:13px;color:#f0d38c;border:1px solid #8b8058}
.guide-target{outline:3px solid #f0d18a!important;outline-offset:-3px;opacity:1!important;box-shadow:0 0 0 3px #f0d18a44!important;animation:guide-tab 2s ease-in-out infinite;z-index:3}
@keyframes guide-pin{50%{box-shadow:0 0 0 10px #e7bd5412,0 0 26px #f6d37c66}}
@keyframes guide-tab{50%{filter:brightness(1.3)}}
@media(prefers-reduced-motion:reduce){#guide-pin,.guide-target,#production-tabs button.has-choice{animation:none}}
#coop-party{top:58px!important;left:14px!important;right:auto!important;display:flex;gap:7px;font-size:12px}#coop-objective{top:58px!important;right:15px!important;left:auto!important;max-width:360px;font-size:13px}#coop-team-chat{bottom:calc(var(--deck-height) + 10px)!important}
#game:has(#coop-hud:not([hidden])) #tutorial{top:78px}
