/* 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 #9792b7; 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: var(--fs-body); 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: #8e89ac; border-radius: 4px; box-shadow: inset 0 0 0 2px #5b5679, inset 0 0 0 3px #c7c4d8, 0 1px 0 #eae9f0; }
.pk-scroll { max-height: 258px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #514c72 #b2afc9; }
.pk-scroll::-webkit-scrollbar { width: 12px; }
.pk-scroll::-webkit-scrollbar-track { background: #b2afc9; border-left: 1px solid #716c94; }
.pk-scroll::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #76709f, #605a88); border: 1px solid #312e44; 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: #8f8baa; background: repeating-linear-gradient(45deg, #cac7da 0 3px, #bab7cf 3px 6px); }
.pk-grid .gf-tile.lock { border-color: #89869d; background: linear-gradient(to top right, transparent 46%, #67637e 47% 53%, transparent 54%), #afacc3; cursor: not-allowed; }
.pk-grid .gems i { width: 5px; height: 5px; }
.pk-info { margin: 5px 2px 0; font-size: var(--fs-small); min-height: 14px; }
.pk-bags { display: flex; gap: 2px; align-items: center; margin-top: 5px; padding: 3px 4px; background: #8e89ac; border-radius: 4px; box-shadow: inset 0 0 0 2px #5b5679, inset 0 0 0 3px #c7c4d8; }
.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: #8e89ac; border-radius: 4px; box-shadow: inset 0 0 0 2px #5b5679, inset 0 0 0 3px #c7c4d8; flex-wrap: wrap; }
.pk-wallet { display: inline-flex; align-items: center; gap: 6px; padding: 1px 6px; background: rgba(35, 33, 49, 0.55); border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }
.pk-cap { font-size: var(--fs-small); font-weight: 700; color: #282638; margin-left: auto; }
.pk-sort { padding: 1px 12px; font-size: var(--fs-body); }
.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: #232131; color: #e1dfea; border-radius: 10px; font-size: var(--fs-body); 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: var(--fs-small); 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: #37334d; font-weight: 700; }
.split-row { display: flex; gap: 6px; align-items: center; margin: 8px 0; }
.split-row .split-qty { width: 90px; padding: 4px 6px; font: inherit; text-align: right; }
.pk-purse { display: inline-flex; align-items: center; gap: 5px; }
.pk-coin i { display: block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.5); background: radial-gradient(circle at 35% 30%, #d2d0df, #7c76a4 55%, #4d486c); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.pk-sp-head { font-size: var(--fs-body); margin: 0 2px 2px; color: #282638; }
.pk-sp-bags { margin-top: 3px; }
.pk-sp-grid .gf-tile:not(.full) { border-color: #b9a2d8; background: repeating-linear-gradient(45deg, #e4dcf1 0 3px, #d8cdea 3px 6px); }
.pk-sp-btn { padding: 1px 10px; font-size: var(--fs-body); }
.pk-foot { flex-wrap: nowrap; }
.pk-right { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.pk-right .pk-cap { margin-left: 0; }
