/* ==========================================================================
   SAUH GAME — MASTER STYLESHEET (REFACTORED & OPTIMIZED)
   ========================================================================== */

/* ==========================================
   1. RESET & GLOBAL BASE
   ========================================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #061b2b;
  color: #f7fbfc;
}

body {
  overflow-x: hidden;
}

button {
  font: inherit;
}

.page {
  padding: clamp(15px, 4vw, 40px);
  background: #e8f7f7;
  min-height: calc(100vh - 64px);
  color: #183c46;
}

.panel {
  max-width: 1000px;
  margin: auto;
  background: #fff;
  border-radius: 24px;
  padding: clamp(18px, 4vw, 35px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.title {
  margin-top: 0;
}

/* ==========================================
   2. TOPBAR UI
   ========================================== */
.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(12px, 3vw, 22px);
  background: rgba(3, 19, 31, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 100;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  font-weight: 900;
  letter-spacing: 2px;
  font-size: clamp(14px, 2vw, 18px);
}

.scores {
  display: flex;
  gap: 8px;
  font-size: clamp(10px, 1.5vw, 13px);
  flex-wrap: wrap;
}

.scores span {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #8ce8ed;
}

.sound-toggle-btn.muted {
  background: rgba(255, 82, 82, 0.2);
  border-color: rgba(255, 82, 82, 0.5);
  color: #ffcdd2;
}

/* ==========================================
   3. CINEMATIC SCENES & ELEMENTS
   ========================================== */
.cinematic-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 520px;
  overflow: hidden;
  background: #061b2b;
}

.cinematic-visual,
.cinematic-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 35%,
    rgba(0, 0, 0, 0.16) 68%,
    rgba(0, 0, 0, 0.65)
  );
  pointer-events: none;
}

.scene-ocean {
  background: linear-gradient(
    #72cce8 0%,
    #b6e5ef 36%,
    #1b9fc0 58%,
    #056a8e 100%
  );
}

.sun {
  position: absolute;
  width: clamp(70px, 12vw, 130px);
  height: clamp(70px, 12vw, 130px);
  right: 10%;
  top: 8%;
  border-radius: 50%;
  background: #fff3bd;
  box-shadow: 0 0 50px rgba(255, 243, 189, 0.7);
  animation: sunPulse 5s ease-in-out infinite;
}

.cloud {
  position: absolute;
  width: clamp(120px, 18vw, 180px);
  height: clamp(35px, 5vw, 55px);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50px;
  animation: cloudMove 32s linear infinite;
}

.cloud:before,
.cloud:after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud:before {
  width: 45%;
  height: 140%;
  left: 15%;
  bottom: 20%;
}

.cloud:after {
  width: 55%;
  height: 180%;
  right: 15%;
  bottom: 10%;
}

.cloud-1 {
  top: 14%;
  left: -220px;
}

.cloud-2 {
  top: 28%;
  left: 35%;
  transform: scale(0.7);
  animation-duration: 45s;
}

.fishing-boat {
  position: absolute;
  width: clamp(120px, 16vw, 180px);
  height: clamp(80px, 12vw, 120px);
  left: 12%;
  bottom: 38%;
  animation: boatFloat 4s ease-in-out infinite;
}

.boat-body {
  position: absolute;
  width: 95%;
  height: 32%;
  bottom: 12%;
  background: #173c4b;
  border-radius: 10px 10px 50px 60px;
}

.boat-cabin {
  position: absolute;
  width: 32%;
  height: 32%;
  bottom: 44%;
  left: 38%;
  background: #f1f0dc;
  border-radius: 5px 5px 0 0;
}

.boat-cabin:after {
  content: "";
  position: absolute;
  width: 30%;
  height: 35%;
  top: 20%;
  left: 18%;
  background: #63b9d1;
  box-shadow: 18px 0 0 #63b9d1;
}

.boat-mast {
  position: absolute;
  width: 4px;
  height: 65%;
  left: 52%;
  bottom: 45%;
  background: #263a3f;
}

.boat-flag {
  position: absolute;
  left: 54%;
  bottom: 100%;
  width: 20%;
  height: 16%;
  background: #ef6b57;
  clip-path: polygon(0 0, 100% 20%, 70% 50%, 100% 80%, 0 100%);
}

.ocean-wave {
  position: absolute;
  left: -10%;
  width: 120%;
  border-radius: 50%;
}

.wave-back {
  height: 180px;
  bottom: 21%;
  background: rgba(87, 205, 220, 0.55);
  animation: waveMove 8s ease-in-out infinite;
}

.wave-middle {
  height: 210px;
  bottom: 13%;
  background: rgba(32, 165, 194, 0.8);
  animation: waveMove 6s ease-in-out infinite reverse;
}

.wave-front {
  height: 240px;
  bottom: -2%;
  background: #08799c;
  animation: waveMove 5s ease-in-out infinite;
}

/* ==========================================
   4. SAUH INTRO (FRAME 1)
   ========================================== */
.sauh-intro {
  isolation: isolate;
  position: relative;
  width: 100%;
  height: 100%;
  background: url('../assets/images/bg-game.jpg') center center / cover no-repeat !important;
  overflow: hidden;
}

.sauh-intro .scene-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    circle at center,
    rgba(3, 23, 34, 0.15) 0%,
    rgba(3, 23, 34, 0.55) 100%
  );
  pointer-events: none;
}

.sauh-intro .sun {
  position: absolute;
  z-index: 2;
  width: clamp(70px, 10vw, 120px);
  height: clamp(70px, 10vw, 120px);
  left: 18%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #fffde5,
    #ffe38a 68%,
    #ffc85b
  );
  box-shadow:
    0 0 35px rgba(255, 239, 166, .8),
    0 0 80px rgba(255, 220, 118, .5);
  animation: sauhSunGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.sauh-intro .cloud {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: cloudMove 35s linear infinite;
  pointer-events: none;
}

.sauh-intro .cloud-1 {
  top: 10%;
  left: -220px;
  width: 170px;
  height: 50px;
}

.sauh-intro .cloud-2 {
  top: 22%;
  left: -150px;
  width: 130px;
  height: 40px;
  animation-duration: 48s;
  animation-delay: -15s;
  opacity: 0.9;
}

.fishing-boat.sauh-sailing-boat {
  position: absolute !important;
  z-index: 4;
  bottom: 32%;
  left: 0;
  width: 120px;
  height: 70px;
  transform-origin: center;
  animation: boatSail 24s ease-in-out infinite;
  pointer-events: none;
}

.sauh-title {
  z-index: 12;
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 850px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: sauhLogoEntrance 1.2s cubic-bezier(.2, .8, .2, 1) both;
}

.sauh-logo-frame {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sauh-logo-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 66%;
  height: 65%;
  top: 18%;
  left: 17%;
  border-radius: 50%;
  background: rgba(255, 255, 222, .35);
  filter: blur(42px);
  animation: sauhLogoAura 3.5s ease-in-out infinite alternate;
}

.sauh-logo-image {
  display: block;
  width: min(100%, 650px);
  max-height: 32vh;
  height: auto;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 10px 20px rgba(0, 30, 50, 0.5));
  animation: sauhLogoFloat 4.5s ease-in-out infinite;
}

.sauh-intro-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 4px;
  color: #ffffff;
  font-size: clamp(9px, 1.3vw, 14px);
  font-weight: 900;
  letter-spacing: clamp(1px, .3vw, 3px);
  text-shadow: 0 2px 10px rgba(2, 22, 35, 0.9);
}

.sauh-label-line {
  width: clamp(15px, 4vw, 50px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
}

.sauh-label-line:last-child {
  transform: scaleX(-1);
}

.sauh-bubble {
  position: absolute;
  z-index: 5;
  bottom: -30px;
  border: 2px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(255, 255, 255, .75),
    rgba(157, 238, 250, .15) 65%,
    transparent
  );
  box-shadow: inset -3px -4px 8px rgba(255, 255, 255, .18);
  pointer-events: none;
  animation: sauhBubbleRise 8s linear infinite;
}

.bubble-1 { left: 12%; width: 18px; height: 18px; animation-delay: 0s; }
.bubble-2 { left: 27%; width: 10px; height: 10px; animation-delay: 2.4s; animation-duration: 7s; }
.bubble-3 { right: 16%; width: 24px; height: 24px; animation-delay: 1.2s; animation-duration: 9s; }
.bubble-4 { right: 33%; width: 12px; height: 12px; animation-delay: 3.8s; }
.bubble-5 { left: 52%; width: 8px; height: 8px; animation-delay: 5s; animation-duration: 6.5s; }

.sauh-sparkle {
  position: absolute;
  z-index: 5;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fffde0;
  box-shadow: 0 0 14px 4px rgba(255, 255, 210, .8);
  animation: sauhSparkle 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.sparkle-1 { top: 21%; left: 19%; }
.sparkle-2 { top: 34%; right: 16%; animation-delay: .8s; }
.sparkle-3 { top: 15%; right: 31%; animation-delay: 1.4s; }

.sauh-caption {
  position: relative;
  z-index: 20;
  width: min(90%, 580px);
  margin: 0 auto;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  background: rgba(6, 38, 56, 0.72);
  color: #ffffff;
  text-align: center;
  font-size: clamp(11px, 1.5vw, 15px);
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.sauh-caption-icon {
  display: inline-block;
  margin-right: 5px;
}

.sauh-caption b {
  color: #ffd966;
}

.sauh-start-button {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 210px;
  margin: 10px auto 14px;
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  background: linear-gradient(135deg, #0e8398 0%, #065566 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(2, 28, 41, 0.45);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sauh-start-button:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #149cb5 0%, #086b80 100%);
  border-color: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 28, 41, 0.6);
}

.sauh-start-button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 12px rgba(2, 28, 41, 0.4);
}

.sauh-button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #064c68;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.sauh-start-button:hover .sauh-button-arrow {
  transform: translateX(5px);
  background: #ffffff;
  color: #086b80;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   5. CINEMATIC INTERFACE & CHARACTERS
   ========================================== */
.cinematic-title {
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: min(90%, 800px);
  animation: logoReveal 1.8s ease-out both;
}

.shark-logo {
  font-size: clamp(32px, 6vw, 90px);
  font-weight: 900;
  letter-spacing: clamp(2px, 1vw, 5px);
  text-shadow: 0 6px 0 rgba(0, 54, 78, 0.8), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.shark-logo span {
  display: block;
  font-size: 0.72em;
  color: #b9eff5;
  letter-spacing: clamp(4px, 2vw, 12px);
}

.game-tagline {
  margin-top: 12px;
  font-size: clamp(12px, 1.5vw, 20px);
  letter-spacing: clamp(2px, 1vw, 5px);
}

.cinematic-interface {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 15px 25px;
  background: linear-gradient(
    to top,
    rgba(2, 13, 22, 0.94),
    rgba(2, 13, 22, 0.55),
    transparent
  );
}

.cinematic-caption {
  max-width: 820px;
  text-align: center;
  font-size: clamp(14px, 1.8vw, 25px);
  line-height: 1.5;
  text-shadow: 0 3px 10px #000;
}

.cinematic-caption strong {
  color: #8ce8ed;
}

.story-dots {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.story-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.story-dots span.active {
  width: 25px;
  border-radius: 10px;
  background: #8ce8ed;
}

.cinematic-button,
.btn {
  border: 0;
  border-radius: 50px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #fff, #dff8fa);
  color: #083247;
  font-weight: 900;
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: 0.2s;
}

.cinematic-button:hover,
.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.cinematic-green,
.btn.green {
  background: linear-gradient(135deg, #7de4c1, #b9f3df);
}

.scene-characters {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at center, #164f6c, #082e46 45%, #041b2b);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
}

.character-bg-glow {
  position: absolute;
  width: min(100vw, 550px);
  height: min(100vw, 550px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(69, 202, 222, 0.28),
    transparent 70%
  );
  animation: characterGlow 4s infinite alternate;
  pointer-events: none;
}

.characters-wrapper {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 750px;
  padding: 0 10px;
  flex-wrap: wrap;
}

.character-card {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(4, 27, 43, 0.65);
  border: 1px solid rgba(69, 202, 222, 0.35);
  padding: 20px 16px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: characterAppear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.character-card.card-bu-ratna { animation-delay: 0.3s; }
.character-card.card-maya { animation-delay: 1.2s; }

.character-image {
  width: clamp(100px, 20vw, 140px);
  height: clamp(100px, 20vw, 140px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

.img-bu-ratna { background-image: url('../assets/images/character/bu-ratna.png'); }
.img-maya { background-image: url('../assets/images/character/maya.png'); }

.scene-single-character,
.sauh-character-scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: url('../assets/images/bg-game.jpg') center center / cover no-repeat !important;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.single-character-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: min(92%, 820px);
  max-height: 80vh;
  margin: 0 auto;
  animation: singleCharacterAppear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.character-full-image {
  flex: 0 0 clamp(220px, 35vw, 340px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  filter: drop-shadow(0 12px 25px rgba(2, 28, 41, 0.5));
}

.character-full-image img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  user-select: none;
}

.single-character-card {
  flex: 1;
  background: rgba(6, 38, 56, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: clamp(18px, 3vw, 28px);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.single-character-image {
  width: clamp(120px, 25vw, 160px);
  height: clamp(120px, 25vw, 160px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.character-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  color: #ffffff;
}

.character-name {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  margin: 0;
  color: #8ce8ed;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.character-role {
  display: inline-block;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 900;
  color: #ffd966;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.character-desc {
  font-size: clamp(12px, 1.5vw, 14px);
  line-height: 1.6;
  color: #e2f5f7;
  margin: 6px 0 0 0;
}

/* ==========================================
   6. MAP SCENE (PESISIR CIREBON)
   ========================================== */
.scene-map {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d4b68;
}

.map-background {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background: url('../assets/images/bg-pesisir-cirebon.jpg') center center / cover no-repeat !important;
  animation: mapZoom 8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.mission-title {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  text-align: center;
  color: #ffffff;
  width: min(90%, 600px);
  text-shadow: 0 4px 15px rgba(2, 28, 41, 0.85);
}

.mission-title small {
  display: block;
  letter-spacing: 3px;
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 900;
  color: #8ce8ed;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mission-title h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(1, 20, 31, 0.9);
}

.label-cirebon {
  position: absolute;
  left: 22%;
  top: 36%;
  font-size: clamp(18px, 3.5vw, 28px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(14, 131, 152, 0.8);
}

.label-coast {
  position: absolute;
  left: 28%;
  top: 44%;
  color: #ffd966;
  font-size: clamp(11px, 1.8vw, 15px);
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.map-route {
  position: absolute;
  height: 4px;
  background: #ffe38a;
  border-radius: 10px;
  transform-origin: left;
  box-shadow: 0 0 12px rgba(255, 227, 138, 0.9);
}

.route-1 {
  width: 18%;
  left: 36%;
  top: 52%;
  transform: rotate(18deg);
}

.route-2 {
  width: 15%;
  left: 52%;
  top: 58%;
  transform: rotate(-22deg);
}

.map-point {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff5252;
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(255, 82, 82, 0.8);
  animation: mapPointPulse 2s infinite;
}

.point-1 { left: 35%; top: 51%; }
.point-2 { left: 52%; top: 57%; animation-delay: 0.5s; }
.point-3 { left: 66%; top: 51%; animation-delay: 1s; }

.map-boat {
  position: absolute;
  left: 60%;
  top: 48%;
  font-size: clamp(26px, 4vw, 38px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: mapBoatMove 3.5s ease-in-out infinite;
}

.zoom-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  pointer-events: none;
}

.zoom-indicator span {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: zoomPulse 3s infinite;
}

.zoom-indicator span:nth-child(2) { animation-delay: 0.8s; }
.zoom-indicator span:nth-child(3) { animation-delay: 1.6s; }

.zoom-cross {
  position: absolute;
  left: -5px;
  top: -12px;
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================
   7. DASHBOARD & LEVEL LOADING
   ========================================== */
.scene-dashboard {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: radial-gradient(
    circle at center top,
    #164e65,
    #071d2d 75%
  );
  padding-bottom: 20px;
}

.dashboard-header {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  text-align: center;
  z-index: 5;
  width: 90%;
  margin: 15px auto 10px;
}

.dashboard-logo {
  font-size: clamp(11px, 1.5vw, 16px);
  letter-spacing: 3px;
  opacity: 0.85;
  color: #ffffff;
}

.dashboard-logo strong {
  color: #87e5eb;
}

.dashboard-title {
  margin-top: 4px;
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.level-loading.sauh-level-grid {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  width: min(1100px, 94%);
  margin: 10px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  z-index: 5;
}

.level-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  text-align: center;
  opacity: 0.5;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.level-card.active-level {
  opacity: 1;
  border: 2px solid rgba(139, 232, 237, 0.85);
  background: rgba(6, 45, 66, 0.75);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.level-card.active-level:hover {
  transform: translateY(-5px);
  border-color: #ffffff;
  box-shadow: 0 12px 30px rgba(68, 200, 210, 0.3);
}

.level-card.locked-card {
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.level-icon {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 4px;
}

.level-number {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffd966;
}

.level-name {
  margin-top: 2px;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 800;
  color: #8ce8ed;
  line-height: 1.2;
}

.level-desc-text {
  font-size: 11px;
  line-height: 1.4;
  color: #d1e8f2;
  margin: 8px 0;
  opacity: 0.9;
}

.level-status {
  margin-top: 6px;
  color: #7de4c1;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 900;
  background: rgba(125, 228, 193, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
}

.locked-label {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 1.5px;
  opacity: 0.6;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

.loading-container {
  position: relative;
  bottom: 0;
  left: 0;
  transform: none;
  width: min(400px, 85%);
  margin: 15px auto 5px;
  text-align: center;
  z-index: 5;
}

.loading-text {
  margin-bottom: 6px;
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.loading-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
}

.loading-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #56d5dc, #a7f3d0);
  transform-origin: left;
  animation: loadingProgress 2.5s ease-out forwards;
}

/* ==========================================
   8. LEVEL TRANSITIONS
   ========================================== */
.level-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle, #14516a, #031522 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.45s, transform 0.65s;
  padding: 20px;
  text-align: center;
}

.level-transition.show {
  opacity: 1;
  transform: scale(1);
}

.level-transition.fade {
  opacity: 0;
  transform: scale(0.94);
}

.transition-shark {
  font-size: clamp(60px, 12vw, 100px);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  animation: transitionShark 1.2s ease-in-out;
}

.transition-title {
  font-size: clamp(28px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: clamp(3px, 1vw, 8px);
}

.transition-subtitle {
  font-size: clamp(11px, 1.8vw, 14px);
  letter-spacing: 3px;
  color: #8ce8ed;
}

.transition-line {
  width: min(420px, 80%);
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 24px;
  border-radius: 10px;
  overflow: hidden;
}

.transition-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: #8ce8ed;
  transform-origin: left;
  animation: transitionLine 1.4s ease-out forwards;
}

/* ==========================================
   9. VISUAL NOVEL & DIALOG SYSTEM
   ========================================== */
.vn-story-shell {
  cursor: pointer;
  user-select: none;
}

.vn-story-stage {
  max-width: 900px;
  margin: 10px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 70vh;
  justify-content: flex-end;
}

.vn-character-body {
  height: clamp(220px, 40vh, 340px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -15px;
  z-index: 2;
}

.vn-character-body img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.vn-dialog-card {
  width: 100%;
  background: rgba(6, 38, 58, 0.92);
  border: 2px solid #8ce8ed;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 3;
  text-align: left;
}

.vn-name-tag {
  display: inline-block;
  background: #8ce8ed;
  color: #06263a;
  font-weight: 900;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vn-story-text {
  margin: 0;
  font-size: clamp(13px, 2vw, 16px);
  color: #ffffff;
  line-height: 1.5;
  min-height: 48px;
}

.vn-click-hint {
  text-align: right;
  font-size: 10px;
  color: #ffd966;
  margin-top: 8px;
  letter-spacing: 1px;
  animation: pulse 1.5s infinite;
}

.vn-style-card {
  position: relative;
  overflow: hidden;
}

.vn-question-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  background: rgba(6, 38, 58, 0.85);
  border: 1px solid rgba(140, 232, 237, 0.35);
  border-radius: 16px;
  text-align: left;
}

.vn-avatar-frame {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #8ce8ed;
  overflow: hidden;
  flex-shrink: 0;
  background: #082e46;
  box-shadow: 0 0 10px rgba(140, 232, 237, 0.3);
}

.vn-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vn-speech-bubble b {
  display: block;
  font-size: 11px;
  color: #8ce8ed;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vn-text {
  margin: 3px 0 0;
  font-size: 13px;
  color: #e2f5f7;
  line-height: 1.4;
  min-height: 38px;
}

.expression-pop {
  animation: popExpression 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================
   10. MODALS & POPUPS
   ========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 15px;
  box-sizing: border-box;
}

.modal.hidden {
  display: none !important;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 19, 31, 0.82);
  backdrop-filter: blur(8px);
  z-index: 10001;
}

.choice-popup {
  position: relative;
  z-index: 10002;
  width: min(500px, 92vw);
  margin: auto !important;
  padding: clamp(20px, 4vw, 28px);
  border-radius: 24px;
  background: #082e46;
  border: 2px solid #8ce8ed;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  animation: popupIn 0.3s ease-out;
  box-sizing: border-box;
}

.choice-popup.choice-bad {
  border-color: #ff5252;
}

.choice-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  background: rgba(125, 228, 193, 0.2);
  color: #7de4c1;
  border: 1px solid #7de4c1;
}

.choice-bad .choice-icon {
  background: rgba(255, 82, 82, 0.2);
  color: #ff5252;
  border-color: #ff5252;
}

.popup-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 900;
  color: #8ce8ed;
}

.choice-bad .popup-kicker {
  color: #ff8a8a;
}

.choice-popup h2 {
  margin: 6px 0;
  font-size: clamp(20px, 3.5vw, 26px);
  color: #ffffff;
}

.popup-lead {
  color: #d1e8f2;
  font-size: clamp(12px, 1.5vw, 14px);
  margin-bottom: 12px;
}

.education {
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  line-height: 1.5;
  font-size: clamp(12px, 1.5vw, 14px);
  color: #e2f5f7;
}

.education strong {
  color: #ffd966;
}

.impact {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
  margin-bottom: 18px;
}

.impact span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8ce8ed;
  margin-bottom: 4px;
}

.impact b {
  color: #ffffff;
}

.final-score {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.final-score div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px 12px;
  flex: 1 1 80px;
}

.final-score b {
  display: block;
  font-size: clamp(18px, 3vw, 22px);
  color: #8ce8ed;
}

.final-score small {
  font-size: 9px;
  letter-spacing: 1px;
  color: #a3c2ce;
}

.popup .big {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 8px;
}

.popup .result.right {
  color: #4ade80;
  font-weight: bold;
  margin: 10px 0;
}

.popup .result.wrong {
  color: #f87171;
  font-weight: bold;
  margin: 10px 0;
}

.popup .twobtn {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.popup .twobtn .btn {
  flex: 1 1 120px;
}

.score-delta {
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 6px;
  margin: 10px 0;
}

/* ==========================================
   11. LEVEL 1: GAMEPLAY LAYOUT & BASKET
   ========================================== */
.level1-shell {
  position: relative;
  min-height: calc(100vh - 64px);
  padding: clamp(16px, 3vw, 30px) clamp(12px, 4vw, 55px) 24px;
  background: radial-gradient(circle at center top, #164e65, #071d2d 75%);
  color: #ffffff;
  overflow: hidden;
}

.level1-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 80% 15%,
      rgba(140, 232, 237, 0.12),
      transparent 40%
    );
}

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  animation: bubbleFloat 8s infinite;
}

.b1 { width: 80px; height: 80px; right: 8%; bottom: 8%; }
.b2 { width: 30px; height: 30px; right: 18%; bottom: 25%; animation-delay: 1s; }
.b3 { width: 48px; height: 48px; left: 4%; bottom: 12%; animation-delay: 2s; }

.level1-header,
.level1-intro,
.level1-layout,
.level1-progress {
  position: relative;
  z-index: 2;
}

.level1-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  max-width: 1250px;
  margin: auto;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #8ce8ed;
}

.level1-header h1 {
  font-size: clamp(24px, 4vw, 42px);
  margin: 6px 0 4px;
  color: #ffffff;
}

.level1-header p {
  margin: 0;
  color: #d1e8f2;
  font-size: clamp(12px, 1.5vw, 15px);
}

.score-mini {
  display: flex;
  gap: 8px;
}

.score-mini span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  border-radius: 15px;
  backdrop-filter: blur(8px);
  font-size: clamp(11px, 1.5vw, 13px);
  color: #ffffff;
}

.level1-intro {
  max-width: 1250px;
  margin: 16px auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 45, 66, 0.75);
  border: 1px solid rgba(139, 232, 237, 0.35);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.ratna-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(140, 232, 237, 0.4);
}

.level1-intro b {
  color: #ffd966;
}

.level1-intro p {
  margin: 2px 0 0;
  color: #e2f5f7;
  font-size: clamp(12px, 1.5vw, 14px);
}

.level1-layout {
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.65fr 0.75fr;
  gap: 20px;
}

.choices-panel,
.basket-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.section-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  color: #8ce8ed;
}

.section-label span {
  float: right;
  font-weight: 600;
  letter-spacing: 0;
  color: #a3c2ce;
}

.fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.fish-card {
  position: relative;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 42, 61, 0.85);
  border-radius: 18px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  touch-action: manipulation;
}

.fish-card:hover {
  transform: translateY(-5px);
  border-color: #8ce8ed;
  box-shadow: 0 10px 25px rgba(140, 232, 237, 0.3);
}

.fish-card.selected {
  opacity: 0.35;
  filter: grayscale(0.8);
}

.fish-card.picked {
  animation: cardPicked 0.45s ease;
}

.fish-art {
  height: 90px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 13px;
}

.fish-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.fish-name {
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
  line-height: 1.2;
  color: #ffffff;
}

.fish-scientific {
  font-size: 10px;
  color: #8ce8ed;
  margin-top: 2px;
}

.fish-hint {
  font-size: 8px;
  letter-spacing: 1px;
  color: #ffd966;
  margin-top: 4px;
  font-weight: 800;
}

.basket-zone {
  min-height: 280px;
  border: 2px dashed rgba(140, 232, 237, 0.4);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  background: rgba(6, 45, 66, 0.5);
  transition: 0.25s;
}

.basket-zone.over {
  border-color: #8ce8ed;
  background: rgba(140, 232, 237, 0.2);
  transform: scale(1.015);
}

.basket-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(140, 232, 237, 0.1);
  animation: basketPulse 3s infinite;
}

.basket-icon {
  font-size: clamp(40px, 8vw, 58px);
  z-index: 1;
}

.basket-title {
  font-weight: 900;
  letter-spacing: 1.5px;
  font-size: 12px;
  color: #ffffff;
  z-index: 1;
}

.basket-slots {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 6px;
  margin: 10px 0;
  min-height: 80px;
  z-index: 2;
}

.basket-item {
  height: 70px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  animation: basketItemIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 0.04s);
}

.basket-item img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.basket-status {
  text-align: center;
  font-size: 11px;
  color: #a3c2ce;
  line-height: 1.4;
  z-index: 1;
}

.basket-count {
  margin-top: 6px;
  font-weight: 900;
  font-size: 16px;
  color: #8ce8ed;
  z-index: 1;
}

.basket-item.bad-pick {
  border: 2px solid #ff5252;
  background: rgba(255, 82, 82, 0.25);
}

.basket-item.good-pick {
  border: 2px solid #4ade80;
  background: rgba(74, 222, 128, 0.25);
}

.level1-progress {
  max-width: 1250px;
  margin: 16px auto 0;
}

.level1-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8ce8ed;
}

.progress-track {
  height: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin-top: 6px;
}

.progress-track #progressBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #56d5dc, #a7f3d0);
  transition: width 0.45s ease;
  border-radius: 20px;
}

/* ==========================================
   12. LEVEL 2: FOOD SAFETY DETECTIVE
   ========================================== */
.level2-shell {
  position: relative;
  min-height: calc(100vh - 64px);
  padding: clamp(16px, 3vw, 30px) clamp(12px, 4vw, 55px) 24px;
  background: radial-gradient(circle at center top, #164e65, #071d2d 75%);
  color: #ffffff;
  overflow: hidden;
}

.level2-maya-dialog {
  max-width: 1250px;
  margin: 14px auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(6, 45, 66, 0.75);
  border: 1px solid rgba(139, 232, 237, 0.35);
  border-radius: 20px;
  padding: 12px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.maya-avatar-frame {
  width: clamp(50px, 8vw, 65px);
  height: clamp(50px, 8vw, 65px);
  border-radius: 50%;
  border: 2px solid #8ce8ed;
  overflow: hidden;
  background: #082e46;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(140, 232, 237, 0.3);
}

.maya-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maya-speech b {
  color: #8ce8ed;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.maya-speech p {
  margin: 2px 0 0;
  color: #e2f5f7;
  font-size: clamp(12px, 1.5vw, 14px);
  line-height: 1.4;
}

.choices-panel.level2-lab-panel {
  max-width: 1000px;
  margin: 16px auto;
  text-align: center;
  padding: 20px 16px;
}

.level2-lab-panel .section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #8ce8ed;
  margin-bottom: 16px;
}

.level2-lab-panel .section-label span {
  float: none;
  font-size: 11px;
  color: #a3c2ce;
  font-weight: 600;
}

.clues-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
}

.clue-card {
  flex: 1 1 140px;
  max-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 42, 61, 0.85);
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.clue-card:hover {
  transform: translateY(-4px);
  border-color: #8ce8ed;
  box-shadow: 0 8px 20px rgba(140, 232, 237, 0.25);
}

.clue-card.found {
  border-color: #4ade80;
  background: rgba(20, 83, 45, 0.4);
}

.clue-icon {
  font-size: clamp(28px, 5vw, 38px);
  margin-bottom: 6px;
}

.clue-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.clue-status {
  display: block;
  font-size: 10px;
  color: #ffd966;
  margin-top: 4px;
}

.clue-card.found .clue-status {
  color: #4ade80;
  font-weight: bold;
}

.level2-sort-container {
  max-width: 800px;
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.product-card-area {
  width: 100%;
}

.product-inspect-card {
  background: rgba(10, 42, 61, 0.9);
  border: 2px solid #8ce8ed;
  border-radius: 22px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.product-emoji {
  font-size: clamp(40px, 8vw, 60px);
  margin-bottom: 8px;
}

.product-tag {
  color: #ffd966;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 900;
}

.product-inspect-card h2 {
  margin: 6px 0;
  font-size: clamp(18px, 3.5vw, 24px);
  color: #ffffff;
}

.product-info-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: clamp(12px, 1.5vw, 14px);
  color: #d1e8f2;
  text-align: left;
}

.product-image-container {
  width: 100%;
  max-width: 180px;
  height: 120px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 8px;
}

.product-real-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.zone-buttons {
  display: flex;
  gap: 14px;
  width: 100%;
}

.zone-btn {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  border: none;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, filter 0.2s ease;
  touch-action: manipulation;
}

.zone-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.zone-btn.safe-btn {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.zone-btn.avoid-btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.zone-btn small {
  font-size: 10px;
  opacity: 0.85;
  margin-top: 2px;
  font-weight: normal;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background-color: #1e293b;
  border-radius: 5px;
  overflow: hidden;
  margin: 15px 0 5px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  transition: width 0.3s ease;
}

.status-text {
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 15px;
}

/* ==========================================
   13. LEVEL 3: GREEN UMKM
   ========================================== */
.level3-shell {
  min-height: calc(100vh - 64px);
  padding: clamp(16px, 3vw, 26px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(75, 180, 125, .13), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(20, 150, 150, .12), transparent 28%),
    linear-gradient(145deg, #f4fbf7, #eaf7f2);
}

.level3-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.leaf {
  position: absolute;
  opacity: .18;
  font-size: clamp(40px, 8vw, 70px);
  animation: level3LeafFloat 6s ease-in-out infinite;
}

.leaf-1 { left: 4%; top: 20%; }
.leaf-2 { right: 5%; top: 48%; animation-delay: -2s; }
.leaf-3 { left: 46%; bottom: 3%; animation-delay: -4s; }

.level3-shell > *:not(.level3-bg) {
  position: relative;
  z-index: 1;
}

.level3-header {
  max-width: 1180px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.level3-header h1 {
  margin: 3px 0;
  font-size: clamp(24px, 4vw, 42px);
}

.level3-header p {
  margin: 0;
  color: #607477;
}

.level3-character {
  max-width: 1180px;
  margin: 14px auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.88);
  border: 1px solid #d5e9df;
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(20, 90, 70, .07);
}

.level3-character-image {
  width: clamp(55px, 10vw, 76px);
  height: clamp(55px, 10vw, 76px);
  border-radius: 50%;
  background-image: url("../assets/images/character/bu-ratna.png");
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
  border: 3px solid #d7efe2;
}

.level3-dialogue {
  flex: 1;
}

.level3-dialogue .character-name {
  font-weight: 1000;
  color: #176b4c;
}

.level3-dialogue p {
  margin: 3px 0 0;
  font-size: clamp(12px, 1.5vw, 14px);
}

.green-dashboard {
  max-width: 1180px;
  margin: 14px auto 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #cfe6da;
  box-shadow: 0 8px 24px rgba(30, 100, 75, .06);
}

.green-dashboard-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 1000;
  color: #176b4c;
}

.green-dashboard-title strong {
  font-size: clamp(18px, 3vw, 25px);
}

.green-track {
  height: 12px;
  background: #dcebe4;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.green-track #greenBar {
  display: block;
  width: 50%;
  height: 100%;
  background: #299768;
  border-radius: inherit;
  transition: width .4s ease;
}

.green-caption {
  font-size: 11px;
  color: #6b7e79;
  margin-top: 6px;
}

#level3Content {
  max-width: 1180px;
  margin: 0 auto;
}

.level3-step {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 1000;
  color: #08747b;
  margin: 10px 0 7px;
}

.business-scene {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #ffffff, #f1faf6);
  border: 1px solid #d2e8df;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.business-scene-icon {
  width: clamp(60px, 10vw, 78px);
  height: clamp(60px, 10vw, 78px);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #e5f6ed;
  font-size: clamp(32px, 5vw, 46px);
  flex: 0 0 auto;
}

.scene-label {
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 1px;
  color: #63817a;
  text-transform: uppercase;
}

.business-scene h2 {
  margin: 3px 0;
  color: #164d48;
  font-size: clamp(18px, 3vw, 24px);
}

.business-scene p {
  margin: 0;
  color: #596e70;
  font-size: clamp(12px, 1.5vw, 14px);
}

.level3-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.business-option {
  min-height: 160px;
  border: 2px solid #d0e5df;
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  touch-action: manipulation;
}

.business-option:hover {
  transform: translateY(-4px);
  border-color: #65b696;
  box-shadow: 0 15px 30px rgba(25, 105, 75, .10);
}

.business-option:active {
  transform: scale(.98);
}

.business-option-icon {
  font-size: clamp(36px, 6vw, 52px);
}

.business-option strong {
  color: #204b4a;
  font-size: clamp(14px, 2vw, 17px);
}

.business-option small {
  color: #70827f;
  font-size: 11px;
}

.level3-mobile-hint {
  text-align: center;
  font-size: 11px;
  color: #71817e;
  margin: 12px 0 4px;
}

.level3-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 15px 0;
}

.level3-impact > div {
  background: #f2f8f5;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.level3-impact span,
.level3-impact b,
.level3-impact small {
  display: block;
}

.level3-impact span { font-size: 16px; }
.level3-impact b { color: #08756c; font-size: clamp(14px, 2vw, 17px); }
.level3-impact small { color: #70817d; font-size: 10px; }

.green-badge {
  background: #e0f6e9 !important;
  color: #188054 !important;
}

.green-result-score {
  width: clamp(110px, 20vw, 145px);
  height: clamp(110px, 20vw, 145px);
  margin: 14px auto;
  border-radius: 50%;
  border: 6px solid #49a979;
  background: #e6f8ed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.green-result-score strong {
  font-size: clamp(28px, 5vw, 42px);
  color: #167b4e;
}

.green-result-score span {
  font-size: 9px;
  font-weight: 1000;
  color: #5c7467;
}

.level3-shell.from-cinematic {
  opacity: 0;
  transform: scale(1.02);
  filter: blur(5px);
  transition: .6s ease;
}

.level3-shell.from-cinematic.ready {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ==========================================
   14. LEVEL 4: SMART CONSUMER
   ========================================== */
.level4-shell {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px) clamp(14px, 4vw, 52px) 50px;
  background: linear-gradient(145deg, #07384a, #075c72 55%, #0a3f52);
}

.level4-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 75% 18%, rgba(255,237,160,.25), transparent 28%), linear-gradient(180deg, rgba(80,190,205,.18), transparent 42%);
}

.l4-sun {
  position: absolute;
  width: clamp(90px, 15vw, 150px);
  height: clamp(90px, 15vw, 150px);
  right: 8%;
  top: 5%;
  border-radius: 50%;
  background: rgba(255, 237, 160, .7);
  filter: blur(1px);
  box-shadow: 0 0 60px rgba(255, 237, 160, .3);
}

.l4-market {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(3, 23, 34, .55));
}

.l4-wave {
  position: absolute;
  left: -10%;
  bottom: 2%;
  width: 120%;
  height: 130px;
  border-radius: 50%;
  background: rgba(42, 181, 196, .2);
  animation: waveMove 7s ease-in-out infinite;
}

.level4-header,
.level4-character,
#level4Content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.level4-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.level4-header h1 {
  margin: 6px 0;
  font-size: clamp(24px, 4vw, 52px);
}

.level4-header p {
  margin: 0;
  max-width: 650px;
  color: #d6f1f3;
  font-size: clamp(12px, 1.5vw, 15px);
}

.level4-character {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(2, 22, 32, .45);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.l4-avatar {
  width: clamp(48px, 8vw, 62px);
  height: clamp(48px, 8vw, 62px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  font-size: clamp(24px, 4vw, 35px);
  flex: none;
}

.l4-dialogue p {
  margin: 2px 0 0;
  color: #d8f0f2;
  font-size: clamp(12px, 1.5vw, 14px);
}

.level4-step {
  margin: 22px 0 10px;
  color: #8de6e8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.consumer-scene,
.conservation-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(247, 252, 252, .95);
  color: #12313c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
  flex-wrap: wrap;
}

.market-icon,
.shark-illustration {
  width: clamp(55px, 8vw, 72px);
  height: clamp(55px, 8vw, 72px);
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #e4f7f6;
  font-size: clamp(28px, 4vw, 40px);
  flex: none;
}

.consumer-scene h2,
.conservation-card h2 {
  margin: 4px 0 6px;
  font-size: clamp(18px, 3vw, 32px);
}

.consumer-scene p,
.conservation-card p {
  margin: 0;
  color: #52707a;
  line-height: 1.5;
  font-size: clamp(12px, 1.5vw, 14px);
}

.scene-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #197e88;
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.consumer-product {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  color: #12313c;
  background: rgba(255, 255, 255, .96);
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
  touch-action: manipulation;
}

.consumer-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.product-art {
  display: block;
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 8px;
}

.consumer-product strong {
  display: block;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.3;
}

.consumer-product small {
  display: block;
  margin-top: 6px;
  color: #60808a;
  font-size: 11px;
}

.level4-mobile-hint {
  text-align: center;
  margin: 12px 0;
  color: #bce8eb;
  font-size: 11px;
}

.level4-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.level4-impact > div {
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  text-align: center;
}

.level4-impact span { display: block; font-size: 16px; }
.level4-impact b { display: block; font-size: clamp(14px, 2vw, 18px); }
.level4-impact small { opacity: .7; font-size: 10px; }

.big-action {
  display: block;
  width: min(560px, 100%);
  margin: 18px auto 0;
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  background: #2cb8a6;
  color: white;
  font-weight: 900;
  font-size: clamp(12px, 1.5vw, 15px);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
  touch-action: manipulation;
}

.dialogue-scene {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.dialogue-person {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .95);
  color: #12313c;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}

.dialogue-person.maya { background: #eaf9f7; }
.dialogue-person .l4-avatar { margin-bottom: 8px; background: #dff2f1; }
.dialogue-person p { line-height: 1.5; color: #52707a; font-size: clamp(12px, 1.5vw, 14px); }

.edu.wide {
  margin-top: 14px;
  background: rgba(255, 255, 255, .95);
  color: #173742;
  padding: 16px;
  border-radius: 18px;
}

.edu.wide p { line-height: 1.5; margin-bottom: 0; font-size: clamp(12px, 1.5vw, 14px); }

.slider-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  color: #173742;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .16);
}

.slider-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
  font-size: clamp(14px, 2vw, 18px);
}

.slider-head strong { font-size: clamp(20px, 3.5vw, 28px); color: #197e88; }
.slider-card input { width: 100%; margin: 20px 0 8px; accent-color: #1da8a0; cursor: pointer; }
.slider-labels { display: flex; justify-content: space-between; font-size: 11px; color: #66818a; }
.slider-message { margin-top: 14px; padding: 12px; border-radius: 12px; background: #e9f7f6; line-height: 1.4; font-size: 13px; }

.level4-shell.from-cinematic { opacity: 0; transform: translateY(20px); }
.level4-shell.from-cinematic.ready { opacity: 1; transform: none; transition: .6s ease; }

/* ==========================================
   15. LEVEL 5: DIVERSIFIKASI PRODUK & USAHA
   ========================================== */
.level5-shell {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px) clamp(14px, 4vw, 52px) 60px;
  background: linear-gradient(145deg, #173d39, #1c5b50 55%, #173b3b);
  color: #eefdf8;
}

.level5-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 80% 12%, rgba(255, 224, 148, .24), transparent 27%), linear-gradient(180deg, rgba(49, 163, 133, .12), transparent 46%);
}

.l5-glow {
  position: absolute;
  right: 8%;
  top: 5%;
  width: clamp(100px, 18vw, 180px);
  height: clamp(100px, 18vw, 180px);
  border-radius: 50%;
  background: rgba(255, 228, 155, .42);
  filter: blur(2px);
  box-shadow: 0 0 70px rgba(255, 228, 155, .22);
}

.l5-rack {
  position: absolute;
  bottom: -8%;
  left: 5%;
  width: 90%;
  height: 26%;
  border-top: 3px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -25px 60px rgba(0, 0, 0, .18);
}

.level5-header,
.level5-character,
#level5Content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.level5-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.level5-header h1 {
  margin: 6px 0;
  font-size: clamp(24px, 4vw, 52px);
}

.level5-header p {
  margin: 0;
  max-width: 690px;
  color: #d5efea;
  font-size: clamp(12px, 1.5vw, 15px);
}

.level5-character {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(5, 30, 28, .48);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.l5-avatar {
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  font-size: clamp(24px, 4vw, 36px);
  flex: none;
}

.level5-character p {
  margin: 4px 0 0;
  color: #d5efea;
  line-height: 1.5;
  font-size: clamp(12px, 1.5vw, 14px);
}

.level5-step {
  margin: 22px 0 10px;
  color: #a7f0d7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.l5-story-card,
.l5-rack-card,
.training-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(247, 252, 250, .96);
  color: #153d38;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .17);
  flex-wrap: wrap;
}

.l5-story-icon {
  width: clamp(55px, 8vw, 74px);
  height: clamp(55px, 8vw, 74px);
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #e5f6ef;
  font-size: clamp(28px, 4vw, 40px);
  flex: none;
}

.l5-story-card h2,
.l5-rack-card h2,
.training-card h2 {
  margin: 4px 0 6px;
  font-size: clamp(18px, 3vw, 32px);
}

.l5-story-card p,
.l5-rack-card p,
.training-card p {
  margin: 0;
  color: #52706d;
  line-height: 1.5;
  font-size: clamp(12px, 1.5vw, 14px);
}

.mini-rack {
  width: min(230px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  flex: none;
}

.mini-rack div {
  height: clamp(50px, 10vw, 82px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f5f0;
  font-size: clamp(20px, 3.5vw, 30px);
  border: 1px solid #cfe9df;
}

.mini-rack .empty-slot {
  border: 2px dashed #8ccbb8;
  color: #4ca58d;
}

.l5-product-grid,
.l5-multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.l5-product-card,
.l5-multi-card,
.training-option,
.promo-card {
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  padding: 14px;
  text-align: left;
  background: rgba(255, 255, 255, .96);
  color: #153d38;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  touch-action: manipulation;
}

.l5-product-card:hover,
.l5-multi-card:hover,
.training-option:hover,
.promo-card:hover {
  transform: translateY(-4px);
}

.l5-product-card.picked,
.l5-multi-card.selected,
.training-option.selected {
  outline: 3px solid #59cda9;
  background: #effcf7;
}

.l5-product-card > span,
.l5-multi-card > span,
.training-option > span {
  display: block;
  font-size: clamp(28px, 5vw, 38px);
  margin-bottom: 8px;
}

.l5-product-card b,
.l5-multi-card b,
.training-option b {
  display: block;
  line-height: 1.3;
  font-size: clamp(12px, 1.5vw, 14px);
}

.l5-product-card small,
.l5-multi-card small,
.training-option small {
  display: block;
  margin-top: 6px;
  color: #62807b;
  font-size: 10px;
}

.l5-rack-preview {
  margin-top: 14px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .09);
  color: #e7f8f3;
  font-size: 12px;
}

.l5-rack-preview span {
  display: inline-block;
  margin: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.big-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.composition-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  color: #173d38;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .16);
}

.composition-title {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: clamp(14px, 2vw, 18px);
}

.composition-title strong {
  font-size: clamp(20px, 3.5vw, 28px);
  color: #218d73;
}

.composition-bar {
  height: 26px;
  margin: 20px 0 10px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #e5f1ed;
}

.composition-bar #altBar { background: #42b58f; transition: .2s; }
.composition-bar #sharkBar { background: #8b9a94; transition: .2s; }
.composition-labels { display: flex; justify-content: space-between; color: #56736e; font-size: 12px; }
.composition-card input { width: 100%; margin: 20px 0 8px; accent-color: #2ca983; }
.composition-card p { margin: 12px 0 0; padding: 12px; border-radius: 12px; background: #eaf7f2; line-height: 1.4; font-size: 13px; }

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.training-card { margin-bottom: 14px; }
.training-option { text-align: center; }
.training-option span { font-size: clamp(26px, 4vw, 35px); }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.promo-card { padding: 12px; }
.promo-card strong, .promo-card > small { display: block; padding: 4px 6px; }

.poster {
  min-height: 180px;
  border-radius: 15px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.poster span { font-size: clamp(36px, 6vw, 52px); }
.poster b { font-size: clamp(18px, 3vw, 25px); margin: 10px 0 4px; }
.poster small { font-size: 12px; }
.poster-edu { background: linear-gradient(145deg, #dff8ec, #b8e5d1); }
.poster-price { background: linear-gradient(145deg, #fff0c8, #f5d99b); }

.transition-result {
  padding: 18px;
  border-radius: 22px;
  background: rgba(247, 252, 250, .96);
  color: #153d38;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .17);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.before-after span { font-size: 10px; letter-spacing: 1.2px; color: #6b817d; font-weight: 900; }
.before-after b { display: block; margin-top: 6px; font-size: clamp(12px, 1.5vw, 15px); }
.arrow { font-size: clamp(24px, 4vw, 38px); color: #299675; }

.rack-bars {
  height: 100px;
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.rack-bars i {
  display: block;
  width: 18%;
  border-radius: 6px 6px 2px 2px;
  background: #78948c;
}

.rack-bars.old i { height: 88%; }
.rack-bars.new i:nth-child(1) { height: 45%; }
.rack-bars.new i:nth-child(2) { height: 67%; }
.rack-bars.new i:nth-child(3) { height: 55%; }
.rack-bars.new i:nth-child(4) { height: 78%; }

.result-badge {
  margin: 16px auto 0;
  max-width: 600px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e7fff5, #c7eadb);
  color: #165440;
  text-align: center;
}

.result-badge strong, .result-badge small { display: block; }
.result-badge strong { font-size: clamp(16px, 2.5vw, 20px); }
.result-badge small { margin-top: 4px; font-size: 11px; }

.result-copy {
  text-align: center;
  max-width: 760px;
  margin: 16px auto;
  color: #dff5ed;
  line-height: 1.5;
  font-size: clamp(12px, 1.5vw, 14px);
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 16px auto;
  max-width: 700px;
}

.result-metrics > div {
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .09);
  text-align: center;
}

.result-metrics b, .result-metrics small { display: block; }
.result-metrics b { font-size: clamp(20px, 3.5vw, 28px); }
.result-metrics small { color: #cce9df; font-size: 10px; }

.level5-shell.from-cinematic { opacity: 0; transform: translateY(20px); }
.level5-shell.from-cinematic.ready { opacity: 1; transform: none; transition: .6s ease; }

/* ==========================================
   16. KEYFRAME ANIMATIONS & MEDIA QUERIES
   ========================================== */
@keyframes sunPulse {
  50% { transform: scale(1.07); opacity: 1; }
}

@keyframes cloudMove {
  to { transform: translateX(130vw); }
}

@keyframes boatFloat {
  50% { transform: translateY(-9px) rotate(1deg); }
}

@keyframes waveMove {
  50% { transform: translateX(2%) rotate(1deg); }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.75);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes characterAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes singleCharacterAppear {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes characterGlow {
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes mapZoom {
  from { transform: scale(1.35) translate(4%, 4%); }
  to { transform: scale(1) translate(0, 0); }
}

@keyframes mapPointPulse {
  50% { transform: scale(1.4); }
}

@keyframes mapBoatMove {
  50% { transform: translate(15px, 10px) rotate(5deg); }
}

@keyframes zoomPulse {
  0% { transform: scale(0.2); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(8); opacity: 0; }
}

@keyframes activeCard {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes loadingProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes transitionShark {
  50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes transitionLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes bubbleFloat {
  50% {
    transform: translateY(-70px);
    opacity: 0.4;
  }
}

@keyframes cardPicked {
  50% { transform: scale(0.96); }
}

@keyframes basketItemIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.55) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes basketPulse {
  50% {
    transform: scale(1.12);
    opacity: 0.8;
  }
}

@keyframes levelEntrance {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sauhLogoEntrance {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(.78);
    filter: blur(10px);
  }
  65% {
    opacity: 1;
    transform: translate(-50%, -52%) scale(1.035);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: none;
  }
}

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

@keyframes sauhLogoAura {
  from { opacity: .55; transform: scale(.92); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes sauhSunGlow {
  from { transform: scale(.96); filter: brightness(.98); }
  to { transform: scale(1.05); filter: brightness(1.08); }
}

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

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

@keyframes sauhButtonEntrance {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sauhBubbleRise {
  0% { transform: translateY(0) translateX(0) scale(.8); opacity: 0; }
  12% { opacity: .8; }
  85% { opacity: .65; }
  100% { transform: translateY(-105vh) translateX(25px) scale(1.2); opacity: 0; }
}

@keyframes sauhSparkle {
  from { opacity: .25; transform: scale(.7); }
  to { opacity: 1; transform: scale(1.3); }
}

@keyframes popExpression {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

/* --- Media Queries Responsif Mobile --- */
@media (max-width: 760px) {
  .fishing-boat.sauh-sailing-boat {
    zoom: 0.75;
    bottom: 30%;
  }

  .before-after {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .arrow {
    transform: rotate(90deg);
  }

  .level1-layout {
    grid-template-columns: 1fr;
  }

  .label-cirebon { left: 15%; top: 32%; }
  .label-coast { left: 22%; top: 40%; }
  .route-1 { width: 22%; left: 32%; top: 50%; }
  .route-2 { width: 18%; left: 52%; top: 56%; }
  .point-1 { left: 30%; top: 49%; }
  .point-2 { left: 51%; top: 55%; }
  .point-3 { left: 68%; top: 49%; }
}

@media (max-width: 600px) {
  .sauh-title {
    top: 32%;
    width: 95%;
  }

  .sauh-logo-image {
    max-height: 24vh;
  }

  .sauh-caption {
    width: 92%;
    padding: 8px 12px;
    font-size: 11px;
  }

  .sauh-start-button {
    min-width: 190px;
    padding: 10px 18px;
    font-size: 11px;
    margin: 8px auto 10px;
  }

  .level-loading.sauh-level-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .level-card {
    min-height: auto;
    padding: 12px 14px;
  }

  .level-desc-text {
    font-size: 10px;
  }

  .level2-maya-dialog {
    flex-direction: row;
    padding: 10px;
  }

  .choices-panel.level2-lab-panel {
    padding: 14px 10px;
  }

  .clues-grid {
    gap: 8px;
  }

  .clue-card {
    flex: 1 1 42%;
    max-width: none;
    padding: 10px 6px;
  }

  .clue-icon {
    font-size: 26px;
    margin-bottom: 2px;
  }

  .clue-title {
    font-size: 11px;
  }

  .clue-status {
    font-size: 9px;
  }

  .zone-buttons {
    flex-direction: row;
    gap: 8px;
  }

  .zone-btn {
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  .topbar {
    justify-content: center;
  }

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

  .cinematic-wrapper {
    min-height: 480px;
  }

  .sauh-title {
    top: 30%;
  }

  .sauh-logo-image {
    max-height: 20vh;
  }

  .sauh-intro-label {
    font-size: 9px;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sauh-intro *,
  .sauh-intro *::before,
  .sauh-intro *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Ukuran Gambar Produk Lebih Besar & Jelas */
.product-image-container.level2-big-image {
  max-width: 240px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(140, 232, 237, 0.25);
}

/* Header Avatar Maya di Popup Feedback */
.feedback-maya-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
  text-align: left;
}

.feedback-maya-title b {
  color: #8ce8ed;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.feedback-maya-title .popup-lead {
  margin: 2px 0 0;
  font-size: 13px;
}



/* ==========================================================================
   SAUH RESPONSIVE PATCH — INTRO, LEVEL SELECT & BOAT
   Overrides terarah; tidak mengubah struktur HTML/JavaScript permainan.
   ========================================================================== */

/* Gunakan tinggi viewport dinamis pada browser mobile */
html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

.cinematic-wrapper {
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
}

/* Intro: pisahkan logo, caption, dan tombol agar tidak saling menimpa */
.sauh-intro {
  min-height: 100%;
}

.sauh-title {
  top: 34%;
  width: min(92%, 850px);
}

.sauh-logo-image {
  width: min(100%, 600px);
  max-height: 30vh;
}

.sauh-caption {
  position: absolute;
  left: 50%;
  bottom: max(82px, 10%);
  transform: translateX(-50%);
  width: min(90%, 580px);
  margin: 0;
  z-index: 20;
}

.sauh-start-button {
  position: absolute;
  left: 50%;
  bottom: max(16px, 2.5%);
  transform: translateX(-50%);
  margin: 0;
  max-width: calc(100% - 32px);
  white-space: normal;
}

.sauh-start-button:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.02);
}

.sauh-start-button:active {
  transform: translateX(-50%) translateY(1px) scale(.99);
}

/* Perahu bergerak bolak-balik di area tengah, tidak sampai tepi layar.
   Gerak horizontal memakai keyframe tersendiri agar tidak bergantung pada
   animasi boatFloat yang sebelumnya tidak didefinisikan. */
.fishing-boat.sauh-sailing-boat {
  left: calc(50% - 60px);
  bottom: 31%;
  width: clamp(88px, 12vw, 120px);
  height: auto;
  aspect-ratio: 12 / 7;
  animation: sauhBoatSail 18s ease-in-out infinite;
}

@keyframes sauhBoatSail {
  0%, 100% {
    transform: translateX(-42px) translateY(0) rotate(-1deg);
  }
  25% {
    transform: translateX(-12px) translateY(-5px) rotate(0deg);
  }
  50% {
    transform: translateX(42px) translateY(0) rotate(1deg);
  }
  75% {
    transform: translateX(12px) translateY(-4px) rotate(0deg);
  }
}

/* Area pilih level harus bisa digulir jika tinggi layar terbatas */
.scene-dashboard {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 8px 0 max(24px, env(safe-area-inset-bottom));
}

.dashboard-header {
  padding-inline: 12px;
}

.level-loading.sauh-level-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  align-items: stretch;
  padding-bottom: 8px;
}

.level-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .fishing-boat.sauh-sailing-boat {
    left: calc(50% - 50px);
    bottom: 30%;
    width: 100px;
    zoom: 1;
  }

  .level-loading.sauh-level-grid {
    width: min(94%, 560px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px auto;
  }

  .level-card {
    min-height: 190px;
    padding: 14px 10px;
  }

  .dashboard-title {
    letter-spacing: 1px;
  }
}

@media (max-width: 600px) {
  .cinematic-wrapper {
    min-height: 540px;
  }

  .sauh-title {
    top: 28%;
    width: 94%;
  }

  .sauh-logo-image {
    width: min(100%, 420px);
    max-height: 22vh;
  }

  .sauh-intro-label {
    gap: 7px;
    margin-top: 6px;
    letter-spacing: 1px;
  }

  .sauh-caption {
    bottom: 86px;
    width: calc(100% - 28px);
    padding: 9px 12px;
    font-size: 11px;
    line-height: 1.4;
  }

  .sauh-start-button {
    bottom: max(12px, env(safe-area-inset-bottom));
    min-width: 0;
    width: min(280px, calc(100% - 40px));
    padding: 10px 16px;
    font-size: 11px;
  }

  .fishing-boat.sauh-sailing-boat {
    bottom: 34%;
    width: 88px;
    left: calc(50% - 44px);
  }

  .scene-dashboard {
    padding-top: 4px;
  }

  .dashboard-header {
    width: 94%;
    margin: 12px auto 8px;
  }

  .dashboard-logo {
    letter-spacing: 1.5px;
  }

  .dashboard-title {
    font-size: clamp(20px, 6vw, 30px);
    line-height: 1.15;
  }

  .level-loading.sauh-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 24px);
    margin: 10px auto;
  }

  .level-card {
    min-height: 172px;
    padding: 12px 8px;
    border-radius: 15px;
  }

  .level-icon {
    font-size: 30px;
  }

  .level-number {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .level-name {
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .level-desc-text {
    font-size: 10px;
    line-height: 1.35;
  }

  .level-status,
  .locked-label {
    font-size: 9px;
    letter-spacing: .8px;
    padding: 4px 7px;
  }

  .loading-container {
    margin: 12px auto 8px;
  }
}

/* Ponsel sangat kecil: satu kolom agar kartu tetap terbaca dan tombol
   tidak menutupi kartu; pengguna dapat menggulir sampai bagian bawah. */
@media (max-width: 360px) {
  .level-loading.sauh-level-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 300px;
  }

  .level-card {
    min-height: 150px;
  }

  .sauh-caption {
    font-size: 10px;
  }

  .sauh-intro-label {
    font-size: 8px;
  }
}

@media (max-height: 650px) and (min-width: 601px) {
  .sauh-title {
    top: 27%;
  }

  .sauh-logo-image {
    max-height: 23vh;
  }

  .sauh-caption {
    bottom: 76px;
  }

  .sauh-start-button {
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fishing-boat.sauh-sailing-boat {
    animation: none;
  }
}
