/* ============================================
   You Don't Know What You Know — Presentation
   Dark modern theme · Blue & Gold accents
   ============================================ */

:root {
  --bg-deep: #0a0e17;
  --bg-slide: #0f1520;
  --bg-card: #161d2e;
  --bg-card-hover: #1c2640;
  --text-primary: #e8ecf4;
  --text-secondary: #9aa8be;
  --text-muted: #5c6b82;
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.35);
  --accent-gold: #f0b429;
  --accent-gold-glow: rgba(240, 180, 41, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI", system-ui, sans-serif;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --slide-padding: clamp(2rem, 5vw, 4rem);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- Scene navigation & progress ---- */
.scene-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  pointer-events: none;
}

.progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  width: 100%;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
  transition: width var(--transition);
  width: 0%;
}

.scene-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  background: rgba(10, 14, 23, 0.85);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

body.panel-open .scene-nav {
  right: min(340px, 30vw);
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.nav-btn:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slide-pagination {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ---- Presentation container ---- */
.presentation {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide-container {
  position: absolute;
  inset: 0;
}

.slide-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 23, 0.6);
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 20;
  letter-spacing: 0.05em;
}

.slide-loading.hidden {
  display: none;
}

/* ---- Slides ---- */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--slide-padding);
  padding-bottom: calc(var(--slide-padding) + 3.5rem);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(240, 180, 41, 0.04) 0%, transparent 50%),
              var(--bg-slide);
}

/* JS scales oversized content into this frame */
.slide-fit {
  max-width: 100%;
  max-height: 100%;
  flex-shrink: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 10;
}

.slide.prev {
  transform: translateX(-40px);
}

.slide-content {
  max-width: 1100px;
  width: 100%;
}

.slide h1, .slide h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.slide h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.slide h2 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--text-primary); }

.lead-in {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.question-prompt {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 900px;
}

.speaker-prompt {
  margin-top: 2rem;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--accent-gold);
  font-style: italic;
}

.point {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--accent-blue);
  font-weight: 500;
}

.aside-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Title slide ---- */
.title-slide {
  text-align: center;
}

.main-title {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--accent-gold);
}

/* ---- Hero / big idea ---- */
.hero-text {
  text-align: center;
}

.big-idea {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
}

.big-idea em {
  font-style: normal;
  color: var(--text-secondary);
}

.accent-gold {
  color: var(--accent-gold);
  text-shadow: 0 0 40px var(--accent-gold-glow);
}

.support {
  margin-top: 2rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Bullets ---- */
.bullet-list {
  list-style: none;
  margin-top: 1rem;
}

.bullet-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-primary);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue-glow);
}

/* ---- Timeline ---- */
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin: 1.5rem 0;
  align-items: center;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2rem;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  white-space: nowrap;
}

.timeline-item.highlight {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.tl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

.timeline-item.highlight .tl-dot {
  background: var(--accent-gold);
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: var(--bg-card-hover);
}

.card.selected {
  border-color: var(--accent-gold);
  background: rgba(240, 180, 41, 0.08);
  box-shadow: 0 0 20px var(--accent-gold-glow);
}

.card[role="button"] {
  cursor: pointer;
}

.card-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.45;
}

.card.mini {
  padding: 1rem 1.25rem;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--text-secondary);
}

.card.mini strong {
  color: var(--accent-blue);
}

/* ---- Chain ---- */
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.chain-node {
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

.chain-node.highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(240, 180, 41, 0.15));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.chain-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ---- Pills ---- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.pill {
  padding: 0.5rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2rem;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--accent-blue);
  font-weight: 500;
}

.pill[role="button"] {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pill.selected {
  border-color: var(--accent-gold);
  background: rgba(240, 180, 41, 0.12);
  color: var(--accent-gold);
}

/* ---- Tag cloud ---- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.tag-cloud span {
  padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 2rem;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: var(--text-secondary);
}

/* ---- Takeaways ---- */
.takeaway-list {
  list-style: none;
  margin-top: 1.5rem;
}

.takeaway-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
}

.takeaway-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- Final slide ---- */
.final-slide {
  text-align: center;
}

.end-line {
  margin-top: 2.5rem;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--accent-gold);
  font-weight: 600;
}

/* ---- Toggle instruction ---- */
.toggle-instruction {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.3rem 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85em;
  color: var(--accent-gold);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* ---- Progressive reveals ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Video panel ---- */
.video-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 30vw);
  height: 100vh;
  background: #000;
  border-left: 2px solid var(--accent-gold);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.4s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
}

.video-panel.hidden {
  transform: translateX(100%);
  pointer-events: none;
}

.video-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.3rem;
}

.panel-close:hover {
  color: var(--text-primary);
}

.video-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-embed-wrap {
  flex: 1;
  width: 100%;
  min-height: 0;
  position: relative;
  background: #000;
  overflow: hidden;
}

/* YouTube always serves a 16:9 chrome; vertical sources sit in the center.
   Size the iframe as 16:9 matching panel height, then crop the side bars. */
.attention-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 9;
  max-width: none;
  border: 0;
  display: block;
}

.video-panel-caption {
  flex-shrink: 0;
  padding: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* Shift presentation when panel open */
body.panel-open .presentation {
  width: calc(100vw - min(340px, 30vw));
}

body.panel-open .slide {
  padding-right: calc(var(--slide-padding) * 0.5);
}

/* ---- Presenter HUD ---- */
.presenter-hud {
  position: fixed;
  bottom: 3.25rem;
  left: 0;
  right: 0;
  background: rgba(10, 14, 23, 0.92);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  z-index: 940;
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  max-height: 28vh;
  overflow-y: auto;
}

body.panel-open .presenter-hud {
  right: min(340px, 30vw);
}

.presenter-hud.hidden {
  display: none;
}

.hud-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.hud-title {
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.hud-slide-count {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hud-notes {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hud-controls {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.hud-controls kbd {
  font-size: 0.7rem;
  min-width: 1.4rem;
  padding: 0.15rem 0.35rem;
  margin: 0 0.1rem;
}

/* ---- Puzzle overlay ---- */
.puzzle-overlay {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  transition: opacity 0.3s;
}

.puzzle-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.puzzle-hint-box {
  background: rgba(22, 29, 46, 0.95);
  border: 1px solid var(--accent-gold);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-width: 280px;
}

.puzzle-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  font-weight: 600;
}

#hint-text {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--text-primary);
}

/* ---- Keyboard help overlay ---- */
.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.25s ease;
}

.help-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.help-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.help-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.help-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
}

.help-close:hover {
  color: var(--text-primary);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.help-section h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.help-section dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.help-section dt {
  color: var(--text-secondary);
  white-space: nowrap;
}

.help-section dd {
  color: var(--text-muted);
  margin: 0;
}

.help-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Story slides ("How I Got Here") ---- */
.story-slide {
  max-width: 1200px;
}

.story-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.story-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.4rem !important;
  letter-spacing: -0.02em;
}

.story-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.story-bullets-minimal {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-bullets-minimal li {
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--text-secondary);
}

.story-bullets-minimal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.story-bullets-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
}

.story-bullets-inline li {
  padding-left: 0.75rem;
}

.story-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
}

.story-highlights li {
  padding: 0.4rem 0.9rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.story-kicker {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 500;
}

.story-transition {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--accent-blue);
  font-weight: 500;
}

.story-layout--intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.5rem;
  min-height: 0;
}

.story-visual-col {
  min-height: 0;
  max-height: min(52vh, 420px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-visual-col .img-placeholder--hero {
  flex: 1 1 auto;
  min-height: 0;
}

.story-visual-col .img-row {
  flex-shrink: 0;
}

.mini-timeline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mini-timeline-age {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mini-timeline-age.accent {
  color: var(--accent-gold);
}

.mini-timeline-bar {
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
  border-radius: 2px;
  max-width: 120px;
}

/* Image placeholders */
.img-placeholder {
  margin: 0;
}

.img-placeholder-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 4 / 3;
  max-height: min(22vh, 180px);
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(145deg, var(--bg-card) 0%, #1a2236 100%);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem;
  transition: border-color 0.2s;
}

.img-placeholder--hero .img-placeholder-frame {
  aspect-ratio: 3 / 4;
  max-height: min(38vh, 280px);
  min-height: 0;
}

.img-placeholder--tall .img-placeholder-frame {
  aspect-ratio: 3 / 4;
  max-height: min(30vh, 220px);
  min-height: 0;
}

.img-placeholder--wide .img-placeholder-frame {
  aspect-ratio: 21 / 9;
  max-height: min(14vh, 110px);
}

.img-placeholder--collage .img-placeholder-frame {
  aspect-ratio: 1;
  min-height: 0;
}

.img-placeholder-icon {
  font-size: 1.8rem;
  opacity: 0.7;
}

.img-placeholder-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.img-placeholder figcaption {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.35rem;
}

.img-grid {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.img-grid--2 { grid-template-columns: repeat(2, 1fr); }
.img-grid--4 { grid-template-columns: repeat(4, 1fr); }
.img-grid--5 { grid-template-columns: repeat(5, 1fr); }
.img-grid--6 { grid-template-columns: repeat(6, 1fr); }

.img-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.img-row--2 > * { flex: 1; }

.interest-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.interest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.interest-icon {
  font-size: 1.6rem;
}

.year-timeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.year-timeline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* COVID pivot */
.pivot-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}

.pivot-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pivot-covid {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e74c3c;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 4px;
}

.pivot-arrow {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.pivot-label {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Story flow */
.story-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 1rem 0;
}

.story-flow-step {
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  min-width: 260px;
}

.story-flow-step.highlight {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
}

.story-flow-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Split path */
.split-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.split-path-divider {
  width: 1px;
  background: var(--border-subtle);
}

.split-path-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.split-path-col--highlight .split-path-label {
  color: var(--accent-gold);
}

.split-path-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.split-path-col--highlight .split-path-chain {
  color: var(--text-primary);
}

.split-path-arrow {
  color: var(--accent-blue);
}

/* Age compare */
.age-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.25rem 0;
}

.age-compare-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  min-width: 140px;
}

.age-compare-col--highlight {
  border-color: var(--accent-gold);
  background: rgba(240, 180, 41, 0.06);
}

.age-compare-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.age-compare-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.age-compare-label.accent {
  color: var(--accent-gold);
  font-weight: 600;
}

.age-compare-plus {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.age-compare-arrow {
  font-size: 1.5rem;
  color: var(--accent-blue);
}

/* Quest cards */
.quest-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.quest-card {
  padding: 0.75rem 0.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
}

/* World map */
.world-map {
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 200px;
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.world-map-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(240, 180, 41, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #0f1520 0%, #161d2e 100%);
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.map-pin:hover,
.map-pin.active {
  background: rgba(240, 180, 41, 0.35);
  border-color: var(--accent-gold);
  transform: translate(-50%, -50%) scale(1.08);
}

.map-caption {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 2;
}

/* Thread chain & quote */
.story-quote {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent-gold);
  text-align: center;
  margin: 1rem 0;
  border: none;
  padding: 0;
}

.thread-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.thread-arrow {
  color: var(--text-muted);
}

.thread-today {
  color: var(--accent-gold);
  font-weight: 700;
}

.img-collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ---- Reference slide ---- */
.hidden-slide {
  /* Included in slide count but styled normally when navigated to */
}

.reference-slide blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* RPS tournament slide — full bleed */
.rps-slide-root {
  max-width: none !important;
  width: 100%;
  height: calc(100vh - 4rem);
  padding: 0 !important;
  margin: 0;
}

.slide:has(.rps-slide-root) {
  padding: 0;
  padding-bottom: 3.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .story-layout--intro,
  .split-path,
  .pivot-visual {
    grid-template-columns: 1fr;
  }

  .split-path-divider { display: none; }

  .interest-cards,
  .quest-cards,
  .img-grid--5,
  .img-grid--6,
  .img-collage {
    grid-template-columns: repeat(2, 1fr);
  }

  .img-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .age-compare {
    flex-direction: column;
  }

  .chain {
    flex-direction: column;
  }

  .chain-arrow {
    transform: rotate(90deg);
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-panel {
    width: 45vw;
  }

  body.panel-open .presentation {
    width: 55vw;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Print (poster reference) ---- */
@media print {
  .video-panel, .presenter-hud, .puzzle-overlay, .scene-nav, .help-overlay {
    display: none !important;
  }
}
