/* Transparent tactical overlay. Only real controls intercept map clicks. */
#battle-screen .battle-top-hud{
 position:absolute;inset:10px 12px auto;z-index:6;
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,780px) minmax(0,1fr);
 align-items:center;gap:12px;padding:0;border:0;background:transparent;
 pointer-events:none;text-shadow:0 1px 3px #000;
}
.hud-system{min-width:0;padding-left:10px;border-left:2px solid #67cfee;box-shadow:-6px 0 9px -7px #67cfee}
#battle-screen .hud-system h1{margin:0;font-family:Orbitron,'GFA Command',sans-serif;font-size:16px;font-weight:500;line-height:1.3;letter-spacing:.06em;text-transform:uppercase;color:#d3efff;overflow-wrap:anywhere}
.hud-system #scenario-label{font-family:Rajdhani,'Segoe UI',sans-serif;font-size:12px;font-weight:600;letter-spacing:.05em;color:#a7c7d8}
.hud-system .hud-system-separator{font-family:Rajdhani,sans-serif;color:#759aad}
.battle-matchup{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,1fr) minmax(0,1fr);align-items:stretch;min-width:0}
.hud-team{min-width:0;display:flex;align-items:center;min-height:54px;padding:7px 10px;border-top:1px solid #397b8b55;border-bottom:1px solid #397b8b55;background:transparent}
.hud-team-a{border-left:1px solid #397b8b55;clip-path:polygon(7px 0,100% 0,100% 100%,7px 100%,0 calc(100% - 7px),0 7px)}
.hud-team-b{border-right:1px solid #397b8b55;clip-path:polygon(0 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%)}
.hud-team[aria-current=true]{border-bottom-color:var(--hud-team);filter:drop-shadow(0 1px 3px color-mix(in srgb,var(--hud-team) 22%,transparent))}
.hud-team-identity{display:flex;align-items:center;gap:8px;min-width:0;width:100%;color:var(--hud-team)}
.hud-team-a .hud-team-identity{flex-direction:row-reverse;justify-content:flex-start;text-align:right}
.hud-team-identity>div{min-width:0}
#battle-screen .hud-souls{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;margin-top:4px;color:#b1c7d2;font:500 10px/1.2 Rajdhani,'Segoe UI',sans-serif;letter-spacing:.025em;text-transform:uppercase}
#battle-screen .hud-souls>span{white-space:nowrap}
#battle-screen .hud-souls b{font-weight:600;color:var(--hud-team);font-variant-numeric:tabular-nums}
#battle-screen .hud-team-a .hud-souls{justify-content:flex-end}
#battle-screen .hud-team-identity strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-family:Rajdhani,'Segoe UI',sans-serif;font-weight:700;font-size:18px;line-height:1.1;overflow-wrap:anywhere;text-transform:uppercase;letter-spacing:.03em;text-shadow:0 1px 3px #000,0 0 7px color-mix(in srgb,var(--hud-team) 25%,transparent)}
.hud-team-mark{display:flex;width:26px;flex:0 0 26px;filter:drop-shadow(0 0 3px color-mix(in srgb,var(--hud-team) 30%,transparent))}
.hud-team-mark svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.2}
#battle-screen .battle-top-hud .battle-title-hud{
 position:relative;inset:auto;transform:none;display:flex;justify-content:center;align-items:center;
 width:100%;max-width:none;min-width:0;padding:5px 10px;border:0;border-left:1px solid #397b8b55;
 border-right:1px solid #397b8b55;border-radius:0;background:transparent;box-shadow:none;
}
#battle-screen .battle-top-hud .battle-title-hud h2{font-size:16px;margin:3px 0 0;line-height:1.15}
#battle-screen .battle-top-hud .battle-title-hud .eyebrow{font-family:Rajdhani,sans-serif;font-size:11px;line-height:1.15;letter-spacing:.12em;color:#bdd7e5}
.battle-top-hud .battle-title-summary{min-width:0;text-align:center}
#battle-screen .battle-top-hud .hud-turn-progress{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);width:240px;max-width:calc(100vw - 24px);text-align:center}
#battle-screen .battle-top-hud #turn-action{min-width:0;width:100%}
#battle-screen .battle-top-hud #turn-action button{pointer-events:auto;min-height:32px;padding:6px 10px;font-size:12px;background:#0b283855;border-color:#397b8b99}
#battle-screen .battle-top-hud #turn-action button:hover{background:#163e52cc}
#battle-screen .battle-top-hud .phase-pill{display:block;margin:0;padding:2px 5px;border:0;background:transparent;color:#aac7d5;font-size:10px;line-height:1.2}
#battle-screen .battle-top-hud .token-result{margin:3px 0 0;font-size:10px;line-height:1.2;overflow-wrap:anywhere}
.hud-utilities{display:flex;justify-content:flex-end;align-items:center}
#battle-screen .hud-sound-button{pointer-events:auto;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:1px solid #397b8b88;background:transparent;color:#b9dceb;border-radius:2px}
.hud-sound-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#battle-screen .ai-turn-tag{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;padding:7px 11px;border:1px solid #62cee077;background:linear-gradient(110deg,#0b2838ed,#071621df);color:#bceffc;font:600 11px/1.25 Orbitron,Rajdhani,sans-serif;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 0 13px #39c0da18;pointer-events:none}
.ai-turn-tag>span{width:4px;height:4px;flex:0 0 4px;border-radius:50%;background:#c8f8ff;box-shadow:0 0 7px #5bd9ef}
.ai-turn-status{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:100%}
#battle-screen .ai-turn-activity{max-width:100%;color:#adcbd8;font:600 11px/1.3 Rajdhani,sans-serif;letter-spacing:.02em;overflow-wrap:anywhere;text-align:center;pointer-events:none}
#battle-screen .ai-force-skip{font-size:11px;padding:6px 10px;min-height:32px;border-color:#d7a76599;color:#ffdda3;pointer-events:auto}
#battle-screen .battle-hud-shell{top:84px}
#battle-screen .hud-score-summary{padding:12px;border-bottom:1px solid #397b8b66;text-align:center}
.hud-score-summary>span{font-size:12px;color:#91acba}
#battle-screen .hud-score-summary .scoreboard{display:flex;justify-content:center;align-items:center;gap:12px;padding:8px;border:0;background:transparent}
.hud-score-summary .hud-vp{font-size:22px;font-variant-numeric:tabular-nums}
.hud-score-summary .scoreboard small{font-size:10px;color:#91acba}
.hud-table-size{margin:0;padding:6px 14px;color:#91acba;font-size:12px}
@media(max-width:1100px){
 #battle-screen .battle-top-hud{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,2.6fr) minmax(0,1fr)}
 .hud-team{padding:6px}.hud-team-mark{display:none}
 #battle-screen .hud-team-identity strong{font-size:15px}
 #battle-screen .hud-system h1{font-size:13px}
}
@media(max-width:700px){
 #battle-screen .battle-top-hud{position:relative;inset:auto;grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:8px}
 .hud-system{grid-column:1;grid-row:1}.hud-utilities{grid-column:2;grid-row:1}
 .battle-matchup{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1fr) minmax(126px,1.2fr) minmax(0,1fr)}
 .hud-team{padding:5px;min-height:44px}
 #battle-screen .hud-team-identity strong{font-size:13px;letter-spacing:0}
 #battle-screen .battle-top-hud .battle-title-hud{display:flex;flex-direction:column;gap:4px;padding:5px}
 #battle-screen .battle-top-hud .battle-title-hud h2{font-size:14px}
 #battle-screen .battle-top-hud .hud-turn-progress{position:static;transform:none;width:100%;max-width:100%}
 #battle-screen .battle-top-hud #turn-action button{min-height:44px}
 #battle-screen .battle-hud-shell{top:auto}
}
