.quiz-page {
  --paper: #fff;
  --ink: #151515;
  --muted: #55524e;
  --purple: #6a3668;
  --purple-light: #7a3278;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", Arial, sans-serif;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
.quiz-header {
  width: min(1312px, calc(100% - 40px));
  margin: 32px auto 0;
}
.quiz-header .nav a {
  text-transform: uppercase;
}
.quiz-main {
  width: min(1280px, calc(100% - 40px));
  margin: 24px auto 72px;
}
.quiz-panel {
  width: min(760px, 100%);
  margin: auto;
  padding: 34px 0 52px;
}
.quiz-back {
  display: inline-block;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.quiz-back:hover {
  color: var(--purple);
}
.quiz-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.quiz-progress {
  height: 4px;
  margin-bottom: 38px;
  background: #d9ded4;
}
.quiz-progress span {
  display: block;
  height: 100%;
  background: var(--purple);
  transition: width 0.3s ease;
}
.quiz-step {
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.quiz-question {
  max-width: 700px;
  margin: 12px 0 26px;
  color: var(--ink);
  font: 500 clamp(32px, 4.3vw, 48px)/1.1 var(--serif);
  letter-spacing: -0.5px;
  white-space: normal;
}
.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #dbe0d7;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: 400 16px/1.5 var(--sans);
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.18s;
}
.quiz-option:hover {
  transform: translateX(3px);
  border-color: var(--purple-light);
}
.quiz-letter {
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #d4dbd1;
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.quiz-option.correct {
  border-color: #7f9b83;
  background: #edf4ed;
}
.quiz-option.wrong {
  border-color: #d29b91;
  background: #fbefed;
}
.quiz-option.correct .quiz-letter {
  border-color: #55795d;
  background: #55795d;
  color: white;
}
.quiz-feedback {
  min-height: 0;
  margin-top: 0;
  padding: 0;
  color: #365044;
  font-size: 14px;
  line-height: 1.65;
}
.quiz-feedback:not(:empty) {
  margin-top: 16px;
  padding: 16px 18px;
  background: #edf4ed;
}
.quiz-feedback.is-wrong:not(:empty) {
  background: #f6eae6;
  color: #78473e;
}
.quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.quiz-primary,
.quiz-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--purple);
  border-radius: 4px;
  font: 700 14px/1.2 var(--sans);
  text-decoration: none;
  transition:
    transform 0.18s,
    background 0.18s,
    color 0.18s;
}
.quiz-primary {
  background: var(--purple);
  color: white;
}
.quiz-primary:hover {
  transform: translateY(-2px);
  background: #572b55;
}
.quiz-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.quiz-secondary {
  background: transparent;
  color: #43574d;
}
.quiz-secondary:hover:not(:disabled) {
  background: #f4eff3;
}
.quiz-secondary:disabled {
  opacity: 0.4;
  cursor: default;
}
.quiz-result {
  text-align: center;
  padding-top: 42px;
}
.quiz-result > .quiz-back {
  display: block;
  text-align: left;
}
.quiz-score {
  margin: 18px 0 8px;
  color: var(--purple);
  font: 500 76px/0.95 var(--serif);
  letter-spacing: -5px;
}
.quiz-score span {
  color: rgba(85, 82, 78, 0.6);
  font-size: 30px;
  letter-spacing: 0;
}
.quiz-perfect {
  margin: 0 0 10px;
  color: var(--purple);
  font-weight: 600;
}
.quiz-result h1 {
  margin: 12px auto;
  color: var(--ink);
  font: 500 clamp(34px, 5vw, 48px)/1.1 var(--serif);
  letter-spacing: -0.6px;
  white-space: normal;
}
.quiz-result-copy {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.quiz-explanations {
  margin-top: 46px;
  border-top: 1px solid #d9ded4;
  text-align: left;
}
.quiz-explanations > .quiz-step {
  margin: 28px 0 8px;
}
.quiz-explanation {
  padding: 19px 0;
  border-bottom: 1px solid #d9ded4;
}
.quiz-explanation h2 {
  margin: 0;
  font: 600 18px/1.35 var(--serif);
  color: var(--ink);
}
.quiz-explanation p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.quiz-closing {
  padding: 34px 20px 40px;
  border-top: 1px solid #d9ded4;
  text-align: center;
}
.quiz-closing h2 {
  margin: 0 0 8px;
  font: 600 28px/1.15 var(--serif);
  color: var(--ink);
}
.quiz-closing p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .quiz-header {
    margin: 24px auto 0;
  }
  .quiz-main {
    margin-top: 16px;
  }
  .quiz-panel {
    padding-top: 24px;
  }
}
@media (max-width: 600px) {
  .quiz-header {
    width: calc(100% - 40px);
    margin: 20px auto 0;
  }
  .quiz-main {
    width: calc(100% - 40px);
    margin-bottom: 42px;
  }
  .quiz-panel {
    padding: 20px 0 38px;
  }
  .quiz-back {
    margin-bottom: 26px;
  }
  .quiz-progress {
    margin-bottom: 30px;
  }
  .quiz-question {
    font-size: 36px;
  }
  .quiz-option {
    padding: 14px;
    font-size: 14px;
  }
  .quiz-controls {
    gap: 12px;
  }
  .quiz-primary,
  .quiz-secondary {
    padding: 10px 14px;
    font-size: 15px;
  }
  .quiz-score {
    font-size: 66px;
  }
  .quiz-closing h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-page * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
