/* The Inventory page (/inventory, views/inventoryPartial.jsx) as a game
   screen: the trophy-hall frame from public/achievements-hall.css. The
   page's own tokens (public/inventory.css) are pointed at their dark values
   inside the hall, so it reads the same in both themes. */

.inv-hall {
  --text: #f6e9cc;
  --papyrus-text: #f6e9cc;
  --surface-border: rgba(255, 220, 160, 0.16);
  --inventory-accent: #ffd23a;
  --inventory-row-bg: rgba(18, 14, 10, 0.62);
  --inventory-row-border: rgba(255, 220, 160, 0.16);
  --inventory-slot-bg: rgba(0, 0, 0, 0.4);
  --inventory-ok: #7ee07e;
  --inventory-err: #ff8a7a;
  font-family: "Comfortaa", sans-serif;
}
.inv-hall.inventory-page { display: block; }
.inv-hall .ach-hall-frame.inventory-panel { max-width: 780px; padding: 16px 20px 22px; }
.inv-hall .inventory-panel button { margin: 0; }

.inv-hall .inventory-heading {
  font: 700 clamp(1.3rem, 1rem + 1.2vw, 1.8rem)/1.1 "Cinzel", serif;
  letter-spacing: 0.04em;
  color: #ffe9b0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}
.inv-hall .inventory-total {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 210, 58, 0.35);
  font-size: 0.78rem;
  color: #d4c39f;
}

/* Tabs as the gold segmented control used on the leaderboard. */
.inv-hall .inventory-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--inventory-row-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
}
.inv-hall .inventory-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 6px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d4c39f;
  font: 700 0.88rem/1 "Cinzel", serif;
  opacity: 1;
}
.inv-hall .inventory-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
#inv-tab-powerups:checked ~ .inventory-tabs .inventory-tab[for="inv-tab-powerups"],
#inv-tab-cosmetics:checked ~ .inventory-tabs .inventory-tab[for="inv-tab-cosmetics"] {
  background: linear-gradient(180deg, #ffe48a 0%, #f0b52e 55%, #c98a12 100%);
  border-color: #7a5310;
  color: #3d2000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 0 #6b4410;
}
#inv-tab-powerups:checked ~ .inventory-tabs .inventory-tab[for="inv-tab-powerups"] i,
#inv-tab-cosmetics:checked ~ .inventory-tabs .inventory-tab[for="inv-tab-cosmetics"] i { color: #3d2000; }

.inv-hall .btn-primary {
  border: 2px solid #7a5310;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe48a 0%, #f0b52e 55%, #c98a12 100%);
  color: #3d2000;
  font-family: "Cinzel", serif;
  font-weight: 800;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #6b4410;
}
.inv-hall .btn-primary:hover { filter: brightness(1.06); }

@media (max-width: 600px) {
  .inv-hall.ach-hall { padding: 16px 6px 28px; }
  .inv-hall .ach-hall-frame.inventory-panel { padding: 12px 10px 16px; }
}
