/* =========================================================
   TRADISI AMPYANG KUDUS — WHITE & EMERALD LIGHT EDITION
   ========================================================= */

:root {
  /* Emerald Palette */
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  /* Neutral */
  --white:        #ffffff;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;

  /* Accent Gold */
  --gold:         #f59e0b;

  /* Text */
  --text-primary:   #0f2d22;
  --text-secondary: #3d6654;
  --text-muted:     #6b9e87;

  /* Aliases for backward compat */
  --ink:          #0f2d22;
  --emerald-dark: #064e3b;
  --emerald-mid:  #047857;
  --emerald-light:#10b981;
  --accent-gold:  #f59e0b;
  --white-soft:   #f8fafc;
  --white-muted:  rgba(61, 102, 84, 0.7);

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --shadow:    0 20px 50px rgba(6, 78, 59, 0.14);
  --shadow-sm: 0 2px 8px  rgba(6, 78, 59, 0.08);
  --shadow-md: 0 8px 24px rgba(6, 78, 59, 0.12);
  --shadow-lg: 0 20px 50px rgba(6, 78, 59, 0.16);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--white);
  color: var(--text-primary);
  font-family: Inter, system-ui, sans-serif;
}

body { overflow: hidden; }
button { font: inherit; }
.hidden { display: none !important; }

.screen {
  width: 100vw;
  height: 100vh;
  min-height: 650px;
  position: relative;
  overflow: hidden;
}

/* Landing screen is full-screen flex column */
.landing-screen {
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Sticky top header */
.landing-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6vw;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(5, 150, 105, 0.12);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-year {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--emerald-700);
  border: 1px solid var(--emerald-300);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Slideshow fills full screen behind everything (very low opacity watermark) */
.landing-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  opacity: 0.06;
  filter: saturate(0.6);
}

/* Multi-layer light overlay for text legibility */
.landing-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 40%, rgba(255,255,255,0.70) 70%, rgba(255,255,255,0.40) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 30%, rgba(255,255,255,0.8) 100%);
  pointer-events: none;
}

/* Hero body: two-column side-by-side */
.landing-hero {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.landing-body {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: 40px 6vw 32px;
  height: calc(100vh - 68px);
  box-sizing: border-box;
  overflow: hidden;
}

.landing-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.landing-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  background: var(--white);
  transition: opacity .7s ease, visibility .7s ease;
}

.preloader.done { opacity: 0; visibility: hidden; }

.preloader-mark {
  width: 58px;
  height: 58px;
  border: 2px solid var(--emerald-500);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  color: var(--emerald-700);
}

.preloader p { color: var(--text-muted); font-size: 12px; letter-spacing: .12em; }

/* =========================================================
   LANDING SCREEN — White + Emerald, no overlap
   ========================================================= */




/* Slideshow bg lives inside hero */
.landing-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg,
      rgba(236,253,245,0.93) 0%,
      rgba(209,250,229,0.82) 45%,
      rgba(236,253,245,0.90) 100%);
  pointer-events: none;
}

/* Central main area — flex column, centered, no absolute */
.landing-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 6vw 28px;
  gap: 32px;
  overflow: hidden;
}

/* Hero text elements */
.landing-eyebrow { margin-bottom: 20px; }

.landing-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  width: 100%;
  max-width: 1200px;
}

.landing-text-area {
  max-width: 600px;
}

.eyebrow {
  display: inline-block;
  color: var(--emerald-400);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  border: 1px solid var(--emerald-700);
  padding: 5px 14px;
  border-radius: 999px;
}

/* Eyebrow on light screens */
.story-panel .eyebrow,
.centered-screen .eyebrow,
.quiz-shell .eyebrow,
.result-shell .eyebrow {
  color: var(--emerald-700);
  border-color: var(--emerald-200);
  background: var(--emerald-50);
}

.brand, .tour-brand {
  font-size: 25px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--emerald-800);
}

.brand-symbol {
  color: var(--emerald-500);
  margin-right: 8px;
}

.location {
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-title {
  margin: 16px 0 14px;
  font: 700 clamp(42px, 6vw, 88px)/.88 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.03em;
  color: var(--text-primary);
}

em { font-style: italic; color: var(--emerald-700); }

.hero-copy {
  max-width: 460px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.85;
}

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.hero-cta {
  background: var(--emerald-700);
  color: var(--white);
  margin: 0;
}
.hero-cta:hover {
  background: var(--emerald-800);
  color: var(--white);
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: .2em;
  font-weight: 700;
}

.hero-scroll-hint .scroll-line {
  width: 36px;
  height: 1px;
  background: var(--emerald-300);
}

/* Stats row */
.landing-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(5, 150, 105, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 28px;
}

.stat-num {
  font: 700 32px/1 "Cormorant Garamond", serif;
  color: var(--emerald-800);
}

.stat-label {
  font-size: 14px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(5, 150, 105, 0.15);
  margin-right: 28px;
}


.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal .9s var(--ease) forwards;
}

.reveal:nth-child(1) { animation-delay: .2s; }
.reveal:nth-child(2) { animation-delay: .35s; }
.reveal:nth-child(3) { animation-delay: .5s; }
.reveal:nth-child(4) { animation-delay: .7s; }
.reveal:nth-child(5) { animation-delay: .9s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   QUICK ACCESS TOPIC CARDS
   ========================================================= */

.topics-section {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.topics-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--emerald-700);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.topic-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s ease, background .25s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-400);
  background: rgba(255,255,255,0.13);
}

.topic-card-img {
  height: 64px;
  width: 100%;
  background: center/cover no-repeat;
  position: relative;
  flex-shrink: 0;
}

.topic-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.3));
}

.topic-card-badge {
  position: absolute;
  bottom: 5px;
  left: 7px;
  background: var(--emerald-600);
  color: var(--white);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 700;
  z-index: 1;
}

.topic-card-body {
  padding: 8px 10px 9px;
}

.topic-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* CTA area */
.landing-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.primary-btn,
.secondary-btn,
.icon-btn,
.round-btn,
.answer {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: all .3s var(--ease);
}

.primary-btn {
  margin-top: 0;
  min-width: 180px;
  padding: 15px 28px;
  background: var(--emerald-700);
  color: var(--white);
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(4,120,87,0.30);
}

.primary-btn:hover {
  transform: translateY(-3px);
  background: var(--emerald-800);
  box-shadow: 0 14px 32px rgba(4,120,87,0.40);
}

.primary-btn .btn-arrow, .primary-btn span:last-child { font-size: 18px; }
.primary-btn.small { min-width: 148px; margin: 0; padding: 12px 22px; }

.secondary-btn {
  padding: 13px 24px;
  color: var(--emerald-800);
  background: var(--white);
  border: 1.5px solid var(--emerald-300) !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.secondary-btn:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-500) !important;
  transform: translateY(-2px);
}

.scroll-hint {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: .2em;
}

.scroll-line {
  width: 44px;
  height: 1px;
  background: var(--emerald-400);
}

/* TOUR SCREEN */
.tour-screen { background: var(--gray-50, #f8fafc); }

.tour-background {
  position: absolute;
  inset: -6%;
  background: center/cover no-repeat;
  filter: saturate(.8) brightness(.95);
  transform: scale(1.04);
  transition: background-image .7s ease;
}

.tour-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.52);
}

.tour-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.5) 55%, rgba(255,255,255,.35)),
    linear-gradient(0deg, rgba(255,255,255,.9), transparent 30%);
}

.tour-header {
  position: absolute;
  top: 28px;
  left: 4vw;
  right: 4vw;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-800);
  border: 1.5px solid var(--emerald-300);
  justify-self: start;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.icon-btn:hover { background: var(--emerald-200); border-color: var(--emerald-500); }
.tour-brand { justify-self: center; }

.tour-counter {
  justify-self: end;
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  color: var(--text-primary);
}

.tour-counter i { color: var(--text-muted); padding: 0 4px; font-size: 14px; }

.tour-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(400px, 48vw) minmax(350px, 440px);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  justify-content: center;
  padding: 90px 7vw 150px;
}

.story-image-wrap {
  /* Fixed consistent size regardless of content */
  width: min(44vw, 580px);
  height: min(52vh, 460px);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(6,78,59,0.16);
  transform: rotate(-1deg);
  border: 2px solid var(--emerald-100);
}

.story-image {
  position: absolute;
  inset: -4%;
  background: center/cover no-repeat;
  animation: kenburns 12s ease-out both;
}

@keyframes kenburns {
  0% { transform: scale(1.04) translate(0,0); }
  100% { transform: scale(1.13) translate(-1.5%, -1%); }
}

.image-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(5,150,105,0.3);
  border-radius: 16px;
  pointer-events: none;
}

.image-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  padding: 7px 16px;
  background: var(--emerald-700);
  color: var(--white);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .18em;
  font-weight: 700;
}

.story-panel {
  max-width: 420px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding-right: 16px;
}

.story-panel::-webkit-scrollbar {
  width: 5px;
}
.story-panel::-webkit-scrollbar-track {
  background: transparent;
}
.story-panel::-webkit-scrollbar-thumb {
  background: var(--emerald-200);
  border-radius: 10px;
}
.story-panel::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-400);
}

.story-panel h2 {
  margin: 16px 0;
  font: 700 50px "Cormorant Garamond", serif;
  letter-spacing: -.03em;
  color: var(--text-primary);
}

.title-rule {
  width: 42px;
  height: 3px;
  background: var(--emerald-500);
  margin-bottom: 20px;
  border-radius: 999px;
}

.story-panel > p:not(.eyebrow):not(.fun-fact) {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.9;
}

.story-facts {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fact {
  border: 1.5px solid var(--emerald-300);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--emerald-800);
  background: var(--emerald-50);
}

.tour-controls {
  position: absolute;
  z-index: 5;
  left: 7vw;
  right: 7vw;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.progress-area { flex: 1; max-width: 700px; }

/* Compact arrow nav buttons on right */
.nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  border: 1.5px solid var(--emerald-300);
  background: var(--white);
  color: var(--emerald-800);
  cursor: pointer;
  transition: all .2s ease;
}

.nav-btn:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-500);
  transform: scale(1.08);
}

.nav-btn-primary {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  color: var(--white);
}

.nav-btn-primary:hover {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  transform: scale(1.08);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 600;
  margin-bottom: 10px;
}

.progress-track {
  height: 3px;
  background: var(--emerald-100);
  border-radius: 999px;
  overflow: hidden;
}

/* ANIMASI BAR PROGRESS 10 DETIK */
/* NO TIMER - STATIC CONTROLLED BY JS */
.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--emerald-500);
  border-radius: 999px;
  transition: width 0.3s ease;
}

@keyframes slideTimer {
  0% { width: 0%; }
  100% { width: 100%; }
}

.control-actions { display: flex; align-items: center; gap: 10px; }

.round-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--emerald-800);
  background: var(--emerald-50);
  border: 1.5px solid var(--emerald-200);
  font-size: 12px;
  display: grid;
  place-items: center;
}

.round-btn:hover {
  background: var(--emerald-100);
  border-color: var(--emerald-400);
  transform: scale(1.05);
}

/* CENTERED & QUIZ */
.centered-screen {
  background:
    radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.08), transparent 50%),
    var(--gray-50, #f8fafc);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}

.decor-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 50%;
}

.centered-screen h2 {
  position: relative;
  margin: 25px auto;
  max-width: 680px;
  font: 700 clamp(44px, 6vw, 78px)/.88 "Cormorant Garamond", serif;
  color: var(--text-primary);
}

.centered-screen > p:not(.eyebrow) {
  position: relative;
  max-width: 500px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 13px;
}

.fun-fact {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--emerald-50);
  border-left: 3px solid var(--emerald-500);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--emerald-900);
  font-style: italic;
  max-width: 520px;
}

.centered-screen .primary-btn { position: relative; margin-top: 28px; }

.quiz-shell {
  width: min(850px, 90vw);
  text-align: left;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  margin-bottom: 12px;
}

.quiz-progress {
  height: 4px;
  background: var(--emerald-100);
  margin-bottom: 60px;
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress > div {
  height: 100%;
  width: 0;
  background: var(--emerald-500);
  transition: width .4s ease;
  border-radius: 999px;
}

.quiz-shell h2 {
  text-align: left;
  max-width: 780px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .95;
}

.answers {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.answer {
  padding: 16px 22px;
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--emerald-200) !important;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.answer:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-500) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6,78,59,0.1);
}

.answer.correct { background: var(--emerald-50); border-color: var(--emerald-500) !important; color: var(--emerald-800); }
.answer.wrong { background: #fef2f2; border-color: #fca5a5 !important; color: #991b1b; }
.answer.disabled { pointer-events: none; }

.quiz-next { margin-top: 25px; }

/* RESULT */
.result-shell { position: relative; }

.score-ring {
  margin: 26px auto 18px;
  width: 180px;
  height: 180px;
  border: 3px solid var(--emerald-400);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
  background: var(--emerald-50);
}

.score-ring span {
  font: 700 76px "Cormorant Garamond", serif;
  color: var(--emerald-700);
}

.score-ring small { color: var(--text-muted); }

.result-shell h2 { margin: 0 auto 10px; font-size: clamp(42px, 6vw, 68px); }
.result-shell > p:not(.eyebrow) { margin: 0 auto; }

.result-actions { display: flex; justify-content: center; gap: 12px; }
.result-actions .primary-btn  { margin-top: 26px; }
.result-actions .secondary-btn { margin-top: 26px; }

/* SUMMARY SCREEN */
.summary-screen {
  background: var(--gray-50, #f8fafc);
  color: var(--text-primary);
  overflow: auto;
}

.summary-header {
  padding: 26px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--emerald-100);
  font-size: 10px;
  letter-spacing: .15em;
  font-weight: 700;
  background: var(--white);
}

.summary-content {
  min-height: calc(100vh - 180px);
  padding: 64px 9vw 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8vw;
  align-items: center;
}

.summary-content h2 {
  margin: 18px 0;
  font: 700 clamp(52px, 7vw, 90px)/.82 "Cormorant Garamond", serif;
  letter-spacing: -.04em;
  color: var(--text-primary);
}

.summary-lead {
  max-width: 460px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 14px;
}

.summary-cards { display: grid; gap: 12px; }

.summary-card {
  padding: 20px 24px;
  background: var(--white);
  border: 1.5px solid var(--emerald-100);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(6,78,59,0.06);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.summary-card:hover {
  border-color: var(--emerald-300);
  box-shadow: 0 8px 24px rgba(6,78,59,0.12);
}

.summary-card .num {
  font: 700 24px "Cormorant Garamond", serif;
  color: var(--emerald-500);
}

.summary-card h3 {
  font: 700 25px "Cormorant Garamond", serif;
  color: var(--text-primary);
}

.summary-card p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.summary-bottom {
  padding: 44px 9vw 56px;
  background: var(--emerald-900);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.summary-bottom blockquote {
  max-width: 620px;
  font: italic 24px/1.35 "Cormorant Garamond", serif;
  color: var(--emerald-300);
}

.summary-actions { display: flex; gap: 12px; align-items: center; }
.summary-actions .primary-btn { margin: 0; background: var(--white); color: var(--emerald-900); }
.summary-actions .primary-btn:hover { background: var(--emerald-50); }
.summary-actions .secondary-btn {
  color: var(--white) !important;
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.3) !important;
}
.summary-actions .secondary-btn:hover {
  background: rgba(255,255,255,.2) !important;
  border-color: rgba(255,255,255,.6) !important;
}

/* ANIMASI SLIDE BERPINDAH (TRANSISI SCREEN) */
.screen.entering {
  animation: slideInRight 0.8s var(--ease) forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.story-panel.animate h2,
.story-panel.animate p,
.story-panel.animate .story-facts {
  animation: slideUpFade .8s var(--ease) both;
}

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

/* RESPONSIVE */
@media (max-width: 1100px) {
  .landing-body { grid-template-columns: 1fr 1fr; gap: 40px; }
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .screen { min-height: 600px; }
  .landing-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 28px;
    padding: 28px 6vw 24px;
    height: auto;
    overflow-y: auto;
  }
  .landing-left { gap: 0; }
  .hero-title { font-size: clamp(42px, 8vw, 68px); }
  .landing-stats { margin-top: 24px; padding-top: 20px; }
  .topics-grid { grid-template-columns: repeat(3, 1fr); }

  .tour-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh auto;
    gap: 20px;
    padding: 75px 7vw 130px;
    align-content: center;
  }
  .story-image-wrap {
    width: min(70vw, 480px);
    height: clamp(200px, 38vh, 360px);
    margin: 0 auto;
  }
  .story-panel { max-width: 650px; width: 100%; margin: 0 auto; }
  .story-panel h2 { font-size: clamp(36px, 6vw, 52px); margin: 8px 0 10px; }
  .story-panel > p:not(.eyebrow):not(.fun-fact) { font-size: 12px; line-height: 1.65; }
  .story-facts { display: none; }
  .tour-controls { bottom: 18px; }
  .progress-area { max-width: 70%; }
  .summary-content { grid-template-columns: 1fr; gap: 40px; padding-top: 45px; }
  .summary-content h2 { font-size: 65px; }
  .summary-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .landing-header { padding: 14px 5vw; }
  .location { display: none; }
  .landing-body { padding: 20px 5vw 20px; gap: 20px; }
  .hero-title { font-size: 48px; }
  .hero-copy { font-size: 12px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .landing-stats { margin-top: 20px; padding-top: 16px; }
  .stat-num { font-size: 22px; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-section { width: 100%; }

  .tour-header { top: 16px; }
  .tour-brand { font-size: 9px; }
  .tour-stage { grid-template-rows: 35vh auto; padding: 62px 6vw 110px; }
  .story-image-wrap { width: 86vw; height: clamp(180px, 32vh, 300px); }
  .story-panel h2 { font-size: 38px; }
  .story-panel > p:not(.eyebrow):not(.fun-fact) { font-size: 11px; }
  .fun-fact { font-size: 10px; padding: 10px 14px; margin-top: 12px; }
  .tour-controls { left: 5vw; right: 5vw; gap: 12px; }
  .progress-area { max-width: calc(100% - 120px); }
  .nav-btns { gap: 6px; }
  .nav-btn { width: 40px; height: 40px; font-size: 16px; }

  .answers { grid-template-columns: 1fr; }
  .quiz-progress { margin-bottom: 40px; }
  .quiz-shell h2 { font-size: 38px; }
  .summary-header span:last-child { display: none; }
  .summary-content { padding: 40px 7vw; }
  .summary-content h2 { font-size: 58px; }
  .summary-bottom { padding: 40px 7vw; }
  .summary-actions { flex-direction: column; width: 100%; }
  .summary-actions .primary-btn { width: 100%; }
}

/* =========================================================
   LANDING RUNNING SLIDESHOW
   (Defined once — canonical block)
   ========================================================= */

.slideshow-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: runningSlideshow 32s linear infinite;
}

.slide-item {
  width: clamp(300px, 28vw, 480px);
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-slideshow:hover .slideshow-track {
  animation-play-state: paused;
}

/* Keyframes */
@keyframes runningSlideshow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   MOBILE RESPONSIVE OPTIMIZATION (MOBILE-FIRST FIXES)
   ========================================================= */

@media (max-width: 768px) {
  /* Izinkan scroll alami pada perangkat seluler */
  body {
    overflow-y: auto !important;
  }

  .screen {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
  }

  /* Landing Screen */
  .landing-header {
    padding: 14px 18px;
  }

  .landing-nav {
    gap: 10px;
  }

  .location {
    display: none; /* Sembunyikan lokasi agar header ringkas */
  }

  .landing-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    padding: 24px 20px 40px;
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 54px);
    line-height: 1;
  }

  .hero-copy {
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .landing-stats {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding-right: 0;
  }

  /* Grid Topik Budaya */
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Tour Screen */
  .tour-screen {
    overflow-y: auto;
  }

  .tour-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 80px 20px 120px;
  }

  .story-image-wrap {
    width: 100%;
    height: 240px;
    transform: rotate(0deg);
  }

  .story-panel {
    max-width: 100%;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .story-panel h2 {
    font-size: 32px;
  }

  /* Bar Kontrol Navigasi Bawah (Fixed) */
  .tour-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-top: 1px solid var(--emerald-100);
    margin: 0;
  }

  /* Quiz Screen */
  .quiz-shell {
    width: 100%;
    padding: 0 10px;
  }

  .quiz-shell h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .answers {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Summary Screen */
  .summary-content {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 24px;
  }

  .summary-content h2 {
    font-size: 42px;
  }

  .summary-bottom {
    flex-direction: column;
    align-items: stretch;
    padding: 30px 20px;
  }

  .summary-bottom blockquote {
    font-size: 18px;
  }

  .summary-actions {
    flex-direction: column;
    width: 100%;
  }

  .summary-actions .primary-btn,
  .summary-actions .secondary-btn {
    width: 100%;
    text-align: center;
  }
}

/* Penyesuaian khusus Layar Sangat Kecil (HP di bawah 400px) */
@media (max-width: 400px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 32px;
  }
}