:root{color-scheme:dark;--bg:#101919;--panel:#152120;--edge:#2a3833;--muted:#83988d;--text:#e7ebdc;--accent:#d6e7a0;--gold:#edc866;--red:#ed7771;--blue:#7baadf;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);overflow:hidden}button,input{font:inherit}button{cursor:pointer;background:#223029;border:1px solid #3a4940;color:var(--text);border-radius:5px;padding:9px 12px}button:hover{background:#324237;border-color:#8b9b70}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}#app{height:100vh;min-height:580px;display:flex;flex-direction:column}.topbar{height:67px;display:flex;align-items:center;padding:0 25px;gap:14px;border-bottom:1px solid var(--edge);flex-shrink:0}.brand{font-size:19px;font-weight:800;letter-spacing:2px;display:flex;align-items:center;gap:5px;color:var(--text);text-decoration:none}.brand>span:not(.brand-icon){font-weight:350;color:#afbaac}.brand .brand-icon{font-size:35px;margin-right:9px;color:var(--accent);transform:rotate(0deg)}.brand small{font-size:8px;font-weight:500;letter-spacing:2px;border-left:1px solid var(--edge);padding-left:18px;margin-left:17px;color:var(--muted)}.season{margin-left:auto;display:flex;gap:8px;font-size:10px;letter-spacing:1.5px;color:#bac8ae}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#cee59e;box-shadow:0 0 9px #b5d88755}.icon-button{width:31px;height:31px;padding:0;font-size:18px;background:transparent}.scorebar{height:90px;display:flex;align-items:center;gap:27px;padding:14px 25px;border-bottom:1px solid var(--edge);flex-shrink:0}.score-title{display:flex;flex-direction:column;gap:7px;min-width:190px}.eyebrow{font-size:9px;letter-spacing:1.8px;color:var(--muted)}#population{font-size:11px;color:#c3cebd}#scores{display:flex;gap:28px;flex:1}.score{flex:1;min-width:80px}.score-top{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1px}.score-top strong{margin-left:auto;font-size:20px;font-variant-numeric:tabular-nums;font-weight:500;color:var(--text);letter-spacing:-1px}.score-track{height:3px;background:#2b3830;margin:9px 0 5px}.score-track i{display:block;height:3px;transition:width .8s}.score small{color:var(--muted);font-size:9px}.reset{border-left:1px solid var(--edge);padding-left:25px;font-size:8px;letter-spacing:1px;color:var(--muted);display:flex;flex-direction:column;gap:4px}.reset b{font-size:20px;letter-spacing:1px;color:#d4ddc9;font-weight:400;font-variant-numeric:tabular-nums}.reset small{font-size:8px;letter-spacing:0}main{display:flex;flex:1;min-height:0}#battlefield{position:relative;flex:1;overflow:hidden;background:#1c2b23}#game{width:100%;height:100%;display:block;outline:none;cursor:crosshair}.map-label{position:absolute;left:22px;top:19px;pointer-events:none;display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.5px;color:#dce8cb}.map-label #coordinates{margin-left:8px;color:#8caa95;font-size:9px}#connection{position:absolute;right:20px;top:17px;border:1px solid #65775c55;border-radius:4px;background:#101c18aa;padding:5px 8px;font-size:8px;letter-spacing:1px;color:#cee59e}.map-bottom{position:absolute;bottom:0;left:0;right:0;padding:15px 20px;display:flex;justify-content:space-between;gap:12px;background:linear-gradient(transparent,#101b19e8);font-size:10px;color:#abbca5;pointer-events:none}kbd{font-size:9px;border:1px solid #62705b;border-radius:3px;padding:2px 4px;color:#d1ddc3;margin-left:6px}#toast{position:absolute;left:50%;bottom:68px;transform:translateX(-50%);padding:12px 18px;background:#14221aee;border:1px solid #80906e;border-radius:6px;max-width:85%;opacity:0;transition:opacity .15s;pointer-events:none;text-align:center}#toast.show{opacity:1}#placement{position:absolute;left:50%;top:62px;transform:translateX(-50%);padding:10px 15px;background:#d3e6a2;color:#263621;border-radius:5px;white-space:nowrap}aside{width:286px;border-left:1px solid var(--edge);background:var(--panel);padding:18px 17px;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#405440 transparent;flex-shrink:0}.commander{display:flex;flex-direction:column;gap:5px}.commander strong{font-size:19px;font-weight:500}.commander>span:last-child{font-size:10px;color:var(--muted)}.resources{display:flex;border-top:1px solid var(--edge);border-bottom:1px solid var(--edge);padding:13px 0;margin-top:15px;gap:20px}.resources>div{display:flex;flex-direction:column;gap:6px}.resources span{font-size:8px;letter-spacing:1px;color:var(--muted)}.resources strong{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}.resources>div:first-child strong{color:var(--accent)}.sidebar-heading{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;margin:20px 0 12px}.sidebar-heading span:last-child{color:var(--muted);font-size:8px}.tabs{display:flex;border-bottom:1px solid var(--edge);gap:18px}.tabs button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);padding:7px 0 10px;font-size:11px}.tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}#operations{min-height:185px;padding:12px 0}.build-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.build-card{text-align:left;padding:9px 8px;background:#1b2a23;border:1px solid #344333;min-height:58px;display:grid;grid-template-columns:24px 1fr;gap:2px 6px}.build-card svg{grid-row:span 2;align-self:center;width:23px;height:23px}.build-card span{font-size:9px;white-space:nowrap}.build-card small{font-size:9px;color:#a8b78c}.op-hint{font-size:11px;line-height:1.7;color:#9faf9b;margin:10px 0}.op-title{font-size:16px;margin:4px 0 8px}.op-stat{color:var(--muted);font-size:11px;margin-bottom:12px}.queue-buttons{display:flex;gap:5px}.queue-buttons button{flex:1;padding:8px 5px}.wide-button{width:100%;background:#cedf9d;color:#25351b;font-weight:600}.radar-head{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.2px;border-top:1px solid var(--edge);padding:14px 0 10px}.radar-head span:last-child{color:var(--muted)}#minimap{width:100%;height:auto;max-height:190px;object-fit:contain;background:#101b17;border:1px solid #354633;border-radius:4px;cursor:crosshair}.group-head{display:flex;justify-content:space-between;font-size:8px;color:#b9c6ad;margin:16px 0 9px}.group-head span{color:#788e7f;font-size:7px}#groups{display:flex;gap:4px}#groups button{padding:5px 0;width:24px;height:29px;font-size:10px;background:transparent}#groups button.saved{background:#354830;border-color:#a1b875;color:#e1efc6}.leave{margin-top:17px;text-align:left;background:transparent;color:#99ad99;border-color:var(--edge);font-size:10px}footer{height:29px;display:flex;align-items:center;justify-content:space-between;padding:0 23px;border-top:1px solid var(--edge);font-size:8px;letter-spacing:1.2px;color:#758979;flex-shrink:0}footer b{margin-left:9px;font-size:7px;background:#2c3b2d;border-radius:3px;padding:3px 5px;font-weight:400;color:#bacaa2}.overlay{position:fixed;inset:0;background:#091412c4;backdrop-filter:blur(7px);display:grid;place-items:center;z-index:10;padding:25px}.join-card{width:560px;max-width:100%;padding:38px 40px 23px;border:1px solid #536549;background:radial-gradient(ellipse at 100% 0%,#35472c77,transparent 60%),#17251e;box-shadow:0 25px 100px #0007;border-radius:10px}.join-card .eyebrow{color:#b6cb98;font-size:9px;display:flex;gap:10px;align-items:center}.join-card h1{font-size:39px;font-weight:500;letter-spacing:-1.7px;line-height:1.16;margin:24px 0 16px}.join-card h1 span{color:#d1e4a0}.join-card p{color:#9fb19d;font-size:12px;line-height:1.8;max-width:390px}.faction-art{display:flex;justify-content:center;gap:57px;border-bottom:1px solid #354531;margin:23px 0 22px;padding:10px 0 25px}.faction-art>div{display:flex;flex-direction:column;align-items:center;gap:15px}.faction-art i{width:39px;height:39px;border:2px solid currentColor;background:currentColor;box-shadow:0 0 25px currentColor;opacity:.85}.faction-art span{font-size:8px;letter-spacing:2px}.art-yellow{color:var(--gold)}.art-yellow i{clip-path:polygon(50% 0,100% 100%,0 100%)}.art-red{color:var(--red)}.art-red i{transform:rotate(45deg) scale(.75)}.art-blue{color:var(--blue)}.art-blue i{clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}#join-form label{font-size:8px;letter-spacing:1.5px;color:#a1b49a;display:block;margin-bottom:8px}.join-input{display:flex;gap:8px}.join-input input{background:#0e1b15;border:1px solid #43563b;border-radius:5px;padding:12px;color:#edf0df;min-width:0;flex:1}.join-input input::placeholder{color:#778d77;font-size:11px}.join-input button{background:#d4e5a4;color:#26361c;font-weight:600;width:112px;display:flex;justify-content:space-between;align-items:center}.join-notes{font-size:10px;display:flex;flex-direction:column;gap:7px;color:#8fa488;margin-top:18px}.join-footer{display:flex;justify-content:space-between;gap:8px;font-size:7px;letter-spacing:1px;border-top:1px solid #34462f;margin-top:25px;padding-top:16px;color:#8a9e82}#join-error{color:#f59e85;font-size:11px;margin-top:9px}dialog{max-width:600px;max-height:85vh;overflow:auto;background:#19271f;border:1px solid #637752;border-radius:9px;color:var(--text);padding:26px;box-shadow:0 20px 90px #0008}dialog::backdrop{background:#07110dda;backdrop-filter:blur(5px)}dialog h2{font-weight:500;margin-top:0}dialog p{font-size:12px;line-height:1.8;color:#b2c3a6}.dialog-header{display:flex;justify-content:space-between;align-items:baseline}dl{display:grid;grid-template-columns:160px 1fr;gap:10px;font-size:11px;line-height:1.6}dt{color:var(--accent)}dd{margin:0;color:#acbfa0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.danger{background:#773c33;border-color:#c27761}.intel-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--edge);font-size:11px}.intel-row span{color:#94aa8d}@media(max-width:1050px){.brand small{display:none}.score-title{min-width:150px}.scorebar{gap:18px}#scores{gap:17px}.reset{display:none}aside{width:260px}.map-bottom>span:last-child{display:none}}@media(max-height:820px){#minimap{max-height:128px}aside{padding-top:12px}.resources{margin-top:10px;padding:9px 0}.sidebar-heading{margin-top:12px}.build-card{min-height:48px;padding:6px}.join-card{padding-top:27px}.join-card h1{font-size:34px;margin-top:18px}.faction-art{margin:15px 0;padding-bottom:18px}}@media(max-width:700px){.topbar{padding:0 14px}.brand{font-size:15px}.season{display:none}.topbar .icon-button:first-of-type{margin-left:auto}.scorebar{padding:10px 14px;height:79px}.score-title{display:none}aside{width:215px;padding:12px 10px}.build-card span{font-size:8px}.map-label #coordinates{display:none}.join-card{padding:25px}.join-card h1{font-size:32px}.join-footer{font-size:6px}footer{font-size:6px;padding:0 12px}}
aside > *{flex-shrink:0}.op-title svg{width:24px;height:24px;vertical-align:middle;margin-right:4px}

.coordinate-readout{position:absolute;bottom:38px;left:14px;padding:6px 9px;background:#101d19df;border:1px solid #415244;border-radius:4px;font:10px ui-monospace,monospace;color:#d2dfb9;pointer-events:none}.unit-id-list{max-height:95px;overflow:auto;font:11px/1.8 ui-monospace,monospace;color:#d4dfbd;overflow-wrap:anywhere}.map-label{top:34px}.map-label #coordinates{display:inline!important}#connection{top:33px}

#sound svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.commander-table{width:100%;border-collapse:collapse;font-size:11px;margin:12px 0 24px;table-layout:fixed}.commander-table th,.commander-table td{padding:9px 3px;border-bottom:1px solid #b5c99625;text-align:right;overflow-wrap:anywhere}.commander-table th{color:#8d9c88;font-size:9px;font-weight:500}.commander-table th:first-child,.commander-table td:first-child{text-align:left;width:48%}#operations>button[data-bridge]{margin:5px 4px 5px 0;font-size:11px}

.map-label{background:#14291ed6;padding:7px 9px;border-radius:4px}.map-label #coordinates{color:#dbe9cc}

.radar-top{position:sticky;top:-12px;background:var(--panel);z-index:2;padding:0 0 12px;border-bottom:1px solid var(--edge);margin-bottom:14px}.radar-top .radar-head{margin-top:0}.radar-top #minimap{display:block;width:100%;max-height:190px;object-fit:contain}

/* Commands remain independent of battlefield selection and camera controls. */
#voice-command{position:fixed;right:16px;bottom:27px;z-index:35;font-size:12px;color:#e7ebdc}.voice-buttons{display:flex;justify-content:flex-end;gap:7px}#voice-command button{cursor:pointer;background:#1c3028;border:1px solid #607955;color:#e7ebdc;border-radius:9px;padding:9px 12px}#voice-mic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}#voice-mic[aria-pressed=true]{background:#d5e7a5;color:#17261d;box-shadow:0 0 0 4px #d5e7a522}#voice-panel{width:min(375px,calc(100vw - 32px));background:#10231ef5;border:1px solid #607955;border-radius:12px;padding:15px;margin-bottom:9px;box-shadow:0 12px 45px #0008;max-height:70vh;overflow:auto}.voice-heading{display:flex;justify-content:space-between;align-items:center;letter-spacing:2px;color:#d5e7a5}#voice-panel label{display:block;margin:10px 0}#voice-panel select,#voice-text{background:#091914;color:#e7ebdc;border:1px solid #506847;border-radius:6px;padding:8px}#voice-form{display:flex;gap:7px;margin:12px 0}#voice-text{min-width:0;flex:1}#voice-status{color:#d5e7a5;line-height:1.5}#voice-log{max-height:155px;overflow:auto;line-height:1.45}#voice-log p{border-bottom:1px solid #60795544;padding:6px 0;margin:0}#voice-panel small{display:block;color:#9eb09c;line-height:1.5}#voice-command [hidden]{display:none!important}
#voice-chat{width:min(340px,calc(100vw - 32px));background:#10231ef5;border:1px solid #607955;border-radius:12px;padding:12px;margin-bottom:8px;box-shadow:0 6px 25px #0005}#voice-chat .voice-heading{font-size:10px;letter-spacing:1.5px}#voice-chat .voice-heading button{padding:2px 9px}#voice-chat #voice-log{max-height:130px;font-size:12px}#voice-chat #voice-status{font-size:11px;margin:8px 0}#voice-chat #voice-form{margin:8px 0 0}#voice-draft{color:#e7ebdc;font-style:italic;line-height:1.4;margin:8px 0}#voice-panel{width:min(340px,calc(100vw - 32px))}#voice-command button:disabled{opacity:.55;cursor:wait}

/* Commands live in Operations, never over the battlefield. */
.tabs{gap:0;justify-content:space-between}.tabs button{padding-left:3px;padding-right:3px}
#voice-command{position:static;width:100%;font-size:12px}
#voice-chat,#voice-panel{width:100%;box-shadow:none;padding:10px;border-radius:6px}
#voice-panel select{max-width:100%;font-size:11px}
#voice-form{flex-wrap:wrap}#voice-text{flex-basis:100%;width:100%}
#voice-send{width:100%}#voice-confirm{display:flex;gap:5px;flex-wrap:wrap}
#voice-command button{padding:8px;font-size:11px}
#voice-chat #voice-log{max-height:220px;overflow-wrap:anywhere}
#voice-command .voice-buttons{justify-content:space-between}
[data-tab=command].pending{color:#d6e7a0;text-decoration:underline;text-underline-offset:5px}

aside.command-mode .radar-top{position:static}aside.command-mode .tabs{position:sticky;top:-12px;z-index:3;background:var(--panel);padding-top:12px}
