:root {
    --magenta: #a31558;
    --magenta-dark: #831044;
    --ink: #5e5e5e;
    --line: #e3e3e3;
    --soft: #f7f7f7;
    --white: #fff;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; min-width: 320px; background: var(--white); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }
.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 980px; min-height: 78px; margin: 0 auto; padding: 0 28px; border-bottom: 1px solid #eee; }
.brand { display: flex; align-items: center; gap: 12px; color: #777; font-size: .95rem; font-weight: 700; letter-spacing: .12em; }
.brand-smiley { display: inline-grid; place-items: center; width: 34px; height: 34px; font-size: 1.8rem; line-height: 1; }
.header-label { color: #999; font-size: .82rem; }
.page-shell { width: min(100% - 40px, 760px); margin: 0 auto; padding: 68px 0 46px; }
.hero { margin-bottom: 36px; }
.eyebrow { margin: 0 0 12px; color: var(--magenta); font-size: .84rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 16px; color: var(--magenta); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 300; line-height: 1.1; }
h2 { color: var(--magenta); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 300; line-height: 1.25; }
.intro { max-width: 590px; margin-bottom: 0; color: #777; font-size: 1.15rem; line-height: 1.6; }
.quiz-card { padding: clamp(25px, 5vw, 48px); border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 35px rgba(70, 45, 60, .08); }
.question-meta, .progress-label { display: flex; justify-content: space-between; gap: 16px; color: #888; font-size: .86rem; font-weight: 700; }
.question-meta { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.question-title { margin: 30px 0 26px; }
fieldset { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.answer-option { display: flex; align-items: center; gap: 15px; min-height: 62px; margin: 11px 0; padding: 13px 16px; border: 1px solid var(--line); color: #555; cursor: pointer; font-size: 1rem; line-height: 1.35; transition: border-color .2s, background .2s, color .2s; }
.answer-option:hover, .answer-option:has(input:focus-visible) { border-color: var(--magenta); background: #fff8fb; }
.answer-option:has(input:checked) { border-color: var(--magenta); background: #fbf0f6; color: var(--magenta-dark); }
.answer-option input { position: absolute; opacity: 0; }
.answer-letter { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 50%; background: #f0f0f0; color: #777; font-size: .8rem; font-weight: 700; }
.answer-option:has(input:checked) .answer-letter { background: var(--magenta); color: var(--white); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-width: 160px; min-height: 52px; padding: 0 24px; border: 0; background: var(--magenta); color: var(--white); cursor: pointer; font: inherit; font-weight: 700; }
.button:hover { background: var(--magenta-dark); }
.button span { font-size: 1.5rem; line-height: 0; }
.progress-area { margin-top: 26px; }
.progress-label { margin-bottom: 9px; font-size: .78rem; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.progress-label strong { color: var(--magenta); font-weight: 700; }
.progress-track, .score-track { height: 8px; overflow: hidden; background: #eee; }
.progress-track span, .score-track span { display: block; height: 100%; background: var(--magenta); transition: width .25s ease; }
.result { max-width: 550px; }
.result h2 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3rem); }
.result-text, .message p { color: #777; line-height: 1.6; }
.score-track { margin: 28px 0 30px; }
.message code, footer code { padding: 2px 5px; background: var(--soft); }
footer { max-width: 760px; margin: 0 auto; padding: 0 0 30px; color: #999; font-size: .8rem; text-align: right; }
@media (max-width: 600px) {
    .site-header { min-height: 68px; padding: 0 18px; }
    .header-label { display: none; }
    .page-shell { width: min(100% - 24px, 760px); padding-top: 40px; }
    .hero { margin-bottom: 28px; }
    .quiz-card { padding: 24px 18px; }
    .answer-option { min-height: 58px; }
    .button { width: 100%; }
    footer { padding: 0 12px 24px; }
}
