/* Combat: two primary readouts, contextual actions, unobstructed centre. */
.game-hud{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.hud-top{top:max(18px,env(safe-area-inset-top));left:24px;right:24px;justify-content:flex-end}
.hud-unit,.gear-chip,.wave-hud,.score-hud,.radar,.control-label,#fire-caption{display:none!important}
.hud-actions{gap:8px}.hud-actions .icon-button{width:37px;height:37px;border-radius:9px;background:#10182080;border-color:#d9e8fa24}
.vitals{position:fixed;left:max(24px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom));width:176px;padding:12px 14px 14px;background:linear-gradient(110deg,#101722e8,#10172285);border:1px solid #d9e8fa24;border-radius:10px;box-shadow:0 6px 24px #0003}
.health-caption{margin:0 0 8px;align-items:center;font:600 9px/1.2 system-ui;letter-spacing:.15em;color:#bdcadd}.health-caption strong{font:750 28px/1 system-ui;color:#f4f7fc!important;letter-spacing:-.04em}.health-track{height:5px;border-radius:3px;overflow:hidden;background:#edf4ff20}
.vitals.critical .health-caption strong{color:#ff7188!important}.vitals.critical #health-bar{background:#ff667f}.vitals.regenerating #health-bar{background:#a8e4cc}
.weapon-tag{position:fixed;top:auto;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));left:auto;width:220px;display:flex;justify-content:space-between;gap:12px;align-items:flex-end;padding:12px 14px 14px;background:linear-gradient(250deg,#101722e8,#10172285);border:1px solid #d9e8fa24;border-radius:10px;box-shadow:0 6px 24px #0003;color:#f4f7fc}
#weapon-button{background:transparent;padding:5px 0;font:700 12px/1.4 system-ui;letter-spacing:.09em;color:#dfe9f8;white-space:nowrap}#weapon-button span{font-size:11px;color:var(--rose)}
.ammo-readout{text-align:right}.ammo-readout>span{display:block;color:#bdcadd;font:600 8px/1.2 system-ui;letter-spacing:.13em;margin-bottom:4px}.ammo-readout>div{display:flex;align-items:baseline;justify-content:flex-end;gap:5px}#ammo-label{font:750 36px/.9 system-ui;letter-spacing:-.055em;color:#f4f7fc}#ammo-capacity{font:500 12px system-ui;color:#9cabc1;letter-spacing:0}
.fire-area.reloading #ammo-state{color:var(--rose)}.ammo-low #ammo-label{color:#ff738f}.charge-track{position:fixed;left:auto;right:max(38px,env(safe-area-inset-right));bottom:max(28px,env(safe-area-inset-bottom));width:192px;height:3px;background:transparent;overflow:hidden;border-radius:2px;z-index:2}.charge-track i{display:block;height:100%;background:var(--rose)}
.crosshair{width:19px;height:19px;opacity:.8}.crosshair i:nth-child(1){left:9px;width:1px;height:4px}.crosshair i:nth-child(2){left:9px;width:1px;height:4px}.crosshair i:nth-child(3){top:9px;height:1px;width:4px}.crosshair i:nth-child(4){top:9px;height:1px;width:4px}.crosshair b{left:8px;top:8px;width:3px;height:3px}.blade-equipped .crosshair{opacity:.38}.blade-guard .crosshair{color:#c9f4ff;opacity:.8;transform:translate(-50%,-50%) rotate(45deg)}
.wave-announcement{top:19%;max-width:85%;white-space:normal}.wave-announcement strong{font-size:clamp(22px,3vw,35px);letter-spacing:.14em}.wave-announcement small{line-height:1.6;letter-spacing:.13em}.pickup-button{bottom:24%;border-radius:8px;font-size:11px}.game-tip{bottom:86px;font-size:9px;letter-spacing:.04em;color:#bdcadd;width:70%}
.touch-controls{left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr);gap:10px;align-items:end}
.joystick-area{min-width:0;gap:0}.joystick-area:first-child{justify-self:start}.joystick-area:last-child{justify-self:end}.joystick-ring{width:94px;height:94px;border-color:#d5e4fa50;background:#13203370}.joystick-knob{width:42px;height:42px;left:calc(50% - 21px);top:calc(50% - 21px);background:#cfe0f52b;border-color:#eaf1ff70}
.fire-area{position:static;min-width:0;gap:0}.fire-row{position:fixed;bottom:max(132px,calc(env(safe-area-inset-bottom) + 112px));left:18px;right:18px;display:flex;justify-content:center;gap:7px;align-items:center}.aim-control{position:static}.mini-control{width:42px;height:42px;flex:0 0 42px;border:1px solid #dae8ff40;border-radius:10px;background:#111e2ddb;color:#e4edfc;font-size:23px;touch-action:none}
#fire-button{position:fixed;left:calc(50% - 35px);bottom:max(36px,env(safe-area-inset-bottom));width:70px;height:70px;box-shadow:0 0 0 5px #111e2d66;border-radius:50%}#fire-button svg{width:31px;height:31px}#jump-button{border-color:var(--rose);background:color-mix(in srgb,var(--rose) 18%,#111e2d)}
@media(hover:hover) and (pointer:fine) and (min-width:901px){
 #move-stick,#look-stick{display:none}.touch-controls{display:block}.fire-row{left:50%;right:auto;transform:translateX(-50%);bottom:24px;gap:8px}.fire-row #fire-button{position:static;width:44px;height:44px;flex:0 0 44px;border-radius:10px;box-shadow:none}.fire-row #fire-button svg{width:23px;height:23px}.fire-row .mini-control{width:39px;height:39px;flex-basis:39px;font-size:21px}
}
@media(max-width:900px),(pointer:coarse){
 .vitals{left:max(18px,env(safe-area-inset-left));bottom:max(201px,calc(env(safe-area-inset-bottom) + 185px));width:139px;padding:10px 12px}.health-caption strong{font-size:26px}.health-caption{font-size:8px}.weapon-tag{right:max(18px,env(safe-area-inset-right));bottom:max(201px,calc(env(safe-area-inset-bottom) + 185px));width:148px;padding:10px 12px;gap:7px}#weapon-button{font-size:10px}#ammo-label{font-size:31px}#ammo-capacity{font-size:10px}.charge-track{right:max(30px,env(safe-area-inset-right));bottom:max(205px,calc(env(safe-area-inset-bottom) + 189px));width:124px}.game-tip{bottom:273px;width:88%;font-size:8px}.hud-top{left:16px;right:16px;top:max(14px,env(safe-area-inset-top))}.hud-actions .icon-button{width:32px;height:32px}.pickup-button{bottom:37%}
}
@media(max-height:450px) and (orientation:landscape){
 .vitals,.weapon-tag{bottom:max(164px,calc(env(safe-area-inset-bottom) + 145px));padding:8px 11px}.health-caption strong{font-size:23px}#ammo-label{font-size:27px}.vitals{width:136px}.weapon-tag{width:145px}.charge-track{bottom:168px}.fire-row{bottom:115px}.mini-control{width:38px;height:38px;flex-basis:38px}.joystick-ring{width:88px;height:88px}#fire-button{bottom:27px;width:66px;height:66px;left:calc(50% - 33px)}.game-tip{bottom:236px}.wave-announcement{top:17%}
}
@media(max-width:360px) and (orientation:portrait){.joystick-ring{width:82px;height:82px}.touch-controls{left:12px;right:12px;gap:4px;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr)}.vitals{left:12px;width:124px}.weapon-tag{right:12px;width:139px}.fire-row{gap:5px}.mini-control{width:40px;height:40px;flex-basis:40px}}
.xr-mode .game-hud{display:none!important}

/* Survival streak badge (and pickup notice) under the top edge, clear of the crosshair. */
.combo-label{position:fixed;left:50%;top:max(66px,calc(env(safe-area-inset-top) + 54px));transform:translateX(-50%);padding:7px 15px 9px;border-radius:999px;background:#101722d6;border:1px solid #ff80b266;color:#ffe3ef;font:700 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.13em;white-space:nowrap;pointer-events:none;overflow:hidden;box-shadow:0 6px 22px #0004}
.combo-label::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:calc(var(--left,1) * 100%);background:#ff80b2}
.combo-label[hidden]{display:none}
.combo-label.pickup{border-color:#9fe6da88;color:#e6fffb}.combo-label.pickup::after{display:none}
.stereo-mode .combo-label{display:none}
