:root {
  --sky: #a9d8e8;
  --sky-deep: #7fc0da;
  --sun: #f5b83f;
  --coral: #ec6a5b;
  --grass: #e5ffd3e3;
  --purple: #c8a9e6;
  --pink: #f2a8cd;
  --peach: #f7b79b;
  --cream: #fff9ec;
  --paper: #ffffff;
  --navy: #48352a;
  --ink: #5b4637;
  --shadow: 0 14px 30px rgba(72, 53, 42, 0.18);
  --shadow-big: 0 22px 44px rgba(72, 53, 42, 0.24);
  --border: 4px solid #48352a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "Comic Sans MS", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 184, 63, 0.3), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(242, 168, 205, 0.25), transparent 34%),
    radial-gradient(circle at 20% 92%, rgba(164, 201, 139, 0.28), transparent 36%),
    radial-gradient(circle at 85% 88%, rgba(169, 216, 232, 0.27), transparent 36%),
    var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", "Comic Sans MS", sans-serif;
  color: var(--navy);
}

section { scroll-margin-top: 86px; }

/* ---------- Cute floating blobs ---------- */
.blob {
  position: absolute;
  display: block;
  border-radius: 42% 58% 62% 38% / 55% 45% 55% 45%;
  pointer-events: none;
  opacity: 0.55;
}

.blob-1 { width: 120px; height: 120px; top: 12vh; left: 8vw; background: var(--sun); animation: blobPop 7s ease-in-out infinite; }
.blob-2 { width: 90px; height: 90px; right: 10vw; top: 20vh; background: var(--pink); animation: blobPop 8s ease-in-out 1s infinite; }
.blob-3 { width: 70px; height: 70px; left: 45vw; top: 6vh; background: var(--sky); animation: blobPop 9s ease-in-out 2s infinite; }

.blob-4 { width: 140px; height: 140px; left: 6vw; bottom: 12vh; background: var(--cream); animation: blobPop 7s ease-in-out infinite; }
.blob-5 { width: 100px; height: 100px; right: 8vw; top: 14vh; background: var(--sky); animation: blobPop 8s ease-in-out 1.4s infinite; }

.blob-6 { width: 110px; height: 110px; right: 8vw; bottom: 10vh; background: var(--sky); animation: blobPop 7.5s ease-in-out infinite; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(90deg, #fff5df, #ffe8cd);
  border-bottom: var(--border);
  box-shadow: 0 8px 20px rgba(72, 53, 42, 0.18);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-slot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s;
}

.logo:hover .logo-slot { transform: rotate(-12deg) scale(1.08); }

.brand {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.2vw, 1.1rem);
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(72, 53, 42, 0.06);
  border: 2.5px solid transparent;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  background: var(--sun);
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-2px) rotate(-2deg);
}

.karya-box-container {
  position: relative;
  display: inline-block;
}

.karya-box {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px !important;
  background: rgba(72, 53, 42, 0.06);
  border: 2.5px solid transparent !important;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, transform 0.2s, border 0.2s !important; 
  list-style: none;
}

.karya-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.karya-box:hover {
  background: var(--sun) !important;
  color: var(--navy) !important;
  border-color: #fff !important;
  transform: none !important;
}

.karya-box.active .karya-arrow {
  transform: rotate(180deg);
}

.karya-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 175px;
  list-style: none;
  background: #ffffff;
  border: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-big);
  padding: 8px;
  z-index: 1001;
  flex-direction: column;
  gap: 6px;
}

.karya-dropdown-menu.show {
  display: flex;
  animation: fadeSlide 0.2s ease;
}

.karya-dropdown-menu li a {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: #fff9ec;
  color: var(--navy);
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.karya-dropdown-menu li a:hover {
  background: var(--sun);
  transform: translateX(3px);
  border-color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("title-bg.png") center / cover no-repeat;
  display: grid;
  place-items: center;
  will-change: transform;
}

.hero-bg-hint {
  display: none;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: rgba(72, 53, 42, 0.62);
  border: 4px dashed rgba(72, 53, 42, 0.5);
  border-radius: 30px;
  background: #fffdf4;
  padding: 2.2rem 3rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.hero-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: clamp(2rem, 6vh, 4rem);
  background: transparent;
}

.hero-content {
  text-align: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.9s ease 0.3s, transform 0.9s ease 0.3s;
}

.loaded .hero-content { opacity: 1; transform: translateY(0) scale(1); }

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 5px 0 var(--navy), 0 8px 18px rgba(0, 0, 0, 0.28);
  animation: wiggle 4s ease-in-out infinite;
}

.hero-tagline {
  margin: 0.8rem 0 1.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.btn-start {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 3px;
  text-decoration: none;
  padding: 0.95rem 3rem;
  border-radius: 999px;
  border: var(--border);
  box-shadow: 0 8px 0 var(--navy), 0 14px 26px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  animation: bouncePulse 2.4s ease-in-out infinite;
}

.btn-start:hover { transform: translateY(-3px); box-shadow: 0 11px 0 var(--navy), 0 18px 30px rgba(0, 0, 0, 0.25); }
.btn-start:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--navy); }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 4.5rem);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: inline-block;
  color: #fff;
  background: var(--coral);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  border: 2.5px solid var(--navy);
  margin-bottom: 0.8rem;
}

.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  display: inline-block;
  position: relative;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.9);
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 86px;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 16px, var(--sun) 16px 32px, var(--sky) 32px 48px, var(--grass) 48px 64px);
}

.section-desc {
  margin-top: 1.6rem;
  color: #6b5846;
  font-size: 1.02rem;
  font-weight: 700;
}

.karya-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.karya-card {
  background: var(--paper);
  border: var(--border);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.karya-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-big);
}

.karya-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--navy);
  margin-bottom: 0.6rem;
}

.karya-card p {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .karya-grid {
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .karya-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Carousel / Cerita ---------- */
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.3rem, 1.5vw, 1.2rem);
}

.car-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--navy);
  transition: transform 0.15s, box-shadow 0.15s;
  display: grid;
  place-items: center;
  z-index: 3;
}

.car-btn:hover { transform: translateY(-2px) scale(1.05); background: var(--sun); }
.car-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }

.car-window { overflow: hidden; border-radius: 30px; border: var(--border); box-shadow: var(--shadow-big); }

/* Pages are stacked on top of each other; the top one flips away */



.car-card:nth-child(1) { --card: #fff3cd !important; }
.car-card:nth-child(2) { --card: #ffe3d6 !important; }
.car-card:nth-child(3) { --card: #e4f1dc !important; }
.car-card:nth-child(4) { --card: #ffe0e6 !important; }
.car-card:nth-child(5) { --card: #eee0f6 !important; }
.car-card:nth-child(6) { --card: #ffe7cc !important; }
.car-card:nth-child(7) { --card: #dcede1 !important; }
.car-card:nth-child(8) { --card: #e4edf6 !important; }

.car-media {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.media-hint,
.car-media-box {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 24px;
  background: #fff;
  border: 4px dashed #fff;
  box-shadow: 0 10px 22px rgba(72, 53, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.car-media-content {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 20px;
  display: block;
}

.car-body {
  position: relative;
}

.car-body h3 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.8rem;
  padding-right: 0;
}

.car-body p {
  color: #5c4a3b;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 0.7rem;
}

.car-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.car-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.car-dot:hover { transform: scale(1.2); }
.car-dot.active { background: var(--coral); transform: scale(1.2); }

/* ---------- Audio Button Styles ---------- */
.audio-circle {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: var(--sun);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 var(--navy);
  user-select: none;
  z-index: 5;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.15s ease;
}

.audio-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  pointer-events: none;
}

.audio-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.audio-circle:hover {
  transform: translateY(-2px) scale(1.08);
  background: var(--pink);
}

.audio-circle:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--navy);
}

.audio-circle.playing {
  background-color: #ffcc00;
  box-shadow: 0 0 14px rgba(255, 204, 0, 0.9);
  transform: scale(1.05);
}

/* ---------- Dividers ---------- */
.divider, .divider1, .divider2, .divider3 {
  position: relative;
  height: 54vh;
  display: grid;
  place-items: center;
  border-block: var(--border);
  background-color: var(--cream);
}

.divider {
  background: url("divider1.jpeg") center  / cover no-repeat;
}

.divider1 {
  background: url("divider2.jpeg") center / cover no-repeat;
}

.divider2 {
  background: url("divider3.jpeg") center / cover no-repeat;
}

.divider3 {
  background: url("divider4.jpeg") center / cover no-repeat;
}

.divider-hint, .divider-hint1 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--navy);
  background: #fffdf4;
  border: 4px dashed var(--navy);
  border-radius: 26px;
  padding: 1.6rem 2.4rem;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12);
}

#karya-10, #karya-12 {
  scroll-margin-top: 80px;
}

#anggota {
  scroll-margin-top: 10px;
}

.budaya {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 20px;
  overflow: hidden;
  color: #fff;
  position: relative;
}

.budaya-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(242, 218, 242, 0.631), transparent 60%),
    radial-gradient(circle at 12% 85%, rgba(249, 149, 199, 0.827), transparent 60%),
    linear-gradient(160deg, #ffecfb 0%, #bfffdb 60%, #fffca8 72%, #f0f9ff 100%);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.6s ease-out, transform 2.4s ease-out;
  will-change: opacity, transform;
}

.budaya.revealed .budaya-bg { opacity: 1; transform: scale(1); }

.budaya-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  padding: 1rem;
}

.budaya-content .eyebrow { 
  background: var(--sun); 
  color: var(--navy); 
  border-color: #fff; 
  display: inline-block;
}

.budaya-content h2 { 
  color: var(--navy); 
  font-size: clamp(2.4rem, 6vw, 3.6rem); 
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.9); 
  margin-bottom: 2.5rem;
}

.budaya-content h2::after { 
  background: repeating-linear-gradient(90deg, #fff 0 16px, var(--sun) 16px 32px, #fff 32px 48px, var(--sky) 48px 64px); 
}

.budaya-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(3rem, 7vw, 5.5rem);
  width: 100%;
  align-items: start;
}

.budaya-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  min-width: 0;
  align-items: flex-start;
}

.text-block {
  width: 96%;
  min-width: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.6;
  font-size: 18px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  backdrop-filter: blur(3px);
  box-shadow: 0 8px 22px rgba(72, 53, 42, 0.14);
  text-align: left;
}

.text-block:nth-child(odd) {
  align-self: flex-start;
  transform: translateX(-0.75rem);
}

.text-block:nth-child(even) {
  align-self: flex-end;
  transform: translateX(0.75rem);
}

.budaya-image-blocks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

.image-block {
  width: min(82%, 360px);
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: var(--border);
  border-radius: 24px;
  padding: 8px;
  box-shadow: var(--shadow-big);
  overflow: hidden;
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--navy);
}

.image-block img:not([src]),
.image-block img[src=""] {
  opacity: 0;
}

.image-block:has(img:not([src])),
.image-block:has(img[src=""]) {
  background: repeating-linear-gradient(45deg, #fff 0 14px, #fff1d6 14px 28px);
}

.image-block:nth-child(odd) {
  align-self: flex-start;
}

.image-block:nth-child(even) {
  align-self: flex-end;
}

/* ---------- Quiz ---------- */
.quiz-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 30px;
  border: var(--border);
  box-shadow: var(--shadow-big);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.quiz-progress { margin-bottom: 1.4rem; }

.quiz-progress span {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.quiz-bar {
  height: 16px;
  border-radius: 999px;
  background: #eef2ff;
  border: 3px solid var(--navy);
  overflow: hidden;
}

.quiz-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 18px, var(--sun) 18px 36px, var(--sky) 36px 54px);
  transition: width 0.45s ease;
}

.quiz-question {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.quiz-img {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  margin: 1rem 0;
  background: #fff3d6;
  border: 4px dashed var(--sun);
  display: grid;
  place-items: center;
}

.quiz-img span { font-family: "Baloo 2", sans-serif; color: var(--navy); font-size: 1.2rem; }

.quiz-options {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.quiz-option {
  text-align: left;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  background: #f1f5ff;
  border: 3px solid transparent;
  border-radius: 18px;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.quiz-option:hover:not(:disabled) {
  transform: translateX(5px) scale(1.01);
  border-color: var(--sky-deep);
  background: #eaf6ff;
}

.quiz-option:disabled { cursor: default; }

.quiz-option.correct {
  background: var(--grass);
  border-color: var(--navy);
  color: #000000;
  box-shadow: 0 6px 0 #3d8f4b;
}

.quiz-option.wrong {
  background: var(--coral);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 0 #c94f4f;
}

.quiz-feedback {
  margin-top: 1.2rem;
  min-height: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: fadeSlide 0.4s ease;
}

.quiz-msg {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.6;
}

.quiz-msg.wrong-msg { color: #c0392b; }
.quiz-msg.right-msg { color: #2e7d40; }

.btn-normal {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 0.8rem 1.9rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.2s;
  color: var(--navy);
}

.btn-normal:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-normal:active { transform: translateY(2px); }

.btn-quiz-primary {
  align-self: flex-start;
  background: var(--sun);
  box-shadow: 0 6px 0 #d8a827;
}

.btn-next {
  align-self: flex-end;
  background: var(--sky);
  box-shadow: 0 6px 0 #2f92d4;
}

.quiz-standby { text-align: center; padding: 1rem 0 0.4rem; }
.quiz-standby p { color: #5a6b8f; font-weight: 700; margin-bottom: 1.3rem; }

.quiz-result { text-align: center; padding: 1rem 0; animation: fadeSlide 0.5s ease; }

.quiz-result h3 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); color: var(--navy); margin-bottom: 0.6rem; }

.quiz-result p { color: #5a6b8f; font-weight: 700; margin-bottom: 1.5rem; }

.hidden { display: none !important; }

/* ---------- Amanat ---------- */
.amanat {
  background:
    radial-gradient(circle at 50% 30%, rgba(245, 184, 63, 0.3), transparent 55%),
    linear-gradient(180deg, #fff9e9, #ffe6c9);
  overflow: hidden;
}

.amanat-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(247, 183, 155, 0.4), transparent 65%);
  pointer-events: none;
}

.scroll-card {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
  background: linear-gradient(175deg, #fffbef, #ffe9b8);
  border-radius: 34px;
  border: var(--border);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
  box-shadow: var(--shadow-big);
  overflow: hidden;
}

.scroll-card::before,
.scroll-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 18px, var(--sun) 18px 36px, var(--sky) 36px 54px);
}

.scroll-card::before { top: 0; }
.scroll-card::after { bottom: 0; }

.scroll-corners {
  position: absolute;
  inset: 24px;
  border: 3px dashed rgba(72, 53, 42, 0.4);
  border-radius: 22px;
  pointer-events: none;
}

.scroll-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  display: inline-block;
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  border: 2.5px solid var(--navy);
  margin-bottom: 1.7rem;
}

.scroll-quote {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 2rem;
}

.scroll-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #7a6a4f;
}

/* ---------- Anggota ---------- */
.anggota {
  background:
    radial-gradient(circle at 12% 15%, rgba(245, 184, 63, 0.28), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(164, 201, 139, 0.26), transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(169, 216, 232, 0.2), transparent 55%),
    var(--cream);
}

.bubble-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.4rem, 3.5vw, 3rem);
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  left: 5.6px;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.bubble {
  width: clamp(8rem, 14vw, 11rem);
  height: clamp(8rem, 14vw, 11rem);
  border-radius: 50%;
  padding: 8px;
  background: var(--c, var(--sun));
  border: var(--border);
  box-shadow: 0 10px 0 rgba(72, 53, 42, 0.55), var(--shadow);
}

.bubble .face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  opacity: 0;
  transform: scale(1.2);
  filter: blur(10px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
  background: #eef2ff;
}

.bubble.loaded .face { opacity: 1; transform: scale(1); filter: blur(0); }

.member-name {
  text-align: center;
  margin-top: 1.1rem;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  box-shadow: 0 5px 0 rgba(72, 53, 42, 0.55);
  animation: float 5s ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) + 0.35s);
}

.member-name h4 { font-size: 1.15rem; color: var(--navy); line-height: 1.2; }
.member-name p { color: #6a7ba0; font-size: 0.82rem; font-weight: 800; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 1.7rem 1rem;
  background: linear-gradient(90deg, var(--sky-deep), var(--purple));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border-top: var(--border);
  letter-spacing: 0.5px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Animations ---------- */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

@keyframes bouncePulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

@keyframes blobPop {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -16px) rotate(8deg); }
  66% { transform: translate(-8px, 10px) rotate(-6deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .budaya-grid-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .text-block, .image-block {
    margin-left: 0 !important;
  }

  .text-block {
    width: 96%;
  }
}

@media (max-width: 780px) {
  .navbar { padding: 0.55rem 0.75rem; }
  .brand { display: none; }
  .nav-links { gap: 0.3rem; }
  .nav-links a { font-size: 0.82rem; padding: 0.35rem 0.55rem; }
  .logo-slot { width: 38px; height: 38px; }

  .carousel { grid-template-columns: auto 1fr auto; }
  .car-btn { width: 46px; height: 46px; font-size: 1.1rem; }


  .quiz-option { font-size: 0.95rem; }
}

@media (max-width: 460px) {
  .carousel { grid-template-columns: 1fr; }
  .car-btn.prev { position: absolute; left: 6px; top: 40%; }
  .car-btn.next { position: absolute; right: 6px; top: 40%; }
  .car-window { width: 100%; }
}

/* ---------- Separate Karya page ---------- */
.karya-page { background: var(--cream); }
.karya-landing { min-height: 100svh; padding-top: clamp(7rem, 13vw, 10rem); background: linear-gradient(135deg, #fff9ec, #d8f2e6); }
.karya-landing h1 { font-size: clamp(3rem, 8vw, 5.8rem); color: var(--coral); text-shadow: 0 5px 0 #fff; }
.karya-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 4vw, 3rem); max-width: 1000px; margin: 0 auto; }
.karya-choice { position: relative; display: block; min-height: 270px; padding: clamp(1.5rem, 4vw, 3rem); text-align: center; text-decoration: none; color: var(--navy); background: #fff; border: var(--border); border-radius: 34px; box-shadow: var(--shadow-big); transition: transform 0.2s ease, box-shadow 0.2s ease; overflow: hidden; }
.karya-choice::after { content: ""; position: absolute; inset: 12px; border: 3px dashed rgba(72, 53, 42, 0.3); border-radius: 24px; pointer-events: none; }
.karya-choice:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 28px 44px rgba(72, 53, 42, 0.24); }
.karya-choice span { display: block; font-size: 4rem; color: var(--coral); animation: float 4s ease-in-out infinite; }
.karya-choice-12 span { color: var(--sun); animation-delay: 0.5s; }
.karya-choice h2 { position: relative; z-index: 1; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.karya-choice p { position: relative; z-index: 1; font-weight: 800; }
.karya-gallery { background: linear-gradient(180deg, #fff9ec, #eef8ff); }
.karya-grid-large { max-width: 1400px; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); padding: 0; }
.karya-grid-large .karya-card { padding: clamp(0.5rem, 1vw, 1rem); border-radius: 25px; }
.karya-grid-large .karya-card img { aspect-ratio: 1 / 0.85; }

@media (max-width: 900px) {
  .karya-grid-large { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .karya-choices { grid-template-columns: 1fr; }
  .karya-choice { min-height: 210px; }
  .karya-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .karya-grid-large .karya-card p { font-size: 0.82rem; }
}

/* ---------- Storybook and icon navigation ---------- */
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.nav-links a:hover img { transform: rotate(-8deg) scale(1.12); }

.hero-content h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #D96B43;
  font-size: clamp(4.5rem, 15vw, 12rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-shadow: -4px -4px 0 #FFF1D6, 4px -4px 0 #FFF1D6, -4px 4px 0 #FFF1D6, 4px 4px 0 #FFF1D6, 0 11px 0 #593A2B;
}

.hero-content h1 strong { color: #E8AD35; }
.hero-content h1 span, .hero-content h1 strong { display: inline-block; animation: titleBounce 2.4s ease-in-out infinite; }
.hero-content h1 strong { animation-delay: 0.16s; }

.carousel {
  display: block;
  max-width: 1120px;
  padding: 0 2.5rem;
}

.car-window {
  position: relative;
  border-radius: 28px;
  border: 7px solid #593A2B;
  background: #FFF1D6;
  padding: 0.55rem;
  overflow: visible; /* lets the turning page swing past the frame */
}



.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  z-index: 5;
}
.car-btn:hover { transform: translateY(-50%) scale(1.05); }
.car-btn:active { transform: translateY(calc(-50% + 4px)); }
.car-btn.prev { left: 3.3rem; }
.car-btn.next { right: 3.3rem; }

.book-tools {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.book-tool {
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: var(--sun);
  color: var(--navy);
  padding: 0.55rem 1rem;
  font: 800 0.95rem "Baloo 2", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--navy);
}
.book-tool:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.book-count { font-weight: 800; color: var(--navy); }

.storybook-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 4rem 2vw 2vw;
  background: rgba(72, 53, 42, 0.72);
}
.storybook-fullscreen .carousel { width: min(1200px, 100%); }

/* ---------- Budaya decorations ---------- */
.budaya::before, .budaya::after {
  content: "✿  ✦  ✿";
  position: absolute;
  z-index: 2;
  color: var(--coral);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.5rem;
  animation: float 5s ease-in-out infinite;
}
.budaya::before { left: 2%; top: 22%; }
.budaya::after { right: 2%; bottom: 12%; color: var(--sun); animation-delay: 0.8s; }
.blob-4 { animation-duration: 5.5s; }
.blob-5 { animation-duration: 6.5s; }
.budaya-image-blocks { gap: 1.4rem; }
.image-block { width: min(94%, 440px); aspect-ratio: 5 / 4; }

/* flower + leaf trim on the edges of each Budaya text box */
.text-block { position: relative; }
.text-block::before,
.text-block::after {
  content: "✿";
  position: absolute;
  font-size: 1.5rem;
  line-height: 1;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}
.text-block::before { top: -0.7rem; left: -0.6rem; color: var(--coral); }
.text-block::after { bottom: -0.7rem; right: -0.6rem; color: var(--sun); animation-delay: 0.6s; }
.text-block:nth-child(2)::before { color: var(--pink); }
.text-block:nth-child(3)::before { color: var(--purple); }
.text-block:nth-child(4)::before { color: var(--sky-deep); }
.text-block:nth-child(5)::before { color: var(--sun); }
.text-block:nth-child(2)::after { color: var(--grass); }
.text-block:nth-child(3)::after { color: var(--coral); }
.text-block:nth-child(4)::after { color: var(--pink); }
.text-block:nth-child(5)::after { color: var(--purple); }
.divider, .divider1, .divider2, .divider3 { height: 34vh; min-height: 220px; }

/* ---------- Full-width quiz ---------- */
#kuis { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.quiz-card { max-width: 1120px; width: min(100%, 1120px); min-height: 570px; display: flex; flex-direction: column; justify-content: center; }
.quiz-card-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem 3rem; align-items: center; }
.quiz-card-inner .quiz-question { grid-column: 1 / -1; }
.quiz-card-inner .quiz-img { grid-row: 2 / span 2; min-height: 300px; margin: 0; }
.quiz-options { grid-column: 2; grid-row: 2; }
.quiz-feedback { grid-column: 2; grid-row: 3; }
.quiz-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

@keyframes titleBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@media (max-width: 780px) {
  .nav-links a span { display: none; }
  .nav-links a img { width: 31px; height: 31px; }
  .nav-links a { padding: 0.3rem; }
  .carousel { padding: 0 0.2rem; max-width: 100%; }
  .car-btn { width: 48px; height: 48px; }
  .car-btn.prev { left: 0.8rem; }
  .car-btn.next { right: 0.8rem; }
  .quiz-card-inner { grid-template-columns: 1fr; gap: 1rem; }
  .quiz-card-inner .quiz-question, .quiz-card-inner .quiz-img, .quiz-options, .quiz-feedback { grid-column: 1; grid-row: auto; }
  .quiz-card-inner .quiz-img { min-height: 220px; }

  /* Book starts as a compact "little box" on mobile */
  .car-media { max-width: 100%; }
}

@media (max-width: 460px) {
  .hero-content h1 { font-size: clamp(2.6rem, 14vw, 4.3rem); }
  .book-tool span { display: none; }
  .storybook-fullscreen { padding: 3.7rem 0.35rem 0.35rem; }
}

/* Fullscreen book fills the screen on every device */
.storybook-fullscreen { align-content: center; }
.storybook-fullscreen .book-tools { position: absolute; top: 1rem; right: 1.2rem; margin: 0; }

/* Mobile Karya: snap so two images show per scroll row */
@media (max-width: 900px) {
  .karya-page { scroll-snap-type: y proximity; }
  .karya-grid-large .karya-card:nth-child(odd) { scroll-snap-align: start; }
}

/* ============================================================
   CERITA — full-viewport picture book
============================================================ */
.book-section {
  overflow-x: clip;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 10vh, 6rem) clamp(0.8rem, 3vw, 2rem) clamp(1rem, 3vh, 2rem);
}

.book-section .carousel { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 3rem; }

.book-section .car-window {
  position: relative;
  border-radius: 20px 30px 30px 20px;
  border: 8px solid #593A2B;
  background: #FFF1D6;
  padding: 0.7rem;
  box-shadow: 0 26px 50px rgba(72, 53, 42, 0.35), inset 0 0 0 6px #E8AD35;
}

/* book spine down the middle of the open spread */
.book-section .car-window::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 22px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(89, 58, 43, 0) 0%, rgba(89, 58, 43, 0.3) 50%, rgba(89, 58, 43, 0) 100%);
  pointer-events: none;
  z-index: 2;
}


.book-section .car-media { gap: 0.8rem; }

.book-section .media-hint,
.book-section .car-media-box {
  aspect-ratio: 4 / 3;
  border: 4px solid #FFF1D6;
  box-shadow: 0 14px 26px rgba(72, 53, 42, 0.2);
}

.book-section .car-body h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); }

@media (max-width: 780px) {
  .book-section { padding: 4.5rem 0.5rem 1.5rem; }
  .book-section .carousel { padding: 0 0.2rem; }
  .book-section .car-window::after { display: none; }
}

/* ============================================================
   BUDAYA — tight two-column collage
   left column: 1, 3, 5   |   right column: 2, 4 (dropped half a tile)
============================================================ */
.budaya-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(0.5rem, 1.6vw, 1.2rem);
  row-gap: clamp(0.5rem, 1.6vw, 1.1rem);
  --drop: clamp(2.4rem, 12vw, 7.2rem); /* how far the right column hangs lower */
  width: min(100%, 680px);
  margin: 0 auto;
  padding-bottom: calc(var(--drop) + 1rem); /* room for the dropped right column */
}

.budaya-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
}

.budaya-row:nth-child(odd)  { grid-column: 1; }
.budaya-row:nth-child(even) { grid-column: 2; transform: translateY(var(--drop)); }

.budaya-row .image-block {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  align-self: stretch;
  padding: 6px;
  border-radius: 18px;
}
.budaya-row:nth-child(3) .image-block,
.budaya-row:nth-child(4) .image-block { aspect-ratio: 3 / 2; }

.budaya-row .text-block {
  width: 100%;
  transform: none !important;
  align-self: stretch;
  text-align: center;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  line-height: 1.4;
  padding: 0.55rem 0.8rem;
}

/* ============================================================
   QUIZ — compact card, image on top, two options below
============================================================ */
#kuis {
  min-height: auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 5vw, 4.5rem);
}

.quiz-card {
  max-width: 720px;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
}

.quiz-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.quiz-card-inner .quiz-img {
  order: 1;
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: 0;
}

.quiz-card-inner .quiz-question {
  order: 2;
  grid-column: auto;
  text-align: center;
  margin-bottom: 0;
}

.quiz-options {
  order: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 560px;
  margin-top: 0;
}

.quiz-option { text-align: center; }

.quiz-feedback {
  order: 4;
  width: 100%;
  max-width: 560px;
  margin-top: 0.2rem;
}

@media (max-width: 460px) {
  .quiz-options { gap: 0.6rem; }
}

/* ============================================================
   CERITA — real book: two-page spread, the RIGHT page turns
   (script.js builds the leaves from the .car-card stories)
   leaf n:  front = text of story n   |  back = picture of story n+1
============================================================ */
.car-track {
  --book-h: min(76svh, 640px);
  position: relative;
  height: var(--book-h);
  min-height: 440px;
  perspective: 2800px;
  cursor: grab;
  touch-action: pan-y;
}
.car-track.dragging { cursor: grabbing; }
.car-track.dragging .leaf { transition: none; }

.book-face {
  isolation: isolate; /* each page is its own layer, so its buttons can't leak above other pages */
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.6vw, 2.2rem);
  overflow-x: hidden;
  overflow-y: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.book-face .car-media { max-width: min(100%, calc((var(--book-h) - 9rem) / 0.75)); }

/* the page that never turns: left side of the very first spread */
.book-base { left: 0; top: 0; width: 50%; height: 100%; z-index: 0; }

/* narration button: its global z-index:5 must not escape the page it lives on */
.book-face .audio-circle { z-index: auto; }

/* a leaf is hinged on the spine (its left edge) */
.leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.45, 0.05, 0.25, 1);
  will-change: transform;
}
.leaf.flipped { transform: rotateY(-180deg); }
.leaf .book-face { inset: 0; }

.face-right {
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(89, 58, 43, 0.2), rgba(89, 58, 43, 0) min(10%, 64px)), var(--card, #fff3cd);
}
.face-left {
  border-radius: 18px 0 0 18px;
  background: linear-gradient(270deg, rgba(89, 58, 43, 0.2), rgba(89, 58, 43, 0) min(10%, 64px)), var(--card, #fff3cd);
}
.face-back { transform: rotateY(180deg); }

@media (prefers-reduced-motion: reduce) {
  .leaf { transition: none; }
}

/* Phones: not enough width for two pages side by side, so the spread is
   stacked (picture on top, text below) and the bottom page flips UP. */
@media (max-width: 780px) {
  .car-track { --book-h: min(82svh, 740px); min-height: 520px; }
  .book-base { width: 100%; height: 50%; }
  .leaf { left: 0; top: 50%; width: 100%; height: 50%; transform-origin: center top; }
  .leaf.flipped { transform: rotateX(180deg); }
  .face-back { transform: rotateX(180deg); }
  .face-right {
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, rgba(89, 58, 43, 0.2), rgba(89, 58, 43, 0) min(10%, 64px)), var(--card, #fff3cd);
  }
  .face-left {
    border-radius: 18px 18px 0 0;
    background: linear-gradient(0deg, rgba(89, 58, 43, 0.2), rgba(89, 58, 43, 0) min(10%, 64px)), var(--card, #fff3cd);
  }
  .book-face { padding: 0.7rem 0.9rem; }
  .book-face .car-media { max-width: calc(((var(--book-h) / 2) - 5.5rem) / 0.75); }
}


/* ============================================================
   FULLSCREEN — the book uses the whole screen, edge to edge
   (the exit button + page counter float in the top-right corner)
============================================================ */
.book-section.storybook-fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  background: #2f2019;
  overflow: clip;
}

.book-section.storybook-fullscreen .carousel {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.book-section.storybook-fullscreen .car-window {
  height: 100%;
  box-sizing: border-box;
  border-radius: 0;
  border-width: 10px;
  padding: 0.5rem;
  box-shadow: inset 0 0 0 6px #E8AD35;
}

.book-section.storybook-fullscreen .car-track {
  --book-h: calc(100dvh - 2.3rem);
  height: 100%;
  min-height: 0;
  perspective: 5200px; /* softer swing so the turning page stays on screen */
}

.book-section.storybook-fullscreen .car-btn.prev { left: 1.1rem; }
.book-section.storybook-fullscreen .car-btn.next { right: 1.1rem; }

.book-section.storybook-fullscreen .book-tools {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  z-index: 20;
  margin: 0;
  gap: 0.7rem;
  padding: 0.3rem 0.4rem 0.3rem 1rem;
  flex-direction: row-reverse;
  background: rgba(255, 241, 214, 0.95);
  border: 3px solid var(--navy);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--navy);
}

/* bigger, book-like type on large screens */
@media (min-width: 781px) {
  .book-section.storybook-fullscreen .book-face { padding: clamp(1.5rem, 4vw, 4rem); }
  .book-section.storybook-fullscreen .car-body h3 { font-size: clamp(2rem, 3.6vw, 4rem); margin-bottom: 1.2rem; }
  .book-section.storybook-fullscreen .car-body p { font-size: clamp(1.05rem, 1.7vw, 2rem); }
}

@media (max-width: 780px) {
  .book-section.storybook-fullscreen .car-btn.prev { left: 0.6rem; }
  .book-section.storybook-fullscreen .car-btn.next { right: 0.6rem; }
  .book-section.storybook-fullscreen .book-tools { top: 0.7rem; right: 0.8rem; }
}

/* ============================================================
   BUDAYA — bigger, more spaced, floating bubbles + click-to-zoom
   (appended last so it overrides the older collage rules)
============================================================ */
.budaya-content { max-width: 1300px; }

.budaya-rows {
  width: min(100%, 1040px);
  column-gap: clamp(2.5rem, 8vw, 7rem);
  row-gap: clamp(5rem, 11vw, 9rem);
  --drop: clamp(5rem, 15vw, 11rem);
  padding-bottom: calc(var(--drop) + 4rem);
}

.budaya-row {
  gap: 0.8rem;
  cursor: pointer;
  /* uses the separate `translate` property so it never fights with
     the `transform: translateY(var(--drop))` on even rows */
  animation: bubbleDrift 9s ease-in-out infinite;
  transition: filter 0.3s ease, scale 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.budaya-row:nth-child(1) { animation-duration: 8s;    animation-delay: 0s; }
.budaya-row:nth-child(2) { animation-duration: 10s;   animation-delay: -2.5s; }
.budaya-row:nth-child(3) { animation-duration: 9s;    animation-delay: -4s; }
.budaya-row:nth-child(4) { animation-duration: 11s;   animation-delay: -1.5s; }
.budaya-row:nth-child(5) { animation-duration: 8.5s;  animation-delay: -5.5s; }

.budaya-row:hover,
.budaya-row:focus-visible { scale: 1.04; outline: none; }
.budaya-row:hover .image-block,
.budaya-row:focus-visible .image-block { box-shadow: 0 14px 26px rgba(72, 53, 42, 0.3); }
/* backdrop-filter on the caption + a hovered/animated parent made the caption vanish in Firefox */
.budaya-row .text-block { backdrop-filter: none; -webkit-backdrop-filter: none; }
.budaya-row.is-open { visibility: hidden; }

.budaya-row .image-block,
.budaya-row:nth-child(3) .image-block,
.budaya-row:nth-child(4) .image-block {
  aspect-ratio: 4 / 3;
  padding: 8px;
  border-radius: 24px;
}
.budaya-row .text-block {
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  padding: 0.8rem 1.1rem;
}

@keyframes bubbleDrift {
  0%, 100% { translate: 0 0; }
  25%      { translate: 10px -14px; }
  50%      { translate: -8px -6px; }
  75%      { translate: -12px 10px; }
}

@media (max-width: 600px) {
  .budaya-rows { grid-template-columns: 1fr; --drop: 0px; width: min(100%, 420px); padding-bottom: 2rem; }
  .budaya-row:nth-child(odd), .budaya-row:nth-child(even) { grid-column: 1; transform: none; }
}

/* ---------- Zoom overlay ---------- */
body.bz-lock { overflow: hidden; }

.bz-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 245, 235, 0.35);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  opacity: 0;
  transition: opacity 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.bz-overlay.show {
  opacity: 1;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.bz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(92vw, 820px, calc((100svh - 230px) * 1.333));
  transform-origin: top left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.bz-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: var(--border);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-big);
  overflow: hidden;
}
.bz-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid var(--navy);
  display: block;
}
.bz-image.empty { background: repeating-linear-gradient(45deg, #fff 0 14px, #fff1d6 14px 28px); }
.bz-image.empty img { opacity: 0; }

.bz-text {
  position: relative;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #fff;
  border-radius: 18px;
  padding: 1rem 1.4rem;
  box-shadow: 0 10px 26px rgba(72, 53, 42, 0.2);
}
.bz-text::before, .bz-text::after {
  content: "✿";
  position: absolute;
  font-size: 1.8rem;
  line-height: 1;
  animation: float 4s ease-in-out infinite;
}
.bz-text::before { top: -0.8rem; left: -0.7rem; color: var(--coral); }
.bz-text::after  { bottom: -0.8rem; right: -0.7rem; color: var(--sun); animation-delay: 0.6s; }

.bz-close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--sun);
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(72, 53, 42, 0.35);
  transition: transform 0.15s ease;
}
.bz-close:hover { transform: scale(1.06); }
.bz-close:active { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
  .budaya-row { animation: none; }
  .bz-card, .bz-overlay { transition-duration: 0.01s; }
}


/* ============================================================
   BUDAYA — livelier floating (each box has its own path)
   + much bigger distance between the big boxes
============================================================ */
.budaya-rows {
  row-gap: clamp(8rem, 17vw, 15rem);
  column-gap: clamp(3rem, 9vw, 8rem);
  --drop: clamp(7rem, 20vw, 15rem);
  padding-bottom: calc(var(--drop) + 6rem);
}

/* `translate` + `rotate` are animated; `scale` stays free for the hover pop */
.budaya-row {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  transition: scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.budaya-row:nth-child(1) { animation-name: bzFloatA; animation-duration: 7s;   animation-delay: 0s; }
.budaya-row:nth-child(2) { animation-name: bzFloatB; animation-duration: 8.5s; animation-delay: -2s; }
.budaya-row:nth-child(3) { animation-name: bzFloatC; animation-duration: 6.5s; animation-delay: -3.5s; }
.budaya-row:nth-child(4) { animation-name: bzFloatD; animation-duration: 9s;   animation-delay: -1s; }
.budaya-row:nth-child(5) { animation-name: bzFloatB; animation-duration: 7.5s; animation-delay: -5s; }

.budaya-row:hover,
.budaya-row:focus-visible { scale: 1.09; animation-play-state: paused; z-index: 5; }

/* the picture "breathes" a little on its own */
.budaya-row .image-block { animation: bzBreathe 4.5s ease-in-out infinite; }
.budaya-row:nth-child(even) .image-block { animation-delay: -2.2s; animation-duration: 5.5s; }

@keyframes bzFloatA {
  0%, 100% { translate: 0 0;        rotate: -2deg; }
  20%      { translate: 26px -30px; rotate: 2.5deg; }
  45%      { translate: -10px -12px; rotate: -1deg; }
  70%      { translate: -28px 20px; rotate: 3deg; }
}
@keyframes bzFloatB {
  0%, 100% { translate: 0 0;         rotate: 2deg; }
  25%      { translate: -30px -22px; rotate: -3deg; }
  50%      { translate: 14px -36px;  rotate: 1.5deg; }
  75%      { translate: 30px 12px;   rotate: -2.5deg; }
}
@keyframes bzFloatC {
  0%, 100% { translate: 0 0;        rotate: 0deg; }
  15%      { translate: 22px 14px;  rotate: -3deg; }
  40%      { translate: 32px -26px; rotate: 2deg; }
  65%      { translate: -24px -32px; rotate: -2deg; }
  85%      { translate: -30px 8px;  rotate: 3deg; }
}
@keyframes bzFloatD {
  0%, 100% { translate: 0 0;         rotate: -1.5deg; }
  30%      { translate: -26px 28px;  rotate: 3deg; }
  55%      { translate: 20px 34px;   rotate: -2.5deg; }
  80%      { translate: 28px -26px;  rotate: 2deg; }
}
@keyframes bzBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

@media (max-width: 600px) {
  .budaya-rows { row-gap: 5rem; padding-bottom: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .budaya-row, .budaya-row .image-block { animation: none !important; }
}


/* ============================================================
   BUDAYA — wider boxes, columns pushed further out to the sides
============================================================ */
.budaya-content { max-width: 1600px; }

.budaya-rows {
  width: min(94%, 1320px);
  column-gap: clamp(3rem, 14vw, 14rem);   /* columns sit further left / right */
}

/* wider boxes use a 3:2 picture so they don't get too tall */
.budaya-row .image-block,
.budaya-row:nth-child(3) .image-block,
.budaya-row:nth-child(4) .image-block { aspect-ratio: 3 / 2; }

.budaya-row .text-block { font-size: clamp(1rem, 1.7vw, 1.3rem); }

@media (max-width: 900px) {
  .budaya-rows { width: 94%; column-gap: clamp(1.5rem, 6vw, 3rem); }
}
@media (max-width: 600px) {
  .budaya-rows { width: min(100%, 460px); }
}


/* ============================================================
   BUDAYA — spread out sideways (3 across), much less height
   row 1:  1   2(lower)   3
   row 2:      4   5(lower)
============================================================ */
.budaya-content { max-width: 1800px; }

.budaya-rows {
  row-gap: clamp(4rem, 8vw, 8rem);
  --drop: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: calc(var(--drop) + 3rem);
}

@media (min-width: 1001px) {
  .budaya-rows {
    width: min(97%, 1760px);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 0;
    row-gap: clamp(8rem, 10vw, 9.5rem);   /* clears the lowered boxes + their float */
  }
  .budaya-row { width: 90%; justify-self: center; }

  .budaya-row:nth-child(1) { grid-column: 1 / 3; transform: none; }
  .budaya-row:nth-child(2) { grid-column: 3 / 5; transform: translateY(var(--drop)); }
  .budaya-row:nth-child(3) { grid-column: 5 / 7; transform: none; }
  .budaya-row:nth-child(4) { grid-column: 2 / 4; transform: none; }
  .budaya-row:nth-child(5) { grid-column: 4 / 6; transform: translateY(var(--drop)); }
}

@media (max-width: 1000px) {
  .budaya-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 94%; column-gap: clamp(1.5rem, 6vw, 4rem); }
  .budaya-row { width: 100%; }
  .budaya-row:nth-child(odd)  { grid-column: 1; transform: none; }
  .budaya-row:nth-child(even) { grid-column: 2; transform: translateY(var(--drop)); }
}
@media (max-width: 600px) {
  .budaya-rows { grid-template-columns: 1fr; --drop: 0px; row-gap: 3.5rem; }
  .budaya-row:nth-child(n) { grid-column: 1; transform: none; }
}


/* ============================================================
   BUDAYA — scattered / random-looking placement (desktop)
   every box has its own width, side-alignment and offset
============================================================ */
@media (min-width: 1001px) {
  .budaya-rows { row-gap: clamp(9rem, 11vw, 11rem); padding-bottom: 11rem; }

  .budaya-row:nth-child(1) { grid-column: 1 / 3; width: 82%; justify-self: start;  transform: translate(2.5rem, 1rem); }
  .budaya-row:nth-child(2) { grid-column: 3 / 5; width: 72%; justify-self: center; transform: translate(-2rem, 7rem); }
  .budaya-row:nth-child(3) { grid-column: 5 / 7; width: 90%; justify-self: end;    transform: translate(-1rem, 2.5rem); }
  .budaya-row:nth-child(4) { grid-column: 1 / 3; width: 76%; justify-self: center; transform: translate(5rem, 1.5rem); }
  .budaya-row:nth-child(5) { grid-column: 4 / 6; width: 88%; justify-self: start;  transform: translate(3rem, 8rem); }
}

@media (max-width: 1000px) {
  .budaya-row:nth-child(1) { transform: translate(0.5rem, 0); }
  .budaya-row:nth-child(2) { transform: translate(-0.5rem, 4rem); }
  .budaya-row:nth-child(3) { transform: translate(1rem, 1.5rem); }
  .budaya-row:nth-child(4) { transform: translate(-0.5rem, 5rem); }
  .budaya-row:nth-child(5) { transform: translate(0.5rem, 0.5rem); }
}
@media (max-width: 600px) {
  .budaya-row:nth-child(1) { transform: translateX(-0.6rem); }
  .budaya-row:nth-child(2) { transform: translateX(0.8rem); }
  .budaya-row:nth-child(3) { transform: translateX(-0.4rem); }
  .budaya-row:nth-child(4) { transform: translateX(0.6rem); }
  .budaya-row:nth-child(5) { transform: translateX(-0.5rem); }
}


/* ============================================================
   BUDAYA — free-form scatter (desktop): boxes are placed by hand,
   not on a grid, so the layout looks random and stays short
============================================================ */
@media (min-width: 1001px) {
  .budaya-rows {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: min(97%, 1700px);
    aspect-ratio: 17 / 9;        /* height follows width, so it scales with the screen */
    padding: 0;
    margin: 0 auto 4rem;
  }

  .budaya-row { position: absolute; margin: 0; }

  /* left / top = % of the area, width = % of the area */
  .budaya-row:nth-child(1) { left: 2%;  top: 3%;  width: 26%; transform: none; }
  .budaya-row:nth-child(2) { left: 35%; top: 15%; width: 24%; transform: none; }
  .budaya-row:nth-child(3) { left: 68%; top: 0%;  width: 28%; transform: none; }
  .budaya-row:nth-child(4) { left: 11%; top: 58%; width: 25%; transform: none; }
  .budaya-row:nth-child(5) { left: 58%; top: 60%; width: 27%; transform: none; }
}


/* ---------- Quiz: keep the picture inside its frame (fixes overlap with the question) ---------- */
.quiz-card-inner .quiz-img {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}
.quiz-card-inner .quiz-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.quiz-card-inner .quiz-question { position: relative; z-index: 1; margin-top: 0.4rem; }


/* ============================================================
   QUIZ — bigger card, picture, question and buttons
============================================================ */
#kuis { padding-left: clamp(1rem, 4vw, 3rem); padding-right: clamp(1rem, 4vw, 3rem); }

.quiz-card {
  max-width: 1040px;
  width: 100%;
  min-height: 0;
  padding: clamp(1.4rem, 3.5vw, 2.8rem);
}

.quiz-card-inner { gap: 1.6rem; }

.quiz-card-inner .quiz-img,
.quiz-options,
.quiz-feedback { max-width: 860px; }

.quiz-card-inner .quiz-img { aspect-ratio: 16 / 9; border-width: 5px; border-radius: 26px; }

.quiz-card-inner .quiz-question { font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.35; }

.quiz-options { gap: 1.4rem; }
.quiz-option {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  padding: 1.25rem 1.4rem;
  border-radius: 22px;
}

.quiz-progress { font-size: 1.05rem; margin-bottom: 0.6rem; }
.quiz-bar { height: 18px; }

@media (max-width: 560px) {
  .quiz-options { grid-template-columns: 1fr; gap: 0.8rem; }
}


/* ---------- Cerita: bigger story text ---------- */
.book-section .car-body h3 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 1.1rem; }
.book-section .car-body p  { font-size: clamp(1.1rem, 2vw, 1.75rem); line-height: 1.6; margin-bottom: 0.9rem; }

@media (min-width: 781px) {
  .book-section.storybook-fullscreen .car-body h3 { font-size: clamp(2.4rem, 4.6vw, 5rem); }
  .book-section.storybook-fullscreen .car-body p  { font-size: clamp(1.4rem, 2.4vw, 2.8rem); }
}
@media (max-width: 780px) {
  .book-section .car-body h3 { font-size: clamp(1.3rem, 5vw, 1.8rem); margin-bottom: 0.5rem; }
  .book-section .car-body p  { font-size: clamp(0.95rem, 3.6vw, 1.15rem); margin-bottom: 0.5rem; }
}
