/* ==========================================================================
   animations-fx.css — Sacred Heritage Design Overhaul, Special FX & Quiz UI
   Ramayana: Exposing the Colonial Conspiracy & Restoring the Original Truth
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Keyframe Animations & Sacred Glows
   -------------------------------------------------------------------------- */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.25), 0 0 32px rgba(194, 65, 12, 0.14);
  }
  50% {
    box-shadow: 0 0 28px rgba(217, 119, 6, 0.5), 0 0 58px rgba(194, 65, 12, 0.28);
  }
}

@keyframes pulseDotBeat {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 8px rgba(217, 119, 6, 0);
  }
}

@keyframes shimmerSweep {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes auraRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.08); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

@keyframes revealSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes popCorrect {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   2. Global Sacred Heritage Visual Redesign (Applies Across All 13 Pages)
   -------------------------------------------------------------------------- */
.site-logo .logo-text {
  background: linear-gradient(135deg, #7C2D12 0%, #B45309 50%, #D97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .site-logo .logo-text {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 55%, #FB923C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Article Hero & Page Headers across Investigation, About, Methodology, Timeline, Sources, Glossary, Quiz */
.article-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 119, 6, 0.18) 0%, rgba(194, 65, 12, 0.08) 50%, transparent 80%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deepest) 100%) !important;
  border-bottom: 1px solid var(--border-gold) !important;
}

html[data-theme="dark"] .article-hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.2) 0%, rgba(234, 88, 12, 0.1) 50%, transparent 80%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deepest) 100%) !important;
}

/* Ornate Sacred Styling for Cards Across All Pages */
.revelation-card,
.method-card,
.tradition-item,
.evidence-card,
.source-card,
.glossary-entry,
.sanskrit-verse-card {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-default) !important;
  border-top: 3px solid var(--accent) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.revelation-card:hover,
.method-card:hover,
.tradition-item:hover,
.evidence-card:hover,
.source-card:hover,
.glossary-entry:hover {
  border-color: var(--border-gold) !important;
  box-shadow: var(--shadow-lg), var(--shadow-gold) !important;
}

/* Section Overlines & Headings */
.section-overline,
.article-kanda,
.card-label {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.28);
  color: var(--accent) !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] .section-overline,
html[data-theme="dark"] .article-kanda,
html[data-theme="dark"] .card-label {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FBBF24 !important;
}

/* Primary Buttons with Royal Bhagwa-Gold Gradient */
.btn-primary {
  background: linear-gradient(135deg, #D97706 0%, #B45309 50%, #9A3412 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  box-shadow: 0 4px 18px rgba(180, 83, 9, 0.3) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(180, 83, 9, 0.45) !important;
}

/* --------------------------------------------------------------------------
   3. Scroll-Triggered Fade & Reveal Classes
   -------------------------------------------------------------------------- */
.fade-in,
.slide-in-left,
.slide-in-right,
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left {
  transform: translateX(-32px);
}

.slide-in-right {
  transform: translateX(32px);
}

.fade-in.is-visible,
.slide-in-left.is-visible,
.slide-in-right.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --------------------------------------------------------------------------
   4. Hero Enhancements, Mission Alert Pill & Sacred Particle Canvas
   -------------------------------------------------------------------------- */
.hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Supports both .mission-alert-pill and .hero-mission-pill */
.mission-alert-pill,
.hero-mission-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(194, 65, 12, 0.14));
  border: 1px solid rgba(180, 83, 9, 0.5);
  color: #9A3412;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: pulseGlow 4s infinite ease-in-out;
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .mission-alert-pill,
html[data-theme="dark"] .hero-mission-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.18));
  border-color: rgba(251, 191, 36, 0.55);
  color: #FBBF24;
}

.mission-alert-pill .pulse-dot,
.hero-mission-pill .pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D97706;
  box-shadow: 0 0 10px #D97706;
  animation: pulseDotBeat 2s infinite ease-in-out;
  flex-shrink: 0;
}

.hero-title-main,
.shimmer-gold-text {
  background: linear-gradient(135deg, #431407 0%, #B45309 35%, #D97706 65%, #7C2D12 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerSweep 8s linear infinite;
}

html[data-theme="dark"] .hero-title-main,
html[data-theme="dark"] .shimmer-gold-text {
  background: linear-gradient(135deg, #FFFBEB 0%, #FBBF24 40%, #FB923C 75%, #FFFBEB 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-quiz-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #EA580C 0%, #B45309 100%);
  color: #FFFFFF !important;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.btn-quiz-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(217, 119, 6, 0.6);
}

/* Nav Quiz Highlight Pill (supports both .nav-quiz-highlight and .nav-quiz-link) */
.nav-quiz-highlight,
.nav-quiz-link {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(194, 65, 12, 0.26)) !important;
  color: #9A3412 !important;
  border: 1px solid rgba(180, 83, 9, 0.45) !important;
  border-radius: 9999px !important;
  padding: 0.35rem 0.9rem !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] .nav-quiz-highlight,
html[data-theme="dark"] .nav-quiz-link {
  color: #FBBF24 !important;
  border-color: rgba(251, 191, 36, 0.48) !important;
}

.nav-quiz-highlight:hover,
.nav-quiz-link:hover {
  background: linear-gradient(135deg, #D97706, #9A3412) !important;
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   5. 3D Spotlight & Interactive Tilt Cards
   -------------------------------------------------------------------------- */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.3s ease;
}

.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(217, 119, 6, 0.15),
    rgba(194, 65, 12, 0.07) 40%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.tilt-card:hover::after {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   6. Live Counter Strip (Impact Numbers)
   -------------------------------------------------------------------------- */
.impact-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.impact-stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-top: 4px solid #D97706;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.impact-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.impact-stat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.impact-stat-desc,
.impact-stat-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Colonial Conspiracy Section & Expose Cards
   -------------------------------------------------------------------------- */
.conspiracy-section,
.section-conspiracy {
  position: relative;
  padding: var(--space-20) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 119, 6, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  overflow: hidden;
}

.conspiracy-banner {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.08) 0%, rgba(217, 119, 6, 0.12) 50%, rgba(180, 83, 9, 0.08) 100%);
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-left: 5px solid #D97706;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.conspiracy-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.conspiracy-banner p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.conspiracy-banner p:last-child {
  margin-bottom: 0;
}

.scriptures-targeted-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0 2.5rem;
}

.scripture-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.scripture-pill:hover {
  transform: translateY(-2px);
  border-color: #D97706;
  box-shadow: var(--shadow-gold);
}

.scripture-pill span {
  color: #D97706;
  font-weight: 700;
}

.conspiracy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.conspiracy-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-top: 4px solid #DC2626;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.conspiracy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.conspiracy-year-badge,
.conspiracy-card-tag {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  background: rgba(220, 38, 38, 0.12);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.25);
  margin-bottom: 0.85rem;
}

html[data-theme="dark"] .conspiracy-year-badge,
html[data-theme="dark"] .conspiracy-card-tag {
  background: rgba(248, 113, 113, 0.16);
  color: #F87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.conspiracy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.conspiracy-quote,
.conspiracy-card blockquote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border-left: 3px solid #DC2626;
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.85rem 0;
  line-height: 1.6;
}

.conspiracy-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Interactive Distortion vs Original Truth Showcase */
.distortion-comparison-wrap,
.distortion-showcase {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.distortion-showcase-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.distortion-showcase-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.distortion-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.distortion-tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.distortion-tab-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.distortion-tab-btn.active {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
}

.distortion-panel {
  display: none;
  animation: revealSlideUp 0.35s ease forwards;
}

.distortion-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .distortion-panel.active {
    grid-template-columns: 1fr;
  }
}

.distortion-box {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

.distortion-box.false-side,
.distortion-box--lie {
  background: rgba(220, 38, 38, 0.06);
  border-left: 4px solid #DC2626;
}

.distortion-box.true-side,
.distortion-box--truth {
  background: rgba(22, 163, 74, 0.07);
  border-left: 4px solid #16A34A;
}

.side-badge,
.distortion-box-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.distortion-box.false-side .side-badge,
.distortion-box--lie .distortion-box-badge {
  background: rgba(220, 38, 38, 0.14);
  color: #B91C1C;
}

html[data-theme="dark"] .distortion-box.false-side .side-badge,
html[data-theme="dark"] .distortion-box--lie .distortion-box-badge {
  color: #F87171;
}

.distortion-box.true-side .side-badge,
.distortion-box--truth .distortion-box-badge {
  background: rgba(22, 163, 74, 0.16);
  color: #15803D;
}

html[data-theme="dark"] .distortion-box.true-side .side-badge,
html[data-theme="dark"] .distortion-box--truth .distortion-box-badge {
  color: #4ADE80;
}

.distortion-box h4 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.distortion-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   8. Interactive Quiz System Styles (Homepage, Article Pages & quiz.html)
   -------------------------------------------------------------------------- */
.quiz-section-wrapper,
.section-quiz-home {
  padding: var(--space-20) 0;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(217, 119, 6, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-deepest) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border-gold);
  position: relative;
}

.quiz-arena-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* Quiz Filter Bar */
.quiz-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.quiz-cat-btn {
  padding: 0.5rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-cat-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.quiz-cat-btn.active {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

/* Quiz Status / Score Header */
.quiz-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.quiz-hud-progress {
  flex: 1;
  min-width: 200px;
}

.quiz-hud-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.quiz-progress-track {
  height: 8px;
  background: var(--bg-surface);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #B45309, #D97706, #EA580C);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-hud-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.quiz-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.quiz-stat-pill--correct {
  color: #15803D;
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.3);
}

.quiz-stat-pill--wrong {
  color: #B91C1C;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

/* Main Question Card */
.quiz-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-top: 4px solid #D97706;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.75rem;
  position: relative;
  animation: revealSlideUp 0.4s ease forwards;
}

.quiz-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(217, 119, 6, 0.14);
  color: #B45309;
}

html[data-theme="dark"] .quiz-badge {
  background: rgba(251, 191, 36, 0.18);
  color: #FBBF24;
}

.quiz-topic-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.quiz-question-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.quiz-common-doubt {
  background: var(--bg-surface);
  border-left: 3px solid #D97706;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.quiz-common-doubt strong {
  color: var(--text-primary);
}

/* Options List */
.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.quiz-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateX(4px);
}

.quiz-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.quiz-option-text {
  flex: 1;
}

/* Correct / Wrong Option States */
.quiz-option-btn.is-correct {
  background: rgba(22, 163, 74, 0.12);
  border-color: #16A34A;
  color: var(--text-primary);
  animation: popCorrect 0.35s ease;
}

.quiz-option-btn.is-correct .quiz-option-letter {
  background: #16A34A;
  border-color: #16A34A;
  color: #FFFFFF;
}

.quiz-option-btn.is-wrong {
  background: rgba(220, 38, 38, 0.1);
  border-color: #DC2626;
  color: var(--text-primary);
  animation: shakeWrong 0.4s ease;
}

.quiz-option-btn.is-wrong .quiz-option-letter {
  background: #DC2626;
  border-color: #DC2626;
  color: #FFFFFF;
}

.quiz-option-btn:disabled {
  cursor: default;
  opacity: 0.94;
}

/* Feedback Banner & Optional Explanation Toggle */
.quiz-feedback-area {
  margin-top: 1.25rem;
}

.quiz-result-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  animation: revealSlideUp 0.3s ease forwards;
}

.quiz-result-banner--wrong {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.quiz-result-banner--correct {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.35);
}

.quiz-result-title {
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-result-banner--wrong .quiz-result-title {
  color: #B91C1C;
}

html[data-theme="dark"] .quiz-result-banner--wrong .quiz-result-title {
  color: #F87171;
}

.quiz-result-banner--correct .quiz-result-title {
  color: #15803D;
}

html[data-theme="dark"] .quiz-result-banner--correct .quiz-result-title {
  color: #4ADE80;
}

.quiz-toggle-explanation-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-toggle-explanation-btn:hover {
  background: var(--accent);
  color: #FFFFFF;
}

/* Detailed Explanation Box */
.quiz-explanation-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 0.75rem;
  animation: revealSlideUp 0.35s ease forwards;
}

.quiz-explanation-box.is-collapsed {
  display: none;
}

.quiz-explanation-headline {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.quiz-exp-section {
  margin-bottom: 1rem;
}

.quiz-exp-section:last-child {
  margin-bottom: 0;
}

.quiz-exp-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.quiz-exp-label--colonial {
  color: #D97706;
}

.quiz-exp-label--proof {
  color: #15803D;
}

html[data-theme="dark"] .quiz-exp-label--proof {
  color: #4ADE80;
}

.quiz-exp-section p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Quiz Footer Controls */
.quiz-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.quiz-nav-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quiz-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-dot.is-current {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
}

.quiz-dot.is-answered-correct {
  background: rgba(22, 163, 74, 0.18);
  border-color: #16A34A;
  color: #15803D;
}

.quiz-dot.is-answered-wrong {
  background: rgba(220, 38, 38, 0.15);
  border-color: #DC2626;
  color: #B91C1C;
}

/* Summary / Completion Card */
.quiz-summary-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: revealSlideUp 0.45s ease forwards;
}

.quiz-summary-score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(194, 65, 12, 0.14));
  border: 4px solid #D97706;
  font-family: var(--font-heading);
}

.quiz-summary-score-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.quiz-summary-score-total {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   9. Mission Callout Box & Truth Columns on Investigation Pages
   -------------------------------------------------------------------------- */
.mission-truth-banner {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(194, 65, 12, 0.08) 100%);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-left: 5px solid #D97706;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 1.75rem 0 2.5rem;
  box-shadow: var(--shadow-md);
}

.mission-truth-banner-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9A3412;
  background: rgba(217, 119, 6, 0.18);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

html[data-theme="dark"] .mission-truth-banner-badge {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.2);
}

.mission-truth-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.mission-truth-banner p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.mission-truth-banner p:last-child {
  margin-bottom: 0;
}

.truth-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .truth-columns {
    grid-template-columns: 1fr;
  }
}

.truth-col {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
}

.truth-col.false-claim {
  border-left: 4px solid #DC2626;
  background: rgba(220, 38, 38, 0.05);
}

.truth-col.real-truth {
  border-left: 4px solid #16A34A;
  background: rgba(22, 163, 74, 0.06);
}

.truth-col-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.truth-col.false-claim .truth-col-label {
  background: rgba(220, 38, 38, 0.14);
  color: #B91C1C;
}

html[data-theme="dark"] .truth-col.false-claim .truth-col-label {
  color: #F87171;
}

.truth-col.real-truth .truth-col-label {
  background: rgba(22, 163, 74, 0.16);
  color: #15803D;
}

html[data-theme="dark"] .truth-col.real-truth .truth-col-label {
  color: #4ADE80;
}
