/* ============================================================
   QUIZ — 2026
   ============================================================ */

.quiz-hero {
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255,210,63,.12), transparent 55%),
    var(--ink);
  color: #fff;
  text-align: center;
  padding-top: calc(76px + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.quiz-hero .eyebrow { color: var(--gold); }
.quiz-hero .display { color: #fff; }
.quiz-hero__sub {
  margin: 1.2rem auto 0;
  max-width: 46ch;
  color: rgba(255,255,255,.72);
  font-size: 1.1rem;
  line-height: 1.6;
}
.quiz-meta {
  display: flex;
  gap: 1.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.quiz-meta span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.65);
}
.quiz-meta i { color: var(--gold); }

.quiz-embed-section { background: var(--paper); padding-block: clamp(3rem, 7vw, 5.5rem); }
.quiz-embed-container {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--gut);
}
.quiz-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tally-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  text-align: center;
  min-height: 420px;
  padding: 3rem 2rem;
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-faint);
  background: var(--paper-warm);
}
.tally-placeholder i { font-size: 2.4rem; color: var(--gold-deep); }
.tally-placeholder p { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin: 0; }
.tally-placeholder small { font-size: .85rem; max-width: 42ch; }

/* ---- Live quiz engine ---- */
.quiz-progress {
  position: sticky;
  top: 76px;
  z-index: 5;
  background: var(--paper);
  padding: 1rem 0 1.3rem;
}
.quiz-progress__bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 999px;
  transition: width .4s var(--ease);
}
.quiz-progress__count {
  display: block;
  margin-top: .55rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}

.quiz-card { padding: clamp(1.6rem, 4vw, 2.8rem); }

.q-card { animation: qfade .35s var(--ease); }
@keyframes qfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-card { animation: none; } }

.q-number {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin: 0 0 .8rem;
}
.q-text {
  font-family: var(--serif); font-weight: 600; line-height: 1.12;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem); color: var(--ink); margin: 0 0 1.8rem;
}
.q-options { display: flex; flex-direction: column; gap: .8rem; margin: 0 0 2rem; }
.q-option {
  display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left;
  padding: 1.05rem 1.2rem; background: #fff; border: 2px solid var(--line);
  border-radius: 10px; cursor: pointer; font-family: var(--sans);
  font-size: 1.02rem; line-height: 1.4; color: var(--ink-90);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.q-option:hover { border-color: var(--ink); transform: translateY(-1px); }
.q-option.selected { border-color: var(--gold-deep); background: rgba(255, 210, 63, .14); }
.q-letter {
  flex: 0 0 auto; display: grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.q-option.selected .q-letter { background: var(--gold-deep); color: var(--gold-ink); }

.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.q-nav .spacer { flex: 1; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

.email-gate { text-align: center; max-width: 30rem; margin-inline: auto; }
.email-gate__icon {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; margin: 0 auto 1.2rem; font-size: 1.25rem;
}
.email-gate h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6rem; }
.email-gate__sub { color: var(--ink-soft); margin: 0 0 1.6rem; }
.email-gate__row { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.email-gate__input {
  flex: 1 1 13rem; padding: 1rem 1.1rem; border: 2px solid var(--line);
  border-radius: 8px; font-family: var(--sans); font-size: 1rem; color: var(--ink);
}
.email-gate__input:focus { outline: none; border-color: var(--ink); }
.email-gate__err { color: var(--red); font-size: .9rem; margin: .85rem 0 0; min-height: 1em; }
.email-gate__ok { color: #2e7d32; font-size: .9rem; font-weight: 600; margin: .85rem 0 0; }
.email-gate__note { font-size: .8rem; color: var(--ink-faint); margin: 1.4rem 0 0; line-height: 1.55; }
.email-gate .btn .spinner {
  width: 1em; height: 1em; border: 2px solid rgba(26, 20, 0, .3); border-top-color: var(--gold-ink);
  border-radius: 50%; display: none; animation: spin .7s linear infinite;
}
.email-gate .btn.loading .spinner { display: inline-block; }
.email-gate .btn.loading .btn-text { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

.kbd-hint { margin: 1.5rem 0 0; font-size: .8rem; color: var(--ink-faint); text-align: center; }
.kbd-hint kbd {
  font-family: var(--sans); background: var(--paper-warm); border: 1px solid var(--line);
  border-radius: 4px; padding: .05rem .4rem; font-size: .78rem; color: var(--ink-soft);
}

@media (max-width: 860px) {
  .quiz-hero { padding-top: calc(66px + clamp(2rem, 8vw, 4rem)); }
  .quiz-progress { top: 66px; }
}
@media (max-width: 600px) {
  .q-text { font-size: 1.35rem; }
  .q-option { font-size: .96rem; padding: .9rem 1rem; }
  .q-nav .btn { padding: .85rem 1.2rem; font-size: .95rem; }
}
