/* Backpack window (B): 10-column grid of 60 cells (Inventory.png) and 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; }
.gf-tile.off img { filter: grayscale(0.8); }
.pk-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4px; }
.pk-tabs { display: flex; gap: 3px; }
.pk-tabs .gfw-tab { flex: none; padding: 3px 16px; margin: 0; }
.pk-sort { padding: 1px 12px; margin-bottom: 2px; font-size: 12px; }
.pk-sections { display: flex; flex-direction: column; gap: 6px; }
.pk-sec { background: var(--gf-paper-dark); border: 1px solid #a88a58; border-radius: 6px; padding: 3px 5px 6px; }
.pk-seclabel { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #6a5230; padding: 1px 2px 3px; }
.pk-seclabel img { border-radius: 3px; }
.pk-seccount { margin-left: auto; font-weight: 400; }
.pk-grid { display: grid; gap: 3px; justify-content: center; }
.pk-grid .gf-tile { width: 42px; height: 42px; }
.pk-grid .gf-tile img { width: 36px; height: 36px; }
.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: 4px; align-items: center; margin-top: 6px; padding: 4px 6px; background: #c9b78f; border: 1px solid #a88a58; border-radius: 8px; }
.pk-bags .gf-tile { width: 38px; height: 38px; flex: none; }
.pk-bags .gf-tile img { width: 32px; height: 32px; }
.pk-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 10px; background: #c9b78f; border: 1px solid #a88a58; border-radius: 16px; }
.pk-cap { font-size: 12px; font-weight: 700; color: #4a2f14; }
.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; }
