:root {
  --bg-obsidian: #060608;
  --panel-obsidian: rgba(10, 10, 15, 0.92);
  --parchment-light: #faf6ef;
  --parchment-warm: #ebe2d3;
  --parchment-muted: #b5aa97;
  --gold-lamp: #e0a84e;
  --gold-bright: #f9d48b;
  --gold-hairline: rgba(224, 168, 78, 0.38);
  --crimson-alert: #e03e2f;
  --rain-slate: #a3c1de;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-roman: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-obsidian);
  color: var(--parchment-light);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ==========================================================================
   1. FULL-BLEED AMBIENT CINEMA BACKDROP & FULL-SCENE PEEK MODE
   ========================================================================== */
.cinema-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: #040406;
}

.cinema-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
  will-change: transform, opacity, filter;
}

.cinema-bg-layer.active {
  opacity: 1;
}

/* Softly blurred ambient backdrop behind the Split-Stage card so the framed 16:9 scene & large text pop with maximum contrast */
body.beat-narrative .cinema-bg-layer.active {
  filter: brightness(0.32) contrast(1.08) saturate(1.1) blur(14px);
}

body.beat-dilemma .cinema-bg-layer.active {
  filter: brightness(0.28) contrast(1.06) blur(12px);
}

/* Full-Scene Peek Mode (Pressing 'B' or clicking 'Toàn cảnh'): Restores 100% sharp full-screen artwork */
body.clean-canvas-view .cinema-bg-layer.active {
  filter: brightness(0.98) contrast(1.04) blur(0px) !important;
}

body.clean-canvas-view .theatrical-stage {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* Camera Motion Presets */
.cinema-bg-layer.kb-slow-zoom {
  animation: kbSlowPush 24s ease-out forwards;
}

.cinema-bg-layer.kb-pan-walk {
  animation: kbSlowWalk 22s ease-in-out infinite alternate;
}

.cinema-bg-layer.kb-tension-push {
  animation: kbTensionPush 12s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cinema-bg-layer.kb-chase-handheld {
  animation: kbChaseHandheld 0.65s ease-in-out infinite alternate;
}

.cinema-bg-layer.kb-eyelid-wake {
  animation: kbEyelidWake 3.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes kbSlowPush {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(0, -1%, 0); }
}

@keyframes kbSlowWalk {
  0%   { transform: scale(1.03) translate3d(-0.6%, 0.3%, 0); }
  50%  { transform: scale(1.06) translate3d(0.4%, -0.3%, 0); }
  100% { transform: scale(1.09) translate3d(0.6%, 0.2%, 0); }
}

@keyframes kbTensionPush {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}

@keyframes kbChaseHandheld {
  0%   { transform: scale(1.07) translate3d(-5px, 4px, 0) rotate(-0.4deg); }
  50%  { transform: scale(1.08) translate3d(5px, -4px, 0) rotate(0.3deg); }
  100% { transform: scale(1.09) translate3d(-4px, -3px, 0) rotate(-0.2deg); }
}

@keyframes kbEyelidWake {
  0%   { filter: brightness(0.02) blur(26px); transform: scale(1.07); }
  45%  { filter: brightness(0.35) blur(14px); transform: scale(1.04); }
  100% { filter: brightness(0.32) blur(12px); transform: scale(1.02); }
}

#fxCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.film-grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 0);
  background-size: 3px 3px;
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(4, 4, 6, 0.25) 0%, rgba(4, 4, 6, 0.82) 100%);
  transition: background 0.8s ease;
}

/* Danger Heartbeat Vignette (Slide 10 & 11) */
.danger-edge-pulse {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, transparent 45%, rgba(185, 20, 15, 0.55) 100%);
  transition: opacity 0.5s ease;
}

body.danger-tension .danger-edge-pulse {
  opacity: 1;
  animation: pulseHeartbeatSlow 1.6s infinite ease-in-out;
}

body.danger-chase .danger-edge-pulse {
  opacity: 1;
  animation: pulseHeartbeatFast 0.8s infinite ease-in-out;
}

@keyframes pulseHeartbeatSlow {
  0%, 100% { opacity: 0.2; }
  35% { opacity: 0.72; }
}

@keyframes pulseHeartbeatFast {
  0%, 100% { opacity: 0.3; }
  45% { opacity: 0.88; }
}

.screen-flash {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.screen-flash.flash-crimson {
  background: rgba(185, 28, 28, 0.5);
  opacity: 1;
}

/* ==========================================================================
   2. SLIDE 12 BLACKOUT CURTAIN
   ========================================================================== */
.blackout-curtain {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #020203;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
  opacity: 1;
  transition: opacity 1.5s ease;
}

.blackout-curtain.hidden {
  opacity: 0;
  pointer-events: none;
}

.blackout-inner {
  max-width: 980px;
  text-align: center;
}

.blackout-tag {
  font-family: var(--font-roman);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  color: var(--parchment-muted);
  margin-bottom: 20px;
}

.blackout-line {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  line-height: 1.3;
  color: var(--parchment-light);
  margin-bottom: 34px;
}

.blackout-cue {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  padding: 12px 26px;
  border: 1px solid var(--gold-hairline);
  border-radius: 999px;
  display: inline-block;
  cursor: pointer;
}

/* ==========================================================================
   3. ARCHITECTURAL TOP BAR (PERIPHERAL HEADER)
   ========================================================================== */
.cinema-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 0 3.2vw;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(to bottom, rgba(4, 4, 6, 0.82), transparent);
  opacity: 0.88;
  pointer-events: none;
  white-space: nowrap;
}

.top-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.chapter-code {
  font-family: var(--font-roman);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.meta-divider {
  width: 16px;
  height: 1px;
  background: var(--gold-hairline);
  flex-shrink: 0;
}

.chapter-act {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment-warm);
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-meta-center {
  display: none;
}

.top-meta-right {
  min-width: 0;
  overflow: hidden;
}

.chapter-location {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--parchment-warm);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   4. MAIN THEATRICAL STAGE & SPLIT-STAGE ARCHITECTURE
      (CẢNH VẬT 1 BÊN — BỐ CỤC TEXT CHỮ TO RÕ RÀNG 1 BÊN)
   ========================================================================== */
.theatrical-stage {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 48px 3.2vw 54px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 168, 78, 0.35) transparent;
}

.stage-frame {
  width: 100%;
  max-width: 1520px;
  margin: auto;
  will-change: opacity, transform;
  transition: opacity 0.14s cubic-bezier(0.4, 0, 1, 1), transform 0.14s cubic-bezier(0.4, 0, 1, 1);
}

.stage-frame.stage-exiting {
  opacity: 0;
  transform: translateY(-6px) scale(0.995);
  pointer-events: none;
}

.stage-frame.stage-enter-slide,
.stage-frame.stage-enter-beat {
  animation: frameSoftEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes frameSoftEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes choiceCardCascade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MASTER SPLIT-STAGE CARD (SCENE LEFT + LARGE TEXT RIGHT) --- */
.split-stage-card {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: clamp(22px, 2.4vw, 36px);
  align-items: center;
  background: linear-gradient(145deg, rgba(12, 12, 18, 0.94) 0%, rgba(7, 7, 11, 0.96) 100%);
  border: 1.5px solid rgba(224, 168, 78, 0.34);
  border-radius: 20px;
  padding: clamp(18px, 2vw, 26px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.88), 0 0 40px rgba(224, 168, 78, 0.08);
  backdrop-filter: blur(16px);
}

.split-stage-card.prologue-split-card {
  grid-template-columns: 1.05fr 0.95fr;
}

body.danger-tension .split-stage-card,
body.danger-chase .split-stage-card {
  border-color: rgba(224, 62, 47, 0.55);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92), 0 0 48px rgba(224, 62, 47, 0.18);
}

/* LEFT COLUMN: FRAMED TRUE 16:9 SCENE SHOWCASE */
.split-scene-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.split-scene-frame,
.prologue-scene-col .split-scene-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  max-height: 60vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(249, 212, 139, 0.42);
  background: #050508;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.split-scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: splitSceneGentleZoom 20s ease-out infinite alternate;
  will-change: transform;
}

@keyframes splitSceneGentleZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.055); }
}

.split-scene-overlay-top {
  position: relative;
  z-index: 2;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.split-scene-loc-pill {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(0.98rem, 1.2vw, 1.16rem);
  font-weight: 600;
  color: var(--parchment-light);
  background: rgba(8, 8, 12, 0.76);
  border: 1px solid rgba(249, 212, 139, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.split-scene-expand-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-bright);
  background: rgba(8, 8, 12, 0.78);
  border: 1px solid rgba(249, 212, 139, 0.42);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.split-scene-expand-btn:hover {
  background: var(--gold-lamp);
  color: #080705;
}

.split-scene-overlay-bottom {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 20px 18px 16px;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.78) 68%, transparent 100%);
}

/* Tactile Visual A4 Sheet Mockup inside Prologue Left Scene Column */
.a4-mini-sheet-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14, 13, 18, 0.88);
  border: 1px solid rgba(249, 212, 139, 0.42);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
}

.a4-mini-sheet-page {
  width: 86px;
  height: 118px;
  flex-shrink: 0;
  background: #f7f1e5;
  color: #1c1813;
  border: 2px solid var(--gold-lamp);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
}

.a4-mini-sheet-page > div {
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1.5px dashed #8c6d3b;
}

.a4-mini-sheet-page > div span {
  font-size: 0.58rem;
  color: #8c4a15;
  font-weight: 800;
}

.a4-mini-z1 {
  height: 22%;
  background: rgba(224, 168, 78, 0.25);
}

.a4-mini-z2 {
  height: 46%;
  background: rgba(224, 168, 78, 0.10);
}

.a4-mini-z3 {
  height: 32%;
  border-bottom: none !important;
  background: rgba(163, 193, 222, 0.22);
}

.a4-mini-sheet-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.a4-mini-sheet-caption strong {
  font-family: var(--font-roman);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.a4-mini-sheet-caption span {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--parchment-warm);
}

/* RIGHT COLUMN: LARGE, ULTRA-READABLE EDITORIAL TEXT PANEL */
.split-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8px, 1.2vw, 18px) clamp(6px, 1vw, 16px);
  min-width: 0;
}

.split-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.scene-kicker {
  font-family: var(--font-roman);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lamp);
}

.situation-badge {
  font-family: var(--font-roman);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #090806;
  background: var(--gold-bright);
  padding: 4px 14px;
  border-radius: 999px;
}

.split-hero-headline {
  font-family: var(--font-editorial);
  font-size: clamp(2.6rem, 4.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--parchment-light);
  margin-bottom: 6px;
}

.split-subheadline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.38rem, 1.95vw, 1.82rem);
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.split-lead-paragraph {
  font-size: clamp(1.16rem, 1.48vw, 1.42rem);
  line-height: 1.58;
  color: var(--parchment-warm);
  margin-bottom: 16px;
}

/* LARGE HEADLINE & STORY PARAGRAPHS FOR SLIDES 1–12 */
.split-headline {
  font-family: var(--font-editorial);
  font-size: clamp(2.15rem, 3.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--parchment-light);
  margin-bottom: 18px;
}

.split-story-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.split-story-paragraph {
  font-size: clamp(1.38rem, 1.95vw, 1.86rem);
  font-weight: 400;
  line-height: 1.62;
  color: var(--parchment-light);
}

.split-story-paragraph strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.split-story-paragraph em {
  color: var(--parchment-warm);
  font-style: italic;
}

/* Question Preview Callout on Beat 0 of Dilemma Slides */
.split-question-preview {
  background: rgba(224, 168, 78, 0.11);
  border: 1px solid rgba(249, 212, 139, 0.42);
  border-left: 4px solid var(--gold-bright);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.split-question-preview-label {
  font-family: var(--font-roman);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.split-question-preview-text {
  font-family: var(--font-editorial);
  font-size: clamp(1.42rem, 1.9vw, 1.82rem);
  font-weight: 700;
  line-height: 1.32;
  color: #ffffff;
}

.split-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.prologue-start-btn,
.situation-action-btn {
  font-family: var(--font-roman);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-lamp), #c4872c);
  border: 1px solid var(--gold-bright);
  color: #090806;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 28px rgba(224, 168, 78, 0.32);
}

.prologue-start-btn:hover,
.situation-action-btn:hover {
  background: var(--gold-bright);
  color: #050505;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(249, 212, 139, 0.48);
}

/* --- A4 BLUEPRINT CARDS ON PROLOGUE RIGHT COLUMN --- */
.a4-blueprint-section {
  background: rgba(18, 17, 23, 0.85);
  border: 1px solid rgba(224, 168, 78, 0.38);
  border-radius: 14px;
  padding: 14px 18px 16px;
  margin-bottom: 18px;
}

.a4-diagram-header {
  font-family: var(--font-roman);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(224, 168, 78, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.a4-diagram-header::after {
  content: 'CHIA 3 VÙNG TRÊN GIẤY A4';
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(224, 168, 78, 0.16);
  border: 1px solid var(--gold-hairline);
  color: var(--parchment-light);
}

.a4-zones-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.a4-zone-box {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(224, 168, 78, 0.28);
  border-left: 4px solid var(--gold-lamp);
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(250, 246, 239, 0.045);
}

.a4-zone-num-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(224, 168, 78, 0.18);
  border: 1px solid rgba(249, 212, 139, 0.45);
  color: var(--gold-bright);
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a4-zone-body {
  flex: 1;
  min-width: 0;
}

.a4-zone-part {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.a4-zone-title {
  font-family: var(--font-editorial);
  font-size: clamp(1.32rem, 1.65vw, 1.56rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.a4-zone-desc {
  font-size: clamp(1.02rem, 1.24vw, 1.18rem);
  color: var(--parchment-warm);
  line-height: 1.42;
  margin-top: 2px;
}

/* --- C. SLIDE 3 BEAT 1: BIBLICAL NAMES TABLET --- */
.naming-panel {
  background: rgba(9, 9, 14, 0.92);
  border: 1.5px solid rgba(224, 168, 78, 0.34);
  border-radius: 18px;
  padding: 24px 30px 26px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

.naming-panel-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.names-tablet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.biblical-name-card {
  background: rgba(18, 17, 24, 0.94);
  border: 1px solid rgba(245, 239, 228, 0.22);
  border-radius: 12px;
  padding: 14px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  animation: choiceCardCascade 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.biblical-name-card:hover,
.biblical-name-card.chosen {
  border-color: var(--gold-bright);
  background: rgba(224, 168, 78, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.b-name {
  font-family: var(--font-editorial);
  font-size: clamp(1.6rem, 2.0vw, 1.92rem);
  font-weight: 700;
  color: #ffffff;
}

.b-meaning {
  font-size: clamp(1.04rem, 1.25vw, 1.2rem);
  color: var(--parchment-warm);
  margin-top: 4px;
}

/* --- D. BEAT 1 OF SLIDES 4-11: LARGE-TYPE QUESTION & CHOICE CARDS --- */
.dilemma-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dilemma-header-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(12, 12, 18, 0.94) 0%, rgba(8, 8, 12, 0.92) 100%);
  border: 1.5px solid rgba(224, 168, 78, 0.34);
  border-top: 3px solid var(--gold-bright);
  border-radius: 16px;
  padding: 16px 28px 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.75);
}

.dilemma-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dilemma-paper-pill {
  font-family: var(--font-roman);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  background: rgba(224, 168, 78, 0.16);
  border: 1px solid var(--gold-hairline);
  border-radius: 999px;
  padding: 4px 14px;
}

.dilemma-question {
  font-family: var(--font-editorial);
  font-size: clamp(1.92rem, 2.75vw, 2.65rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  max-width: 1060px;
}

.dilemma-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.peek-scene-btn {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--parchment-warm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.peek-scene-btn.primary-tour-btn {
  background: rgba(224, 168, 78, 0.2);
  border-color: rgba(249, 212, 139, 0.55);
  color: var(--gold-bright);
}

.peek-scene-btn:hover {
  border-color: var(--gold-bright);
  color: #090806;
  background: var(--gold-lamp);
}

.dilemma-options-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dilemma-options-list[data-options-count="6"],
.dilemma-options-list[data-options-count="7"] {
  gap: 11px;
}

.dilemma-choice-row {
  display: flex;
  align-items: stretch;
  background: rgba(11, 11, 17, 0.94);
  border: 1.5px solid rgba(245, 239, 228, 0.18);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  min-height: 92px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  animation: choiceCardCascade 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dilemma-options-list[data-options-count="6"] .dilemma-choice-row,
.dilemma-options-list[data-options-count="7"] .dilemma-choice-row {
  min-height: 76px;
}

.dilemma-choice-row:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(100%, 720px);
  margin: 0 auto;
  min-height: 74px;
}

.dilemma-choice-row.viewed-choice {
  border-color: rgba(224, 168, 78, 0.52);
  background: rgba(20, 18, 15, 0.95);
}

.dilemma-choice-row:hover {
  border-color: var(--gold-bright);
  background: rgba(28, 24, 19, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72);
}

.choice-num-col {
  width: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 168, 78, 0.14);
  border-right: 1px solid rgba(224, 168, 78, 0.26);
  color: var(--gold-bright);
  font-family: var(--font-editorial);
  font-size: 1.85rem;
  font-weight: 700;
  transition: background 0.24s ease, color 0.24s ease;
}

.dilemma-choice-row:hover .choice-num-col {
  background: var(--gold-lamp);
  color: #090806;
}

.choice-thumb {
  width: 162px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.choice-label-wrap {
  flex: 1;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.choice-label {
  font-size: clamp(1.28rem, 1.62vw, 1.56rem);
  font-weight: 600;
  line-height: 1.38;
  color: #ffffff;
}

.dilemma-footer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--parchment-warm);
}

/* ==========================================================================
   5. SPLIT-STAGE CHOICE ILLUSTRATION POPUP MODAL (#choicePopupModal)
      (CẢNH VẬT 16:9 BÊN TRÁI — NỘI DUNG LỰA CHỌN CHỮ TO BÊN PHẢI)
   ========================================================================== */
.choice-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(3, 3, 5, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 3vw;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s ease;
}

.choice-popup-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.choice-popup-card {
  width: min(95vw, 1460px);
  background: linear-gradient(145deg, #101017 0%, #09090d 100%);
  border: 1.5px solid rgba(249, 212, 139, 0.65);
  border-radius: 20px;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.96), 0 0 50px rgba(224, 168, 78, 0.18);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  align-items: stretch;
  transform: scale(1) translateY(0);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-popup-backdrop.hidden .choice-popup-card {
  transform: scale(0.95) translateY(12px);
}

.choice-popup-image-stage {
  position: relative;
  width: 100%;
  min-height: clamp(340px, 58vh, 640px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050507;
  border-right: 1px solid rgba(249, 212, 139, 0.28);
}

.choice-popup-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1), transform 12s ease-out;
  will-change: opacity, transform;
}

.choice-popup-image.active {
  opacity: 1;
  transform: scale(1.035);
}

.choice-popup-img-corner {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 3;
  font-family: var(--font-roman);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--parchment-warm);
  background: rgba(6, 6, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.choice-popup-caption-area {
  padding: clamp(22px, 2.5vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(180deg, rgba(18, 17, 24, 0.98) 0%, rgba(10, 9, 14, 0.99) 100%);
}

.choice-popup-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.choice-popup-badge {
  font-family: var(--font-roman);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  background: rgba(224, 168, 78, 0.15);
  border: 1px solid var(--gold-hairline);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.choice-popup-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--parchment-light);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.choice-popup-close:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.choice-popup-main-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  margin: auto 0;
}

.choice-popup-main-row.caption-gliding {
  animation: popupCaptionGlide 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.choice-popup-num-circle {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--gold-lamp);
  color: #080705;
  font-family: var(--font-editorial);
  font-size: 2.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(224, 168, 78, 0.38);
}

.choice-popup-text {
  font-size: clamp(1.52rem, 2.2vw, 2.18rem);
  font-weight: 700;
  line-height: 1.38;
  color: #ffffff;
}

.choice-popup-paper-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(224, 168, 78, 0.11);
  border: 1px solid rgba(249, 212, 139, 0.36);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  line-height: 1.45;
  color: var(--parchment-warm);
}

.choice-popup-paper-box strong {
  color: var(--gold-bright);
}

.choice-popup-paper-icon {
  font-size: 1.35rem;
  color: var(--gold-bright);
}

.choice-popup-nav-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.choice-popup-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-popup-pills-label {
  font-size: 0.85rem;
  color: var(--parchment-muted);
}

.choice-popup-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.choice-pill-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--parchment-warm);
  font-family: var(--font-editorial);
  font-size: 1.16rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-pill-btn.active,
.choice-pill-btn:hover {
  background: var(--gold-lamp);
  border-color: var(--gold-bright);
  color: #080705;
  transform: scale(1.08);
}

.choice-popup-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.choice-popup-nav-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--parchment-light);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 11px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-align: center;
}

.choice-popup-nav-btn.choice-popup-next-primary {
  flex: 1.4;
  background: linear-gradient(135deg, var(--gold-lamp), #c4872c);
  border-color: var(--gold-bright);
  color: #080705;
  font-weight: 700;
}

.choice-popup-nav-btn:hover {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: #080705;
}

/* --- E. SLIDE 12 AWAKENING & REFLECTION LIST --- */
.awakening-split-card {
  border-color: rgba(163, 193, 222, 0.42);
}

.awakening-split-card.awakening-beat2-active {
  padding: clamp(14px, 1.5vw, 22px);
}

.awakening-split-card.awakening-beat2-active .split-headline {
  font-size: clamp(1.85rem, 2.5vw, 2.6rem);
  margin-bottom: 10px;
}

.awakening-split-card.awakening-beat2-active .split-story-stack {
  gap: 8px;
  margin-bottom: 10px;
}

.awakening-split-card.awakening-beat2-active .split-story-paragraph {
  font-size: clamp(1.14rem, 1.45vw, 1.42rem);
  line-height: 1.46;
}

.reflection-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 16px;
  background: rgba(163, 193, 222, 0.08);
  border: 1px solid rgba(163, 193, 222, 0.34);
  border-left: 4px solid var(--rain-slate);
  border-radius: 12px;
  text-align: left;
  animation: frameSoftEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reflection-list-header {
  font-family: var(--font-roman);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rain-slate);
}

.reflection-question-item {
  font-size: clamp(1.12rem, 1.38vw, 1.34rem);
  font-weight: 500;
  line-height: 1.44;
  color: #ffffff;
  padding-left: 18px;
  position: relative;
}

.reflection-question-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--rain-slate);
  font-weight: 700;
}

/* --- F. PHẦN IV & PHẦN V: SHARING & CLOSING PILLARS --- */
.pillars-stage-wrapper {
  text-align: center;
  width: 100%;
}

.scene-headline {
  font-family: var(--font-editorial);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--parchment-light);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.95);
  margin-bottom: 8px;
}

.scene-subheadline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.35rem, 1.85vw, 1.72rem);
  color: var(--gold-bright);
  margin-bottom: 20px;
}

.three-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 18px;
}

.pillar-card {
  background: rgba(10, 10, 16, 0.94);
  border: 1.5px solid var(--gold-hairline);
  border-radius: 16px;
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: choiceCardCascade 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pillar-step {
  font-family: var(--font-roman);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-lamp);
}

.pillar-title {
  font-family: var(--font-editorial);
  font-size: clamp(1.58rem, 2.0vw, 1.92rem);
  font-weight: 700;
  color: #ffffff;
}

.pillar-desc {
  font-size: clamp(1.12rem, 1.38vw, 1.32rem);
  line-height: 1.56;
  color: var(--parchment-warm);
}

.pov-quote-block {
  margin-top: 20px;
  padding: 18px 28px;
  background: rgba(10, 10, 15, 0.92);
  border: 1px solid rgba(224, 168, 78, 0.36);
  border-left: 4px solid var(--gold-lamp);
  border-radius: 12px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.48rem, 2.0vw, 1.88rem);
  font-weight: 600;
  color: var(--gold-bright);
  text-align: center;
}

/* ==========================================================================
   6. COMPACT TOP-DOCKED TIMER, PROGRESS HAIRLINE & SINGLE-ROW OPERATOR HUD
   ========================================================================== */
.minimal-timer {
  position: fixed;
  top: 4px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 40;
  width: 164px;
  background: rgba(9, 9, 14, 0.95);
  border: 1.5px solid rgba(224, 168, 78, 0.48);
  border-radius: 10px;
  padding: 3px 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.78);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.minimal-timer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
}

.timer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.timer-label {
  font-family: var(--font-roman);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--parchment-warm);
}

.timer-icon-btn {
  background: none;
  border: none;
  color: var(--parchment-muted);
  cursor: pointer;
}

.timer-digits {
  font-family: var(--font-editorial);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: 1.32rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold-bright);
  line-height: 1.02;
}

.timer-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  margin: 2px 0 0;
}

.timer-progress-fill {
  height: 100%;
  width: 100%;
  background: var(--gold-lamp);
  transition: width 1s linear;
}

.timer-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.minimal-timer:hover .timer-action-row {
  max-height: 80px;
  opacity: 1;
  margin-top: 6px;
}

.timer-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--parchment-light);
  font-size: 0.72rem;
  padding: 3px 7px;
  cursor: pointer;
}

.bottom-progress-rail {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 25;
}

.bottom-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-lamp);
  transition: width 0.35s ease;
}

.operator-hud {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  max-width: 98vw;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.90);
  border: 1px solid rgba(245, 239, 228, 0.16);
  backdrop-filter: blur(12px);
  opacity: 0.62;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.hud-hidden .operator-hud {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
}

.operator-hud:hover {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  pointer-events: auto !important;
}

.hud-section {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hud-section:last-child {
  border-right: none;
  padding-right: 0;
}

.hud-btn {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--parchment-warm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hud-btn:hover,
.hud-btn.hud-active {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(224, 168, 78, 0.18);
}

.hud-btn.hud-primary {
  background: rgba(224, 168, 78, 0.26);
  border-color: var(--gold-lamp);
  color: #ffffff;
  font-weight: 600;
}

.hud-slider {
  width: 60px;
  accent-color: var(--gold-lamp);
}

/* Modals & MC Cue Panel */
.cinema-modal {
  position: fixed;
  inset: 0;
  z-index: 52;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.cinema-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cinema-modal-box {
  width: 100%;
  max-width: 980px;
  max-height: 86vh;
  background: #0d0d12;
  border: 1px solid var(--gold-hairline);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cinema-modal-head {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cinema-modal-head h3 {
  font-family: var(--font-roman);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.cinema-modal-close {
  background: none;
  border: none;
  color: var(--parchment-muted);
  font-size: 1.15rem;
  cursor: pointer;
}

.cinema-modal-content {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scene-index-grid {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.scene-index-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
}

.scene-index-card:hover,
.scene-index-card.current {
  border-color: var(--gold-bright);
  background: rgba(224, 168, 78, 0.16);
}

.mixer-block h4 {
  font-family: var(--font-roman);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.foley-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.foley-btn {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gold-hairline);
  border-radius: 8px;
  color: var(--parchment-light);
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.foley-btn:hover {
  background: rgba(224, 168, 78, 0.18);
  border-color: var(--gold-bright);
}

.mixer-note {
  font-size: 0.88rem;
  color: var(--parchment-warm);
  margin-bottom: 12px;
  line-height: 1.5;
}

.track-override-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-override-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.upload-mp3-label {
  font-size: 0.78rem;
  padding: 6px 12px;
  border: 1px solid var(--gold-hairline);
  border-radius: 6px;
  color: var(--gold-bright);
  cursor: pointer;
  white-space: nowrap;
}

.upload-mp3-label input {
  display: none;
}

.mc-cue-panel {
  position: fixed;
  bottom: 54px;
  right: 20px;
  z-index: 38;
  width: min(360px, 92vw);
  background: rgba(10, 10, 14, 0.96);
  border: 1px solid var(--gold-hairline);
  border-radius: 12px;
  overflow: hidden;
}

.mc-cue-panel.hidden {
  display: none;
}

.mc-cue-head {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-roman);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.mc-cue-close {
  background: none;
  border: none;
  color: var(--parchment-muted);
  cursor: pointer;
}

.mc-cue-body {
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--parchment-warm);
  white-space: pre-line;
}

[contenteditable="true"] {
  outline: 1px dashed var(--gold-bright);
  outline-offset: 4px;
  user-select: text;
}

/* ==========================================================================
   7. MULTI-DEVICE & VIEWPORT-HEIGHT RESPONSIVE DENSITY
      (COMPACT/SCALED LAPTOPS 1280x660, TABLETS 768x1024, MOBILE PHONES 390x844)
   ========================================================================== */

/* Compact-height Laptops (e.g. 1280x660 / 1366x768 / 1536x864 at 125%–150% Windows DPI) */
@media (max-height: 820px) and (min-width: 901px) {
  .cinema-top-bar {
    height: 40px;
  }
  .theatrical-stage {
    padding: 44px 2.8vw 48px;
  }
  .split-stage-card {
    padding: 14px 18px;
    gap: 18px;
    border-radius: 16px;
  }
  .split-scene-frame,
  .prologue-scene-col .split-scene-frame {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    max-height: 52vh;
  }
  .split-text-col {
    padding: 4px 6px;
  }
  .split-kicker-row {
    margin-bottom: 6px;
  }
  .split-hero-headline {
    font-size: clamp(1.85rem, 2.6vw, 2.5rem);
    margin-bottom: 2px;
  }
  .split-subheadline {
    font-size: 1.14rem;
    margin-bottom: 6px;
  }
  .split-lead-paragraph {
    font-size: 0.98rem;
    line-height: 1.44;
    margin-bottom: 8px;
  }
  .a4-blueprint-section {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
  }
  .a4-diagram-header {
    font-size: 0.76rem;
    padding-bottom: 5px;
    margin-bottom: 6px;
  }
  .a4-zones-stack {
    gap: 6px;
  }
  .a4-zone-box {
    padding: 5px 10px;
    gap: 10px;
  }
  .a4-zone-num-badge {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
  .a4-zone-part {
    font-size: 0.68rem;
  }
  .a4-zone-title {
    font-size: 1.08rem;
  }
  .a4-zone-desc {
    font-size: 0.88rem;
    line-height: 1.32;
  }
  .split-headline {
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
    margin-bottom: 10px;
  }
  .split-story-stack {
    gap: 10px;
    margin-bottom: 12px;
  }
  .split-story-paragraph {
    font-size: clamp(1.16rem, 1.55vw, 1.42rem);
    line-height: 1.48;
  }
  .split-question-preview {
    padding: 10px 14px;
    margin-bottom: 12px;
  }
  .split-question-preview-text {
    font-size: clamp(1.22rem, 1.55vw, 1.48rem);
  }
  .prologue-start-btn,
  .situation-action-btn {
    padding: 9px 22px;
    font-size: 0.84rem;
  }
  .dilemma-container {
    gap: 8px;
  }
  .dilemma-header-bar {
    padding: 10px 20px;
    gap: 5px;
    border-radius: 12px;
  }
  .dilemma-question {
    font-size: clamp(1.52rem, 2.1vw, 1.95rem);
  }
  .peek-scene-btn {
    padding: 4px 12px;
    font-size: 0.78rem;
  }
  .dilemma-options-list {
    gap: 8px;
  }
  .dilemma-choice-row {
    min-height: 70px;
  }
  .dilemma-options-list[data-options-count="6"],
  .dilemma-options-list[data-options-count="7"] {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .dilemma-options-list[data-options-count="6"] .dilemma-choice-row,
  .dilemma-options-list[data-options-count="7"] .dilemma-choice-row {
    min-height: 62px;
  }
  .dilemma-options-list[data-options-count="7"] .dilemma-choice-row:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 560px);
    min-height: 54px;
  }
  .choice-thumb {
    width: 104px;
  }
  .dilemma-options-list[data-options-count="6"] .choice-thumb,
  .dilemma-options-list[data-options-count="7"] .choice-thumb {
    width: 78px;
  }
  .choice-num-col {
    width: 40px;
    font-size: 1.45rem;
  }
  .choice-label-wrap {
    padding: 8px 12px;
  }
  .choice-label {
    font-size: clamp(1.02rem, 1.25vw, 1.22rem);
    line-height: 1.28;
  }
  .dilemma-footer-bar {
    font-size: 0.8rem;
  }
  .scene-headline {
    font-size: clamp(2.0rem, 3.0vw, 2.6rem);
    margin-bottom: 4px;
  }
  .scene-subheadline {
    font-size: 1.18rem;
    margin-bottom: 12px;
  }
  .three-pillars-grid {
    gap: 14px;
    margin-top: 10px;
  }
  .pillar-card {
    padding: 16px 18px;
    gap: 6px;
  }
  .pillar-title {
    font-size: 1.38rem;
  }
  .pillar-desc {
    font-size: 1.02rem;
    line-height: 1.44;
  }
  .pov-quote-block {
    margin-top: 12px;
    padding: 12px 20px;
    font-size: 1.28rem;
  }
}

/* Tablets & Medium Screens (<= 1100px): Stack Scene Frame on Top + Large Text Below */
@media (max-width: 1100px) {
  .hud-section-operator {
    display: none !important;
  }
  .theatrical-stage {
    justify-content: flex-start;
    padding: 46px 2.8vw 54px;
  }
  .split-stage-card,
  .split-stage-card.prologue-split-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .split-scene-frame,
  .prologue-scene-col .split-scene-frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 30vh;
  }
  .split-text-col {
    padding: 2px 4px;
  }
  .split-kicker-row {
    margin-bottom: 6px;
  }
  .split-hero-headline {
    font-size: 2.1rem;
    margin-bottom: 2px;
  }
  .split-subheadline {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  .split-lead-paragraph {
    font-size: 1.02rem;
    line-height: 1.45;
    margin-bottom: 8px;
  }
  .a4-blueprint-section {
    padding: 8px 12px;
    margin-bottom: 10px;
  }
  .a4-zones-stack {
    gap: 6px;
  }
  .a4-zone-box {
    padding: 6px 10px;
    gap: 10px;
  }
  .a4-zone-num-badge {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }
  .a4-zone-title {
    font-size: 1.15rem;
  }
  .a4-zone-desc {
    font-size: 0.92rem;
    line-height: 1.34;
  }
  .prologue-start-btn,
  .situation-action-btn {
    padding: 10px 22px;
    font-size: 0.88rem;
  }
  .split-headline {
    font-size: 1.9rem;
    margin-bottom: 8px;
  }
  .split-story-stack {
    gap: 8px;
    margin-bottom: 10px;
  }
  .split-story-paragraph {
    font-size: 1.2rem;
    line-height: 1.48;
  }
  .split-question-preview {
    padding: 10px 14px;
    margin-bottom: 12px;
  }
  .split-question-preview-text {
    font-size: 1.28rem;
  }
  .choice-popup-card {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .choice-popup-image-stage {
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 36vh;
    border-right: none;
    border-bottom: 1px solid rgba(249, 212, 139, 0.28);
  }
  .dilemma-options-list,
  .three-pillars-grid {
    grid-template-columns: 1fr;
  }
  .names-tablet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Phones (<= 680px) */
@media (max-width: 680px) {
  .cinema-top-bar {
    height: 38px;
    padding: 0 10px;
  }
  .chapter-location {
    display: none;
  }
  .hud-section-tools {
    display: none !important;
  }
  .theatrical-stage {
    padding: 40px 10px 50px;
  }
  .split-stage-card,
  .split-stage-card.prologue-split-card {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 14px;
  }
  .split-scene-frame,
  .prologue-scene-col .split-scene-frame {
    max-height: 21vh;
  }
  .split-kicker-row {
    margin-bottom: 4px;
    gap: 6px;
  }
  .situation-badge,
  .dilemma-paper-pill {
    font-size: 0.68rem;
    padding: 3px 9px;
  }
  .scene-kicker {
    font-size: 0.7rem;
  }
  .split-hero-headline {
    font-size: 1.65rem;
    margin-bottom: 2px;
  }
  .split-subheadline {
    font-size: 1.02rem;
    margin-bottom: 4px;
  }
  .split-lead-paragraph {
    font-size: 0.88rem;
    line-height: 1.36;
    margin-bottom: 6px;
  }
  .a4-blueprint-section {
    padding: 6px 8px;
    margin-bottom: 6px;
  }
  .a4-diagram-header {
    font-size: 0.68rem;
    padding-bottom: 4px;
    margin-bottom: 4px;
  }
  .a4-diagram-header::after {
    display: none;
  }
  .a4-zones-stack {
    gap: 4px;
  }
  .a4-zone-box {
    padding: 4px 8px;
    gap: 8px;
  }
  .a4-zone-num-badge {
    width: 26px;
    height: 26px;
    font-size: 0.98rem;
  }
  .a4-zone-part {
    font-size: 0.62rem;
  }
  .a4-zone-title {
    font-size: 0.98rem;
  }
  .a4-zone-desc {
    font-size: 0.8rem;
    line-height: 1.26;
  }
  .split-headline {
    font-size: 1.55rem;
    margin-bottom: 6px;
  }
  .split-story-stack {
    gap: 6px;
    margin-bottom: 8px;
  }
  .split-story-paragraph {
    font-size: 1.06rem;
    line-height: 1.42;
  }
  .split-question-preview {
    padding: 8px 12px;
    margin-bottom: 8px;
  }
  .split-question-preview-text {
    font-size: 1.12rem;
  }
  .prologue-start-btn,
  .situation-action-btn {
    width: 100%;
    text-align: center;
    padding: 9px 14px;
    font-size: 0.82rem;
  }
  .dilemma-container {
    gap: 6px;
  }
  .dilemma-header-bar {
    padding: 8px 12px;
    gap: 4px;
  }
  .dilemma-question {
    font-size: 1.32rem;
  }
  .peek-scene-btn {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .dilemma-options-list {
    gap: 6px;
  }
  .dilemma-choice-row {
    min-height: 62px;
  }
  .dilemma-choice-row:last-child:nth-child(odd) {
    min-height: 58px;
  }
  .names-tablet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .choice-thumb {
    width: 82px;
  }
  .choice-num-col {
    width: 36px;
    font-size: 1.25rem;
  }
  .choice-label-wrap {
    padding: 6px 10px;
  }
  .choice-label {
    font-size: 0.96rem;
    line-height: 1.26;
  }
  .dilemma-footer-bar {
    font-size: 0.72rem;
  }
  .choice-popup-backdrop {
    padding: 8px;
  }
  .choice-popup-image-stage {
    max-height: 28vh;
  }
  .choice-popup-caption-area {
    padding: 12px 14px;
    gap: 10px;
  }
  .choice-popup-top-bar {
    padding-bottom: 8px;
  }
  .choice-popup-badge,
  .choice-popup-close {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .choice-popup-num-circle {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    border-radius: 10px;
  }
  .choice-popup-text {
    font-size: 1.15rem;
    line-height: 1.32;
  }
  .choice-popup-paper-box {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .operator-hud {
    bottom: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    gap: 5px;
    opacity: 0.92;
  }
  .hud-slider,
  #audioMixerBtn {
    display: none;
  }
  .hud-section {
    border-right: none;
    padding-right: 0;
  }
}
