/* ═══════════════════════════════════════════════════════════════════════════
   THE WARDROBE — hero skins (screens/wardrobe.js, src/lib/skins.ts)
   Gilt & Obsidian, namespaced .wd-*. Each skin's rarity colour arrives as
   --rar. Overlays (detail, unveiling) are injected into <body> and sit in the
   same band as the Company's (450–520), under UI.modal (500+ for toasts).
   ═══════════════════════════════════════════════════════════════════════════ */

.wd-screen { padding-bottom: 32px; }
.wd-screen *, .wd-ov * { -webkit-tap-highlight-color: transparent; }
.wd-pad { padding: 0 14px; }
.wd-loading { padding: 64px 20px; text-align: center; color: var(--tx-3); }

.wd-kicker {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gilt-mid);
}

/* Rarity chip */
.wd-rar {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rar);
  border: 1px solid color-mix(in srgb, var(--rar) 70%, transparent);
  background: color-mix(in srgb, var(--rar) 12%, rgba(0, 0, 0, 0.4));
  white-space: nowrap;
}
.wd-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--tx-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ob-line);
  white-space: nowrap;
}
.wd-chip--season { color: #ffb070; border-color: rgba(255, 140, 60, 0.35); background: rgba(255, 120, 40, 0.08); }

/* Title name in its tier colour */
.wd-title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em; }
.wd-title--bronze { color: #d99a5b; }
.wd-title--silver { color: #d6dbe4; }
.wd-title--gold { background: var(--gilt-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wd-title--mythril {
  background: linear-gradient(90deg, #c0c0ff 0%, #7ec8e3 25%, #b19cd9 50%, #7ec8e3 75%, #c0c0ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: title-mythril-sheen 4s linear infinite;
}

/* Buttons */
.wd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s var(--ease-out), background 0.2s;
}
.wd-btn:active { transform: scale(0.96); }
.wd-btn:disabled { opacity: 0.45; cursor: default; }
.wd-btn--ghost { color: var(--gilt-hi); background: rgba(224, 188, 106, 0.06); border: 1px solid var(--gilt-line-strong); }
.wd-cta {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #241806;
  background: var(--gilt-metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 28px -10px rgba(224, 188, 106, 0.6);
  cursor: pointer;
  transition: transform 0.12s var(--ease-out), filter 0.2s;
}
.wd-cta:active { transform: scale(0.98); }
.wd-cta:disabled { filter: saturate(0.4) brightness(0.8); cursor: default; }
.wd-cta--worn { color: var(--gilt-hi); background: rgba(224, 188, 106, 0.1); border: 1px solid var(--gilt-line-strong); box-shadow: none; filter: none !important; }

/* ── The mirror (what you are wearing) ─────────────────────────────────── */
.wd-mirror {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: end;
  gap: 4px;
  margin: 6px 14px 16px;
  padding: 0 14px 0 0;
  min-height: 236px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 22% 72%, color-mix(in srgb, var(--rar) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 140% 100% at 50% 100%, #1d1828 0%, #0e0b15 55%, #07060b 100%);
  border: 1px solid var(--gilt-line);
  box-shadow: var(--shadow-card);
}
.wd-mirror::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 30% 6% at 21% 95%, rgba(0, 0, 0, 0.8), transparent 75%);
  pointer-events: none;
}
.wd-mirror__stage { position: relative; height: 236px; display: flex; align-items: flex-end; justify-content: center; }
.wd-mirror__glow {
  position: absolute;
  left: 50%; bottom: 10%;
  width: 70%; height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--rar) 30%, transparent), transparent 70%);
  filter: blur(8px);
}
.wd-mirror__fig {
  position: relative;
  z-index: 1;
  height: 92%;
  width: 100%;
  margin-bottom: 4px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.7));
  transform-origin: 50% 100%;
  animation: wd-breathe 3.6s ease-in-out infinite alternate;
}
.wd-mirror__info { position: relative; z-index: 2; padding: 16px 0 14px; min-width: 0; }
.wd-mirror__name { margin: 4px 0 7px; font-size: 21px; line-height: 1.12; color: var(--tx-1); }
.wd-mirror__hint { margin: 0; font-size: 13px; line-height: 1.35; color: var(--tx-3); }
.wd-mirror__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wd-mirror__actions:empty { display: none; }
.wd-progress { margin-top: 14px; }
.wd-progress__row { display: flex; justify-content: space-between; align-items: baseline; }
.wd-progress__label { font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); }
.wd-progress__count { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--gilt-hi); }
.wd-progress__count span { font-size: 12px; color: var(--tx-3); }
.wd-progress__bar { height: 6px; margin-top: 5px; border-radius: 99px; background: var(--ob-4); overflow: hidden; }
.wd-progress__bar i { display: block; height: 100%; border-radius: inherit; background: var(--gilt-metal); box-shadow: 0 0 10px rgba(224, 188, 106, 0.6); transition: width 0.6s var(--ease-out); }
.wd-progress__goal { margin-top: 6px; font-family: var(--font-ui); font-size: 11.5px; line-height: 1.35; color: var(--tx-3); }

@keyframes wd-breathe {
  from { transform: scale(1, 1); }
  to   { transform: scale(1.012, 0.988); }
}

/* ── Seasonal banner ───────────────────────────────────────────────────── */
.wd-season {
  position: relative;
  display: flex;
  align-items: stretch;
  width: calc(100% - 28px);
  margin: 0 14px 16px;
  min-height: 116px;
  padding: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 140, 60, 0.45);
  background:
    radial-gradient(ellipse 50% 90% at 85% 100%, rgba(255, 120, 30, 0.35), transparent 70%),
    linear-gradient(110deg, #160c06 0%, #23110a 55%, #1a0d07 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 14px 34px -16px rgba(255, 110, 30, 0.55);
}
.wd-season:active { transform: scale(0.99); }
.wd-season__text { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 0 14px 16px; }
.wd-season .wd-kicker { color: #ff9a4a; }
.wd-season__name { font-size: 20px; color: #ffe2bf; line-height: 1.1; }
.wd-season__sub { font-size: 13px; line-height: 1.35; color: #d8b494; }
.wd-season__fig {
  position: relative;
  z-index: 1;
  width: 38%;
  max-width: 170px;
  height: auto;
  align-self: flex-end;
  margin: 8px -6px -18px 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.8));
}

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.wd-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--ob-2); border: 1px solid var(--ob-line); }
.wd-tab {
  flex: 1;
  min-height: 34px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--tx-3);
  cursor: pointer;
}
.wd-tab.is-on { color: #241806; background: var(--gilt-metal); }
.wd-tab__n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; font-size: 11px; background: rgba(0, 0, 0, 0.25); }
.wd-empty { padding: 36px 16px; text-align: center; color: var(--tx-3); }
.wd-empty__title { margin-bottom: 6px; font-size: 18px; color: var(--tx-2); }

/* ── Collections ───────────────────────────────────────────────────────── */
.wd-col { margin-bottom: 22px; }
.wd-col__head { margin-bottom: 10px; }
.wd-col__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wd-col__name { margin: 0; font-size: 18px; line-height: 1.2; background: var(--gilt-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wd-col__count { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--tx-3); }
.wd-col__count.is-done { color: var(--jade); }
.wd-col__blurb { margin: 3px 0 8px; font-size: 13px; line-height: 1.4; color: var(--tx-3); }
.wd-col__reward {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--ob-line);
}
.wd-col__reward-k { font-family: var(--font-ui); font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); }
.wd-col__reward.is-done { border-color: rgba(63, 207, 142, 0.35); }
.wd-col__reward.is-done .wd-col__reward-k { color: var(--jade); }

.wd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .wd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Card ──────────────────────────────────────────────────────────────── */
.wd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  background: var(--ob-2);
  border: 1px solid color-mix(in srgb, var(--rar) 34%, transparent);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s var(--ease-out), border-color 0.2s;
}
.wd-card:active { transform: scale(0.97); }
.wd-card__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 70%, color-mix(in srgb, var(--rar) 30%, transparent), transparent 72%),
    linear-gradient(180deg, #120f19 0%, #191423 100%);
}
.wd-card__stage::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 3%;
  width: 56%; height: 7%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75), transparent 70%);
}
.wd-card--legendary .wd-card__stage::before {
  /* a slow sheen across legendary cards */
  content: '';
  position: absolute;
  inset: -40% -60%;
  z-index: 2;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 230, 170, 0.14) 50%, transparent 58%);
  animation: wd-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wd-sheen { 0%, 55% { transform: translateX(-40%); } 100% { transform: translateX(40%); } }
.wd-card__fig {
  position: relative;
  z-index: 1;
  height: 92%;
  width: auto;
  max-width: 120%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6));
}
.wd-card__flag {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd0a0;
  background: rgba(120, 45, 10, 0.75);
  border: 1px solid rgba(255, 140, 60, 0.5);
}
.wd-card__body { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 11px; border-top: 1px solid color-mix(in srgb, var(--rar) 22%, transparent); }
.wd-card__rar { font-family: var(--font-ui); font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rar); }
.wd-card__name { font-size: 14px; line-height: 1.18; color: var(--tx-1); }
.wd-card.is-worn { border-color: var(--gilt); box-shadow: 0 0 0 1px var(--gilt-line-strong), 0 10px 26px -12px rgba(224, 188, 106, 0.6); }

.wd-st { margin-top: 3px; font-family: var(--font-ui); font-size: 12px; font-weight: 800; color: var(--tx-3); }
.wd-st--price { color: var(--gilt-hi); }
.wd-st--owned { color: var(--jade); }
.wd-st--worn { color: var(--gilt); }
.wd-st--wait { opacity: 0.5; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.wd-foot { margin-top: 6px; text-align: center; }
.wd-note { margin: 8px auto; max-width: 420px; font-size: 12.5px; line-height: 1.45; color: var(--tx-3); }
.wd-note a, .wd-foot__links a, .wd-admin a { color: var(--gilt); text-decoration: underline; cursor: pointer; }
.wd-foot__links { margin-top: 10px; font-size: 13px; }
.wd-getapp {
  margin: 4px 0 10px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--ob-2);
  border: 1px solid var(--gilt-line);
}
.wd-getapp__title { font-size: 16px; color: var(--gilt-hi); }
.wd-getapp p { margin: 6px 0 12px; font-size: 13px; line-height: 1.45; color: var(--tx-3); }
.wd-getapp__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ═══════════════════════ OVERLAYS (body-injected) ══════════════════════════ */
.wd-ov { position: fixed; inset: 0; z-index: 450; }
.wd-ov.is-out { opacity: 0; transition: opacity 0.2s ease-out; }

/* Detail: full-height panel (phone: full-bleed; desktop: a centred column) */
.wd-detail {
  display: flex;
  justify-content: center;
  background: rgba(3, 2, 6, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlay-in 0.22s ease-out both;
}
.wd-detail__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ob-1);
  box-shadow: 0 0 0 1px rgba(224, 188, 106, 0.16), 0 0 80px rgba(0, 0, 0, 0.9);
}
.wd-detail__panel.is-fresh { animation: wd-panel-in 0.36s var(--ease-out) both; }
@keyframes wd-panel-in { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
.wd-detail__scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

.wd-stage {
  position: relative;
  height: clamp(310px, 52vh, 470px);
  padding-top: env(safe-area-inset-top, 0px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(ellipse 55% 50% at 50% 60%, color-mix(in srgb, var(--rar) 32%, transparent), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 100%, #1d1828 0%, #0c0a12 60%, #050407 100%);
}
.wd-stage__rays {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 150%;
  height: 95%;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%,
    transparent 158deg, color-mix(in srgb, var(--rar) 12%, transparent) 168deg, transparent 175deg,
    color-mix(in srgb, var(--rar) 10%, transparent) 184deg, transparent 192deg,
    color-mix(in srgb, var(--rar) 8%, transparent) 199deg, transparent 205deg);
  pointer-events: none;
  animation: wd-rays 9s ease-in-out infinite alternate;
}
@keyframes wd-rays { from { opacity: 0.7; transform: translateX(-50%) rotate(-2deg); } to { opacity: 1; transform: translateX(-50%) rotate(2deg); } }
.wd-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 6% at 50% 94%, rgba(0, 0, 0, 0.85), transparent 75%),
    radial-gradient(ellipse 85% 75% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, transparent 72%, var(--ob-1) 100%);
  pointer-events: none;
  z-index: 3;
}
.wd-stage__fig {
  position: relative;
  z-index: 2;
  height: 84%;
  width: auto;
  max-width: 125%;
  margin-bottom: 5%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 24px color-mix(in srgb, var(--rar) 35%, transparent));
  transform-origin: 50% 100%;
  animation: wd-breathe 3.4s ease-in-out infinite alternate, wd-fig-in 0.55s var(--ease-out) both;
}
.wd-stage__fig.is-striking { animation: wd-strike 1.1s var(--ease-out) both; }
@keyframes wd-fig-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wd-strike {
  0%   { transform: translateX(-10px) scale(0.98); }
  18%  { transform: translateX(16px) scale(1.04); }
  70%  { transform: translateX(12px) scale(1.03); }
  100% { transform: translateX(0) scale(1); }
}
.wd-motes { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.wd-motes i {
  position: absolute;
  bottom: 8%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--rar);
  box-shadow: 0 0 6px 1px var(--rar);
  opacity: 0;
  animation: wd-mote var(--d, 7s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes wd-mote {
  0%   { opacity: 0; transform: translate(0, 0); }
  12%  { opacity: 0.85; }
  80%  { opacity: 0.35; }
  100% { opacity: 0; transform: translate(var(--dx, 10px), -280px); }
}
.wd-stage__top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 10px; right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.wd-stage__nav { display: flex; gap: 8px; }
.wd-iconbtn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 6, 12, 0.66);
  border: 1px solid rgba(224, 188, 106, 0.3);
  color: var(--gilt-hi);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.wd-iconbtn:active { transform: scale(0.94); }
.wd-strike {
  position: absolute;
  right: 14px; bottom: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-1);
  background: rgba(8, 6, 12, 0.7);
  border: 1px solid color-mix(in srgb, var(--rar) 55%, transparent);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.wd-strike svg { color: var(--rar); }
.wd-strike:active { transform: scale(0.95); }

.wd-detail__head { position: relative; z-index: 4; margin-top: -8px; padding: 0 18px; text-align: center; }
.wd-detail__portrait {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 5;
  width: 58px; height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 210deg, var(--rar), #fff6 30%, var(--rar) 60%, #0006 80%, var(--rar));
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.9);
}
.wd-detail__portrait img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.wd-detail__name {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.12;
  background: var(--gilt-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wd-detail__tag { margin: 4px 0 0; font-style: italic; font-size: 15px; color: var(--gilt); }
.wd-detail__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.wd-detail__body { padding: 16px 18px 20px; }
.wd-lore { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--tx-2); white-space: pre-line; }
.wd-incl { list-style: none; margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--ob-2); border: 1px solid var(--ob-line); }
.wd-incl li { display: flex; gap: 9px; padding: 4px 0; font-size: 13.5px; line-height: 1.4; color: var(--tx-2); }
.wd-incl li span { color: var(--rar); }
.wd-incl b { color: var(--gilt-hi); font-weight: 700; }
.wd-admin { display: flex; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--tx-4); }
.wd-detail__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ob-line);
  background: linear-gradient(180deg, rgba(12, 10, 18, 0.92), var(--ob-1));
}
.wd-cta-note { margin: 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: var(--tx-3); }

/* ── The unveiling ─────────────────────────────────────────────────────── */
.wd-unveil {
  z-index: 520;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 45%, #15101d 0%, #050407 75%);
  animation: overlay-in 0.3s ease-out both;
  overflow: hidden;
}
.wd-unveil__burst {
  position: absolute;
  left: 50%; top: 40%;
  width: 160vmax; height: 160vmax;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rar) 55%, transparent) 0%, color-mix(in srgb, var(--rar) 12%, transparent) 22%, transparent 45%);
  animation: wd-burst 1.2s var(--ease-out) 0.15s both;
}
@keyframes wd-burst { to { transform: translate(-50%, -50%) scale(1); } }
.wd-unveil__rays {
  position: absolute;
  left: 50%; top: 40%;
  width: 180vmax; height: 180vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rar) 14%, transparent) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 42%);
  mask: radial-gradient(circle, #000 0%, transparent 42%);
  opacity: 0;
  animation: wd-rays-in 0.8s ease-out 0.4s forwards, wd-spin 40s linear infinite;
}
@keyframes wd-rays-in { to { opacity: 1; } }
@keyframes wd-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.wd-unveil__inner { position: relative; z-index: 2; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wd-unveil__inner .wd-kicker { animation: wd-up 0.5s var(--ease-out) 0.2s both; }
.wd-unveil__stage { position: relative; height: min(46vh, 400px); width: 100%; display: flex; align-items: flex-end; justify-content: center; margin: 10px 0 12px; }
.wd-unveil__fig {
  height: 100%;
  width: auto;
  max-width: 120%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--rar) 60%, transparent)) drop-shadow(0 14px 12px rgba(0, 0, 0, 0.8));
  animation: wd-rise 1.1s var(--ease-spring) 0.35s both;
}
@keyframes wd-rise {
  0%   { opacity: 0; transform: translateY(40px) scale(0.86); filter: brightness(3) drop-shadow(0 0 40px var(--rar)); }
  60%  { opacity: 1; filter: brightness(1.4) drop-shadow(0 0 30px var(--rar)); }
  100% { opacity: 1; transform: none; }
}
.wd-unveil__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  -webkit-mask: linear-gradient(#000, #000);
  mix-blend-mode: overlay;
  transform: translateX(-120%);
  animation: wd-shine 1.4s ease-in-out 1.1s both;
  pointer-events: none;
}
@keyframes wd-shine { to { transform: translateX(120%); } }
.wd-unveil .wd-rar { animation: wd-up 0.5s var(--ease-out) 1s both; }
.wd-unveil__name {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.1;
  background: var(--gilt-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wd-up 0.6s var(--ease-out) 1.1s both;
}
.wd-unveil__tag { margin: 6px 0 0; font-style: italic; font-size: 15px; color: var(--gilt); animation: wd-up 0.6s var(--ease-out) 1.25s both; }
.wd-unveil__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gilt-line);
  animation: wd-up 0.6s var(--ease-out) 1.45s both;
}
.wd-unveil__title span { font-family: var(--font-ui); font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tx-3); }
.wd-unveil__title b { font-size: 17px; }
.wd-unveil__actions { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 320px; margin-top: 18px; animation: wd-up 0.6s var(--ease-out) 1.6s both; }
@keyframes wd-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Character screen entry point */
.wd-entry-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 6px var(--ember); margin-left: 2px; vertical-align: 1px; }

@media (prefers-reduced-motion: reduce) {
  .wd-mirror__fig, .wd-stage__fig, .wd-stage__rays, .wd-motes i, .wd-card--legendary .wd-card__stage::before,
  .wd-unveil__rays, .wd-unveil__fig, .wd-unveil__shine { animation: none !important; }
  .wd-unveil__rays { opacity: 1; }
}
