/* Battle HUD v2: slim night-city equipment rail. Delete this file, battle-hud.js and their tags to revert. */
:root{--bh-cyan:#6ee6ee;--bh-warm:#ffd16a;--bh-night:#0a1224}
#viewport .bottomhud,#viewport .shield-hud,#viewport .wavehud{opacity:0!important;pointer-events:none!important;animation:none!important}
#bh{position:absolute;left:0;right:0;bottom:calc(19px + env(safe-area-inset-bottom));z-index:3;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:5px;font-family:NeonNumbers,NeonUI,Microsoft YaHei,sans-serif}
#bh[hidden],.bh-tag[hidden]{display:none}
.bh-tag{padding:2px 12px;border:1px solid #6ee6ee99;background:#0a1224d9;color:var(--bh-cyan);font:700 12px NeonUI,Microsoft YaHei,sans-serif;letter-spacing:2px;box-shadow:0 0 10px #6ee6ee33}
.bh-panel{display:flex;flex-direction:column;align-items:center;gap:4px;width:min(344px,100%);padding:4px 0;outline:1px solid #2f4a6688;outline-offset:-1px;border-radius:7px;background:linear-gradient(#101a3499,#0a122499);box-shadow:0 0 12px #57bed922,inset 0 1px 0 #6ee6ee1a}
.bh-gear{display:flex;flex-wrap:wrap;justify-content:space-evenly;row-gap:2px;width:100%}
.bh-slot{--c:#a8b7b5;position:relative;flex:none;width:64px;height:64px;display:grid;place-items:center;overflow:hidden;border-radius:5px;border:1px solid color-mix(in srgb,var(--c) 75%,var(--bh-night));background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--c) 42%,var(--bh-night)),color-mix(in srgb,var(--c) 14%,var(--bh-night)) 75%);box-shadow:inset 0 0 6px #0009,0 0 5px color-mix(in srgb,var(--c) 28%,transparent)}
.bh-slot img{position:absolute;inset:0;z-index:0;width:100%;height:100%;box-sizing:border-box;padding:6px;object-fit:contain;image-rendering:pixelated}
.bh-slot img.fb{padding:16px;opacity:.92;filter:drop-shadow(0 0 4px var(--c))}
.bh-slot::after{content:'';position:absolute;inset:0;z-index:3;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--c),inset 0 0 8px var(--c);opacity:0}
.bh-slot.empty{border:1px dashed #3a5270aa;background:#0a122459;box-shadow:none}
.bh-slot.empty img{opacity:.22;filter:grayscale(1)}
.bh-slot.g2{box-shadow:inset 0 0 6px #0009,0 0 7px color-mix(in srgb,var(--c) 38%,transparent)}
.bh-slot.g3{box-shadow:inset 0 0 6px #0009,0 0 8px color-mix(in srgb,var(--c) 50%,transparent);animation:bh-glow 3.6s ease-in-out infinite}
.bh-slot.g4{box-shadow:inset 0 0 6px #0009,0 0 10px color-mix(in srgb,var(--c) 62%,transparent);animation:bh-glow 3s ease-in-out infinite}
.bh-slot.g5{box-shadow:inset 0 0 6px #0009,0 0 13px color-mix(in srgb,var(--c) 78%,transparent);animation:bh-glow 2.4s ease-in-out infinite}
.bh-slot.g4::before,.bh-slot.g5::before{content:'';position:absolute;inset:0 -40%;z-index:1;background:linear-gradient(105deg,#0000 42%,#ffffff55 50%,#0000 58%);transform:translateX(-90%);animation:bh-sheen 4.5s ease-in-out infinite}
.bh-slot.g5::before{background:linear-gradient(105deg,#0000 42%,#fff2b899 50%,#0000 58%);animation-duration:3.2s}
.bh-slot .cd{position:absolute;inset:0;z-index:2;background:conic-gradient(#0000 calc((1 - var(--cd,0))*360deg),#060b18cc 0)}
.bh-slot.fire img{animation:bh-pop .2s ease-out}
.bh-slot.fire::after{animation:bh-ring .28s ease-out}
.bh-slot.rdy::after{animation:bh-rdy .6s ease-out}
.bh-slot.calm:not(.empty) img{animation:bh-breath 3.2s ease-in-out infinite}
.bh-score{display:flex;align-items:baseline;gap:8px;white-space:nowrap;padding-left:2px}
.bh-cash{display:inline-block;font:800 14px NeonNumbers,monospace;color:var(--bh-warm);text-shadow:0 0 6px #ffd16a66,1px 1px 0 #050a16}
.bh-kos{font:700 9px NeonNumbers,monospace;color:#8fb4c4;letter-spacing:1px}
.bh-kos em{display:inline-block;font-style:normal;font-size:13px;color:var(--bh-cyan);text-shadow:0 0 6px #6ee6ee66,1px 1px 0 #050a16}
.bump{animation:bh-bump .22s ease-out}
@keyframes bh-bump{50%{transform:scale(1.12)}}
@keyframes bh-glow{50%{filter:brightness(1.25)}}
@keyframes bh-sheen{0%,55%{transform:translateX(-90%)}100%{transform:translateX(90%)}}
@keyframes bh-pop{40%{transform:scale(1.18);filter:brightness(1.35)}}
@keyframes bh-ring{from{opacity:.9}to{opacity:0}}
@keyframes bh-rdy{0%{opacity:1;box-shadow:inset 0 0 0 2px #fff,inset 0 0 14px #fff}100%{opacity:0}}
@keyframes bh-breath{50%{transform:scale(1.05);filter:brightness(1.15)}}
@media(prefers-reduced-motion:reduce){.bh-slot,.bh-slot::before,.bh-slot::after,.bh-slot img,.bump{animation:none!important}}
