/* Гардероб и «Надето» (wardrobe.js) — кабинет героя и магазин. ТЗ «Классик» №2, п.3, п.15. */
.wd-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; }
.wd-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; cursor: pointer;
  padding: 18px 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 150, 60, 0.22); color: #efe3d3;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.wd-card:hover { transform: translateY(-2px); border-color: rgba(255, 190, 90, 0.7); background: rgba(255, 150, 60, 0.1); }
.wd-card.is-worn { border-color: rgba(90, 230, 140, 0.7); background: rgba(60, 200, 120, 0.1); }
.wd-tag { position: absolute; top: 3px; left: 3px; right: 3px; font-size: 10px; line-height: 1.2; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #7dffb0; }
.wd-card-icon { font-size: 30px; line-height: 1.1; }
.wd-card-name { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.wd-card-slot { font-size: 11px; color: #a8927c; }
.wd-card-bonus { display: flex; flex-direction: column; gap: 0; font-size: 11px; line-height: 1.25; }
.wd-bonus { font-weight: 700; }
.wd-bonus-none { color: #a8927c; font-weight: 400; }
.wd-potion { border-color: rgba(90, 230, 140, 0.45); }
.wd-potion.is-empty { opacity: 0.55; }
.wd-empty { margin: 8px 0 0; font-size: 12.5px; color: #a8927c; }
.wd-empty a { color: #ffb347; }

.wd-worn { display: flex; flex-direction: column; gap: 4px; }
.wd-worn-row {
  display: grid; grid-template-columns: 26px 92px 1fr; align-items: center; gap: 4px 8px; padding: 6px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 150, 60, 0.18); font-size: 12.5px; cursor: pointer;
}
.wd-worn-row.empty { opacity: 0.5; cursor: default; }
.wd-worn-row:not(.empty):hover { border-color: rgba(255, 190, 90, 0.7); }
.wd-worn-ico { font-size: 18px; text-align: center; }
.wd-worn-slot { color: #a8927c; font-size: 11.5px; }
.wd-worn-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-worn-bonus { grid-column: 3; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 11px; }
.wd-worn-bonus .wd-bonus { white-space: nowrap; }
