/* Tournament instrumentation: one legible combat layer, no moving damage count. */
#hud .match-top{min-height:84px;padding-top:max(18px,env(safe-area-inset-top));background:linear-gradient(#07101bd9,#07101b00);align-items:start}
#hud #timer{position:relative;min-width:124px;padding:10px 18px 12px;border-top:2px solid #bbc8d6;border-bottom:3px solid #cfab57;background:linear-gradient(#263a50f2,#101d2df2);box-shadow:inset 0 1px #eff5ff42,0 4px 0 #03081188;color:#fff3d5;font-size:38px;letter-spacing:.025em;text-shadow:0 2px #020711}
#hud .match-tools button{height:44px;min-width:44px;padding:10px 13px;border:1px solid #70879d;border-top-color:#a3b5c6;background:linear-gradient(#2b4055,#132337);border-radius:0;color:#e8eef3;box-shadow:inset 0 1px #ffffff24,0 3px #02071280}
#hud #matchLabel{padding-top:10px;color:#c1d3e2;text-shadow:0 1px #020711;font-size:11px;letter-spacing:.075em}
#hud .fighter-hud{position:absolute;isolation:isolate;grid-template-columns:82px minmax(0,1fr);width:280px;gap:8px;padding:10px 12px 10px 5px;border:0;border-bottom:3px solid var(--player-color);border-radius:0;background:linear-gradient(105deg,#0b1728f5,#182e43f0);box-shadow:inset 0 1px #8ca1b866,0 5px 0 #02081180;filter:none}
#hud .fighter-hud:before{content:'';display:block;position:absolute;inset:0;z-index:-1;border:1px solid #91a9bf47;clip-path:polygon(0 0,86% 0,100% 28%,100% 100%,0 100%);pointer-events:none}
#hud .fighter-hud:after{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--player-color)}
#hud .hud-portrait{height:110px;width:82px;margin-top:-24px;align-self:end;background:linear-gradient(125deg,#ffffff00 30%,#6688a028);filter:drop-shadow(2px 3px 0 #0006)}
#hud .hud-player{font:700 10px/1 var(--font-ui);letter-spacing:.07em;color:var(--player-color)}
#hud .hud-player>b{font:900 15px/1 var(--font-display);color:#071322;background:var(--player-color);padding:2px 7px;letter-spacing:0;min-width:27px;text-align:center}
#hud .hud-player>span{color:#9eb4c8;font-size:8px;letter-spacing:.08em}
#hud .damage{font:900 66px/.9 var(--font-display);font-variant-numeric:tabular-nums;letter-spacing:-.04em;text-shadow:0 3px #020711,2px 0 #020711,-2px 0 #020711}
#hud .damage small{font:700 27px var(--font-display);margin-left:2px;color:#e5edf3}
#hud .hud-name{font:700 17px/1.05 var(--font-display);letter-spacing:.03em;margin:4px 0 7px;color:#eaf3fa;white-space:nowrap}
#hud .hud-resources{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:18px}
#hud .stocks{display:flex;align-items:center;gap:3px;margin:0;min-height:14px;flex-wrap:wrap}
#hud .stocks i{width:13px;height:14px;border:0;border-radius:0;background:none;clip-path:none;display:block}
#hud .stocks svg{display:block;width:100%;height:100%;fill:var(--player-color);stroke:#d7e9f5;stroke-width:.65}
#hud .stocks .stock-cut{fill:#d6e8f3;stroke:none;opacity:.6}
#hud .hud-guard{--guard-fill:1;--guard-color:#a5c9dc;position:relative;display:flex;align-items:center;gap:4px;flex:0 0 70px;min-width:0;color:var(--guard-color)}
#hud .hud-guard>svg{width:11px;height:13px;fill:currentColor;flex:0 0 11px}
#hud .guard-track{height:5px;flex:1;background:#050b13;border:1px solid #6e839866;overflow:hidden}
#hud .guard-track i{display:block;width:100%;height:100%;background:var(--guard-color);transform:scaleX(var(--guard-fill));transform-origin:left;transition:none}
#hud .guard-label{position:absolute;right:0;top:11px;font:600 6px/1 var(--font-ui);letter-spacing:.07em;color:#a3b9cb}
#hud .hud-guard[data-state='guarding']{--guard-color:#e9f7ff}
#hud .hud-guard[data-state='low']{--guard-color:#f5b652}
#hud .hud-guard[data-state='broken']{--guard-color:#ed605d}
#hud .hud-guard[data-state='broken'] .guard-track{background:repeating-linear-gradient(135deg,#ed605d88 0 2px,#07111d 2px 4px)}
#hud .hud-guard[data-state='out']{opacity:.35}
#hud .match-intro .intro-fighter{border-radius:0;border:1px solid #6f8ca4;border-top:2px solid #b7c9d9;border-bottom:5px solid var(--intro-color);background:linear-gradient(115deg,#132a40f5,#081525f5);box-shadow:inset 0 1px #d3e6f328,0 8px #03091470}
#hud .intro-fighter>span{color:#a6c2d5}
#hud .intro-versus{color:#f5cc6f;text-shadow:0 3px #030914}
#hud .intro-arena{border:1px solid #657e98;border-bottom:3px solid #d0ab58;background:#0c1c30f2;color:#f2eddc}
#hud .intro-arena small{color:#9eb7cc}
.results.match-results .result-card{border-radius:0;background:linear-gradient(110deg,#152a40f5,#0b192af5);border:1px solid #5d778f;border-top:3px solid var(--result-color);box-shadow:inset 0 1px #bfd0df22,0 5px #02071180}
.results.match-results .result-winner{border-color:#b99956;border-top-color:#f1cd77;background:linear-gradient(110deg,#2a3c4cf5,#101f31f5)}
.results.match-results .result-actions button{border-radius:0;box-shadow:inset 0 1px #fff5,0 4px #020811a0}
.results.match-results .result-actions .ready{background:linear-gradient(#f3d98e,#c8a04e);border:1px solid #ffe6ac;color:#162032}
@media(max-width:760px){
 #hud .match-top{padding:12px 12px 0;gap:8px;min-height:76px}#hud #timer{min-width:104px;font-size:32px;padding:8px 12px 10px}#hud #matchLabel{max-width:21ch;font-size:9px}
 #hud .fighter-hud{width:min(205px,calc(50% - 18px));grid-template-columns:55px minmax(0,1fr);gap:6px;padding:8px 9px 8px 5px}#hud .hud-portrait{width:55px;height:83px;margin-top:-16px}#hud .damage{font-size:50px}#hud .damage small{font-size:22px}#hud .hud-name{font-size:14px;margin-bottom:6px}#hud .hud-player>span{display:none}#hud .hud-player>b{font-size:12px;padding:2px 5px}#hud .hud-resources{gap:4px}#hud .hud-guard{flex-basis:62px}#hud .stocks i{width:11px;height:12px}
}
@media(max-width:430px){
 #hud .fighter-hud{width:calc(50% - 18px);grid-template-columns:34px minmax(0,1fr);gap:4px;padding:8px 6px 9px 5px}#hud .hud-portrait{width:34px;height:68px;margin-top:-10px}#hud .damage{font-size:42px}#hud .damage small{font-size:18px}#hud .hud-name{font-size:12px;letter-spacing:0}#hud .hud-guard{flex-basis:45px;gap:2px}#hud .hud-guard>svg{width:8px;flex-basis:8px}#hud .stocks{gap:2px}#hud .stocks i{width:8px;height:10px}#hud .guard-label{font-size:5px}#hud .hud-resources{gap:3px}
}
@media(max-height:540px) and (min-width:761px){#hud .fighter-hud{width:230px;grid-template-columns:55px minmax(0,1fr);padding:7px 10px 8px 5px;gap:5px}#hud .hud-portrait{width:55px;height:76px;margin-top:-10px}#hud .damage{font-size:48px}#hud .damage small{font-size:20px}#hud .hud-name{font-size:13px}#hud .hud-player>b{font-size:11px;padding:1px 5px}#hud .hud-player>span{display:none}#hud .hud-guard{flex-basis:58px}#hud .stocks i{width:10px;height:11px}#hud .match-top{min-height:70px;padding-top:10px}#hud #timer{font-size:30px;padding:6px 12px 8px;min-width:100px}}
