/* ==========================================================
   Registrazione immersiva + Accesso con Google (ReactBits Edition)
   ========================================================== */

/* ---------- Bottone oro ---------- */
.btn--gold {
  background: var(--gold-grad);
  background-size: 200% auto;
  color: hsl(30, 10%, 8%);
  border-color: transparent;
  box-shadow: 0 14px 34px -14px hsla(40, 75%, 52%, 0.55);
}
.btn--gold::before { background: hsl(40, 42%, 96%); }
.btn--gold:hover { color: hsl(30, 10%, 8%); border-color: transparent; }

/* ---------- Hero compatto quando siamo su "Crea account" ---------- */
.auth-hero {
  transition: padding 0.45s var(--ease);
}
.auth-hero.is-compact {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: 18px;
}
.auth-hero.is-compact .display {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  margin-top: 12px;
}
.auth-hero.is-compact .lead {
  display: none;
}

/* ---------- Card Login Interattiva ---------- */
.login-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid hsla(38, 52%, 52%, 0.34);
  box-shadow:
    0 40px 80px -50px hsla(30, 30%, 8%, 0.45),
    inset 0 1px 0 hsla(42, 80%, 85%, 0.25);
}
.login-card__crest {
  width: 48px;
  height: 48px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, hsl(44, 80%, 82%), hsl(38, 55%, 48%) 65%, hsl(32, 50%, 28%));
  color: hsl(30, 10%, 8%);
  font-size: 1.15rem;
  box-shadow: 0 0 28px hsla(42, 80%, 60%, 0.4);
}

/* ---------- Google (StarBorder: luce che gira sul bordo) ---------- */
@property --sb-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn-google {
  position: relative; display: block; width: 100%; padding: 1.5px; border-radius: 8px;
  background: conic-gradient(from var(--sb-a), var(--sand) 0 60%, var(--gold) 74%, var(--gold-2) 82%, var(--sand) 96%);
  animation: sbSpin 4.5s linear infinite;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-google:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px hsla(38, 60%, 35%, .65); }
.btn-google__inner {
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 24px; border-radius: 6.5px;
  background: var(--surface, hsl(40, 40%, 98%)); color: var(--ink);
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  transition: background .45s var(--ease), color .45s var(--ease);
}
.btn-google svg { width: 18px; height: 18px; flex: none; transition: transform .6s var(--ease); }
.btn-google:hover .btn-google__inner { background: var(--ink); color: var(--cream); }
.btn-google:hover svg { transform: rotate(-14deg) scale(1.12); }
@keyframes sbSpin { to { --sb-a: 360deg; } }
.login-sep { margin: 28px 0 22px; }
.login-sep span { font-size: 1rem; }

/* ---------- Wizard: Palco immersivo ReactBits ---------- */
.wz {
  --wz-ink: hsl(30, 12%, 7%);
  --wz-cream: hsl(40, 38%, 95%);
  --wz-sand: hsl(35, 24%, 78%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto 110px;
  min-height: min(650px, 82vh);
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.6vw, 44px);
  color: var(--wz-cream);
  background:
    radial-gradient(120% 90% at 50% -8%, hsla(38, 42%, 22%, 0.55) 0%, transparent 58%),
    radial-gradient(100% 100% at 50% 105%, hsla(350, 35%, 20%, 0.35) 0%, transparent 55%),
    linear-gradient(165deg, hsl(30, 12%, 11%) 0%, hsl(30, 10%, 6%) 100%);
  border: 1px solid hsla(42, 70%, 68%, 0.34);
  border-radius: 22px;
  box-shadow:
    0 50px 100px -50px hsla(30, 45%, 4%, 0.88),
    0 0 0 1px hsla(42, 80%, 75%, 0.08),
    inset 0 1px 0 hsla(42, 85%, 85%, 0.18);
}
.wz ::selection { background: var(--gold-2); color: var(--wz-ink); }

/* Spotlight dinamico che segue il cursore */
.wz::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(540px circle at var(--mx, 50%) var(--my, 25%), hsla(42, 85%, 72%, 0.13), transparent 62%);
}
/* Cornice atelier interna */
.wz::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid hsla(42, 70%, 70%, 0.14);
  border-radius: 14px;
}
.wz__particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

/* Aurora atmosferica */
.wz__aurora { position: absolute; inset: 0; z-index: -3; filter: blur(68px); opacity: .62; pointer-events: none; }
.wz__aurora span { position: absolute; border-radius: 50%; animation: auroraDrift 18s ease-in-out infinite alternate; }
.wz__aurora span:nth-child(1) { width: 48%; height: 52%; left: -8%; top: -12%; background: hsla(38, 68%, 46%, .52); }
.wz__aurora span:nth-child(2) { width: 42%; height: 46%; right: -10%; top: 22%; background: hsla(350, 45%, 56%, .3); animation-duration: 22s; animation-delay: -6s; }
.wz__aurora span:nth-child(3) { width: 52%; height: 42%; left: 24%; bottom: -22%; background: hsla(32, 55%, 36%, .48); animation-duration: 26s; animation-delay: -12s; }
@keyframes auroraDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 6%) scale(1.15); }
  100% { transform: translate(-6%, 10%) scale(.95); }
}

/* ---------- Barra superiore (Stepper) ---------- */
.wz__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 40px; transition: opacity .5s var(--ease); }
.wz__top.is-hidden { opacity: 0; pointer-events: none; }
.wz__back {
  justify-self: start; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--wz-sand);
  padding: 8px 14px; border: 1px solid hsla(40, 30%, 90%, 0.14); border-radius: 30px;
  background: hsla(40, 30%, 90%, 0.04);
  transition: color .3s, border-color .3s, transform .3s var(--ease);
}
.wz__back:hover { color: var(--gold-2); border-color: var(--gold); transform: translateX(-3px); }
.wz__dots { display: flex; gap: 9px; align-items: center; }
.wz__dots i {
  width: 6px; height: 6px; transform: rotate(45deg); background: hsla(40, 30%, 90%, .18);
  transition: background .5s var(--ease), box-shadow .5s, transform .5s var(--ease);
}
.wz__dots i.is-done { background: var(--gold); }
.wz__dots i.is-current {
  background: var(--gold-2); transform: rotate(45deg) scale(1.6);
  box-shadow: 0 0 0 4px hsla(42, 70%, 70%, .16), 0 0 14px hsla(42, 80%, 70%, .65);
}
.wz__count { justify-self: end; font-size: .7rem; letter-spacing: .2em; color: var(--wz-sand); font-variant-numeric: tabular-nums; }
.wz__count b { font-family: var(--f-display); font-size: 1.55rem; font-weight: 400; color: var(--wz-cream); letter-spacing: 0; margin-right: 6px; }
.wz__bar { height: 1px; background: hsla(40, 30%, 90%, .1); margin-top: 16px; overflow: hidden; border-radius: 2px; }
.wz__bar span {
  display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0);
  transition: transform .9s var(--ease); box-shadow: 0 0 12px hsla(42, 80%, 70%, .7);
}

/* ---------- Nuvoletta dello Studio dentro il Wizard ---------- */
.wz__bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 480px);
  margin: 0 auto 22px;
  padding: 10px 18px 10px 12px;
  background: hsla(34, 24%, 15%, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsla(42, 75%, 70%, 0.36);
  border-radius: 30px;
  box-shadow:
    0 16px 34px -16px hsla(0, 0%, 0%, 0.65),
    inset 0 1px 0 hsla(42, 90%, 88%, 0.16);
  animation: wzBubbleFloat 4.8s ease-in-out infinite;
}
.wz__bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: hsl(33, 22%, 14%);
  border-right: 1px solid hsla(42, 75%, 70%, 0.36);
  border-bottom: 1px solid hsla(42, 75%, 70%, 0.36);
  transform: translateX(-50%) rotate(45deg);
}
@keyframes wzBubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.wz__bubble-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--wz-ink);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  box-shadow: 0 0 10px hsla(42, 85%, 68%, 0.5);
}
.wz__bubble-txt {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--wz-cream);
  line-height: 1.25;
}

/* ---------- Palco delle domande ---------- */
.wz__stage { flex: 1; display: grid; place-items: center; text-align: center; padding: clamp(22px, 4vw, 44px) 0 clamp(12px, 2vw, 24px); }
.wz__stage > * { width: min(100%, 680px); }
.wz__stage.is-entering > * { animation: wzIn .68s var(--ease) both; }
.wz__stage.is-leaving > * { animation: wzOut .3s ease-in both; }
@keyframes wzIn { from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); } }
@keyframes wzOut { to { opacity: 0; transform: translateY(-16px) scale(0.98); filter: blur(6px); } }

.wz__eyebrow { display: inline-flex; gap: 12px; align-items: center; font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-2); }
.wz__eyebrow::before, .wz__eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.wz__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.06; margin-top: 16px; letter-spacing: -.01em; color: var(--wz-cream); }
.wz__title em { font-style: italic; font-weight: 400; color: var(--gold-2); }
.wz__hint { margin-top: 14px; font-size: .98rem; }
.wz__lead { color: var(--wz-sand); margin: 18px auto 0; max-width: 46ch; font-size: 1.02rem; }

/* ---------- Campi Input in Capsula Vetro ---------- */
.wz__form { margin-top: clamp(26px, 4.5vw, 40px); }
.wz__field { position: relative; max-width: 520px; margin-inline: auto; }
.wz__field--box {
  background: hsla(30, 14%, 12%, 0.72);
  border: 1px solid hsla(42, 65%, 68%, 0.26);
  border-radius: 14px;
  padding: 6px 20px;
  box-shadow:
    0 20px 44px -24px hsla(0, 0%, 0%, 0.7),
    inset 0 1px 0 hsla(42, 80%, 85%, 0.1);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.35s var(--ease);
}
.wz__field--box:focus-within {
  border-color: var(--gold-2);
  box-shadow:
    0 24px 50px -20px hsla(42, 80%, 55%, 0.35),
    0 0 0 3px hsla(42, 80%, 70%, 0.14);
  transform: translateY(-2px);
}
.wz__field input, .wz__field textarea {
  width: 100%; background: transparent; border: 0; border-radius: 0;
  color: var(--wz-cream); font-family: var(--f-display); font-size: clamp(1.55rem, 3.2vw, 2.15rem); text-align: center;
  padding: 12px 0; outline: none; caret-color: var(--gold-2); color-scheme: dark;
}
.wz__field textarea { font-size: 1.38rem; min-height: 110px; resize: none; text-align: left; line-height: 1.45; }
.wz__field input::placeholder, .wz__field textarea::placeholder { color: hsla(40, 20%, 85%, .3); font-style: italic; }
.wz__field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(1) saturate(2) hue-rotate(5deg); cursor: pointer; }
.wz__field--pw input { padding-inline: 76px; }
.wz__eye { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--wz-sand); transition: color .3s; }
.wz__eye:hover { color: var(--gold-2); }

.is-shake { animation: wzShake .45s; }
@keyframes wzShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.wz__error { min-height: 1.4em; margin-top: 12px; color: hsl(8, 78%, 74%); font-size: .9rem; }
.wz__actions { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.wz__cta { border-radius: 40px; padding-inline: 38px; }
.wz__skip {
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--wz-sand);
  padding: 10px 6px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.wz__skip:hover { color: var(--wz-cream); border-color: var(--gold); }
.wz__kbd { margin-top: 16px; font-size: .72rem; letter-spacing: .1em; color: hsla(40, 20%, 85%, .42); }
.wz kbd {
  font-family: var(--f-body); font-size: .68rem; padding: 3px 8px; margin-left: 4px; border-radius: 4px;
  border: 1px solid hsla(40, 30%, 90%, .22); background: hsla(40, 30%, 90%, .06); color: var(--wz-sand);
}
.wz [data-magnet] { transition: transform .35s var(--ease), color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease); }

/* Scelta singola (taglia) */
.wz__opts { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.wz__opt {
  min-width: 82px; padding: 18px 24px; border-radius: 12px;
  border: 1px solid hsla(42, 60%, 75%, .24); background: hsla(30, 14%, 14%, .7);
  color: var(--wz-cream); font-family: var(--f-display); font-size: 1.65rem;
  box-shadow: 0 14px 30px -18px hsla(0, 0%, 0%, .6);
  transition: all .4s var(--ease);
}
.wz__opt:hover { border-color: var(--gold-2); transform: translateY(-4px); background: hsla(42, 70%, 60%, .12); }
.wz__opt.is-on { background: var(--gold-grad); color: var(--wz-ink); border-color: transparent; box-shadow: 0 14px 34px -10px hsla(42, 80%, 60%, .55); }

/* Colori */
.wz__swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 16px; max-width: 580px; margin-inline: auto; }
.wz__swatch {
  display: grid; justify-items: center; gap: 10px; width: 84px; padding: 12px 8px;
  border-radius: 14px; border: 1px solid hsla(40, 30%, 90%, .1); background: hsla(30, 14%, 13%, .55);
}
.wz__swatch span {
  width: 48px; height: 48px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .18), 0 10px 24px -10px hsla(0, 0%, 0%, .85);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.wz__swatch small { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wz-sand); transition: color .3s; }
.wz__swatch:hover { border-color: hsla(42, 70%, 70%, .4); }
.wz__swatch:hover span { transform: translateY(-4px) scale(1.08); }
.wz__swatch:hover small { color: var(--wz-cream); }
.wz__swatch.is-on { border-color: var(--gold-2); background: hsla(42, 60%, 50%, .12); }
.wz__swatch.is-on span { transform: scale(1.1); box-shadow: 0 0 0 3px var(--wz-ink), 0 0 0 4px var(--gold-2), 0 0 26px hsla(42, 80%, 70%, .55); }

/* Passioni (multi) */
.wz__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 600px; margin-inline: auto; }
.wz__chip {
  padding: 13px 24px; border: 1px solid hsla(42, 50%, 75%, .24); border-radius: 40px;
  background: hsla(30, 14%, 13%, .65); color: var(--wz-cream);
  font-size: .9rem; letter-spacing: .04em; transition: all .4s var(--ease);
}
.wz__chip:hover { border-color: var(--gold-2); transform: translateY(-2px); background: hsla(42, 60%, 60%, .1); }
.wz__chip.is-on { background: var(--gold-grad); color: var(--wz-ink); font-weight: 500; border-color: transparent; transform: scale(1.04); box-shadow: 0 10px 26px -10px hsla(42, 80%, 60%, .5); }
.wz__chip.is-on::before { content: "✦ "; }

/* Domande lampo (questo o quello) */
.wz__duel-count { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.wz__duel-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; animation: wzIn .6s var(--ease) both; }
.wz__duel-card {
  position: relative; padding: clamp(26px, 4.5vw, 42px) 18px; border-radius: 16px;
  border: 1px solid hsla(42, 60%, 75%, .24);
  background: linear-gradient(160deg, hsla(36, 25%, 18%, .75), hsla(30, 15%, 10%, .85));
  color: var(--wz-cream);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 22px 45px -25px hsla(0, 0%, 0%, .75);
  transition: transform .5s var(--ease), border-color .4s, opacity .5s, background .4s, color .4s, box-shadow .4s;
}
.wz__duel-tag {
  font-family: var(--f-body); font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-2); opacity: 0.8;
}
.wz__duel-card strong {
  font-family: var(--f-display); font-size: clamp(1.65rem, 3.5vw, 2.35rem); font-weight: 400; font-style: italic;
}
.wz__duel-card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--gold-2); box-shadow: 0 26px 50px -22px hsla(42, 80%, 55%, .3); }
.wz__duel-card:last-child:hover { transform: translateY(-6px) rotate(1deg); }
.wz__duel-card.is-chosen { background: var(--gold-grad); color: var(--wz-ink); border-color: transparent; transform: scale(1.05); }
.wz__duel-card.is-chosen .wz__duel-tag { color: var(--wz-ink); }
.wz__duel-card.is-out { opacity: .22; transform: scale(.94); }
.wz__duel-or { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--gold-2); }
.wz__duel-quip { min-height: 1.6em; margin-top: 22px; font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--gold-2); }

/* ---------- Emblem / Orb & Reazione dopo ogni risposta ---------- */
.wz__react { display: grid; justify-items: center; gap: 22px; cursor: pointer; }
.wz__orb {
  position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  color: var(--gold-2); font-size: 1.5rem;
  animation: orbIn .85s var(--ease) both;
}
.wz__crest-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 18px hsla(42, 85%, 65%, 0.35));
}
.wz__crest-ring { transform-origin: 70px 70px; }
.wz__crest-ring--1 { animation: spin 24s linear infinite; }
.wz__crest-ring--2 { animation: spin 16s linear infinite reverse; }
.wz__orb > span { position: relative; z-index: 2; display: inline-block; animation: float 3.5s ease-in-out infinite; }
.wz__orb--err {
  width: 84px; height: 84px;
  background: radial-gradient(circle at 35% 30%, hsl(8, 70%, 80%), hsl(5, 50%, 48%) 60%, hsl(0, 45%, 26%));
  color: var(--wz-ink); box-shadow: 0 0 40px hsla(5, 70%, 55%, .4);
}
.wz__orb--err span { animation: none; font-family: var(--f-display); font-size: 2.2rem; }
.wz__intro .wz__orb { width: 104px; height: 104px; margin-bottom: 10px; }
@keyframes orbIn { from { transform: scale(.5) rotate(-45deg); opacity: 0; } }

.wz__react-bubble {
  padding: 24px 30px;
  border-radius: 20px;
  background: hsla(32, 18%, 13%, 0.82);
  border: 1px solid hsla(42, 75%, 70%, 0.32);
  box-shadow: 0 28px 60px -30px hsla(0, 0%, 0%, 0.75);
  max-width: 540px;
}
.wz__react-text {
  font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 3.3vw, 2.35rem);
  line-height: 1.24; color: var(--wz-cream); min-height: 2.4em;
}
.wz__continue {
  display: inline-flex; gap: 10px; align-items: center; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--wz-sand); animation: fadeUp .5s var(--ease); transition: color .3s;
}
.wz__continue svg { width: 14px; height: 14px; }
.wz__continue:hover { color: var(--gold-2); }
.wz__timer { width: 140px; height: 2px; border-radius: 2px; background: hsla(40, 30%, 90%, .12); overflow: hidden; }
.wz__timer span { display: block; height: 100%; background: var(--gold-2); transform-origin: left; transform: scaleX(0); }
.wz__timer.is-running span { animation: wzTimer var(--t, 2600ms) linear forwards; }
@keyframes wzTimer { to { transform: scaleX(1); } }

/* ---------- Intro Cards ---------- */
.wz__intro { display: grid; justify-items: center; }
.wz__perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 600px;
  margin: 26px 0 12px;
}
.wz__perks li {
  padding: 14px 12px;
  border-radius: 12px;
  background: hsla(32, 18%, 14%, 0.68);
  border: 1px solid hsla(42, 65%, 70%, 0.22);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--wz-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wz__perks li span {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-2);
  letter-spacing: 0;
}
.wz__perks li:hover {
  border-color: var(--gold-2);
  background: hsla(38, 30%, 18%, 0.8);
}
.wz__note { margin: 24px auto 0; font-size: .78rem; color: hsla(40, 20%, 85%, .55); max-width: 50ch; }
.wz__note strong { color: var(--gold-2); font-weight: 400; }

/* ---------- Creazione account ---------- */
.wz__creating { display: grid; justify-items: center; gap: 34px; }
.wz__loader { position: relative; width: 110px; height: 110px; }
.wz__loader i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid transparent; border-top-color: var(--gold-2); animation: spin 1.6s var(--ease) infinite; }
.wz__loader i:nth-child(2) { inset: 14px; border-top-color: var(--gold); animation-duration: 2.2s; animation-direction: reverse; }
.wz__loader i:nth-child(3) { inset: 28px; border-top-color: hsl(350, 40%, 72%); animation-duration: 2.8s; }
.wz__loader::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-2); font-size: 1.4rem; animation: float 2s ease-in-out infinite; }
.wz__creating p { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Fine: tessera + coriandoli ---------- */
.wz__done { display: grid; justify-items: center; }
.wz__mcard {
  width: min(100%, 390px); margin: 32px auto 0; text-align: left; border: 1px solid hsla(38, 52%, 52%, .42);
  animation: cardIn 1.3s var(--ease) .35s both;
}
.wz__mcard .mcard__row { gap: 10px; }
@keyframes cardIn { from { opacity: 0; transform: perspective(900px) rotateX(45deg) translateY(50px) scale(.9); } }
.wz__done .btn { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .wz { min-height: 580px; margin-bottom: 70px; padding: 20px 16px; border-radius: 18px; }
  .wz::after { inset: 7px; border-radius: 12px; }
  .wz__dots { display: none; }
  .wz__top { grid-template-columns: 1fr 1fr; }
  .wz__perks { grid-template-columns: 1fr; gap: 10px; }
  .wz__perks li { flex-direction: row; justify-content: center; gap: 12px; padding: 11px 16px; }
  .wz__duel-pair { grid-template-columns: 1fr; gap: 12px; }
  .wz__field--pw input { padding-inline: 0 68px; text-align: left; }
  .wz__swatch { width: 72px; padding: 10px 6px; }
  .wz__mcard { padding: 22px; }
  .wz__bubble { padding: 9px 14px 9px 10px; }
  .wz__bubble-txt { font-size: 0.98rem; }
}
