/* Shared cell paint isolation prevents WebKit from showing a slot background
   through an item icon. Per-domain grids provide only their own dimensions. */
.item-slot { position:relative; min-width:0; min-height:0; overflow:hidden; background-clip:padding-box; contain:paint; isolation:isolate; transform:translateZ(0); }
.item-slot-icon { display:block; width:100%; height:100%; min-width:0; min-height:0; object-fit:contain; pointer-events:none; }
.item-slot-count { position:absolute; z-index:1; top:3px; right:3px; min-width:14px; padding:1px 3px; border-radius:4px; background:rgba(7,9,11,.78); color:#f0dfb2; font:700 9px/1.1 var(--font-game); text-align:center; }
.item-slot-label { max-width:100%; min-height:2.1em; display:-webkit-box; overflow:hidden; white-space:normal; overflow-wrap:anywhere; -webkit-line-clamp:2; -webkit-box-orient:vertical; text-align:center; }
