.quiz { margin: 2rem 0; padding: clamp(1rem, 3vw, 2rem); background: #faf7f0; border: 1px solid #e4d8bd; border-radius: 16px; color: #451329; }
.quiz h3 { margin-top: 0; }
.quiz fieldset { min-width: 0; margin: 1.5rem 0; padding: 1rem; border: 1px solid #dacdb4; border-radius: 10px; }
.quiz legend { padding: 0 .4rem; font-weight: 700; }
.question label { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem; margin: .65rem 0; background: white; border: 1px solid #ded7cf; border-radius: 8px; cursor: pointer; line-height: 1.65; }
.question label:has(input:checked) { border-color: #741d40; background: #fff5f8; }
.question input { flex: 0 0 auto; margin-top: .45rem; accent-color: #741d40; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.actions button, .quiz .actions a, .retry { padding: .8rem 1.1rem; border: 1px solid #641a39; border-radius: 8px; background: #641a39; color: white; font: inherit; cursor: pointer; }
.quiz .actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; }
.quiz .actions a:hover { background: #4d112c; }
.quiz .actions a + a { background: white; color: #641a39; }
.quiz .actions a + a:hover { background: #f6edf1; }
.actions button + button { background: white; color: #641a39; }
.quiz button:disabled { opacity: .6; cursor: wait; }
.quiz :is(a, button, input):focus-visible { outline: 3px solid #b28b21; outline-offset: 3px; }
.feedback { padding: 1rem; background: #f0e9d8; border-radius: 8px; }
.score { font-weight: 700; font-size: 1.2rem; }
.quiz small { display: block; margin-top: 1rem; }
@media (max-width: 540px) { .quiz .actions a { width: 100%; } }
@media print { .actions { display: none; } }
