/* ── Quiz overlay styles ── */
/* Extracted from quiz.atomic.community and scoped under .quiz-overlay */

:root {
  --quiz-ink: #08008a;
  --quiz-ink-soft: #342d98;
  --quiz-muted: #6e6a87;
  --quiz-line: rgba(8, 0, 138, 0.25);
  --quiz-wash: #ebe9ff;
  --quiz-pink: #fde8fb;
  --quiz-surface: rgba(239, 238, 255, 0.86);
  --quiz-surface-strong: #ecebff;
  --quiz-white: #fffaff;
  --quiz-shadow: 0 4px 24px rgba(8, 0, 138, 0.18), 0 0 0 1px rgba(8, 0, 138, 0.08);
  --quiz-pink-shadow: 0 0 20px rgba(244, 91, 139, 0.18), 0 0 42px rgba(244, 91, 139, 0.1);
  --quiz-headline-font: "Archivo Black", Inter, ui-sans-serif, system-ui, sans-serif;
  --quiz-mobile-shell: min(500px, calc(100vw - 40px));
  --quiz-unit-width: var(--quiz-mobile-shell);
  --quiz-unit-height: calc(100dvh - 40px);
}

/* ── Hub fade when quiz is open ── */

body.quiz-open .container {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

body.quiz-open .promo-pill {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.container {
  transition: opacity 300ms ease;
}

/* ── Quiz overlay ── */

.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: transparent;
  pointer-events: none;
  opacity: 0;
}

.quiz-overlay.is-active {
  pointer-events: auto;
  opacity: 1;
}

.quiz-overlay.is-leaving {
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms ease;
}

/* ── Close button ── */

.quiz-close {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(8, 0, 138, 0.15);
  background: var(--quiz-surface-strong);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--quiz-ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 150ms ease, border-color 150ms ease;
  box-shadow: 0 2px 8px rgba(8, 0, 138, 0.1);
}

.quiz-close:hover {
  background: rgba(255, 250, 255, 1);
  border-color: rgba(8, 0, 138, 0.3);
}

/* ── Quiz card (same dimensions as original quiz page) ── */

.quiz-card {
  position: relative;
  width: var(--quiz-unit-width);
  height: var(--quiz-unit-height);
  min-height: 0;
  overflow: visible;
  border: none;
  border-radius: 18px;
  background: var(--quiz-surface-strong);
  box-shadow: var(--quiz-shadow);
  margin: 20px;
  transform: translateX(calc(100vw + 100px));
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-overlay.is-active .quiz-card {
  transform: translateX(0);
}

.quiz-overlay.is-leaving .quiz-card {
  transform: translateX(calc(100vw + 100px));
}

/* ── Start screen ── */

.quiz-start-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  transition: opacity 300ms ease;
}

.quiz-overlay:not(.is-active) .quiz-start-screen {
  visibility: hidden;
}

.quiz-zone-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2.5rem;
  text-align: center;
}

.quiz-start-header {
  transition: opacity 300ms ease;
}

.quiz-start-header.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.quiz-start-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--quiz-ink);
}

.quiz-start-header p {
  margin: 0;
  color: var(--quiz-muted);
  font-size: clamp(0.92rem, 1.8vw, 1.15rem);
}

.quiz-celebration-header {
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
  text-align: center;
}

.quiz-celebration-header.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.quiz-celebration-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--quiz-ink);
}

.quiz-celebration-header p {
  margin: 0;
  color: var(--quiz-muted);
  font-size: clamp(0.92rem, 1.8vw, 1.15rem);
}

/* ── Orbit ring ── */

.quiz-orbit-ring {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-start-orbit {
  position: relative;
  width: clamp(140px, 36vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(8, 0, 138, 0.12);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 55px rgba(8, 0, 138, 0.04);
  cursor: pointer;
  animation: quizOrbitPulse 2.6s ease-in-out infinite;
  transition: width 520ms cubic-bezier(0.2, 0.9, 0.22, 1), border-color 520ms ease, background 520ms ease, box-shadow 520ms ease;
}

.quiz-orbit-ring.is-celebrating .quiz-start-orbit {
  border: 4px solid rgba(8, 0, 138, 0.65);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(235, 232, 255, 0.2));
  box-shadow: 0 0 40px rgba(8, 0, 138, 0.12), 0 0 80px rgba(8, 0, 138, 0.06), inset 0 0 30px rgba(255, 255, 255, 0.1);
  animation: quizOrbitCelebrate 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-start-core {
  position: absolute;
  inset: 25%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 255, 0.58);
  color: #77728c;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: 0 15px 25px rgba(54, 49, 101, 0.12);
  transition: opacity 200ms ease 100ms, transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-orbit-ring.is-celebrating .quiz-start-orbit .quiz-start-core {
  opacity: 0;
  transform: scale(0.3);
}

.quiz-start-orbit:hover .quiz-start-core {
  color: var(--quiz-ink);
  transform: scale(1.04);
}

.quiz-streak-inside {
  position: absolute;
  inset: 25%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.3);
  filter: blur(6px);
  transition: opacity 300ms ease 150ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms, filter 300ms ease 150ms;
}

.quiz-orbit-ring.is-celebrating .quiz-start-orbit .quiz-streak-inside {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.quiz-streak-inside strong {
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  line-height: 0.9;
}

.quiz-streak-inside > span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

@keyframes quizOrbitPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(8, 0, 138, 0); }
  50% { transform: scale(1.035); box-shadow: 0 0 44px rgba(8, 0, 138, 0.08); }
}

@keyframes quizOrbitCelebrate {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ── Week strip ── */

.quiz-week-strip {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.quiz-day {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  color: rgba(8, 0, 138, 0.45);
  font-weight: 650;
  font-size: 0.85rem;
}

.quiz-day span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--quiz-white);
  display: block;
  transition: background 360ms ease, box-shadow 460ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-signed .quiz-day span {
  background: transparent;
  border: 2px solid rgba(8, 0, 138, 0.18);
  transform: scale(1);
  opacity: 1;
  animation: quizDotPop 300ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.quiz-signed .quiz-day:nth-child(1) span { animation-delay: 0ms; }
.quiz-signed .quiz-day:nth-child(2) span { animation-delay: 60ms; }
.quiz-signed .quiz-day:nth-child(3) span { animation-delay: 120ms; }
.quiz-signed .quiz-day:nth-child(4) span { animation-delay: 180ms; }
.quiz-signed .quiz-day:nth-child(5) span { animation-delay: 240ms; }
.quiz-signed .quiz-day:nth-child(6) span { animation-delay: 300ms; }
.quiz-signed .quiz-day:nth-child(7) span { animation-delay: 360ms; }

@keyframes quizDotPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.quiz-signed .quiz-day.active span {
  background: var(--quiz-ink);
  border-color: var(--quiz-ink);
  box-shadow: 0 0 15px rgba(8, 0, 138, 0.46);
  transform: scale(1);
  opacity: 1;
}

/* ── Zone bottom ── */

.quiz-zone-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1.5rem;
  text-align: center;
  overflow: hidden;
}

.quiz-return-user {
  text-align: center;
  max-width: var(--quiz-mobile-shell);
  padding: 0.75rem 0;
  transition: opacity 300ms ease;
}

.quiz-return-user.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.quiz-return-link {
  background: none;
  border: none;
  color: var(--quiz-muted);
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.quiz-return-link:hover {
  color: var(--quiz-ink);
}

.quiz-return-form {
  display: none;
  gap: 6px;
  margin-top: 12px;
  justify-content: center;
}

.quiz-return-form.is-visible {
  display: flex;
  animation: quizFadeIn 300ms ease forwards;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-return-form input {
  width: 220px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(8, 0, 138, 0.18);
  border-radius: 10px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
  color: var(--quiz-ink);
  outline: none;
}

.quiz-return-form input:focus {
  border-color: rgba(8, 0, 138, 0.4);
  background: rgba(255, 255, 255, 0.7);
}

.quiz-return-save {
  padding: 0.65rem 1.3rem;
  border: none;
  border-radius: 10px;
  background: var(--quiz-ink);
  color: white;
  font-size: 0.9rem;
  font-weight: 520;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.quiz-return-save:hover {
  opacity: 0.88;
}

.quiz-return-status {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--quiz-ink-soft);
}

/* ── Celebration bottom ── */

.quiz-celebration-bottom {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 500ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 400ms ease;
}

.quiz-celebration-bottom.is-visible {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
}

.quiz-celebration-bottom .quiz-celebration-copy,
.quiz-celebration-bottom .quiz-signup-form,
.quiz-celebration-bottom .quiz-form-note {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease 200ms, transform 400ms ease 200ms;
}

.quiz-celebration-bottom.is-visible .quiz-celebration-copy,
.quiz-celebration-bottom.is-visible .quiz-signup-form,
.quiz-celebration-bottom.is-visible .quiz-form-note {
  opacity: 1;
  transform: translateY(0);
}

.quiz-celebration-copy {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--quiz-ink);
  text-align: center;
}

/* ── Signup form ── */

.quiz-signup-form {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.quiz-email-row {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr 130px;
  border: 1px solid rgba(8, 0, 138, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(54, 49, 101, 0.12);
}

.quiz-email-row input {
  border: 0;
  min-width: 0;
  background: transparent;
  padding: 0 1.7rem;
  color: var(--quiz-ink);
  font-size: 1.05rem;
  outline: none;
}

.quiz-email-row button {
  border: 0;
  background: var(--quiz-ink);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.quiz-form-note {
  min-height: 0;
  margin: 0;
  color: #05734e;
  font-size: 0.8rem;
}

.quiz-form-note.is-visible {
  margin-top: 0.75rem;
  text-align: center;
}

.quiz-form-note.welcome-message {
  color: var(--quiz-ink, #05007A);
  font-size: 1rem;
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── Video bubble ── */

.quiz-video-bubble {
  position: absolute;
  right: max(-115px, -11vw);
  bottom: -35px;
  width: clamp(112px, 13vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d9ddcb;
  box-shadow: 0 12px 22px rgba(15, 14, 48, 0.18);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.quiz-video-bubble.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.quiz-welcome-video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
  background: #d9ddcb;
}

.quiz-sound-toggle {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(8, 0, 138, 0.15);
  border-radius: 50%;
  background: rgba(255, 250, 255, 0.9);
  color: var(--quiz-ink-soft);
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.quiz-sound-toggle:hover {
  background: rgba(255, 250, 255, 1);
  border-color: rgba(8, 0, 138, 0.3);
}

.quiz-sound-toggle.is-on {
  background: var(--quiz-ink);
  border-color: var(--quiz-ink);
  color: white;
}

/* ── Offer pills ── */

.quiz-offer-pills {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.25rem 1.5rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.quiz-offer-pills[hidden] {
  display: none;
}

.quiz-offer-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(8, 0, 138, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(8, 0, 138, 0.06);
  text-decoration: none;
  color: var(--quiz-ink);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.quiz-offer-pills:not([hidden]) .quiz-offer-pill:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.quiz-offer-pills:not([hidden]) .quiz-offer-pill:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.quiz-offer-pills:not([hidden]) .quiz-offer-pill:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }

.quiz-offer-pill:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(8, 0, 138, 0.3);
  box-shadow: 0 8px 25px rgba(8, 0, 138, 0.1);
  transform: translateY(-2px);
}

.quiz-offer-pill i {
  font-size: 1.25rem;
  color: var(--quiz-ink-soft);
  flex-shrink: 0;
}

.quiz-offer-pill span {
  flex: 1;
}

.quiz-offer-pill .pill-arrow {
  font-size: 1rem;
  color: var(--quiz-ink-soft);
  transition: transform 150ms ease;
}

.quiz-offer-pill:hover .pill-arrow {
  transform: translateX(3px);
}

.quiz-offer-pill:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.8), rgba(255, 255, 255, 0.75));
  border-color: rgba(244, 91, 139, 0.15);
}

.quiz-offer-pill:nth-child(1):hover {
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(255, 255, 255, 0.92));
  border-color: rgba(244, 91, 139, 0.3);
}

.quiz-offer-pill:nth-child(2) {
  background: linear-gradient(135deg, rgba(235, 232, 255, 0.8), rgba(255, 255, 255, 0.75));
  border-color: rgba(138, 100, 255, 0.15);
}

.quiz-offer-pill:nth-child(2):hover {
  background: linear-gradient(135deg, rgba(235, 232, 255, 0.95), rgba(255, 255, 255, 0.92));
  border-color: rgba(138, 100, 255, 0.3);
}

.quiz-offer-pill:nth-child(3) {
  background: linear-gradient(135deg, rgba(230, 245, 255, 0.8), rgba(255, 255, 255, 0.75));
  border-color: rgba(60, 140, 255, 0.15);
}

.quiz-offer-pill:nth-child(3):hover {
  background: linear-gradient(135deg, rgba(230, 245, 255, 0.95), rgba(255, 255, 255, 0.92));
  border-color: rgba(60, 140, 255, 0.3);
}

/* ── Quiz questions ── */

.quiz-questions {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  transition: opacity 250ms ease;
}

.quiz-questions.is-visible {
  visibility: visible;
  opacity: 1;
}

.quiz-progress-bubble {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(8, 0, 138, 0.15);
  border-radius: 50%;
  background: var(--quiz-surface-strong);
  display: grid;
  place-items: center;
  z-index: 3;
  font-family: var(--quiz-headline-font);
  font-size: 1.05rem;
  font-weight: 400;
  box-shadow: 0 2px 8px rgba(8, 0, 138, 0.1);
}

.quiz-media-window {
  position: relative;
  height: 49%;
  overflow: hidden;
  border-bottom: 1.5px solid var(--quiz-line);
  border-radius: 20px 20px 0 0;
  contain: layout paint;
  background: #d9ddf1;
}

.quiz-image-rail {
  position: absolute;
  inset: 0;
  height: 100%;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.24, 1);
  will-change: transform;
}

.quiz-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  background: #d9ddf1;
  transform: translate3d(0, var(--offset), 0);
}

.quiz-question-panel {
  height: 51%;
  display: grid;
  grid-template-rows: 1fr auto 2.8rem;
  align-items: center;
  justify-items: center;
  padding: clamp(1.5rem, 4vw, 3.4rem) clamp(0.8rem, 2.6vw, 2rem) 2.35rem;
}

.quiz-question-text {
  position: relative;
  max-width: 640px;
  text-align: center;
  font-size: clamp(0.88rem, 1.6vw, 1.15rem);
  line-height: 1.44;
  color: var(--quiz-ink);
  font-weight: 400;
  letter-spacing: 0.006em;
}

.quiz-reaction-emoji {
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.quiz-clap-gif {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.15rem);
  display: block;
  width: clamp(38px, 7.5vw, 54px);
  height: clamp(38px, 7.5vw, 54px);
  margin: 0;
  object-fit: contain;
  border-radius: 10px;
  transform-origin: 50% 70%;
  animation: quizClapPop 680ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.quiz-stress-emoji {
  margin-left: 0.22rem;
  font-size: 1.05em;
  transform-origin: 50% 70%;
  animation: quizStressWobble 640ms ease both;
}

.quiz-question-text strong {
  position: relative;
  font-weight: 760;
}

.quiz-question-text strong::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: var(--quiz-ink);
  opacity: 0.15;
  border-radius: 2px;
}

.quiz-gap-mark {
  display: inline-block;
  min-width: 3em;
  border-bottom: 2.5px dashed var(--quiz-ink-soft);
  opacity: 0.4;
  margin: 0 0.15em;
  vertical-align: baseline;
}

.quiz-reveal-phrase {
  position: relative;
  display: inline;
  font-weight: 760;
  font-size: inherit;
  line-height: inherit;
  opacity: 0;
  filter: blur(3px);
  animation: quizPhraseReveal 360ms ease 60ms forwards;
}

.quiz-reveal-phrase::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: var(--quiz-ink);
  opacity: 0.15;
  border-radius: 2px;
}

@keyframes quizPhraseReveal {
  to { opacity: 1; filter: blur(0); }
}

@keyframes quizClapPop {
  0% { opacity: 0; filter: blur(4px) grayscale(1) sepia(1) saturate(4) hue-rotate(245deg); transform: translateX(-50%) translateY(6px) scale(0.72) rotate(-8deg); }
  42% { opacity: 1; filter: blur(0) grayscale(1) sepia(1) saturate(4) hue-rotate(245deg); transform: translateX(-50%) translateY(0) scale(1.12) rotate(8deg); }
  68% { transform: translateX(-50%) translateY(0) scale(0.98) rotate(-4deg); }
  100% { opacity: 1; filter: blur(0) grayscale(1) sepia(1) saturate(4) hue-rotate(245deg); transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); }
}

@keyframes quizStressWobble {
  0% { opacity: 0; transform: translateY(3px) scale(0.85) rotate(-6deg); }
  30% { opacity: 1; transform: translateY(0) scale(1.08) rotate(6deg); }
  58% { transform: rotate(-4deg); }
  82% { transform: rotate(3deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

/* ── Answer buttons ── */

.quiz-answer-row {
  display: flex;
  justify-content: center;
  gap: clamp(0.55rem, 1.9vw, 1.1rem);
  flex-wrap: nowrap;
  width: 100%;
}

.quiz-answer-button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 190px;
  min-height: 44px;
  padding: 0.5rem 0.75rem 0.55rem;
  border: 1.25px solid rgba(8, 0, 138, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--quiz-ink);
  font-size: clamp(0.82rem, 1.7vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.006em;
  cursor: pointer;
  box-shadow: var(--quiz-pink-shadow);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quiz-answer-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--quiz-line);
  box-shadow: 0 0 24px rgba(244, 91, 139, 0.24), 0 0 48px rgba(244, 91, 139, 0.13);
}

.quiz-answer-button:disabled {
  cursor: default;
}

.quiz-answer-button.is-correct {
  background: #f2fffa;
  border-color: #05875b;
  color: #03704b;
}

.quiz-answer-button.is-wrong {
  background: #fff3f7;
  border-color: #cf2f68;
  color: #a51c4e;
}

.quiz-got-it-button {
  min-width: min(200px, 70vw);
  min-height: 44px;
  padding: 0.52rem 1.25rem 0.6rem;
  border: 1.15px solid rgba(8, 0, 138, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--quiz-ink);
  font-size: clamp(0.85rem, 1.6vw, 0.98rem);
  font-weight: 520;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--quiz-pink-shadow);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quiz-got-it-button:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(8, 0, 138, 0.64);
  box-shadow: 0 0 24px rgba(244, 91, 139, 0.24), 0 0 48px rgba(244, 91, 139, 0.13);
}

/* ── Micro feedback ── */

.quiz-micro-feedback {
  margin: 0;
  min-height: 1.4em;
  color: var(--quiz-ink);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-family: var(--quiz-headline-font);
  font-weight: 400;
  opacity: 1;
  transition: opacity 360ms ease, filter 360ms ease, transform 360ms ease;
}

.quiz-micro-feedback.is-fading {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(4px);
}

.quiz-buzz {
  animation: quizBuzz 260ms ease;
}

@keyframes quizBuzz {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px) rotate(-0.35deg); }
  55% { transform: translateX(8px) rotate(0.35deg); }
  78% { transform: translateX(-4px); }
}

/* ── Quiz intro ── */

.quiz-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  transition: opacity 300ms ease;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.quiz-intro.is-hidden {
  display: none;
}

.quiz-intro .date-pill {
  margin: 0;
  font-size: 0.85rem;
  color: var(--quiz-muted);
}

.quiz-intro h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--quiz-ink);
}

.quiz-intro .intro-tagline {
  margin: 0;
  color: var(--quiz-muted);
  font-size: clamp(0.92rem, 1.8vw, 1.15rem);
}

.quiz-primary-action {
  width: min(390px, 88%);
  min-height: 50px;
  padding: 0.65rem 1.35rem 0.72rem;
  border: 1.2px solid rgba(8, 0, 138, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--quiz-ink);
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  font-weight: 520;
  letter-spacing: 0.004em;
  cursor: pointer;
  box-shadow: var(--quiz-pink-shadow);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.quiz-primary-action:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(8, 0, 138, 0.62);
  box-shadow: 0 0 24px rgba(244, 91, 139, 0.22), 0 0 44px rgba(244, 91, 139, 0.12);
  transform: translateY(-1px);
}

/* ── Celebration hint ── */

.quiz-celebration-hint {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--quiz-muted);
  text-align: center;
  opacity: 0;
  transition: opacity 420ms ease;
}

.quiz-celebration-hint.is-visible {
  opacity: 1;
}

/* ── Mobile responsive ── */

@media (max-width: 720px) {
  .quiz-start-screen {
    padding: 5.1rem 12px 2.4rem;
    justify-items: center;
  }

  .quiz-start-header h1,
  .quiz-celebration-header h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .quiz-start-header p,
  .quiz-celebration-header p {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
  }

  .quiz-week-strip {
    gap: 1rem;
    margin-top: 1.3rem;
  }

  .quiz-day span {
    width: 16px;
    height: 16px;
  }

  .quiz-day {
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(8, 0, 138, 0.66);
    font-weight: 600;
  }

  .quiz-media-window {
    height: 44%;
    border-radius: 17px 17px 0 0;
  }

  .quiz-question-panel {
    height: 56%;
    grid-template-rows: 1fr auto 2.3rem;
    padding: clamp(1.1rem, 4.5vw, 2.1rem) 0.65rem 1.65rem;
  }

  .quiz-question-text {
    font-size: clamp(0.85rem, 4.2vw, 1.05rem);
    line-height: 1.42;
    max-width: 96%;
  }

  .quiz-answer-row {
    width: 100%;
    gap: 0.52rem;
  }

  .quiz-answer-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding-inline: 0.4rem;
    font-size: clamp(0.78rem, 3.8vw, 0.95rem);
  }

  .quiz-video-bubble {
    right: -58px;
    bottom: -42px;
    width: clamp(104px, 30vw, 132px);
    z-index: 2;
  }

  .quiz-sound-toggle {
    width: 44px;
    height: 44px;
    bottom: -12px;
    font-size: 1rem;
  }

  .quiz-primary-action {
    width: min(330px, 92%);
    min-height: 54px;
  }

  .quiz-success {
    padding: 0 0.25rem;
    gap: 0.4rem;
  }

  .quiz-success-heading {
    font-size: 1.15rem;
  }

  .quiz-success-sublabel {
    font-size: 0.8rem;
  }

  .quiz-success-note {
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-card {
    transition: none;
  }
}


/* Schedule / Explore button */
.quiz-schedule-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 24px;
  background: #10058f;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 160ms ease;
  margin-top: 8px;
}

.quiz-schedule-btn:hover {
  opacity: 0.9;
}

/* Quiz success state (post-email) */

.quiz-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  width: 100%;
}

.quiz-success-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--quiz-ink);
  text-align: center;
}

.quiz-success-sublabel {
  margin: 0;
  font-size: 0.85rem;
  color: var(--quiz-muted);
  text-align: center;
}

.quiz-success-tickets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0.25rem 0;
}

.quiz-success-note {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--quiz-muted);
  text-align: center;
  line-height: 1.4;
}