/* =====================================================================
   Field Guides Practice Hub - shared stylesheet
   Mobile-first, system-font stack, no external dependencies.
   Palette: ink navy #0a1a2f, white type, pale blue accents.
   ===================================================================== */

/* --- Reset & base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #0a1a2f;
  color: #e8eef5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  color: #ffffff;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); margin-bottom: 0.6rem; }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: #7ab8e8;
  text-decoration: none;
}
a:hover, a:focus {
  color: #a8d0f5;
  text-decoration: underline;
}

strong { color: #ffffff; font-weight: 600; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header / site nav --- */
.site-header {
  background-color: #060f1f;
  border-bottom: 1px solid #1a3050;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-logo {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7ab8e8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.875rem;
  color: #b0c8e0;
}
.site-nav a:hover { color: #ffffff; text-decoration: none; }
.site-nav a.active { color: #ffffff; border-bottom: 2px solid #7ab8e8; padding-bottom: 2px; }

/* --- Hero --- */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero .series-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7ab8e8;
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: #b0c8e0;
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

/* --- Book list --- */
.book-list {
  list-style: none;
  padding: 0;
  margin-bottom: 3rem;
}

.book-item {
  border: 1px solid #1a3050;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.15s ease;
}

.book-item:hover {
  border-color: #2d5080;
}

.book-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  background-color: #1a3050;
  color: #7ab8e8;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.book-info { flex: 1; }

.book-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.book-hook {
  font-size: 0.875rem;
  color: #8ca8c4;
  margin: 0;
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

.badge-live    { background-color: #0d4f1c; color: #5dd87b; }
.badge-ready   { background-color: #1a3a0f; color: #7bc44e; }
.badge-soon    { background-color: #1a2a3f; color: #6a9ab8; }

.book-link {
  font-size: 0.8rem;
  color: #7ab8e8;
}

/* --- CTA strip --- */
.cta-strip {
  background-color: #0d2240;
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-strip p { margin: 0; color: #b0c8e0; }

.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease;
}

.btn-primary {
  background-color: #1a5fa8;
  color: #ffffff;
}
.btn-primary:hover { background-color: #2272c3; text-decoration: none; color: #ffffff; }

.btn-outline {
  background-color: transparent;
  color: #7ab8e8;
  border: 1px solid #2d5080;
}
.btn-outline:hover { background-color: #1a3050; text-decoration: none; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid #1a3050;
  padding: 2rem 0;
  margin-top: 2rem;
}

.site-footer p {
  font-size: 0.8rem;
  color: #8ca8c4;
  text-align: center;
  margin-bottom: 0.4rem;
}

.site-footer a { color: #5a8ab8; }

/* --- Quiz page --- */
.quiz-shell {
  padding: 2.5rem 0 3rem;
}

.quiz-header {
  margin-bottom: 2rem;
  text-align: center;
}

.quiz-header .progress-line {
  font-size: 0.8rem;
  color: #6a9ab8;
  margin-bottom: 0.5rem;
}

.progress-bar-wrap {
  height: 4px;
  background-color: #1a3050;
  border-radius: 2px;
  margin: 0.5rem auto 0;
  max-width: 400px;
}

.progress-bar-fill {
  height: 100%;
  background-color: #1a5fa8;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.score-chip {
  display: inline-block;
  font-size: 0.8rem;
  color: #7ab8e8;
  background-color: #0d2240;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-top: 0.5rem;
}

.question-card {
  background-color: #0d2240;
  border: 1px solid #1a3050;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.question-meta {
  font-size: 0.75rem;
  color: #8ca8c4;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
}

.question-stem {
  font-size: 1.05rem;
  color: #e8eef5;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.options-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.option-btn {
  width: 100%;
  text-align: left;
  background-color: #0a1a2f;
  border: 1px solid #1a3050;
  border-radius: 5px;
  padding: 0.8rem 1rem;
  color: #c8dcea;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.option-btn:hover:not([disabled]) {
  border-color: #2d5080;
  background-color: #0f2540;
  color: #ffffff;
}

.option-btn[disabled] { cursor: default; }

.option-letter {
  flex-shrink: 0;
  font-weight: 700;
  color: #8ca8c4;
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.option-btn.correct {
  border-color: #5dd87b;
  background-color: #0a2e14;
  color: #ffffff;
}
.option-btn.correct .option-letter { color: #5dd87b; }

.option-btn.wrong {
  border-color: #e05555;
  background-color: #2e0a0a;
  color: #ffffff;
}
.option-btn.wrong .option-letter { color: #e05555; }

.option-btn.missed {
  border-color: #5dd87b;
  background-color: #0a2010;
  opacity: 0.6;
}

/* --- Feedback panel --- */
.feedback-panel {
  background-color: #060f1f;
  border: 1px solid #1a3050;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  display: none;
}

.feedback-panel.visible { display: block; }

.feedback-panel .verdict {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.verdict-correct { color: #5dd87b; }
.verdict-wrong   { color: #e05555; }

.feedback-panel .explanation {
  font-size: 0.9rem;
  color: #b0c8e0;
  margin-bottom: 0.75rem;
}

.feedback-panel .wrong-explain {
  font-size: 0.85rem;
  color: #8ca8c4;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid #2d5080;
}

.feedback-panel .memory-hook {
  font-size: 0.85rem;
  color: #7ab8e8;
  font-style: italic;
}

.next-btn-wrap {
  text-align: right;
  margin-top: 1rem;
}

/* --- End screen --- */
.end-screen {
  background-color: #0d2240;
  border: 1px solid #1a3050;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.end-screen .score-display {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #7ab8e8;
  margin: 0.5rem 0;
}

.end-screen .score-label {
  font-size: 0.85rem;
  color: #6a9ab8;
  margin-bottom: 1.5rem;
}

.recommendation-card {
  background-color: #060f1f;
  border: 1px solid #1a3050;
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1.5rem auto;
  max-width: 520px;
  text-align: left;
}

.recommendation-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a9ab8;
  margin-bottom: 0.5rem;
}

.recommendation-card p {
  font-size: 0.9rem;
  color: #b0c8e0;
  margin: 0;
}

.end-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* --- Errata page --- */
.errata-shell {
  padding: 2.5rem 0 3rem;
}

.errata-intro {
  background-color: #0d2240;
  border-left: 4px solid #1a5fa8;
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.errata-intro p { color: #b0c8e0; margin-bottom: 0; }

.errata-book-list {
  list-style: none;
  padding: 0;
}

.errata-book-item {
  border-bottom: 1px solid #1a3050;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.errata-book-item:last-child { border-bottom: none; }

.errata-book-title {
  font-size: 0.95rem;
  color: #e8eef5;
}

.errata-status {
  font-size: 0.75rem;
  color: #8ca8c4;
  font-style: italic;
  white-space: nowrap;
}

/* --- Quiz setup screen --- */
.setup-group {
  border: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.setup-group legend {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a9ab8;
  margin-bottom: 0.6rem;
  padding: 0;
}

.setup-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #8ca8c4;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background-color: #0a1a2f;
  border: 1px solid #1a3050;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: #b0c8e0;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.chip:hover {
  border-color: #2d5080;
  color: #ffffff;
}

.chip-active {
  background-color: #1a5fa8;
  border-color: #1a5fa8;
  color: #ffffff;
}
.chip-active:hover {
  background-color: #2272c3;
  border-color: #2272c3;
}

.setup-start {
  margin-top: 2rem;
  border-top: 1px solid #1a3050;
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.setup-summary {
  margin: 0;
  font-size: 0.85rem;
  color: #8ca8c4;
}

#start-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- Quiz topbar (in-session) --- */
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

/* --- Distractor breakdown (practice-mode feedback) --- */
.distractor-breakdown {
  margin: 0.5rem 0 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #14283f;
}

.distractor-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a9ab8;
  margin-bottom: 0.6rem;
}

#distractor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.distractor-item {
  display: flex;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: #8ca8c4;
  line-height: 1.5;
}

.distractor-item.picked {
  color: #d0b08a;
}

.distractor-letter {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.75rem;
  color: #8ca8c4;
  width: 1.1rem;
  text-align: center;
  padding-top: 0.05rem;
}

.distractor-item.picked .distractor-letter { color: #e0a85a; }

.distractor-text em { color: #e0a85a; font-style: normal; font-weight: 600; }

/* --- Learn reference link --- */
.feedback-panel .learn-ref {
  font-size: 0.78rem;
  color: #8ca8c4;
  margin-top: 0.75rem;
  word-break: break-word;
}

/* --- Hub: search/filter toolbar --- */
.hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hub-search {
  background-color: #0a1a2f;
  border: 1px solid #1a3050;
  border-radius: 5px;
  color: #e8eef5;
  font-size: 0.875rem;
  font-family: inherit;
  padding: 0.5rem 0.9rem;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.hub-search::placeholder { color: #8ca8c4; }

.hub-search:focus {
  outline: none;
  border-color: #2d5080;
  background-color: #0f2540;
}

/* --- Hub: per-exam card book list --- */
.card-books {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-books li {
  font-size: 0.82rem;
  color: #b0c8e0;
  line-height: 1.5;
}

.card-book-kind {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a9ab8;
  background-color: #0a1a2f;
  border: 1px solid #1a3050;
  border-radius: 3px;
  padding: 0.05rem 0.4rem;
  margin-right: 0.4rem;
  white-space: nowrap;
}

/* --- Best score line (setup + end screens) --- */
.best-line {
  font-size: 0.82rem;
  color: #7ab8e8;
  margin: 0.4rem 0 0;
}

/* --- End-screen cross-sell card: the buy path, lifted above the muted
       "Where to focus" card so it reads as the primary next step --- */
.cross-sell-card {
  border-color: #2f6bb0;
  background-color: #0a1d38;
}

.cross-sell-card h3 { color: #7ab8e8; }

.cross-sell-card p {
  font-size: 0.9rem;
  color: #b0c8e0;
  margin-bottom: 0.75rem;
}

.cross-sell-card .rec-lead { margin-bottom: 0.75rem; }

.rec-guides {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rec-guides li {
  font-size: 0.9rem;
  color: #b0c8e0;
  line-height: 1.5;
}

.rec-miss {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e0a85a;
  background-color: #2a1f0d;
  border: 1px solid #4a3a1a;
  border-radius: 3px;
  padding: 0.05rem 0.4rem;
  margin-right: 0.4rem;
  white-space: nowrap;
}

/* --- Email capture placeholder (MailerLite embed goes here) --- */
.email-capture {
  background-color: #0d2240;
  border: 1px dashed #2d5080;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.email-capture h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.email-capture p {
  color: #b0c8e0;
  font-size: 0.9rem;
  max-width: 560px;
  margin: 0 auto 1rem;
}

.email-capture-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.email-capture-form input[type="email"] {
  background-color: #0a1a2f;
  border: 1px solid #1a3050;
  border-radius: 4px;
  color: #8ca8c4;
  font-size: 0.875rem;
  font-family: inherit;
  padding: 0.55rem 0.9rem;
  min-width: 220px;
}

.email-capture-form input[disabled],
.email-capture-form button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.email-capture-note {
  font-size: 0.75rem;
  color: #8ca8c4;
  margin-bottom: 0;
}

/* End-screen variant: sits inside the end card, so it takes tighter spacing
   and an inset tone instead of the homepage section margins. */
.email-capture-end {
  background-color: #0a1a2f;
  max-width: 520px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
}

.email-capture-lead {
  font-weight: 600;
  color: #e8eef5;
}

/* --- Responsive tweaks --- */
@media (max-width: 600px) {
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .question-card {
    padding: 1.25rem 1.25rem;
  }

  .book-item {
    flex-direction: column;
  }

  .setup-start {
    flex-direction: column;
    align-items: stretch;
  }

  .setup-start .btn { width: 100%; }

  .hub-search {
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .email-capture { padding: 1.25rem 1.25rem; }
}

/* ---- Static study pages (site/study/*.html, generated by build-pages.py) ---- */
.q-count { color: #8ca8c4; font-weight: 400; font-size: 0.85em; }
.guide-ref { color: #8ca8c4; font-size: 0.9rem; margin: -0.25rem 0 1.25rem; }
.q-item {
  border: 1px solid #1e3350;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.015);
}
.q-stem { font-size: 1.05rem; line-height: 1.4; margin: 0 0 0.75rem; }
.q-answer {
  border-left: 3px solid #3fae72;
  padding-left: 0.75rem;
  margin: 0 0 0.75rem;
}
.q-answer strong { color: #4cc98a; }
.q-explain { margin: 0 0 0.75rem; }
.q-why { font-weight: 600; color: #8ca8c4; margin: 0 0 0.35rem; }
.q-distractors { margin: 0 0 0.75rem; padding-left: 1.1rem; }
.q-distractors li { margin-bottom: 0.35rem; }
.q-hook { color: #b9cbe0; margin: 0 0 0.5rem; }
.q-learn { font-size: 0.85rem; margin: 0; word-break: break-word; }
.q-learn a { color: #6ea8dd; }

/* ---- Exam-simulation mode (quiz.html) ---- */
.exam-controls { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.option-btn.picked { border-color: #6ea8dd; background: rgba(110, 168, 221, 0.12); }
#exam-review { margin-top: 2rem; }
#exam-review .q-item { margin-bottom: 1rem; }

/* =====================================================================
   Quiz v2 - timer, peek, profiles, resume, history, retake, score ring
   (2026-07-11 feature pass; palette: navy #0a1a2f, blue #1a5fa8/#2272c3,
   ok #5dd87b, warn #e0b455, miss #e05555, muted #8ca8c4)
   ===================================================================== */

.profile-line {
  font-size: 0.85rem;
  color: #8ca8c4;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.profile-line strong { color: #e8eef5; }

.btn-ghost {
  background: transparent;
  border: 1px dashed rgba(140, 168, 196, 0.45);
  color: #8ca8c4;
}
.btn-ghost:hover { border-color: #7ab8e8; color: #a9cbe8; text-decoration: none; }

.resume-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(26, 95, 168, 0.22), rgba(26, 95, 168, 0.08));
  border: 1px solid rgba(122, 184, 232, 0.35);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}
.resume-banner p { margin: 0; font-size: 0.92rem; color: #d7e5f2; }
.resume-actions { display: flex; gap: 0.5rem; }

.history-card { margin-top: 1.25rem; }
.history-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a9ab8;
  margin-bottom: 0.6rem;
}
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li {
  display: grid;
  grid-template-columns: 3rem 7.5rem 1fr 3.2rem 3.2rem;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: #a9c0d6;
  border-bottom: 1px solid rgba(140, 168, 196, 0.12);
}
.history-list li:last-child { border-bottom: 0; }
.hist-date { color: #6a9ab8; }
.hist-mode { color: #8ca8c4; }
.hist-pct { font-weight: 700; color: #e0b455; text-align: right; }
.hist-pct.good { color: #5dd87b; }
.hist-time { color: #6a9ab8; text-align: right; font-variant-numeric: tabular-nums; }

.timer-chip {
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #7ab8e8;
  background: rgba(26, 95, 168, 0.18);
  border: 1px solid rgba(122, 184, 232, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-left: auto;
  margin-right: 0.5rem;
}
.timer-chip.timer-low {
  color: #ffd9d9;
  background: rgba(224, 85, 85, 0.22);
  border-color: rgba(224, 85, 85, 0.55);
  animation: timerPulse 1s ease-in-out infinite;
}
@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.peek-wrap { margin: 0.75rem 0 0; text-align: right; }

.verdict-peek { color: #e0b455; }

/* Score ring (end screen) */
.score-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 0.75rem auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(rgba(140, 168, 196, 0.18) 0deg, rgba(140, 168, 196, 0.18) 360deg);
}
.score-ring-inner {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #0d2138;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}
.end-stats {
  font-size: 0.85rem;
  color: #8ca8c4;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

/* End review */
.review-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.review-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  margin-right: 0.45rem;
  vertical-align: 0.12em;
}
.badge-miss  { background: rgba(224, 85, 85, 0.18);  color: #e08a8a; border: 1px solid rgba(224, 85, 85, 0.4); }
.badge-peek  { background: rgba(224, 180, 85, 0.16); color: #e0b455; border: 1px solid rgba(224, 180, 85, 0.4); }
.badge-right { background: rgba(93, 216, 123, 0.14); color: #5dd87b; border: 1px solid rgba(93, 216, 123, 0.35); }
#exam-review .q-item { border-left: 3px solid rgba(140, 168, 196, 0.25); padding-left: 0.9rem; }
#exam-review .review-missed { border-left-color: rgba(224, 85, 85, 0.55); }
#exam-review .review-peeked { border-left-color: rgba(224, 180, 85, 0.55); }
#exam-review .review-right  { border-left-color: rgba(93, 216, 123, 0.45); }
.q-your-pick { color: #e08a8a; font-size: 0.85rem; margin: 0 0 0.5rem; }

/* Micro-polish: motion + depth (respects reduced-motion) */
.chip, .option-btn, .btn { transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; }
.option-btn:not([disabled]):hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35); }
.chip:not(.chip-active):hover { transform: translateY(-1px); }
.progress-bar-fill { background: linear-gradient(90deg, #1a5fa8, #2e86d4); transition: width 0.35s ease; }
.feedback-panel { opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.feedback-panel.visible { opacity: 1; transform: none; }
.btn:focus-visible, .chip:focus-visible, .option-btn:focus-visible {
  outline: 2px solid #7ab8e8;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .chip, .option-btn, .btn, .progress-bar-fill, .feedback-panel { transition: none; }
  .timer-chip.timer-low { animation: none; }
}
@media (max-width: 480px) {
  .history-list li { grid-template-columns: 2.6rem 5.5rem 1fr 2.8rem; }
  .hist-time { display: none; }
  .score-ring { width: 108px; height: 108px; }
  .score-ring-inner { width: 86px; height: 86px; font-size: 1.35rem; }
}
