:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2234;
  --accent: #00d4ff;
  --accent-dim: #0099bb;
  --accent-glow: rgba(0, 212, 255, 0.25);
  --text: #e8edf5;
  --text-muted: #8899aa;
  --border: rgba(0, 212, 255, 0.15);
  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Login ── */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    var(--bg);
}

.login-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: min(400px, 90vw);
  text-align: center;
  box-shadow: 0 0 60px var(--accent-glow);
}

.login-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.login-sub {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.login-card form { text-align: left; }

.login-card label {
  display: block;
  margin-bottom: 1rem;
}

.login-card label span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.login-card input:focus { border-color: var(--accent); }

.login-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border: none;
  border-radius: 8px;
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.login-hint {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Presentation Shell ── */
.presentation {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
}

.student-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 1rem;
}

.slide-counter {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.icon-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 1rem;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.progress-wrap {
  height: 3px;
  background: rgba(255,255,255,0.05);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  width: 6.66%;
  transition: width 0.4s ease;
}

/* ── Slide Menu ── */
.slide-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 100;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.3s;
}

.slide-menu[hidden] { display: block; transform: translateX(100%); pointer-events: none; }

.slide-menu h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

#menu-list { list-style: none; }

#menu-list li {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background 0.15s;
}

#menu-list li:hover, #menu-list li.active {
  background: var(--bg-card-hover);
  color: var(--accent);
}

/* ── Slides ── */
.slides-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(40px);
  overflow-y: auto;
  padding: 1.5rem 2rem 5rem;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide-inner {
  max-width: 900px;
  margin: 0 auto;
}

.slide-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.lead { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.note {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  background: rgba(0, 212, 255, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Cover */
.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  position: relative;
}

.cover-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cover-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cover-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.cover-author {
  font-size: 1.3rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 2rem;
}

.cover-divider {
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.cover-info p {
  font-size: 1rem;
  margin: 0.3rem 0;
  color: var(--text-muted);
}

.cover-info strong { color: var(--text); }

.cover-hint {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Cards */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.info-card.highlight { border-color: var(--accent); }

.info-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.info-card ul { list-style: none; }

.info-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}

.reveal-btn {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px dashed var(--accent);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.reveal-btn:hover { background: rgba(0, 212, 255, 0.08); }

.reveal-box {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(0, 212, 255, 0.06);
  border-radius: 8px;
  font-size: 0.9rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0.6rem 0 0.6rem 1rem;
  font-size: 0.9rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 0.9rem;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.year {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.quote {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Laws */
.laws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.law-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.law-card:hover, .law-card.active {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.law-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.law-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.law-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Story */
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.dilemma-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.dilemma-box h4 {
  color: var(--warning);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Poll */
.interactive-poll { text-align: center; }

.poll-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.poll-btn {
  padding: 0.7rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.poll-btn:hover { border-color: var(--accent); }

.poll-btn.selected { border-color: var(--accent); background: rgba(0, 212, 255, 0.1); }

.poll-result {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Conflict visual */
.conflict-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.conflict-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.conflict-node.c2 { border-color: #6366f1; }
.conflict-node.c3 { border-color: var(--warning); }

.conflict-vs { font-size: 1.5rem; }

/* Philosophy cards */
.philosophy-cards, .theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .philosophy-cards, .theme-grid { grid-template-columns: 1fr; }
}

.philo-card, .theme-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: left;
}

.theme-card {
  cursor: pointer;
  transition: border-color 0.2s;
  color: var(--text);
  font-family: inherit;
}

.theme-card:hover, .theme-card.open { border-color: var(--accent); }

.philo-card span, .theme-card span { font-size: 1.5rem; }

.philo-card h4, .theme-card h4 {
  font-size: 0.9rem;
  margin: 0.5rem 0;
  color: var(--accent);
}

.philo-card p, .theme-card p { font-size: 0.85rem; color: var(--text-muted); }

.theme-detail { margin-top: 0.5rem; }

/* Chain */
.chain-reaction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.chain-step {
  background: var(--bg-card);
  border: 1px solid var(--error);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.chain-arrow { color: var(--error); font-size: 1.2rem; }

/* Character */
.character-profile {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bg);
  flex-shrink: 0;
}

.profile-info ul { list-style: none; }

.profile-info li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-info li::before { content: '▸ '; color: var(--accent); }

/* Modern grid */
.modern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.modern-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
}

.modern-item strong {
  display: block;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.modern-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Quiz */
.quiz-q { display: none; }
.quiz-q.active { display: block; }

.quiz-question {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-opt {
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.quiz-opt:hover:not(:disabled) { border-color: var(--accent); }

.quiz-opt.correct {
  border-color: var(--success);
  background: rgba(52, 211, 153, 0.1);
}

.quiz-opt.wrong {
  border-color: var(--error);
  background: rgba(248, 113, 113, 0.1);
}

.quiz-opt:disabled { cursor: default; opacity: 0.8; }

.quiz-score {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
}

/* Ending */
.ending .summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  margin: 1.5rem 0;
  max-width: 500px;
}

.summary-box h3 {
  font-family: var(--font-display);
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.summary-box ul { list-style: none; }

.summary-box li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-box li::before { content: '✦ '; color: var(--accent); }

/* Nav */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: rgba(17, 24, 39, 0.95);
  border-top: 1px solid var(--border);
}

.nav-btn {
  padding: 0.6rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.nav-btn:disabled { opacity: 0.3; cursor: default; }

.nav-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 50%;
}

.nav-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.nav-dots .dot.active { background: var(--accent); transform: scale(1.3); }
.nav-dots .dot:hover { background: var(--accent-dim); }

/* ── Reader-focused layout ── */
.section-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  margin-bottom: 0.5rem;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.slide-inner h2.slide-title { margin-bottom: 1rem; }

.narration {
  max-width: 65ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.content-body {
  margin: 1.25rem 0;
}

.takeaway {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  background: rgba(52, 211, 153, 0.06);
  border-left: 3px solid var(--success);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 65ch;
}

.takeaway strong { color: var(--success); }

/* Section dividers */
.section-divider .slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.divider-inner {
  text-align: center;
  max-width: 600px;
}

.divider-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-divider h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.divider-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Table of contents */
.toc-list {
  list-style: none;
  margin: 1.5rem 0;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
}

.toc-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.toc-link::before {
  content: counter(toc) ". ";
  color: var(--accent);
  font-family: var(--font-display);
}

.toc-link:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

/* Bullet list */
.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list li {
  padding: 0.5rem 0 0.5rem 1.2rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Laws stack (always visible) */
.laws-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.law-card-static {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
}

.law-card-static .law-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 2.5rem;
}

.law-card-static h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.law-card-static p { font-size: 0.9rem; color: var(--text-muted); }

.law-comment {
  margin-top: 0.4rem;
  font-size: 0.82rem !important;
  color: var(--accent-dim) !important;
  font-style: italic;
}

.content-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Story flow */
.story-flow {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flow-step strong { color: var(--text); }

.think-box {
  margin-top: 1rem;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.think-box h4 {
  color: var(--warning);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.think-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Theme blocks (open) */
.theme-stack, .modern-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.theme-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.theme-block h4 {
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.theme-block p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modern-stack .modern-item p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Quiz explanation */
.quiz-explanation {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 212, 255, 0.06);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Menu groups */
#menu-list .menu-group {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
  padding: 1rem 0.8rem 0.3rem;
  cursor: default;
}

#menu-list .menu-group:hover { background: none; color: var(--accent-dim); }

#menu-list li.menu-divider-item {
  font-style: italic;
  opacity: 0.7;
  font-size: 0.8rem;
}

#menu-list li.menu-divider-item:hover { background: none; cursor: default; color: var(--text-muted); }

/* Ending narration */
.ending .narration {
  text-align: center;
  margin: 0 auto 1.5rem;
}

.ending .summary-box { margin: 0 auto; }

.closing-question {
  max-width: 65ch;
  margin: 1.5rem auto 0;
  text-align: left;
}

@media (max-width: 600px) {
  .slide { padding: 1rem 1rem 5rem; }
  .narration { font-size: 1rem; }
  .law-card-static { flex-direction: column; gap: 0.5rem; }
}

