/* the Kostümschrank at the Lagerverwalter (ui/wardrobe.js, Dev-Ticket #153) */
#wardrobe .win-body { padding: 5px 6px; }
.wd-cols { display: flex; gap: 6px; align-items: stretch; margin-bottom: 4px; }
.wd-left { flex: none; }
.wd-right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wd-head { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 11px; padding: 1px 3px; margin-bottom: 3px;
  background: #1d1712; box-shadow: inset 0 0 0 1px var(--bronze-d); font-size: 8px; line-height: 9px; color: var(--gold); }
.wd-cnt { flex: none; text-shadow: var(--ol); }
.wd-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the pages I-VI below the head on PC, above the stage on touch (Dev-Tickets #177, #252) */
#ui .wd-pages { flex: none; margin: 0 0 3px; gap: 2px; }
#ui .wd-pages > .tab { flex: 1 1 0; min-width: 0; height: 11px; line-height: 11px; font-size: 7px; padding: 0 2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
#ui .wd-pages > .tab.locked, #ui .wd-pages > .tab.locked:hover { color: #7a6f62; background: linear-gradient(#1a1816, #121110); cursor: pointer; }
#ui .wd-pages .wd-lock { flex: none; width: 7px; height: 7px; background: url(../assets/ui/klassik/lock.webp) center / contain no-repeat; opacity: .85; filter: drop-shadow(0 0 1px #000); }
#ui .wd-pages .wd-pgn { line-height: 1; }
/* a grid like the bag: a piece of size 2 spans two rows (grid-row from ui/wardrobe.js) */
.wd-grid { display: grid; grid-template-columns: repeat(9, var(--slot)); grid-auto-rows: var(--slot); gap: 1px; }
.wd-cell { width: auto; height: auto; }
.wd-item { cursor: pointer; z-index: 1; }
.wd-item img.ic { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: contain; }
.wd-item.picked { box-shadow: inset 0 0 0 1px var(--gold), inset 1px 1px 0 1px var(--edge); }
/* the stage like the Itemshop's (css/itemshop.css .ish-stage) */
.wd-stage { position: relative; flex: 1 1 112px; min-height: 112px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 62%, rgba(242, 196, 90, .22), rgba(242, 196, 90, .05) 70%, transparent 100%), linear-gradient(#251d15, #0c0907);
  box-shadow: inset 0 0 0 1px #6d5636, inset 0 0 0 2px var(--edge), inset 0 -18px 18px -12px #00000099; }
.wd-stage canvas { position: relative; z-index: 1; width: 120px; height: 112px; image-rendering: pixelated; cursor: grab; }
.wd-big { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 2px #000c); }
.wd-name { font-size: 8px; line-height: 9px; text-align: center; color: var(--gold); min-height: 9px; overflow-wrap: anywhere; }
.wd-btns { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; width: 100%; }
.wd-btns > .btn, .wd-btns > .btn.primary { padding: 0 3px; }
.wd-keys { font-size: 7px; line-height: 8px; }
/* a phone: bigger places (a finger each), a smaller stage next to them, buttons a finger high; the window fits 800 x 360 */
html.touch .wd-grid { grid-template-columns: repeat(9, 22px); grid-auto-rows: 22px; gap: 1px; }
/* (the page tabs above the stage take a finger: the stage gives that room, the right column stays as high as the grid) */
html.touch .wd-stage { flex: 1 1 40px; min-height: 32px; }
html.touch #ui .wd-pages { flex: none; flex-wrap: nowrap; margin: 0; gap: 2px; }
html.touch #ui .wd-pages > .tab { flex: 1 1 0; width: auto; min-width: var(--finger); height: var(--finger); padding: 0 1px; gap: 1px; }
html.touch #ui .wd-pages .wd-lock { width: 6px; height: 6px; }
html.touch .wd-stage canvas { width: 48px; height: 45px; }
html.touch .wd-big { width: 40px; height: 40px; }
html.touch #ui #wardrobe .wd-btns { grid-auto-flow: row; }
html.touch .wd-btns > .btn { height: 22px; }
