:root {
  color-scheme: light;
  --ink: #2d2926;
  --muted: #625b57;
  --paper: #fffdf9;
  --cream: #fff6e9;
  --pink: #f9dfe3;
  --coral: #e95f4f;
  --coral-dark: #bd3f34;
  --blue: #39709b;
  --green: #dff2df;
  --green-dark: #27633d;
  --gentle: #fff0dd;
  --border: #eaded5;
  --shadow: 0 20px 55px rgba(91, 58, 42, .13);
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(249, 223, 227, .9), transparent 32%),
    radial-gradient(circle at 90% 88%, rgba(255, 224, 180, .55), transparent 30%),
    var(--cream);
  font-family: Inter, ui-rounded, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button, a { font: inherit; }

.quiz-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.quiz-card {
  width: min(100%, 680px);
  min-height: min(780px, calc(100svh - 36px));
  padding: clamp(24px, 5vw, 52px);
  background: rgba(255, 253, 249, .96);
  border: 1px solid rgba(234, 222, 213, .9);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(36px, 7vw, 64px);
  font-weight: 750;
  letter-spacing: .01em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

.screen[hidden] { display: none; }

.eyebrow, .lesson-label {
  margin: 0 0 8px;
  color: var(--coral-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.18; }

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.15rem, 8vw, 4.2rem);
  letter-spacing: -.045em;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(1.65rem, 5vw, 2.55rem);
  letter-spacing: -.025em;
}

h3 { margin: 0 0 10px; font-size: 1.3rem; }
p { margin: 0 0 18px; }
.lead { font-size: 1.16rem; font-weight: 650; }

.reassurance-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 26px 0 30px;
  list-style: none;
}

.reassurance-list li::before {
  content: "✓";
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green);
  font-size: .82rem;
  font-weight: 900;
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .answer-button:focus-visible, .text-link:focus-visible { outline: 4px solid rgba(57, 112, 155, .35); outline-offset: 3px; }
.button-primary { color: #fff; background: var(--coral); box-shadow: 0 9px 20px rgba(233, 95, 79, .25); }
.button-primary:hover { background: var(--coral-dark); }
.button-secondary { margin-top: 14px; color: var(--coral-dark); background: transparent; border-color: var(--pink); }
.fine-print { margin-top: 12px; color: var(--muted); font-size: .88rem; text-align: center; }

.progress-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.progress-track { width: 100%; height: 9px; margin: 8px 0 34px; overflow: hidden; border-radius: 99px; background: #f1e7e0; }
.progress-fill { width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #f3a25d); transition: width .25s ease; }

.question-context {
  margin: -6px 0 22px;
  padding: 16px;
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: #f2f7fb;
  color: var(--ink);
  font-size: 1.25rem;
}

.question-context small { display: block; margin-top: 5px; color: var(--blue); font-size: .86rem; line-height: 1.5; }
.answer-options { display: grid; gap: 12px; }
.answer-button {
  display: grid;
  grid-template-columns: 38px 1fr;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.answer-button:hover:not(:disabled) { border-color: var(--coral); background: #fff8f7; }
.answer-button:disabled { cursor: default; opacity: 1; }
.answer-button.correct { border-color: #77b58a; background: var(--green); }
.answer-button.incorrect { border-color: #e8a67f; background: var(--gentle); }
.choice-letter { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #f4ece7; font-size: .9rem; font-weight: 850; }

.feedback { margin: 22px 0 16px; padding: 17px 18px; border-radius: 16px; }
.feedback p { margin: 0; }
.feedback-title { margin-bottom: 5px !important; font-size: 1.08rem; font-weight: 850; }
.feedback-correct { background: var(--green); color: var(--green-dark); }
.feedback-gentle { background: var(--gentle); color: #794b2d; }
.celebration { margin-bottom: 10px; font-size: 3rem; }
.score-line { display: inline-block; padding: 6px 13px; border-radius: 99px; color: var(--blue); background: #edf5fa; font-size: .9rem; font-weight: 800; }
.next-step { margin: 30px 0 18px; padding: 24px; border-radius: 20px; background: linear-gradient(145deg, #fff0f0, #fff7e9); }
.text-link { display: block; margin-top: 22px; color: var(--blue); font-weight: 750; text-align: center; text-underline-offset: 4px; }

@media (max-width: 520px) {
  .quiz-shell { padding: 0; place-items: stretch; }
  .quiz-card { min-height: 100svh; padding: 24px 20px 34px; border: 0; border-radius: 0; box-shadow: none; }
  .brand { margin-bottom: 34px; }
  h1 { font-size: clamp(2.05rem, 11vw, 3rem); }
  .next-step { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
