/* ============================================================
   CamelWorth — quiz flow, result page
   ============================================================ */

.quiz-shell { max-width: 720px; margin: 0 auto; }

/* Progress */
.quiz-progress { margin: 1.75rem 0 1.25rem; text-align: center; }
.quiz-progress-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.progress-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.progress-dots li {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}
.progress-dots li.done { background: var(--royal); }
.progress-dots li.current { background: var(--royal); transform: scale(1.5); }
.progress-bar {
  height: 8px;
  background: var(--line);
  border-radius: var(--radius-pill);
  margin-top: 0.8rem;
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--royal), #6a86ff);
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

/* Step card */
.quiz-step {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 380px;
}
.quiz-step-enter { animation: stepIn 0.32s ease; }
.quiz-step-enter-back { animation: stepInBack 0.32s ease; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: translateX(0); }
}
.quiz-q {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.quiz-q-sub { color: var(--ink-faint); font-size: 0.95rem; margin-bottom: 1.4rem; }

.option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  background: var(--page-bg);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  font-family: var(--font-body);
}
.option-btn:hover { border-color: var(--royal); background: var(--royal-soft); transform: translateY(-1px); }
.option-btn .opt-dot {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink-faint);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-btn:hover .opt-dot { border-color: var(--royal); background: var(--royal); box-shadow: inset 0 0 0 4px #fff; }
.option-emoji {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--pink-panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4rem; }
.quiz-back {
  background: none;
  border: 0;
  color: var(--ink-faint);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.6rem 0.4rem;
}
.quiz-back:hover { color: var(--royal); }

/* Calculating screen */
.calculating {
  text-align: center;
  padding: 3rem 1.5rem;
}
.calculating .caravan-walk { max-width: 320px; margin: 0 auto 1.5rem; }
.calculating p { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.2rem; }
.walk-anim { animation: walkBob 1.1s ease-in-out infinite; }
@keyframes walkBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Result ---------- */
.result-hero {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--royal);
  margin-bottom: 0.5rem;
}
.result-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.result-count small {
  display: block;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0;
  margin-top: 0.4rem;
}
.verdict-badge {
  display: inline-block;
  margin: 1.1rem 0 0.4rem;
  background: var(--pink-panel);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
}
.verdict-text { max-width: 34rem; margin: 0.75rem auto 0; }
.result-camel { max-width: 300px; margin: 1.25rem auto 0; }

.result-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti-camel {
  position: absolute;
  top: -60px;
  animation: confettiFall linear infinite;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(340deg); }
}

/* PNG card preview */
.result-card-preview {
  background: var(--pink-panel);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
}
.result-card-preview canvas {
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  margin: 0 auto 1rem;
}
