/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --primary: #1565C0;
  --primary-light: #1e88e5;
  --secondary: #FF6B35;
  --accent: #FFD600;
  --green: #2E7D32;
  --green-l: #43A047;
  --red: #C62828;
  --purple: #6A1B9A;
  --teal: #00838F;
  --sky: #B3E5FC;
  --bg: #EFF6FF;
  --card: #FFFFFF;
  --text: #1A237E;
  --muted: #546E7A;
  --shadow-sm: 0 2px 8px rgba(21, 101, 192, .10);
  --shadow: 0 8px 32px rgba(21, 101, 192, .14);
  --shadow-lg: 0 16px 48px rgba(21, 101, 192, .20);
  --radius: 20px;
  --radius-sm: 12px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
}

/* ============================================================
   SCREEN SYSTEM
============================================================ */
.screen {
  display: none;
  min-height: 100vh;
  animation: fadeUp .4s ease both;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInScreen {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================================
   FULLSCREEN TOGGLE – pojok kanan bawah, ukuran kecil
============================================================ */
#fullscreen-toggle {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9999;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #BBDEFB;
  background: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: transform .2s, background .2s, border-color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  backdrop-filter: blur(4px);
  opacity: 0.65;
}

#fullscreen-toggle:hover {
  transform: scale(1.15);
  background: #E3F2FD;
  border-color: var(--primary);
  opacity: 1;
}

/* Sembunyikan tombol floating suara & layar penuh saat mengerjakan soal evaluasi */
body.eval-cbt-active #sound-toggle,
body.eval-cbt-active #fullscreen-toggle {
  display: none !important;
}

/* ============================================================
   BACK BUTTON (STICKY SAAT DI-SCROLL)
============================================================ */
.back-btn {
  position: sticky;
  top: 12px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  margin: 14px 16px 0;
  align-self: flex-start;
  transition: background .18s, color .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.18);
}

.back-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(-3px);
}

/* ============================================================
   SECTION WRAPPER
============================================================ */
.section-wrap {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 4px 16px 36px;
}

.section-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(22px, 4.5vw, 32px);
  color: var(--primary);
  text-align: center;
  margin: 14px 0 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow:
    inset 0 -3em 3em rgba(21, 101, 192, 0.04),
    0 0 0 2px rgba(144, 202, 249, 0.55),
    0.3em 0.3em 1em rgba(21, 101, 192, 0.18);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow:
    inset 0 -3em 3em rgba(21, 101, 192, 0.07),
    0 0 0 2px rgba(21, 101, 192, 0.35),
    0.4em 0.4em 1.4em rgba(21, 101, 192, 0.28);
  transform: scale(1.008);
}


/* ============================================================
   ★ 1. HALAMAN PEMBUKA
============================================================ */
/* ============================================================
   ★ HALAMAN PEMBUKA – GeoMapTara (redesign)
============================================================ */
#screen-intro {
  background: linear-gradient(180deg, #29B6F6 0%, #039BE5 30%, #0288D1 60%, #87CEEB 100%);
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 10px 0 0;
  position: relative;
  overflow: hidden;
  height: 100vh;
  max-height: 100vh;
  min-height: 100vh;
  animation: fadeInScreen .35s ease both;
}

/* Langit gradient animasi */
#intro-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      #1E90FF 0%,
      #2FBDFF 25%,
      #56CCF2 50%,
      #87CEEB 75%,
      #B0E2FF 100%);
  z-index: 0;
}

/* Bintang kelap-kelip */
.star-twinkle {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: starTwinkle var(--dur, 2s) infinite alternate ease-in-out;
}

@keyframes starTwinkle {
  0% {
    opacity: 0.1;
    transform: scale(0.5);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.4);
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
  }

  100% {
    opacity: 0.2;
    transform: scale(0.7);
  }
}

/* Awan floating */
.intro-cloud {
  position: absolute;
  z-index: 2;
  animation: cloudFloat var(--dur, 8s) ease-in-out infinite alternate;
}

@keyframes cloudFloat {
  from {
    transform: translateX(0) translateY(0);
  }

  to {
    transform: translateX(var(--mx, 18px)) translateY(var(--my, -10px));
  }
}

/* Landscape */
#intro-land {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  pointer-events: none;
}

/* Karakter */
.intro-char {
  position: absolute;
  bottom: 0;
  z-index: 5;
  /* Ukuran dasar ikut TINGGI layar (biar proporsional dgn tanah/rumput),
     tapi dibatasi max-width supaya tidak menabrak logo di layar sempit&tinggi */
  height: clamp(180px, 42vh, 340px);
  width: auto;
  max-width: 30vw;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
  will-change: transform;
  pointer-events: none;
}

#char-cowo {
  left: 0;
  transform: translateX(-120%);
}

#char-cewe {
  right: 0;
  transform: translateX(120%);
}

/* Layar HP: jaga rasio aspek karakter agar tidak gepeng & pusatkan tombol mulai */
@media (max-width: 600px) {
  #screen-intro {
    justify-content: center;
    padding: 16px 12px 18vh;
  }

  #btn-mulai-belajar {
    font-size: 16px;
    padding: 11px 30px;
    margin-top: -8px;
  }

  #btn-mulai-belajar .play-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .intro-char {
    height: auto;
    width: clamp(110px, 30vw, 165px);
    max-width: none;
  }
}

/* Layar sangat sempit: geser dikit ke tepi biar makin lega di tengah */
@media (max-width: 420px) {
  #char-cowo {
    left: -3%;
  }

  #char-cewe {
    right: -3%;
  }
}

/* Logo */
#intro-logo {
  position: relative;
  z-index: 10;
  width: clamp(270px, 66vw, 600px);
  max-width: 76vw;
  /* jaga jarak dari karakter kiri-kanan di layar sempit */
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(-40px) scale(0.85);
}

/* Tombol Mulai */
#btn-mulai-belajar {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #FFD600, #FF8F00);
  color: #1A237E;
  border: none;
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(18px, 4vw, 24px);
  padding: 14px 52px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: -45px;
  box-shadow: 0 8px 28px rgba(255, 152, 0, .55), 0 0 0 0 rgba(255, 214, 0, 0.4);
  transition: transform .18s, box-shadow .18s;
  letter-spacing: .5px;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: btnPulse 2.5s 1.8s infinite ease-in-out;
}

@keyframes btnPulse {

  0%,
  100% {
    box-shadow: 0 8px 28px rgba(255, 152, 0, .55), 0 0 0 0 rgba(255, 214, 0, 0.4);
  }

  50% {
    box-shadow: 0 8px 28px rgba(255, 152, 0, .55), 0 0 0 14px rgba(255, 214, 0, 0);
  }
}

#btn-mulai-belajar:hover {
  transform: translateY(-4px) scale(1.06) !important;
}

#btn-mulai-belajar .play-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Center content wrapper */
#intro-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 0;
}

/* Badge */
.intro-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .95);
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 50px;
  padding: 5px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  opacity: 0;
  backdrop-filter: blur(4px);
}

/* Responsive: layar pendek / landscape (HP miring, tablet kecil) */
@media (max-height: 620px) {
  #screen-intro {
    padding: 8px 0 0;
  }

  .intro-char {
    height: clamp(120px, 30vh, 200px);
  }

  #intro-logo {
    width: clamp(220px, 42vw, 380px);
  }

  #intro-center {
    padding-bottom: 0;
    gap: 10px;
  }

  #btn-mulai-belajar {
    margin-top: -28px;
  }

  .intro-badge {
    font-size: 10px;
    padding: 4px 12px;
  }
}

@media (max-height: 480px) {
  .intro-char {
    display: none;
  }

  /* karakter disembunyikan agar tidak nabrak konten tengah di layar sangat pendek */
}

/* Old classes kept for compatibility */
.stars-bg {
  display: none;
}

.star-dot {
  display: none;
}

.intro-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
}

.intro-title {
  display: none;
}

.intro-subtitle {
  display: none;
}

.btn-start {
  display: none;
}

/* ============================================================
   ★ 2. MENU UTAMA – GeoMapTara Redesign
============================================================ */
#screen-menu {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  align-items: stretch;
  padding: 0;
  background: transparent;
  animation: fadeInScreen .35s ease both;
}

#screen-menu.active #menu-topbar,
#screen-menu.active #menu-greeting,
#screen-menu.active #menu-main-layout {
  animation: fadeUp .42s ease both;
}

/* Background langit menu — sama dgn intro tapi lebih muted */
#menu-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg,
      rgba(30, 144, 255, 0.75) 0%,
      rgba(47, 189, 255, 0.65) 30%,
      rgba(86, 204, 242, 0.55) 60%,
      rgba(176, 226, 255, 0.45) 100%);
  backdrop-filter: blur(0px);
}

/* overlay putih ringan agar menu lebih fokus */
#menu-sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
}

/* Landscape menu */
#menu-land {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.68;
}

/* Karakter di menu */
.menu-char {
  position: absolute;
  bottom: 0;
  z-index: 3;
  /* Sama seperti karakter di halaman Pembuka: ikut TINGGI layar,
     dibatasi max-width supaya aman di layar sempit&tinggi */
  height: clamp(150px, 34vh, 280px);
  width: auto;
  max-width: 30vw;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  opacity: 0.88;
}

#menu-char-cowo {
  left: 0;
}

#menu-char-cewe {
  right: 0;
}

/* Awan berjalan di menu */
.menu-cloud {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  animation: menuCloudMove var(--dur, 28s) linear infinite;
  opacity: 0.88;
}

.menu-cloud.kiri {
  top: var(--top, 8%);
  width: clamp(120px, 18vw, 200px);
}

.menu-cloud.kanan {
  top: var(--top, 20%);
  width: clamp(90px, 13vw, 150px);
}

@keyframes menuCloudMove {
  from {
    transform: translateX(110vw);
  }

  to {
    transform: translateX(-120%);
  }
}

/* Top bar — logo + pencapaian & pengaturan */
#menu-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
}

#menu-topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(18px, 4vw, 26px);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50px;
  padding: 6px 16px;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.15);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#menu-topbar-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.22);
}

#menu-topbar-logo:active {
  transform: scale(0.97);
}

.icon-geomaptara-topbar {
  width: clamp(24px, 4.5vw, 32px);
  height: clamp(24px, 4.5vw, 32px);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.icon-geomaptara-card {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.menu-top-actions {
  display: flex;
  gap: 8px;
}

.menu-top-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.82);
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(12px, 2.5vw, 15px);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.15);
  backdrop-filter: blur(6px);
  transition: transform .18s, box-shadow .18s, background .18s;
}

.menu-top-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.22);
}

.menu-top-btn .btn-icon {
  font-size: 18px;
}

/* Sapaan tengah */
#menu-greeting {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 18px 16px 10px;
}

#menu-greeting h2 {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(22px, 5vw, 36px);
  color: #1A237E;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

#menu-greeting p {
  font-size: clamp(13px, 2.5vw, 16px);
  font-weight: 700;
  color: #37474F;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
}

/* Layout utama menu */
#menu-main-layout {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 16px 16px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Menu kecil kiri — DIHAPUS, tidak dipakai */
#menu-side-left {
  display: none;
}

.menu-side-card {
  background: rgba(255, 255, 255, 0.90);
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: 0 6px 24px rgba(21, 101, 192, 0.18);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  text-align: left;
}

.menu-side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(21, 101, 192, 0.25);
}

.menu-side-card .sc-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #E3F2FD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.menu-side-card .sc-text {
  flex: 1;
}

.menu-side-card .sc-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(12px, 1.8vw, 14px);
  color: var(--primary);
  line-height: 1.2;
  display: block;
}

.menu-side-card .sc-desc {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
  display: block;
  margin-top: 2px;
}

.menu-side-card .sc-arrow {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* 3 menu besar tengah */
#menu-center-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Warna background card sesuai referensi */
.menu-main-card {
  border-radius: 24px;
  padding: 24px 12px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
  border: 2.5px solid transparent;
}

/* Warna background card */
.menu-main-card.card-belajar {
  background: rgba(207, 232, 255, 0.92);
  border-color: rgba(144, 202, 249, 0.7);
}

.menu-main-card.card-peta {
  background: rgba(209, 243, 213, 0.92);
  border-color: rgba(129, 218, 138, 0.7);
}

.menu-main-card.card-kuis {
  background: rgba(225, 213, 245, 0.92);
  border-color: rgba(186, 155, 229, 0.7);
}

.menu-main-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.menu-main-card.card-belajar:hover {
  border-color: #1565C0;
  background: rgba(207, 232, 255, 0.98);
}

.menu-main-card.card-peta:hover {
  border-color: #2E7D32;
  background: rgba(209, 243, 213, 0.98);
}

.menu-main-card.card-kuis:hover {
  border-color: #6A1B9A;
  background: rgba(225, 213, 245, 0.98);
}

/* Gambar icon lebih besar */
.menu-main-card img {
  width: clamp(100px, 18vw, 160px);
  height: clamp(100px, 18vw, 160px);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.20));
  transition: transform .25s;
}

.menu-main-card:hover img {
  transform: scale(1.1) translateY(-6px);
}

.menu-main-card .mc-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(18px, 3.2vw, 26px);
}

.card-belajar .mc-title {
  color: #1565C0;
}

.card-peta .mc-title {
  color: #2E7D32;
}

.card-kuis .mc-title {
  color: #6A1B9A;
}

.menu-main-card .mc-desc {
  font-size: clamp(11px, 1.8vw, 14px);
  font-weight: 700;
  color: #546E7A;
  text-align: center;
  line-height: 1.45;
  padding: 0 6px;
}

/* Menu kecil kanan */
#menu-side-right {
  flex-shrink: 0;
  width: clamp(148px, 21vw, 185px);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.menu-side-card.card-side-game {
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.96), rgba(255, 236, 179, 0.94));
  border-color: rgba(255, 193, 7, 0.75);
}

.menu-side-card.card-side-game .sc-icon-wrap {
  background: #FFE082;
}

.menu-side-card.card-side-game .sc-title {
  color: #E65100;
}

.menu-side-card.card-side-game .sc-arrow {
  background: #FF8F00;
}

.menu-side-card.card-minigame {
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.95), rgba(255, 255, 255, 0.94));
  border-color: rgba(255, 193, 7, 0.65);
}

.menu-side-card.card-minigame .sc-icon-wrap {
  background: #FFF3E0;
}

.menu-side-card.card-minigame .sc-title {
  color: #E65100;
}

.menu-side-card.card-minigame .sc-arrow {
  background: #FF6B35;
}

/* Responsive mobile */
@media (max-width: 640px) {
  #menu-topbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 12px 0;
  }

  #menu-topbar-logo {
    font-size: 17px;
    padding: 5px 14px;
  }

  .menu-top-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .menu-top-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  #menu-main-layout {
    flex-direction: column;
    align-items: center;
    padding: 0 12px 140px;
  }

  #menu-side-right {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .menu-side-card {
    flex: 1 1 140px;
    padding: 11px 12px;
  }

  #menu-center-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 8px;
  }

  .menu-main-card img {
    width: 72px;
    height: 72px;
  }

  .menu-main-card {
    padding: 16px 6px 12px;
    gap: 8px;
  }

  .menu-main-card .mc-title {
    font-size: 15px;
  }

  .menu-main-card .mc-desc {
    font-size: 10px;
  }

  .menu-char {
    height: auto;
    width: clamp(95px, 26vw, 150px);
    max-width: none;
  }
}

/* Tablet kecil / medium (belum ke-cover breakpoint 640px di atas) */
@media (min-width: 641px) and (max-width: 900px) {
  #menu-main-layout {
    flex-direction: column;
    align-items: center;
  }

  #menu-side-right {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .menu-side-card {
    flex: 1 1 180px;
  }
}

/* Layar pendek / landscape: karakter & awan menu disembunyikan agar tidak menabrak card */
@media (max-height: 560px) {

  .menu-char,
  .menu-cloud {
    display: none;
  }

  #menu-greeting {
    padding: 10px 16px 6px;
  }
}

/* ============================================================
   ★ 3. PETUNJUK
============================================================ */
#screen-petunjuk {
  background: linear-gradient(160deg, #E8F5E9, var(--bg));
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #F1F8E9;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--green-l);
}

.step-num {
  background: var(--green-l);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
}

.step-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  padding-top: 5px;
}

/* ============================================================
   ★ 4. MATERI
============================================================ */
/* background diatur di CSS baru di bawah */

/* ── Tab navigasi sub materi ── */
.tab-row {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(21, 101, 192, 0.12);
  border: 1px solid #BBDEFB;
}

.tab-btn {
  flex: 1;
  padding: 9px 6px;
  border: none;
  border-radius: 50px;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #1565C0;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 0.2px;
}

.tab-btn.active,
.tab-btn:hover {
  background: linear-gradient(135deg, #1565C0, #1E88E5);
  color: #fff;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.25);
}

.materi-panel {
  display: none;
}

.materi-panel.active {
  display: block;
  animation: fadeUp .3s ease;
}

/* Video box */
.video-box {
  background: linear-gradient(135deg, #1A237E, #283593);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.video-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .06) 0%, transparent 70%);
}

.play-btn {
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, .2);
  border: 3px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 12px;
  transition: transform .2s, background .2s;
}

.video-box:hover .play-btn {
  transform: scale(1.12);
  background: rgba(255, 255, 255, .35);
}

/* Unsur peta */
.unsur-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}

.unsur-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid #BBDEFB;
  background: #FFFFFF;
  color: #1565C0;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.unsur-btn:hover {
  background: #E3F2FD;
  border-color: #1565C0;
  color: #1565C0;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(21, 101, 192, 0.16);
}

.unsur-btn.active {
  background: linear-gradient(135deg, #1565C0, #1E88E5) !important;
  border-color: #1565C0 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.32);
}

.unsur-info {
  background: #FFFFFF;
  border: 2px solid #BBDEFB;
  border-left: 5px solid #1565C0;
  border-radius: 16px;
  padding: 16px 18px;
  min-height: 76px;
  box-shadow: 0 4px 18px rgba(21, 101, 192, 0.08);
  transition: all .25s ease;
}

.unsur-info h4 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #1A237E;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.unsur-info p {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  color: #37474F;
}

/* Geo badges */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.geo-badge {
  border-radius: 14px;
  padding: 14px 10px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   ★ 5. JELAJAH PETA (D3.js)
============================================================ */
#screen-peta {
  background: linear-gradient(160deg, #E0F7FA, var(--bg));
}

/* Kontainer peta D3 */
#map-container {
  width: 100%;
  background: #B3E5FC;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  cursor: grab;
}

#map-container:active {
  cursor: grabbing;
}

#map-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Tooltip D3 */
#map-tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(255, 255, 255, .97);
  border: 2.5px solid var(--primary);
  border-radius: 14px;
  padding: 10px 14px;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 8px 24px rgba(21, 101, 192, .22);
  max-width: 200px;
  z-index: 9000;
  opacity: 0;
  transition: opacity .2s;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

#map-tooltip.show {
  opacity: 1;
}

#map-tooltip strong {
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  color: var(--secondary);
  display: block;
  margin-bottom: 4px;
}

/* Popup info pulau */
#pulau-popup {
  background: var(--card);
  border-radius: var(--radius);
  border: 3px solid var(--primary);
  padding: 18px 20px;
  margin-top: 14px;
  display: none;
  animation: popIn .35s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: var(--shadow-lg);
  transition: border-color .3s;
}

#pulau-popup.show {
  display: block;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.82)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

#pulau-popup h3 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px;
}

#pulau-popup p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin-top: 8px;
  color: var(--muted);
}

#pulau-popup .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

#pulau-popup .badge {
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

/* Island select buttons */
.island-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}

.island-btn {
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}

.island-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.island-btn.active-island {
  outline: 3px solid rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .15), 0 6px 18px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}

/* ── Label pulau interaktif di SVG peta ── */
.map-island-label {
  cursor: pointer;
}

/* Hint bar di atas peta */
.map-hint-bar {
  background: rgba(21, 101, 192, .08);
  border: 1.5px dashed #90CAF9;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}

/* ── Popup: tab konten ── */
.pp-tabs {
  display: flex;
  gap: 0;
  margin: 12px 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #E0E0E0;
}

.pp-tab-btn {
  flex: 1;
  border: none;
  background: #F5F5F5;
  padding: 8px 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s;
  color: #546E7A;
}

.pp-tab-btn.active {
  color: #fff;
}

.pp-tab-btn:first-child {
  border-radius: 8px 0 0 8px;
}

.pp-tab-btn:last-child {
  border-radius: 0 8px 8px 0;
}

.pp-tab-panel {
  display: none;
  animation: fadeUp .25s ease;
}

.pp-tab-panel.active {
  display: block;
}

.pp-fakta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.pp-fakta-item {
  background: #F8F9FA;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  border-left: 3px solid transparent;
}

.pp-batas-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 13px;
  font-weight: 700;
}

.pp-batas-item:last-child {
  border-bottom: none;
}

.pp-batas-arah {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
}

/* Zoom controls */
.zoom-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.zoom-btn {
  background: var(--card);
  border: 2px solid var(--primary);
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s;
  box-shadow: var(--shadow-sm);
}

.zoom-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Loading peta */
#map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #B3E5FC;
  border-radius: 20px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: var(--primary);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 5px solid #e3f2fd;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* ============================================================
   ★ 6. KUIS
============================================================ */
#screen-kuis {
  background: linear-gradient(160deg, #F3E5F5, var(--bg));
}

.progress-wrap {
  margin-bottom: 16px;
}

.progress-bar {
  background: #E0E0E0;
  border-radius: 50px;
  height: 12px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--green-l), var(--teal));
  height: 100%;
  border-radius: 50px;
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

.soal-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.soal-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.soal-q {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  margin-bottom: 16px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  background: #F5F5F5;
  border: 2.5px solid #E0E0E0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, border-color .15s, transform .12s;
}

.choice-btn:hover:not(:disabled) {
  background: #E3F2FD;
  border-color: var(--primary);
  transform: translateX(5px);
}

.choice-btn.correct {
  background: #E8F5E9;
  border-color: var(--green-l);
  color: var(--green);
}

.choice-btn.wrong {
  background: #FFEBEE;
  border-color: var(--red);
  color: var(--red);
}

.choice-btn:disabled {
  cursor: default;
}

.choice-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.choice-btn.correct .choice-letter {
  background: var(--green-l);
}

.choice-btn.wrong .choice-letter {
  background: var(--red);
}

.feedback-msg {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  min-height: 18px;
}

.feedback-msg.ok {
  color: var(--green-l);
}

.feedback-msg.err {
  color: var(--red);
}

.kuis-btns {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-next {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 19px;
  padding: 12px 36px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(21, 101, 192, .38);
  transition: transform .18s, box-shadow .18s;
}

.btn-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(21, 101, 192, .48);
}

/* Hasil kuis */
#hasil-section {
  display: none;
}

.hasil-card {
  text-align: center;
  padding: 28px 20px;
}

.hasil-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--green-l) 0deg, var(--green-l) var(--deg, 0deg), #E0E0E0 var(--deg, 0deg));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 28px rgba(46, 125, 50, .25);
}

.hasil-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hasil-num {
  font-family: 'Fredoka One', sans-serif;
  font-size: 36px;
  color: var(--primary);
  line-height: 1;
}

.hasil-of {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.hasil-msg {
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.hasil-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 20px;
}

.btn-ulang {
  background: linear-gradient(135deg, var(--secondary), #BF360C);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 19px;
  padding: 13px 34px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 107, 53, .4);
  transition: transform .18s;
  margin: 6px;
}

.btn-ulang:hover {
  transform: scale(1.06);
}

.btn-home {
  background: linear-gradient(135deg, var(--green-l), var(--green));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 19px;
  padding: 13px 34px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(46, 125, 50, .35);
  transition: transform .18s;
  margin: 6px;
}

.btn-home:hover {
  transform: scale(1.06);
}

/* ============================================================
   ★ 7. TENTANG — Premium Media Profile & Curriculum Redesign
============================================================ */
#screen-tentang {
  background: linear-gradient(165deg, #E3F2FD 0%, #EDE7F6 50%, #FFF8E1 100%);
  min-height: 100vh;
  padding-bottom: 60px;
}

.tt-wrap {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 16px 40px;
}

/* ── Hero Banner ── */
.tt-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8EAF6 60%, #E3F2FD 100%);
  border: 2px solid #9FA8DA;
  border-radius: 24px;
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(40, 53, 147, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.tt-hero-banner:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(40, 53, 147, 0.22);
  border-color: #5C6BC0;
}

.tt-hero-banner:hover .tt-hero-img {
  transform: scale(1.08) translateY(-4px);
}

.tt-hero-left {
  flex: 1;
}

.tt-hero-badge {
  display: inline-block;
  background: #283593;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(40, 53, 147, 0.25);
}

.tt-hero-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  color: #1A237E;
  margin-bottom: 8px;
  line-height: 1.25;
}

.tt-hero-desc {
  font-size: 13.5px;
  font-weight: 600;
  color: #455A64;
  line-height: 1.6;
}

.tt-hero-mascot-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scaleX(-1);
}

.tt-hero-img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  animation: ptkFloat 3.5s ease-in-out infinite;
  transition: transform 0.25s ease;
}

/* ── Segmented Tab Bar (Sticky) ── */
.tt-tab-bar {
  position: sticky;
  top: 12px;
  z-index: 140;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px;
  border-radius: 20px;
  border: 2px solid #C5CAE9;
  box-shadow: 0 6px 22px rgba(21, 101, 192, 0.14);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tt-tab-bar::-webkit-scrollbar {
  display: none;
}

.tt-tab-btn {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Fredoka One', sans-serif;
  font-size: 13.5px;
  color: #546E7A;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.tt-tab-btn:hover {
  background: #EDE7F6;
  color: #3949AB;
  transform: translateY(-3px);
}

.tt-tab-btn.active {
  background: linear-gradient(135deg, #1565C0 0%, #283593 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.32);
  transform: translateY(-2px);
}

.tt-tab-emoji {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.tt-tab-btn.active .tt-tab-emoji {
  transform: scale(1.22);
}

/* ── Panels ── */
.tt-panel {
  display: none;
  scroll-margin-top: 96px;
}

.tt-panel.active {
  display: block;
  animation: ptkFadeUp 0.35s ease both;
}

.tt-panel-header {
  text-align: center;
  margin-bottom: 22px;
}

.tt-panel-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px;
  color: #1565C0;
  margin-bottom: 5px;
}

.tt-panel-subtitle {
  font-size: 13.5px;
  font-weight: 700;
  color: #546E7A;
}

/* ── Section Stack & Cards ── */
.tt-section-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tt-card-box {
  background: #ffffff;
  border-radius: 22px;
  border: 2px solid #E0E0E0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 22px;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.tt-card-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(21, 101, 192, 0.16);
  border-color: #64B5F6;
}

.tt-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #F0F4F8;
  padding-bottom: 10px;
}

.tt-box-icon {
  font-size: 24px;
  transition: transform 0.25s ease;
}

.tt-card-box:hover .tt-box-icon {
  transform: scale(1.22) rotate(-5deg);
}

.tt-box-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #1565C0;
}

.tt-box-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #78909C;
  margin-top: 2px;
}

.tt-box-intro {
  font-size: 13px;
  font-weight: 700;
  color: #546E7A;
  margin-bottom: 14px;
}

/* ── Info Grid ── */
.tt-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.tt-info-row {
  display: flex;
  flex-direction: column;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.tt-info-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: #90CAF9;
}

.tt-info-label {
  font-size: 11px;
  font-weight: 800;
  color: #78909C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tt-info-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #263238;
}

.tt-info-val.highlight {
  color: #1565C0;
}

/* ── Filosofi ── */
.tt-filosofi-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tt-filosofi-item {
  background: #F1F8E9;
  border-left: 4px solid #43A047;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-left-width 0.2s ease;
}

.tt-filosofi-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(67, 160, 71, 0.18);
  border-left-width: 7px;
}

.tt-fil-badge {
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #2E7D32;
  margin-bottom: 6px;
}

.tt-fil-desc {
  font-size: 13px;
  font-weight: 600;
  color: #37474F;
  line-height: 1.6;
}

/* ── Developer & Lecturer Profile Cards ── */
.tt-developer-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F7FA 100%);
}

.tt-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.tt-profile-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 18px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.tt-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(21, 101, 192, 0.12);
  border-color: #90CAF9;
}

.tt-profile-lecturer:hover {
  box-shadow: 0 12px 28px rgba(46, 125, 50, 0.12);
  border-color: #A5D6A7;
}

.tt-profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tt-profile-photo-wrap {
  width: 90px;
  height: 102px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 3px solid #90CAF9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.16);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tt-profile-lecturer .tt-profile-photo-wrap {
  background: #FFFFFF;
  border-color: #81C784;
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.16);
}

.tt-profile-card:hover .tt-profile-photo-wrap {
  transform: scale(1.06);
}

.tt-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.tt-profile-head {
  flex: 1;
  min-width: 0;
}

.tt-profile-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.tt-profile-badge.dev {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #BBDEFB;
}

.tt-profile-badge.lecturer {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.tt-author-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #1A237E;
  margin-bottom: 3px;
  line-height: 1.25;
}

.tt-author-role {
  font-size: 12px;
  font-weight: 800;
  color: #1565C0;
  margin-bottom: 0;
}

.tt-profile-lecturer .tt-author-role {
  color: #2E7D32;
}

/* ── Riwayat Pendidikan Timeline ── */
.tt-edu-section {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
}

.tt-edu-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #263238;
  margin-bottom: 10px;
}

.tt-edu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-left: 16px;
  border-left: 2px solid #BBDEFB;
  margin-left: 5px;
}

.tt-profile-lecturer .tt-edu-list {
  border-left-color: #C8E6C9;
}

.tt-edu-item {
  position: relative;
}

.tt-edu-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1976D2;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px #BBDEFB;
}

.tt-profile-lecturer .tt-edu-dot {
  background: #2E7D32;
  box-shadow: 0 0 0 2px #C8E6C9;
}

.tt-edu-degree {
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.3;
}

.tt-edu-school {
  font-size: 12px;
  font-weight: 600;
  color: #546E7A;
  margin-top: 2px;
}

.tt-edu-year {
  font-weight: 700;
  color: #1565C0;
}

.tt-profile-lecturer .tt-edu-year {
  color: #2E7D32;
}

.tt-author-quote {
  font-size: 12.5px;
  font-weight: 600;
  color: #546E7A;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  padding-top: 4px;
  border-top: 1px dashed #CFD8DC;
}

/* ── Kurikulum Badges & CP Card ── */
.tt-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-kuri-pill {
  background: #E8EAF6;
  color: #283593;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #C5CAE9;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.tt-kuri-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(40, 53, 147, 0.18);
}

.tt-cp-card {
  background: linear-gradient(135deg, #FFFDE7 0%, #FFF9C4 100%);
  border-color: #FDD835;
}

.tt-cp-card:hover {
  border-color: #FBC02D;
  box-shadow: 0 18px 42px rgba(245, 127, 23, 0.18);
}

.tt-cp-quote p {
  font-size: 13.5px;
  font-weight: 700;
  color: #5D4037;
  line-height: 1.75;
  font-style: italic;
}

/* ── Tujuan Pembelajaran (TP) ── */
.tt-tp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tt-tp-item {
  display: flex;
  flex-direction: column;
  background: var(--tp-bg);
  border: 2px solid color-mix(in srgb, var(--tp-color) 35%, transparent);
  border-radius: 16px;
  padding: 14px 18px;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.tt-tp-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  border-color: var(--tp-color);
}

.tt-tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tt-tp-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tp-color);
  color: #ffffff;
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.tt-tp-item:hover .tt-tp-num {
  transform: scale(1.22) rotate(-6deg);
}

.tt-tp-badge {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: var(--tp-color);
  padding: 3px 10px;
  border-radius: 8px;
}

.tt-tp-body {
  font-size: 13px;
  font-weight: 600;
  color: #263238;
  line-height: 1.6;
}

/* ── Topik Grid ── */
.tt-topik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tt-topik-card {
  background: #F8FAFC;
  border: 1.5px solid #CFD8DC;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.tt-topik-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(21, 101, 192, 0.16);
  border-color: #1976D2;
}

.tt-topik-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #1565C0;
  background: #E3F2FD;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 5px;
}

.tt-topik-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #263238;
  margin-bottom: 4px;
}

.tt-topik-desc {
  font-size: 12px;
  font-weight: 600;
  color: #546E7A;
  line-height: 1.5;
}

/* ── Features Grid ── */
.tt-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tt-feat-card {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid #ECEFF1;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.tt-feat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(21, 101, 192, 0.16);
  border-color: #42A5F5;
}

.tt-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.tt-feat-card:hover .tt-feat-icon {
  transform: scale(1.22) rotate(-6deg);
}

.tt-feat-body {
  flex: 1;
}

.tt-feat-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  color: #263238;
  margin-bottom: 5px;
}

.tt-feat-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: #546E7A;
  line-height: 1.55;
}

/* ── Tech Stack & Data ── */
.tt-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tt-tag {
  background: linear-gradient(135deg, #1565C0, #1E88E5);
  color: #ffffff;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.2);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.tt-tag:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.35);
}

.tt-data-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tt-data-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.2s ease;
}

.tt-data-item:hover {
  transform: translateX(4px);
}

.tt-data-dot {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tt-data-content {
  font-size: 13px;
  font-weight: 600;
  color: #455A64;
  line-height: 1.55;
}

.tt-license-box {
  background: #FFFDF5;
  border-color: #FFE082;
}

.tt-license-desc {
  font-size: 13px;
  font-weight: 600;
  color: #5D4037;
  line-height: 1.6;
  margin-bottom: 12px;
}

.tt-copy-text {
  font-family: 'Fredoka One', sans-serif;
  font-size: 13px;
  color: #C2185B;
  text-align: center;
  border-top: 1.5px dashed #FFD54F;
  padding-top: 12px;
}

/* ── Responsive Mobile Adjustments ── */
@media (max-width: 640px) {
  .tt-hero-banner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 18px;
    gap: 12px;
  }

  .tt-hero-img {
    max-height: 100px;
  }

  .tt-tab-bar {
    justify-content: flex-start;
    padding: 6px;
    flex-wrap: wrap;
  }

  .tt-tab-btn {
    min-width: unset;
    font-size: 12px;
    padding: 8px 8px;
  }

  .tt-profiles-grid {
    grid-template-columns: 1fr;
  }

  .tt-profile-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tt-features-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width:480px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-card {
    padding: 24px 14px 22px;
  }

  .geo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   MATERI — KOMPONEN BARU (A/B/C rombakan)
============================================================ */

/* Foto materi */
.materi-foto-wrap {
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.10);
  border: 2px solid #BBDEFB;
  background: #F0F8FF;
}

.materi-foto {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: contain;
  max-height: none;
}

.materi-foto-caption {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding: 6px 10px;
  background: var(--card);
  border-top: 1px solid #E3F2FD;
}

/* Card materi */
.materi-card {
  margin-bottom: 20px;
  border-radius: 22px !important;
  background: #FFFFFF !important;
  border: 2px solid rgba(144, 202, 249, 0.55) !important;
  box-shadow:
    inset 0 -3em 3em rgba(21, 101, 192, 0.03),
    0 8px 26px rgba(21, 101, 192, 0.08) !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease !important;
  padding: 22px !important;
}

.materi-card:hover {
  box-shadow:
    inset 0 -3em 3em rgba(21, 101, 192, 0.05),
    0 14px 36px rgba(21, 101, 192, 0.16) !important;
  border-color: rgba(21, 101, 192, 0.4) !important;
  transform: scale(1.006) !important;
}

.materi-judul {
  font-family: 'Fredoka One', sans-serif;
  color: #1A237E;
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.materi-teks {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
  color: #37474F;
}

.materi-highlight-box {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E1 100%);
  border: 1.5px solid #FFE082;
  border-left: 5px solid #FFB300;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #5D4037;
  margin-top: 14px;
  line-height: 1.6;
  box-shadow: 0 4px 14px rgba(255, 179, 0, 0.1);
}

.materi-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}

.materi-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1A237E;
  line-height: 1.55;
}

.materi-ringkasan {
  background: linear-gradient(135deg, #F0F8FF 0%, #E3F2FD 100%) !important;
  border: 2px solid #90CAF9 !important;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.08) !important;
}

/* Stat chip */
.stat-chip {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  flex: 1;
  min-width: 140px;
  text-align: center;
}

/* Batas wilayah grid */
.batas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.batas-card {
  border: 2px solid;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.batas-arah {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-align: center;
  letter-spacing: 0.3px;
}

.batas-isi {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  padding: 9px 12px;
  line-height: 1.6;
  background: #fff;
}

/* Manfaat grid */
.manfaat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.manfaat-chip {
  border: 2px solid;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Maritim vs Agraris */
.vs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.vs-card {
  border: 2px solid;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.vs-header {
  color: #fff;
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  padding: 9px 12px;
  text-align: center;
  letter-spacing: 0.3px;
}

.vs-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}


@media (max-width: 480px) {
  .batas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .manfaat-grid {
    grid-template-columns: 1fr;
  }

  .vs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   YOUTUBE THUMBNAIL + PLAY BUTTON
============================================================ */
.yt-thumb-wrap {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
}

.yt-thumb-img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.yt-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.yt-thumb-wrap:hover .yt-thumb-overlay {
  background: rgba(0, 0, 0, 0.18);
}

.yt-play-btn {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.18s;
}

.yt-thumb-wrap:hover .yt-play-btn {
  transform: scale(1.12);
}

.yt-thumb-label {
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}

.yt-embed-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.yt-embed-card .yt-thumb-wrap {
  margin-bottom: 0;
  box-shadow: none;
}

.yt-thumb-btn {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}

.yt-embed-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.yt-fallback-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted, #5c6b7a);
}

.yt-fallback-bar a {
  color: #1976d2;
  text-decoration: underline;
}

/* ============================================================
   MINI GAME SHARED
============================================================ */
.mga-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px solid #E3F2FD;
  font-size: 14px;
  font-weight: 800;
  color: #1565C0;
}

.mga-reset-btn {
  background: #FFFFFF;
  border: 2px solid #BBDEFB;
  color: #1565C0;
  border-radius: 50px;
  padding: 7px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);
}

.mga-reset-btn:hover {
  background: #E3F2FD;
  border-color: #1565C0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.18);
}

.mga-result {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  min-height: 24px;
}

.mga-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 12px 0;
}

.mga-card {
  border: 2px solid #BBDEFB;
  border-radius: 14px;
  background: var(--card);
  cursor: grab;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px;
  min-width: 86px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  gap: 6px;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.10);
  user-select: none;
}

.mga-card:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #1565C0;
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.18);
}

.mga-card:active {
  cursor: grabbing;
  transform: scale(1.06) rotate(-1.5deg);
  box-shadow: 0 12px 28px rgba(21, 101, 192, 0.28);
  border-color: #FF6B35;
}

.mga-card img {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.mga-card.used {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   MINI GAME A — DRAG & DROP KOMPONEN PETA
============================================================ */
.mga-dropgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 6px;
}

.mga-dropzone {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mga-dz-label {
  font-size: 12px;
  font-weight: 800;
  color: #1565C0;
  text-align: center;
}

.mga-dz-box {
  min-height: 74px;
  border: 2.5px dashed #90CAF9;
  border-radius: 14px;
  background: #F8FBFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #546E7A;
  transition: all .2s ease;
  text-align: center;
  padding: 6px;
}

.mga-dz-box.over {
  background: #E3F2FD;
  border-color: #1565C0;
  border-style: dashed;
  transform: scale(1.02);
  box-shadow: 0 0 16px rgba(21, 101, 192, 0.22);
}

.mga-dz-box.correct {
  border-color: #2E7D32;
  background: #E8F5E9;
  border-style: solid;
  color: #1B5E20;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.18);
}

.mga-dz-box.wrong {
  border-color: #C62828;
  background: #FFEBEE;
  border-style: solid;
  color: #B71C1C;
}

.mga-dz-box img {
  width: 68px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

/* ============================================================
   MINI GAME B — SUSUN LETAK INDONESIA
============================================================ */
.mgb-arena {
  display: grid;
  grid-template-areas:
    ". top ."
    "left center right"
    ". bottom .";
  grid-template-columns: 1fr 100px 1fr;
  grid-template-rows: auto 100px auto;
  gap: 10px;
  margin-bottom: 6px;
}

.mgb-slot-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.mgb-slot-label {
  font-size: 11px;
  font-weight: 800;
  color: #546E7A;
  text-align: center;
}

.mgb-slot {
  width: 100%;
  min-height: 56px;
  border: 2.5px dashed #90CAF9;
  border-radius: 14px;
  background: #F8FBFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #1565C0;
  text-align: center;
  padding: 6px;
  transition: all .2s;
}

.mgb-slot.mgb-over {
  background: #E3F2FD;
  border-color: #1565C0;
  border-style: dashed;
  transform: scale(1.03);
  box-shadow: 0 0 14px rgba(21, 101, 192, 0.2);
}

.mgb-slot.mgb-correct {
  border-color: #2E7D32;
  background: #E8F5E9;
  border-style: solid;
  color: #1B5E20;
  box-shadow: 0 3px 12px rgba(46, 125, 50, 0.15);
}

.mgb-slot.mgb-wrong {
  border-color: #C62828;
  background: #FFEBEE;
  border-style: solid;
  color: #B71C1C;
}

.mgb-center {
  background: linear-gradient(135deg, #1565C0, #1E88E5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.30);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

/* ============================================================
   MINI GAME C — SORTIR MARITIM vs AGRARIS
============================================================ */
.mgc-arena {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mgc-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mgc-card {
  border: 2px solid #BBDEFB;
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: grab;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  transition: all .2s;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.08);
}

.mgc-card:hover {
  transform: translateY(-2px);
  border-color: #1565C0;
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.15);
}

.mgc-card:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.mgc-card.used {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
}

.mgc-zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mgc-zone {
  border: 2.5px dashed #90CAF9;
  border-radius: 16px;
  overflow: hidden;
  transition: all .2s;
  min-height: 130px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.06);
}

.mgc-zone.mgc-over {
  border-color: #1565C0;
  border-style: solid;
  background: #F0F8FF;
  box-shadow: 0 0 16px rgba(21, 101, 192, 0.18);
}

.mgc-zone-header {
  color: #fff;
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  padding: 10px 14px;
  text-align: center;
  letter-spacing: 0.3px;
}

.mgc-zone-body {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 70px;
}

.mgc-placed {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 50px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mgc-placed.benar {
  background: var(--green);
}

.mgc-placed.salah {
  background: var(--red);
}

/* ============================================================
   KUIS PER PANEL
============================================================ */
.btn-mulai-kuis {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #FFD600, #FF6B35);
  color: #1A237E;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  transition: transform .2s, box-shadow .2s;
  letter-spacing: 0.3px;
}

.btn-mulai-kuis:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.45);
}

.kuis-progress-bar {
  height: 10px;
  background: #E3F2FD;
  border-radius: 50px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kuis-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD600, #FF6B35);
  border-radius: 50px;
  transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kuis-nomor {
  font-size: 11px;
  font-weight: 800;
  color: #546E7A;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.kuis-pertanyaan {
  font-size: 16px;
  font-weight: 800;
  color: #1A237E;
  line-height: 1.55;
  margin-bottom: 16px;
}

.kuis-opsi {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kuis-opsi-btn {
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  border: 2px solid #BBDEFB;
  border-radius: 16px;
  background: var(--card);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1A237E;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.04);
}

.kuis-opsi-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E3F2FD;
  color: #1565C0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', sans-serif;
  font-size: 13px;
  flex-shrink: 0;
  transition: all .2s;
}

.kuis-opsi-text {
  flex: 1;
  line-height: 1.4;
}

.kuis-opsi-btn:hover:not(:disabled) {
  border-color: #1565C0;
  background: #F0F8FF;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.14);
}

.kuis-opsi-btn:hover:not(:disabled) .kuis-opsi-badge {
  background: #1565C0;
  color: #fff;
}

.kuis-opsi-btn:disabled {
  cursor: default;
}

.kuis-opsi-benar {
  border-color: #2E7D32 !important;
  background: #E8F5E9 !important;
  color: #1B5E20 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.18) !important;
}

.kuis-opsi-benar .kuis-opsi-badge {
  background: #2E7D32 !important;
  color: #fff !important;
}

.kuis-opsi-salah {
  border-color: #C62828 !important;
  background: #FFEBEE !important;
  color: #B71C1C !important;
}

.kuis-opsi-salah .kuis-opsi-badge {
  background: #C62828 !important;
  color: #fff !important;
}

.kuis-hasil {
  text-align: center;
  padding: 20px 0;
}

.kuis-hasil-skor {
  font-family: 'Fredoka One', sans-serif;
  font-size: 54px;
  color: #1565C0;
  line-height: 1;
}

.kuis-hasil-pct {
  font-family: 'Fredoka One', sans-serif;
  font-size: 26px;
  color: #FFB300;
  margin-top: 4px;
}

.kuis-hasil-label {
  font-size: 15px;
  font-weight: 800;
  color: #37474F;
  margin-top: 10px;
}

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

  .mgb-arena {
    grid-template-columns: 1fr 70px 1fr;
  }

  .mgc-zones {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   SCREEN PENCAPAIAN
============================================================ */
/* ============================================================
   SCREEN PENCAPAIAN (JURNAL PENJELAJAH NUSANTARA) - REVAMP v2
============================================================ */
#screen-pencapaian {
  background: linear-gradient(160deg, #F0F9FF 0%, #EEF4FF 40%, #F5F0FF 100%);
  min-height: 100vh;
}

/* ── HERO HEADER ──────────────────────────────────────── */
.p-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #0097A7 100%);
  border-radius: 24px;
  padding: 20px 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(21, 101, 192, 0.28);
}

.p-hero-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.p-hero-left {
  flex: 1;
  min-width: 0;
}

.p-hero-eyebrow {
  font-size: 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.p-hero-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 28px;
  color: #FFFFFF;
  line-height: 1;
  margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.p-hero-sub {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 12px;
  line-height: 1.4;
}

/* Stars Counter Pills */
.p-stars-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.p-star-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 4px 10px;
  backdrop-filter: blur(6px);
}

.p-star-pill--green {
  background: rgba(76, 175, 80, 0.25);
  border-color: rgba(76, 175, 80, 0.4);
}

.p-star-pill--purple {
  background: rgba(156, 39, 176, 0.25);
  border-color: rgba(156, 39, 176, 0.4);
}

.p-star-pill-icon {
  font-size: 13px;
}

.p-star-pill-label {
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
}

.p-star-pill-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  color: #FFFFFF;
  line-height: 1;
}

/* Progress Ring */
.p-ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.p-ring-svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.p-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 10;
}

.p-ring-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.p-ring-dot {
  fill: #FFD700;
  filter: drop-shadow(0 0 4px #FFD700);
}

.p-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.p-ring-pct {
  font-family: 'Fredoka One', sans-serif;
  font-size: 26px;
  color: #FFFFFF;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.p-ring-label {
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── AVATAR RING (rank glow) ──────────────────────────── */
.p-id-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(#FFD700, #FF8C00, #FF4500, #FFD700);
  z-index: -1;
  animation: avatarRingSpin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
}

.p-id-card.rank-tangguh .p-id-avatar-ring {
  opacity: 1;
}

.p-id-card.rank-master .p-id-avatar-ring {
  opacity: 1;
  background: conic-gradient(#FFD700, #00E5FF, #7C4DFF, #FFD700);
  animation-duration: 2s;
}

@keyframes avatarRingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Old header box (keep for compat) */
.p-header-box {
  text-align: center;
  margin: 10px 0 16px;
}

.p-header-sub {
  font-size: 13px;
  font-weight: 700;
  color: #455A64;
  margin-top: 4px;
}

/* ── Explorer ID Card (Kartu Tanda Penjelajah) ────────── */
.p-id-card {
  background: linear-gradient(135deg, #0D47A1 0%, #1976D2 55%, #0097A7 100%);
  border-radius: 22px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.p-id-card::after {
  content: "GEOMAPTARA";
  position: absolute;
  right: -12px;
  bottom: -10px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  letter-spacing: 2px;
}

.p-id-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.p-id-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFF;
  border: 3px solid #FFD54F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.p-id-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.p-id-avatar-star {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #FFA000;
  border: 2px solid #FFF;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.p-id-info {
  flex: 1;
  min-width: 0;
}

.p-id-badge-tag {
  font-size: 10px;
  font-weight: 800;
  color: #FFE082;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.p-id-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px;
  color: #FFFFFF;
  line-height: 1.2;
  word-break: break-word;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.p-id-rank {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #FFF;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
}

.btn-ganti-nama {
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #FFF;
  border-radius: 50px;
  padding: 7px 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-pensil-inline {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-pensil-card {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.icon-game-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-game-title {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-game-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-game-dot {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.icon-kompas-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-kompas-title {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-kompas-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-kompas-dot {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.icon-penggaris-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-penggaris-title {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-penggaris-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-penggaris-dot {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.icon-task-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-task-title {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-task-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-task-dot {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.icon-task-hero {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: inline-block;
}

.icon-fauna-inline {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-fauna-stamp {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.icon-gembok-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-gembok-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-gembok-dot {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.icon-settings-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-settings-title {
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: -5px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-settings-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-pulau-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-pulau-title {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-pulau-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-gunung-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-gunung-card {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.icon-lampu-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-kaca-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-kaca-title {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-kaca-dot {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.icon-peta-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-peta-title {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: -5px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-peta-card {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.icon-peta-hero {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.icon-bintang-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-bintang-empty {
  filter: grayscale(100%) opacity(0.35);
}

#ks-hasil-stars .icon-bintang-inline {
  width: 28px;
  height: 28px;
  margin: 0 2px;
  vertical-align: middle;
}

.ks-lp-stars .icon-bintang-inline,
.ptk-stars-badge .icon-bintang-inline {
  width: 16px;
  height: 16px;
  margin: 0 1px;
}

.icon-buku-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-buku-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-buku-dot {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.icon-tanya-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-tanya-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-unduh-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-bukututup-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-bukututup-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-bukutiga-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-bukutiga-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-video-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-video-title {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-video-dot {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.icon-kapal-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-kapal-ship {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-komputer-inline {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-komputer-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.icon-piala-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-piala-title {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-piala-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.icon-piala-hero {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: inline-block;
}

.icon-jam-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-jam-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.icon-nunjuk-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-nunjuk-arrow {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.icon-panahnancap-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-panahnancap-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.icon-pin-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-pin-dot {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.icon-roket-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-catatanlist-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-catatanlist-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.icon-sapa-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-sapa-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.icon-kado-inline {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-jangkar-inline {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-jangkar-dot {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.icon-jangkar-card {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.btn-ganti-nama:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ── Gamified Chunky Progress Bar (Jalur Ekspedisi) ──────── */
.p-expedition-card {
  margin-bottom: 20px;
  padding: 20px 20px 22px;
  background: #FFFFFF;
  border-radius: 22px;
  border: 2px solid #E1F5FE;
  box-shadow: 0 10px 30px rgba(2, 136, 209, 0.10);
}

.p-expedition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.p-expedition-badge {
  font-size: 10px;
  font-weight: 900;
  color: #FF6F00;
  background: #FFF3E0;
  border: 1px solid #FFE0B2;
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.p-expedition-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #0D47A1;
  margin-top: 2px;
}

.p-expedition-pct-box {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border: 2px solid #90CAF9;
  border-radius: 16px;
  padding: 6px 14px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.p-expedition-pct {
  font-family: 'Fredoka One', sans-serif;
  font-size: 24px;
  color: #0D47A1;
  line-height: 1;
}

/* Track & Ship */
.p-track-outer {
  position: relative;
  padding: 24px 10px 38px;
}

.p-track-container {
  position: relative;
  height: 24px;
  background: #E0F2FE;
  border-radius: 999px;
  border: 2.5px solid #90CAF9;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.08);
}

.p-track-bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg,
      rgba(2, 136, 209, 0.05),
      rgba(2, 136, 209, 0.05) 10px,
      transparent 10px,
      transparent 20px);
}

.p-track-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFB300 0%, #FF7043 40%, #0288D1 80%, #00ACC1 100%);
  transition: width 0.8s cubic-bezier(0.34, 1.25, 0.64, 1);
  box-shadow: 0 2px 10px rgba(2, 136, 209, 0.35);
  overflow: hidden;
}

.p-track-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 100%);
  animation: trackShimmer 2.2s infinite linear;
}

@keyframes trackShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Kapal Penjelajah (Floating Ship Pin) */
.p-ship-pin {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  transition: left 0.8s cubic-bezier(0.34, 1.25, 0.64, 1);
  z-index: 10;
  pointer-events: none;
}

.p-ship-icon {
  font-size: 28px;
  display: inline-block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  animation: shipFloat 2s ease-in-out infinite alternate;
}

@keyframes shipFloat {
  0% {
    transform: translateY(0px) rotate(-3deg);
  }

  100% {
    transform: translateY(-5px) rotate(4deg);
  }
}

/* Checkpoints / Milestones */
.p-milestones {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0px;
  pointer-events: none;
}

.p-milestone {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.p-milestone-pin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ECEFF1;
  border: 2px solid #B0BEC5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.3s;
  filter: grayscale(80%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.p-milestone-label {
  font-size: 10px;
  font-weight: 800;
  color: #78909C;
  white-space: nowrap;
}

.p-milestone.p-ms-active .p-milestone-pin {
  background: #FFF9C4;
  border-color: #FFA000;
  filter: none;
  box-shadow: 0 0 8px rgba(255, 160, 0, 0.45);
  transform: scale(1.15);
}

.p-milestone.p-ms-active .p-milestone-label {
  color: #E65100;
  font-weight: 900;
}

/* Stats Chips */
.p-expedition-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.p-stat-chip {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.p-stat-chip.chip-done {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1.5px solid #C8E6C9;
}

.p-stat-chip.chip-remaining {
  background: #FFF8E1;
  color: #E65100;
  border: 1.5px solid #FFE082;
}

/* ── Section Groups ──────────────────────────────────────── */
.p-section-group {
  margin-bottom: 22px;
}

.p-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 2px;
}

.p-group-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 17px;
  color: #0D47A1;
}

.p-group-badge {
  font-size: 11px;
  font-weight: 800;
  background: #E1F5FE;
  color: #0288D1;
  padding: 3px 10px;
  border-radius: 50px;
}

.p-group-desc {
  font-size: 12px;
  font-weight: 700;
  color: #546E7A;
  margin: -6px 0 10px 2px;
}

/* ── Misi Materi Grid (REVAMPED) ─────────────────────── */
.p-materi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.p-materi-card {
  background: #FFFFFF;
  border: 2px solid #E3F2FD;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.22s cubic-bezier(0.34, 1.5, 0.64, 1), box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateX(-12px);
  animation: misiReveal 0.45s ease forwards;
}

.p-materi-card:nth-child(1) {
  animation-delay: 0.05s;
}

.p-materi-card:nth-child(2) {
  animation-delay: 0.10s;
}

.p-materi-card:nth-child(3) {
  animation-delay: 0.15s;
}

.p-materi-card:nth-child(4) {
  animation-delay: 0.20s;
}

.p-materi-card:nth-child(5) {
  animation-delay: 0.25s;
}

.p-materi-card:nth-child(6) {
  animation-delay: 0.30s;
}

@keyframes misiReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.p-materi-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.10);
  border-color: #90CAF9;
}

.p-materi-card.card-done {
  border-color: #A5D6A7;
  background: linear-gradient(135deg, #F1FAF1 0%, #FFFFFF 100%);
}

.p-materi-card.card-done:hover {
  border-color: #66BB6A;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.12);
}

.p-materi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.p-materi-card:hover .p-materi-icon-wrap {
  transform: scale(1.12) rotate(-3deg);
}

.card-done .p-materi-icon-wrap {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.p-materi-content {
  flex: 1;
  min-width: 0;
}

.p-materi-type {
  font-size: 9px;
  font-weight: 900;
  color: #0288D1;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card-done .p-materi-type {
  color: #2E7D32;
}

.p-materi-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 5px;
}

/* Mini score bar inside misi card */
.p-materi-score-bar {
  height: 5px;
  border-radius: 99px;
  background: #E0E0E0;
  overflow: hidden;
  margin-top: 3px;
}

.p-materi-score-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #42A5F5, #26C6DA);
  transition: width 0.8s ease;
}

.card-done .p-materi-score-fill {
  background: linear-gradient(90deg, #66BB6A, #43A047);
}

.p-materi-val-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  background: #ECEFF1;
  color: #607D8B;
  flex-shrink: 0;
  margin-bottom: 3px;
}

.p-materi-val-badge.val-done {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

/* ── Paspor Stempel 7 Pulau (REVAMPED) ────────────────── */
.p-paspor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.p-stamp-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px 10px 12px;
  text-align: center;
  border: 2.5px dashed #CFD8DC;
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.5, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  animation: cardReveal 0.5s ease forwards;
}

.p-stamp-card:nth-child(1) {
  animation-delay: 0.05s;
}

.p-stamp-card:nth-child(2) {
  animation-delay: 0.10s;
}

.p-stamp-card:nth-child(3) {
  animation-delay: 0.15s;
}

.p-stamp-card:nth-child(4) {
  animation-delay: 0.20s;
}

.p-stamp-card:nth-child(5) {
  animation-delay: 0.25s;
}

.p-stamp-card:nth-child(6) {
  animation-delay: 0.30s;
}

.p-stamp-card:nth-child(7) {
  animation-delay: 0.35s;
}

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

.p-stamp-card.stamp-visited {
  border: 2.5px solid #26C6DA;
  background: linear-gradient(145deg, #E0F7FA 0%, #FFFFFF 100%);
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.18);
}

.p-stamp-card.stamp-visited:hover {
  transform: translateY(-4px) scale(1.04) rotate(-1deg);
  box-shadow: 0 12px 24px rgba(0, 188, 212, 0.28);
}

.p-stamp-card.stamp-locked:hover {
  border-color: #90CAF9;
  transform: translateY(-2px);
}

.p-stamp-icon {
  font-size: 36px;
  margin-bottom: 6px;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.p-stamp-card:hover .p-stamp-icon {
  transform: scale(1.15) rotate(5deg);
}

.p-stamp-card.stamp-visited .p-stamp-icon {
  filter: drop-shadow(0 3px 8px rgba(0, 188, 212, 0.35));
  animation: iconPop 0.6s ease forwards;
}

@keyframes iconPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  70% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.p-stamp-card.stamp-locked .p-stamp-icon {
  filter: grayscale(100%);
  opacity: 0.38;
}

.p-stamp-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: 13px;
  color: #37474F;
  margin-bottom: 8px;
}

.p-stamp-card.stamp-visited .p-stamp-name {
  color: #006064;
}

.p-stamp-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 50px;
  display: inline-block;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.stamp-visited .p-stamp-badge {
  background: linear-gradient(90deg, #00796B, #0097A7);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(0, 121, 107, 0.35);
}

.stamp-locked .p-stamp-badge {
  background: #ECEFF1;
  color: #90A4AE;
}

/* Checkmark overlay for visited */
.p-stamp-card.stamp-visited::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #00BCD4;
  border: 2px solid #FFF;
  border-radius: 50%;
  font-size: 12px;
  color: #FFF;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ── Kuis Akhir Mahkota Box ──────────────────────────────── */
.p-kuis-akhir-box {
  background: linear-gradient(135deg, #EDE7F6 0%, #FFFFFF 100%);
  border: 2px solid #D1C4E9;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(106, 27, 154, 0.08);
}

.p-kuis-akhir-box.kuis-done {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFFFF 100%);
  border-color: #FFE082;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.18);
}

.p-kuis-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #D1C4E9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.kuis-done .p-kuis-icon-wrap {
  background: #FFE082;
}

.p-kuis-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  color: #4A148C;
  line-height: 1.2;
}

.kuis-done .p-kuis-title {
  color: #E65100;
}

.p-kuis-desc {
  font-size: 12px;
  font-weight: 700;
  color: #546E7A;
  margin-top: 2px;
}

.p-kuis-status {
  margin-left: auto;
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #ECEFF1;
  color: #607D8B;
  flex-shrink: 0;
}

.kuis-done .p-kuis-status {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1.5px solid #81C784;
}

/* ── Area Sertifikat Hadiah (Peti Harta Karun) ───────────── */
.p-sertifikat-wrap {
  margin: 18px 0 10px;
}

.p-sertif-lock {
  background: linear-gradient(145deg, #FFF8E1 0%, #FFFFFF 100%);
  border: 2.5px dashed #FFCA28;
  border-radius: 20px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(255, 160, 0, 0.08);
}

.p-sertif-lock-icon {
  font-size: 42px;
  flex-shrink: 0;
  animation: chestPulse 2.5s infinite ease-in-out;
}

@keyframes chestPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.p-sertif-lock-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  color: #E65100;
  margin-bottom: 2px;
}

.p-sertif-lock-text {
  font-size: 12px;
  font-weight: 700;
  color: #5D4037;
  line-height: 1.4;
}

.p-sertif-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #FFB300 0%, #FF8F00 50%, #FF6F00 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 111, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: btnGlow 2s infinite alternate;
}

.p-sertif-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 111, 0, 0.48);
}

@keyframes btnGlow {
  0% {
    filter: brightness(1);
  }

  100% {
    filter: brightness(1.08);
  }
}

.sertif-btn-sparkle {
  font-size: 22px;
}

/* ── Reset Button ────────────────────────────────────────── */
.btn-reset-progress {
  background: #FFF;
  border: 2px solid #FFCDD2;
  color: #D32F2F;
  border-radius: 50px;
  padding: 9px 22px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.08);
}

/* ── Action Tag on Cards ─────────────────────────────────── */
.p-action-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s;
  cursor: pointer;
}

.p-action-tag.action-play {
  background: #E1F5FE;
  color: #0288D1;
  border: 1px solid #B3E5FC;
}

.p-materi-card:hover .p-action-tag.action-play {
  background: #0288D1;
  color: #FFF;
}

.p-action-tag.action-replay {
  background: #F5F5F5;
  color: #546E7A;
  border: 1px solid #E0E0E0;
}

.p-materi-card:hover .p-action-tag.action-replay {
  background: #E8F5E9;
  color: #2E7D32;
  border-color: #A5D6A7;
}

/* ── Interactive Card Cursors ────────────────────────────── */
.p-materi-card,
.p-stamp-card,
.p-kuis-akhir-box {
  cursor: pointer;
  user-select: none;
}

.p-materi-card:active,
.p-stamp-card:active,
.p-kuis-akhir-box:active {
  transform: scale(0.97);
}

/* ── Kotak Bimbingan & Motivasi ──────────────────────────── */
.p-guidance-box {
  margin-bottom: 20px;
}

.p-guide-card {
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  animation: fadeUp 0.3s ease-out;
}

.p-guide-card.welcome {
  background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%);
  border: 2px solid #A5D6A7;
}

.p-guide-card.in-progress {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFFFF 100%);
  border: 2px solid #FFE082;
}

.p-guide-card.victory {
  background: linear-gradient(135deg, #EDE7F6 0%, #FFFDE7 100%);
  border: 2.5px solid #FFD54F;
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.22);
}

.p-guide-icon {
  font-size: 34px;
  flex-shrink: 0;
}

.p-guide-body {
  flex: 1;
  min-width: 0;
}

.p-guide-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  color: #1A237E;
  margin-bottom: 2px;
}

.p-guide-card.welcome .p-guide-title {
  color: #1B5E20;
}

.p-guide-card.in-progress .p-guide-title {
  color: #E65100;
}

.p-guide-card.victory .p-guide-title {
  color: #4A148C;
}

.p-guide-desc {
  font-size: 12px;
  font-weight: 700;
  color: #455A64;
  line-height: 1.35;
}

.p-guide-btn {
  background: #2E7D32;
  color: #FFF;
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.3);
  transition: all 0.2s;
}

.p-guide-btn:hover {
  background: #1B5E20;
  transform: translateY(-2px);
}

/* ── Confetti Celebration Effect ─────────────────────────── */
.p-confetti-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

.p-confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  opacity: 0.9;
  border-radius: 2px;
  animation: confettiFall var(--dur, 3s) linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 1;
  }

  100% {
    transform: translateY(105vh) rotate(720deg) scale(1.1);
    opacity: 0;
  }
}

/* ── Milestone Label Switching (Desktop vs Mobile) ───────── */
.p-milestone-label .ms-full {
  display: inline-block;
}

.p-milestone-label .ms-short {
  display: none;
}

/* ── RESPONSIVE MEDIA QUERIES (HP & TABLET) ──────────────── */
@media (max-width: 600px) {
  .section-wrap {
    padding: 4px 12px 30px;
  }

  /* Hero Header */
  .p-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 14px;
  }

  .p-ring-wrap {
    align-self: center;
    width: 100px;
    height: 100px;
  }

  .p-ring-svg {
    width: 100px;
    height: 100px;
  }

  .p-ring-pct {
    font-size: 22px;
  }

  .p-hero-title {
    font-size: 22px;
  }

  .p-stars-row {
    gap: 5px;
  }

  .p-star-pill {
    padding: 3px 8px;
  }

  .p-star-pill-val {
    font-size: 13px;
  }

  /* Explorer ID Card */
  .p-id-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .p-id-avatar {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .p-id-name {
    font-size: 18px;
  }

  .btn-ganti-nama {
    padding: 5px 11px;
    font-size: 11px;
  }

  /* Progress Track & Milestones */
  .p-track-outer {
    padding: 22px 8px 30px;
  }

  .p-milestone-label .ms-full {
    display: none;
  }

  .p-milestone-label .ms-short {
    display: inline-block;
    font-size: 9px;
    font-weight: 900;
  }

  .p-milestone.ms-0 {
    transform: translateX(0);
  }

  .p-milestone.ms-100 {
    transform: translateX(-100%);
  }

  /* Misi Materi List */
  .p-materi-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Paspor 7 Pulau Simetris 3 Kolom */
  .p-paspor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* Pulau ke-7 (Bali) otomatis di tengah baris ke-3 */
  .p-stamp-card:nth-child(7) {
    grid-column: 2;
  }

  .p-stamp-card {
    padding: 10px 4px;
  }

  .p-stamp-icon {
    font-size: 28px;
  }

  .p-stamp-name {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .p-stamp-badge {
    font-size: 8px;
    padding: 2px 6px;
  }

  /* Evaluasi Akhir Box */
  .p-kuis-akhir-box {
    flex-direction: column;
    text-align: center;
    padding: 14px;
    gap: 10px;
  }

  .p-kuis-status {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  /* Guidance Card */
  .p-guide-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .p-guide-btn {
    width: 100%;
  }

  /* Stats Chips */
  .p-expedition-stats {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .p-id-card::after {
    display: none;
  }

  .p-expedition-title {
    font-size: 16px;
  }

  .p-hero-title {
    font-size: 18px;
  }

  .p-ring-wrap {
    width: 86px;
    height: 86px;
  }

  .p-ring-svg {
    width: 86px;
    height: 86px;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  width: 100%;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: popIn .3s cubic-bezier(.34, 1.56, .64, 1);
}

.modal-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 21px;
  color: var(--primary);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.modal-input {
  width: 100%;
  border: 2.5px solid #E3F2FD;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  transition: border-color .18s;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: var(--primary);
}

.btn-modal-ok {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  padding: 11px 32px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 6px 18px rgba(21, 101, 192, .3);
  transition: transform .18s;
}

.btn-modal-ok:hover {
  transform: translateY(-2px);
}

.btn-modal-cancel {
  flex: 1;
  background: #F5F5F5;
  border: 2px solid #E0E0E0;
  color: var(--muted);
  border-radius: 50px;
  padding: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.btn-modal-danger {
  flex: 1;
  background: var(--red);
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(198, 40, 40, .3);
}

@keyframes popIn {
  from {
    transform: scale(.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================================
   ★ MATERI – REDESIGN (GeoMapTara Sky & Nusantara Blue Theme)
============================================================ */

/* Screen materi layout */
#screen-materi {
  background: linear-gradient(180deg, #EBF5FF 0%, #F5F9FF 35%, #EFF6FF 100%);
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  position: relative;
}

/* ── Hero ── */
.mt-hero {
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 45%, #0288D1 100%);
  margin: 16px auto;
  max-width: 1120px;
  width: calc(100% - 32px);
  border-radius: 24px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 12px 36px rgba(21, 101, 192, 0.25);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.mt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.mt-hero-inner {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.mt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.mt-hero-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(20px, 4vw, 28px);
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.mt-hero-desc {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

.mt-hero-progress-wrap {
  background: rgba(0, 0, 0, 0.14);
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mt-hero-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.mt-hero-progress-bar {
  height: 9px;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 50px;
  overflow: hidden;
}

.mt-hero-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD600, #FF6B35);
  border-radius: 50px;
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 10px rgba(255, 214, 0, 0.6);
}

.mt-hero-illo {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
  flex-shrink: 0;
  animation: heroFloat 3.2s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}

@keyframes heroFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

/* ── Tab navigasi (sticky capsule bar) ── */
.mt-tab-wrap {
  padding: 8px 16px;
  margin-bottom: 8px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(235, 245, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(144, 202, 249, 0.4);
}

.mt-tab-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 6px 8px;
  box-shadow: 0 4px 18px rgba(21, 101, 192, 0.12);
  border: 1.5px solid rgba(144, 202, 249, 0.5);
  backdrop-filter: blur(10px);
}

.mt-tab-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid #BBDEFB;
  border-radius: 50px;
  cursor: pointer;
  background: #FFFFFF;
  color: #1565C0;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.06);
}

.mt-tab-back:hover {
  background: #E3F2FD;
  border-color: #1565C0;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.16);
}

.mt-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: transparent;
  transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
}

.mt-tab-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E3F2FD;
  color: #1565C0;
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .22s;
  flex-shrink: 0;
}

.mt-tab-text {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #546E7A;
  transition: color .2s;
  line-height: 1.2;
  white-space: nowrap;
}

.mt-tab:hover:not(.active) {
  background: #F0F8FF;
}

.mt-tab:hover:not(.active) .mt-tab-num {
  background: #BBDEFB;
  transform: scale(1.08);
}

.mt-tab.active {
  background: linear-gradient(135deg, #1565C0, #1E88E5);
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.30);
  transform: translateY(-1px);
}

.mt-tab.active .mt-tab-num {
  background: #FFD600;
  color: #1A237E;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.mt-tab.active .mt-tab-text {
  color: #FFFFFF;
}

/* ── Layout dua kolom ── */
.mt-layout {
  display: flex;
  flex: 1;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  align-items: flex-start;
  padding: 10px 16px 40px;
}

/* ── Sidebar Langkah Belajar ── */
.mt-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 86px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(144, 202, 249, 0.5);
  border-radius: 22px;
  padding: 16px 12px;
  box-shadow: 0 8px 28px rgba(21, 101, 192, 0.08);
}

.mt-sidebar-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 13px;
  color: #1565C0;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mt-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mt-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s cubic-bezier(.34, 1.56, .64, 1);
  border: 1.5px solid transparent;
  background: transparent;
}

.mt-step:hover {
  background: #F0F8FF;
  border-color: #BBDEFB;
  transform: translateX(3px);
}

.mt-step.active {
  background: #FFFFFF;
  border-color: #1565C0;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.14);
  transform: translateX(4px);
}

.mt-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #E3F2FD;
  color: #1565C0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .2s;
}

.mt-step.active .mt-step-dot {
  background: linear-gradient(135deg, #1565C0, #1E88E5);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.35);
  transform: scale(1.08);
}

.mt-step-info {
  flex: 1;
  min-width: 0;
}

.mt-step-label {
  font-size: 12px;
  font-weight: 800;
  color: #1A237E;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mt-step-sub {
  font-size: 10px;
  font-weight: 700;
  color: #546E7A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mt-step.active .mt-step-label {
  color: #1565C0;
}

/* ── Konten utama ── */
.mt-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

/* ── Section Header (nomor + judul + badge) ── */
.mt-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
  position: relative;
  padding-left: 14px;
}

.mt-section-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 50px;
  background: linear-gradient(180deg, #1565C0, #00B0FF);
}

.mt-sec-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1565C0, #1E88E5);
  color: #fff;
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.28);
}

.mt-sec-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(17px, 3.2vw, 22px);
  color: #1A237E;
  flex: 1;
}

.mt-sec-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.mt-badge-blue {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #BBDEFB;
}

.mt-badge-green {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.mt-badge-orange {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFE0B2;
}

.mt-badge-teal {
  background: #E0F7FA;
  color: #00838F;
  border: 1px solid #B2EBF2;
}

.mt-badge-purple {
  background: #F3E5F5;
  color: #6A1B9A;
  border: 1px solid #E1BEE7;
}

.mt-badge-red {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.mt-sec-desc {
  font-size: 13px;
  font-weight: 700;
  color: #546E7A;
  margin-bottom: 14px;
  padding-left: 14px;
}

/* ── Scroll reveal animation ── */
.mt-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34, 1.2, .64, 1);
}

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

/* ── Kuis card special styling ── */
.mt-kuis-card {
  background: #FFFFFF !important;
  border: 2px solid rgba(144, 202, 249, 0.6) !important;
  box-shadow:
    inset 0 -3em 3em rgba(21, 101, 192, 0.03),
    0 10px 30px rgba(21, 101, 192, 0.12) !important;
}

.mt-kuis-card .materi-judul {
  color: #1A237E;
}

/* ── Hotspot Beacons pada Peta Komponen ── */
.peta-beacon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.peta-beacon-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFD600;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 214, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.peta-beacon-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(255, 214, 0, 0.55);
  animation: beaconPulse 1.8s ease-out infinite;
  z-index: 1;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.peta-oz {
  position: absolute;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 101, 192, 0.05);
  border: 1.5px dashed rgba(21, 101, 192, 0.35);
  transition: all 0.22s ease;
}

.peta-oz:hover {
  background: rgba(21, 101, 192, 0.18);
  border-color: #1565C0;
  border-style: solid;
  box-shadow: inset 0 0 12px rgba(21, 101, 192, 0.2);
}

.peta-oz:hover .peta-beacon-dot {
  background: #FF6B35;
  transform: scale(1.25);
}

/* ── Tooltip Popup Peta Card ── */
#peta-tooltip-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  max-width: 320px;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 2px solid rgba(144, 202, 249, 0.6);
  box-shadow:
    inset 0 -1em 2em rgba(21, 101, 192, 0.03),
    0 16px 40px rgba(21, 101, 192, 0.24);
  overflow: hidden;
}

/* ── Responsive Styling ── */
@media (max-width: 820px) {
  .mt-layout {
    flex-direction: column;
    padding: 10px 14px 40px;
    gap: 14px;
  }

  .mt-sidebar {
    width: 100%;
    position: sticky;
    top: 66px;
    z-index: 95;
    padding: 10px 12px;
    border-radius: 16px;
    margin-bottom: 8px;
  }

  .mt-sidebar-title {
    display: none;
  }

  .mt-steps {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .mt-step {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 50px;
    background: #F0F8FF;
    border: 1px solid #BBDEFB;
  }

  .mt-step.active {
    background: #1565C0;
    border-color: #1565C0;
    transform: none;
  }

  .mt-step.active .mt-step-label {
    color: #FFFFFF;
  }

  .mt-step-sub {
    display: none;
  }

  .mt-step-dot {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .mt-hero {
    margin: 10px 12px;
    width: calc(100% - 24px);
    padding: 18px 16px;
  }

  .mt-tab-wrap {
    padding: 6px 12px;
  }

  .mt-tab-row {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
    gap: 6px;
    padding: 6px;
  }

  .mt-tab {
    flex: 1 1 auto;
    padding: 6px 10px;
    gap: 6px;
  }

  .mt-tab-num {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .mt-tab-text {
    font-size: 11px;
  }

  .mt-tab-back {
    padding: 6px 12px;
    font-size: 11px;
  }

  .mt-tab-bahanajar {
    margin-left: 0;
  }
}

/* ============================================================
   EVALUASI CBT
/* ============================================================
   EVALUASI CBT – Tema Petualangan Langit & Alam GeoMapTara
============================================================ */

/* ── Dekorasi Langit, Awan & Lanskap ── */
.ev-sky-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg,
      #38B6FF 0%,
      #70D6FF 30%,
      #B0E7FF 65%,
      #EFF6FF 100%);
}

.ev-deco-land {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.ev-deco-cloud {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.82;
}

.ev-deco-cloud.kiri {
  top: 6%;
  left: -2%;
  width: clamp(120px, 18vw, 220px);
  animation: cloudFloat 9s ease-in-out infinite alternate;
}

.ev-deco-cloud.kanan {
  top: 14%;
  right: -2%;
  width: clamp(100px, 15vw, 180px);
  animation: cloudFloat 11s ease-in-out infinite alternate;
}

/* ── Landing Evaluasi ── */
#screen-kuis {
  position: relative;
  animation: fadeInScreen .35s ease both;
}

#ev-landing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  max-height: 100vh;
  min-height: 100vh;
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.ev-landing-inner {
  position: relative;
  z-index: 10;
  max-width: 540px;
  width: 100%;
  animation: fadeUp .42s ease both;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 20px 24px;
  box-shadow:
    inset 0 -3em 3em rgba(21, 101, 192, 0.03),
    0 0 0 2px rgba(144, 202, 249, 0.5),
    0 16px 44px rgba(21, 101, 192, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
  animation: fadeUp .4s ease both;
}

.ev-landing-badge {
  background: #E3F2FD;
  border: 1.5px solid #BBDEFB;
  color: #1565C0;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: .4px;
}

.ev-landing-icon {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(21, 101, 192, 0.2));
  animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

.ev-landing-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  color: #1A237E;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(21, 101, 192, 0.1);
}

.ev-landing-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: #546E7A;
  margin: -6px 0 0;
}

.ev-info-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.ev-info-item {
  flex: 1;
  min-width: 90px;
  max-width: 130px;
  background: #F0F8FF;
  border: 1.5px solid #BBDEFB;
  border-radius: 18px;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.06);
  transition: transform .2s, box-shadow .2s;
}

.ev-info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.12);
}

.ev-info-icon {
  font-size: 20px;
}

.ev-info-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #1565C0;
}

.ev-info-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #546E7A;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ev-rules-card {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E1 100%);
  border: 2px solid #FFE082;
  border-radius: 20px;
  padding: 12px 18px;
  text-align: left;
  width: 100%;
  box-shadow: 0 4px 16px rgba(255, 179, 0, 0.1);
}

.ev-rules-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #E65100;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ev-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ev-rules-list li {
  font-size: 12px;
  font-weight: 700;
  color: #5D4037;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.ev-rules-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #FF8F00;
  font-size: 11px;
  top: 1px;
}

.ev-btn-back {
  background: #FFFFFF;
  border: 2px solid #BBDEFB;
  color: #1565C0;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.08);
  transition: all .2s;
}

.ev-btn-back:hover {
  background: #E3F2FD;
  border-color: #1565C0;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(21, 101, 192, 0.16);
}

.ev-btn-start {
  background: linear-gradient(135deg, #FFD600, #FF6B35);
  border: none;
  color: #1A237E;
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  padding: 11px 28px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.38);
  transition: all .2s;
  letter-spacing: .3px;
}

.ev-btn-start:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.48);
}

/* ── CBT Body & Topbar ── */
#ev-cbt {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #EFF6FF;
}

.ev-topbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #E3F2FD;
  box-shadow: 0 2px 14px rgba(21, 101, 192, 0.08);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ev-topbar-left {
  flex: 1;
}

.ev-topbar-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  color: #1A237E;
  line-height: 1.1;
}

.ev-topbar-sub {
  font-size: 11px;
  font-weight: 800;
  color: #546E7A;
}

.ev-timer-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFF8E1, #FFE082);
  color: #E65100;
  border: 1.5px solid #FFD54F;
  padding: 7px 16px;
  border-radius: 50px;
  min-width: 105px;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(255, 143, 0, 0.18);
  transition: all .3s;
}

.ev-timer-wrap.danger {
  background: #FFEBEE;
  color: #C62828;
  border-color: #EF9A9A;
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.3);
  animation: timerPulse .5s ease infinite alternate;
}

@keyframes timerPulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.ev-timer-icon {
  font-size: 16px;
}

.ev-timer-text {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
}

.ev-btn-selesai {
  background: linear-gradient(135deg, #2E7D32, #43A047);
  border: none;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
  transition: all .2s;
  white-space: nowrap;
}

.ev-btn-selesai:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(46, 125, 50, 0.38);
}

.ev-cbt-body {
  display: flex;
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 22px 16px;
  gap: 20px;
  align-items: flex-start;
}

/* ── CBT Nav Panel ── */
.ev-nav-panel {
  width: 185px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 24px;
  padding: 18px 14px;
  box-shadow:
    inset 0 -2em 2em rgba(21, 101, 192, 0.02),
    0 0 0 2px rgba(144, 202, 249, 0.4),
    0 6px 20px rgba(21, 101, 192, 0.08);
  position: sticky;
  top: 76px;
}

.ev-nav-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #1A237E;
  margin-bottom: 12px;
  text-align: center;
}

.ev-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.ev-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Fredoka One', sans-serif;
  font-size: 12px;
  font-weight: 700;
  transition: all .18s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-nav-btn.leg-unanswered {
  background: #F0F7FF;
  color: #546E7A;
  border-color: #D0E4FF;
}

.ev-nav-btn.leg-answered {
  background: #E8F5E9;
  color: #2E7D32;
  border-color: #A5D6A7;
}

.ev-nav-btn.leg-current {
  background: linear-gradient(135deg, #FFD600, #FF9100);
  color: #1A237E;
  border-color: #FFB300;
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(255, 143, 0, 0.35);
}

.ev-nav-btn:hover:not(.leg-current) {
  transform: scale(1.1);
  border-color: #90CAF9;
}

.ev-nav-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.ev-leg-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #546E7A;
}

.ev-leg-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.leg-answered {
  background: #43A047;
}

.leg-current {
  background: #FF9100;
}

.leg-unanswered {
  background: #90CAF9;
}

.ev-nav-stat {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #1565C0;
  background: #EFF6FF;
  border: 1px solid #BBDEFB;
  border-radius: 12px;
  padding: 7px;
}

/* ── CBT Soal Panel ── */
.ev-soal-panel {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow:
    inset 0 -2em 2em rgba(21, 101, 192, 0.02),
    0 0 0 2px rgba(144, 202, 249, 0.4),
    0 8px 24px rgba(21, 101, 192, 0.08);
}

.ev-soal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ev-soal-num-badge {
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  color: #1565C0;
  background: #E3F2FD;
  border: 1px solid #BBDEFB;
  padding: 5px 16px;
  border-radius: 50px;
}

.ev-soal-type-badge {
  font-size: 10px;
  font-weight: 800;
  color: #E65100;
  background: #FFF3E0;
  border: 1px solid #FFE0B2;
  padding: 4px 12px;
  border-radius: 50px;
}

.ev-soal-progress-bar {
  height: 6px;
  background: #E3F2FD;
  border-radius: 50px;
  margin-bottom: 20px;
  overflow: hidden;
}

.ev-soal-progress-bar>div {
  height: 100%;
  background: linear-gradient(90deg, #FFB300, #FF6B35);
  border-radius: 50px;
  transition: width .5s ease;
}

/* Konten Soal */
.ev-soal-box {
  min-height: 260px;
}

.ev-konteks {
  background: linear-gradient(135deg, #F0F7FF 0%, #FFF9E6 100%);
  border-left: 4px solid #FF9100;
  border-radius: 0 14px 14px 0;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #263238;
  line-height: 1.75;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ev-konteks-label {
  font-size: 10px;
  font-weight: 800;
  color: #E65100;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
}

.ev-soal-img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 2px solid #E3F2FD;
}

.ev-pertanyaan {
  font-size: 16px;
  font-weight: 800;
  color: #1A237E;
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Pilihan Ganda */
.ev-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ev-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 2px solid #E1EDFA;
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
  font-weight: 700;
  color: #37474F;
  line-height: 1.5;
  text-align: left;
  background: #FAFCFF;
}

.ev-option:hover:not(.selected) {
  border-color: #90CAF9;
  background: #F0F7FF;
  transform: translateX(4px);
}

.ev-option.selected {
  border-color: #FF9100;
  background: #FFF8E1;
  color: #E65100;
  box-shadow: 0 4px 14px rgba(255, 143, 0, 0.15);
}

.ev-option-key {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E3F2FD;
  color: #1565C0;
  font-family: 'Fredoka One', sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}

.ev-option.selected .ev-option-key {
  background: linear-gradient(135deg, #FFD600, #FF8F00);
  color: #1A237E;
}

/* Benar/Salah */
.ev-tf-wrap {
  display: flex;
  gap: 16px;
}

.ev-tf-btn {
  flex: 1;
  padding: 20px 10px;
  border-radius: 18px;
  border: 2px solid #E1EDFA;
  cursor: pointer;
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  background: #FAFCFF;
}

.ev-tf-btn span {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.ev-tf-btn:hover:not(.selected) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: #90CAF9;
}

.ev-tf-btn.selected-true {
  border-color: #2E7D32;
  background: #E8F5E9;
  color: #1B5E20;
  box-shadow: 0 4px 14px rgba(46, 125, 50, .18);
}

.ev-tf-btn.selected-false {
  border-color: #C62828;
  background: #FFEBEE;
  color: #B71C1C;
  box-shadow: 0 4px 14px rgba(198, 40, 40, .18);
}

/* Menjodohkan */
.ev-match-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ev-match-col {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ev-match-col-title {
  font-size: 10px;
  font-weight: 800;
  color: #546E7A;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.ev-match-item {
  padding: 11px 14px;
  border-radius: 14px;
  border: 2px solid #E1EDFA;
  background: #FAFCFF;
  font-size: 12px;
  font-weight: 700;
  color: #37474F;
  cursor: pointer;
  transition: all .18s;
  min-height: 46px;
  display: flex;
  align-items: center;
}

.ev-match-item.selected {
  border-color: #FF9100;
  background: #FFF8E1;
  color: #E65100;
  box-shadow: 0 3px 10px rgba(255, 143, 0, 0.15);
}

.ev-match-item.matched {
  border-color: #2E7D32;
  background: #E8F5E9;
  color: #1B5E20;
  cursor: default;
}

/* Navigasi Bawah Soal */
.ev-soal-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: space-between;
  align-items: center;
}

.ev-nav-prev,
.ev-nav-skip,
.ev-nav-next {
  padding: 11px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  transition: all .18s;
}

.ev-nav-prev {
  background: #FFFFFF;
  color: #1565C0;
  border: 1.5px solid #BBDEFB;
  box-shadow: 0 2px 8px rgba(21, 101, 192, .08);
}

.ev-nav-prev:hover {
  background: #E3F2FD;
  transform: translateX(-2px);
  border-color: #1565C0;
}

.ev-nav-skip {
  background: #FFF8E1;
  color: #E65100;
  border: 1.5px solid #FFE082;
}

.ev-nav-skip:hover {
  background: #FFE082;
}

.ev-nav-next {
  background: linear-gradient(135deg, #FFD600, #FF6B35);
  color: #1A237E;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.ev-nav-next:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.45);
}

/* Modal Konfirmasi */
.ev-modal-box {
  max-width: 380px;
}

.ev-modal-submit {
  background: #2E7D32;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 125, 50, .3);
  transition: all .2s;
}

.ev-modal-submit:hover {
  background: #1B5E20;
  transform: translateY(-1px);
}

/* ── Hasil Evaluasi ── */
#ev-hasil {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 16px;
}

.ev-hasil-inner {
  position: relative;
  z-index: 10;
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 34px 26px;
  box-shadow:
    inset 0 -3em 3em rgba(21, 101, 192, 0.03),
    0 0 0 2px rgba(144, 202, 249, 0.5),
    0 16px 44px rgba(21, 101, 192, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeUp .4s ease both;
}

.ev-hasil-header {
  text-align: center;
}

.ev-hasil-emoji {
  font-size: 60px;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.12));
}

.ev-hasil-judul {
  font-family: 'Fredoka One', sans-serif;
  font-size: 34px;
  color: #1A237E;
  margin: 0;
}

.ev-hasil-sub {
  font-size: 14px;
  font-weight: 700;
  color: #546E7A;
  margin-top: 4px;
}

.ev-hasil-skor-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.ev-skor-ring {
  width: 140px;
  height: 140px;
}

.ev-skor-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ev-skor-num {
  font-family: 'Fredoka One', sans-serif;
  font-size: 40px;
  color: #1A237E;
  line-height: 1;
}

.ev-skor-label {
  font-size: 11px;
  font-weight: 800;
  color: #78909C;
  text-transform: uppercase;
}

.ev-stat-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.ev-stat-card {
  flex: 1;
  min-width: 80px;
  max-width: 120px;
  background: #F0F8FF;
  border: 1.5px solid #BBDEFB;
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.05);
  transition: transform .2s;
}

.ev-stat-card:hover {
  transform: translateY(-2px);
}

.ev-stat-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.ev-stat-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 24px;
  color: #1A237E;
}

.ev-stat-lbl {
  font-size: 11px;
  font-weight: 800;
  color: #546E7A;
  text-transform: uppercase;
}

.ev-pembahasan-wrap {
  background: #F8FBFE;
  border: 2px solid #E1EDFA;
  border-radius: 22px;
  padding: 20px 18px;
  width: 100%;
}

.ev-pembahasan-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 17px;
  color: #1A237E;
  margin-bottom: 14px;
}

.ev-bahas-item {
  background: #FFFFFF;
  border: 1.5px solid #E3F2FD;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.04);
}

.ev-bahas-q {
  font-size: 13px;
  font-weight: 800;
  color: #1A237E;
  margin-bottom: 8px;
  line-height: 1.55;
}

.ev-bahas-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ev-bahas-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 50px;
}

.ev-bahas-tag.benar {
  background: #C8E6C9;
  color: #1B5E20;
}

.ev-bahas-tag.salah {
  background: #FFCDD2;
  color: #B71C1C;
}

.ev-bahas-tag.skip {
  background: #FFF9C4;
  color: #F57F17;
}

.ev-bahas-tag.correct-ans {
  background: #FFF8E1;
  color: #E65100;
  border: 1.5px solid #FFE082;
}

.ev-bahas-explain {
  font-size: 12px;
  font-weight: 700;
  color: #455A64;
  line-height: 1.6;
  margin-top: 6px;
  border-top: 1px dashed #CFD8DC;
  padding-top: 8px;
}

/* ── Responsive Mobile ── */
@media (max-width: 640px) {
  .ev-cbt-body {
    flex-direction: column;
    padding: 12px;
    gap: 14px;
  }

  .ev-nav-panel {
    width: 100%;
    position: static;
  }

  .ev-soal-panel {
    width: 100%;
    max-width: 100%;
    padding: 18px 16px;
  }

  .ev-soal-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ev-soal-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ev-nav-prev,
  .ev-nav-skip,
  .ev-nav-next {
    padding: 10px 14px;
    font-size: 12px;
  }

  .ev-nav-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .ev-topbar {
    padding: 8px 14px;
  }

  .ev-topbar-title {
    font-size: 17px;
  }

  .ev-timer-text {
    font-size: 15px;
  }

  .ev-btn-selesai {
    font-size: 12px;
    padding: 8px 13px;
  }

  .ev-landing-inner,
  .ev-hasil-inner {
    padding: 24px 16px;
    border-radius: 22px;
  }
}

/* ============================================================
   PETUNJUK PENGGUNAAN — Premium Adventure Guide Redesign
============================================================ */
#screen-petunjuk {
  background: linear-gradient(165deg, #E8F5E9 0%, #E3F2FD 45%, #FFF9C4 100%);
  min-height: 100vh;
  padding-bottom: 60px;
}

.ptk-wrap {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 16px 40px;
}

/* ── Hero Banner ── */
.ptk-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F8E9 60%, #E8F5E9 100%);
  border: 2px solid #A5D6A7;
  border-radius: 24px;
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.ptk-hero-banner:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(46, 125, 50, 0.22);
  border-color: #66BB6A;
}

.ptk-hero-banner:hover .ptk-hero-img {
  transform: scale(1.08) translateY(-4px);
}

.ptk-hero-left {
  flex: 1;
}

.ptk-hero-badge {
  display: inline-block;
  background: #2E7D32;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}

.ptk-hero-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  color: #1B5E20;
  margin-bottom: 8px;
  line-height: 1.25;
}

.ptk-hero-desc {
  font-size: 13.5px;
  font-weight: 600;
  color: #455A64;
  line-height: 1.6;
}

.ptk-hero-mascot-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scaleX(-1);
}

.ptk-hero-img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  animation: ptkFloat 3.5s ease-in-out infinite;
  transition: transform 0.25s ease;
}

@keyframes ptkFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ── Segmented Tab Bar (Sticky) ── */
.ptk-tab-bar {
  position: sticky;
  top: 12px;
  z-index: 140;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px;
  border-radius: 20px;
  border: 2px solid #C8E6C9;
  box-shadow: 0 6px 22px rgba(46, 125, 50, 0.14);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

@media (max-width: 1120px) {

  .ptk-tab-bar,
  .tt-tab-bar {
    top: 58px;
  }
}

.ptk-tab-bar::-webkit-scrollbar {
  display: none;
}

.ptk-tab-btn {
  flex: 1;
  min-width: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #546E7A;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.ptk-tab-btn:hover {
  background: #E8F5E9;
  color: #2E7D32;
  transform: translateY(-3px);
}

.ptk-tab-btn.active {
  background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.32);
  transform: translateY(-2px);
}

.ptk-tab-emoji {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.ptk-tab-btn.active .ptk-tab-emoji {
  transform: scale(1.22);
}

/* ── Panels ── */
.ptk-panel {
  display: none;
  scroll-margin-top: 96px;
}

.ptk-panel.active {
  display: block;
  animation: ptkFadeUp 0.35s ease both;
}

@keyframes ptkFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.ptk-panel-header {
  text-align: center;
  margin-bottom: 22px;
}

.ptk-panel-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px;
  color: #1565C0;
  margin-bottom: 5px;
}

.ptk-panel-subtitle {
  font-size: 13.5px;
  font-weight: 700;
  color: #546E7A;
}

/* ── TAB 1: Stepper Roadmap ── */
.ptk-steps-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.ptk-step-card {
  display: flex;
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid color-mix(in srgb, var(--ptk-color) 35%, #ffffff);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.ptk-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
  border-color: var(--ptk-color);
}

.ptk-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 18px 18px;
}

.ptk-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ptk-color);
  color: #ffffff;
  font-family: 'Fredoka One', sans-serif;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ptk-step-card:hover .ptk-step-num {
  transform: scale(1.2) rotate(-6deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
}

.ptk-step-line {
  width: 3px;
  flex: 1;
  background: color-mix(in srgb, var(--ptk-color) 35%, transparent);
  border-radius: 3px;
  margin-top: 8px;
  min-height: 24px;
}

.ptk-step-right {
  flex: 1;
  padding: 16px 20px;
}

.ptk-step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--ptk-color);
  background: var(--ptk-bg);
  padding: 3px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.ptk-step-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 17px;
  color: #263238;
  margin-bottom: 6px;
}

.ptk-step-desc {
  font-size: 13.5px;
  font-weight: 600;
  color: #455A64;
  line-height: 1.65;
}

/* ── Tara Quote Box ── */
.ptk-quote-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #FFFDE7 0%, #FFF9C4 100%);
  border: 2px solid #FDD835;
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 8px 20px rgba(245, 127, 23, 0.12);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.ptk-quote-box:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 38px rgba(245, 127, 23, 0.24);
  border-color: #FBC02D;
}

.ptk-quote-img {
  width: 75px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s ease;
}

.ptk-quote-box:hover .ptk-quote-img {
  transform: scale(1.12) rotate(4deg);
}

.ptk-quote-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  color: #E65100;
  margin-bottom: 6px;
}

.ptk-quote-text p {
  font-size: 13px;
  font-weight: 700;
  color: #5D4037;
  line-height: 1.6;
}

/* ── TAB 2: Features & Gameplay Grid ── */
.ptk-features-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ptk-feature-card {
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #ECEFF1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.ptk-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(2, 136, 209, 0.18);
  border-color: #4FC3F7;
}

.ptk-fc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--fc-bg);
  padding: 14px 20px;
  border-bottom: 2px solid color-mix(in srgb, var(--fc-color) 20%, transparent);
}

.ptk-fc-icon {
  font-size: 26px;
  transition: transform 0.25s ease;
}

.ptk-feature-card:hover .ptk-fc-icon {
  transform: scale(1.22) rotate(5deg);
}

.ptk-fc-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 17px;
  color: var(--fc-color);
}

.ptk-fc-tag {
  font-size: 11px;
  font-weight: 800;
  color: #78909C;
}

.ptk-fc-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ptk-action-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ptk-act-badge {
  min-width: 130px;
  font-size: 12px;
  font-weight: 800;
  background: #ECEFF1;
  color: #37474F;
  padding: 5px 10px;
  border-radius: 8px;
  text-align: center;
  flex-shrink: 0;
}

.ptk-act-desc {
  font-size: 13px;
  font-weight: 600;
  color: #455A64;
  line-height: 1.55;
}

/* ── TAB 3: Scores, Stars & Certificates ── */
.ptk-score-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ptk-card-box {
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #E0E0E0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 22px;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.ptk-card-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(46, 125, 50, 0.16);
  border-color: #81C784;
}

.ptk-box-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #1565C0;
  margin-bottom: 5px;
}

.ptk-box-intro {
  font-size: 13px;
  font-weight: 700;
  color: #546E7A;
  margin-bottom: 16px;
}

.ptk-star-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ptk-star-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFDE7;
  border: 1.5px solid #FFF176;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.ptk-star-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(245, 127, 23, 0.22);
  border-color: #FDD835;
}

.ptk-stars-badge {
  font-size: 18px;
  min-width: 60px;
  text-align: center;
  transition: transform 0.2s ease;
}

.ptk-star-row:hover .ptk-stars-badge {
  transform: scale(1.2);
}

.ptk-star-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #F57F17;
  margin-bottom: 3px;
}

.ptk-star-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: #5D4037;
  line-height: 1.5;
}

/* Certificate Mockup */
.ptk-cert-card {
  border-color: #FFE082;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF5 100%);
}

.ptk-cert-mockup {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E1 100%);
  border: 3px double #FFB300;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(255, 179, 0, 0.15);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.ptk-cert-mockup:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(255, 179, 0, 0.3);
}

.ptk-cert-seal {
  font-size: 32px;
  margin-bottom: 4px;
}

.ptk-cert-head {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #E65100;
  letter-spacing: 1px;
}

.ptk-cert-sub {
  font-size: 12px;
  font-weight: 800;
  color: #8D6E63;
  margin-bottom: 8px;
}

.ptk-cert-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  color: #1565C0;
  background: #ffffff;
  border: 1.5px dashed #90CAF9;
  border-radius: 8px;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 8px;
}

.ptk-cert-status {
  font-size: 11px;
  font-weight: 800;
  color: #2E7D32;
  letter-spacing: 0.5px;
}

.ptk-cert-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ptk-crule-item {
  font-size: 13px;
  font-weight: 600;
  color: #455A64;
  line-height: 1.55;
}

/* Badge Gallery */
.ptk-badge-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.ptk-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #F1F8E9;
  border: 1.5px solid #C8E6C9;
  border-radius: 14px;
  padding: 14px 10px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.ptk-badge-item:hover {
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 16px 32px rgba(46, 125, 50, 0.22);
  border-color: #4CAF50;
}

.ptk-badge-icon {
  font-size: 28px;
  margin-bottom: 6px;
  transition: transform 0.25s ease;
}

.ptk-badge-item:hover .ptk-badge-icon {
  transform: scale(1.25) rotate(-6deg);
}

.ptk-badge-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 13px;
  color: #2E7D32;
  margin-bottom: 4px;
}

.ptk-badge-desc {
  font-size: 11px;
  font-weight: 700;
  color: #558B2F;
}

/* ── TAB 4: Glossary Grid ── */
.ptk-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.ptk-icon-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid #ECEFF1;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.ptk-icon-card:hover {
  transform: translateY(-8px);
  border-color: #42A5F5;
  box-shadow: 0 18px 38px rgba(21, 101, 192, 0.2);
}

.ptk-ic-symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.ptk-icon-card:hover .ptk-ic-symbol {
  transform: scale(1.22) rotate(-5deg);
}

.ptk-ic-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #263238;
  margin-bottom: 4px;
}

.ptk-ic-desc {
  font-size: 12px;
  font-weight: 600;
  color: #546E7A;
  line-height: 1.5;
}

/* ============================================================
   UNIVERSAL SCROLL & CARD REVEAL ANIMATIONS
============================================================ */
.gm-interactive-card {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease !important;
  will-change: transform, opacity, box-shadow;
}

.gm-interactive-card.gm-card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Ensure hover lift works seamlessly when visible */
.gm-interactive-card.gm-card-visible:hover {
  transform: translateY(-8px) !important;
}

.ptk-star-row.gm-card-visible:hover,
.tt-info-row.gm-card-visible:hover,
.p-materi-card.gm-card-visible:hover,
.p-stamp-card.gm-card-visible:hover,
.p-kuis-akhir-box.gm-card-visible:hover {
  transform: translateY(-4px) !important;
}

.p-hero-banner.gm-card-visible:hover,
.p-id-card.gm-card-visible:hover,
.p-expedition-card.gm-card-visible:hover,
.p-guidance-box.gm-card-visible:hover,
.p-sertifikat-wrap.gm-card-visible:hover,
#screen-pengaturan .cfg-card.gm-card-visible:hover {
  transform: translateY(0) scale(1) !important;
}

#screen-pencapaian .p-materi-card.gm-interactive-card,
#screen-pencapaian .p-stamp-card.gm-interactive-card {
  animation: none;
}

.ptk-cert-mockup.gm-card-visible:hover {
  transform: translateY(-6px) scale(1.02) !important;
}

.ptk-badge-item.gm-card-visible:hover {
  transform: translateY(-8px) scale(1.06) !important;
}


/* ── Responsive Mobile Adjustments ── */
@media (max-width: 640px) {
  .ptk-hero-banner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 18px;
    gap: 12px;
  }

  .ptk-hero-img {
    max-height: 100px;
  }

  .ptk-tab-bar {
    justify-content: flex-start;
    padding: 6px;
    flex-wrap: wrap;
  }

  .ptk-tab-btn {
    min-width: unset;
    font-size: 12px;
    padding: 8px 8px;
  }

  .ptk-action-row {
    flex-direction: column;
    gap: 6px;
  }

  .ptk-act-badge {
    min-width: unset;
    width: 100%;
    text-align: left;
  }

  .ptk-glossary-grid {
    grid-template-columns: 1fr;
  }

  .ptk-badge-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   SCREEN PENGATURAN & PROFIL
============================================================ */
#screen-pengaturan {
  background: linear-gradient(165deg, #F0F4C3 0%, #E1F5FE 50%, var(--bg) 100%);
  min-height: 100vh;
}

.cfg-card {
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 2px solid #E1F5FE;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.06);
  transition: transform 0.2s;
}

.cfg-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cfg-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.cfg-icon.cfg-icon-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid #FFD54F;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cfg-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.cfg-header-text {
  flex: 1;
  min-width: 0;
}

.cfg-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 2px;
}

.cfg-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.35;
}

/* Profile Box */
.cfg-profile-box {
  background: linear-gradient(135deg, #E3F2FD, #FFFFFF);
  border: 1.5px solid #BBDEFB;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cfg-name-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cfg-name-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  color: var(--primary);
  line-height: 1.2;
}

/* Audio Row */
.cfg-audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #F8FAFC;
  border: 1.5px solid #ECEFF1;
  border-radius: 14px;
  padding: 12px 16px;
}

.cfg-audio-status {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.cfg-audio-actions {
  display: flex;
  gap: 8px;
}

/* Info List */
.cfg-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfg-info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F9FAFB;
  font-size: 12px;
  font-weight: 700;
}

.cfg-info-key {
  color: var(--muted);
  flex-shrink: 0;
}

.cfg-info-val {
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

/* Danger Card */
.cfg-card-danger {
  border-color: #FFCDD2;
  background: #FFFAFA;
}

/* Buttons */
.cfg-btn {
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cfg-btn.primary {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.25);
}

.cfg-btn.primary:hover {
  background: #0D47A1;
  transform: translateY(-2px);
}

.cfg-btn.secondary {
  background: #FFF;
  color: var(--primary);
  border: 1.5px solid #BBDEFB;
}

.cfg-btn.secondary:hover {
  background: #E3F2FD;
  transform: translateY(-2px);
}

.cfg-btn.danger {
  background: #FFF;
  color: var(--red);
  border: 2px solid #FFCDD2;
}

.cfg-btn.danger:hover {
  background: #FFEBEE;
  border-color: #EF5350;
  transform: translateY(-2px);
}

/* ============================================================
   MODAL SERTIFIKAT PREVIEW
============================================================ */
.modal-sertif-box {
  max-width: 580px !important;
  width: 95% !important;
  padding: 24px 20px !important;
}

.sertif-img-frame {
  margin: 14px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  border: 2px solid #FFD54F;
  background: #FAF8F5;
}

.sertif-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-sertif-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-sertif-download {
  padding: 12px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #FFB300 0%, #FF8F00 50%, #FF6F00 100%);
  color: #FFF;
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 111, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-sertif-download:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 111, 0, 0.45);
}

/* ============================================================
   TOAST STEMPEL PETA
============================================================ */
.peta-stempel-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00897B 0%, #004D40 100%);
  color: #FFF;
  border-radius: 50px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 77, 64, 0.35);
  border: 2px solid #80CBC4;
  z-index: 10000;
  animation: toastDrop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast-stamp-icon {
  font-size: 26px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.toast-stamp-body {
  text-align: left;
}

.toast-stamp-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 13px;
  color: #FFD54F;
  line-height: 1.2;
}

.toast-stamp-sub {
  font-size: 11px;
  font-weight: 700;
  color: #E0F2F1;
}

@keyframes toastDrop {
  from {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* ============================================================
   ONBOARDING TUTORIAL OVERLAY
============================================================ */
#tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ── Backdrop dengan spotlight cutout via clip-path ── */
.tutorial-backdrop {
  position: absolute;
  inset: 0;
  /* Default: full dark. Clip-path diset via JS saat ada target */
  background: rgba(10, 25, 60, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Spotlight Ring (glow ring mengelilingi elemen target) ── */
#tutorial-spotlight-ring {
  position: absolute;
  display: none;
  pointer-events: none;
  border-radius: 20px;
  z-index: 100001;
  /* Ring efek */
  box-shadow:
    0 0 0 3px #FFB300,
    0 0 0 6px rgba(255, 179, 0, 0.35),
    0 0 30px 8px rgba(255, 179, 0, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  animation: spotlightPulse 1.8s ease-in-out infinite;
  transition:
    top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spotlightPulse {

  0%,
  100% {
    box-shadow:
      0 0 0 3px #FFB300,
      0 0 0 6px rgba(255, 179, 0, 0.35),
      0 0 30px 8px rgba(255, 179, 0, 0.25),
      inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  }

  50% {
    box-shadow:
      0 0 0 4px #FFD740,
      0 0 0 10px rgba(255, 215, 64, 0.5),
      0 0 45px 14px rgba(255, 179, 0, 0.4),
      inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  }
}

/* ── Corner Bracket Highlights ── */
#tutorial-spotlight-ring::before,
#tutorial-spotlight-ring::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #FFD740;
  border-style: solid;
  border-width: 0;
}

#tutorial-spotlight-ring::before {
  top: -4px;
  left: -4px;
  border-top-width: 4px;
  border-left-width: 4px;
  border-top-left-radius: 8px;
}

#tutorial-spotlight-ring::after {
  bottom: -4px;
  right: -4px;
  border-bottom-width: 4px;
  border-right-width: 4px;
  border-bottom-right-radius: 8px;
}

/* ── Arrow penunjuk ── */
#tutorial-arrow {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 100002;
  transition:
    top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-arrow-inner {
  font-size: 32px;
  animation: arrowBounce 0.9s ease-in-out infinite;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  line-height: 1;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateY(0) rotate(-20deg);
  }

  50% {
    transform: translateY(-8px) rotate(-20deg);
  }
}

/* ── Tutorial Container – posisi dinamis via JS ── */
.tutorial-container {
  position: absolute;
  /* diubah dari relative ke absolute agar bisa diposisikan */
  display: flex;
  align-items: flex-end;
  gap: 0;
  max-width: 520px;
  width: calc(100% - 32px);
  z-index: 100003;
  transition:
    top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animasi masuk */
.tutorial-container.tut-anim-in {
  animation: tutorialBounceIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes tutorialBounceIn {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(40px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes tutorialBounceOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.7) translateY(40px);
  }
}

#tutorial-overlay.closing .tutorial-container {
  animation: tutorialBounceOut 0.3s ease-in both;
}

/* ── Mascot area ── */
.tutorial-mascot-area {
  flex-shrink: 0;
  width: 120px;
  align-self: flex-end;
  z-index: 2;
  margin-right: -14px;
  animation: mascotFloat 2.5s ease-in-out infinite;
}

@keyframes mascotFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.tutorial-mascot-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tutorial-mascot-img:hover {
  transform: scale(1.08) rotate(-3deg);
}

.tutorial-mascot-img.flip-h {
  transform: scaleX(-1);
}

.tutorial-mascot-img.flip-h:hover {
  transform: scaleX(-1) scale(1.08) rotate(-3deg);
}

/* ── Speech bubble ── */
.tutorial-bubble-area {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.tutorial-bubble {
  background: #FFFFFF;
  border-radius: 24px;
  border: 3.5px solid #FFB300;
  padding: 20px 22px 16px;
  position: relative;
  box-shadow:
    0 10px 40px rgba(255, 179, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 -2px 0 rgba(255, 179, 0, 0.1);
}

/* Speech bubble tail pointing to mascot */
.tutorial-bubble::before {
  content: '';
  position: absolute;
  left: -18px;
  bottom: 34px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 20px solid #FFB300;
  filter: drop-shadow(-2px 2px 2px rgba(0, 0, 0, 0.06));
}

.tutorial-bubble::after {
  content: '';
  position: absolute;
  left: -13px;
  bottom: 36px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 16px solid #FFFFFF;
}

.tutorial-step-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFB300, #FF8F00);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(255, 143, 0, 0.3);
}

.tutorial-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  color: #1A237E;
  margin: 0 0 8px;
  line-height: 1.3;
}

.tutorial-message {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #455A64;
  line-height: 1.7;
  margin: 0 0 14px;
}

/* ── Step indicator dots ── */
.tutorial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.tutorial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E0E0E0;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.tutorial-dot.active {
  background: #FFB300;
  border-color: #FF8F00;
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(255, 179, 0, 0.5);
}

.tutorial-dot.done {
  background: #66BB6A;
  border-color: #43A047;
}

/* ── Navigation buttons ── */
.tutorial-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tutorial-btn-skip {
  background: none;
  border: 2px solid #E0E0E0;
  border-radius: 50px;
  padding: 8px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #90A4AE;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tutorial-btn-skip:hover {
  border-color: #BDBDBD;
  color: #78909C;
  background: #FAFAFA;
}

.tutorial-btn-next {
  background: linear-gradient(135deg, #FFB300, #FF8F00);
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 143, 0, 0.35);
  transition: all 0.2s ease;
}

.tutorial-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 143, 0, 0.45);
}

.tutorial-btn-next:active {
  transform: translateY(0);
}

/* ── Tutorial responsive ── */
@media (max-width: 520px) {
  .tutorial-container {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .tutorial-mascot-area {
    width: 100px;
    margin-right: 0;
    margin-bottom: -16px;
    z-index: 2;
  }

  .tutorial-bubble::before,
  .tutorial-bubble::after {
    left: 50%;
    bottom: auto;
    top: -18px;
    border: none;
  }

  .tutorial-bubble::before {
    margin-left: -12px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 20px solid #FFB300;
    border-top: none;
    filter: none;
  }

  .tutorial-bubble::after {
    margin-left: -9px;
    top: -12px;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 16px solid #FFFFFF;
    border-top: none;
    border-right-color: transparent;
  }

  .tutorial-title {
    font-size: 17px;
  }

  .tutorial-message {
    font-size: 13px;
  }
}

/* ── Help button pulse ── */
.menu-top-btn.help-btn {
  animation: helpPulse 3s ease-in-out infinite;
}

@keyframes helpPulse {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.2);
  }

  50% {
    box-shadow: 0 2px 16px rgba(255, 179, 0, 0.5);
  }
}

/* ============================================================
   MASCOT SPEECH BUBBLE – PULAU POPUP (Jelajah Peta)
============================================================ */
.pp-maskot-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 6px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
  border-radius: 16px;
  border: 2px solid #FFE082;
  animation: maskotPulauIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
}

@keyframes maskotPulauIn {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(0.85);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.pp-maskot-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
  animation: mascotFloat 2.8s ease-in-out infinite;
}

.pp-maskot-img.flip-h {
  scale: -1 1;
}

.pp-maskot-bubble {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  position: relative;
  border: 2px solid #FFD54F;
  box-shadow: 0 3px 12px rgba(255, 213, 79, 0.2);
}

/* Tail pointing left to mascot */
.pp-maskot-bubble::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 14px solid #FFD54F;
}

.pp-maskot-bubble::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid #fff;
}

.pp-maskot-bubble p {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #5D4037;
  line-height: 1.6;
  margin: 0;
}

.pp-maskot-bubble .pp-maskot-name {
  display: inline-block;
  font-family: 'Fredoka One', sans-serif;
  font-size: 11px;
  color: #FF8F00;
  margin-bottom: 4px;
}

/* Close mascot bubble button */
.pp-maskot-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: 1.5px solid #E0E0E0;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  color: #BDBDBD;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.pp-maskot-close:hover {
  border-color: #FF8F00;
  color: #FF8F00;
  background: #FFF8E1;
}

/* ============================================================
   RESPONSIVE FIX – SEMUA TAB BUTTON DI LAYAR HP
   Berlaku untuk: .ptk-tab-bar, .tt-tab-bar, .tab-row
============================================================ */

/* ── Tablet kecil / phablet (≤ 640px) ── */
@media (max-width: 640px) {

  /* --- Petunjuk Penggunaan tabs --- */
  .ptk-tab-bar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    overflow-x: visible;
    /* non-aktifkan scroll, pakai wrap */
  }

  .ptk-tab-btn {
    flex: 1 1 calc(50% - 6px);
    /* 2 kolom */
    min-width: unset;
    font-size: 12px;
    padding: 8px 8px;
    border-radius: 12px;
    gap: 5px;
  }

  .ptk-tab-emoji {
    font-size: 15px;
  }

  /* --- Tentang Media tabs --- */
  .tt-tab-bar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    overflow-x: visible;
  }

  .tt-tab-btn {
    flex: 1 1 calc(50% - 6px);
    /* 2 kolom */
    min-width: unset;
    font-size: 12px;
    padding: 8px 8px;
    border-radius: 12px;
    gap: 5px;
  }

  .tt-tab-emoji {
    font-size: 15px;
  }

  /* --- Materi tabs (.tab-row) --- */
  .tab-row {
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
  }

  .tab-btn {
    flex: 1 1 calc(50% - 4px);
    /* 2 kolom */
    font-size: 11px;
    padding: 8px 4px;
    border-radius: 10px;
  }
}

/* ── HP kecil (≤ 420px) ── */
@media (max-width: 420px) {

  /* Petunjuk */
  .ptk-tab-btn {
    font-size: 11px;
    padding: 7px 6px;
    gap: 4px;
  }

  .ptk-tab-emoji {
    font-size: 14px;
  }

  /* Tentang */
  .tt-tab-btn {
    font-size: 11px;
    padding: 7px 6px;
    gap: 4px;
  }

  .tt-tab-emoji {
    font-size: 14px;
  }

  /* Materi */
  .tab-btn {
    font-size: 10.5px;
    padding: 7px 3px;
  }
}

/* ── HP sangat kecil (≤ 360px) – sembunyikan emoji, 2 kolom tetap ── */
@media (max-width: 360px) {

  .ptk-tab-emoji,
  .tt-tab-emoji {
    display: none;
    /* hemat ruang di layar sempit */
  }

  .ptk-tab-btn,
  .tt-tab-btn {
    font-size: 10.5px;
    padding: 7px 4px;
    gap: 0;
  }

  .tab-btn {
    font-size: 10px;
    padding: 6px 2px;
  }
}

/* ============================================================
   SISTEM LEVEL & POPUP MASKOT SELESAI BELAJAR (DUOLINGO STYLE)
============================================================ */

/* ── Status Step di Sidebar ── */
.mt-step {
  position: relative;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mt-step.locked {
  opacity: 0.58;
  cursor: not-allowed !important;
  background: rgba(240, 244, 248, 0.7) !important;
  border-color: #CFD8DC !important;
}

.mt-step.locked:hover {
  transform: none !important;
  box-shadow: none !important;
}

.mt-step.completed {
  background: linear-gradient(135deg, rgba(232, 245, 233, 0.95), rgba(200, 230, 201, 0.8)) !important;
  border: 1.5px solid #81C784 !important;
}

.mt-step.completed .mt-step-dot {
  background: linear-gradient(135deg, #43A047, #2E7D32) !important;
  color: #fff !important;
}

.mt-step.completed .mt-step-label {
  color: #1B5E20 !important;
}

.mt-step.active-pos {
  border: 2px solid #1E88E5 !important;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.25) !important;
  animation: pulsePos 2s infinite;
}

@keyframes pulsePos {

  0%,
  100% {
    box-shadow: 0 4px 14px rgba(30, 136, 229, 0.2);
  }

  50% {
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
  }
}

.mt-step-badge-status {
  font-size: 13px;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shake-locked {
  animation: shakeLockedAnim 0.45s ease-in-out;
}

@keyframes shakeLockedAnim {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

/* ── Tombol Lanjut Pos di Setiap Akhir Section Materi ── */
.mt-level-action-bar {
  margin: 22px 0 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mt-btn-next-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1976D2, #0D47A1);
  color: #FFFFFF;
  border: 2px solid #90CAF9;
  border-radius: 50px;
  padding: 13px 26px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(21, 101, 192, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.mt-btn-next-level:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(21, 101, 192, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #2196F3, #1565C0);
}

.mt-btn-next-level:active {
  transform: translateY(1px) scale(0.98);
}

.mt-btn-next-level .mt-btn-icon {
  font-size: 18px;
  line-height: 1;
}

.mt-btn-next-level .mt-btn-text {
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
}

.mt-btn-next-level .mt-btn-arr {
  font-family: 'Fredoka One', sans-serif;
  color: #FFE082;
  font-size: 13.5px;
  margin-left: 4px;
}

/* Selesai / Checked style */
.mt-btn-next-level.completed-state {
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
  border-color: #A5D6A7;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
}

.mt-btn-next-level.completed-state:hover {
  background: linear-gradient(135deg, #388E3C, #2E7D32);
}

/* ── Pop-Up Maskot Perayaan Selesai Level ── */
.level-celebrate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.level-celebrate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 60, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInBackdrop 0.3s ease both;
}

@keyframes fadeInBackdrop {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.level-celebrate-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 0;
  max-width: 550px;
  width: 100%;
  animation: celebrateBounceIn 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes celebrateBounceIn {
  from {
    opacity: 0;
    transform: scale(0.68) translateY(45px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.level-celebrate-overlay.closing .level-celebrate-container {
  animation: celebrateBounceOut 0.25s ease-in both;
}

@keyframes celebrateBounceOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.7) translateY(30px);
  }
}

.level-celebrate-mascot-area {
  flex-shrink: 0;
  width: 145px;
  align-self: flex-end;
  z-index: 2;
  margin-right: -16px;
  animation: mascotFloat 2.6s ease-in-out infinite;
}

.level-celebrate-mascot-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.level-celebrate-mascot-img:hover {
  transform: scale(1.08) rotate(-3deg);
}

.level-celebrate-bubble-area {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.level-celebrate-bubble {
  background: #FFFFFF;
  border-radius: 26px;
  border: 4px solid #FFB300;
  padding: 22px 24px 18px;
  position: relative;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.32),
    0 4px 16px rgba(255, 179, 0, 0.25),
    inset 0 -3px 0 rgba(255, 179, 0, 0.15);
}

/* Bubble Tail menunjuk ke Maskot */
.level-celebrate-bubble::before {
  content: '';
  position: absolute;
  left: -20px;
  bottom: 34px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 22px solid #FFB300;
  filter: drop-shadow(-2px 2px 2px rgba(0, 0, 0, 0.06));
}

.level-celebrate-bubble::after {
  content: '';
  position: absolute;
  left: -14px;
  bottom: 36px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 17px solid #FFFFFF;
}

.level-celebrate-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFB300, #FF8F00);
  color: #FFFFFF;
  font-family: 'Fredoka One', sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(255, 143, 0, 0.35);
}

.level-celebrate-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 21px;
  color: #1A237E;
  margin: 0 0 8px;
  line-height: 1.25;
}

.level-celebrate-message {
  font-family: 'Nunito', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #455A64;
  line-height: 1.65;
  margin: 0 0 18px;
}

.level-celebrate-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.level-celebrate-btn-close {
  background: #ECEFF1;
  color: #546E7A;
  border: none;
  border-radius: 14px;
  padding: 10px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.level-celebrate-btn-close:hover {
  background: #CFD8DC;
  color: #37474F;
}

.level-celebrate-btn-next {
  background: linear-gradient(135deg, #00C853, #009624);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 11px 22px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.38);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.level-celebrate-btn-next:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgba(0, 200, 83, 0.48);
  background: linear-gradient(135deg, #00E676, #00A32C);
}

.level-celebrate-btn-next:active {
  transform: translateY(1px) scale(0.98);
}

/* ── Toast Pos Terkunci ── */
.level-locked-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(33, 33, 33, 0.94);
  color: #FFF;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  z-index: 100060;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  animation: toastFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Responsif Layar Kecil */
@media (max-width: 540px) {
  .level-celebrate-container {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .level-celebrate-mascot-area {
    margin-right: 0;
    margin-bottom: -18px;
    width: 120px;
    align-self: center;
  }

  .level-celebrate-bubble::before,
  .level-celebrate-bubble::after {
    left: 50%;
    bottom: auto;
    top: -18px;
    border: none;
  }

  .level-celebrate-bubble::before {
    margin-left: -12px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 20px solid #FFB300;
  }

  .level-celebrate-bubble::after {
    margin-left: -9px;
    top: -12px;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 16px solid #FFFFFF;
  }
}

/* ── Level Section Blur & Lock Gate ── */
.mt-level-section {
  position: relative;
  margin-bottom: 24px;
  border-radius: 20px;
  transition: all 0.35s ease;
}

.mt-level-body {
  position: relative;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Kondisi saat Level Terkunci */
.mt-level-section.mt-level-locked {
  position: relative;
}

.mt-level-section.mt-level-locked .mt-level-body {
  filter: blur(9px);
  -webkit-filter: blur(9px);
  opacity: 0.32;
  pointer-events: none !important;
  user-select: none !important;
}

/* Gerbang Pengunci Transparan */
.mt-level-lock-gate {
  display: none;
}

.mt-level-section.mt-level-locked .mt-level-lock-gate {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 30;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(245, 248, 252, 0.45);
  border-radius: 20px;
  cursor: pointer;
}

/* Kartu Kunci Sticky di Tengah Layar */
.mt-level-lock-card {
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid #FFB300;
  border-radius: 24px;
  padding: 22px 26px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 14px 42px rgba(26, 35, 126, 0.16), 0 4px 14px rgba(255, 179, 0, 0.22);
  position: sticky;
  top: 42%;
  transform: translateY(-50%);
  animation: lockCardPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lockCardPop {
  from {
    opacity: 0;
    transform: translateY(-40%) scale(0.88);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.mt-lock-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #FFF8E1, #FFE082);
  border: 2.5px solid #FFB300;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 10px;
  box-shadow: 0 4px 14px rgba(255, 179, 0, 0.28);
  animation: lockPulse 2.2s infinite;
}

@keyframes lockPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.mt-lock-card-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #1A237E;
  margin-bottom: 6px;
}

.mt-lock-card-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  color: #546E7A;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}

.mt-lock-card-btn {
  background: linear-gradient(135deg, #1976D2, #0D47A1);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.3);
  transition: all 0.22s ease;
}

.mt-lock-card-btn:hover {
  background: linear-gradient(135deg, #2196F3, #1565C0);
  transform: translateY(-2px) scale(1.02);
}

/* ============================================================
   MATERI INTERAKTIF KURIKULUM MERDEKA (BUKU PAKET SD & TTS)
============================================================ */

/* ── 1. Banner Ajakan Maskot Tara (.tara-ajakan-box) ── */
.tara-ajakan-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #FFFDF2 0%, #FFF8E1 100%);
  border: 2px solid #FFD54F;
  border-left: 6px solid #FF8F00;
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(255, 143, 0, 0.10);
  position: relative;
}

.tara-ajakan-box.theme-blue {
  background: linear-gradient(135deg, #F0F8FF 0%, #E3F2FD 100%);
  border-color: #90CAF9;
  border-left-color: #1565C0;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.09);
}

.tara-ajakan-box.theme-green {
  background: linear-gradient(135deg, #F1F8E9 0%, #E8F5E9 100%);
  border-color: #A5D6A7;
  border-left-color: #2E7D32;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.09);
}

.tara-ajakan-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.14));
  animation: mascotFloat 3s ease-in-out infinite;
}

.tara-ajakan-body {
  flex: 1;
  min-width: 0;
}

.tara-ajakan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FF8F00;
  color: #fff;
  font-family: 'Fredoka One', sans-serif;
  font-size: 11px;
  padding: 3px 11px;
  border-radius: 50px;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.tara-ajakan-box.theme-blue .tara-ajakan-badge {
  background: #1565C0;
}

.tara-ajakan-box.theme-green .tara-ajakan-badge {
  background: #2E7D32;
}

.tara-ajakan-text {
  font-family: 'Nunito', sans-serif;
  font-size: 13.8px;
  font-weight: 700;
  color: #263238;
  line-height: 1.6;
  margin: 0;
}

.tara-ajakan-text b {
  color: #D84315;
}

.tara-ajakan-box.theme-blue .tara-ajakan-text b {
  color: #0D47A1;
}

.tara-ajakan-box.theme-green .tara-ajakan-text b {
  color: #1B5E20;
}

/* ── 2. Kartu Teks Cerita Buku Paket SD (.buku-cerita-card) ── */
.buku-cerita-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
  border: 2px solid #FFE082;
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(255, 160, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.buku-cerita-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px dashed #FFE082;
}

.buku-cerita-pill {
  background: linear-gradient(135deg, #FF8F00, #F57C00);
  color: #fff;
  font-family: 'Fredoka One', sans-serif;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}

.buku-cerita-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 16.5px;
  color: #1A237E;
  margin: 0;
}

.buku-cerita-content {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #37474F;
  line-height: 1.75;
}

.buku-cerita-content p {
  margin: 0 0 10px;
}

.buku-cerita-content p:last-child {
  margin-bottom: 0;
}

/* ── 3. Rubrik Buku Paket: Kosakata Baru & Mari Mencari Tahu! ── */
.kosakata-baru-box {
  background: linear-gradient(135deg, #E1F5FE 0%, #E0F7FA 100%);
  border: 2px solid #81D4FA;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 14px 0;
}

.kosakata-header {
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  color: #01579B;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.kosakata-item {
  font-size: 13.5px;
  font-weight: 700;
  color: #263238;
  line-height: 1.6;
}

.kosakata-item+.kosakata-item {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(2, 136, 209, 0.3);
}

.mari-cari-tahu-box {
  background: #FFFDF9;
  border: 2.5px dashed #455A64;
  border-radius: 18px;
  padding: 16px 20px;
  margin: 16px 0;
}

.mct-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #CFD8DC;
  color: #263238;
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.mct-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mct-list li {
  font-size: 13.5px;
  font-weight: 700;
  color: #37474F;
  line-height: 1.65;
}

/* ── 4. Kotak Ayo Analisis Cerita & Cek Kilat (.cek-kilat-card) ── */
.cek-kilat-card {
  background: linear-gradient(135deg, #F3E5F5 0%, #EDE7F6 100%);
  border: 2px solid #CE93D8;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 16px 0;
}

.cek-kilat-header {
  font-family: 'Fredoka One', sans-serif;
  font-size: 14.5px;
  color: #6A1B9A;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cek-kilat-q {
  font-size: 13.8px;
  font-weight: 800;
  color: #1A237E;
  margin-bottom: 12px;
  line-height: 1.55;
}

.cek-kilat-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cek-kilat-btn {
  flex: 1 1 200px;
  background: #FFFFFF;
  border: 2px solid #BA68C8;
  color: #4A148C;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.cek-kilat-btn:hover {
  background: #F3E5F5;
  transform: translateY(-2px);
}

.cek-kilat-btn.ck-correct {
  background: #E8F5E9 !important;
  border-color: #2E7D32 !important;
  color: #1B5E20 !important;
}

.cek-kilat-btn.ck-wrong {
  background: #FFEBEE !important;
  border-color: #C62828 !important;
  color: #B71C1C !important;
}

.cek-kilat-fb {
  display: none;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.cek-kilat-fb.show {
  display: block;
  animation: fadeUp 0.25s ease both;
}

.cek-kilat-fb.ok {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1.5px solid #81C784;
}

.cek-kilat-fb.err {
  background: #FFF3E0;
  color: #E65100;
  border: 1.5px solid #FFB74D;
}

/* ── 5. Tracker 7 Komponen & Kalkulator Skala ── */
.komponen-tracker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #E8F5E9;
  border: 1.5px solid #81C784;
  border-radius: 12px;
  padding: 9px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #1B5E20;
}

.unsur-btn.visited-unsur {
  border-color: #2E7D32 !important;
  background: #E8F5E9 !important;
  color: #1B5E20 !important;
}

.skala-sim-box {
  background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
  border: 2px solid #FFD54F;
  border-radius: 18px;
  padding: 16px 18px;
  margin-top: 14px;
}

.skala-sim-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px;
  color: #E65100;
  margin-bottom: 8px;
}

.skala-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.skala-slider {
  flex: 1;
  accent-color: #FF6B35;
  height: 8px;
  cursor: pointer;
}

.skala-result-pill {
  background: #FFFFFF;
  border: 2px solid #FFB300;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: #1A237E;
  text-align: center;
}

/* ── 6. Kartu Interaktif Sebab-Akibat & ManfaatKlik ── */
.cause-effect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ce-card {
  background: #F8FBFF;
  border: 2px solid #BBDEFB;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.ce-card:hover {
  transform: translateY(-2px);
  border-color: #1976D2;
  box-shadow: 0 6px 14px rgba(21, 101, 192, 0.12);
}

.ce-card.ce-open {
  background: #E8F5E9;
  border-color: #43A047;
}

.ce-cause {
  font-size: 13px;
  font-weight: 800;
  color: #1565C0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ce-card.ce-open .ce-cause {
  color: #1B5E20;
}

.ce-effect {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1.5px dashed #81C784;
  font-size: 12.8px;
  font-weight: 700;
  color: #263238;
  line-height: 1.55;
}

.ce-card.ce-open .ce-effect {
  display: block;
  animation: fadeUp 0.25s ease both;
}

.manfaat-chip.clickable-chip {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.manfaat-chip.clickable-chip:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.manfaat-chip.clickable-chip.active-chip {
  box-shadow: 0 0 0 3px #FFD600, 0 6px 14px rgba(0, 0, 0, 0.14);
  transform: scale(1.03);
}

.manfaat-detail-box {
  background: #F0F8FF;
  border: 2px solid #90CAF9;
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1A237E;
  line-height: 1.6;
}

/* ── 7. Mini Game Teka-Teki Silang (TTS) Interaktif ── */
.tts-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-top: 12px;
}

.tts-board-wrap {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #E3F2FD, #F0F8FF);
  border: 2px solid #90CAF9;
  border-radius: 18px;
  padding: 16px 12px;
  overflow-x: auto;
}

.tts-grid {
  display: grid;
  gap: 4px;
  margin: 0 auto;
  user-select: none;
}

.tts-cell {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tts-cell.tts-empty {
  background: rgba(21, 101, 192, 0.08);
  border: 1px dashed rgba(21, 101, 192, 0.15);
}

.tts-cell.tts-letter {
  background: #FFFFFF;
  border: 2px solid #64B5F6;
  box-shadow: 0 2px 5px rgba(21, 101, 192, 0.10);
  cursor: pointer;
  transition: all 0.16s ease;
}

.tts-cell.tts-letter.tts-active-word {
  background: #FFF9C4;
  border-color: #FBC02D;
}

.tts-cell.tts-letter.tts-focused {
  background: #FFE082;
  border-color: #FF6F00;
  transform: scale(1.06);
  z-index: 2;
}

.tts-cell.tts-letter.tts-correct {
  background: #E8F5E9 !important;
  border-color: #2E7D32 !important;
}

.tts-cell.tts-letter.tts-wrong {
  background: #FFEBEE !important;
  border-color: #C62828 !important;
  animation: shakeLockedAnim 0.4s ease;
}

.tts-num {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 9px;
  font-weight: 900;
  color: #1565C0;
  line-height: 1;
  pointer-events: none;
}

.tts-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  color: #1A237E;
  text-transform: uppercase;
  outline: none;
  padding: 6px 0 0;
  cursor: pointer;
}

.tts-cell.tts-correct .tts-input {
  color: #1B5E20;
}

.tts-clues-wrap {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tts-clue-group {
  background: #FAFCFF;
  border: 1.5px solid #BBDEFB;
  border-radius: 14px;
  padding: 12px 14px;
}

.tts-clue-heading {
  font-family: 'Fredoka One', sans-serif;
  font-size: 13.5px;
  color: #1565C0;
  margin-bottom: 8px;
}

.tts-clue-item {
  font-size: 12.8px;
  font-weight: 700;
  color: #37474F;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.45;
  transition: all 0.18s ease;
  margin-bottom: 4px;
  border: 1.5px solid transparent;
}

.tts-clue-item:hover {
  background: #E3F2FD;
}

.tts-clue-item.active-clue {
  background: #FFF8E1;
  border-color: #FFB300;
  color: #E65100;
}

.tts-clue-item.done-clue {
  background: #E8F5E9;
  border-color: #81C784;
  color: #1B5E20;
  text-decoration: line-through;
}

.tts-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px dashed #BBDEFB;
}

.tts-btn {
  padding: 9px 16px;
  border-radius: 50px;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tts-btn-check {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  color: #fff;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

.tts-btn-hint {
  background: #FFF8E1;
  color: #E65100;
  border: 1.5px solid #FFB300;
}

.tts-btn-reset {
  background: #ECEFF1;
  color: #455A64;
}

.tts-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 540px) {
  .tara-ajakan-box {
    flex-direction: column;
    text-align: center;
  }

  .tts-grid {
    gap: 3px;
  }

  .tts-cell {
    width: 26px;
    height: 26px;
  }

  .tts-input {
    font-size: 13px;
  }
}

/* ============================================================
   ★ KUIS AKHIR SUB-MATERI (PANEL A, B, C) – LAUNCHPAD & HALAMAN KHUSUS
============================================================ */
#screen-kuis-sub {
  background: #EFF6FF;
  min-height: 100vh;
  flex-direction: column;
}

.ks-topbar {
  justify-content: space-between;
}

.ks-btn-back-top {
  background: #FFFFFF;
  border: 2px solid #BBDEFB;
  color: #1565C0;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ks-btn-back-top:hover {
  background: #E3F2FD;
  border-color: #1565C0;
  transform: translateX(-2px);
}

.ks-best-pill {
  background: linear-gradient(135deg, #FFF8E1, #FFE082);
  color: #E65100;
  border: 1.5px solid #FFD54F;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  padding: 7px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

/* Kartu Gerbang Kuis (Launchpad) di Pos 7 Panel A, B, C */
.ks-launchpad-card {
  background: linear-gradient(145deg, #FFFFFF 0%, var(--ks-bg, #E3F2FD) 100%);
  border: 2px solid #BBDEFB;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.08);
}

.ks-lp-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ks-lp-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 2px solid rgba(21, 101, 192, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ks-lp-info {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.ks-lp-subtitle {
  font-size: 13.5px;
  font-weight: 800;
  color: #37474F;
}

.ks-lp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
}

.ks-lp-status.status-lulus {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1.5px solid #A5D6A7;
}

.ks-lp-status.status-cukup {
  background: #FFF8E1;
  color: #E65100;
  border: 1.5px solid #FFE082;
}

.ks-lp-status.status-belum {
  background: #FFEBEE;
  color: #C62828;
  border: 1.5px solid #FFCDD2;
}

.ks-lp-status.status-baru {
  background: #E3F2FD;
  color: #1565C0;
  border: 1.5px solid #90CAF9;
}

.ks-lp-score-box {
  background: #FFFFFF;
  border: 2px solid #FFE082;
  border-radius: 16px;
  padding: 10px 16px;
  text-align: center;
  min-width: 110px;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.12);
}

.ks-lp-stars {
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 3px;
}

.ks-lp-score-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 24px;
  color: var(--ks-accent, #1565C0);
  line-height: 1.1;
}

.ks-lp-score-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #78909C;
  text-transform: uppercase;
}

.ks-lp-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ks-lp-stat-pill {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #CFD8DC;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #455A64;
}

.ks-lp-session-banner {
  background: #FFF8E1;
  border: 2px dashed #FFB300;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
  color: #E65100;
}

.ks-lp-btn-resume {
  background: #FF8F00;
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  padding: 7px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 143, 0, 0.3);
  transition: all 0.2s;
}

.ks-lp-btn-resume:hover {
  background: #E65100;
  transform: translateY(-1px);
}

.ks-lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ks-lp-btn-main {
  flex: 1;
  min-width: 220px;
  margin-top: 0 !important;
}

.ks-lp-btn-review {
  background: #FFFFFF;
  border: 2px solid #90CAF9;
  color: #1565C0;
  border-radius: 50px;
  padding: 12px 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.ks-lp-btn-review:hover {
  background: #E3F2FD;
  border-color: #1565C0;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .ks-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ks-lp-score-box {
    width: 100%;
  }
}

/* ============================================================
   ★ BAHAN AJAR PDF – TOMBOL & MODAL VIEWER (MENU BELAJAR)
============================================================ */
.mt-hero-bahanajar-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mt-btn-bahanajar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.mt-btn-bahanajar.primary {
  background: linear-gradient(135deg, #FFD600, #FFB300);
  color: #1A237E;
  border-color: #FFE082;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.mt-btn-bahanajar.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.mt-btn-bahanajar.secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}

.mt-btn-bahanajar.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.mt-tab-bahanajar {
  margin-left: auto;
  background: #FFF8E1;
  border: 1.5px solid #FFD54F;
  color: #E65100;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mt-tab-bahanajar:hover {
  background: #FFE082;
  transform: translateY(-1px);
}

/* Modal Viewer Bahan Ajar */
.modal-bahanajar-box {
  max-width: 880px;
  width: 96vw;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ba-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ba-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ba-modal-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.ba-modal-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #1A237E;
  line-height: 1.2;
}

.ba-modal-sub {
  font-size: 12px;
  font-weight: 700;
  color: #546E7A;
}

.ba-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #ECEFF1;
  color: #455A64;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.ba-modal-close:hover {
  background: #FFCDD2;
  color: #C62828;
}

.ba-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ba-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.ba-tool-btn.download {
  background: linear-gradient(135deg, #1565C0, #1E88E5);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

.ba-tool-btn.download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.35);
}

.ba-tool-btn.newtab {
  background: #E3F2FD;
  color: #1565C0;
  border: 1.5px solid #90CAF9;
}

.ba-tool-btn.newtab:hover {
  background: #BBDEFB;
}

.ba-viewer-wrap {
  position: relative;
  width: 100%;
  height: 66vh;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #BBDEFB;
  background: #F5F9FF;
}

.ba-pdf-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(245, 249, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 10px;
}

.ba-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #BBDEFB;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: baSpin 0.85s linear infinite;
}

@keyframes baSpin {
  to {
    transform: rotate(360deg);
  }
}

.ba-loading-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  color: var(--primary);
}

.ba-loading-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.ba-mobile-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px;
  gap: 10px;
}

.ba-mobile-mascot {
  width: 84px;
  height: auto;
}

.ba-mobile-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: var(--primary);
}

.ba-mobile-desc {
  font-size: 13.5px;
  font-weight: 600;
  color: #37474F;
  line-height: 1.55;
  max-width: 340px;
}

.ba-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.ba-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-mobile-btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

.ba-mobile-btn.secondary {
  background: #E8F5E9;
  color: #1B5E20;
  border: 2px solid #A5D6A7;
}

.ba-pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.ba-modal-hint {
  font-size: 12px;
  font-weight: 700;
  color: #5D4037;
  background: #FFF8E1;
  border: 1.5px solid #FFE082;
  border-radius: 10px;
  padding: 8px 12px;
}

@media (max-width: 600px) {
  .mt-tab-bahanajar {
    padding: 6px 10px;
    font-size: 11px;
  }

  .ba-viewer-wrap {
    height: auto;
    min-height: 0;
  }

  .ba-pdf-frame,
  .ba-pdf-loading,
  .ba-modal-toolbar,
  .ba-modal-hint {
    display: none !important;
  }

  .ba-mobile-fallback {
    display: flex;
  }
}

/* ============================================================
   ★ MINI GAME SCRATCH SCREEN (#screen-game)
============================================================ */
#screen-game {
  background: linear-gradient(180deg, #E3F2FD 0%, #EFF6FF 100%);
  min-height: 100vh;
  flex-direction: column;
}

.gm-topbar {
  justify-content: space-between;
}

.gm-stage-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px 20px;
  width: 100%;
  box-sizing: border-box;
}

.gm-frame-card {
  width: 100%;
  max-width: 920px;
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - 105px);
  background: #000000;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid #90CAF9;
  box-shadow: 0 12px 36px rgba(21, 101, 192, 0.22);
  position: relative;
}

.gm-scratch-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .gm-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .gm-stage-wrap {
    padding: 8px;
  }

  .gm-frame-card {
    border-radius: 16px;
    max-height: calc(100vh - 130px);
  }
}

/* ============================================================
   ★ MINI GAME SCRATCH SCREEN (#screen-game)
============================================================ */
#screen-game {
  background: #EFF6FF;
  min-height: 100vh;
  height: 100vh;
  flex-direction: column;
}

.gm-topbar {
  justify-content: space-between;
}

.gm-btn-newtab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFF3E0;
  color: #E65100;
  border: 1.5px solid #FFB74D;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}


.gm-btn-newtab:hover {
  background: #FFE0B2;
  transform: translateY(-1px);
}

.gm-frame-wrap {
  flex: 1;
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 0;
}

.gm-scratch-frame {
  width: 100%;
  max-width: none;
  height: 100%;
  border: none;
  border-radius: 0;
  background: #000000;
  display: block;
}

@media (max-width: 640px) {
  .gm-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .gm-frame-wrap {
    padding: 8px;
  }
}

/* ============================================================
   ★ MICRO-INTERACTIONS MODUL 1: TACTILE 3D BUTTON & CARD PHYSICS
============================================================ */

/* 1A. Spring transition & Tactile 3D Active Press pada elemen interaktif */
button,
.menu-main-card,
.menu-side-card,
.menu-top-btn,
.back-btn,
.mt-tab,
.mt-tab-back,
.mt-tab-bahanajar,
.mt-btn-bahanajar,
.mt-btn-next-level,
.unsur-btn,
.cek-kilat-btn,
.island-btn,
.zoom-btn,
.ev-option,
.ev-tf-btn,
.ev-nav-btn,
.ev-nav-prev,
.ev-nav-skip,
.ev-nav-next,
.ev-btn-start,
.ev-btn-back,
.ev-btn-selesai,
.ks-btn-back-top,
.ks-lp-btn-review,
.ks-lp-btn-resume,
.ba-tool-btn,
.ptk-tab-btn,
.tt-tab-btn,
.cfg-btn,
.geo-badge,
.manfaat-chip.clickable-chip {
  transition:
    transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease !important;
  -webkit-tap-highlight-color: transparent;
}

button:active:not(:disabled),
.menu-top-btn:active,
.back-btn:active,
.mt-tab:active,
.mt-tab-back:active,
.mt-tab-bahanajar:active,
.mt-btn-bahanajar:active,
.mt-btn-next-level:active,
.unsur-btn:active,
.cek-kilat-btn:active,
.island-btn:active,
.zoom-btn:active,
.ev-option:active,
.ev-tf-btn:active,
.ev-nav-btn:active,
.ev-nav-prev:active,
.ev-nav-skip:active,
.ev-nav-next:active,
.ev-btn-start:active,
.ev-btn-back:active,
.ev-btn-selesai:active,
.ks-btn-back-top:active,
.ks-lp-btn-review:active,
.ks-lp-btn-resume:active,
.ba-tool-btn:active,
.ptk-tab-btn:active,
.tt-tab-btn:active,
.cfg-btn:active,
.geo-badge:active,
.manfaat-chip.clickable-chip:active {
  transform: translateY(2px) scale(0.95) !important;
  transition-duration: 0.08s !important;
}

/* Efek tekan khusus untuk kartu besar Menu Utama & Kartu Samping */
.menu-main-card:active {
  transform: translateY(-2px) scale(0.96) !important;
  transition-duration: 0.08s !important;
}

.menu-side-card:active {
  transform: translateY(1px) scale(0.96) !important;
  transition-duration: 0.08s !important;
}

/* 1B. Card Shine / Sheen Highlight Halus di Menu Utama */
.menu-main-card,
.menu-side-card {
  position: relative;
  overflow: hidden;
}

.menu-main-card::after,
.menu-side-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -130%;
  width: 65%;
  height: 200%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.52) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(24deg);
  pointer-events: none;
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.menu-main-card:hover::after,
.menu-side-card:hover::after {
  left: 160%;
}

/* Panah kartu samping bergeser halus saat di-hover */
.menu-side-card .sc-arrow,
.menu-side-card .sc-icon-wrap {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-side-card:hover .sc-arrow {
  transform: translateX(3px) scale(1.1);
}

.menu-side-card:hover .sc-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}

/* ============================================================
   ★ MICRO-INTERACTIONS MODUL 2: VISUAL CLICK BURST / SPARKLE RIPPLE
============================================================ */
.gm-click-burst {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 99999;
}

.gm-burst-ring {
  position: absolute;
  left: -20px;
  top: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid #FFD600;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.28) 0%, rgba(255, 107, 53, 0) 70%);
  transform: scale(0.2);
  opacity: 1;
  animation: gmBurstRingAnim 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gmBurstRingAnim {
  0% {
    transform: scale(0.25);
    opacity: 0.95;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.gm-burst-star {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: var(--star-color, #FFD600);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  animation: gmBurstStarAnim 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gmBurstStarAnim {
  0% {
    transform: translate(0, 0) scale(0.4) rotate(0deg);
    opacity: 1;
  }

  65% {
    opacity: 0.95;
  }

  100% {
    transform: translate(var(--tx, 20px), var(--ty, -20px)) scale(1.05) rotate(75deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .gm-click-burst,
  .menu-main-card::after,
  .menu-side-card::after {
    display: none !important;
  }
}

/* ============================================================
   ★ MICRO-INTERACTIONS MODUL 3: KUIS SUB-MATERI & EVALUASI CBT
============================================================ */

/* 3A. Animasi Pergantian Soal (soalSlideIn 220ms) */
@keyframes soalSlideIn {
  0% {
    opacity: 0;
    transform: translateX(16px) scale(0.99);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.ev-soal-box.soal-slide-in {
  animation: soalSlideIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 3B. Option Selection Pop & Nav Button Pulse */
@keyframes optionKeyPop {
  0% {
    transform: scale(0.75);
  }

  60% {
    transform: scale(1.22) rotate(-4deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.ev-option.selected .ev-option-key {
  animation: optionKeyPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes navAnsweredPulse {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.55);
  }

  60% {
    transform: scale(1.16);
    box-shadow: 0 0 0 6px rgba(67, 160, 71, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(67, 160, 71, 0);
  }
}

.ev-nav-btn.leg-answered {
  animation: navAnsweredPulse 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 3C. Progress Bar Shimmer pada #ev-soal-fill & #ks-soal-fill */
#ev-soal-fill,
#ks-soal-fill {
  position: relative;
  overflow: hidden;
}

#ev-soal-fill::after,
#ks-soal-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: progressShimmerMove 2.1s infinite linear;
}

@keyframes progressShimmerMove {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

/* ============================================================
   ★ MICRO-INTERACTIONS MODUL 4: MICRO-FEEDBACK MENU BELAJAR (PANEL A, B, C)
============================================================ */

/* 4A. Indikator Centang Komponen Peta (.unsur-btn.visited-unsur) */
.unsur-btn {
  position: relative;
}

@keyframes visitedBadgePop {
  0% {
    transform: scale(0) rotate(-25deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.unsur-btn.visited-unsur {
  padding-right: 28px !important;
}

.unsur-btn.visited-unsur::after {
  content: '✓';
  position: absolute;
  right: 8px;
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2E7D32;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(46, 125, 50, 0.3);
  animation: visitedBadgePop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 4B. Animasi Rotasi Panah Accordion Kartu Sebab-Akibat (.ce-card) */
.ce-card .ce-cause span:last-child {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ce-card.ce-open .ce-cause span:last-child {
  transform: rotate(180deg);
}

/* 4C. Feedback Pulse Penggaris Skala (#skala-sim-output) & Info Box Pop */
@keyframes skalaPulseHighlight {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.55);
    background: #FFF8E1;
  }

  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 6px rgba(255, 179, 0, 0);
    background: #FFFDE7;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 179, 0, 0);
    background: #FFFFFF;
  }
}

.skala-result-pill.skala-pulse {
  animation: skalaPulseHighlight 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-box-pop {
  animation: fadeUp 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============================================================
   ★ MICRO-INTERACTIONS MODUL 5: JELAJAH PETA (#screen-peta)
============================================================ */

/* 5A. Staggered Entrance (40ms per item) pada Batas Wilayah & Fakta Unik */
@keyframes ppItemStaggerIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pp-stagger-item {
  animation: ppItemStaggerIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pp-fakta-item {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
}

.pp-fakta-item:hover {
  transform: translateY(-2px) scale(1.015);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.10);
}

/* 5B. Hover Provinsi Lebih Responsif & Emoji Pulau Bounce */
#map-svg .province {
  cursor: pointer;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

#map-svg .province:hover {
  filter: brightness(1.13) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}

@keyframes ppEmojiBounce {
  0% {
    transform: scale(0.4) rotate(-14deg);
    opacity: 0;
  }

  65% {
    transform: scale(1.22) rotate(6deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

#pp-emoji {
  display: inline-block;
}

#pp-emoji.pp-emoji-bounce {
  animation: ppEmojiBounce 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes activeIslandPulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 6px rgba(21, 101, 192, 0.22), 0 6px 18px rgba(0, 0, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 10px rgba(21, 101, 192, 0.06), 0 6px 18px rgba(0, 0, 0, 0.2);
  }
}

.island-btn.active-island {
  animation: activeIslandPulse 2s infinite ease-in-out;
}

/* ============================================================
   ★ MICRO-INTERACTIONS MODUL 6: FLOATING QUICK SOUND TOGGLE (#sound-toggle)
============================================================ */
#sound-toggle {
  position: fixed;
  bottom: 12px;
  right: 50px;
  z-index: 9999;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #BBDEFB;
  background: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  backdrop-filter: blur(4px);
  opacity: 0.78;
}

#sound-toggle:hover {
  transform: scale(1.15);
  background: #E3F2FD;
  border-color: var(--primary);
  opacity: 1;
}

#sound-toggle.sound-active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(21, 101, 192, 0.45);
  animation: soundWavePulse 2.2s infinite ease-out;
  pointer-events: none;
}

#sound-toggle.sound-muted {
  background: rgba(255, 235, 238, 0.92);
  border-color: #EF9A9A;
  color: #C62828;
}

@keyframes soundWavePulse {
  0% {
    transform: scale(0.85);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}


/* ============================================================
   ★ JELAJAH PETA v2.0: MULTI-LAYER PETA TEMATIK & PENGGARIS SKALA
============================================================ */

/* Toolbar Pemilih Layer Tematik */
.map-layer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 2px solid #90CAF9;
  border-radius: 18px;
  padding: 8px 10px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.12);
  flex-wrap: wrap;
}

.map-layer-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.map-layer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid #E3F2FD;
  background: #F4F9FF;
  color: #1565C0;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.map-layer-btn:hover {
  background: #E3F2FD;
  border-color: #64B5F6;
  transform: translateY(-2px);
}

.map-layer-btn.active {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  color: #FFFFFF;
  border-color: #0D47A1;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.32);
}

.map-layer-btn[data-layer="zonawaktu"].active {
  background: linear-gradient(135deg, #0288D1, #01579B);
  border-color: #01579B;
}

.map-layer-btn[data-layer="astronomis"].active {
  background: linear-gradient(135deg, #00897B, #004D40);
  border-color: #004D40;
}

.map-layer-btn[data-layer="gunungapi"].active {
  background: linear-gradient(135deg, #E64A19, #BF360C);
  border-color: #BF360C;
}

.map-ruler-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 12px;
  border: 2px solid #FFB300;
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  color: #E65100;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 179, 0, 0.2);
}

.map-ruler-toggle-btn:hover {
  background: linear-gradient(135deg, #FFECB3, #FFE082);
  transform: translateY(-2px);
}

.map-ruler-toggle-btn.active {
  background: linear-gradient(135deg, #F57F17, #FF8F00);
  color: #FFFFFF;
  border-color: #E65100;
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.35), 0 6px 16px rgba(230, 81, 0, 0.35);
}

/* Banner Penggaris Skala */
.map-ruler-banner {
  background: linear-gradient(135deg, #FFFDE7 0%, #FFF8E1 100%);
  border: 2px solid #FFB300;
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(245, 127, 23, 0.14);
  animation: fadeUp 0.25s ease both;
}

.mrb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mrb-badge {
  background: #F57F17;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.4px;
}

.mrb-status {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: #5D4037;
}

.mrb-clear-btn {
  background: #FFFFFF;
  border: 1.5px solid #FFB300;
  color: #E65100;
  font-family: 'Nunito', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
}

.mrb-clear-btn:hover {
  background: #FFE082;
}

.mrb-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px dashed #FFE082;
}

.mrb-preset-lbl {
  font-size: 11.5px;
  font-weight: 900;
  color: #E65100;
}

.mrb-preset-btn {
  background: #FFFFFF;
  border: 1.5px solid #FFD54F;
  color: #4E342E;
  font-family: 'Nunito', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 50px;
  cursor: pointer;
}

.mrb-preset-btn:hover {
  background: #F57F17;
  color: #FFFFFF;
  border-color: #F57F17;
}

/* Container Panel Tematik di Bawah Peta */
.thematic-panel {
  background: #FFFFFF;
  border-radius: 20px;
  border: 2.5px solid #90CAF9;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: 0 10px 28px rgba(21, 101, 192, 0.14);
  animation: fadeUp 0.28s ease both;
}

.tp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #FFFFFF;
}

.tp-header-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.tp-header-text {
  flex: 1;
  min-width: 0;
}

.tp-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  margin: 0;
  line-height: 1.25;
}

.tp-sub {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.92;
  margin-top: 2px;
}

.tp-close-btn {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-body {
  padding: 16px 18px;
}

/* ── Panel Penggaris Skala ── */
.ruler-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ruler-metric-card {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.ruler-metric-card.highlight {
  background: #FFF8E1;
  border-color: #FFB300;
}

.rm-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #546E7A;
  margin-bottom: 4px;
}

.rm-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px;
  color: #1A237E;
}

.ruler-metric-card.highlight .rm-val {
  color: #E65100;
}

.rm-note {
  font-size: 11px;
  font-weight: 700;
  color: #78909C;
  margin-top: 3px;
}

.ruler-formula-box {
  background: #EFF6FF;
  border-left: 4px solid #1565C0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.6;
}

.ruler-travel-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ruler-travel-chip {
  flex: 1;
  min-width: 170px;
  background: #F1F8E9;
  border: 1.5px solid #A5D6A7;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #2E7D32;
}

/* ── Panel Simulator 3 Zona Waktu ── */
.tz-clocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.tz-clock-card {
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tz-clock-card:hover {
  transform: translateY(-4px);
}

.tz-clock-card.tz-wib {
  background: linear-gradient(180deg, #E1F5FE 0%, #FFFFFF 100%);
  border-color: #29B6F6;
}

.tz-clock-card.tz-wita {
  background: linear-gradient(180deg, #FFF8E1 0%, #FFFFFF 100%);
  border-color: #FFB300;
}

.tz-clock-card.tz-wit {
  background: linear-gradient(180deg, #F3E5F5 0%, #FFFFFF 100%);
  border-color: #AB47BC;
}

.tz-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 50px;
  color: #FFFFFF;
  margin-bottom: 5px;
}

.tz-wib .tz-badge {
  background: #0288D1;
}

.tz-wita .tz-badge {
  background: #F57C00;
}

.tz-wit .tz-badge {
  background: #8E24AA;
}

.tz-name {
  font-size: 12px;
  font-weight: 800;
  color: #37474F;
}

.tz-digital-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
}

.tz-sky-icon {
  font-size: 22px;
}

.tz-digital-time {
  font-family: 'Fredoka One', sans-serif;
  font-size: 26px;
  color: #1A237E;
  letter-spacing: 1px;
}

.tz-period {
  font-size: 11.5px;
  font-weight: 900;
  color: #1565C0;
  margin-bottom: 6px;
}

.tz-regions {
  font-size: 11px;
  font-weight: 700;
  color: #546E7A;
  line-height: 1.4;
}

.tz-slider-box {
  background: #F8FAFC;
  border: 1.5px solid #CFD8DC;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.tz-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #1A237E;
  margin-bottom: 8px;
}

.tz-now-btn {
  background: #E3F2FD;
  border: 1.5px solid #64B5F6;
  color: #1565C0;
  font-family: 'Nunito', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
}

.tz-now-btn:hover {
  background: #1565C0;
  color: #FFFFFF;
}

.tz-range-input {
  width: 100%;
  accent-color: #0288D1;
  cursor: pointer;
  height: 8px;
}

.tz-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  color: #607D8B;
  margin-top: 6px;
}

.tz-tara-story {
  background: #FFFDE7;
  border: 1.5px solid #FFE082;
  border-left: 5px solid #FFB300;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #4E342E;
  line-height: 1.6;
}

/* ── Panel Layer Astronomis & Khatulistiwa ── */
.astro-detail-card {
  background: linear-gradient(135deg, #E0F2F1 0%, #FFFFFF 100%);
  border: 2px solid #4DB6AC;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.adc-badge {
  display: inline-block;
  background: #00796B;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}

.adc-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #004D40;
  margin-bottom: 6px;
}

.adc-desc {
  font-size: 13px;
  font-weight: 700;
  color: #263238;
  line-height: 1.65;
}

.astro-pins-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.astro-pin-btn {
  flex: 1 1 160px;
  background: #F4F9F9;
  border: 1.5px solid #B2DFDB;
  color: #00695C;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}

.astro-pin-btn:hover,
.astro-pin-btn.active {
  background: #00796B;
  color: #FFFFFF;
  border-color: #004D40;
  box-shadow: 0 4px 12px rgba(0, 121, 107, 0.25);
}

/* ── Panel Layer Gunung Api & Potensi Alam ── */
.volcano-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #FBE9E7 0%, #FFFFFF 100%);
  border: 2px solid #FF8A65;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.vdc-icon {
  font-size: 38px;
  line-height: 1;
  background: #FFFFFF;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFCCBC;
  flex-shrink: 0;
}

.vdc-content {
  flex: 1;
  min-width: 0;
}

.vdc-tag {
  display: inline-block;
  background: #D84315;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 5px;
}

.vdc-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  color: #BF360C;
  margin-bottom: 5px;
}

.vdc-desc {
  font-size: 13px;
  font-weight: 700;
  color: #37474F;
  line-height: 1.6;
}

.vdc-meta {
  margin-top: 8px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #E65100;
}

.volcano-quick-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.vq-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 50px;
  border: 1.5px solid #FFCCBC;
  background: #FFF3E0;
  color: #BF360C;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vq-chip.maritim-chip {
  background: #E1F5FE;
  border-color: #81D4FA;
  color: #0277BD;
}

.vq-chip.agraris-chip {
  background: #E8F5E9;
  border-color: #A5D6A7;
  color: #2E7D32;
}

.vq-chip:hover,
.vq-chip.active {
  background: #D84315;
  color: #FFFFFF;
  border-color: #BF360C;
}

.vq-chip.maritim-chip:hover,
.vq-chip.maritim-chip.active {
  background: #0288D1;
  border-color: #01579B;
  color: #FFFFFF;
}

.vq-chip.agraris-chip:hover,
.vq-chip.agraris-chip.active {
  background: #2E7D32;
  border-color: #1B5E20;
  color: #FFFFFF;
}

/* ── Elemen SVG Peta Tematik ── */
.svg-pin-node {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.svg-pin-node:hover {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

@keyframes equatorGlowPulse {

  0%,
  100% {
    stroke-opacity: 0.9;
    stroke-width: 2.5px;
  }

  50% {
    stroke-opacity: 1;
    stroke-width: 3.6px;
  }
}

.equator-line-anim {
  animation: equatorGlowPulse 2.4s infinite ease-in-out;
}

@media (max-width: 640px) {
  .tz-clocks-grid {
    grid-template-columns: 1fr;
  }

  .volcano-detail-card {
    flex-direction: column;
  }
}


/* ============================================================
   ★ FIX ANTI-GLITCH / HOVER THRASHING PADA SEMUA KARTU
   Mengganti pergeseran posisi vertikal murni (translateY) dengan
   ekspansi simetris halus (scale >= 1) dari titik tengah kartu,
   sehingga hitbox kartu selalu merangkul kursor di tepi mana pun.
============================================================ */
.menu-main-card:hover {
  transform: scale(1.035) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.menu-side-card:hover {
  transform: scale(1.028) !important;
  box-shadow: 0 12px 32px rgba(21, 101, 192, 0.25);
}

.card:hover,
.materi-card:hover {
  border-radius: 22px !important;
  transform: scale(1.006) !important;
}

.tt-hero-banner:hover,
.ptk-hero-banner:hover,
.tt-card-box:hover,
.ptk-card-box:hover,
.ptk-step-card:hover,
.ptk-quote-box:hover,
.ptk-feature-card:hover,
.ptk-icon-card:hover,
.tt-tp-item:hover,
.tt-topik-card:hover,
.tt-feat-card:hover,
.gm-interactive-card.gm-card-visible:hover {
  transform: scale(1.018) !important;
}

.ptk-star-row:hover,
.tt-info-row:hover,
.tt-filosofi-item:hover,
.ptk-star-row.gm-card-visible:hover,
.tt-info-row.gm-card-visible:hover,
.p-materi-card:hover,
.p-stamp-card.stamp-locked:hover,
.tz-clock-card:hover,
.ce-card:hover,
.ev-info-item:hover,
.ev-stat-card:hover {
  transform: scale(1.02) !important;
}

.p-stamp-card.stamp-visited:hover {
  transform: scale(1.045) !important;
}

.ptk-cert-mockup:hover,
.ptk-cert-mockup.gm-card-visible:hover {
  transform: scale(1.025) !important;
}

.ptk-badge-item:hover,
.ptk-badge-item.gm-card-visible:hover {
  transform: scale(1.06) !important;
}

/* ── Mode Developer (Pengaturan) ─────────────────────────── */
.cfg-card-dev {
  border: 2px dashed #6366F1 !important;
  background: linear-gradient(135deg, #F8FAFF 0%, #EEF2FF 100%) !important;
}

.dev-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #475569;
  margin-left: 6px;
  vertical-align: middle;
}

.dev-badge.active {
  background: #DCFCE7;
  color: #15803D;
}

.dev-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.dev-action-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #C7D2FE;
  background: #FFFFFF;
  color: #1E293B;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dev-action-btn:hover {
  background: #EEF2FF;
  border-color: #6366F1;
  transform: translateY(-1px);
}

.dev-action-btn.dev-action-warn {
  border-color: #FECACA;
  color: #B91C1C;
}

.dev-action-btn.dev-action-warn:hover {
  background: #FEF2F2;
  border-color: #EF4444;
}

.dev-feedback {
  margin-top: 12px;
  padding: 9px 13px;
  border-radius: 10px;
  background: #DCFCE7;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
}

.dev-pw-error {
  color: #DC2626;
  font-size: 12.5px;
  font-weight: 800;
  margin-top: -6px;
  margin-bottom: 10px;
  text-align: left;
}


/* ============================================================
   GLOSARIUM ISTILAH GEOGRAFI & IPAS (#modal-glosarium)
============================================================ */
.modal-glosarium-box {
  max-width: 720px;
  width: 95vw;
  max-height: 86vh;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gl-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gl-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5F9FF;
  border: 2px solid #BBDEFB;
  border-radius: 12px;
  padding: 8px 12px;
}

.gl-search-wrap:focus-within {
  border-color: var(--primary);
  background: #FFFFFF;
}

.gl-search-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.gl-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.gl-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gl-filter-btn {
  background: #EFF6FF;
  border: 1.5px solid #BBDEFB;
  color: var(--primary);
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gl-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.gl-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.gl-item {
  background: #FAFCFF;
  border: 1.5px solid #DCEBFF;
  border-radius: 14px;
  padding: 12px 14px;
}

.gl-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.gl-term {
  font-family: 'Fredoka One', sans-serif;
  font-size: 15.5px;
  color: var(--primary);
}

.gl-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
}

.gl-badge.kat-a {
  background: #E3F2FD;
  color: #1565C0;
}

.gl-badge.kat-b {
  background: #E8F5E9;
  color: #2E7D32;
}

.gl-badge.kat-c {
  background: #FFF3E0;
  color: #E65100;
}

.gl-def {
  font-size: 13.5px;
  font-weight: 600;
  color: #37474F;
  line-height: 1.55;
}

.gl-empty {
  text-align: center;
  padding: 28px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.tt-cp-highlight {
  background: linear-gradient(180deg, rgba(255, 241, 118, 0.35) 0%, rgba(255, 235, 59, 0.55) 100%);
  color: #1A237E;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Active Learning Gate – tombol lanjut pos terkunci */
.mt-btn-next-level.gate-locked {
  background: linear-gradient(135deg, #CFD8DC, #B0BEC5) !important;
  color: #37474F !important;
  box-shadow: 0 3px 10px rgba(55, 71, 79, 0.14) !important;
  opacity: 0.92;
}

.mt-btn-next-level.gate-locked .mt-btn-arr {
  background: rgba(55, 71, 79, 0.12) !important;
  color: #37474F !important;
}

/* ============================================================
   EXAM FOCUS PENALTY OVERLAY (#exam-focus-penalty-overlay)
============================================================ */
.efp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.efp-card {
  background: #FFFFFF;
  border: 3px solid #FFAB40;
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.efp-mascot {
  width: 96px;
  height: auto;
}

.efp-badge {
  background: #FFF3E0;
  color: #E65100;
  border: 1.5px solid #FFCC80;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
}

.efp-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  color: #1A237E;
  margin: 2px 0 0;
}

.efp-desc {
  font-size: 14px;
  font-weight: 600;
  color: #37474F;
  line-height: 1.55;
  margin: 0;
}

.efp-countdown-wrap {
  margin-top: 6px;
  background: #EFF6FF;
  border: 2px solid #90CAF9;
  border-radius: 16px;
  padding: 12px 24px;
  width: 100%;
}

.efp-countdown-num {
  font-family: 'Fredoka One', sans-serif;
  font-size: 42px;
  line-height: 1.1;
  color: #1565C0;
}

.efp-countdown-label {
  font-size: 13px;
  font-weight: 800;
  color: #455A64;
}

.efp-note {
  font-size: 12px;
  font-weight: 700;
  color: #607D8B;
  margin-top: 2px;
}

/* Ikon kustom iconappv2 (skala otomatis mengikuti ukuran teks) */
.icon-v2-inline {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  vertical-align: -0.22em;
  display: inline-block;
  flex-shrink: 0;
}

.icon-v2-topbar {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  margin: auto;
}
