/* Shared Practice Quiz UI (setup / play / results screens), used by every quiz page
   via <link rel="stylesheet" href="shared/quiz.css">. Pages add small overrides right
   after this include for their own accent color (category-checks.checked, quiz-option
   hover, quiz-result-score) and for their own quiz-visual content (svg/emoji/img/text),
   same pattern as shared/nav.css and shared/modal.css. */
.category-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.category-checks label {
  display: flex; align-items: center; gap: 6px;
  border: 2px solid #ccc; border-radius: 8px; padding: 9px 14px;
  font-weight: 700; font-size: 14px; cursor: pointer; user-select: none;
}
.category-checks input { display: none; }
.category-checks label.locked { opacity: .5; cursor: not-allowed; background: #f5f5f5; }

/* Stage-grouped checkboxes (shared/stage-gate.js) -- each group is its own
   "Stage N" heading followed by that stage's own .category-checks row. */
.quiz-stage-group { margin-bottom: 6px; }
.quiz-stage-group-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #999; margin: 0 0 6px;
}

.quiz-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.quiz-row select { padding: 8px 10px; border-radius: 8px; border: 2px solid #333; font-weight: 700; }

.quiz-progress { color: #666; font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.quiz-score { color: #666; font-weight: 700; margin-bottom: 14px; font-size: 14px; float: right; }
.quiz-visual { display: flex; justify-content: center; margin: 6px 0 14px; }
.quiz-question { font-size: 20px; font-weight: 700; text-align: center; margin: 0 0 18px; color: #222; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-option {
  padding: 16px; font-size: 16px; font-weight: 700; text-align: center;
  border-radius: 10px; border: 2px solid #ccc; background: #fafafa; cursor: pointer;
}
.quiz-option.correct { background: #c8e6c9; border-color: #2e7d32; color: #1b5e20; }
.quiz-option.wrong { background: #ffcdd2; border-color: #c62828; color: #b71c1c; }
.quiz-option.disabled { pointer-events: none; }
.quiz-next-wrap { text-align: center; margin-top: 20px; }
.quiz-result-emoji { font-size: 64px; line-height: 1; text-align: center; margin: 6px 0 0; }
.quiz-result-score { font-size: 40px; font-weight: 700; text-align: center; margin: 10px 0; }
.quiz-review-item {
  display: flex; justify-content: space-between; padding: 8px 10px;
  border-radius: 8px; margin-bottom: 6px; font-weight: 700; font-size: 14px;
}
.quiz-review-item.miss { background: #ffebee; color: #b71c1c; }
.quiz-review-item.hit { background: #e8f5e9; color: #1b5e20; }
.quiz-actions { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }

.quiz-feedback-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}
.quiz-feedback-overlay.show { display: flex; }
.quiz-feedback-emoji {
  font-size: 100px;
  line-height: 1;
  animation: quizFeedbackPop .5s ease;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}
@keyframes quizFeedbackPop {
  0% { transform: scale(.2) rotate(-12deg); opacity: 0; }
  55% { transform: scale(1.2) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
