/* ============================================================
   Educational Quiz — tool-specific styles
   ============================================================ */

.panel-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 0 0 0.7rem; }
.feedback { margin: 0.6rem 0 0; min-height: 1.4em; }

/* ---- Start screen ---- */
.eq-start { margin: 1rem 0; }
.eq-subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.7rem; }
.eq-subject-btn {
  font: inherit; cursor: pointer; text-align: left;
  border: 2px solid var(--line); border-radius: var(--r-md); padding: 0.7rem 0.8rem; background: #fff;
  transition: all 0.15s ease; display: grid; gap: 0.2rem;
}
.eq-subject-btn:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(2, 44, 40, 0.12); }
.eq-subject-btn .eq-subject-emoji { font-size: 1.6rem; }
.eq-subject-btn strong { font-size: 0.98rem; }
.eq-subject-btn span:last-child { font-size: 0.74rem; color: var(--muted); }
.eq-start-note { font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 0; }

/* ---- Quiz screen ---- */
.eq-quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin: 1rem 0 0.75rem; padding: 0.6rem 0.8rem; }
.eq-subject-tag { font-weight: 800; color: var(--brand-strong); background: var(--brand-softer); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.82rem; }
.eq-count { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.88rem; }
.eq-timer {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--brand); font-weight: 850; color: var(--brand-strong); font-variant-numeric: tabular-nums;
}
.eq-timer.warning { border-color: var(--bad); color: var(--bad); animation: eq-pulse 0.8s infinite; }
@keyframes eq-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.eq-question-panel { margin-bottom: 1rem; }
.eq-question { margin: 0 0 0.9rem; font-size: 1.25rem; line-height: 1.45; }
.eq-options { display: grid; gap: 0.5rem; }
.eq-option {
  font: inherit; font-size: 0.98rem; text-align: left; cursor: pointer;
  border: 2px solid var(--line); background: #fff; border-radius: var(--r-md); padding: 0.6rem 0.8rem;
  display: flex; gap: 0.6rem; align-items: baseline; transition: border-color 0.12s ease, background 0.12s ease;
}
.eq-option strong { color: var(--muted); font-variant-numeric: tabular-nums; }
.eq-option:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-softer); }
.eq-option:disabled { cursor: default; }
.eq-option.chosen-correct { border-color: var(--ok); background: #f0fdf4; }
.eq-option.chosen-wrong { border-color: var(--bad); background: #fef2f2; }
.eq-option.reveal-correct { border-color: var(--ok); }

/* ---- Results ---- */
.eq-results { text-align: center; padding: 2rem 1.5rem; margin: 1rem 0; }
.eq-results-emoji { font-size: 3.4rem; display: block; }
.eq-results-title { margin: 0.3rem 0; font-size: 1.5rem; }
.eq-results-score { font-size: 2.6rem; font-weight: 900; color: var(--brand-strong); margin: 0.2rem 0; font-variant-numeric: tabular-nums; }
.eq-results-remark { color: var(--muted); margin: 0 0 1rem; }
.eq-review { text-align: left; max-width: 720px; margin: 0 auto 1.2rem; padding: 0; list-style: none; display: grid; gap: 0.4rem; max-height: 340px; overflow-y: auto; }
.eq-review li { font-size: 0.84rem; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-sm); padding: 0.4rem 0.6rem; }
.eq-review li.ok { border-left-color: var(--ok); background: #f0fdf4; }
.eq-review li.bad { border-left-color: var(--bad); background: #fef2f2; }
.eq-results-foot { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
