/* Consumable inventory and touch-safe ability controls. */
#powerupControls{position:fixed;z-index:13;inset:0;pointer-events:none}
#powerupControls[hidden]{display:none!important}
.powerup-use{position:fixed;display:grid;place-items:center;width:58px;height:58px;padding:6px;border:2px solid #789c37;border-radius:50%;background:#1b2c1deb;box-shadow:inset 0 0 0 2px #101c12;color:#f4ffd6;touch-action:manipulation;cursor:pointer;pointer-events:auto;bottom:calc(var(--safe-bottom) + 14px)}
#use-magnet{left:calc(var(--safe-left) + 14px)}#use-transparent{left:calc(var(--safe-left) + 84px)}
.powerup-use img{width:40px;height:40px;object-fit:contain;pointer-events:none}
.powerup-use span{position:absolute;bottom:-5px;right:-3px;min-width:21px;padding:2px 4px;border:1px solid #88ab46;border-radius:9px;background:#152418;font:700 12px Arial;pointer-events:none;white-space:nowrap;font-variant-numeric:tabular-nums}
.powerup-use:disabled{cursor:default;opacity:.65}.powerup-use.active{opacity:1;border-color:#f6db72}.powerup-use:focus-visible{outline:2px solid #fff;outline-offset:3px}
body.mobile-device .powerup-use{left:auto;bottom:calc(var(--safe-bottom) + 94px)}
body.mobile-device #use-magnet{right:calc(var(--safe-right) + 72px)}body.mobile-device #use-transparent{right:calc(var(--safe-right) + 14px)}
body.mobile-device .powerup-use{width:48px;height:48px}body.mobile-device .powerup-use img{width:33px;height:33px}

/* Home inventory is a display, not a button or a modal launcher. */
#powerupInventory{position:absolute;right:calc(var(--safe-right) + 18px);bottom:calc(var(--safe-bottom) + 14px);z-index:6;display:grid;gap:5px;min-width:94px;padding:8px 11px;border:2px solid #789c37;border-radius:14px;background:#1b2c1deb;color:#edffb7;font:700 14px var(--ui,Arial);pointer-events:none}
#powerupInventory div{display:flex;justify-content:space-between;align-items:center;gap:14px}#powerupInventory img{width:30px;height:30px;object-fit:contain}#powerupInventory strong{font-size:19px;font-variant-numeric:tabular-nums;color:#f4ffd6}
#powerupStatus{position:fixed;z-index:14;bottom:calc(var(--safe-bottom) + 85px);left:calc(var(--safe-left) + 14px);max-width:260px;padding:6px 9px;border-radius:8px;background:#18251dee;color:#ffce75;font:12px Arial;pointer-events:none}#powerupStatus:empty{display:none}
@media(max-height:400px){body.mobile-device .powerup-use{bottom:calc(var(--safe-bottom) + 76px)}#powerupInventory{min-width:84px;padding:5px 9px}#powerupInventory img{width:25px;height:25px}}
