:root {
  --page-gray: #e4e1dc;
  --card-gray: #f2f1ef;
  --white: #fff;
  --charcoal: #2b2b2b;
  --black: #111;
  --yellow: #fae34e;
  --yellow-hover: #f2d934;
  --gold-edge: #d9be3b;
  --rust: #a8513a;
  --muted: #68645f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page-gray); color: var(--charcoal); font-family: Lato, Arial, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
.quiz-page { min-height: 100vh; padding: 28px 16px 72px; }
.quiz-card { width: min(880px, 100%); margin: 0 auto; padding: 28px 48px 54px; border-radius: 20px; background: var(--card-gray); }
.quiz-header { overflow: hidden; border: 3px solid var(--charcoal); border-radius: 16px; background: var(--white); text-align: center; }
.quiz-header h1 { margin: 26px 15px 20px; color: var(--black); font-family: Roboto, Arial, sans-serif; font-size: clamp(28px, 5vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.question-panel { padding: 18px 24px 23px; background: var(--white); }
.question-count { margin: 0 0 7px; color: var(--muted); font-family: Oswald, Impact, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.question-panel h2 { margin: 0; color: var(--charcoal); font-family: Oswald, Impact, sans-serif; font-size: clamp(27px, 4.3vw, 38px); font-style: italic; font-weight: 700; line-height: 1.1; }
.answer-area { min-height: 360px; padding: 36px 12px 0; }
.answer-list { display: grid; justify-items: center; gap: 35px; }
.answer-button { width: min(270px, 100%); min-height: 55px; padding: 9px 14px 11px; border: 0; border-bottom: 3px solid var(--gold-edge); border-radius: 3px; color: var(--black); background: var(--yellow); font-family: Oswald, Impact, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.05; text-align: center; text-transform: uppercase; cursor: pointer; transition: background 140ms ease, transform 140ms ease, border-color 140ms ease; }
.answer-button:hover, .answer-button:focus-visible { background: var(--yellow-hover); transform: translateY(-1px); }
.answer-button:active { transform: translateY(2px); border-bottom-width: 1px; }
.answer-button:focus-visible, .thank-you-button:focus-visible, .back-link:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.answer-list.is-changing { animation: question-out 140ms ease both; }
.quiz-status { min-height: 22px; margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; }
.thank-you { padding: 38px 20px 20px; text-align: center; }
.thank-you[hidden] { display: none; }
.thank-you-kicker { margin: 0 0 6px; color: var(--rust); font-family: Oswald, Impact, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .16em; }
.thank-you h2 { margin: 0 0 12px; color: var(--charcoal); font-family: Oswald, Impact, sans-serif; font-size: clamp(34px, 5vw, 48px); font-style: italic; }
.thank-you p { max-width: 530px; margin: 0 auto 24px; font-size: 20px; line-height: 1.45; }
.thank-you-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 56px; padding: 12px 22px; border-bottom: 3px solid var(--gold-edge); border-radius: 3px; color: var(--black); background: var(--yellow); font-family: Oswald, Impact, sans-serif; font-size: 22px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.thank-you small { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; }
.back-link { display: block; width: fit-content; margin: 22px auto 0; color: var(--rust); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.how-section { width: min(1120px, 100%); margin: 0 auto; padding: 54px 22px 22px; background: var(--white); text-align: center; }
.how-section > h2 { margin: 0; color: #333; font-size: clamp(38px, 6vw, 52px); font-weight: 700; }
.section-rule { width: 50%; height: 1px; margin: 16px auto 38px; background: var(--charcoal); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; align-items: center; }
.step { display: flex; align-items: center; gap: 17px; text-align: left; }
.step-number { display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 66px; border-radius: 48% 52% 55% 45% / 56% 45% 55% 44%; color: var(--white); background: var(--rust); font-family: Caveat, cursive; font-size: 45px; font-weight: 700; line-height: 1; transform: rotate(-5deg); }
.step:nth-child(2) .step-number { border-radius: 44% 56% 48% 52% / 48% 55% 45% 52%; transform: rotate(4deg); }
.step:nth-child(3) .step-number { transform: rotate(-2deg); }
.step h3 { margin: 0; color: #333; font-size: clamp(19px, 2.2vw, 28px); font-weight: 700; line-height: 1.18; }
.step u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
@keyframes question-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(5px); } }
@media (max-width: 720px) {
  .quiz-page { padding: 12px 10px 42px; }
  .quiz-card { padding: 18px 16px 38px; border-radius: 16px; }
  .quiz-header h1 { margin: 22px 8px 17px; font-size: clamp(22px, 6.4vw, 36px); }
  .question-panel { padding: 16px 12px 20px; }
  .answer-area { min-height: 350px; padding: 34px 4px 0; }
  .answer-list { gap: 24px; }
  .answer-button { width: min(320px, 100%); min-height: 55px; font-size: 23px; }
  .how-section { padding: 38px 20px 26px; }
  .section-rule { width: 72%; margin-bottom: 30px; }
  .steps { grid-template-columns: 1fr; gap: 24px; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 390px) {
  .quiz-header h1 { font-size: 21px; }
  .question-panel h2 { font-size: 26px; }
  .answer-button { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
