/* JURAGAN69 Lucky Wheels - Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

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

:root {
  --primary: #ffd700;
  --secondary: #ff6b35;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --text: #060af8;
  --muted: #0429fa;
}

body.page {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  background: #0a0a14;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   BACKGROUND IMAGE - GANTI URL DI BAWAH INI
   Pakai DIRECT LINK gambar (bukan halaman web)
   Contoh: https://i.postimg.cc/xxx/gambar.jpg
   ============================================ */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(255, 0, 100, 0.25) 0%, rgba(255, 200, 0, 0.25) 50%, rgba(200, 0, 255, 0.25) 100%),
    url('https://s12.gifyu.com/images/bkYgl.png') center/cover no-repeat fixed;
  z-index: -1;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 150, 0.3) 0%, transparent 30%);
  animation: particleFloat 10s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Logo Header */
.logo-header {
  text-align: center;
  padding: 20px;
  z-index: 10;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 0, 150, 0.3), rgba(255, 200, 0, 0.3), rgba(0, 255, 200, 0.3));
  backdrop-filter: blur(20px);
  border-radius: 0 0 50px 50px;
  box-shadow: 
    0 8px 32px rgba(255, 215, 0, 0.6),
    0 0 60px rgba(255, 0, 150, 0.4),
    inset 0 -5px 20px rgba(255, 255, 255, 0.3);
  border-bottom: 4px solid rgba(255, 215, 0, 0.8);
  animation: headerPulse 2s ease-in-out infinite;
}

@keyframes headerPulse {
  0%, 100% { 
    box-shadow: 
      0 8px 32px rgba(255, 215, 0, 0.6),
      0 0 60px rgba(255, 0, 150, 0.4),
      inset 0 -5px 20px rgba(255, 255, 255, 0.3);
  }
  50% { 
    box-shadow: 
      0 8px 32px rgba(255, 215, 0, 0.9),
      0 0 80px rgba(255, 0, 150, 0.7),
      inset 0 -5px 20px rgba(255, 255, 255, 0.5);
  }
}

.logo-header::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 15px;
  background: linear-gradient(to bottom, rgba(255, 215, 0, 0.5), transparent);
  border-radius: 50%;
  filter: blur(8px);
}

.main-logo {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.brand-title {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ffd700, #ff00ff, #00ffff, #ffd700);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
  text-transform: uppercase;
  letter-spacing: 8px;
  animation: rainbowText 3s ease infinite, titleBounce 1s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1)) drop-shadow(0 0 50px rgba(255, 0, 255, 0.8));
}

@keyframes rainbowText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes titleBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: calc(100vh - 150px);
}

/* Pond/Kolam Container */
.pond-container {
  position: relative;
  width: 700px;
  height: 480px;
  background: 
    radial-gradient(circle at 30% 40%, rgba(0, 200, 255, 0.9), rgba(0, 100, 255, 0.95)),
    linear-gradient(180deg, #5ac8fa 0%, #007aff 40%, #004080 70%, #002147 100%);
  border-radius: 25px;
  box-shadow: 
    0 25px 80px rgba(0, 200, 255, 0.8),
    inset 0 0 80px rgba(255, 255, 255, 0.4),
    0 0 0 8px rgba(255, 215, 0, 0.6),
    0 0 0 16px rgba(255, 0, 255, 0.4),
    0 0 100px rgba(255, 215, 0, 0.6);
  border: 6px solid rgba(255, 215, 0, 0.8);
  overflow: hidden;
  margin: 30px auto;
  animation: pondMegaGlow 2s ease-in-out infinite;
  filter: brightness(1.15) contrast(1.2);
}

@keyframes pondMegaGlow {
  0%, 100% {
    box-shadow: 
      0 25px 60px rgba(0, 200, 255, 0.8),
      inset 0 -20px 40px rgba(0, 120, 200, 0.3),
      inset 0 20px 50px rgba(150, 230, 255, 0.5),
      0 0 0 6px rgba(255, 215, 0, 0.8),
      0 0 0 8px rgba(255, 255, 255, 0.3),
      0 0 90px rgba(14, 165, 233, 0.6);
    filter: contrast(1.25) brightness(1.15) saturate(1.1);
  }
  50% {
    box-shadow: 
      0 25px 60px rgba(56, 189, 248, 0.85),
      inset 0 -20px 40px rgba(0, 140, 220, 0.35),
      inset 0 20px 50px rgba(180, 240, 255, 0.6),
      0 0 0 6px rgba(255, 215, 0, 0.9),
      0 0 0 8px rgba(255, 255, 255, 0.4),
      0 0 100px rgba(56, 189, 248, 0.7);
    filter: contrast(1.28) brightness(1.18) saturate(1.15);
  }
}
      0 0 0 8px rgba(0, 255, 255, 0.8),
      0 0 0 16px rgba(255, 215, 0, 0.6),
      0 0 150px rgba(255, 0, 255, 0.8);
    filter: brightness(1.3);
  }
}

@keyframes pondWaves {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.02) rotate(1deg); }
}
    0 0 100px rgba(0, 122, 255, 0.3),
    inset 0 0 100px rgba(0, 0, 0, 0.4),
    inset 0 20px 60px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
  border: 6px solid #007aff;
  animation: waterShimmer 3s ease-in-out infinite;
}

@keyframes waterShimmer {
  0%, 100% { box-shadow: 
    0 10px 80px rgba(77, 184, 232, 0.5),
    0 0 100px rgba(0, 122, 255, 0.3),
    inset 0 0 100px rgba(0, 0, 0, 0.4);
  }
  50% { box-shadow: 
    0 10px 80px rgba(77, 184, 232, 0.7),
    0 0 120px rgba(0, 122, 255, 0.5),
    inset 0 0 100px rgba(0, 0, 0, 0.4);
  }
}

/* Water surface animation */
.water-surface {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  animation: waterRipple 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes waterRipple {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Angpao Container */
.angpao-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
}

/* ============================================
   � LEGENDARY GOLDEN KOI - MASTERPIECE 3D
   ============================================ */
.angpao {
  position: absolute;
  width: 140px;
  height: 80px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: swimLegend 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.3));
  transform-style: preserve-3d;
  perspective: 1200px;
  z-index: 10;
}

/* ===== KOI BODY - ULTRA 3D REALISTIC ===== */
.angpao::before {
  content: '';
  position: absolute;
  width: 118px;
  height: 65px;
  left: 25px;
  top: 14px;
  border-radius: 45% 55% 40% 60% / 50% 50% 50% 50%; 
  background: 
    /* SUPER BRIGHT Top Specular */
    radial-gradient(ellipse 75% 30% at 52% 18%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 200, 0.8) 25%, transparent 55%),
    /* Side Highlight Left */
    radial-gradient(ellipse 30% 60% at 25% 40%, rgba(255, 200, 100, 0.6) 0%, transparent 50%),
    /* Side Highlight Right */
    radial-gradient(ellipse 30% 60% at 75% 40%, rgba(255, 220, 120, 0.5) 0%, transparent 50%),
    /* VIBRANT Main Body Gradient */
    linear-gradient(135deg, 
      #FF4500 0%,      /* Red-Orange */
      #FF6000 15%,     /* Deep Orange */
      #FF8C00 30%,     /* Dark Orange */
      #FFA500 45%,     /* Orange */
      #FFB700 55%,     /* Gold-Orange */
      #FFD700 70%,     /* Gold */
      #FFED4E 85%,     /* Yellow */
      #FFF9C4 100%     /* Light Yellow */
    ),
    /* Deep Bottom Shadow */
    radial-gradient(ellipse 70% 40% at 50% 85%, rgba(200, 50, 0, 0.7) 0%, rgba(150, 40, 0, 0.4) 50%, transparent 70%);
  background-size: 100% 100%;
  background-blend-mode: screen, overlay, overlay, normal, multiply;
  box-shadow: 
    /* EXTREME 3D Depth */
    inset 0 -12px 30px rgba(160, 40, 0, 0.8),
    inset 0 12px 30px rgba(255, 255, 255, 0.95),
    inset -5px 0 15px rgba(200, 60, 0, 0.5),
    inset 5px 0 15px rgba(255, 200, 100, 0.4),
    /* Strong Outer Glow */
    0 10px 35px rgba(255, 140, 0, 0.9),
    0 0 50px rgba(255, 215, 0, 0.7),
    0 0 80px rgba(255, 100, 0, 0.4);
  transform-origin: center center;
  animation: bodyFlex 1s ease-in-out infinite alternate;
  filter: brightness(1.25) contrast(1.25) saturate(1.5);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ===== KOI SCALES - ULTRA REALISTIC 3D ===== */
.angpao::after {
  content: '';
  position: absolute;
  width: 118px;
  height: 65px;
  left: 25px;
  top: 14px;
  border-radius: 45% 55% 40% 60% / 50% 50% 50% 50%;
  background: 
    /* MEGA BRIGHT Scale Highlights */
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 8%, transparent 18%),
    radial-gradient(circle at 58% 23%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 8%, transparent 20%),
    radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 8%, transparent 17%),
    radial-gradient(circle at 68% 43%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 8%, transparent 19%),
    radial-gradient(circle at 33% 63%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 8%, transparent 16%),
    radial-gradient(circle at 25% 45%, rgba(255, 255, 255, 0.75) 0%, transparent 15%),
    radial-gradient(circle at 75% 55%, rgba(255, 255, 255, 0.7) 0%, transparent 14%),
    /* Orange Pattern Spots */
    radial-gradient(circle at 50% 35%, rgba(255, 80, 0, 0.4) 0%, transparent 28%),
    radial-gradient(circle at 40% 55%, rgba(255, 100, 0, 0.35) 0%, transparent 25%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: scaleShimmer 1.8s ease-in-out infinite;
  filter: brightness(1.5) contrast(1.4) saturate(1.2);
  will-change: opacity, transform;
  image-rendering: -webkit-optimize-contrast;
}

@keyframes scaleShimmer {
  0%, 100% { 
    opacity: 0.85; 
    transform: scale(1);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.02);
  }
}

/* ===== ULTRA REALISTIC 3D EYE ===== */
.angpao .koi-eye {
  position: absolute;
  width: 19px;
  height: 19px;
  left: 99px;
  top: 28px;
  z-index: 20;
  border-radius: 50%;
  background: 
    /* SUPER BRIGHT Eye Shine */
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 15%, rgba(255, 255, 255, 0) 40%),
    /* Secondary Shine */
    radial-gradient(circle at 65% 70%, rgba(255, 255, 255, 0.6) 0%, transparent 30%),
    /* Deep Black Pupil */
    radial-gradient(circle at 50% 50%, #000000 0%, #000000 25%, #0a0a0a 28%, #1a1a1a 32%),
    /* Colored Iris Ring */
    radial-gradient(circle at 50% 50%, transparent 32%, #2a2a2a 33%, #404040 45%, #333 50%),
    /* White Sclera */
    radial-gradient(circle at 50% 50%, #ffffff 0%, #f5f5f5 70%, #e8e8e8 100%);
  box-shadow: 
    /* Gold Ring */
    0 0 0 3px rgba(255, 140, 0, 0.9),
    0 0 0 4px rgba(255, 200, 100, 0.7),
    /* Strong 3D Shadow */
    0 5px 10px rgba(0, 0, 0, 0.7),
    0 2px 5px rgba(0, 0, 0, 0.5),
    /* Inner Highlights */
    inset 0 2px 3px rgba(255, 255, 255, 0.7),
    inset -1px -1px 2px rgba(0, 0, 0, 0.3);
  animation: blink 4s infinite;
  filter: brightness(1.3) contrast(1.5) saturate(1.2);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
}

@keyframes blink {
  0%, 48%, 52%, 100% { 
    transform: scaleY(1); 
    filter: brightness(1.3) contrast(1.5);
  }
  50% { 
    transform: scaleY(0.1); 
    filter: brightness(0.8);
  }
}

.angpao .koi-eye::after,
.angpao .koi-eye::before {
  display: none;
}

/* ===== FINS - ULTRA 3D FLOWING ===== */
.angpao .koi-fin-top {
  position: absolute;
  width: 33px;
  height: 21px;
  left: 62px;
  top: 4px;
  background: 
    /* Bright Top Edge */
    linear-gradient(to top, transparent 70%, rgba(255, 255, 200, 0.6) 85%, rgba(255, 255, 255, 0.4) 100%),
    /* Main Vibrant Gradient */
    linear-gradient(to top, 
      rgba(255, 50, 0, 1) 0%,
      rgba(255, 80, 0, 0.98) 15%,
      rgba(255, 120, 0, 0.92) 35%,
      rgba(255, 160, 0, 0.8) 55%,
      rgba(255, 200, 0, 0.65) 75%,
      rgba(255, 240, 120, 0.35) 100%
    );
  border-radius: 50% 50% 0 0;
  transform-origin: bottom center;
  animation: finWaveTop 1.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(255, 100, 0, 0.7)) brightness(1.3) saturate(1.5) contrast(1.3);
  box-shadow: 
    inset 0 -5px 12px rgba(180, 40, 0, 0.7),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(255, 140, 0, 0.5);
  will-change: transform;
}

.angpao .koi-fin-top::before { display: none; }

.angpao .koi-fin-side {
  position: absolute;
  width: 26px;
  height: 33px;
  left: 52px;
  top: 50px;
  background: 
    /* Bright Bottom Edge */
    linear-gradient(to bottom, transparent 70%, rgba(255, 255, 200, 0.5) 85%, rgba(255, 255, 255, 0.3) 100%),
    /* Main Vibrant Gradient */
    linear-gradient(to bottom, 
      rgba(255, 50, 0, 1) 0%,
      rgba(255, 80, 0, 0.98) 15%,
      rgba(255, 120, 0, 0.92) 35%,
      rgba(255, 160, 0, 0.8) 55%,
      rgba(255, 200, 0, 0.6) 75%,
      rgba(255, 240, 120, 0.25) 100%
    );
  border-radius: 0 0 50% 50%;
  transform-origin: top center;
  animation: finWaveSide 1s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(255, 100, 0, 0.7)) brightness(1.3) saturate(1.5) contrast(1.3);
  box-shadow: 
    inset 0 5px 12px rgba(180, 40, 0, 0.7),
    inset 0 -2px 4px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(255, 140, 0, 0.5);
  will-change: transform;
}

/* ===== TAIL - ULTRA 3D MAJESTIC FAN ===== */
.angpao .koi-tail {
  position: absolute;
  width: 47px;
  height: 47px;
  left: -10px;
  top: 23px;
  background: 
    /* Top Bright Edge */
    linear-gradient(145deg, transparent 0%, rgba(255, 255, 255, 0.6) 10%, transparent 20%),
    /* Bottom Bright Edge */
    linear-gradient(215deg, transparent 0%, rgba(255, 255, 255, 0.5) 10%, transparent 20%),
    /* Center Highlight */
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255, 255, 200, 0.4) 0%, transparent 50%),
    /* VIBRANT Main Gradient */
    radial-gradient(ellipse 100% 100% at 100% 50%, 
      rgba(255, 40, 0, 1) 0%,
      rgba(255, 70, 0, 0.98) 15%,
      rgba(255, 110, 0, 0.93) 30%,
      rgba(255, 150, 0, 0.85) 45%,
      rgba(255, 190, 0, 0.7) 60%,
      rgba(255, 220, 100, 0.4) 80%,
      transparent 100%
    );
  clip-path: polygon(100% 50%, 0% 0%, 15% 50%, 0% 100%);
  transform-origin: right center;
  animation: tailSwing 0.8s ease-in-out infinite alternate;
  filter: 
    drop-shadow(0 5px 10px rgba(255, 100, 0, 0.8))
    drop-shadow(0 0 15px rgba(255, 140, 0, 0.6))
    brightness(1.35) saturate(1.6) contrast(1.3);
  box-shadow: 
    inset 2px 0 10px rgba(180, 40, 0, 0.6),
    inset 0 2px 8px rgba(255, 255, 255, 0.4);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
}

.angpao .koi-tail::before { 
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    /* Moving Shimmer */
    linear-gradient(100deg, 
      transparent 0%,
      rgba(255, 255, 255, 0.6) 20%,
      rgba(255, 255, 255, 0.8) 25%,
      rgba(255, 255, 255, 0.6) 30%,
      transparent 50%
    );
  clip-path: polygon(100% 50%, 0% 0%, 15% 50%, 0% 100%);
  animation: tailShimmer 1.2s ease-in-out infinite;
}

@keyframes tailShimmer {
  0% { 
    opacity: 0.6;
    transform: translateX(0);
  }
  50% { 
    opacity: 1;
    transform: translateX(-5px);
  }
  100% { 
    opacity: 0.6;
    transform: translateX(0);
  }
}

/* ===== MOUTH & ANGPAO - ULTRA 3D ===== */
.angpao .koi-mouth {
  position: absolute;
  width: 10px;
  height: 10px;
  left: 109px;
  top: 35px;
  border-radius: 50%;
  background: 
    /* Inner Light */
    radial-gradient(circle at 35% 35%, rgba(255, 180, 120, 0.9), rgba(200, 50, 0, 1) 40%, rgba(150, 30, 0, 1));
  box-shadow: 
    inset 0 0 4px rgba(0, 0, 0, 0.8),
    inset 1px 1px 2px rgba(100, 20, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 6px rgba(255, 100, 0, 0.3);
  filter: brightness(1.1);
}

.angpao .koi-mouth::after, .angpao .koi-mouth::before { display: none; }

.angpao .angpao-item {
  position: absolute;
  width: 20px;
  height: 26px;
  left: 107px;
  top: 39px;
  background: 
    /* Top Shine */
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 15%),
    /* Side Highlights */
    linear-gradient(90deg, rgba(255, 100, 100, 0.3) 0%, transparent 20%, transparent 80%, rgba(200, 0, 0, 0.4) 100%),
    /* VIBRANT Main Red */
    linear-gradient(135deg, 
      #ff0844 0%,
      #ff1744 20%,
      #d32f2f 45%,
      #c62828 70%,
      #b71c1c 100%
    );
  border: 2.5px solid #ffd700;
  border-radius: 3px;
  box-shadow: 
    /* Gold Border Glow */
    0 0 20px rgba(255, 215, 0, 1),
    0 0 30px rgba(255, 215, 0, 0.7),
    /* 3D Depth */
    0 5px 12px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3),
    /* Inner Shine */
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 6px rgba(150, 0, 0, 0.6);
  z-index: 25;
  transform-origin: top center;
  animation: angpaoSway 2s ease-in-out infinite;
  filter: brightness(1.2) contrast(1.15) saturate(1.3);
}

.angpao .angpao-item::before {
  content: '福';
  position: absolute;
  left: 50%; 
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffd700;
  font-size: 11px;
  font-weight: 900;
  text-shadow: 
    0 0 8px rgba(255, 215, 0, 1),
    0 0 12px rgba(255, 215, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.6);
  font-family: 'STKaiti', 'KaiTi', serif;
  filter: brightness(1.3);
}

/* ===== ANIMATIONS ===== */
@keyframes swimLegend {
  0% { 
    transform: translate(0, 0) rotate(0deg); 
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.3));
  }
  25% { 
    transform: translate(12px, -18px) rotate(6deg); 
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35));
  }
  50% { 
    transform: translate(0, -8px) rotate(0deg); 
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.4));
  }
  75% { 
    transform: translate(-12px, -18px) rotate(-6deg); 
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35));
  }
  100% { 
    transform: translate(0, 0) rotate(0deg); 
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.3));
  }
}

@keyframes bodyFlex {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0.96); }
}

@keyframes tailSwing {
  0% { 
    transform: rotate(18deg) scaleX(1); 
    filter: drop-shadow(0 3px 6px rgba(255, 100, 0, 0.5));
  }
  100% { 
    transform: rotate(-18deg) scaleX(0.92); 
    filter: drop-shadow(0 3px 8px rgba(255, 100, 0, 0.6));
  }
}

@keyframes finWaveTop {
  0% { 
    transform: skewX(12deg) scaleY(1); 
    opacity: 0.9;
  }
  50% { 
    transform: skewX(-12deg) scaleY(0.92); 
    opacity: 1;
  }
  100% { 
    transform: skewX(12deg) scaleY(1); 
    opacity: 0.9;
  }
}

@keyframes finWaveSide {
  0% { 
    transform: rotate(-12deg); 
    opacity: 0.9;
  }
  100% { 
    transform: rotate(22deg); 
    opacity: 1;
  }
}

@keyframes angpaoSway {
  0%, 100% { 
    transform: rotate(-6deg); 
    box-shadow: 
      0 0 15px rgba(255, 215, 0, 0.8),
      0 4px 8px rgba(0, 0, 0, 0.4);
  }
  50% { 
    transform: rotate(6deg); 
    box-shadow: 
      0 0 20px rgba(255, 215, 0, 0.9),
      0 4px 10px rgba(0, 0, 0, 0.5);
  }
}

/* ===== HOVER & ACTIVE - ULTRA EFFECTS ===== */
.angpao:hover {
  filter: 
    drop-shadow(0 0 30px rgba(255, 215, 0, 1)) 
    drop-shadow(0 0 45px rgba(255, 140, 0, 0.8))
    drop-shadow(0 0 60px rgba(255, 100, 0, 0.5))
    brightness(1.35) contrast(1.2) saturate(1.4);
  transform: scale(1.18);
}

.angpao.clickable:hover {
  transform: scale(1.25);
  filter: 
    drop-shadow(0 0 40px rgba(255, 215, 0, 1)) 
    drop-shadow(0 0 60px rgba(255, 100, 0, 1))
    drop-shadow(0 0 80px rgba(255, 0, 0, 0.6))
    brightness(1.4) contrast(1.25) saturate(1.5);
}

.angpao.selected {
  filter: 
    drop-shadow(0 0 50px #ffd700) 
    drop-shadow(0 0 75px #ff8c00) 
    drop-shadow(0 0 100px #ff6b00)
    brightness(1.5) contrast(1.3) saturate(1.6);
  transform: scale(1.3) rotate(-10deg);
  z-index: 100;
  animation: selectedLegend 0.5s ease-out forwards;
}

@keyframes selectedLegend {
  0% { 
    transform: scale(1.3) rotate(-10deg); 
    filter: 
      drop-shadow(0 0 50px #ffd700) 
      brightness(1.5) contrast(1.3);
  }
  50% { 
    transform: scale(1.5) rotate(15deg); 
    filter: 
      drop-shadow(0 0 80px #ffd700) 
      drop-shadow(0 0 100px #ff6b00) 
      brightness(1.6) contrast(1.35) saturate(1.7);
  }
  100% { 
    transform: scale(1.4) rotate(-10deg); 
    filter: 
      drop-shadow(0 0 65px #ffd700) 
      drop-shadow(0 0 90px #ff8c00) 
      brightness(1.55) contrast(1.32) saturate(1.65);
  }
}

.angpao.caught {
  animation: caughtLegend 1s ease-out forwards;
}

@keyframes caughtLegend {
  0% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0) translateY(-100px) rotate(360deg); opacity: 0; }
}

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

/* ========================================
   MOBILE RESPONSIVE - PREMIUM STYLE
   ======================================== */
@media (max-width: 768px) {
  /* Reset & Base */
  body.page {
    overflow-x: hidden;
    min-height: 100vh;
  }
  
  * {
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.2);
  }
  
  /* Background - Vibrant */
  .bg-overlay {
    background: 
      linear-gradient(135deg, rgba(255, 0, 100, 0.15) 0%, rgba(255, 200, 0, 0.15) 50%, rgba(200, 0, 255, 0.15) 100%),
      url('https://s12.gifyu.com/images/bkYgl.png') center/cover no-repeat fixed;
    animation: none;
  }
  
  .bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 30%),
      radial-gradient(circle at 80% 70%, rgba(255, 0, 150, 0.15) 0%, transparent 30%);
  }
  
  /* Logo Header - PREMIUM MOBILE */
  .logo-header {
    padding: 18px 20px;
    border-radius: 0 0 40px 40px;
    background: linear-gradient(135deg, rgba(255, 0, 150, 0.4), rgba(255, 200, 0, 0.4), rgba(0, 255, 200, 0.3));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 
      0 10px 35px rgba(255, 215, 0, 0.6),
      0 0 55px rgba(255, 0, 150, 0.4),
      inset 0 -3px 15px rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid rgba(255, 215, 0, 0.7);
  }
  
  .main-logo {
    max-width: 240px !important;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
  }
  
  .brand-title {
    font-size: 2rem;
    letter-spacing: 4px;
    margin: 10px 0;
    background: linear-gradient(90deg, #ffd700, #ff00ff, #00ffff, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowText 3s ease infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  }
  
  /* Main Content */
  .main-content {
    padding: 20px 10px;
    min-height: auto;
  }
  
  /* Pond Container - KOTAK DENGAN RUMPUT! */
  .pond-container {
    width: 94vw;
    max-width: 510px !important;
    height: 450px !important;
    margin: 28px auto;
    background: 
      radial-gradient(circle at 30% 40%, rgba(0, 200, 255, 0.9), rgba(0, 100, 255, 0.95)),
      linear-gradient(180deg, #5ac8fa 0%, #007aff 40%, #004080 70%, #002147 100%);
    border-radius: 20px;
    box-shadow: 
      0 25px 80px rgba(0, 200, 255, 0.8),
      inset 0 0 80px rgba(255, 255, 255, 0.4),
      0 0 0 8px rgba(255, 215, 0, 0.6),
      0 0 0 16px rgba(255, 0, 255, 0.4),
      0 0 100px rgba(255, 215, 0, 0.6);
    border: 6px solid rgba(255, 215, 0, 0.8);
    overflow: hidden;
    animation: pondMegaGlow 2s ease-in-out infinite;
    filter: brightness(1.15) contrast(1.2);
    position: relative;
  }
  
  /* Aquarium Ground/Sand */
  .pond-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, 
      rgba(139, 69, 19, 0.5) 0%,
      rgba(160, 82, 45, 0.4) 30%,
      rgba(210, 180, 140, 0.3) 60%,
      transparent 100%);
    z-index: 1;
    pointer-events: none;
  }
  
  /* Water Shimmer - Sama dengan Desktop */
  .pond-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      linear-gradient(120deg, 
        transparent 0%, 
        transparent 40%,
        rgba(255, 255, 255, 0.2) 45%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.2) 55%,
        transparent 60%,
        transparent 100%);
    background-size: 200% 200%;
    animation: waterShimmer 3s ease-in-out infinite;
    pointer-events: none;
    border-radius: 20px;
  }
  
  @keyframes waterShimmer {
    0%, 100% {
      background-position: -100% 0%;
      opacity: 0.3;
    }
    50% {
      background-position: 200% 0%;
      opacity: 0.6;
    }
  }
  
  /* Aquarium Plants/Grass */
  .aquarium-plant {
    position: absolute;
    bottom: 20px;
    width: 40px;
    height: 80px;
    z-index: 2;
    pointer-events: none;
  }
  
  .aquarium-plant::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5px;
    width: 8px;
    height: 100%;
    background: linear-gradient(to top, 
      rgba(34, 139, 34, 0.8) 0%,
      rgba(50, 205, 50, 0.7) 40%,
      rgba(144, 238, 144, 0.5) 80%,
      transparent 100%);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom center;
    animation: plantSway 3s ease-in-out infinite;
  }
  
  .aquarium-plant::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 5px;
    width: 8px;
    height: 90%;
    background: linear-gradient(to top, 
      rgba(34, 139, 34, 0.75) 0%,
      rgba(50, 205, 50, 0.65) 40%,
      rgba(144, 238, 144, 0.45) 80%,
      transparent 100%);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom center;
    animation: plantSway 3s ease-in-out infinite 0.5s;
  }
  
  .aquarium-plant:nth-child(1) { left: 5%; }
  .aquarium-plant:nth-child(2) { left: 20%; height: 70px; }
  .aquarium-plant:nth-child(3) { left: 35%; height: 85px; }
  .aquarium-plant:nth-child(4) { right: 35%; height: 75px; }
  .aquarium-plant:nth-child(5) { right: 20%; height: 80px; }
  .aquarium-plant:nth-child(6) { right: 5%; height: 70px; }
  
  @keyframes plantSway {
    0%, 100% {
      transform: rotate(0deg) scaleY(1);
    }
    25% {
      transform: rotate(-3deg) scaleY(1.02);
    }
    75% {
      transform: rotate(3deg) scaleY(0.98);
    }
  }
  
  /* Koi Fish - EXTRA LARGE MOBILE! */
  .angpao {
    width: 165px !important;
    height: 96px !important;
    animation: swimLegend 5s ease-in-out infinite !important;
    filter: 
      drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6))
      contrast(1.35) 
      brightness(1.2)
      saturate(1.15) !important;
    cursor: pointer;
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-font-smoothing: subpixel-antialiased !important;
    transform: translateZ(0) scale(1) !important;
    image-rendering: -webkit-optimize-contrast !important;
  }
  
  .angpao::before,
  .angpao::after {
    width: 123px !important;
    height: 68px !important;
    left: 21px !important;
    top: 14px !important;
    animation: bodyFlex 1s ease-in-out infinite alternate !important;
    filter: contrast(1.3) brightness(1.15) saturate(1.2) !important;
    will-change: transform !important;
    -webkit-font-smoothing: subpixel-antialiased !important;
    image-rendering: -webkit-optimize-contrast !important;
  }
  
  .angpao .koi-eye {
    width: 20px !important;
    height: 20px !important;
    left: 108px !important;
    top: 30px !important;
    animation: blink 4s infinite !important;
    filter: contrast(1.5) brightness(1.25) !important;
    will-change: transform !important;
    box-shadow: 
      0 0 0 3px rgba(255, 140, 0, 1),
      0 0 0 4.5px rgba(255, 200, 100, 0.85),
      0 4px 10px rgba(0, 0, 0, 0.65),
      inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
  }
  
  .angpao .koi-fin-top {
    width: 35px !important;
    height: 22px !important;
    left: 62px !important;
    top: 4px !important;
    animation: finWaveTop 1.5s ease-in-out infinite !important;
    filter: contrast(1.35) brightness(1.18) saturate(1.25) !important;
    will-change: transform !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }
  
  .angpao .koi-fin-side {
    width: 28px !important;
    height: 35px !important;
    left: 53px !important;
    top: 55px !important;
    animation: finWaveSide 1s ease-in-out infinite !important;
    filter: contrast(1.35) brightness(1.18) saturate(1.25) !important;
    will-change: transform !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }
  
  .angpao .koi-tail {
    width: 48px !important;
    height: 48px !important;
    left: -8px !important;
    top: 24px !important;
    animation: tailSwing 0.8s ease-in-out infinite alternate !important;
    filter: contrast(1.35) brightness(1.22) saturate(1.28) !important;
    will-change: transform !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
  }
  
  .angpao .koi-mouth {
    width: 13px !important;
    height: 13px !important;
    left: 131px !important;
    top: 40px !important;
    filter: brightness(1.18) contrast(1.2) !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5) !important;
  }
  
  .angpao .angpao-item {
    width: 24px !important;
    height: 31px !important;
    left: 128px !important;
    top: 45px !important;
    animation: angpaoSway 2s ease-in-out infinite !important;
    filter: contrast(1.3) brightness(1.2) saturate(1.25) !important;
    will-change: transform !important;
    box-shadow: 
      0 0 0 2.5px rgba(255, 215, 0, 1),
      0 0 15px rgba(255, 0, 0, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.45) !important;
  }
  
  .angpao .angpao-item::before {
    font-size: 12px !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  }
  
  .angpao:active {
    transform: scale(1.15) !important;
    filter: 
      drop-shadow(0 0 25px rgba(255, 215, 0, 1)) 
      drop-shadow(0 0 35px rgba(255, 140, 0, 0.8))
      contrast(1.5) 
      brightness(1.35)
      saturate(1.3) !important;
  }
  
  /* Action Buttons - Premium */
  .action-buttons {
    gap: 18px;
    max-width: 92vw;
    margin: 25px auto 0;
  }
  
  .spin-btn {
    width: 100%;
    padding: 22px 50px;
    font-size: 1.85rem;
    letter-spacing: 4.5px;
    font-weight: 900;
    border-radius: 65px;
    background: linear-gradient(135deg, #ff0066 0%, #ff6600 25%, #ffcc00 50%, #00ff88 75%, #ff00ff 100%);
    background-size: 350% 350%;
    animation: buttonRainbow 3s ease infinite !important;
    border: 6px solid rgba(255, 255, 255, 0.98);
    box-shadow: 
      0 18px 50px rgba(255, 0, 100, 0.85),
      0 10px 35px rgba(255, 200, 0, 0.75),
      0 0 60px rgba(255, 0, 255, 0.65),
      inset 0 3px 10px rgba(255, 255, 255, 0.4);
    text-shadow: 
      3px 3px 10px rgba(0, 0, 0, 0.95),
      0 0 25px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(255, 215, 0, 0.5);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  .spin-btn::before {
    display: none;
  }
  
  .spin-btn:active {
    transform: scale(0.96);
    box-shadow: 
      0 10px 35px rgba(255, 0, 100, 0.7),
      0 5px 20px rgba(255, 200, 0, 0.6);
  }
  
  .winners-btn {
    width: 100%;
    padding: 16px 38px;
    font-size: 1.15rem;
    letter-spacing: 2px;
    border-radius: 50px;
  }
  
  /* Fishing Rod */
  .fishing-rod {
    top: -30px;
    height: 30px;
    width: 4px;
  }
  
  .rod-line {
    width: 2px;
  }
  
  .rod-hook {
    font-size: 1.4rem;
  }
  
  .fishing-rod.fishing .rod-line {
    height: 170px;
  }
  
  .fishing-rod.fishing .rod-hook {
    top: 200px;
  }
  
  /* Modals - MODERN & CLEAN */
  .modal-content {
    max-width: 90vw;
    padding: 38px 30px;
    border-radius: 32px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .welcome-modal {
    padding: 45px 32px 40px !important;
    border-radius: 30px !important;
    border: 8px solid #c41e3a !important;
    box-shadow: 
      0 20px 60px rgba(196, 30, 58, 0.6),
      0 0 80px rgba(255, 215, 0, 0.4),
      inset 0 0 30px rgba(255, 255, 255, 0.1) !important;
  }
  
  .angpao-fishing-rod {
    top: -70px;
    height: 70px;
    width: 7px;
  }
  
  .angpao-fishing-rod::before {
    width: 28px;
    height: 28px;
  }
  
  .welcome-title {
    font-size: 1.65rem !important;
    line-height: 1.4;
    margin-bottom: 22px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .welcome-text {
    font-size: 1.1rem;
    padding: 16px 18px;
    margin-bottom: 22px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
  }
  
  .syarat-btn {
    font-size: 1rem;
    padding: 13px;
  }
  
  .syarat-list {
    font-size: 0.92rem;
    padding: 14px 20px;
  }
  
  .syarat-list li {
    padding: 9px 0;
  }
  
  .code-title {
    font-size: 1.75rem !important;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .input-label {
    font-size: 1.08rem;
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .code-input {
    font-size: 1.12rem;
    padding: 17px 20px;
    border-radius: 15px;
    border: 3px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
      0 5px 15px rgba(0, 0, 0, 0.1),
      inset 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .ok-btn,
  .spin-confirm-btn,
  .cancel-btn {
    padding: 17px 40px;
    font-size: 1.15rem;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 1px;
  }
  
  .result-prize {
    font-size: 2.3rem !important;
    text-shadow: 
      0 3px 15px rgba(255, 215, 0, 0.8),
      0 0 30px rgba(255, 255, 255, 0.5);
    margin: 15px 0;
  }
  
  .winners-title {
    font-size: 1.85rem !important;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .winner-item {
    padding: 16px 18px;
    font-size: 1rem;
    margin-bottom: 12px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
  }
}

/* Fishing Rod */
.fishing-rod {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 40px;
  background: linear-gradient(180deg, #8b4513, #654321);
  border-radius: 2px;
  z-index: 10;
  transition: all 0.5s ease;
}

.rod-line {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, #666, #333);
  transition: height 2s ease;
}

.rod-hook {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  transition: top 2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Fishing animation classes */
.fishing-rod.fishing .rod-line {
  height: 200px;
}

.fishing-rod.fishing .rod-hook {
  top: 240px;
}

.angpao.caught {
  animation: caughtAnimation 2s ease;
  box-shadow: 
    0 0 60px rgba(255, 215, 0, 1),
    0 0 100px rgba(255, 215, 0, 0.6),
    0 15px 35px rgba(0, 0, 0, 0.6);
  transform: scale(1.3) rotate(360deg);
}

@keyframes caughtAnimation {
  0% { 
    transform: scale(1) rotate(0deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: scale(1.4) rotate(180deg);
    box-shadow: 
      0 0 80px rgba(255, 215, 0, 1),
      0 0 120px rgba(255, 215, 0, 0.8);
  }
  100% { 
    transform: scale(1.3) rotate(360deg);
    box-shadow: 
      0 0 60px rgba(255, 215, 0, 1),
      0 0 100px rgba(255, 215, 0, 0.6);
  }
}

@keyframes caughtAnimation {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.2) translateY(-20px); }
  100% { transform: scale(0) translateY(-400px); opacity: 0; }
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.spin-btn {
  width: 100%;
  padding: 22px 45px;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff0066 0%, #ff6600 25%, #ffcc00 50%, #ff0066 75%, #ff00ff 100%);
  background-size: 300% 300%;
  border: 5px solid rgba(255, 255, 255, 0.8);
  border-radius: 60px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 4px;
  box-shadow: 
    0 20px 60px rgba(255, 0, 100, 0.7),
    0 10px 35px rgba(255, 200, 0, 0.6),
    0 0 60px rgba(255, 0, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  animation: buttonRainbow 3s ease infinite;
  text-shadow: 
    3px 3px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6);
}

@keyframes buttonRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.spin-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.spin-btn:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 
    0 25px 70px rgba(255, 0, 255, 0.9),
    0 15px 45px rgba(0, 255, 255, 0.8),
    0 0 80px rgba(255, 200, 0, 0.8);
  border-color: rgba(255, 255, 255, 1);
}

.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.winners-btn {
  width: 100%;
  padding: 16px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #c41e3a, #dc143c, #c41e3a);
  border: 3px solid #ff6b6b;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
    0 8px 25px rgba(220, 20, 60, 0.4),
    0 0 30px rgba(220, 20, 60, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.winners-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(220, 20, 60, 0.5),
    0 0 40px rgba(220, 20, 60, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border-color: #fff;
}
  box-shadow: 0 5px 20px rgba(220, 20, 60, 0.4);
  transition: all 0.3s ease;
}

.winners-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 2px rgba(255, 255, 255, 0.3);
  animation: modalIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  position: relative;
  z-index: 1001;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

@keyframes modalIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Welcome Modal - Angpao Design */
.welcome-modal {
  text-align: center;
  color: #000;
  background: linear-gradient(180deg, #e8e8e8 0%, #ffffff 40%, #ffffff 100%) !important;
  border: 8px solid #c41e3a !important;
  border-radius: 30px !important;
  box-shadow: 
    0 0 0 12px #d32f2f,
    0 0 0 16px #ffd700,
    0 25px 70px rgba(0, 0, 0, 0.6) !important;
  position: relative;
  overflow: visible !important;
  padding: 45px 40px 40px !important;
}

/* Fishing Rod on Top */
.angpao-fishing-rod {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 80px;
  background: linear-gradient(180deg, #8b4513, #654321);
  border-radius: 3px;
  z-index: 10;
}

.angpao-fishing-rod::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, #696969, #404040);
  border-radius: 50%;
  border: 3px solid #505050;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.angpao-fishing-rod::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #c41e3a;
}

/* Top Curve/Wave Design */
.angpao-top-curve {
  position: absolute;
  top: -3px;
  left: -8px;
  right: -8px;
  height: 35px;
  background: linear-gradient(180deg, #ff6b6b 0%, #c41e3a 100%);
  border-radius: 25px 25px 0 0;
  z-index: 1;
}

.angpao-top-curve::before {
  content: '福';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 18px;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

.welcome-text {
  text-align: justify;
  font-size: 0.88rem;
  color: #2c2c2c;
  margin-bottom: 20px;
  line-height: 1.65;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.6);
  padding: 15px;
  border-radius: 12px;
  border: 2px solid rgba(196, 30, 58, 0.2);
}

.welcome-text strong {
  color: #c41e3a;
  font-weight: 800;
}

.syarat-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1a237e, #283593);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: default;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.syarat-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  font-size: 0.88rem;
  color: #1a1a1a;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.5);
  padding: 15px 20px;
  border-radius: 12px;
  border: 2px solid rgba(196, 30, 58, 0.15);
}

.syarat-list li {
  padding: 10px 0;
  border-bottom: 2px solid rgba(196, 30, 58, 0.2);
  font-weight: 500;
}

.syarat-list li:last-child {
  border-bottom: none;
}

.syarat-list li::before {
  content: '✓';
  color: #10b981;
  font-weight: 900;
  margin-right: 10px;
  font-size: 1.1rem;
}

.ok-btn {
  padding: 16px 60px;
  background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
  color: #ffd700;
  border: 3px solid #ffd700;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 1002;
  pointer-events: auto;
  box-shadow: 
    0 8px 25px rgba(196, 30, 58, 0.6),
    0 0 20px rgba(255, 215, 0, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ok-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #8b0000 0%, #ff1744 100%);
  box-shadow: 
    0 12px 35px rgba(196, 30, 58, 0.8),
    0 0 30px rgba(255, 215, 0, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

/* Code Modal */
.code-modal {
  text-align: center;
  color: #333;
}

.code-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 20px;
  color: #333;
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.code-input {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-radius: 25px;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  font-weight: 600;
  letter-spacing: 2px;
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.1),
    0 4px 15px rgba(102, 126, 234, 0.1);
}

.code-input::placeholder {
  color: #999999;
  letter-spacing: 1px;
}

.code-input:focus {
  border-color: #667eea;
  background: #fff;
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.1),
    0 6px 25px rgba(102, 126, 234, 0.3),
    0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: scale(1.02);
}

.code-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.code-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.code-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.valid-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 10px;
}

.valid-info {
  text-align: center;
  font-size: 1rem;
  color: #333;
  margin: 5px 0;
}

.code-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.spin-confirm-btn {
  padding: 15px 35px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 6px 20px rgba(102, 126, 234, 0.5),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spin-confirm-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 
    0 10px 30px rgba(102, 126, 234, 0.7),
    inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.cancel-btn {
  padding: 15px 35px;
  background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 6px 20px rgba(117, 117, 117, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cancel-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #757575 0%, #616161 100%);
  box-shadow: 
    0 10px 30px rgba(117, 117, 117, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

/* Result Modal */
.result-modal {
  text-align: center;
  color: #333;
  background: linear-gradient(135deg, #fff 0%, #fffbea 100%);
  border: 6px solid #ffd700;
  border-radius: 50px;
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 0 10px rgba(255, 215, 0, 0.2),
    0 0 0 20px rgba(255, 215, 0, 0.1),
    inset 0 2px 20px rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
  padding: 50px 40px;
}

.result-modal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.result-icon {
  font-size: 5rem;
  margin-bottom: 10px;
  animation: bounceIn 0.6s ease-out;
  filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.5));
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.result-modal h3 {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 10px;
  animation: textGlow 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes textGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)); }
}

.result-prize {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1a237e;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: prizeReveal 0.8s ease-out 0.3s both;
  position: relative;
  z-index: 1;
}

@keyframes prizeReveal {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.result-info {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Winners Modal */
.winners-modal {
  color: #333;
}

.winners-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #ffd700, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}

.winners-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 10px;
}

.winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 0, 255, 0.1));
  border-radius: 20px;
  border: 3px solid rgba(255, 215, 0, 0.4);
  box-shadow: 
    0 5px 20px rgba(255, 215, 0, 0.3),
    inset 0 1px 5px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.winner-item::before {
  content: '🎉';
  position: absolute;
  left: -5px;
  font-size: 2.5rem;
  opacity: 0.3;
  animation: prizeFloat 3s ease-in-out infinite;
}

@keyframes prizeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(10deg); }
}

.winner-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 
    0 8px 30px rgba(255, 215, 0, 0.5),
    inset 0 1px 5px rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 0, 255, 0.15));
}

.winner-item:last-child {
  margin-bottom: 0;
}

.winner-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
  text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.winner-name::before {
  content: '👤';
  font-size: 1.3rem;
}

.winner-prize {
  color: #ff00ff;
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #ff00ff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 8px rgba(255, 0, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.winner-prize::before {
  content: '🏆';
  font-size: 1.3rem;
  -webkit-text-fill-color: initial;
}

.no-winners {
  text-align: center;
  color: #999;
  padding: 40px;
  font-size: 1.1rem;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 20px;
  border: 2px dashed rgba(255, 215, 0, 0.3);
}

/* Confetti */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* Selection Instruction Overlay */
.selection-instruction {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.98), rgba(255, 165, 0, 0.98));
  color: #fff;
  padding: 50px 70px;
  border-radius: 60px;
  text-align: center;
  z-index: 2000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.8),
    0 0 0 8px rgba(255, 255, 255, 0.3),
    0 0 0 16px rgba(255, 255, 255, 0.15),
    inset 0 3px 30px rgba(255, 255, 255, 0.4),
    0 0 100px rgba(255, 165, 0, 0.6);
  border: 6px solid rgba(255, 255, 255, 0.6);
  animation: instructionGlow 2s ease-in-out infinite;
}

.selection-instruction.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.selection-instruction h2 {
  font-size: 3rem;
  font-weight: 900;
  margin: 0 0 20px 0;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 40px rgba(255, 215, 0, 0.5),
    3px 3px 10px rgba(0, 0, 0, 0.8);
  animation: textBounce 1s ease-in-out infinite;
}

.selection-instruction p {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

@keyframes instructionGlow {
  0%, 100% {
    box-shadow: 
      0 25px 70px rgba(0, 0, 0, 0.8),
      0 0 0 8px rgba(255, 255, 255, 0.3),
      0 0 0 16px rgba(255, 255, 255, 0.15),
      inset 0 3px 30px rgba(255, 255, 255, 0.4),
      0 0 100px rgba(255, 165, 0, 0.6);
  }
  50% {
    box-shadow: 
      0 25px 70px rgba(0, 0, 0, 0.8),
      0 0 0 8px rgba(255, 255, 255, 0.4),
      0 0 0 16px rgba(255, 255, 255, 0.2),
      inset 0 3px 30px rgba(255, 255, 255, 0.5),
      0 0 140px rgba(255, 165, 0, 0.8);
  }
}

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

/* Admin Link */
.admin-link-hidden {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
  opacity: 0.3;
  text-decoration: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.admin-link-hidden:hover {
  opacity: 1;
}

/* ============================================
   RESPONSIVE - MOBILE FRIENDLY
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  .logo-header {
    padding: 15px 10px;
  }
  
  .main-logo {
    max-width: 250px;
  }
  
  .pond-container {
    width: 500px;
    height: 350px;
  }
  
  .angpao {
    width: 70px;
    height: 85px;
  }
  
  .angpao::before {
    font-size: 2rem;
  }
  
  .main-content {
    padding: 15px;
    min-height: calc(100vh - 120px);
  }
  
  .modal-content {
    padding: 25px 20px;
    max-width: 90%;
  }
  
  .welcome-title {
    font-size: 1.2rem;
  }
  
  .welcome-text {
    font-size: 0.85rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  /* Ultra performance mode for small mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .logo-header {
    padding: 10px 5px;
    background: rgba(255, 0, 100, 0.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
  
  .main-logo {
    max-width: 200px;
  }
  
  .brand-title {
    font-size: 1.8rem;
    background: none;
    -webkit-text-fill-color: #ffd700;
    color: #ffd700;
    filter: none;
  }
  
  .pond-container {
    width: 95vw;
    max-width: 380px;
    height: 300px;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #4A90E2, #2E5F8A);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.5);
    border: 3px solid rgba(64, 156, 255, 0.6);
  }
  
  .angpao {
    width: 70px;
    height: 90px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  }
  
  .angpao::before {
    font-size: 2.5rem;
  }
  
  .angpao::after {
    font-size: 1.8rem;
  }
  
  .angpao.selectable {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.5);
  }
  
  .angpao:active {
    transform: scale(1.05);
  }
  
  .main-content {
    padding: 10px 5px;
    min-height: calc(100vh - 80px);
  }
  
  .action-buttons {
    max-width: 95vw;
    gap: 10px;
  }
  
  .spin-btn {
    font-size: 1.3rem;
    padding: 16px 30px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff0066, #ff6600);
    box-shadow: 0 8px 25px rgba(255, 0, 100, 0.4);
  }
    /* Simplified for mobile performance */
    animation: none;
  }
  
  .spin-btn::before {
    display: none;
  }
  
  .winners-btn {
    padding: 14px 25px;
    font-size: 1rem;
  }
  
  /* Modal Mobile */
  .modal-content {
    padding: 15px 12px;
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: none;
    overflow-y: auto;
  }
  
  .selection-instruction {
    padding: 30px 40px;
    border-radius: 30px;
    max-width: 90vw;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  }
  
  /* Winners list mobile optimization */
  .winner-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  
  .winner-item::before {
    font-size: 1.8rem;
    animation: none;
  }
  
  .winner-item:hover {
    transform: none;
  }
}
  
  .welcome-modal {
    padding: 30px 15px 20px !important;
    max-height: 82vh;
    overflow-y: auto;
  }
  
  .welcome-icon {
    font-size: 3rem;
    margin-bottom: 8px;
  }
  
  .welcome-title {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .welcome-text {
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.5;
    padding: 12px;
  }
  
  .syarat-btn {
    padding: 10px;
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  .syarat-list {
    font-size: 0.8rem;
    margin-bottom: 15px;
    padding: 12px 15px;
  }
  
  .syarat-list li {
    padding: 6px 0;
    font-size: 0.78rem;
  }
  
  .ok-btn {
    padding: 12px 35px;
    font-size: 0.95rem;
    min-width: 110px;
    margin-top: 10px;
  }
  
  /* Code Modal Mobile */
  .code-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .input-label {
    font-size: 0.85rem;
  }
  
  .code-input {
    padding: 14px;
    font-size: 1rem;
    border-radius: 10px;
  }
  
  .code-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .spin-confirm-btn,
  .cancel-btn {
    padding: 14px 25px;
    width: 100%;
    font-size: 1rem;
  }
  
  /* Result Modal Mobile */
  .result-icon {
    font-size: 4rem;
  }
  
  .result-modal {
    /* Simplified background for mobile */
    background: #fff;
    border: 3px solid #ffd700;
  }
  
  .result-modal::before {
    display: none;
  }
  
  .result-modal h3 {
    font-size: 2rem;
  }
  
  .result-prize {
    font-size: 2rem;
  }
  
  .result-info {
    font-size: 0.9rem;
  }
  
  /* Selection Instruction Mobile */
  .selection-instruction {
    padding: 30px 40px;
    border-radius: 20px;
    max-width: 90vw;
  }
  
  .selection-instruction h2 {
    font-size: 2rem;
  }
  
  .selection-instruction p {
    font-size: 1.1rem;
  }
  
  /* Winners Modal Mobile */
  .winners-title {
    font-size: 1.3rem;
  }
  
  .winner-item {
    font-size: 0.85rem;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  
  .winner-details {
    width: 100%;
  }
}

/* Small Mobile (iPhone SE, etc) */
@media (max-width: 375px) {
  .main-logo {
    max-width: 150px;
  }
  
  .pond-container {
    width: 300px;
    height: 240px;
  }
  
  .angpao {
    width: 48px;
    height: 60px;
  }
  
  .angpao::before {
    font-size: 1.3rem;
  }
  
  .action-buttons {
    max-width: 300px;
  }
  
  .spin-btn {
    font-size: 1rem;
    padding: 12px 25px;
  }
  
  .welcome-title {
    font-size: 0.95rem;
  }
  
  .modal-content {
    padding: 15px 12px;
  }
}

/* Admin Styles */
.admin-link {
  color: var(--text);
  opacity: 0.8;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.admin-link:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.4);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  position: relative;
  z-index: 1;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 48px 48px;
  position: relative;
  z-index: 1;
}

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

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: var(--muted);
  font-size: 14px;
}

.form-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  align-items: center;
}

input, select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.prize-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.prize-row {
  display: grid;
  grid-template-columns: 40px 1fr 80px 90px 90px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
}

.prize-color {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.status-active {
  background: rgba(125, 255, 122, 0.12);
  color: #9eff9b;
}

.status-inactive {
  background: rgba(255, 210, 102, 0.12);
  color: #ffd266;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 1fr 120px 140px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.primary-btn, .secondary-btn {
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #ff4d79, #ff9a8b);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 77, 121, 0.45);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-btn:hover:not(:disabled), .secondary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 20px;
  }
  .layout {
    padding: 0 20px 32px;
  }
}

/* ========================================
   EXTRA SMALL DEVICES (< 380px)
   ======================================== */
@media (max-width: 380px) {
  .logo-header {
    padding: 14px 16px;
    border-radius: 0 0 35px 35px;
  }
  
  .main-logo {
    max-width: 220px !important;
  }
  
  .brand-title {
    font-size: 1.85rem !important;
    letter-spacing: 3.5px !important;
  }
  
  .pond-container {
    width: 94vw !important;
    height: 400px !important;
    margin: 22px auto !important;
    background: 
      radial-gradient(circle at 30% 40%, rgba(0, 200, 255, 0.9), rgba(0, 100, 255, 0.95)),
      linear-gradient(180deg, #5ac8fa 0%, #007aff 40%, #004080 70%, #002147 100%) !important;
    border-radius: 18px !important;
    box-shadow: 
      0 20px 70px rgba(0, 200, 255, 0.75),
      inset 0 0 70px rgba(255, 255, 255, 0.35),
      0 0 0 7px rgba(255, 215, 0, 0.6),
      0 0 0 14px rgba(255, 0, 255, 0.35),
      0 0 90px rgba(255, 215, 0, 0.55) !important;
    filter: brightness(1.15) contrast(1.2) !important;
  }
  
  .angpao {
    width: 140px !important;
    height: 82px !important;
    animation: swimLegend 5s ease-in-out infinite !important;
    filter: 
      drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5))
      contrast(1.3) 
      brightness(1.15)
      saturate(1.1) !important;
  }
  
  .angpao::before,
  .angpao::after {
    width: 104px !important;
    height: 58px !important;
    left: 18px !important;
    top: 12px !important;
    filter: contrast(1.25) brightness(1.12) saturate(1.15) !important;
    image-rendering: -webkit-optimize-contrast !important;
  }
  
  .angpao .koi-eye {
    width: 17px !important;
    height: 17px !important;
    left: 92px !important;
    top: 26px !important;
    filter: contrast(1.4) brightness(1.2) !important;
    box-shadow: 
      0 0 0 2.5px rgba(255, 140, 0, 1),
      0 0 0 3.5px rgba(255, 200, 100, 0.8),
      0 3px 8px rgba(0, 0, 0, 0.6) !important;
  }
  
  .angpao .koi-fin-top {
    width: 29px !important;
    height: 18px !important;
    left: 52px !important;
    top: 3px !important;
    filter: contrast(1.3) brightness(1.15) saturate(1.2) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  }
  
  .angpao .koi-fin-side {
    width: 24px !important;
    height: 29px !important;
    left: 45px !important;
    top: 46px !important;
    filter: contrast(1.3) brightness(1.15) saturate(1.2) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  }
  
  .angpao .koi-tail {
    width: 40px !important;
    height: 40px !important;
    left: -7px !important;
    top: 21px !important;
    filter: contrast(1.32) brightness(1.18) saturate(1.25) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
  }
  
  .angpao .koi-mouth {
    width: 11px !important;
    height: 11px !important;
    left: 110px !important;
    top: 33px !important;
    filter: brightness(1.15) contrast(1.15) !important;
  }
  
  .angpao .angpao-item {
    width: 20px !important;
    height: 26px !important;
    left: 108px !important;
    top: 37px !important;
    filter: contrast(1.25) brightness(1.15) saturate(1.2) !important;
    box-shadow: 
      0 0 0 2px rgba(255, 215, 0, 1),
      0 0 12px rgba(255, 0, 0, 0.35),
      0 3px 10px rgba(0, 0, 0, 0.4) !important;
  }
  
  .angpao .angpao-item::before {
    font-size: 10px !important;
    font-weight: 900 !important;
  }
  
  .action-buttons {
    max-width: 94vw;
    gap: 16px;
  }
  
  .spin-btn {
    padding: 20px 42px !important;
    font-size: 1.7rem !important;
    letter-spacing: 3.5px !important;
    border-radius: 60px !important;
  }
  
  .winners-btn {
    padding: 14px 32px !important;
    font-size: 1rem !important;
  }
  
  .modal-content {
    max-width: 92vw;
    padding: 32px 24px !important;
  }
  
  .welcome-modal {
    padding: 38px 24px 34px !important;
  }
  
  .welcome-title {
    font-size: 1.35rem !important;
    line-height: 1.3;
  }
  
  .welcome-text {
    font-size: 0.98rem !important;
    padding: 12px;
  }
  
  .syarat-btn {
    font-size: 0.92rem;
    padding: 12px;
  }
  
  .syarat-list {
    font-size: 0.86rem !important;
    padding: 12px 18px;
  }
  
  .code-title {
    font-size: 1.45rem !important;
  }
  
  .code-input {
    font-size: 1rem;
    padding: 13px 16px;
  }
  
  .ok-btn,
  .spin-confirm-btn,
  .cancel-btn {
    padding: 14px 30px;
    font-size: 1.05rem;
  }
}

/* ========================================
   LANDSCAPE MODE (Small Devices)
   ======================================== */
@media (max-height: 600px) and (orientation: landscape) {
  .logo-header {
    padding: 10px 18px !important;
    border-radius: 0 0 22px 22px !important;
  }
  
  .main-logo {
    max-width: 160px !important;
  }
  
  .brand-title {
    font-size: 1.4rem !important;
    margin: 6px 0;
  }
  
  .main-content {
    padding: 10px !important;
  }
  
  .pond-container {
    width: 58vw !important;
    max-width: 380px !important;
    height: 270px !important;
    margin: 12px auto !important;
  }
  
  .angpao {
    width: 110px !important;
    height: 65px !important;
    animation: swimLegend 5s ease-in-out infinite !important;
  }
  
  .angpao::before,
  .angpao::after {
    width: 71px !important;
    height: 40px !important;
    left: 20px !important;
    top: 12px !important;
  }
  
  .angpao .koi-eye {
    width: 11px !important;
    height: 11px !important;
    left: 69px !important;
    top: 20px !important;
  }
  
  .angpao .koi-fin-top {
    width: 22px !important;
    height: 13px !important;
    left: 42px !important;
    top: 3px !important;
  }
  
  .angpao .koi-fin-side {
    width: 18px !important;
    height: 22px !important;
    left: 36px !important;
    top: 36px !important;
  }
  
  .angpao .koi-tail {
    width: 29px !important;
    height: 29px !important;
    left: -5px !important;
    top: 18px !important;
  }
  
  .angpao .koi-mouth {
    width: 8px !important;
    height: 8px !important;
    left: 86px !important;
    top: 28px !important;
  }
  
  .angpao .angpao-item {
    width: 16px !important;
    height: 20px !important;
    left: 84px !important;
    top: 31px !important;
  }
  
  .angpao .angpao-item::before {
    font-size: 9px !important;
  }
  
  .action-buttons {
    flex-direction: row !important;
    gap: 15px !important;
    max-width: 75vw;
  }
  
  .spin-btn,
  .winners-btn {
    padding: 14px 32px !important;
    font-size: 1.2rem !important;
  }
  
  .modal-content {
    max-width: 88vw;
    max-height: 92vh !important;
    padding: 28px 24px !important;
  }
  
  .welcome-modal {
    padding: 32px 24px 28px !important;
  }
  
  .welcome-title {
    font-size: 1.4rem !important;
  }
  
  .angpao-fishing-rod {
    top: -60px !important;
    height: 60px !important;
  }
  
  .fishing-rod {
    top: -22px !important;
    height: 22px !important;
  }
  
  .fishing-rod.fishing .rod-line {
    height: 130px !important;
  }
  
  .fishing-rod.fishing .rod-hook {
    top: 152px !important;
  }
}

/* ========================================
   TOUCH OPTIMIZATION
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  .spin-btn,
  .winners-btn,
  .ok-btn,
  .cancel-btn,
  .spin-confirm-btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .angpao {
    cursor: pointer;
  }
  
  * {
    touch-action: manipulation;
  }
}
