
/* 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, #00f5ff, #ff00ff);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 0 15px #00eaff, 0 0 25px #ff00ff inset;
  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: #00f0ff;
  text-shadow: 0 0 10px #00f0ff, 0 0 20px #ff00ff;
  letter-spacing: 2px;
}
.game-row-title span {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, 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(20,20,35,0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.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,
    #ff00ff,
    #00ffff,
    #ffcc00,
    #00ff99,
    #ff00ff
  );
  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 30px rgba(0, 255, 255, 0.5);
}

.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: #fff;
  text-align: center; /* âœ… rata tengah */
  text-shadow: 0 0 5px #00ffff, 0 0 10px #ff00ff;
  background: linear-gradient(90deg, rgba(0,255,255,0.05), rgba(255,0,255,0.05));
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* === Popup Iframe === */
.iframe-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,10,0.95);
  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, #00f0ff, #ff00ff);
  box-shadow: 0 0 15px #ff00ff;
  border-bottom: 2px solid #fff2;
}

.winrate-badge {
  background: #000;
  color: #00ffcc;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: bold;
  text-shadow: 0 0 8px #00ffcc;
  animation: glow 1.8s infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px #00fff2; }
  50% { box-shadow: 0 0 25px #ff00ff; }
}

.close-iframe {
  background: #ff0040;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px #ff0040;
  transition: all 0.2s;
}
.close-iframe:hover {
  background: #ff3377;
  box-shadow: 0 0 20px #ff3377;
}

#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: #00fff2;
  text-shadow: 0 0 10px #00fff2;
  animation: neonPulse 1.5s infinite;
}
.error {
  background: rgba(20, 0, 20, 0.95);
  color: #ff3355;
  text-shadow: 0 0 8px #ff3355;
}
#iframe-reload-btn {
  margin-top: 15px;
  padding: 10px 18px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #00fff2, #ff00ff);
  color: #000;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 15px #00fff2;
}
#iframe-reload-btn:hover {
  box-shadow: 0 0 25px #ff00ff;
}
@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, #00ffff, #ff00ff);
  border-radius: 50%;
  box-shadow: 0 0 30px #00ffff, 0 0 60px #ff00ff, inset 0 0 10px #fff;
  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(0,0,0,0.5), rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  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: #00ff99;
  text-shadow:
    0 0 5px #00ff99,
    0 0 10px #00ffcc,
    0 0 15px #00ffcc,
    0 0 20px #00ffcc;
}

.boost-running-text.scatter span {
  color: #ffcc00;
  text-shadow:
    0 0 5px #ffcc00,
    0 0 10px #ffdd33,
    0 0 15px #ffdd33,
    0 0 20px #ffaa00;
}

.boost-running-text.jackpot span {
  color: #ff0066;
  text-shadow:
    0 0 5px #ff0066,
    0 0 10px #ff33aa,
    0 0 15px #ff33aa,
    0 0 25px #ff66cc;
}

/* ===== 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,10,20,0.95);
  border: 2px solid #00ffff55;
  border-radius: 14px;
  padding: 15px 20px;
  width: 220px;
  box-shadow: 0 0 20px #00ffff88, 0 0 40px #ff00ff44;
  z-index: 9999;
  transform: translate(-50%, -100%);
}

.boost-option {
  background-color: #111;
  width: 100%;
  height: 60px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffff88;
  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 #ff00ff;
}

/* === 🔋 Winrate Progress Bar === */
#winrate-progress {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 28px;
  border-radius: 10px;
  background: #222;
  overflow: hidden;
  display: none;
  box-shadow: 0 0 20px rgba(0,255,255,0.4);
  border: 2px solid #00ffff55;
  z-index: 1000;
}
#winrate-bar {
  width: 0;
  height: 100%;
  line-height: 28px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, red, yellow, lime);
  transition: width 0.2s linear;
  box-shadow: inset 0 0 10px #000;
}

/* 💬 Popup konfirmasi + toggle */
#boost-confirm {
  position: fixed;
  top: 55%;               /* sedikit di bawah tengah */
  left: 50%;              
  transform: translate(-50%, -50%); 
  background: rgba(20, 20, 30, 0.95);
  border: 2px solid #00ffff66;
  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 #00ffff88;
  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 {
    width: 36px;               /* lebih kecil untuk mobile */
    height: 20px;
  }

  .toggle-circle {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
  }

  .toggle-switch.active .toggle-circle {
    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;
  }
}