/**
 * ============================================================================
 * GAME-LOMPAT.CSS - Gaya Visual Game 4: Lompat Kuis (Katak Daun Teratai)
 * ============================================================================
 */

/* View Section Game Lompat */
#view-game-lompat {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 25%, #38bdf8 0%, #0284c7 35%, #0369a1 75%, #075985 100%);
  overflow-x: hidden;
  overflow-y: auto;
  user-select: none;
  font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
}

/* Dekorasi Riak Air & Caustics */
.lompat-water-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.lompat-water-ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  animation: waterRippleExpand 6s linear infinite;
}

.lompat-water-ripple.r1 {
  top: 25%;
  left: 18%;
  width: 180px;
  height: 90px;
  animation-delay: 0s;
}

.lompat-water-ripple.r2 {
  top: 55%;
  right: 15%;
  width: 240px;
  height: 120px;
  animation-delay: 2s;
}

.lompat-water-ripple.r3 {
  bottom: 20%;
  left: 30%;
  width: 200px;
  height: 100px;
  animation-delay: 4s;
}

@keyframes waterRippleExpand {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Latar Daun Teratai Background (Atmosfir Kolam) */
.lompat-bg-lily {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #14532d 0%, #064e3b 80%, #022c22 100%);
  opacity: 0.25;
  filter: blur(1px);
  pointer-events: none;
  z-index: 1;
}

.lompat-bg-lily.l1 { top: 8%; left: -40px; width: 180px; height: 180px; }
.lompat-bg-lily.l2 { top: 12%; right: -50px; width: 220px; height: 220px; }
.lompat-bg-lily.l3 { bottom: 15%; left: -60px; width: 260px; height: 260px; }
.lompat-bg-lily.l4 { bottom: 10%; right: -30px; width: 200px; height: 200px; }

/* Bunga Teratai Mekar Hiasan di Tepi */
.lompat-lotus-flower {
  position: absolute;
  font-size: 2.4rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
  opacity: 0.85;
  z-index: 2;
  animation: lotusFloat 5s ease-in-out infinite alternate;
}
.lompat-lotus-flower.f1 { top: 18%; left: 35px; }
.lompat-lotus-flower.f2 { top: 22%; right: 40px; animation-delay: 2.5s; }

@keyframes lotusFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(4deg); }
}

/* Kontainer Utama Viewport */
.lompat-viewport {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========================================================
   TOP BAR HUD (HIJAU ALAMI SESUAI GAMBAR)
   ======================================================== */
.lompat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: linear-gradient(180deg, #4d9221 0%, #3f7b1b 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid #6cb836;
  min-height: 54px;
  position: relative;
  z-index: 30;
}

.lompat-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-lompat-exit {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-lompat-exit:hover {
  background: rgba(220, 38, 38, 0.85);
  border-color: #ef4444;
  transform: translateY(-1px);
}

.lompat-lives-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lompat-lives-label {
  font-size: 0.85rem;
  opacity: 0.9;
  letter-spacing: 1px;
}

.lompat-lives-hearts {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lompat-heart-icon {
  font-size: 1.25rem;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lompat-heart-icon.lost {
  opacity: 0.25;
  filter: grayscale(1);
  transform: scale(0.8);
}

.lompat-heart-icon.shake-lost {
  animation: heartBreak 0.6s ease;
}

@keyframes heartBreak {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.4) rotate(-15deg); }
  50% { transform: scale(0.7) rotate(15deg); }
  75% { transform: scale(1.1) rotate(-5deg); }
}

.lompat-topbar-center {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.lompat-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lompat-score-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lompat-score-label {
  font-size: 0.85rem;
  opacity: 0.9;
  letter-spacing: 1px;
}

.lompat-score-val {
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 45px;
  text-align: center;
}

.lompat-combo-badge {
  display: none;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 0.82rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
  animation: pulseCombo 1s infinite alternate;
}

.lompat-combo-badge.active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@keyframes pulseCombo {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.7); }
}

.lompat-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 800;
  font-size: 0.92rem;
}

.lompat-timer-pill.urgent {
  background: #dc2626;
  border-color: #f87171;
  animation: timerUrgentFlash 0.6s infinite alternate;
}

@keyframes timerUrgentFlash {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.05); opacity: 0.85; }
}

/* ========================================================
   QUESTION CARD / BANNER (SESUAI GAMBAR)
   ======================================================== */
.lompat-question-card {
  position: relative;
  background: #fdf6ee;
  border-bottom: 3px solid #e7d7c6;
  border-radius: 0 0 28px 28px;
  padding: 16px 28px 20px 28px;
  box-shadow: 0 10px 30px rgba(0, 20, 40, 0.25);
  margin: 0 20px;
  z-index: 25;
}

.lompat-qcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lompat-qnumber-badge {
  background: #1e293b;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 16px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lompat-qpoints-badge {
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  color: #854d0e;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 16px;
  border: 1px solid #facc15;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  animation: pointBadgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.lompat-qclose-btn {
  background: #334155;
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.lompat-qclose-btn:hover {
  background: #dc2626;
  transform: scale(1.1) rotate(90deg);
}

.lompat-qprompt-container {
  text-align: center;
}

.lompat-qprompt-text {
  color: #1e293b;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.lompat-qimage-box {
  margin-top: 10px;
  display: none;
  justify-content: center;
}

.lompat-qimage-box.has-image {
  display: flex;
}

.lompat-qimage-box img {
  max-height: 140px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #ffffff;
}

/* ========================================================
   POND STAGE AREA (ARENA KOLAM & DAUN TERATAI)
   ======================================================== */
.lompat-pond-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 40px 20px;
  min-height: 520px;
}

/* Container Target Daun Teratai (Options Row) */
.lompat-pads-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3.5vw, 42px);
  width: 100%;
  max-width: 1200px;
  margin-top: 10px;
  flex-wrap: wrap;
  z-index: 15;
}

/* Daun Teratai Target (Lily Pad Card) */
.lompat-pad {
  position: relative;
  width: clamp(140px, 19vw, 210px);
  height: clamp(140px, 19vw, 210px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, filter 0.25s ease;
  animation: padFloatIdle 4s ease-in-out infinite alternate;
}

.lompat-pad:nth-child(1) { animation-delay: 0s; }
.lompat-pad:nth-child(2) { animation-delay: 1.2s; }
.lompat-pad:nth-child(3) { animation-delay: 2.4s; }
.lompat-pad:nth-child(4) { animation-delay: 0.6s; }

@keyframes padFloatIdle {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Desain Visual Daun Teratai (Leaf Notch & Texture) */
.lompat-pad-leaf-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 14px 22px rgba(0, 25, 45, 0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.lompat-pad-leaf-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.lompat-pad-leaf {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #15803d 0%, #166534 60%, #14532d 100%);
  border: 4px solid #4ade80;
  box-shadow: 0 14px 24px rgba(0, 30, 60, 0.4), inset 0 2px 6px rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Sayatan Alami Daun Teratai (Notch) */
.lompat-pad-leaf::after {
  content: '';
  position: absolute;
  top: 0;
  right: 18%;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 55px solid #0284c7; /* Warna tembus ke air */
  transform: rotate(25deg);
  pointer-events: none;
}

/* Urat Daun Halus */
.lompat-pad-leaf::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* Efek Bayangan Riak Air di Bawah Daun */
.lompat-pad-ripple-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  opacity: 0.6;
  animation: ringPulse 3s infinite ease-out;
}

@keyframes ringPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Lencana Huruf Pilihan (A, B, C, D) di Atas Daun */
.lompat-pad-badge {
  position: absolute;
  top: -10px;
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.15rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 5;
  transition: transform 0.2s ease;
}

/* Ikon Magnifier 🔍 (Sesuai Gambar) */
.lompat-pad-magnifier {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 5;
  pointer-events: none;
}

/* Konten / Teks Jawaban di Dalam Daun */
.lompat-pad-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  padding-top: 14px;
}

.lompat-pad-text {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  line-height: 1.3;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
  word-break: break-word;
}

/* Hover & Active State */
.lompat-pad:hover {
  transform: translateY(-8px) scale(1.05);
}

.lompat-pad:hover .lompat-pad-leaf {
  border-color: #86efac;
  box-shadow: 0 18px 30px rgba(0, 30, 60, 0.5), 0 0 25px rgba(74, 222, 128, 0.6);
}

.lompat-pad:hover .lompat-pad-leaf-wrap {
  transform: scale(1.05);
  filter: drop-shadow(0 18px 30px rgba(0, 30, 60, 0.55)) drop-shadow(0 0 16px rgba(134, 239, 172, 0.7));
}

.lompat-pad:hover .lompat-pad-badge {
  transform: scale(1.15);
  background: #eab308;
}

.lompat-pad:active {
  transform: translateY(2px) scale(0.97);
}

/* State: Jawaban Benar (.pad-correct) */
.lompat-pad.pad-correct .lompat-pad-leaf {
  background: radial-gradient(circle at 45% 45%, #10b981 0%, #059669 60%, #047857 100%) !important;
  border-color: #6ee7b7 !important;
  box-shadow: 0 0 40px #10b981, inset 0 0 20px #a7f3d0 !important;
  animation: correctPadGlow 1s ease infinite alternate;
}

.lompat-pad.pad-correct .lompat-pad-leaf-wrap {
  filter: drop-shadow(0 0 35px #10b981) drop-shadow(0 0 20px #a7f3d0) !important;
  animation: correctPadGlow 1s ease infinite alternate;
}

.lompat-pad.pad-correct .leaf-shape-path {
  fill: #059669 !important;
  stroke: #6ee7b7 !important;
}

@keyframes correctPadGlow {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.06); filter: brightness(1.25); }
}

/* State: Jawaban Salah (.pad-wrong) */
.lompat-pad.pad-wrong .lompat-pad-leaf {
  background: radial-gradient(circle at 45% 45%, #ef4444 0%, #dc2626 60%, #991b1b 100%) !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 0 35px #ef4444 !important;
  animation: padShake 0.5s ease-in-out;
}

.lompat-pad.pad-wrong .lompat-pad-leaf-wrap {
  filter: drop-shadow(0 0 30px #ef4444) !important;
  animation: padShake 0.5s ease-in-out;
}

.lompat-pad.pad-wrong .leaf-shape-path {
  fill: #dc2626 !important;
  stroke: #fca5a5 !important;
}

@keyframes padShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px) rotate(-4deg); }
  40%, 80% { transform: translateX(10px) rotate(4deg); }
}

/* Daun Tenggelam Saat Salah */
.lompat-pad.pad-sinking {
  animation: padSinkToWater 1.2s forwards ease-in-out;
}

@keyframes padSinkToWater {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(0.9) translateY(10px); opacity: 0.7; }
  100% { transform: scale(0.7) translateY(25px); opacity: 0.35; filter: blur(2px); }
}

/* Petunjuk Jawaban Benar (.pad-hint-correct) */
.lompat-pad.pad-hint-correct .lompat-pad-leaf {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 30px #f59e0b !important;
  animation: hintPulse 0.8s infinite alternate;
}

.lompat-pad.pad-hint-correct .lompat-pad-leaf-wrap {
  filter: drop-shadow(0 0 30px #f59e0b) !important;
  animation: hintPulse 0.8s infinite alternate;
}

.lompat-pad.pad-hint-correct .leaf-shape-path {
  stroke: #fbbf24 !important;
}

@keyframes hintPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ========================================================
   STARTING LILY PAD & KATAK (THE FROG)
   ======================================================== */
.lompat-start-pad-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  z-index: 20;
}

/* Daun Teratai Pangkal Tempat Katak Bertengger */
.lompat-start-pad {
  position: relative;
  width: clamp(200px, 26vw, 290px);
  height: clamp(150px, 20vw, 210px);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: startPadFloat 4.5s ease-in-out infinite alternate;
}

.lompat-start-pad-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.pad-ripple-anim {
  animation: startRipplePulse 3.5s infinite ease-out;
  transform-origin: 140px 105px;
}

@keyframes startRipplePulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes startPadFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Sayatan Daun Pangkal lama dinonaktifkan demi SVG alami */
.lompat-start-pad::after {
  display: none;
}

/* Karakter Katak Hijau Lucu (Kiki si Katak Pintar) */
.lompat-frog-wrapper {
  position: absolute;
  bottom: 25px;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 25;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  transform-origin: center bottom;
}

/* Katak SVG Utama */
.lompat-frog-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
  animation: frogBreathe 3s ease-in-out infinite alternate;
}

@keyframes frogBreathe {
  0% { transform: scale(1); }
  100% { transform: scale(1.03) translateY(-2px); }
}

/* Kantung Tenggorokan Bernapas (Throat Breathing Hidup) */
.frog-throat-sac {
  transform-origin: 110px 84px;
  animation: throatBreathing 2.2s ease-in-out infinite alternate;
}

@keyframes throatBreathing {
  0% {
    transform: scale(0.92, 0.88);
    opacity: 0.85;
  }
  45% {
    transform: scale(1.15, 1.25);
    opacity: 1;
  }
  100% {
    transform: scale(0.92, 0.88);
    opacity: 0.85;
  }
}

/* Kelopak Mata Berkedip Hidup (Natural Blink) */
.frog-eyelid-left {
  transform-origin: 74px 38px;
  animation: eyelidBlink 4.2s infinite ease-in-out;
}

.frog-eyelid-right {
  transform-origin: 146px 38px;
  animation: eyelidBlink 4.2s infinite ease-in-out;
}

@keyframes eyelidBlink {
  0%, 91%, 100% {
    transform: scaleY(0);
    opacity: 0;
  }
  93%, 97% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Kaki Belakang Katak Sedikit Bergerak Saat Diam */
.frog-leg-left {
  transform-origin: 70px 165px;
  animation: legTwitchLeft 5s ease-in-out infinite alternate;
}

.frog-leg-right {
  transform-origin: 150px 165px;
  animation: legTwitchRight 5s ease-in-out infinite alternate;
}

@keyframes legTwitchLeft {
  0%, 85%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-2.5deg); }
}

@keyframes legTwitchRight {
  0%, 85%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(2.5deg); }
}

/* Animasi Katak Melompat (Parabolic Hop) */
.lompat-frog-wrapper.is-jumping {
  animation: frogLeapArc 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes frogLeapArc {
  0% {
    transform: translate(0, 0) scale(1, 0.85);
  }
  30% {
    transform: translate(calc(var(--target-dx) * 0.3), calc(var(--target-dy) * 0.3 - 100px)) scale(1.1, 1.25) rotate(var(--jump-rot, 0deg));
  }
  70% {
    transform: translate(calc(var(--target-dx) * 0.7), calc(var(--target-dy) * 0.7 - 70px)) scale(1.05, 1.1) rotate(var(--jump-rot, 0deg));
  }
  100% {
    transform: translate(var(--target-dx), var(--target-dy)) scale(1, 0.9);
  }
}

/* Katak Gembira (Saat Benar) */
.lompat-frog-wrapper.is-happy .lompat-frog-svg {
  animation: frogCheer 0.6s ease infinite alternate;
}

@keyframes frogCheer {
  0% { transform: translateY(0) scale(1.05); }
  100% { transform: translateY(-16px) scale(1.12); }
}

/* Katak Pusing / Basah (Saat Salah) */
.lompat-frog-wrapper.is-dizzy .lompat-frog-svg {
  animation: frogDizzyShake 0.5s ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) hue-rotate(-30deg);
}

@keyframes frogDizzyShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

/* Efek Cipratan Air (Splash Effect) */
.lompat-splash-fx {
  position: absolute;
  width: 90px;
  height: 45px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  opacity: 0;
  z-index: 30;
}

.lompat-splash-fx.play-splash {
  animation: waterSplashPop 0.6s ease-out forwards;
}

@keyframes waterSplashPop {
  0% { transform: scale(0.3); opacity: 1; border-width: 6px; }
  50% { opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; border-width: 1px; }
}

/* Feedback Floating Toast (e.g. +100 BENAR! 🎉) */
.lompat-float-toast {
  position: absolute;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 1.2rem;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.lompat-float-toast.correct {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2px solid #a7f3d0;
  animation: floatUpFade 1.2s ease-out forwards;
}

.lompat-float-toast.wrong {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 2px solid #fca5a5;
  animation: floatUpFade 1.2s ease-out forwards;
}

@keyframes floatUpFade {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  25% { transform: translateY(-20px) scale(1.1); opacity: 1; }
  80% { transform: translateY(-40px) scale(1); opacity: 0.9; }
  100% { transform: translateY(-55px) scale(0.9); opacity: 0; }
}

/* ========================================================
   MODAL SETUP GAME 4 (LOMPAT KUIS)
   ======================================================== */
#lompat-setup-modal .modal-card,
#lompat-result-modal .modal-card {
  max-width: 580px;
}

.lompat-setup-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .lompat-topbar {
    padding: 8px 14px;
  }
  .lompat-topbar-center {
    font-size: 1rem;
    max-width: 180px;
  }
  .lompat-question-card {
    margin: 0 10px;
    padding: 12px 16px;
  }
  .lompat-qprompt-text {
    font-size: 1.15rem;
  }
  .lompat-pads-container {
    gap: 12px;
  }
  .lompat-pad {
    width: 135px;
    height: 135px;
    padding: 10px;
  }
  .lompat-pad-text {
    font-size: 0.82rem;
  }
  .lompat-frog-wrapper {
    width: 110px;
    height: 110px;
    bottom: 15px;
  }
}
