/* Bags and storage (public/js/bags.ts): the bag panel's head, the pocket, its buttons, the bags list, a chest's bar. */
.bg-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; }
.bg-head .grow { min-width: 0; }
.bg-head b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-head .sub { font-size: 12px; color: var(--ink2); }
.bg-backicon { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--paper2); border: 2px solid #b08a5a; display: flex; align-items: center; justify-content: center; }
.bg-backicon .ico { width: 26px; height: 26px; image-rendering: pixelated; }
/* the hotbar row of the bag, set apart a little */
.grid.inv.bg-bag > .slot:nth-child(-n + 10) { background: #f0dcae; border-color: #a07040; }
.grid.inv.bg-bag > .slot:nth-child(10) { margin-right: 0; }
.grid.inv.bg-bag { row-gap: 3px; }
.grid.inv.bg-bag > .slot:nth-child(-n + 10) { margin-bottom: 4px; }
/* the pocket: a smaller strip of its own, dashed, for quest things */
.bg-pocket { display: flex; align-items: center; gap: 6px; margin: 2px 0 4px; padding: 3px 6px; border: 2px dashed #b08a5a; border-radius: 8px; background: rgba(255, 246, 216, .5); }
.bg-plabel { flex: none; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.grid.inv.small.bg-pgrid { flex: 1; grid-template-columns: repeat(8, 1fr); margin: 0; gap: 3px; }
.bg-pgrid .slot { border-style: dashed; background: #f4e6c4; }
.bg-btns { gap: 6px; margin: 4px 0; }
.bg-btns .btn { padding: 6px 9px; font-size: 14px; }
/* the bags you have and the ones to find */
.bg-bags h4 { margin: 10px 0 4px; }
.bg-row { align-items: center; }
.bg-row .bg-plus { font-size: 12px; color: var(--good); font-weight: 700; }
.bg-row.on { background: #eef6dc; }
.bg-row.past { opacity: .62; }
.bg-tick { flex: none; width: 1.4em; text-align: center; font-size: 18px; color: var(--good); }
/* a chest's "your bag" */
.bg-chesthead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bg-chesthead h4 { margin: 6px 0 2px; flex: 1; }
/* how much of a picked-up stack moves (#63) */
.bg-split { margin: 2px 0 6px; }
@media (max-width: 600px) {
  .bg-btns .btn { padding: 6px 7px; font-size: 13px; }
  .bg-plabel { font-size: 11px; }
  .bg-pocket { padding: 2px 4px; gap: 4px; }
}
