*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#101418;color:#dfe6ee;font:13px/1.35 system-ui,Segoe UI,sans-serif}
#c{position:fixed;inset:0;width:100%;height:100%;display:block}
#score{position:fixed;top:6px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:5}
#score .s{padding:4px 10px;border-radius:4px;background:rgba(10,14,18,.7);border-top:3px solid;min-width:120px;text-align:center}
#score .s b{display:block;font-size:12px}#score .s i{font-style:normal;opacity:.8;font-size:11px}
#feed{position:fixed;top:6px;right:8px;width:300px;text-align:right;font-size:12px;z-index:5;pointer-events:none}
#feed div{background:rgba(10,14,18,.6);margin-bottom:2px;padding:2px 6px;border-radius:3px}
#hud{position:fixed;left:10px;bottom:10px;background:rgba(10,14,18,.72);padding:8px 12px;border-radius:6px;min-width:230px;z-index:5;font-variant-numeric:tabular-nums}
#hud .bar{height:6px;background:#2a323a;border-radius:3px;margin:2px 0 5px;overflow:hidden}#hud .bar i{display:block;height:100%}
#wpn{position:fixed;right:10px;bottom:10px;background:rgba(10,14,18,.72);padding:8px 12px;border-radius:6px;z-index:5;min-width:200px}
#wpn div{opacity:.6}#wpn div.sel{opacity:1;color:#ffd24a;font-weight:600}
#ret{position:fixed;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border:2px solid rgba(255,255,255,.7);border-radius:50%;z-index:4;pointer-events:none;display:none}
#ret:after{content:"";position:absolute;left:11px;top:11px;width:4px;height:4px;background:#ff4a3a;border-radius:2px}
#map{position:fixed;right:10px;top:120px;width:200px;height:200px;background:rgba(10,14,18,.75);border:1px solid #3a4652;border-radius:4px;z-index:6}
#map.big{left:50%;top:50%;right:auto;width:min(86vh,60vw);height:min(86vh,60vw);transform:translate(-50%,-50%);z-index:20}
#cmd{position:fixed;left:10px;top:60px;width:240px;max-height:70vh;overflow:auto;background:rgba(10,14,18,.8);padding:8px;border-radius:6px;z-index:21;display:none}
#cmd button,#roster button,#intro button{background:#26333f;color:#dfe6ee;border:1px solid #3d4d5c;border-radius:4px;padding:3px 8px;margin:1px;cursor:pointer;font:inherit}
#cmd button.on,#roster button.on{background:#a8741a;border-color:#ffd24a}#roster button:disabled{opacity:.35;cursor:default}
#roster{position:fixed;left:10px;top:60px;bottom:10px;width:420px;overflow:auto;background:rgba(10,14,18,.88);padding:10px;border-radius:6px;z-index:30;display:none}
#roster .grp{margin:6px 0 2px;font-weight:700;opacity:.85}#roster .u{display:flex;gap:4px;align-items:center;padding:1px 0}#roster .u span{flex:1}#roster .me span{color:#ffd24a}
#tip{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);background:rgba(10,14,18,.75);padding:4px 12px;border-radius:5px;z-index:6;display:none}
#intro{position:fixed;inset:0;background:rgba(8,10,14,.92);z-index:50;display:flex;align-items:center;justify-content:center}
#intro .box{max-width:560px;padding:28px;background:#17202a;border-radius:10px;border:1px solid #2e3b48}
#intro h1{margin:0 0 8px;letter-spacing:6px}#intro input{padding:8px;border-radius:4px;border:1px solid #3d4d5c;background:#0e1318;color:#fff;margin-right:6px}
.sm{font-size:11px;opacity:.7}
#help{position:fixed;left:50%;top:70px;transform:translateX(-50%);background:rgba(10,14,18,.82);padding:10px 16px;border-radius:8px;z-index:7;text-align:center;line-height:1.6;max-width:640px;border:1px solid #3d4d5c;pointer-events:none}
#bar{position:fixed;left:50%;bottom:44px;transform:translateX(-50%);z-index:9;display:flex;gap:4px}
#bar button{background:rgba(30,42,54,.85);color:#dfe6ee;border:1px solid #3d4d5c;border-radius:4px;padding:5px 10px;cursor:pointer;font:inherit}#bar button:hover{background:#34495c}
html,body,#c{touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none}
#roster{width:min(420px,94vw);touch-action:pan-y}#cmd{touch-action:pan-y}

#score .s{min-width:128px;text-align:left}#score .s b{display:inline}#score .vp{float:right;font-weight:700;font-variant-numeric:tabular-nums}#score .vp small{opacity:.6;font-weight:400}
#score .vb{height:4px;background:#2a323a;border-radius:2px;margin:3px 0 2px;overflow:hidden;clear:both}#score .vb i{display:block;height:100%}
#score .s.mine{background:rgba(48,62,76,.9)}#score .s.dead{opacity:.45}#score .s.win{box-shadow:0 0 10px 2px #ffd24a}#score .s.info{min-width:90px;border-color:#888}#score .det{display:block;font-style:normal;opacity:.75;font-size:10px;white-space:nowrap}
#banner{position:fixed;inset:0;z-index:40;display:none;align-items:center;justify-content:center;background:rgba(5,8,12,.55);pointer-events:none}
#banner .box{text-align:center;padding:22px 40px;background:rgba(14,20,28,.94);border:3px solid;border-radius:12px;max-width:92vw}
#banner h1{margin:4px 0 8px;font-size:clamp(26px,6vw,54px);letter-spacing:4px}#banner small{letter-spacing:4px;opacity:.7}#banner .fin{margin:10px 0;font-size:13px}#banner .nr{margin-top:6px;color:#ffd24a;font-weight:700}

#ov{position:fixed;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}

/* ================= touch / mobile ================= */
.tonly{display:none}.kbd{display:block}
body.touch .tonly{display:block;margin:6px 0 10px;color:#ffd24a}body.touch .kbd{display:none}
body.touch #intro .box{padding:16px;max-width:94vw}body.touch #intro h1{font-size:22px}body.touch #intro p{font-size:12px;margin:6px 0}
body.touch #intro input,body.touch #intro button{font-size:16px;padding:10px 12px}
/* scoreboard: slim chips */
body.touch #score{top:2px;gap:2px;width:100vw;padding:0 2px;left:0;transform:none}
body.touch #score .s{flex:1;min-width:0;padding:2px 5px 3px;font-size:11px;border-top-width:2px;min-height:0}
body.touch #score .s .det,body.touch #score .s.info{display:none}body.touch #score .s .vp small{display:none}
body.touch #feed{display:none}
/* HUD: one slim strip, top-left under the scoreboard */
body.touch #hud{left:4px;top:38px;bottom:auto;min-width:0;width:min(46vw,230px);padding:3px 7px;font-size:11px;border-radius:5px;background:rgba(10,14,18,.55)}
body.touch #hud .row{display:flex;gap:6px;align-items:center}body.touch #hud .row span{white-space:nowrap}body.touch #hud .bar{flex:1;margin:0;min-width:24px}
body.touch #wpn{display:none!important}
/* toolbar: compact column on the right */
body.touch #bar{left:auto;right:4px;top:38px;bottom:auto;transform:none;flex-direction:column;gap:3px;max-width:none}
body.touch #bar button{width:46px;height:34px;padding:0;font-size:11px;background:rgba(20,30,40,.7);border-radius:6px}
body.touch #tip{bottom:auto;top:30%;font-size:15px;text-align:center;max-width:80vw}
body.touch #help{pointer-events:auto;top:104px;left:4px;transform:none;text-align:left;font-size:11px;max-width:min(60vw,360px);padding:5px 8px;line-height:1.35;background:rgba(10,14,18,.6);border:0}
/* map: hidden until you tap Map, then a big overlay */
body.touch #map{display:none}body.touch #map.big{display:block;width:min(94vw,86vh);height:min(94vw,86vh);top:50%;left:50%;right:auto;transform:translate(-50%,-50%)}
body.touch #cmd{top:40px;left:4px;width:min(46vw,240px);max-height:42vh;font-size:12px}
body.touch #cmd button{min-height:34px}
/* roster: full-screen sheet */
body.touch #roster{background:rgba(10,14,18,.97);left:0;top:0;bottom:0;right:0;width:100vw;border-radius:0;padding:8px 10px 24px;font-size:14px;z-index:60;-webkit-overflow-scrolling:touch}
body.touch #roster button{min-height:38px;padding:4px 12px;font-size:14px;margin:2px}
body.touch #roster .grp{padding:9px 4px;background:rgba(40,52,64,.7);border-radius:6px;margin:5px 0 3px;font-size:14px}
body.touch #roster .u{padding:3px 0;flex-wrap:wrap}
#roster .quick{margin:6px 0 8px;display:flex;flex-wrap:wrap;gap:2px;align-items:center}#roster .quick button{background:#2c4a2c;border-color:#5fa05f}
/* touch zones + buttons */
#tc{position:fixed;inset:0;pointer-events:none;z-index:8}#tc>*{pointer-events:auto}
#lz{position:fixed;left:0;bottom:0;width:44vw;height:64%;z-index:8;touch-action:none}
#rz{position:fixed;right:0;top:0;bottom:0;left:44%;z-index:7;touch-action:none}
#joy,#joy2{position:absolute;left:18px;bottom:22px;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.09);border:2px solid rgba(255,255,255,.28);pointer-events:none;transition:opacity .15s}
#joy2{display:none;left:auto;bottom:auto;right:30px;top:40%}#joy2.act{display:block;background:rgba(255,255,255,.12)}#joy.act{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.55)}
#knob,#knob2{position:absolute;left:35px;top:35px;width:50px;height:50px;border-radius:50%;background:rgba(255,255,255,.5);pointer-events:none}
#tc button{font:700 13px system-ui;color:#fff;touch-action:none;display:none;align-items:center;justify-content:center;text-align:center;flex-direction:column;line-height:1.1}
#bfire,#bfire2{position:fixed;width:96px;height:96px;border-radius:50%;background:rgba(210,50,40,.62);border:3px solid rgba(255,255,255,.5);font-size:17px!important;z-index:10}
#bfire{right:20px;bottom:26px}#bfire2{left:70px;bottom:26px}#bfire.act,#bfire2.act{background:rgba(255,90,70,.9)}
#bwpn{position:fixed;right:128px;bottom:34px;width:84px;height:62px;border-radius:12px;background:rgba(30,42,54,.75);border:2px solid rgba(255,255,255,.4);z-index:10;font-size:11px!important}#bwpn small{opacity:.75;font-weight:400}
#bto{position:fixed;left:26px;bottom:26px;width:84px;height:84px;border-radius:50%;background:rgba(40,130,60,.75);border:3px solid rgba(255,255,255,.5);z-index:10}
#thr{position:fixed;right:34px;bottom:140px;width:52px;height:min(36vh,230px);border-radius:12px;background:rgba(255,255,255,.1);border:2px solid rgba(255,255,255,.35);z-index:10;touch-action:none;overflow:hidden;display:none}
#thrf{position:absolute;left:0;right:0;bottom:0;background:rgba(255,200,60,.65);pointer-events:none}#thrt{position:absolute;left:0;right:0;top:50%;text-align:center;font-size:12px;text-shadow:0 0 3px #000;pointer-events:none;transform:translateY(-50%)}
#bspec{position:fixed;right:20px;bottom:30px;z-index:10;gap:10px;display:none}#bspec button{display:flex!important;width:56px;height:56px;border-radius:50%;background:rgba(30,42,54,.75);border:2px solid rgba(255,255,255,.35);font-size:24px}
#mapx{position:fixed;left:calc(50% + min(43vh,30vw) - 38px);top:calc(50% - min(43vh,30vw) + 8px);width:30px;height:30px;padding:0;line-height:26px;font-size:15px;border-radius:50%;background:rgba(150,40,40,.9);color:#fff;border:2px solid #fff;z-index:30;display:none;cursor:pointer}
#land{position:fixed;left:50%;bottom:205px;top:auto;transform:translateX(-50%);z-index:35;display:none;gap:10px;align-items:center;background:rgba(20,26,34,.9);border:1px solid #ffd24a;border-radius:8px;padding:8px 12px;font-size:13px}
#land button{display:block!important;background:#3a4a58;border:1px solid #888;border-radius:5px;padding:5px 10px;color:#fff}
body.touch.portrait #bwpn{right:20px;bottom:130px}body.touch.portrait #thr{bottom:220px}
body.touch.portrait #lz{height:55%}
@media (max-height:460px){
 body.touch #bar{flex-direction:row;right:4px;top:38px}body.touch #bar button{width:44px;height:30px}
 body.touch #hud{top:36px}body.touch #help{top:100px}
 #bfire,#bfire2{width:84px;height:84px}#bwpn{right:116px;bottom:28px;height:56px}#bfire{right:18px;bottom:20px}#bfire2{left:22px;bottom:20px}#bto{width:74px;height:74px}
 #thr{bottom:116px;height:min(34vh,150px);right:30px}
}

#attr{position:fixed;right:6px;bottom:2px;z-index:3;font-size:9px;opacity:.55;pointer-events:none;text-align:right;max-width:60vw}body.touch #attr{display:none}
#go:disabled{opacity:.6}
#sb{display:none;position:fixed;left:50%;top:14%;transform:translateX(-50%);z-index:9;background:rgba(10,14,18,.88);border:1px solid #556;padding:10px 16px;border-radius:8px;min-width:480px;pointer-events:none}#sb h3{margin:0 0 6px;font-size:15px}#sb table{width:100%;border-collapse:collapse}#sb th,#sb td{padding:3px 8px;text-align:right}#sb th:first-child,#sb td:first-child{text-align:left}#sb tr.mine{background:rgba(255,255,255,.08)}
#map.big{touch-action:none;cursor:grab}
#mapctl{display:none;position:fixed;top:calc(50% - min(43vh,30vw) - 2px);left:50%;transform:translateX(-50%);gap:6px;z-index:31}#mapctl button{min-width:40px;height:36px;padding:0 12px;border-radius:8px;background:rgba(15,20,26,.9);border:1px solid #7a8794;color:#fff;font-size:15px}
body.touch #mapctl{top:calc(50% - min(47vw,43vh) - 44px)}
.warn{color:#ff6a4a;font-weight:700;animation:bl 0.8s infinite}.ok{color:#7fe08a}@keyframes bl{50%{opacity:.35}}
#bext{display:none;position:fixed;right:150px;bottom:130px;width:72px;height:72px;border-radius:50%;background:rgba(220,110,20,.9);border:3px solid #fff;color:#fff;font-weight:700;font-size:13px;z-index:12;align-items:center;justify-content:center;text-align:center}
.deploy{margin:6px 0}.deploy button{margin:2px 4px 2px 0;background:#27492c;border-color:#5fa86a}.deploy button:disabled{opacity:.5}
#warn{display:none;position:fixed;top:92px;left:50%;transform:translateX(-50%);z-index:11;padding:6px 18px;border-radius:6px;font-weight:800;font-size:20px;letter-spacing:1px;pointer-events:none;color:#000}
#warn.l{background:#ffc531;animation:bl 0.75s infinite}#warn.m{background:#ff3b2f;color:#fff;animation:bl 0.22s infinite}
#bfl{display:none;position:fixed;right:150px;bottom:210px;width:72px;height:72px;border-radius:50%;background:rgba(240,190,40,.92);border:3px solid #fff;color:#222;font-weight:800;font-size:13px;z-index:12;flex-direction:column;align-items:center;justify-content:center}#bfl small{font-size:12px}

/* infantry buttons (touch) */
#bjmp,#brl,#bst,#bsp{display:none;position:fixed;width:64px;height:64px;border-radius:50%;background:rgba(30,42,54,.78);border:2px solid rgba(255,255,255,.5);color:#fff;font-weight:700;font-size:11px;z-index:12;flex-direction:column;align-items:center;justify-content:center;text-align:center}
#bjmp{right:20px;bottom:132px}#brl{right:92px;bottom:132px}#bst{right:164px;bottom:132px}#bsp{right:236px;bottom:132px}#bsp.on{background:rgba(40,140,70,.9)}#brl small{font-size:12px}
body.touch.portrait #bjmp{bottom:216px}body.touch.portrait #brl{right:92px;bottom:216px}body.touch.portrait #bst{bottom:216px}body.touch.portrait #bsp{bottom:216px}
.warnt{color:#ff9a6a;font-weight:700}
#brp{display:none;position:fixed;right:308px;bottom:132px;width:64px;height:64px;border-radius:50%;background:rgba(40,140,70,.85);border:2px solid #fff;color:#fff;font-weight:700;font-size:11px;z-index:12;align-items:center;justify-content:center}
body.touch.portrait #brp{bottom:216px}

/* ---- item 7: touch layout. Left thumb = stick only. Right thumb column = FIRE, weapon, (flare), throttle. Big targets, nothing under the left thumb. */
body.touch #bfire{right:16px;bottom:16px;width:100px;height:100px}
body.touch #bwpn{right:128px;bottom:20px;width:116px;height:66px;font-size:12px!important}
body.touch #bfl{right:140px;bottom:102px;width:78px;height:78px}
body.touch #bext{right:228px;bottom:102px;width:78px;height:78px}
body.touch #thr{right:16px;bottom:128px;width:80px;height:min(40vh,190px)}
body.touch #bto{left:50%;margin-left:-62px;bottom:16px;width:124px;height:54px;border-radius:27px;font-size:15px}
body.touch #bjmp,body.touch #brl,body.touch #bst,body.touch #bsp,body.touch #brp{width:68px;height:68px;font-size:12px;bottom:128px}
body.touch #bjmp{right:16px}body.touch #brl{right:92px}body.touch #bst{right:168px}body.touch #bsp{right:244px}body.touch #brp{right:320px}
body.touch #bar button{min-width:50px}
body.touch.portrait #bfire{right:16px;bottom:26px}
body.touch.portrait #bwpn{right:16px;bottom:138px;width:116px;height:60px}
body.touch.portrait #bfl{right:16px;bottom:206px;width:80px;height:80px}
body.touch.portrait #bext{right:104px;bottom:206px;width:80px;height:80px}
body.touch.portrait #thr{right:16px;bottom:298px;width:80px;height:min(34vh,270px)}
body.touch.portrait #bto{bottom:170px}
body.touch.portrait #bjmp{right:16px;bottom:206px}body.touch.portrait #brl{right:100px;bottom:206px}body.touch.portrait #bst{right:184px;bottom:206px}
body.touch.portrait #bsp{right:16px;bottom:290px}body.touch.portrait #brp{right:100px;bottom:290px}
body.touch.portrait #bjmp,body.touch.portrait #brl,body.touch.portrait #bst,body.touch.portrait #bsp,body.touch.portrait #brp{width:76px;height:76px}
#land{top:42%;bottom:auto}
@media (max-height:460px){
 body.touch #bar button{width:50px;height:34px}
 body.touch #bfire{width:92px;height:92px;right:16px;bottom:14px}body.touch #bwpn{right:118px;bottom:18px;height:60px}
 body.touch #bfl{right:130px;bottom:90px;width:72px;height:72px}body.touch #bext{right:210px;bottom:90px;width:72px;height:72px}
 body.touch #thr{right:16px;bottom:116px;width:76px;height:min(40vh,150px)}
 body.touch #bto{bottom:12px;height:50px}
 body.touch #bjmp,body.touch #brl,body.touch #bst,body.touch #bsp,body.touch #brp{width:62px;height:62px;bottom:116px}
 body.touch #bjmp{right:16px}body.touch #brl{right:84px}body.touch #bst{right:152px}body.touch #bsp{right:220px}body.touch #brp{right:288px}
}
#score .bl{color:#ff9a6a;font-size:10px}
/* item 11: commander panel in portrait sits under the map (the whole-map view stays visible) */
@media (orientation:portrait){body.touch #cmd{top:auto;bottom:62px;left:4px;right:4px;width:auto;max-height:20vh;padding:4px 6px}body.touch #cmd .sm{display:none}}

#c,#ov,#map,#mapctl{touch-action:none}

/* spectator tools: clickable notices + auto director */
body.spec #feed{pointer-events:auto}body.spec #feed div[data-x]{cursor:pointer;outline:1px solid rgba(255,210,74,.0)}body.spec #feed div[data-x]:hover{background:rgba(60,48,10,.85);outline-color:#ffd24a}
body:not(.spec) #feed div{cursor:default}
body.touch.spec #feed{display:block;left:50%;right:auto;transform:translateX(-50%);width:min(64vw,330px);top:122px}body.touch [data-dir=bar]{display:none!important}
body.touch.spec #feed div[data-x]{padding:6px 8px;margin-bottom:4px}
[data-dir].on{background:#1f7a3a!important;border-color:#6dff9a!important}[data-dir].pz{background:#a8741a!important;border-color:#ffd24a!important}
body.spec #feed{z-index:12}

#snd{position:fixed;left:50%;bottom:48px;transform:translateX(-50%);z-index:60;background:rgba(14,19,24,.95);border:1px solid #3d4d5c;border-radius:8px;padding:10px 14px;display:flex;flex-direction:column;gap:6px;font:13px system-ui;color:#dfe8f0;min-width:220px;touch-action:manipulation}
#snd label{display:flex;justify-content:space-between;align-items:center;gap:10px}#snd input[type=range]{width:120px}#snd button{margin-top:4px}
#hm{position:fixed;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;pointer-events:none;z-index:9;opacity:0;background:linear-gradient(45deg,transparent 46%,#fff 46%,#fff 54%,transparent 54%),linear-gradient(-45deg,transparent 46%,#fff 46%,#fff 54%,transparent 54%);filter:drop-shadow(0 0 2px #000)}
#hm.on{animation:hmf .22s ease-out}@keyframes hmf{0%{opacity:1;transform:scale(.7)}100%{opacity:0;transform:scale(1.3)}}

#ng{position:fixed;left:6px;top:6px;z-index:55;font:12px/1.35 system-ui;color:#dfe8f0;max-width:min(430px,94vw);touch-action:manipulation;display:none}
#ngp{display:inline-block;background:rgba(10,14,18,.78);border:1px solid #3d4d5c;border-radius:14px;padding:3px 10px;cursor:pointer;white-space:nowrap;font-variant-numeric:tabular-nums}
#ngp i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:middle}
#ngd{display:none;margin-top:4px;background:rgba(10,14,18,.92);border:1px solid #3d4d5c;border-radius:8px;padding:8px 10px;max-height:78vh;overflow:auto;font-variant-numeric:tabular-nums}
#ngd h4{margin:8px 0 2px;font-size:12px;letter-spacing:1px}#ngd table{width:100%;border-collapse:collapse}#ngd td{padding:1px 0;vertical-align:top}#ngd td+td{text-align:right;white-space:nowrap;padding-left:10px}
#ngd .ngh{display:flex;justify-content:space-between;font-size:14px}.ngx{cursor:pointer;text-decoration:underline;color:#9ab}#ngd .ngs{margin-top:3px;color:#9ab;font-size:11px}
[data-net].on{outline:2px solid #37d67a}
#mapbg{position:fixed;inset:0;z-index:19;display:none;background:rgba(0,0,0,.28)}
body.touch #mapx{left:calc(50% + min(47vw,43vh) - 38px);top:calc(50% - min(47vw,43vh) + 8px);width:36px;height:36px;line-height:32px;font-size:18px}

/* Primary action remains easy to find on phones and at the command desk. */
#qj,[data-qinf="usa"],[data-office-soldier]{background:#238636!important;color:#fff!important;font-weight:800!important;font-size:1.15rem!important;min-height:56px; padding:14px 20px!important;border:2px solid #78cf86!important;border-radius:10px!important;cursor:pointer}#qj{width:100%;box-shadow:0 3px 12px #0005}#cmd [data-office-soldier]{display:block;width:100%;margin:8px 0}

.team-flag{height:18px;width:auto;vertical-align:middle;margin-right:4px;box-shadow:0 0 0 1px #ffffff55}.rts-title{display:flex;align-items:center;gap:3px;font-weight:800;margin-bottom:8px}.rts-top,.rts-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.rts-top{grid-template-columns:1fr 1fr}.rts-actions button{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:66px;padding:5px!important}#cmd svg{width:30px;height:30px;flex-shrink:0}#cmd small{font-size:10px;display:block;line-height:1.15}.rts-selected{color:#8aff9a;font-size:16px;margin:8px 0;font-weight:800}.rts-groups{display:grid;grid-template-columns:1fr 1fr;gap:3px}.rts-group{display:flex!important;align-items:center;gap:5px;min-height:64px;min-width:0}.rts-group span{min-width:0}.rts-group small{overflow-wrap:anywhere}.rts-group meter{width:100%;height:8px;display:block}.rts-select-box{position:fixed;pointer-events:none;z-index:500;border:1px solid #7cff8d;background:#7cff8d22}.rts-order-pulse{position:fixed;width:26px;height:26px;margin:-13px;border:3px solid #7cff8d;border-radius:50%;z-index:500;pointer-events:none;animation:rts-pulse 1.2s ease-out forwards}@keyframes rts-pulse{to{transform:scale(2);opacity:0}}#cmd [data-office-soldier]{min-height:48px;padding:5px!important;margin:0!important}body.touch #cmd .rts-actions{grid-template-columns:repeat(8,1fr)}body.touch #cmd .rts-actions button{min-height:46px;font-size:10px}body.touch #cmd svg{width:23px;height:23px}body.touch #cmd .rts-top{display:none}body.touch #cmd .rts-groups{display:flex;overflow-x:auto}body.touch #cmd .rts-group{min-width:100px;min-height:46px}body.touch #cmd .rts-title,body.touch #cmd .rts-selected{display:inline-block;margin:0 8px 3px 0}

#wf-objective{position:fixed;pointer-events:none;z-index:14;transform:translate(-50%,-50%);display:flex;align-items:center;gap:5px;border-radius:5px;padding:3px 5px;color:#b9ebc4;background:#101b1b66;font:12px system-ui;text-shadow:0 1px 2px #000}#wf-objective svg{width:18px;height:18px}#wf-objective b{font-size:22px}body.touch #wf-objective{font-size:11px}
#wf-optics{position:fixed;right:12px;top:190px;z-index:35;display:flex;gap:4px}#wf-optics[hidden],#wf-reticle[hidden],.optic-menu[hidden]{display:none!important}#wf-optics button{min-height:40px;background:#15252de8;border:1px solid #7a919c;color:#f4f6f8;border-radius:6px;padding:7px;cursor:pointer}.optic-menu{position:absolute;right:0;top:44px;display:grid;grid-template-columns:repeat(2,125px);gap:4px}.optic-menu button{display:flex;align-items:center;gap:6px}.optic-menu svg{width:34px;height:34px;stroke:#ff635b;fill:none;stroke-width:3}#wf-reticle{position:fixed;inset:0;pointer-events:none;z-index:10;display:grid;place-items:center}#wf-reticle svg{width:min(45vw,45vh);height:min(45vw,45vh);stroke:#ef4a38;stroke-width:1.4;fill:none;filter:drop-shadow(0 0 1px #000)}#wf-reticle span{position:absolute;left:calc(50% + 40px);top:calc(50% + 55px);color:#dadfd5;font:13px system-ui;text-shadow:0 1px 2px #000}#wf-reticle.magnified{background:radial-gradient(circle at center,transparent 0 34vmin,#000e 36vmin)}body.touch #wf-optics{top:110px;right:4px}body.touch #wf-optics button{font-size:11px;min-height:36px}

#wf-vehicle{position:fixed;bottom:70px;left:50%;transform:translateX(-50%);max-width:610px;width:min(610px,80vw);padding:9px 14px 7px;border-radius:22px 22px 7px 7px;border:1px solid #64787d;background:linear-gradient(#243238e8,#0a1014f2);color:#d2e5df;z-index:12;box-shadow:0 -4px 20px #0005}#wf-vehicle[hidden]{display:none}.vehicle-dials{display:flex;justify-content:center;align-items:center;gap:18px}.vehicle-gauge{text-align:center}.vehicle-arc{width:56px;height:56px;border-radius:50%;background:conic-gradient(var(--gauge) var(--value),#39424a 0);display:grid;place-items:center}.vehicle-arc b{background:#101b22;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;color:#e1f6e9;font:18px monospace}.vehicle-gauge small,.vehicle-readout{font:10px monospace}.vehicle-readout b{font:19px monospace}.vehicle-tools{display:flex;justify-content:center;gap:7px;margin-top:5px}.vehicle-tools button{min-height:35px;border:1px solid #5a8175;border-radius:5px;background:#143128;color:#d1eadc;padding:4px 14px;cursor:pointer}.vehicle-tools svg{width:17px;height:17px;vertical-align:middle}.vehicle-contacts{position:absolute;left:calc(100% + 9px);bottom:0;white-space:nowrap;background:#101b22aa;padding:5px;color:#a6dfc9;font:11px system-ui}.vehicle-warning{border-color:#ff6054!important}body.touch #wf-vehicle{bottom:auto;top:52px;width:auto;max-width:75vw;padding:4px 6px;left:4px;transform:none;border-radius:7px}body.touch .vehicle-dials{gap:6px}body.touch .vehicle-arc{width:34px;height:34px}body.touch .vehicle-arc b{width:27px;height:27px;font-size:12px}body.touch .vehicle-gauge small{font-size:8px}body.touch .vehicle-readout{font-size:8px}body.touch .vehicle-readout b{font-size:12px}body.touch .vehicle-tools button{min-height:30px;padding:2px 6px;font-size:10px}body.touch .vehicle-contacts{display:none}

#wf-weather{position:fixed;bottom:49px;right:10px;color:#d1dadd;font:11px system-ui;background:#10202899;padding:3px 7px;border-radius:4px;z-index:12;pointer-events:auto}body.touch #wf-weather{bottom:41px;font-size:9px}
body.touch #wf-optics{right:64px;top:106px;max-width:calc(100vw - 72px)}body.touch #wf-optics>button:first-child{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(orientation:landscape){body.touch #wf-optics{right:4px;top:80px}}

#wf-sky-seats{position:fixed;z-index:80;width:245px;padding:9px;background:#101f2af2;border:1px solid #84989d;border-radius:8px;color:#eef5f2;box-shadow:0 5px 24px #0008}#wf-sky-seats[hidden]{display:none}.sky-seat-title{display:flex;align-items:center;gap:7px;margin-bottom:7px}.sky-seat-title b{font:14px system-ui;flex:1}.sky-seat-title svg{width:27px;height:27px}#wf-sky-seats button{display:flex;align-items:center;gap:9px;min-height:42px;width:100%;padding:6px;background:#22383e;border:1px solid #536d73;color:#eff8ef;border-radius:5px;margin:4px 0;cursor:pointer}#wf-sky-seats button svg{width:25px;height:25px}#wf-sky-seats button:disabled{opacity:.45;cursor:default}.sky-seat-title button{width:30px!important;min-height:28px!important;justify-content:center}

/* Compact join sheet: primary action first; optional setup stays collapsed. */
#roster.join-sheet{background:#101820;width:min(520px,96vw);padding:10px 12px 64px;overscroll-behavior:contain}
#roster .join-head{display:flex;align-items:center;gap:8px;position:sticky;top:-10px;z-index:2;background:#101820;padding:6px 0 10px}
#roster .join-teams{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex:1;min-width:0}
#roster .join-teams button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;min-width:0;padding:5px 3px;margin:0;font-size:12px}
#roster .join-teams .team-flag{height:14px;width:auto;max-width:28px}
#roster .join-head>[data-close]{flex:none;margin:0;min-height:44px;padding:6px 10px}
#roster .join-play{margin:0 0 8px}
#roster .join-primary{width:100%;min-height:48px;background:#287b35;border-color:#70bc7c;font-weight:700;font-size:16px;margin:0}
#roster .join-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 8px}
#roster .join-roles button{min-height:44px;margin:0;padding:6px 4px;font-size:13px}
#roster .join-actions{display:flex;gap:6px;margin-bottom:8px}
#roster .join-actions button{min-height:44px;margin:0}
#roster details{border-top:1px solid #34434f;margin-top:6px}
#roster summary{cursor:pointer;min-height:44px;padding:12px 4px;font-weight:600}
#roster details .deploy{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:6px 0}
#roster details .deploy button{min-height:44px}
#roster details .u{flex-wrap:wrap}
#roster details .u>span{flex-basis:100%}
body.touch #roster.join-sheet{width:100%;padding:8px max(10px,env(safe-area-inset-right)) max(64px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
@media (min-width:650px) and (max-height:520px){
 body.touch #roster .join-main{display:grid;grid-template-columns:minmax(190px,1fr) minmax(310px,2fr);gap:12px;align-items:start}
 body.touch #roster .join-head{max-width:740px}
 body.touch #roster .join-primary{min-height:93px}
}

body.touch #roster.join-sheet .join-roles button,body.touch #roster.join-sheet .join-teams button{min-height:44px}
body.touch #roster.join-sheet .join-primary{min-height:48px}
@media (min-width:650px) and (max-height:520px){body.touch #roster.join-sheet .join-primary{min-height:93px}}
