/* Inventory (app.js renderers.inventory): AQW-style two panels.
   Left: the big window (character trying on the selected item, details,
   Equip/Unequip). Right: tabs, the scrollable list, gold and gems. */
.inv {
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 8px;
  height: 100%; min-height: 0; padding: 58px 8px 8px; /* top room: the pomodoro timer floats there */
  box-sizing: border-box;
}
.view[data-view="inventory"].is-active { height: 100%; overflow: hidden; }
@media (max-width: 330px) { .inv { grid-template-columns: 1fr; overflow: auto; } }

/* shared panel look: dark with a gold frame, like the reference */
.invw, .invr {
  display: flex; flex-direction: column; min-height: 0; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #2b2a31, #1d1c22); color: #f1ecdf;
  border: 2px solid #b8913f; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .35);
}

/* ---- left: the big window ---- */
.invw-stage {
  flex: none; height: 44%; min-height: 150px; position: relative;
  background: radial-gradient(ellipse at 50% 30%, rgba(120, 200, 110, .45), transparent 70%), linear-gradient(180deg, #2f4d2a, #16240f);
  border-bottom: 1px solid rgba(184, 145, 63, .5);
}
.invw-stage canvas { display: block; width: 100%; height: 100%; }
.invw-modes { display: flex; gap: 4px; padding: 6px; flex: none; }
.invw-mode {
  flex: 1; padding: 4px 6px; border-radius: 7px; border: 1px solid rgba(184, 145, 63, .6); cursor: pointer;
  background: #34323b; color: #e8e0cd; font: 600 12px/1.2 system-ui, sans-serif;
}
.invw-mode.is-active { background: #b8913f; color: #1d1c22; }
.invw-body { flex: 1; min-height: 0; overflow: auto; padding: 2px 10px 8px; font-size: 13px; }
.invw-title { margin: 2px 0; font-size: 16px; line-height: 1.15; }
.invw-meta { font-size: 12px; opacity: .7; margin-bottom: 6px; }
.invw-chips, .invw-compare { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; align-items: center; font-size: 12px; }
.invw-compare > span:first-child { opacity: .75; }
.invw-desc { margin: 0; line-height: 1.35; opacity: .9; }
.invw-stats { display: flex; flex-direction: column; gap: 3px; }
.invw-stat { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 3px 6px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .06); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.invw-stat.is-open { background: rgba(184, 145, 63, .25); }
.invw-stat-head { display: flex; justify-content: space-between; gap: 6px; }
.invw-stat-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; opacity: .9; }
.invw-stat-info small { opacity: .7; }
.invw-hint { font-size: 11px; opacity: .65; margin: 6px 0 0; }
.invw-action {
  flex: none; margin: 6px; padding: 10px; border-radius: 9px; cursor: pointer;
  font: 800 16px/1 Georgia, serif; letter-spacing: 1px; text-transform: uppercase; color: #fff4d6;
  border: 2px solid #f0c060; text-shadow: 0 1px 0 #000;
}
.invw-action.is-equip { background: linear-gradient(180deg, #3f8f3a, #245d22); }
.invw-action.is-unequip { background: linear-gradient(180deg, #c23a2e, #7d1d16); }
.invw-action.is-locked { background: #3a3842; border-color: #6d6a75; color: #bdb8c9; cursor: not-allowed; font-size: 13px; text-transform: none; letter-spacing: 0; }
.invr-lvl.is-too-high { color: #ff7b7b; opacity: 1; font-weight: 800; }

/* ---- right: the list ---- */
.invr-head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 10px 4px; flex: none; }
.invr-title { margin: 0; font: 700 20px/1 Georgia, serif; color: #f0c060; text-shadow: 0 2px 0 #000; }
.invr-count { font-size: 11px; opacity: .65; }
.invr-tabs { display: flex; gap: 4px; padding: 0 8px 6px; flex: none; }
.invr-tab {
  flex: 1; padding: 5px 4px; border-radius: 7px; cursor: pointer; border: 1px solid rgba(184, 145, 63, .6);
  background: #34323b; color: #e8e0cd; font: 600 12px/1.1 system-ui, sans-serif;
}
.invr-tab.is-active { background: #b8913f; color: #1d1c22; }
.invr-tutorial { margin: 0 8px 6px; padding: 6px 8px; border-radius: 8px; font-size: 12px; background: #4a3d1a; border: 1px solid #f0c060; flex: none; }
.invr-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 6px; }
.invr-group { margin: 6px 4px 3px; font: 700 11px/1 system-ui, sans-serif; letter-spacing: .8px; text-transform: uppercase; color: #c9a95a; }
.invr-row {
  display: flex; align-items: center; gap: 6px; width: 100%; margin-bottom: 3px; padding: 4px 6px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .08); border-left: 4px solid var(--rarity, #b8bcc6);
  background: rgba(255, 255, 255, .05); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.invr-row.is-selected { background: rgba(80, 200, 200, .28); border-color: rgba(120, 230, 230, .6); border-left-color: var(--rarity, #b8bcc6); }
.invr-row.is-material, .invr-row.is-static { cursor: default; }
.invr-pic { width: 30px; height: 30px; object-fit: contain; flex: none; display: grid; place-items: center; border-radius: 6px; background: rgba(0, 0, 0, .25); font-size: 16px; }
.invr-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invr-worn { color: #6fe08a; font-weight: 900; }
.invr-lvl { flex: none; font-size: 11px; opacity: .7; }
.invr-empty { padding: 8px; font-size: 12px; opacity: .65; }
.invr-empty.is-soon { opacity: .45; font-style: italic; }
.invr-foot {
  display: flex; justify-content: space-around; gap: 6px; padding: 6px 8px; flex: none;
  border-top: 1px solid rgba(184, 145, 63, .5); background: rgba(0, 0, 0, .25); font-weight: 800; font-size: 13px;
}
.invr-money { display: inline-flex; align-items: center; gap: 4px; }

/* Admin /items list (app.js showAdminItems) */
.admin-items { list-style: none; margin: 8px 0; padding: 0; max-height: 55vh; overflow-y: auto; text-align: left; }
.admin-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid rgba(127, 127, 127, .25); }
.admin-item-pic { width: 34px; height: 34px; object-fit: contain; flex: none; }
.admin-item-name { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.admin-item-name small { width: 100%; opacity: .7; }
.admin-item-owned { flex: none; color: #3fae5a; font-weight: 800; font-size: 12px; }
.admin-items-hint { margin: 0; font-size: 12px; opacity: .8; }
.rarity-pill {
  display: inline-block; padding: 1px 7px; border-radius: 999px; margin-right: 2px;
  background: var(--rarity, #e6e9ef); color: #15131a; font: 800 11px/1.4 system-ui, sans-serif; letter-spacing: .3px;
}
.stat-chip { padding: 1px 6px; border-radius: 7px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.stat-up { color: #6fe08a; font-weight: 800; }
.stat-down { color: #ff7b7b; font-weight: 800; }
.tutorial-glow { box-shadow: 0 0 0 2px #ffd166, 0 0 14px 3px rgba(255, 209, 102, .8); animation: inv-glow 1.2s ease-in-out infinite; }
@keyframes inv-glow { 50% { box-shadow: 0 0 0 2px #ffd166, 0 0 22px 7px rgba(255, 209, 102, .95); } }

/* Classes tab (app.js renderInventoryRight): a class per row, its abilities and what it uses. */
.invr-row.invr-class { cursor: default; align-items: center; gap: 10px; }
.invr-class-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.invr-class-text small { font-size: 12px; opacity: .85; line-height: 1.3; }
.invr-class-text .invr-class-blurb { opacity: .65; }
.invr-class-equip { padding: 6px 14px; border-radius: 8px; border: 1px solid #4f8a3c; background: #2f4f2a; color: #e6f0dc; font-weight: 700; cursor: pointer; }
.invr-class-equip:hover { background: #3a6233; }

/* Look tab (app.js renderInventoryRight): colour swatches for hair and skin. */
.look-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; }
.look-label { font: 700 11px NunitoSans, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .5px; opacity: .8; }
.look-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.look-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ffffff33; background: var(--swatch); cursor: pointer; box-shadow: inset 0 2px 4px #0005; }
.look-bodies { display: flex; flex-wrap: wrap; gap: 8px; }
.look-body { flex: 1 1 auto; min-width: 72px; padding: 8px 10px; border-radius: 8px; border: 2px solid #ffffff33; background: #ffffff0d; color: inherit; font: 700 13px NunitoSans, system-ui, sans-serif; cursor: pointer; }
.look-body.is-on { border-color: #e9d9a8; background: #c8a04a33; }
.look-swatch.is-on { border-color: #e9d9a8; box-shadow: 0 0 0 2px #1d1b17, 0 0 0 4px #c8a04a; }
