/* Wardrobe (#stars/wardrobe, js/world/dressup.js) and its entry on the Dashboard.
   Uses the tokens from world.css. */

.wardrobe-link { text-decoration: none; color: var(--text); }
.wardrobe-link span { color: var(--muted); font-size: 0.92rem; }
.wardrobe-link .wardrobe-go { color: var(--yellow); font-weight: 700; }
.wardrobe-link:hover, .wardrobe-link:focus-visible { border-color: var(--yellow); }
/* the three classes in #1 Grand Seeker gear, on show: this card is where you dress up */
.wardrobe-art {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 0 0;
  background: var(--surface-2);
}
.wardrobe-art img { width: 96px; height: 96px; image-rendering: pixelated; }
@media (max-width: 380px) { .wardrobe-art img { width: 80px; height: 80px; } }

.dress-title { margin: 0 0 4px; font-size: 0.8rem; color: var(--yellow); }
.dress-lead { margin: 0; color: var(--muted); }
.dress { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }

.dress-stage {
  position: sticky;
  top: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
  background: var(--surface);
  border: 2px solid var(--line);
}
.dress-figure {
  width: 100%;
  max-width: 288px;
  aspect-ratio: 1;
  object-fit: contain; /* wider than tall when a pet stands beside the character */
  object-position: bottom;
  image-rendering: pixelated;
  background: radial-gradient(closest-side, rgba(240, 185, 11, 0.12), transparent 70%) center 78% / 70% 22% no-repeat;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.45));
}
.dress-tier { margin: 0; font-size: 0.72rem; color: var(--yellow); text-align: center; line-height: 1.6; }
.dress-classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.dress-classes .class-option { padding: 8px 4px; font-size: 0.85rem; }
.dress-classes .class-option img { width: 44px; height: 44px; }

.dress-genders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.dress-gender {
  min-height: var(--tap);
  font: 700 0.95rem var(--font-body);
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line-strong);
  cursor: pointer;
}
.dress-gender small { font-weight: 500; color: var(--placeholder); }
.dress-gender:hover, .dress-gender[aria-pressed='true'] { border-color: var(--yellow); color: var(--yellow); }
.dress-gender[aria-disabled='true'] { cursor: not-allowed; border-style: dashed; color: var(--muted); }
.dress-slots { display: grid; gap: 14px; }
.dress-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); /* one row, however many tabs (a festival adds one) */ border-bottom: 2px solid var(--line); }
.dress-tab {
  min-height: var(--tap);
  padding: 8px 6px;
  font: 700 0.95rem var(--font-body);
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
}
.dress-tab:hover { color: var(--text); }
.dress-tab[aria-selected='true'] { color: var(--yellow); border-bottom-color: var(--yellow); }
.dress-panel { display: grid; gap: 16px; }
.dress-tier-row { display: grid; gap: 8px; }
.dress-tier-name { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--label); }
.dress-tier-name small { font-weight: 500; color: var(--placeholder); }
.dress-tier-row.is-locked .dress-tier-name { color: var(--placeholder); }
.dress-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dress-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  width: 100%;
  min-height: 100%;
  padding: 10px 6px;
  font: 500 0.82rem var(--font-body);
  color: var(--text);
  text-align: center;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  cursor: pointer;
}
.dress-item b { font-weight: 700; line-height: 1.25; }
.dress-item small { color: var(--label); font-size: 0.75rem; line-height: 1.3; }
.dress-icon { display: grid; place-items: center; width: 88px; height: 88px; font: 400 1.2rem var(--font-pixel); color: var(--line-strong); }
.dress-icon canvas { max-width: 88px; max-height: 88px; image-rendering: pixelated; }
.dress-item:hover { border-color: var(--yellow-hover); }
.dress-item[aria-pressed='true'] { border-color: var(--yellow); background: var(--yellow-tint); }
.dress-item[aria-pressed='true'] small { color: var(--yellow); font-weight: 700; }
.dress-item.is-locked, .dress-item.is-soon { cursor: not-allowed; border-style: dashed; }
.dress-item.is-locked:hover, .dress-item.is-soon:hover { border-color: var(--line-strong); }
/* a locked item shows its shape only, as a goal */
.dress-item.is-locked canvas { filter: brightness(0) invert(0.3); }
.dress-item.is-locked b, .dress-item.is-soon b { color: var(--muted); }

@media (max-width: 1100px) {
  .dress { grid-template-columns: 1fr; }
  .dress-stage { position: static; grid-template-columns: 160px minmax(0, 1fr); justify-items: start; align-items: center; }
  .dress-figure { max-width: 160px; grid-row: span 3; }
  .dress-stage .card-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dress-stage { grid-template-columns: 112px minmax(0, 1fr); }
  .dress-figure { max-width: 112px; }
  .dress-items { gap: 6px; }
  .dress-item { padding: 8px 4px; font-size: 0.78rem; }
  .dress-icon { width: 64px; height: 64px; }
  .dress-icon canvas { max-width: 64px; max-height: 64px; }
  .dress-tab { font-size: 0.85rem; padding: 8px 2px; }
}
