/* Model renders remain available throughout the armory and inventory. */
.weapon-art{display:block;width:100%;height:100%;object-fit:contain;object-position:center;pointer-events:none;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 5px 3px #06142170)}
.br-slot-art>.weapon-art{transform:none}
.weapon-hud{display:block;min-width:235px;max-width:min(470px,calc(100vw - 30px));text-align:right}
.weapon-hud>#weaponType{letter-spacing:2px;font-size:8px;line-height:1.4}.weapon-hud>.ammo{position:relative;justify-content:flex-end;line-height:1;margin:2px 0 4px}.weapon-hud>.ammo>span{font-size:58px;font-weight:800;line-height:1;letter-spacing:-2px}.weapon-hud>.ammo>small{font-size:19px;margin-left:6px;letter-spacing:0}.weapon-hud>.weapon-name{display:block}.weapon-hud>.weapon-name strong{display:block;font-size:14px;line-height:1.25;font-weight:900;letter-spacing:.6px;overflow-wrap:anywhere}.weapon-hud>.weapon-name>span{display:inline;font-size:8px;opacity:.7}.weapon-hud>.weapon-hint{margin-top:8px;font-size:6px}.weapon-hud.melee>.ammo>span{font-size:32px;line-height:1.8;letter-spacing:3px}
/* Original compact, text-only loadout buttons. */
#hudSlots,body.touch-mode #hudSlots{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:stretch;gap:5px;margin:10px 0 8px;margin-left:auto;max-width:470px;pointer-events:auto;isolation:isolate}
#hudSlots>.hotbar-slot{--slot-color:#8c9ba6;position:relative;display:block;flex:0 1 auto;width:auto;height:auto;min-height:26px;max-width:100%;padding:6px 9px;border:1px solid color-mix(in srgb,var(--slot-color) 45%,transparent);border-radius:3px;background:#122d3d80;color:color-mix(in srgb,var(--slot-color) 65%,#dcebf2);box-shadow:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-size:8px;font-weight:700;line-height:1.4;letter-spacing:.8px;text-align:center;white-space:normal;overflow-wrap:anywhere;text-transform:uppercase;transition:background .12s ease,border-color .12s ease}
#hudSlots>.hotbar-slot.active{border-color:var(--slot-color);color:color-mix(in srgb,var(--slot-color) 80%,#fff);background:color-mix(in srgb,var(--slot-color) 22%,#173f4ca8);box-shadow:inset 0 0 8px color-mix(in srgb,var(--slot-color) 12%,transparent)}
#hudSlots>.hotbar-slot:focus-visible{outline:2px solid #e7fff9;outline-offset:3px}#hudSlots>.hotbar-slot:disabled{cursor:default;opacity:.55}#hudSlots>.hotbar-slot.is-empty{color:#a6bcc8;border-color:#d4ecf233;background:#122d3d80}#hudSlots>.hotbar-slot.is-empty.active{border-color:var(--mint);color:var(--mint);background:#173f4ca8}
.hotbar-label{pointer-events:none}.hotbar-key{display:inline;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;white-space:normal}.hotbar-stack{white-space:nowrap}.hotbar-stack b{font-weight:inherit}
@media(max-width:900px){.weapon-hud{min-width:0}.weapon-hud>.ammo>span{font-size:36px}}
body.touch-mode #hud .weapon-hud{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:calc(env(safe-area-inset-bottom) + 12px);display:block;min-width:0;width:228px;margin:0;pointer-events:none}
body.touch-mode #hud .weapon-hud>#weaponType{display:none}body.touch-mode #hud .weapon-hud>.ammo{align-self:end;margin:0 0 3px}body.touch-mode #hud .weapon-hud>.ammo>span{font-size:29px;letter-spacing:-1px}body.touch-mode #hud .weapon-hud>.ammo>small{font-size:9px;margin-left:3px}body.touch-mode #hud .weapon-hud>.weapon-name{max-width:none}body.touch-mode #hud .weapon-hud>.weapon-name strong{font-size:9px;letter-spacing:0;line-height:1.15}body.touch-mode #hud .weapon-hud.melee>.ammo>span{font-size:16px;letter-spacing:.5px}body.touch-mode .weapon-hud>.weapon-hint{display:none}
body.touch-mode #hudSlots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:6px 0 0;width:100%}body.touch-mode #hudSlots>.hotbar-slot{width:100%;min-width:44px;min-height:44px;padding:4px 6px;font-size:7px;letter-spacing:.3px;line-height:1.35}
@media(orientation:landscape){body.touch-mode #hud .weapon-hud{position:fixed;right:calc(var(--mobile-right) + var(--mobile-cluster) + 12px);bottom:var(--mobile-bottom)}body.touch-mode #hud .hud-bottom{display:block;max-width:112px}body.touch-mode #hud .hud-bottom #healthPanel{max-width:112px}body.touch-mode #hud #reloadIndicator{bottom:calc(100% + 5px)}}
@media(orientation:landscape) and (max-width:740px){body.touch-mode #hud .weapon-hud{right:var(--mobile-right);bottom:calc(var(--mobile-bottom) + var(--mobile-cell)*3 + 30px)}}
@media(orientation:portrait){
 body.touch-mode #hud .weapon-hud{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:calc(env(safe-area-inset-bottom) + 255px);width:135px;min-width:0}
 body.touch-mode #hudSlots{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:calc(env(safe-area-inset-bottom) + 12px);grid-template-columns:repeat(5,minmax(0,1fr));width:min(420px,calc(100vw - 24px));margin:0}
 body.touch-mode #hudSlots>.hotbar-slot{min-height:54px}
 body.touch-mode #joystick>span{bottom:-9px}
 body.touch-mode #hud .hud-bottom #healthPanel{width:200px;max-width:200px;min-width:0;translate:0 -32px}
}
@media(prefers-reduced-motion:reduce){#hudSlots>.hotbar-slot{transition:none}}
