/* Backpack window (B): ONE big backpack, a 10-column grid of tight cells in a scroll frame, the bag row and the footer of Screenchots/Ui/Inventory.png; tile states shared by every window. */
.gf-tile .gems { max-width: 34px; flex-wrap: wrap; justify-content: flex-end; }
.gf-tile .count.none { color: #ff8080; }
.gf-tile.eq { border-color: #3fbf4a; box-shadow: inset 0 0 0 1px #3fbf4a; }
.gf-tile.sel { outline: 2px solid #f6c453; outline-offset: -2px; }
.gf-tile.off img { filter: grayscale(0.8); }
.pk-head { display: flex; align-items: flex-end; margin: -2px 0 -1px 4px; position: relative; z-index: 1; }
.pk-tabs { display: flex; gap: 3px; }
.pk-tabs .gfw-tab { flex: none; padding: 2px 18px 3px; margin: 0; font-size: 12px; cursor: default; border-radius: 9px 9px 0 0; }
/* the frame of the grid: a beige inset with a dark bevel, the cells touching each other */
.pk-frame { padding: 3px; background: #bda878; border-radius: 4px; box-shadow: inset 0 0 0 2px #8a7345, inset 0 0 0 3px #e8dab4, 0 1px 0 #fff7da; }
.pk-scroll { max-height: 258px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #8a6a34 #d8c9a0; }
.pk-scroll::-webkit-scrollbar { width: 12px; }
.pk-scroll::-webkit-scrollbar-track { background: #d8c9a0; border-left: 1px solid #a88a58; }
.pk-scroll::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #c58d4a, #a8743a); border: 1px solid #5a3a18; border-radius: 3px; }
.pk-grid { display: grid; gap: 1px; justify-content: start; }
.pk-grid .gf-tile { width: 42px; height: 42px; border-width: 2px; border-radius: 3px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.pk-grid .gf-tile img { width: 36px; height: 36px; }
.pk-grid .gf-tile:not(.full) { border-color: #b9a67c; background: repeating-linear-gradient(45deg, #e6dbbb 0 3px, #dccfaa 3px 6px); }
.pk-grid .gf-tile.lock { border-color: #a9987a; background: linear-gradient(to top right, transparent 46%, #8b7a56 47% 53%, transparent 54%), #cfc2a0; cursor: not-allowed; }
.pk-grid .gems i { width: 5px; height: 5px; }
.pk-info { margin: 5px 2px 0; font-size: 11px; min-height: 14px; }
.pk-bags { display: flex; gap: 2px; align-items: center; margin-top: 5px; padding: 3px 4px; background: #bda878; border-radius: 4px; box-shadow: inset 0 0 0 2px #8a7345, inset 0 0 0 3px #e8dab4; }
.pk-bags .gf-tile { width: 38px; height: 38px; flex: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.pk-bags .gf-tile img { width: 32px; height: 32px; }
.pk-foot { display: flex; align-items: center; gap: 6px; margin-top: 5px; padding: 3px 6px; background: #bda878; border-radius: 4px; box-shadow: inset 0 0 0 2px #8a7345, inset 0 0 0 3px #e8dab4; flex-wrap: wrap; }
.pk-wallet { display: inline-flex; align-items: center; gap: 6px; padding: 1px 6px; background: rgba(58, 42, 24, 0.55); border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }
.pk-cap { font-size: 11px; font-weight: 700; color: #4a2f14; margin-left: auto; }
.pk-sort { padding: 1px 12px; font-size: 12px; }
.pk-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-count { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 3px; background: #3a2a18; color: #f7ecd2; border-radius: 10px; font-size: 12px; font-weight: 700; }
.pk-count img { width: 16px; height: 16px; }
.gf-btn.on { background: linear-gradient(#bff0b4, #7ed36d); border-color: #2f7a2a; }
.pk.act { box-shadow: 0 0 0 2px #c084fc, 0 0 10px rgba(192, 132, 252, 0.85); position: relative; }
.pk.act::after { content: '✦'; position: absolute; right: 1px; top: -1px; font-size: 11px; line-height: 1; color: #f5d0fe; text-shadow: 0 0 4px #7c3aed, 0 1px 0 #2e1065; pointer-events: none; }
/* An armed pearl extractor (ui/windows/pearlExtract.js): the grid asks for a piece to click */
.gfw.pk-extracting .pk-grid .gf-tile { cursor: crosshair; }
.gfw.pk-extracting .pk-info { color: #7a3a06; font-weight: 700; }
