#hud-ammo{width:224px;height:70px;position:absolute;top:44px;right:10px;display:block;pointer-events:none}
#hud-ammo-art{position:absolute;inset:0;width:224px;height:70px;pointer-events:none}
.hud-right{gap:8px;align-items:flex-end}
.hud-grenade{font-size:11px;margin-bottom:5px}
.hud-slots{gap:4px;min-width:0;flex:1}
.hud-slots .slot{width:154px;flex:1;max-width:154px}
/* Battle hand stays two rows: the name row truncates (full name and model are in the titles),
   the model line is dropped and the rarity shrinks to its letter in the top-right corner
   (the category tag already holds the bottom-right corner, see nightfall.css). */
#hud-inv .slot-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hud-inv .slot-name .weapon-reference{display:none}
#hud-inv .slot-name .weapon-rarity{position:absolute;right:4px;top:3px;margin:0;padding:0 2px;font-size:0;line-height:1}
#hud-inv .slot-name .weapon-rarity::before{content:attr(data-rarity);font-size:8px}
#hud-inv .slot:has(.weapon-rarity) .slot-top{padding-right:12px}
/* Durability at a glance: --dur (0..1) scales a gauge behind the content; data-dur tints the card. */
#hud-inv .slot{isolation:isolate}
#hud-inv .slot[data-dur]::before{content:"";position:absolute;inset:0;z-index:-1;transform-origin:0 0;transform:scaleX(var(--dur,1));background:#1c565a}
#hud-inv.hud-slots .slot[data-dur=mid]{background-color:#2c2615}
#hud-inv.hud-slots .slot[data-dur=mid]::before{background:#70500f}
#hud-inv.hud-slots .slot[data-dur=low]{background-color:#2e1816}
#hud-inv.hud-slots .slot[data-dur=low]::before{background:#8c2824}
#hud-inv.hud-slots .slot[data-dur=broken]{background:repeating-linear-gradient(135deg,#171717 0 4px,#2b1a19 4px 8px)}
#hud-inv .slot[data-dur=broken] .slot-name{opacity:1}
#hud-inv .slot[data-dur=inf]::before{background:#34465a}
.ally-portrait{width:52px;height:64px;flex-shrink:0;background:#eee6fa;border-radius:12px}
/* CK 2026-11-18 J7 「Qキーの位置がわかりにくい、弾丸HUDの下あたりに、クールタイムゲージなどでわかりやすくして」: the skill row hangs under the
   ammo card with the same width; a thin gauge along its bottom refills over the cooldown (progression-ui.js renderSkill). */
#night-ui>#hud-grenade{position:absolute;top:118px;right:10px;width:224px;box-sizing:border-box;margin:0;display:flex;align-items:center;gap:5px;padding:3px 7px 6px;background:rgba(14,26,34,.78);border:1px solid #4d6873;border-radius:6px;pointer-events:none;font-size:11px;color:#f0d7a8}
#night-ui>#hud-grenade .active-skill-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#night-ui>#hud-grenade .active-skill-gauge{position:absolute;left:7px;right:7px;bottom:2px;height:3px;background:#22343d;border-radius:2px;overflow:hidden}
#night-ui>#hud-grenade .active-skill-gauge>i{display:block;height:100%;width:100%;background:#e3b972}
#night-ui>#hud-grenade.none{color:#a9b4b6}
#night-ui>#hud-grenade.none .active-skill-gauge>i{background:#7f8c90}
body.mobile-ui[data-mode="night"] #night-ui>#hud-grenade{top:139px;transform:scale(1.3);transform-origin:100% 0}
/* CK 2026-11-18 J11: a broken weapon is announced at the top centre of the battle (app.js weaponBroke), not in the bottom toast. */
#night-ui>.weapon-broken-notice{position:absolute;top:52px;left:50%;transform:translateX(-50%);z-index:6;padding:6px 16px;border:1px solid #c0634f;border-radius:6px;background:rgba(48,16,14,.88);color:#ffd9c9;font-weight:800;font-size:15px;letter-spacing:.04em;white-space:nowrap;pointer-events:none}
#night-ui>.weapon-broken-notice[hidden]{display:none}
#night-ui>.weapon-broken-notice.show{animation:nw-broken-notice 2.2s ease-out both}
@keyframes nw-broken-notice{0%{opacity:0;transform:translate(-50%,-6px) scale(1.08)}8%{opacity:1;transform:translate(-50%,0) scale(1)}80%{opacity:1}100%{opacity:0}}
body.mobile-ui[data-mode="night"] #night-ui>.weapon-broken-notice{top:34px;font-size:calc(13px*var(--inv-scale,1))}
