/* welcome.css — the one-time first-run introduction (partials/welcome.php).
   Deliberately quieter than a mascot celebration: this is a greeting someone
   reads, not a reward they dismiss. Same accent tokens as the rest of the app. */

.wc-stage {
  position: fixed;
  inset: 0;
  z-index: 12000;                  /* above the mascot stage and every modal */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--card-bg, #fff);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.wc-stage.is-open { opacity: 1; }
.wc-stage.is-gone { opacity: 0; pointer-events: none; }

/* A soft wash so the turtle isn't floating on a flat sheet. */
.wc-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 34%, var(--accent-pale, rgba(124, 92, 191, 0.18)) 0%, transparent 64%);
  pointer-events: none;
}

.wc-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  min-height: min(560px, 84vh);
}

/* ── Slides ── */
.wc-slide {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wc-slide.is-current { display: flex; animation: wcIn 0.42s cubic-bezier(0.2, 0.8, 0.3, 1); }

@keyframes wcIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.wc-art {
  width: min(52vw, 210px);
  height: auto;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 14px 26px rgba(30, 16, 46, 0.16));
}

.wc-title {
  font-size: clamp(1.35rem, 5.5vw, 1.8rem);
  font-weight: 800;
  color: var(--plum);
  margin: 0 0 0.6rem;
  line-height: 1.2;
  text-wrap: balance;
}

.wc-body {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto 0.7rem;
  max-width: 23rem;
}

.wc-body:last-of-type { margin-bottom: 0; }

/* ── Footer: progress + actions ── */
.wc-foot {
  flex: none;
  padding-top: 1.5rem;
  padding-bottom: env(safe-area-inset-bottom);
}

.wc-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.wc-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: width 0.28s ease, background 0.28s ease;
}

.wc-dots i.is-on { width: 22px; border-radius: 999px; background: var(--accent); }

.wc-actions { display: flex; gap: 0.6rem; align-items: center; }
.wc-actions .btn { padding-top: 0.78rem; padding-bottom: 0.78rem; font-weight: 700; }
.wc-skip { flex: 0 0 auto; color: var(--text-muted); }
.wc-next { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .wc-stage { transition: none; }
  .wc-slide.is-current { animation: none; }
  .wc-dots i { transition: none; }
}
