.inventory-hud{position:absolute;right:max(6px,env(safe-area-inset-right));top:50%;transform:translateY(-50%);display:grid;grid-template-columns:44px;gap:7px;pointer-events:auto;z-index:16;touch-action:none}
.inventory-hud[hidden],.inventory-power[hidden]{display:none!important}.inventory-power{position:relative;width:44px;height:44px;border:1px solid #ffffff85;border-radius:13px;background:linear-gradient(#22445edb,#112a42e8);box-shadow:0 3px 9px #0005;color:#fff;cursor:pointer;padding:5px;touch-action:manipulation}.inventory-power img{width:100%;height:100%;object-fit:contain}.inventory-count{position:absolute;right:-4px;top:-5px;background:#122b40;border:1px solid #a8d7ed;border-radius:9px;padding:1px 4px;font:700 11px system-ui}.inventory-time{position:absolute;bottom:1px;left:0;right:0;text-align:center;font:800 12px system-ui;text-shadow:0 1px 3px #000}.inventory-power:disabled{cursor:default;filter:saturate(.45);opacity:.65}.inventory-power.active{border-color:#70ecda;box-shadow:0 0 0 2px #4bd6ba44;filter:none;opacity:1}.inventory-power:focus-visible{outline:3px solid #ffc744;outline-offset:2px}
@media(max-height:570px){.inventory-hud{top:50%;bottom:auto;grid-template-columns:36px;gap:4px}.inventory-power{width:36px;height:36px}}

.inventory-status{box-sizing:border-box;pointer-events:none;cursor:default;overflow:hidden}
.inventory-progress{position:absolute;left:0;bottom:0;height:3px;width:var(--remaining,100%);background:#77f2d6;transition:width .12s linear}
.inventory-status .inventory-time{bottom:4px}
@media(max-height:420px){.inventory-hud{grid-template-columns:30px;gap:3px;max-height:calc(100% - 24px);overflow-y:auto;scrollbar-width:none;padding:5px 4px}.inventory-power{width:30px;height:30px;padding:3px}.inventory-time{font-size:11px}}
