/* =============================================
   Naru2day — Profile Page Styles
   ============================================= */

/* ── Hero panel ── */
.wn-profile-hero {
  background: url('../img/Fondo_Pergamino.webp') center center / cover no-repeat;
  background-color: #CE9D66;
  border: 2px solid #C19A6B;
  border-radius: 20px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wn-profile-hero::before {
  content: '忍';
  position: absolute;
  font-size: 12rem;
  color: rgba(139, 90, 43, 0.1);
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%) rotate(8deg);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Nickname — display mode ── */
.wn-nickname-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.3rem;
}

.wn-nickname-display {
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #1a0f0a;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.wn-nickname-edit-btn {
  background: transparent;
  border: none;
  color: rgba(74, 46, 21, 0.4);
  font-size: 1.05rem;
  padding: 5px 7px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
  margin-top: 6px;
}

.wn-nickname-edit-btn:hover {
  color: var(--wn-orange);
  background: rgba(255, 107, 0, 0.12);
}

/* ── Nickname — edit mode ── */
.wn-nickname-edit-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.3rem;
}

.wn-nickname-input {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid #C19A6B;
  border-radius: 10px;
  color: #1a0f0a;
  padding: 8px 14px;
  font-size: 1.15rem;
  font-weight: 700;
  width: 200px;
  outline: none;
  font-family: inherit;
  text-align: center;
  transition: box-shadow 0.2s;
}

.wn-nickname-input:focus {
  border-color: #8B5A2B;
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.2);
}

.wn-nickname-save-btn {
  background: var(--wn-orange);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.wn-nickname-save-btn:hover {
  background: var(--wn-orange-dark);
}

.wn-nickname-cancel-btn {
  background: rgba(139, 90, 43, 0.12);
  border: 1.5px solid rgba(139, 90, 43, 0.3);
  color: #5c4033;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.wn-nickname-cancel-btn:hover {
  background: rgba(139, 90, 43, 0.22);
  color: #1a0f0a;
}

.wn-profile-role {
  font-size: 0.72rem;
  color: rgba(74, 46, 21, 0.65);
  margin: 0;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Stats grid ── */
.wn-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.wn-profile-stat {
  background: url('../img/Fondo_Pergamino.webp') center center / cover no-repeat;
  background-color: #CE9D66;
  border: 1.5px solid #C19A6B;
  border-radius: 16px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.wn-profile-stat:hover {
  transform: translateY(-4px);
}

.stat-fire {
  border-bottom: 3px solid rgba(255, 80, 80, 0.8);
}

.stat-star {
  border-bottom: 3px solid rgba(255, 200, 0, 0.85);
}

.stat-shield {
  border-bottom: 3px solid rgba(0, 200, 255, 0.8);
}

.stat-play {
  border-bottom: 3px solid rgba(255, 107, 0, 0.8);
}

.stat-fire:hover {
  box-shadow: 0 12px 28px rgba(255, 80, 80, 0.2), 0 0 0 1px rgba(255, 80, 80, 0.2);
}

.stat-star:hover {
  box-shadow: 0 12px 28px rgba(255, 200, 0, 0.2), 0 0 0 1px rgba(255, 200, 0, 0.2);
}

.stat-shield:hover {
  box-shadow: 0 12px 28px rgba(0, 200, 255, 0.2), 0 0 0 1px rgba(0, 200, 255, 0.2);
}

.stat-play:hover {
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.2), 0 0 0 1px rgba(255, 107, 0, 0.2);
}

.wn-profile-stat-emoji {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
  display: block;
}

.wn-profile-stat-val {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  display: block;
  letter-spacing: -0.5px;
}

.stat-fire .wn-profile-stat-val {
  color: #E05050;
  text-shadow: 0 0 14px rgba(255, 80, 80, 0.4);
}

.stat-star .wn-profile-stat-val {
  color: #B8860B;
  text-shadow: 0 0 14px rgba(200, 150, 0, 0.4);
}

.stat-shield .wn-profile-stat-val {
  color: #1A8FAA;
  text-shadow: 0 0 14px rgba(0, 150, 200, 0.4);
}

.stat-play .wn-profile-stat-val {
  color: #e55a00;
  text-shadow: 0 0 14px rgba(255, 107, 0, 0.4);
}

.wn-profile-stat-lbl {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #5c4033;
  margin-top: 0.4rem;
  display: block;
}

/* ── Section title ── */
.wn-section-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--wn-orange);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.wn-section-title i {
  color: var(--wn-orange);
}

.wn-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 90, 43, 0.35), transparent);
}

/* ── Game cards grid ── */
.wn-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.wn-game-card {
  background: url('../img/Fondo_Pergamino.webp') center center / cover no-repeat;
  background-color: #CE9D66;
  border: 2px solid #C19A6B;
  border-top: 2px solid #8B5A2B;
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.25rem;
  text-decoration: none;
  color: #1a0f0a;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.wn-game-card:hover {
  transform: translateY(-5px);
  border-color: #8B5A2B;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #1a0f0a;
  text-decoration: none;
}

/* Header row: icon + name left, status badge right */
.wn-game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.wn-game-card-id {
  display: flex;
  align-items: center;
  gap: 9px;
}

.wn-game-card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.wn-game-card-name {
  font-weight: 900;
  font-size: 1.1rem;
  color: #1a0f0a;
  letter-spacing: 0.3px;
}

/* Status badge */
.wn-game-card-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(139, 90, 43, 0.12);
  color: #5c4033;
  border: 1px solid rgba(139, 90, 43, 0.25);
  white-space: nowrap;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.wn-game-card-status.played {
  background: rgba(46, 160, 67, 0.15);
  color: #1A6B30;
  border-color: rgba(46, 160, 67, 0.35);
}

/* Big streak number */
.wn-game-card-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 1rem;
}

.wn-game-card-streak-val {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--wn-orange);
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 0 16px rgba(255, 107, 0, 0.35);
}

.wn-game-card-streak-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5c4033;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-bottom: 4px;
}

/* Footer: record + status */
.wn-game-card-footer {
  font-size: 0.78rem;
  color: #5c4033;
  border-top: 1px solid rgba(139, 90, 43, 0.25);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wn-game-card-footer strong {
  color: #b8860b;
  font-weight: 700;
}

.wn-profile-stat-grid.wn-fade-in {
  animation-delay: .1s;
}

.wn-games-section.wn-fade-in {
  animation-delay: .15s;
}

/* ── Avatar hero button ── */
.wn-avatar-hero-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease;
}
.wn-avatar-hero-btn:hover { transform: scale(1.08); }
#profileAvatarHero {
  font-size: 6rem;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  user-select: none;
}
.wn-avatar-hero-img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.wn-avatar-hero-pencil {
  position: absolute;
  bottom: -4px;
  right: -8px;
  width: 26px;
  height: 26px;
  background: var(--wn-orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 0 2px rgba(0,0,0,0.15);
  pointer-events: none;
  transition: transform 0.2s ease;
}
.wn-avatar-hero-btn:hover .wn-avatar-hero-pencil {
  transform: scale(1.15);
}

/* Rarity glow effects (hero) */
.wn-hero-rarity-rare { box-shadow: 0 0 0 3px #42a5f5, 0 0 18px rgba(66,165,245,0.45); }
.wn-hero-rarity-epic { box-shadow: 0 0 0 3px #ab47bc, 0 0 18px rgba(171,71,188,0.45); }

@keyframes wn-hero-legendary-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #ffd700, 0 0 14px rgba(255,215,0,0.4); }
  50%      { box-shadow: 0 0 0 3px #ffd700, 0 0 30px rgba(255,215,0,0.7); }
}
.wn-hero-rarity-legendary { animation: wn-hero-legendary-pulse 2.8s ease-in-out infinite; }

.wn-hero-rarity-ultralegendary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from var(--wn-rainbow-angle),
      #ff6b6b, #ffa94d, #ffd43b, #69db7c, #4dabf7, #cc5de8, #ff6b6b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: wn-rainbow-flow 3s linear infinite;
}

@keyframes legendary-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.4); }
  50%       { box-shadow: 0 0 28px rgba(255,215,0,0.8); }
}

@keyframes rainbow-border {
  0%   { border-color: #ff6b6b; box-shadow: 0 0 20px rgba(255,107,107,0.6); }
  20%  { border-color: #ffa94d; box-shadow: 0 0 20px rgba(255,169,77,0.6); }
  40%  { border-color: #ffd43b; box-shadow: 0 0 20px rgba(255,212,59,0.6); }
  60%  { border-color: #69db7c; box-shadow: 0 0 20px rgba(105,219,124,0.6); }
  80%  { border-color: #4dabf7; box-shadow: 0 0 20px rgba(77,171,247,0.6); }
  100% { border-color: #cc5de8; box-shadow: 0 0 20px rgba(204,93,232,0.6); }
}

/* fallback for unlock modal ring — kept for .wn-aum-img-ring.rarity-ultralegendary */

/* ── Avatar picker modal ── */
.wn-avatar-picker-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 1rem;
}
.wn-avatar-picker-modal.hidden { display: none; }

.wn-avatar-modal-content {
  background: url('../img/Fondo_Pergamino.webp') center/cover, #CE9D66;
  border: 2px solid #C19A6B;
  border-radius: 20px;
  width: min(600px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: wn-avatar-modal-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: scale(0.92);
  opacity: 0;
}

@keyframes wn-avatar-modal-enter {
  to { transform: scale(1); opacity: 1; }
}

.wn-avatar-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(139,90,43,0.3);
  flex-shrink: 0;
}
.wn-avatar-modal-title { font-size: 1.1rem; font-weight: 900; color: #1a0f0a; margin: 0; }

.wn-avatar-modal-close {
  background: none;
  border: none;
  color: #5c4033;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: 0.2s;
}
.wn-avatar-modal-close:hover { background: rgba(139,90,43,0.15); color: #1a0f0a; }

#avatarPickerGrid {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,90,43,0.4) rgba(0,0,0,0.1);
}

#avatarPickerGrid::-webkit-scrollbar { width: 6px; }
#avatarPickerGrid::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 10px; }
#avatarPickerGrid::-webkit-scrollbar-thumb { background: rgba(139,90,43,0.4); border-radius: 10px; }
#avatarPickerGrid::-webkit-scrollbar-thumb:hover { background: rgba(139,90,43,0.6); }

/* ── Avatar cards ── */
.wn-avatar-card {
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(139,90,43,0.25);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.wn-avatar-card:hover:not(.wn-avatar-locked) { border-color: var(--wn-orange); transform: translateY(-2px); background: rgba(255,255,255,0.7); }
.wn-avatar-card:focus { outline: 2px solid var(--wn-orange); }

.wn-avatar-card.wn-avatar-active {
  border-color: var(--wn-orange);
  background: rgba(255,107,0,0.12);
  box-shadow: 0 0 12px rgba(255,107,0,0.25);
}

.wn-avatar-card.wn-avatar-locked {
  opacity: 0.55;
  cursor: default;
  background: rgba(0,0,0,0.08);
}

.wn-avatar-locked .wn-avatar-emoji {
  filter: grayscale(100%) brightness(0.6);
}

.wn-avatar-locked .wn-avatar-img {
  filter: grayscale(100%) brightness(0.6);
}

/* ── Rarity borders ── */
.wn-avatar-rarity-common { border-color: #9e9e9e; }

.wn-avatar-rarity-rare {
  border-color: #42a5f5;
  box-shadow: 0 0 8px rgba(66,165,245,0.25);
}

.wn-avatar-rarity-epic {
  border-color: #ab47bc;
  box-shadow: 0 0 10px rgba(171,71,188,0.3);
}

@property --wn-rainbow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes wn-rainbow-flow {
  to { --wn-rainbow-angle: 360deg; }
}

.wn-avatar-rarity-legendary {
  border-color: rgba(255,215,0,0.7);
  animation: wn-card-legendary-pulse 2.8s ease-in-out infinite;
}

@keyframes wn-card-legendary-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.3); }
  50%      { box-shadow: 0 0 18px rgba(255,215,0,0.55), 0 0 28px rgba(255,215,0,0.15); }
}

.wn-avatar-rarity-legendary.wn-avatar-active {
  animation: none;
  box-shadow: 0 0 12px rgba(255,107,0,0.25), 0 0 22px rgba(255,215,0,0.35);
}

.wn-avatar-rarity-ultralegendary {
  border: none;
  position: relative;
  animation: none;
}

.wn-avatar-rarity-ultralegendary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: conic-gradient(from var(--wn-rainbow-angle),
      #ff6b6b, #ffa94d, #ffd43b, #69db7c, #4dabf7, #cc5de8, #ff6b6b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: wn-rainbow-flow 3s linear infinite;
}

.wn-avatar-rarity-ultralegendary:not(.wn-avatar-locked):hover {
  border: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

.wn-avatar-rarity-ultralegendary.wn-avatar-active {
  border: none;
  background: rgba(255,107,0,0.12);
}

/* Hover per rarity */
.wn-avatar-rarity-rare:not(.wn-avatar-locked):hover {
  border-color: #64b5f6;
  box-shadow: 0 4px 16px rgba(66,165,245,0.35);
}

.wn-avatar-rarity-epic:not(.wn-avatar-locked):hover {
  border-color: #ce93d8;
  box-shadow: 0 4px 16px rgba(171,71,188,0.35);
}

.wn-avatar-rarity-legendary:not(.wn-avatar-locked):hover {
  border-color: rgba(255,215,0,0.8);
  box-shadow: 0 4px 16px rgba(255,215,0,0.45);
  animation: none;
}

.wn-avatar-emoji {
  font-size: 2rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0,0,0,0.08);
}
.wn-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.wn-avatar-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a0f0a;
  word-break: break-word;
  line-height: 1.2;
}

.wn-avatar-hint {
  font-size: 0.65rem;
  color: #5c4033;
  line-height: 1.2;
  word-break: break-word;
}

.wn-avatar-lock-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.7rem;
  color: #5c4033;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wn-avatar-active-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--wn-orange);
  background: rgba(255,107,0,0.12);
  border-radius: 20px;
  padding: 1px 7px;
}

/* ── Avatar unlock modal ── */
.wn-aum-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}
.wn-aum-overlay.active { opacity: 1; }

.wn-aum-card {
  background: url('../img/Fondo_Pergamino.webp') center/cover, #CE9D66;
  border: 2px solid #C19A6B;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  transform: scale(0.9);
  transition: transform 0.3s;
}
.wn-aum-overlay.active .wn-aum-card { transform: scale(1); }

.wn-aum-header { display: flex; align-items: center; gap: 0.5rem; }
.wn-aum-sparkle { font-size: 1.4rem; }
.wn-aum-title { font-size: 1.2rem; font-weight: 900; color: #1a0f0a; }

.wn-aum-img-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #C19A6B;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(0,0,0,0.1);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.wn-aum-img-ring.rarity-rare       { border-color: #42a5f5; box-shadow: 0 0 20px rgba(66,165,245,0.5); }
.wn-aum-img-ring.rarity-epic       { border-color: #ab47bc; box-shadow: 0 0 20px rgba(171,71,188,0.5); }
.wn-aum-img-ring.rarity-legendary  { border-color: #ffd700; box-shadow: 0 0 25px rgba(255,215,0,0.6); animation: legendary-pulse 2s ease-in-out infinite; }
.wn-aum-img-ring.rarity-ultralegendary { animation: rainbow-border 3s linear infinite; }

.wn-aum-img   { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.wn-aum-emoji { font-size: 3rem; }

.wn-aum-rarity-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(139,90,43,0.15);
  color: #5c4033;
  border: 1px solid rgba(139,90,43,0.3);
}
.wn-aum-rarity-badge.rarity-rare       { background: rgba(66,165,245,0.15); color: #1565c0; border-color: rgba(66,165,245,0.4); }
.wn-aum-rarity-badge.rarity-epic       { background: rgba(171,71,188,0.15); color: #6a1b9a; border-color: rgba(171,71,188,0.4); }
.wn-aum-rarity-badge.rarity-legendary  { background: rgba(255,215,0,0.2);   color: #7d5a00; border-color: rgba(255,215,0,0.5); }
.wn-aum-rarity-badge.rarity-ultralegendary { background: rgba(255,107,0,0.15); color: #bf360c; border-color: rgba(255,107,0,0.4); }

.wn-aum-name { font-size: 1.2rem; font-weight: 900; color: #1a0f0a; }
.wn-aum-reason { font-size: 0.82rem; color: #5c4033; }

.wn-aum-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 0.5rem; }

.wn-aum-btn-skip {
  background: rgba(139,90,43,0.12);
  border: 1px solid rgba(139,90,43,0.3);
  border-radius: 8px;
  color: #5c4033;
  font-weight: 700;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: 0.2s;
}
.wn-aum-btn-skip:hover { background: rgba(139,90,43,0.22); }

.wn-aum-btn-equip {
  background: linear-gradient(180deg, var(--wn-orange), #e55a00);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255,107,0,0.35);
  transition: 0.2s;
}
.wn-aum-btn-equip:hover { filter: brightness(1.1); transform: translateY(-1px); }
.wn-aum-btn-equip:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.wn-aum-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a0f0a;
  color: #FF6B00;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  border: 1.5px solid rgba(255,107,0,0.4);
}
.wn-aum-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 576px) {
  .wn-avatar-modal-content {
    max-height: 90vh;
    border-radius: 16px;
  }

  .wn-avatar-modal-header {
    padding: 1rem 1rem 0.8rem;
  }

  #avatarPickerGrid {
    padding: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 0.6rem;
  }

  .wn-avatar-emoji {
    font-size: 1.6rem;
    width: 46px;
    height: 46px;
  }

  .wn-games-grid {
    grid-template-columns: 1fr;
  }

  .wn-profile-hero {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .wn-profile-stat-grid {
    gap: 0.6rem;
  }

  .wn-profile-stat {
    padding: 1rem 0.4rem;
  }

  .wn-profile-stat-val {
    font-size: 1.6rem;
  }

  .wn-profile-stat-lbl {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
  }

  .wn-nickname-display {
    font-size: 1.75rem;
  }

  .wn-game-card-streak-val {
    font-size: 2.6rem;
  }
}