/* Kreator postaci (wardrobe.js), katalog mebli w sklepie bazy (shop.js) i strona podglądu /assety. */

/* --- kreator postaci --- */
.creator { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; margin-bottom: 16px; }
.creator-stand { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.creator-view { width: 36px; height: 36px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 4px; }
.creator-view.main { width: 124px; height: 124px; border-radius: 6px; }
.creator-turns { display: flex; gap: 6px; }
.creator-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.creator-tab { min-height: 36px; padding: 6px 9px; font-size: 13px; box-shadow: none; }
.creator-tab[aria-selected="true"], #shopcats button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.creator-panel { height: 268px; overflow-y: auto; padding: 4px; }
.creator-group + .creator-group { margin-top: 12px; }
.creator-group h3 { margin: 0 0 6px; }
.creator-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.creator-option { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 84px; padding: 6px 2px; font-size: 11px; line-height: 1.2; box-shadow: none; }
.creator-option canvas { width: 48px; height: 48px; }
.creator-option small { font-size: 10px; }
.creator-option[aria-pressed="true"] { background: var(--orange-2); outline: 3px solid var(--ink); outline-offset: -1px; }
.creator-option.locked { background: var(--paper-2); border-style: dashed; color: var(--muted); }
.creator-option.locked canvas { filter: grayscale(1); opacity: 0.55; }
.creator-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.creator-color { width: 36px; height: 36px; padding: 0; box-shadow: none; }
.creator-color[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.creator-note { min-height: 1.45em; margin: 8px 0 0; color: var(--red); font-size: 13px; font-weight: 600; }
#lookdialog { width: min(600px, 94vw); }
@media (max-width: 520px) {
  .creator { grid-template-columns: 1fr; }
  .creator-stand { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .creator-view.main { width: 92px; height: 92px; }
  .creator-turns { flex-direction: column; gap: 4px; }
  .creator-view { width: 28px; height: 28px; }
  .creator-panel { height: 240px; }
}

/* --- sklep bazy: kategorie --- */
#shopdialog { width: min(560px, 94vw); }
#shopcats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
#shopcats button { min-height: 32px; padding: 5px 8px; font-size: 12px; box-shadow: none; }
#shoplist { align-content: start; min-height: 120px; }

/* --- strona podglądu /assety --- */
#assets { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
#assets .count { color: var(--muted); font-weight: 400; }
.asset-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-grid figure { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; width: 104px; min-height: 92px; margin: 0; padding: 6px 4px; border: 2px solid var(--line); border-radius: 4px; background: var(--paper); font-size: 11px; line-height: 1.2; text-align: center; }
.asset-grid figure.wide { width: 168px; }
.asset-grid figcaption small { font-size: 10px; }
.asset-grid .color { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 4px; }
.asset-grid.floor figure { background: #e9c98f; }
#assets h3 { margin: 16px 0 8px; }
