/* ui-bags.css - the WoW backpack window. Art = assets/ui/bag-backpack.png (the client's UI-BackpackBackground: frame, 4 x 4 slots, money bar, bag icon), real quality rings
   from assets/ui. 1 art pixel = var(--u) (set by .mf-stage / .bag-stage in ui-merchant.css). Slot coordinates are the client art's own. */
.bag-col { display: flex; flex-direction: column; align-items: center; flex: none; width: max(calc(200 * var(--u)), 15em); }
.bagwin { position: relative; width: calc(190 * var(--u)); height: calc(240 * var(--u)); }
.bag-art { position: absolute; left: calc(-66 * var(--u)); top: 0; width: calc(256 * var(--u)); height: calc(256 * var(--u)); background: url("../assets/ui/bag-backpack.png") 0 0 / 100% 100% no-repeat; }
.bag-title { position: absolute; left: calc(107 * var(--u)); top: calc(8 * var(--u)); width: calc(120 * var(--u)); height: calc(17 * var(--u)); text-align: center; color: #ffd100; font: 700 max(11px, calc(11 * var(--u))) / calc(17 * var(--u)) var(--serif); text-shadow: 1px 1px 0 #000; }
.bag-grid { position: absolute; inset: 0; }
.bslot { position: absolute; left: calc((79 + var(--c) * 42) * var(--u)); top: calc((49 + var(--r) * 42) * var(--u)); width: calc(37 * var(--u)); height: calc(37 * var(--u)); padding: 0; border: 0; background: none; cursor: pointer; }
.bslot.empty { cursor: default; }
.bslot.bad .ico img { filter: sepia(1) hue-rotate(-50deg) saturate(5) brightness(.75); }
.bag-money { left: calc(84 * var(--u)); top: calc(214 * var(--u)); width: calc(156 * var(--u)); height: calc(16 * var(--u)); }
.bag-actions { width: 100%; margin-top: .7em; min-height: 4.2em; text-align: center; }
.bag-actions .hint { margin: 0; color: #b9ad90; font-size: .85em; }
.bag-sel b { display: block; color: #ffd100; font-size: .95em; }
.bag-sel .bad { display: block; color: var(--bad); }
.bag-btns { display: flex; flex-wrap: wrap; gap: .4em; justify-content: center; margin-top: .4em; }
.tbag { position: absolute; right: .6em; top: 13.2em; width: 2.6em; height: 2.6em; border-radius: .4em; pointer-events: auto; background: rgba(20, 16, 10, .8); color: #ffe9a8; border: 1px solid #8a7440; font: 700 .72em var(--sans); padding: 0; }
.ui.narrow .tbag { top: 13.5em; }
