:root {
  --obsidian: #070B0A;
  --obsidian-soft: #0D1512;
  --pounamu: #1FB88A;
  --pounamu-bright: #49E6B6;
  --gold: #E5A23C;
  --gold-soft: #F5C97B;
  --crimson: #B83B2A;
  --bone: #F3EFE6;
  --muted: rgba(243, 239, 230, 0.68);
  --glass: rgba(11, 18, 16, 0.62);
  --glass-border: rgba(31, 184, 138, 0.24);
  --serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

#stage-3d {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* Subtle cinematic vignette over 3D without heavy blur/filter animation */
.cinema-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, transparent 45%, rgba(4, 7, 6, 0.68) 100%),
    linear-gradient(180deg, rgba(4, 7, 6, 0.45) 0%, transparent 18%, transparent 82%, rgba(4, 7, 6, 0.65) 100%);
}

/* ==================== ACT 0: THE LAST BORING SLIDE ==================== */
#boring-slide {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #FFFFFF;
  color: #1F2328;
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vh, 56px) clamp(36px, 7vw, 110px);
  transition: opacity 0.45s ease;
  cursor: pointer;
}

#boring-slide.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.boring-top-bar {
  border-bottom: 4px solid #2B579A;
  padding-bottom: 14px;
}

.boring-kicker {
  font-size: 14px;
  color: #59636E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.boring-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  color: #2B579A;
  letter-spacing: -0.01em;
}

.boring-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 960px;
  gap: clamp(14px, 2.2vh, 22px);
}

.boring-bullets {
  list-style: disc;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 20px);
}

.boring-bullets li {
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.5;
  color: #24292F;
}

.boring-bullets li strong {
  color: #111827;
}

.boring-meta-box {
  margin-top: 8px;
  padding: 12px 18px;
  background: #F3F6FA;
  border-left: 4px solid #2B579A;
  font-size: 15px;
  color: #4B5563;
}

.boring-footer {
  border-top: 1px solid #D0D7DE;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #656D76;
}

.boring-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2B579A;
  font-weight: 600;
}

/* ==================== AWAKENING FRACTURE OVERLAY ==================== */
#awaken-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  display: none;
}

#awaken-overlay.active {
  display: block;
}

.awaken-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: #FFFFFF;
  transition: transform 0.95s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.95s ease;
}

.awaken-panel.top { top: 0; border-bottom: 2px solid var(--pounamu); }
.awaken-panel.bottom { bottom: 0; border-top: 2px solid var(--gold); }

#awaken-overlay.split .awaken-panel.top {
  transform: translateY(-102%);
  opacity: 0.15;
}

#awaken-overlay.split .awaken-panel.bottom {
  transform: translateY(102%);
  opacity: 0.15;
}

.awaken-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at center, rgba(7, 11, 10, 0.92), rgba(7, 11, 10, 0.98));
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 24px;
  text-align: center;
}

#awaken-overlay.show-msg .awaken-center {
  opacity: 1;
}

#awaken-overlay.fade-out .awaken-center {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.awaken-koru-svg {
  width: 84px;
  height: 84px;
}

.awaken-koru-path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

#awaken-overlay.show-msg .awaken-koru-path {
  stroke-dashoffset: 0;
}

.awaken-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 34px);
  color: var(--bone);
  max-width: 780px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.awaken-quote span {
  color: var(--pounamu-bright);
}

/* ==================== HUD & NAVIGATION ==================== */
#hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 54px;
  padding: 0 clamp(18px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#hud-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.78);
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pounamu);
  box-shadow: 0 0 10px rgba(31, 184, 138, 0.85);
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.act-counter {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  margin-right: 8px;
}

.hud-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 230, 0.18);
  background: rgba(11, 18, 16, 0.58);
  backdrop-filter: blur(10px);
  color: rgba(243, 239, 230, 0.86);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.hud-btn:hover {
  border-color: var(--pounamu);
  color: #fff;
  transform: translateY(-1px);
}

.hud-btn.active {
  border-color: var(--pounamu);
  background: rgba(31, 184, 138, 0.2);
  color: var(--pounamu-bright);
}

/* Autoplay slim progress */
#autoplay-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 35;
  background: linear-gradient(90deg, var(--pounamu), var(--gold));
  transition: width 0.2s linear;
}

/* Bottom 10-segment progress bar */
#hud-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 clamp(18px, 3vw, 42px) 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#hud-bottom.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(243, 239, 230, 0.2);
  background: rgba(11, 18, 16, 0.6);
  color: var(--bone);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-arrow:hover {
  border-color: var(--pounamu);
  background: rgba(31, 184, 138, 0.2);
}

.seg-track {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.seg-btn {
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
}

.seg-btn::before {
  content: '';
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(243, 239, 230, 0.18);
  transition: background 0.25s, transform 0.25s;
}

.seg-btn.done::before {
  background: rgba(31, 184, 138, 0.52);
}

.seg-btn.active::before {
  background: linear-gradient(90deg, var(--pounamu-bright), var(--gold));
  transform: scaleY(1.65);
}

.seg-btn:hover::before {
  background: rgba(243, 239, 230, 0.58);
}

/* ==================== ACT CONTAINER & COMMON CARDS ==================== */
#acts-root {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.act {
  position: absolute;
  inset: 0;
  padding: 60px clamp(24px, 4vw, 60px) 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  overflow: hidden;
}

.act.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.act-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(10.5px, 0.8vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pounamu-bright);
  margin-bottom: 8px;
}

.act-kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.act-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.act-subtitle {
  font-size: clamp(13.5px, 1.15vw, 17px);
  color: var(--muted);
  margin-top: 6px;
  font-weight: 400;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: clamp(14px, 1.8vh, 22px) clamp(16px, 1.8vw, 24px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.textbook-badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(229, 162, 60, 0.16);
  border: 1px solid rgba(229, 162, 60, 0.42);
  color: var(--gold-soft);
}

.accent-emerald { color: var(--pounamu-bright); }
.accent-gold { color: var(--gold-soft); }
em { padding-right: 0.14em; }

/* ==================== ACT 1: HERO ==================== */
.act1-wrap {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 20px);
}

.act1-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  background: linear-gradient(135deg, #FFFFFF 15%, #A7F3D0 55%, #F5C97B 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.act1-sub {
  font-size: clamp(15px, 1.45vw, 21px);
  color: rgba(243, 239, 230, 0.85);
  max-width: 680px;
  line-height: 1.5;
}

.kia-ora-pill {
  margin-top: 6px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(31, 184, 138, 0.55);
  background: rgba(31, 184, 138, 0.14);
  color: var(--bone);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(14px, 1.15vw, 17px);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.kia-ora-pill:hover, .kia-ora-pill.pulsed {
  transform: scale(1.04);
  background: rgba(31, 184, 138, 0.28);
  border-color: var(--gold);
}

.act1-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 8px;
  font-size: clamp(12px, 0.95vw, 14px);
  color: rgba(243, 239, 230, 0.7);
  letter-spacing: 0.08em;
}

/* ==================== ACT 2: DEMOGRAPHICS ==================== */
.act2-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(18px, 2.5vw, 38px);
  align-items: center;
  height: 100%;
  max-height: calc(100vh - 130px);
}

.act2-left {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 16px);
}

.stat-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: 150px 1fr 70px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(11, 18, 16, 0.72);
  border: 1px solid rgba(243, 239, 230, 0.12);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.stat-row:hover, .stat-row.featured {
  border-color: var(--pounamu);
  background: rgba(31, 184, 138, 0.12);
  transform: translateX(4px);
}

.stat-label { font-size: 13.5px; font-weight: 600; }
.stat-bar-bg {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-pct {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.milestone-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.milestone-card {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(11, 18, 16, 0.65);
  border: 1px solid rgba(229, 162, 60, 0.22);
}

.milestone-year {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--gold-soft);
  margin-bottom: 3px;
}

.milestone-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.milestone-desc {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

.act2-right-stage {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 14px;
  pointer-events: none;
}

.stage-caption-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(7, 11, 10, 0.72);
  border: 1px solid rgba(31, 184, 138, 0.32);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ==================== ACT 3: LANGUAGE & PLACES ==================== */
.act3-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(18px, 2.5vw, 36px);
  align-items: center;
  height: 100%;
  max-height: calc(100vh - 130px);
}

.act3-left {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 16px);
}

.place-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.place-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 230, 0.2);
  background: rgba(11, 18, 16, 0.72);
  color: var(--bone);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.place-chip:hover { border-color: var(--pounamu); }
.place-chip.active {
  background: rgba(31, 184, 138, 0.22);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.place-detail-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.place-full-name {
  font-family: var(--serif);
  font-size: clamp(15px, 1.45vw, 22px);
  color: var(--pounamu-bright);
  word-break: break-word;
  line-height: 1.25;
}

.place-ipa {
  font-size: 12.5px;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

.loanword-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.loanword-pill {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(11, 18, 16, 0.65);
  border: 1px solid rgba(31, 184, 138, 0.2);
}

.loanword-pill strong {
  display: block;
  font-size: 13.5px;
  color: var(--pounamu-bright);
  margin-bottom: 2px;
}

.loanword-pill span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  display: block;
}

/* ==================== ACT 4: MARAE & HONGI ==================== */
.act4-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 2.5vw, 34px);
  align-items: center;
  max-height: calc(100vh - 130px);
}

.media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(229, 162, 60, 0.3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
  background: #0A0D0C;
}

.media-frame img {
  width: 100%;
  height: clamp(230px, 42vh, 410px);
  object-fit: cover;
  display: block;
}

.media-overlay-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 10, 0.92));
  font-size: 13px;
  line-height: 1.45;
  color: rgba(243, 239, 230, 0.9);
}

.hongi-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hongi-wave-box {
  height: clamp(110px, 16vh, 150px);
  border-radius: 14px;
  background: rgba(7, 11, 10, 0.72);
  border: 1px solid rgba(31, 184, 138, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.hongi-breath-circle {
  animation: breathPulse 3.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes breathPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.95; }
}

/* ==================== ACT 5: HAKA ==================== */
.act5-bg-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  pointer-events: none;
}

.act5-bg-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.act5-bg-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 10, 0.72) 0%, rgba(16, 5, 5, 0.52) 45%, rgba(7, 11, 10, 0.92) 100%);
}

.act5-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 22px);
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.act5-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.drum-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(229, 162, 60, 0.55);
  background: rgba(184, 59, 42, 0.25);
  color: var(--bone);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.drum-btn.active {
  background: rgba(184, 59, 42, 0.6);
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(217, 72, 50, 0.5);
}

.haka-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 22px);
}

.flip-card {
  perspective: 1200px;
  height: clamp(210px, 34vh, 290px);
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-front {
  background: rgba(15, 10, 10, 0.78);
  border: 1px solid rgba(229, 162, 60, 0.32);
  backdrop-filter: blur(12px);
}

.flip-back {
  background: linear-gradient(155deg, rgba(24, 34, 30, 0.94), rgba(45, 16, 13, 0.92));
  border: 1px solid rgba(31, 184, 138, 0.55);
  transform: rotateY(180deg);
}

.flip-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
}

.flip-q {
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.35;
  color: var(--bone);
}

.flip-hint {
  font-size: 12px;
  color: var(--pounamu-bright);
  letter-spacing: 0.08em;
}

.flip-answer {
  font-size: clamp(13px, 1.08vw, 15.5px);
  line-height: 1.55;
  color: rgba(243, 239, 230, 0.94);
}

/* ==================== ACT 6: CARVING & WEAVING + 3D POUNAMU ==================== */
.act6-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr 0.95fr;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
  height: 100%;
  max-height: calc(100vh - 130px);
}

.craft-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.craft-card img {
  width: 100%;
  height: clamp(160px, 27vh, 250px);
  object-fit: cover;
  border-radius: 12px;
}

.craft-card h3 {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--gold-soft);
}

.craft-card p {
  font-size: clamp(12px, 0.96vw, 14px);
  line-height: 1.5;
  color: var(--muted);
}

.koru-center-zone {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 6px 0 12px;
  cursor: grab;
}

.koru-center-zone:active {
  cursor: grabbing;
}

.koru-drag-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(7, 11, 10, 0.72);
  border: 1px solid rgba(31, 184, 138, 0.38);
  font-size: 12px;
  color: var(--pounamu-bright);
}

.koru-reset-btn {
  background: transparent;
  border: none;
  color: var(--gold-soft);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}

/* ==================== ACT 7: TA MOKO ==================== */
.act7-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  max-height: calc(100vh - 130px);
}

.moko-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.moko-svg {
  width: clamp(230px, 33vh, 360px);
  height: clamp(270px, 42vh, 420px);
}

.moko-stroke {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.act.active .moko-stroke {
  stroke-dashoffset: 0;
}

.moko-hotspot {
  cursor: pointer;
  transition: transform 0.25s ease;
  transform-origin: center;
}

.moko-hotspot:hover {
  transform: scale(1.18);
}

.moko-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.moko-tab {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 230, 0.2);
  background: rgba(11, 18, 16, 0.7);
  color: var(--bone);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.moko-tab.active {
  background: rgba(31, 184, 138, 0.22);
  border-color: var(--pounamu);
  color: var(--pounamu-bright);
}

/* ==================== ACT 8: HANGI ==================== */
.act8-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(18px, 2.5vw, 34px);
  align-items: center;
  max-height: calc(100vh - 130px);
}

.hangi-strata {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strata-layer {
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid rgba(243, 239, 230, 0.14);
  background: rgba(15, 11, 9, 0.72);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.strata-layer.active {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(229, 162, 60, 0.2), rgba(184, 59, 42, 0.16));
  transform: translateX(4px);
}

.strata-layer.uncovered {
  border-left: 4px solid var(--pounamu);
}

.strata-badge {
  font-family: var(--serif);
  font-size: 11.5px;
  color: var(--gold-soft);
  white-space: nowrap;
}

/* ==================== ACT 9: INNOVATION & MATARIKI ==================== */
.act9-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-height: calc(100vh - 130px);
  gap: clamp(12px, 2vh, 22px);
  padding-bottom: 8px;
}

.act9-sky-label {
  align-self: center;
  margin-bottom: auto;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(4, 8, 17, 0.62);
  border: 1px solid rgba(110, 231, 247, 0.28);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A5F3FC;
}

.modern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 22px);
}

.modern-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-card h3 {
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 20px);
  color: var(--bone);
}

.modern-card p {
  font-size: clamp(12.5px, 0.98vw, 14.5px);
  line-height: 1.52;
  color: var(--muted);
}

/* ==================== ACT 10: EPILOGUE & QR ==================== */
.act10-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}

.proverb-maori {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.35;
  color: var(--pounamu-bright);
  margin: 10px 0 8px;
}

.proverb-en {
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--bone);
}

.pillars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pillar-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(229, 162, 60, 0.35);
  background: rgba(229, 162, 60, 0.1);
  font-size: 12.5px;
  color: var(--gold-soft);
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.qr-box {
  background: #FFFFFF;
  padding: 10px;
  border-radius: 12px;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}

.qr-box svg {
  width: 128px;
  height: 128px;
  display: block;
}

/* ==================== SPEAKER TELEPROMPTER DRAWER ==================== */
#notes-drawer {
  position: fixed;
  top: 56px;
  right: 18px;
  bottom: 52px;
  width: min(410px, 90vw);
  z-index: 45;
  background: rgba(7, 11, 10, 0.94);
  border: 1px solid rgba(31, 184, 138, 0.35);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(115%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

#notes-drawer.open {
  transform: translateX(0);
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.timer-pill {
  font-family: monospace;
  font-size: 14px;
  color: var(--pounamu-bright);
  background: rgba(31, 184, 138, 0.14);
  padding: 4px 10px;
  border-radius: 8px;
}

.notes-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.notes-script {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(243, 239, 230, 0.92);
  white-space: pre-line;
}

.notes-cue {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(229, 162, 60, 0.12);
  border: 1px solid rgba(229, 162, 60, 0.35);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--gold-soft);
}

.pron-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pron-item {
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pron-item strong { color: var(--pounamu-bright); }
.pron-item em { color: var(--gold-soft); font-style: normal; margin-left: 6px; }

/* Compact height adjustment for 1366x768 projectors */
@media (max-height: 800px) {
  .act { padding: 54px clamp(20px, 3vw, 44px) 46px; }
  .media-frame img { height: 220px; }
  .craft-card img { height: 155px; }
  .flip-card { height: 205px; }
  .moko-svg { width: 225px; height: 265px; }
  .glass-card { padding: 12px 16px; }
}
