/* =========================================================
   DEVKARTE SIR TRIBUTE — CINEMATIC FILM STYLESHEET
   "उन्होंने सिर्फ हिंदी नहीं पढ़ाई, पीछे से रॉकेट लगाया था।"
   ========================================================= */

:root {
  --bg-dark: #09070c;
  --bg-film: #0e0b14;
  --accent-gold: #e5a93c;
  --accent-amber: #f59e0b;
  --accent-rocket: #ff6b35;
  --accent-stage: #ffd166;
  --accent-chalk: #e2e8f0;
  --chalkboard-green: #1a3328;
  --parchment-bg: #f7eed8;
  --parchment-text: #2c1d11;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --font-serif: 'Rozha One', 'Tiro Devanagari Hindi', serif;
  --font-folk: 'Yatra One', 'Rozha One', cursive;
  --font-hindi: 'Tiro Devanagari Hindi', serif;
  --font-body: 'Poppins', sans-serif;
  --font-latin-title: 'Cinzel', serif;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --hud-height: 64px;
}

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

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

/* =========================================================
   ATMOSPHERIC CANVASES & OVERLAYS
   ========================================================= */

.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 11;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cinematic-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 12;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.8) 100%);
}

/* Cinema Letterbox Bars */
.cinema-bars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cinema-bar {
  width: 100%;
  height: 0;
  background: #000;
  transition: height 0.6s var(--transition-smooth);
}

body.letterbox-active .cinema-bar {
  height: 7vh;
}

/* =========================================================
   MAIN VIEWPORT & SCREEN SHAKE
   ========================================================= */

.film-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shake-screen {
  animation: comedicImpact 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes comedicImpact {
  10%, 90% { transform: translate3d(-3px, 2px, 0) scale(1.005); }
  20%, 80% { transform: translate3d(5px, -3px, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 4px, 0) scale(0.998); }
  40%, 60% { transform: translate3d(4px, -2px, 0); }
}

/* =========================================================
   TOP CINEMATIC HUD
   ========================================================= */

.cinematic-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hud-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 30;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.film-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.chapter-tag {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-family: var(--font-hindi);
  font-weight: 500;
}

.hud-center {
  display: flex;
  align-items: center;
}

.chapter-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chapter-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.chapter-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.chapter-dot.active {
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(229, 169, 60, 0.7);
  transform: scale(1.3);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.hud-btn.highlight {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.25), rgba(255, 107, 53, 0.25));
  border-color: rgba(229, 169, 60, 0.5);
  color: #ffdda1;
}

.hud-btn.icon-only {
  padding: 0.45rem;
  border-radius: 8px;
}

.hud-btn .icon {
  width: 16px;
  height: 16px;
}

/* =========================================================
   SLIDESHOW ENGINE & SLIDES
   ========================================================= */

.slides-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.85s var(--transition-smooth), transform 0.85s var(--transition-smooth), visibility 0.85s;
  transform: scale(1.02);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}

/* Background Layers */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 12s ease-out;
  transform: scale(1.05);
}

.slide.active .slide-bg {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.dark-overlay {
  background: radial-gradient(circle at center, rgba(10, 8, 13, 0.7) 0%, rgba(10, 8, 13, 0.95) 100%);
}

.warm-classroom-overlay {
  background: linear-gradient(135deg, rgba(14, 11, 20, 0.85) 0%, rgba(26, 51, 40, 0.65) 50%, rgba(14, 11, 20, 0.9) 100%);
}

.sepia-overlay {
  background: linear-gradient(135deg, rgba(20, 14, 10, 0.9) 0%, rgba(45, 27, 14, 0.75) 100%);
}

.gentle-film-overlay {
  background: radial-gradient(circle at center, rgba(15, 12, 20, 0.65) 0%, rgba(10, 8, 13, 0.92) 100%);
}

.spotlight-vignette-overlay {
  background: radial-gradient(circle at 45% 45%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.88) 70%, #000 100%);
}

.rocket-sky-overlay {
  background: linear-gradient(135deg, rgba(10, 8, 18, 0.8) 0%, rgba(45, 20, 10, 0.6) 100%);
}

.starry-overlay {
  background: radial-gradient(circle at 50% 60%, rgba(10, 15, 30, 0.4) 0%, rgba(5, 5, 12, 0.9) 100%);
}

.golden-sunset-overlay {
  background: linear-gradient(to top, rgba(12, 9, 16, 0.95) 0%, rgba(20, 15, 12, 0.6) 50%, rgba(10, 8, 13, 0.9) 100%);
}

.parchment-bg {
  background: #f4ecdc;
}

.epic-parchment-overlay {
  background: radial-gradient(circle at center, rgba(247, 238, 216, 0.95) 0%, rgba(214, 193, 156, 0.98) 100%);
}

.warm-poetry-overlay {
  background: radial-gradient(circle at center, rgba(250, 245, 235, 0.94) 0%, rgba(225, 210, 185, 0.98) 100%);
}

/* =========================================================
   SLIDE LAYOUTS & GRIDS
   ========================================================= */

.slide-grid {
  position: relative;
  z-index: 5;
  width: 90%;
  max-width: 1400px;
  height: calc(100vh - var(--hud-height) - 70px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 1rem 0;
}

.slide-grid.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.slide-full-pane {
  position: relative;
  z-index: 5;
  width: 90%;
  max-width: 1200px;
  height: calc(100vh - var(--hud-height) - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.chapter-number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.slide-heading {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.font-devanagari {
  font-family: var(--font-serif);
}

.slide-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 2rem;
  font-family: var(--font-hindi);
}

/* =========================================================
   PROLOGUE SPECIAL STYLES (SLIDE 0)
   ========================================================= */

.prologue-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  text-align: center;
  padding: 2rem;
}

.voice-echoes {
  margin-bottom: 2.5rem;
  min-height: 120px;
}

.echo-line {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--accent-gold);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 25px rgba(229, 169, 60, 0.4);
}

.echo-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.main-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease 0.4s, transform 1.2s ease 0.4s;
}

.main-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.cinema-subheading {
  font-size: 1.2rem;
  color: #e2e8f0;
  font-family: var(--font-hindi);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.cinema-title {
  font-size: 5rem;
  font-family: var(--font-serif);
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, #fed7aa 60%, #e5a93c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(229, 169, 60, 0.3);
}

.cinema-tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 1.35rem;
  color: #cbd5e1;
  font-family: var(--font-hindi);
  margin-bottom: 3rem;
}

.highlight-rocket {
  color: var(--accent-rocket) !important;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.btn-cinema-start {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a080d;
  background: var(--accent-gold);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(229, 169, 60, 0.4);
  transition: all 0.3s ease;
}

.btn-cinema-start:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 45px rgba(229, 169, 60, 0.7);
  background: #f5b041;
}

.nav-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* =========================================================
   CHAPTER I: CLASSROOM DIALOGUE CARDS & BLACKBOARD
   ========================================================= */

.dialogue-cards-flow {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dialogue-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.dialogue-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-gold);
}

.card-quote {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  color: #f1f5f9;
}

.card-quote.danger {
  color: #f87171;
  font-weight: 700;
}

.card-note {
  font-size: 0.85rem;
  color: #94a3b8;
  font-family: var(--font-hindi);
}

.chalkboard-card {
  background: #15251d;
  border: 10px solid #5c3a21;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 2.2rem;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chalk-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #a7f3d0;
  border-bottom: 1px dashed rgba(167, 243, 208, 0.3);
  padding-bottom: 0.5rem;
  font-family: var(--font-hindi);
}

.chalk-quote {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.chalk-glow {
  color: #fef08a;
  text-decoration: underline wavy #f59e0b;
}

.chalk-image-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.chalk-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.chalk-punchline {
  display: flex;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-amber);
}

.punchline-icon {
  font-size: 1.5rem;
}

.punchline-text {
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--font-hindi);
  color: #cbd5e1;
}

.btn-easter-mini {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-hindi);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-easter-mini:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-gold);
}

/* =========================================================
   CHAPTER II: HINDI LITERATURE BOOKSHELF
   ========================================================= */

.literature-quote-box {
  background: rgba(229, 169, 60, 0.08);
  border-left: 4px solid var(--accent-gold);
  padding: 1.25rem 1.75rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 1.5rem;
}

.verse-text {
  font-size: 1.4rem;
  font-family: var(--font-serif);
  line-height: 1.6;
  color: #fef3c7;
}

.verse-sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #d97706;
  font-family: var(--font-hindi);
}

.bookshelf-display {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  height: 280px;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, #3b2210 0%, #1e1108 30%, transparent 100%);
  border-bottom: 14px solid #573318;
  border-radius: 8px;
}

.book-spine {
  flex: 1;
  height: 220px;
  background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
  border-radius: 6px 10px 10px 6px;
  border-left: 6px solid #b45309;
  box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.book-spine:nth-child(2) {
  height: 240px;
  background: linear-gradient(135deg, #831843 0%, #500724 100%);
  border-left-color: #be185d;
}

.book-spine:nth-child(3) {
  height: 230px;
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-left-color: #3b82f6;
}

.book-spine:nth-child(4) {
  height: 210px;
  background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
  border-left-color: #10b981;
}

.book-spine:hover {
  transform: translateY(-25px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}

.book-cover {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-family: var(--font-serif);
}

.book-title {
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.book-author {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-family: var(--font-hindi);
}

.book-detail-panel {
  margin-top: 1.5rem;
  background: rgba(20, 14, 10, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.3);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  color: #f1f5f9;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
  font-family: var(--font-serif);
}

.panel-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.panel-content {
  font-size: 1.05rem;
  line-height: 1.6;
  font-family: var(--font-hindi);
}

/* =========================================================
   CHAPTER III: ANCIENT MANUSCRIPT EPIC PARODY
   ========================================================= */

.epic-chronicle {
  color: var(--parchment-text);
  max-width: 1100px;
}

.epic-title {
  font-size: 3.5rem;
  color: #7c2d12;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.epic-subtitle {
  font-size: 1.15rem;
  color: #9a3412;
  font-family: var(--font-hindi);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.epic-manuscript-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
  margin-bottom: 2rem;
}

.epic-column {
  flex: 1;
}

.faction-card {
  background: rgba(255, 255, 255, 0.65);
  border: 2px solid #b45309;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(92, 45, 14, 0.15);
  text-align: left;
}

.faction-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.faction-title {
  font-size: 1.5rem;
  color: #78350f;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  border-bottom: 1px solid #d97706;
  padding-bottom: 0.4rem;
}

.faction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-family: var(--font-hindi);
}

.faction-list li::before {
  content: "⚔️ ";
}

.epic-versus {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.versus-shield {
  background: #991b1b;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.4);
}

.epic-narrative-scroll {
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed #78350f;
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  font-family: var(--font-hindi);
  font-size: 1.2rem;
  line-height: 1.7;
}

.btn-epic-sound {
  margin-top: 1.25rem;
  padding: 0.65rem 1.5rem;
  background: #78350f;
  color: #fef3c7;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-hindi);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-epic-sound:hover {
  background: #9a3412;
  transform: scale(1.03);
}

/* =========================================================
   CHAPTER IV: REAL PORTRAIT & CINEMATIC DUO
   ========================================================= */

.portrait-duo {
  display: flex;
  gap: 1.5rem;
}

.portrait-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

.portrait-card:hover {
  transform: translateY(-8px);
}

.frame-tag {
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent-gold);
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portrait-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.frame-caption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #cbd5e1;
  font-family: var(--font-hindi);
  background: rgba(14, 11, 20, 0.9);
}

.teacher-reverence-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
  font-family: var(--font-hindi);
  margin-bottom: 2rem;
}

.memory-quote-card {
  position: relative;
  background: rgba(229, 169, 60, 0.07);
  border-left: 3px solid var(--accent-gold);
  padding: 1.25rem 2rem;
  border-radius: 0 10px 10px 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: #fef08a;
}

.quote-mark {
  position: absolute;
  top: 0;
  left: 0.5rem;
  font-size: 3rem;
  color: rgba(229, 169, 60, 0.2);
  line-height: 1;
}

/* =========================================================
   CHAPTER V: SPOTLIGHT (THE EMOTIONAL CENTRE)
   ========================================================= */

.stage-dramatic {
  max-width: 900px;
}

.stage-title {
  font-size: 4.5rem;
  font-family: var(--font-latin-title);
  letter-spacing: 6px;
  color: #fff;
  margin-bottom: 2.5rem;
  text-shadow: 0 0 30px rgba(255, 209, 102, 0.8);
}

.highlight-gold {
  color: var(--accent-stage) !important;
}

.staggered-lines {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.stage-line {
  font-size: 1.6rem;
  font-family: var(--font-serif);
  color: #cbd5e1;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.stage-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.stage-line.highlight-stage {
  color: var(--accent-stage);
  font-size: 2.2rem;
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.6);
}

.stage-line.final-stage {
  color: #fff;
  font-size: 1.8rem;
  font-style: italic;
}

.btn-spotlight-pulse {
  padding: 0.9rem 2rem;
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid var(--accent-stage);
  color: var(--accent-stage);
  border-radius: 9999px;
  cursor: pointer;
  font-family: var(--font-hindi);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.2);
}

.btn-spotlight-pulse:hover {
  background: rgba(255, 209, 102, 0.3);
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 209, 102, 0.5);
}

/* =========================================================
   CHAPTER VI: ROCKET (THE CENTRAL METAPHOR)
   ========================================================= */

.highlight-orange {
  color: var(--accent-rocket) !important;
}

.metaphor-box {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(229, 169, 60, 0.1) 100%);
  border-left: 4px solid var(--accent-rocket);
  padding: 1.5rem 2rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 1.5rem;
}

.metaphor-quote {
  font-size: 1.75rem;
  font-family: var(--font-serif);
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.rocket-narrative {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  font-family: var(--font-hindi);
  margin-bottom: 2rem;
}

.reveal-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 107, 53, 0.4);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.reveal-question {
  font-size: 1rem;
  color: #fdba74;
  margin-bottom: 0.5rem;
  font-family: var(--font-hindi);
}

.reveal-answer {
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.7);
}

.btn-launch-rocket {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff6b35 0%, #d97706 100%);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.btn-launch-rocket:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 50px rgba(255, 107, 53, 0.8);
}

.rocket-side-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.side-feature-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.side-caption {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cbd5e1;
  font-family: var(--font-hindi);
}

/* =========================================================
   CHAPTER VII: THE COSMOS & GUIDING STAR
   ========================================================= */

.cosmos-pane {
  max-width: 900px;
}

.highlight-blue {
  color: #60a5fa !important;
}

.cosmos-title {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 2.5rem;
  text-shadow: 0 0 35px rgba(96, 165, 250, 0.5);
}

.stardust-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.6rem;
  font-family: var(--font-serif);
  color: #cbd5e1;
  margin-bottom: 3rem;
}

.stardust-climax {
  font-size: 2.6rem;
  color: var(--accent-gold);
  text-shadow: 0 0 25px rgba(229, 169, 60, 0.7);
}

.stardust-sub {
  font-size: 1.8rem;
  color: #fff;
  font-style: italic;
}

.constellation-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.75rem;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 9999px;
  font-family: var(--font-hindi);
  font-size: 1.1rem;
  color: #bfdbfe;
}

/* =========================================================
   POETRY SECTION (काव्य वाटिका)
   ========================================================= */

.poetry-container {
  color: var(--parchment-text);
  max-width: 950px;
}

.poetry-title {
  font-size: 3.2rem;
  color: #78350f;
  margin-bottom: 0.25rem;
}

.poetry-subtitle {
  font-size: 1.1rem;
  color: #92400e;
  font-family: var(--font-hindi);
  margin-bottom: 1.75rem;
}

.poetry-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.poetry-tab {
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d97706;
  border-radius: 9999px;
  font-family: var(--font-hindi);
  font-size: 0.95rem;
  color: #78350f;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poetry-tab.active {
  background: #78350f;
  color: #fff;
  box-shadow: 0 4px 12px rgba(120, 53, 15, 0.3);
}

.poetry-display-box {
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid #b45309;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.15);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.poem-body {
  display: none;
}

.poem-body.active {
  display: block;
}

.poem-heading {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  color: #78350f;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f59e0b;
  padding-bottom: 0.5rem;
}

.poem-stanzas p {
  font-size: 1.35rem;
  line-height: 1.8;
  font-family: var(--font-serif);
  color: #2c1d11;
  margin-bottom: 1.25rem;
}

/* =========================================================
   EPILOGUE: SUNSET DESK & FINAL WORDS
   ========================================================= */

.epilogue-pane {
  max-width: 900px;
}

.epilogue-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.epilogue-line {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  color: #e2e8f0;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.epilogue-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.epilogue-line.highlight-glow {
  color: var(--accent-gold);
  font-size: 2.4rem;
  text-shadow: 0 0 25px rgba(229, 169, 60, 0.6);
}

.epilogue-salute {
  margin-top: 1rem;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.epilogue-salute.visible {
  opacity: 1;
  transform: scale(1);
}

.thankyou-title {
  font-size: 4.5rem;
  color: #fff;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, #fef08a 60%, #e5a93c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(229, 169, 60, 0.4);
}

.epilogue-humorous-callback {
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

.epilogue-humorous-callback.visible {
  opacity: 1;
  transform: translateY(0);
}

.humor-bubble {
  display: inline-block;
  background: rgba(229, 169, 60, 0.15);
  border: 1px dashed var(--accent-gold);
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
}

.sir-call {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--accent-gold);
  margin-right: 0.75rem;
}

.humor-text {
  display: inline;
  font-size: 1.25rem;
  font-family: var(--font-hindi);
  color: #fff;
}

.epilogue-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-cinema-action {
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-hindi);
}

.btn-cinema-action:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-cinema-action.highlight {
  background: var(--accent-gold);
  color: #000;
  font-weight: 600;
  border-color: var(--accent-gold);
}

/* =========================================================
   BOTTOM CINEMATIC FOOTER & CONTROLS
   ========================================================= */

.cinematic-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 30;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  font-family: var(--font-hindi);
}

.nav-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.slide-counter {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
  min-width: 50px;
  text-align: center;
}

.footer-center {
  flex: 1;
  max-width: 500px;
  margin: 0 2rem;
}

.timeline-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.timeline-progress {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-rocket) 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =========================================================
   CINEMATIC MODALS (SONG & EASTER EGGS)
   ========================================================= */

.cinematic-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s ease;
}

.cinematic-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  background: #130f1d;
  border: 1px solid rgba(229, 169, 60, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 169, 60, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card.mini-card {
  max-width: 550px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.modal-title {
  font-size: 1.6rem;
  color: #fff;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  font-family: var(--font-hindi);
}

.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Audio Widget inside Modal */
.audio-player-widget {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.25rem;
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-btn-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: none;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.player-btn-play:hover {
  transform: scale(1.08);
}

.player-track-info {
  flex: 1;
}

.track-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.track-status {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.track-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  overflow: hidden;
}

.track-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-gold);
  transition: width 0.1s linear;
}

.player-time {
  font-size: 0.8rem;
  color: #94a3b8;
  min-width: 75px;
  text-align: right;
}

.song-lyrics-scroll {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lyrics-tag {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.lyrics-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.song-prompt-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.btn-copy-prompt {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.song-prompt-box code {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  user-select: all;
}

/* Easter Egg Gags Inside Modal */
.gag-item {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 10px;
}

.gag-icon {
  font-size: 1.5rem;
}

.gag-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  font-family: var(--font-hindi);
}

.gag-soundboard {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

.soundboard-title {
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  font-family: var(--font-hindi);
}

.soundboard-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.sfx-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.sfx-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sfx-btn.danger {
  border-color: #ef4444;
  color: #fca5a5;
}

.soundboard-output {
  font-size: 1rem;
  color: #a7f3d0;
  min-height: 24px;
}

/* =========================================================
   RESPONSIVE OPTIMIZATIONS
   ========================================================= */

@media (max-width: 1024px) {
  .slide-grid, .slide-grid.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    overflow-y: auto;
  }
  .slide-heading {
    font-size: 2.4rem;
  }
  .cinema-title {
    font-size: 3.5rem;
  }
  .stage-title, .thankyou-title {
    font-size: 3rem;
  }
  .portrait-duo {
    flex-direction: column;
  }
  .portrait-img {
    height: 180px;
  }
  .epic-manuscript-grid {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .cinematic-hud, .cinematic-footer {
    padding: 0 1rem;
  }
  .film-badge {
    display: none;
  }
  .chapter-dots {
    display: none;
  }
  .slide-heading {
    font-size: 1.9rem;
  }
  .cinema-title {
    font-size: 2.6rem;
  }
  .verse-text {
    font-size: 1.15rem;
  }
  .echo-line {
    font-size: 1.8rem;
  }
}
