:root {
  --ink: #20272d;
  --muted: #657078;
  --paper: #fffdf8;
  --canvas: #f0f4ee;
  --green: #15635a;
  --green-dark: #0d463f;
  --coral: #d96e59;
  --line: #dce3da;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 90% 0, #d7ebe1, transparent 31rem), var(--canvas); font-family: Arial, Helvetica, sans-serif; }
.shell { width: min(100% - 32px, 820px); margin: 0 auto; padding: 56px 0 80px; }
.brand { margin: 0 0 24px; }
.brand h1 { margin: 4px 0 8px; font-family: Georgia, serif; font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: -.05em; }
.brand h1 span { color: var(--coral); }
.brand p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .13em; margin: 0 0 8px; }
.card { padding: clamp(24px, 5vw, 42px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 15px 35px #2c423315; }
.card h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.8rem; }
.muted { color: var(--muted); line-height: 1.5; }
form { margin-top: 28px; }
label { display: block; margin: 18px 0 7px; font-size: .9rem; font-weight: 700; }
input { width: 100%; padding: 13px; color: var(--ink); border: 1px solid #bec9bf; border-radius: 8px; font: inherit; }
input:focus { outline: 3px solid #b9ddd0; border-color: var(--green); }
button { min-height: 46px; padding: 11px 20px; margin-top: 24px; cursor: pointer; color: white; background: var(--green); border: 0; border-radius: 8px; font: inherit; font-weight: 700; }
button:hover { background: var(--green-dark); }
button:disabled { cursor: wait; opacity: .6; }
.hidden { display: none; }
.quiz-topline { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.quiz-topline .muted { margin: 0; font-size: .88rem; }
.progress-track { height: 6px; overflow: hidden; margin: 12px 0 30px; background: #e4eae4; border-radius: 20px; }
#progress-bar { width: 0; height: 100%; background: var(--coral); transition: width .2s ease; }
.question { padding: 26px 0; border-top: 1px solid var(--line); }
.question:first-child { border-top: 0; padding-top: 0; }
.question h3 { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.5; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; line-height: 1.4; }
.option:has(input:checked) { border-color: var(--green); background: #edf7f1; }
.option input { width: auto; margin: 3px 0 0; accent-color: var(--green); }
.submit-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); }
.submit-row p { margin: 0; font-size: .88rem; }
.submit-row button { margin: 0; }
.score-panel { display: flex; gap: 18px; align-items: baseline; margin: 24px 0 8px; }
.score-panel strong { color: var(--green); font-family: Georgia, serif; font-size: clamp(3rem, 13vw, 5rem); letter-spacing: -.07em; }
.score-panel span { color: var(--coral); font-size: 1.2rem; font-weight: 700; }
.review-list { margin-top: 30px; }
.review { padding: 20px 0; border-top: 1px solid var(--line); }
.review h3 { margin: 0 0 10px; font-size: 1rem; line-height: 1.45; }
.review p { margin: 6px 0; font-size: .92rem; line-height: 1.5; }
.correct { color: #147142; font-weight: 700; }
.incorrect { color: #ad3d31; font-weight: 700; }
.notice { min-height: 1.3em; margin: 18px 0; color: #a53026; font-weight: 700; }
@media (max-width: 560px) { .shell { width: min(100% - 24px, 820px); padding-top: 32px; } .card { padding: 24px 18px; } .submit-row { display: block; } .submit-row button { width: 100%; margin-top: 16px; } }
