.quiz-mode-card { border-left: 6px solid var(--epoch-color, var(--accent)); display: flex; flex-direction: column; gap: 4px; }
.quiz-mode-card .best { font-size: 0.85rem; color: var(--text-muted); }
.quiz-mode-card .best b { color: var(--success); }

.quiz-card { max-width: 680px; margin: 0 auto; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.quiz-question { font-family: var(--font-serif); font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; margin: 16px 0 20px; line-height: 1.3; }
.quiz-choices { display: grid; gap: 10px; }
.quiz-choice {
  text-align: left; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--bg-elev); cursor: pointer; font-size: 1rem; display: flex; gap: 12px; align-items: center;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-choice:hover:not(:disabled) { border-color: var(--accent); background: var(--bg-muted); }
.quiz-choice:disabled { cursor: default; }
.quiz-choice .key {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-muted); font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.quiz-choice.correct { border-color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.quiz-choice.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.quiz-feedback {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-muted);
  border-left: 5px solid var(--accent);
}
.quiz-feedback.ok { border-left-color: var(--success); }
.quiz-feedback.nok { border-left-color: var(--danger); }
.quiz-feedback b { display: block; margin-bottom: 4px; }
.quiz-actions { margin-top: 16px; display: flex; justify-content: flex-end; }

.quiz-result { text-align: center; }
.quiz-score { font-family: var(--font-serif); font-size: 3rem; font-weight: 700; line-height: 1; margin: 12px 0 4px; color: var(--accent); }
.quiz-percent { color: var(--text-muted); margin-bottom: 16px; }
.quiz-wrong-list { text-align: left; margin-top: 20px; }
.quiz-wrong-list li { margin-bottom: 10px; }
.quiz-wrong-list .q { font-weight: 600; }
.quiz-wrong-list .a { color: var(--text-muted); font-size: 0.92rem; }

.quiz-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 0.85rem; }
.badge.diff-1 { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.badge.diff-2 { background: color-mix(in srgb, #f59e0b 22%, transparent); color: #b45309; }
.badge.diff-3 { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.quiz-keyhint { font-size: 0.85rem; margin: 10px 0 0; }
@media (pointer: coarse) { .quiz-keyhint { display: none; } }
