
/* body {
  background: radial-gradient(circle at center, #05010f 0%, #000 100%);
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
*/

/* === Bullhorn Neon === */
.bullhorn-bar {
  background: linear-gradient(90deg, #020617, #0f172a);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 0 12px rgba(79,209,197,.35), inset 0 0 20px rgba(139,92,246,.25);
  overflow: hidden;
  position: relative;
}
.bullhorn-icon, .bullhorn-arrow {
  font-size: 1.4em;
  margin: 0 10px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.2); }
}
.bullhorn-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}
.bullhorn-text span {
  display: inline-block;
  animation: marquee 15s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* === Title === */
.game-row-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0 10px;
  gap: 15px;
}
.game-row-title h2 {
  font-size: 28px;
  color: #e5e7eb;
  text-shadow: 0 0 8px rgba(79,209,197,.4);
  letter-spacing: 2px;
}
.game-row-title span {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4fd1c5, transparent);
}

/* === Grid Game Cards === */
.game-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 0 15px 25px;
}
/* === Kartu Game dengan Border Glow RGB === */

/* === Kartu Game dengan Border Glow RGB === */
.game-card {
  position: relative;
  background: rgba(15,18,32,0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(79,209,197,.25);
  transition: all 0.3s ease;
  z-index: 0;
}

/* Border RGB bergerak */
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px; /* ketebalan border */
  background: linear-gradient(
    130deg,
    #4fd1c5,
    #8b5cf6,
    #4fd1c5
  );
  background-size: 400% 400%;
  animation: borderGlow 6s linear infinite;
  z-index: -1;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Animasi RGB berjalan */
@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efek saat hover */
.game-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 28px rgba(79,209,197,.45);
}

.game-card:hover::before {
  animation-duration: 3s; /* Lebih cepat berputar saat hover */
}

.game-card img {
  width: 100%;
  display: block;
}
.game-card p {
  padding: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #e5e7eb;
  text-align: center; /* âœ… rata tengah */
  text-shadow: 0 0 4px rgba(79,209,197,.35);
  background: linear-gradient(
    90deg,
    rgba(79,209,197,0.04),
    rgba(139,92,246,0.04)
  );
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* === Popup Iframe === */
.iframe-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,8,18,0.96);
  backdrop-filter: blur(10px);
  z-index: 9999;
  flex-direction: column;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.iframe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(90deg, #020617, #0f172a);
  box-shadow: 0 0 12px rgba(139,92,246,.4);
  border-bottom: 2px solid #fff2;
}

.winrate-badge {
  background: rgba(0,0,0,.6);
  color: #4fd1c5;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(79,209,197,.6);
  animation: glow 1.8s infinite;
}
@keyframes glow {
  0%,100% { box-shadow: 0 0 10px rgba(79,209,197,.5); }
  50% { box-shadow: 0 0 22px rgba(139,92,246,.6); }
}

.close-iframe {
  background: #1f2937;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,.6);
  transition: all 0.2s;
}
.close-iframe:hover {
  background: #374151;
  box-shadow: 0 0 18px rgba(79,209,197,.4);
}

#iframe-container {
  flex: 1;
  position: relative;
}
#game-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Loading & Error Overlay === */
.overlay {
  position: absolute;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  z-index: 10;
  font-size: 18px;
  padding: 20px;
}
.loading {
  background: rgba(0,0,20,0.9);
  color: #4fd1c5;
  text-shadow: 0 0 8px rgba(79,209,197,.6);
  animation: neonPulse 1.5s infinite;
}
.error {
  background: rgba(20,0,20,.95);
  color: #f87171;
  text-shadow: 0 0 6px rgba(248,113,113,.7);
}
#iframe-reload-btn {
  margin-top: 15px;
  padding: 10px 18px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #4fd1c5, #8b5cf6);
  color: #000;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 14px rgba(79,209,197,.5);
}
#iframe-reload-btn:hover {
  box-shadow: 0 0 24px rgba(139,92,246,.6);
}
@keyframes neonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/*============================================================================================= */
/* === Floating Glow Ball === */
#floating-glow-ball {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: radial-gradient(circle, #4fd1c5, #8b5cf6);
  border-radius: 50%;
  box-shadow:
    0 0 26px rgba(79,209,197,.6),
    0 0 50px rgba(139,92,246,.5);
  animation: floatPulse 3s ease-in-out infinite;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 99999;
  touch-action: none;
  user-select: none;
}
@keyframes floatPulse {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Container running text ===== */
.boost-running-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 20px;
  position: relative;
  height: 30px;
  display: none;
  background: linear-gradient(
    90deg,
    rgba(15,18,32,.8),
    rgba(15,18,32,.5),
    rgba(15,18,32,.8)
  );
  border-radius: 8px;
  padding: 2px 10px;
  box-shadow: 0 0 10px rgba(255,255,255,0.3) inset;
}

/* ===== Teks running marquee ===== */
.boost-running-text span {
  display: inline-block;
  font-weight: bold;
  font-size: 16px;
  animation: boostMarquee 12s linear infinite;
  padding-right: 50px; /* jarak antar looping */
}

/* ===== Animasi marquee ===== */
@keyframes boostMarquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* ===== Efek Glowing per mode ===== */

.boost-running-text.winrate span {
  color: #4fd1c5;
  text-shadow:
    0 0 6px rgba(79,209,197,.7),
    0 0 12px rgba(79,209,197,.5);
}

/* Scatter */
.boost-running-text.scatter span {
  color: #facc15;
  text-shadow:
    0 0 6px rgba(250,204,21,.6),
    0 0 12px rgba(250,204,21,.4);
}

/* Jackpot */
.boost-running-text.jackpot span {
  color: #f472b6;
  text-shadow:
    0 0 6px rgba(244,114,182,.6),
    0 0 14px rgba(244,114,182,.5);
}

/* ===== Efek tambahan: gradient overlay bergerak ===== */
.boost-running-text::before {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0));
  pointer-events: none;
  animation: shine 2s linear infinite;
}

@keyframes shine {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* === Boost Popup === */
#boost-popup {
  position: fixed;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10,12,24,.95);
  border: 2px solid rgba(79,209,197,.35);
  border-radius: 14px;
  padding: 15px 20px;
  width: 220px;
  box-shadow:
    0 0 20px rgba(79,209,197,.35),
    0 0 40px rgba(139,92,246,.25);
  z-index: 9999;
  transform: translate(-50%, -100%);
}

.boost-option {
  background-color: #020617;
  width: 100%;
  height: 60px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(79,209,197,.35);
  transition: 0.3s;
  font-size: 0; 
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.boost-option:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(139,92,246,.55);
}

/* === 🔋 Winrate Progress Bar === */
/* ===== WRAPPER ===== */
#winrate-progress {
  width: 100%;
  max-width: 420px;
  height: 22px;
  margin: 10px auto 6px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.06),
    0 6px 18px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  display: none;
}

/* ===== BAR UTAMA ===== */
#winrate-bar {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    #0ea5a4,
    #22d3ee,
    #6366f1
  );
  transition: width 0.3s ease;
  overflow: hidden;
  box-shadow:
    inset 0 0 12px rgba(255,255,255,0.25),
    0 0 16px rgba(99,102,241,0.45);
}

/* ===== TEKS PERSENTASE ===== */
#winrate-bar .winrate-text {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  z-index: 3;
}

/* ===== GARIS RTP BERGERAK ===== */
#winrate-bar .rtp-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.25) 0px,
    rgba(255,255,255,0.25) 8px,
    rgba(255,255,255,0.05) 8px,
    rgba(255,255,255,0.05) 16px
  );
  opacity: 0.45;
  animation: rtpMove 1.4s linear infinite;
  z-index: 2;
}

/* ===== SHINE RTP ===== */
#winrate-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.45) 40%,
    transparent 60%
  );
  animation: rtpShine 3s ease-in-out infinite;
  z-index: 1;
}

/* ===== ANIMASI ===== */
@keyframes rtpMove {
  from { background-position: 0 0; }
  to   { background-position: 40px 0; }
}

@keyframes rtpShine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}


/* 💬 Popup konfirmasi + toggle */
#boost-confirm {
  position: fixed;
  top: 55%;               /* sedikit di bawah tengah */
  left: 50%;              
  transform: translate(-50%, -50%); 
  background: rgba(15,18,32,.95);
  border: 2px solid rgba(79,209,197,.45);
  color: #fff;
  padding: 4px 12px;      /* vertical lebih kecil untuk fit */
  border-radius: 12px;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;               
  box-shadow: 0 0 20px rgba(79,209,197,.5);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 9999;
  pointer-events: none;
  max-width: 260px;        
  box-sizing: border-box;
  text-align: center;
  line-height: 1.2;       /* teks rapat dengan popup */
}
#boost-confirm.show {
  opacity: 1;
  transform: translate(-50%, -50%); 
  pointer-events: auto;
}

/* === Boost GIF Popup === */
#boost-gif-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: none;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: transform 0.6s ease, opacity 0.5s ease;
}

/* Toggle Switch hanya untuk Winrate */
#boost-confirm .toggle-switch { display: none; }
#boost-confirm.show.winrate .toggle-switch { display: block; }

/* Toggle Switch */
.toggle-switch {
  width: 44px;              
  height: 24px;
  background: #ff3333;
  border-radius: 30px;
  position: relative;
  transition: background 0.9s ease;
  flex-shrink: 0;
}
.toggle-circle {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.6s ease;
}
.toggle-switch.active {
  background: #00ff66;
}
.toggle-switch.active .toggle-circle {
  transform: translateX(20px);
}

/* 📱 Responsive Mobile */
@media (max-width: 480px) {
  #boost-confirm {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;           /* hampir full screen tapi masih ada margin */
    padding: 4px 10px;        /* vertical minimal, horizontal cukup */
    font-size: 14px;           /* font lebih kecil */
    gap: 6px;                  /* jarak teks & toggle lebih pas */
  }

  .toggle-switch {
    background: #f87171;
    width: 36px;               /* lebih kecil untuk mobile */
    height: 20px;
  }

  .toggle-circle {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
  }

  .toggle-switch.active .toggle-circle {
    background: #4fd1c5;
    transform: translateX(16px);
  }
}

/* 📱 Responsif Mobile */
@media (max-width: 768px) {
  #floating-glow-ball {
    width: 55px;
    height: 55px;
    bottom: 60px;
    right: 20px;
  }
  #boost-popup {
    width: 180px;
    padding: 12px 15px;
    gap: 10px;
  }
  .boost-option {
    font-size: 14px;
    padding: 8px 0;
  }
  #winrate-progress {
    width: 180px;
    height: 25px;
  }
  #winrate-bar {
    line-height: 25px;
    font-size: 13px;
  }
  #boost-confirm {
    right: 20px;
    bottom: 130px;
    font-size: 13px;
  }
}