/* Dressing — zone personnages (compte) */

.dressing-panel {
  margin-top: 0;
}

.dressing-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.22);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(0, 245, 212, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.03);
  animation: dressing-fade-in 0.45s ease backwards;
}

@keyframes dressing-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dressing-preview-wrap {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 2px solid rgba(0, 245, 212, 0.35);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.15);
}

.dressing-preview-sprite {
  width: 64px;
  height: 64px;
  display: block;
  overflow: hidden;
  image-rendering: pixelated;
}

.dressing-active-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris, #9ca3af);
}

.dressing-active-name {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--turquoise, #00f5d4);
}

.dressing-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dressing-code-row input {
  flex: 1;
  min-width: 140px;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--noir-3, #1a1a1e);
  background: var(--noir, #0a0a0b);
  color: var(--blanc, #f8f9fa);
  font-family: var(--font-body);
}

.dressing-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--turquoise, #00f5d4);
  margin: 0 0 0.75rem;
}

.dressing-status.error {
  color: #f87171;
}

.dressing-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.55rem;
}

.dressing-char-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  animation: dressing-fade-in 0.4s ease backwards;
}

.dressing-char-card:hover:not(:disabled) {
  border-color: rgba(0, 245, 212, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dressing-char-active {
  border-color: var(--turquoise, #00f5d4);
  box-shadow: 0 0 0 1px rgba(0, 245, 212, 0.25);
}

.dressing-char-locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.dressing-char-sprite {
  width: 48px;
  height: 48px;
  display: block;
  overflow: hidden;
  image-rendering: pixelated;
}

.dressing-char-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.dressing-char-lock {
  font-size: 0.62rem;
  color: var(--gris, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dressing-acc-empty {
  font-size: 0.82rem;
  color: var(--gris, #9ca3af);
  margin: 0;
}

.profile-card-compact {
  padding: var(--space-lg);
}

.dressing-acc-pill {
  display: inline-flex;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(254, 228, 64, 0.15);
  border: 1px solid rgba(254, 228, 64, 0.35);
  color: #fde047;
}

.char-preview.char-boy,
.char-preview.char-girl {
  min-height: 72px;
  background-repeat: no-repeat;
  background-position: center top;
  image-rendering: pixelated;
}

@media (max-width: 480px) {
  .dressing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dressing-hero,
  .dressing-char-card {
    animation: none;
  }
}
