:root {
  --my-primary: #f2eded00;
  --my-secondary: #f2eded00;
}
* {
  box-sizing: border-box;
}

/* =========================================================
   Logo Size - Kontrol ukuran logo (mudah diubah)
   ========================================================= */
.site-header .logo > img,
.site-header .logo > picture,
.site-header .logo > picture img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  /* UKURAN LOGO - Edit nilai di bawah ini untuk mengubah ukuran */
  max-height: 80px !important;        /* Tinggi maksimal logo */
  max-width: 200px !important;        /* Lebar maksimal logo */
  height: auto !important;
  width: auto !important;

  object-fit: contain !important;
  margin: 0 !important;
}

/* Ukuran logo di desktop (lebih besar) */
@media (min-width: 1024px) {
  .site-header .logo > img,
  .site-header .logo > picture,
  .site-header .logo > picture img {
    max-height: 100px !important;
    max-width: 250px !important;
  }
}

/* ===== FIX MOBILE: STOP GESER KANAN (HORIZONTAL OVERFLOW) ===== */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Optional aman: media max-width biar gak ada elemen kebesaran */
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* Header wrapper biar gak "melebar" / kebawa padding dari parent */
.site-header {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important; /* Biarkan dropdown keluar */
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.home-progressive-jackpot {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===== CSS ASLI KAMU (TIDAK DIUBAH) ===== */
.site-description ul {
  list-style: none;
}
.site-description ul li {
  text-align: left;
}

/* =========================================================
   ? FLOATING BUTTON (FAB) - FINAL FIX
   - Nempel di header (tidak ikut scroll)
   - Dropdown TURUN ke bawah
   - Tombol KLIK MENU tetap tampil saat dropdown terbuka
   - Reset total style lama (yang bikin "tiang" dan berantakan)
   ========================================================= */

/* Pastikan header jadi anchor */
.site-header {
  position: relative !important;
  overflow: visible !important; /* Biarkan dropdown keluar dari header */
}

/* Wrapper utama */
.fab-wrapper {
  scale: 1.3;
  position: absolute !important;

  top: 22% !important;
  transform: translateY(-50%) !important;

  left: 120px !important;

  right: auto !important;
  bottom: auto !important;

  z-index: 2147483647 !important;
  pointer-events: auto !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Backdrop overlay saat dropdown terbuka - efek fokus */
.fab-wrapper.checked::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 2147483646 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  transition: opacity 0.3s ease !important;
}

/* Checkbox disembunyikan */
/* Jangan display:none karena kadang label tidak bisa toggle checkbox */
.fab-checkbox {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}

/* Backup: kalau class checked ada, tetap buka dropdown */
.fab-wrapper.checked .fab-wheel {
  transform: scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Tombol bulat utama */
.fab {
  position: relative !important;
  width: 5rem !important;
  height: 5rem !important;
  border-radius: 50% !important;

  background: var(--my-primary) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;

  box-shadow: 0px 5px 20px var(--my-primary) !important;
  transition: all 0.25s ease !important;

  border: 1px solid var(--my-secondary) !important;
  cursor: pointer !important;
  overflow: hidden !important;

  z-index: 2147483647 !important;
  display: block !important;
}

/* Icon tombol via JS API (.fab::before) */
.fab:before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50% !important;

  background-size: 80% !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;

  z-index: 2 !important;
  display: block !important;
}

/* Saat checked, icon sedikit mengecil */
.fab-checkbox:checked ~ .fab:before {
  width: 90% !important;
  height: 90% !important;
  left: 5% !important;
  top: 5% !important;
  background-color: rgba(255, 255, 255, 0) !important;
  background-size: contain !important;
}

/* Label text (Klik Menu / Tutup Menu) */
.fab-label-text {
  display: block !important;
  text-align: center !important;

  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-top: 2px !important;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
  white-space: nowrap !important;
  pointer-events: none !important;

  position: relative !important;
  z-index: 2147483647 !important;
}

/* =========================
   ? DROPDOWN TURUN KE BAWAH
   ========================= */
.fab-wheel {
  position: absolute !important;
  top: calc(100% + 5px) !important;      /* Jarak lebih dekat dari tombol */
  left: 0 !important;                     /* Sejajar dengan kiri tombol */
  right: auto !important;
  transform: scale(0) !important;
  transform-origin: top left !important;

  width: 200px !important;
  max-width: 75vw !important;
  max-height: calc(100vh - 150px) !important; /* Batasi tinggi agar tidak keluar layar */
  overflow-y: auto !important; /* Scroll jika terlalu panjang */
  overflow-x: hidden !important;
  
  /* Pastikan tidak keluar dari viewport */
  bottom: auto !important;

  /* Padding dan border-radius sudah diatur di atas */

  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important; /* Gap kecil agar menu items rapat dan rapi */
  align-items: stretch !important;

  background: rgba(30, 30, 40, 0.95) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 18px !important;
  padding: 10px !important;

  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;

  z-index: 2147483647 !important; /* Lebih tinggi dari wrapper */

  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease !important;
}

/* PAKSA OPEN pakai class checked (lebih kuat dari :checked) */
.fab-wrapper.checked .fab-wheel {
  transform: scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Buka dropdown */
.fab-checkbox:checked ~ .fab-wheel {
  transform: scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* =========================
   ? ITEM DROPDOWN RAPI
   ========================= */
.fab-wheel .fab-action {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;

  text-decoration: none !important;
  display: block !important;
}

/* Pastikan menu items terlihat saat dropdown terbuka */
.fab-checkbox:checked ~ .fab-wheel .fab-action {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Pastikan semua child elements terlihat */
.fab-checkbox:checked ~ .fab-wheel * {
  visibility: visible !important;
}

.fab-checkbox:checked ~ .fab-wheel .fab-item-container,
.fab-checkbox:checked ~ .fab-wheel .fab-image-container,
.fab-checkbox:checked ~ .fab-wheel .fab-item-image,
.fab-checkbox:checked ~ .fab-wheel .fab-item-name {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

.fab-checkbox:checked ~ .fab-wheel .fab-item-name {
  display: block !important;
}

.fab-wheel .fab-item-container {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;

  padding: 8px 10px !important;
  border-radius: 12px !important;

  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  
  transition: all 0.2s ease !important;

  height: 48px !important;
  min-height: 48px !important;
  width: 100% !important;

  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;

  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
}

.fab-wheel .fab-image-container {
  width: 38px !important;
  height: 38px !important;

  border-radius: 50% !important;
  overflow: hidden !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(255, 255, 255, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;

  flex: 0 0 auto !important;
  opacity: 1 !important;
  visibility: visible !important;

  transition: transform 0.18s ease !important;
}

.fab-wheel .fab-item-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.fab-wheel .fab-item-name {
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;

  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55) !important;

  letter-spacing: 0.4px !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  flex: 1 1 auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;

  margin: 0 !important;
  padding: 0 !important;
}

.fab-wheel .fab-action:hover .fab-item-container {
  transform: scale(1.02) !important;
  background-color: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
.fab-wheel .fab-action:hover .fab-image-container {
  transform: scale(1.08) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Desktop tweaks */
@media (min-width: 1024px) {
  .fab-wrapper {
    scale: 1.5 !important;
    left: 140px !important;
    top: 80% !important;
  }
  .fab-wheel {
    width: 220px !important;
    max-width: 320px !important;
    max-height: calc(100vh - 200px) !important;
  }
}

/* Mobile tweaks - posisi di samping logo */
@media (max-width: 767px) {
  .fab-wrapper {
    top: 70% !important;              /* Posisi vertikal di tengah header */
    left: 25px !important;            /* Posisi horizontal di kiri (samping logo) */
    transform: translateY(-50%) !important;
    scale: 1.2 !important;            /* Ukuran sedikit lebih kecil di mobile */
  }
  
  .fab-wheel {
    max-height: calc(100vh - 100px) !important;
    max-width: 90vw !important;
    width: auto !important;
    left: 0 !important;               /* Sejajar dengan kiri tombol */
    right: auto !important;
    transform-origin: top left !important;
  }
}

/* =========================================================
   ? SISANYA: STYLE ASLI KAMU (TIDAK DIUBAH)
   ========================================================= */

#customGif {
  padding-top: 20px;
  z-index: 205;
  cursor: pointer;
  bottom: 65px;
  left: 14px;
  position: fixed;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
#customGif a {
  padding-bottom: 5px;
}
#customGif.close_custom_gif {
  display: none;
}
#custom_popup::before {
  content: " ";
  width: 100px;
  height: 100px;
  background: red;
}
#alternate {
  display: none;
}
@media (max-width: 767px) {
  #noty_layout__bottomLeft {
    bottom: 50px;
  }
  #customGif {
    right: 14px;
    left: auto;
  }
  #alternate {
    display: block;
  }
}

@keyframes zoomInOut {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.onlinePlayer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  margin: 0 450px;
  scale: 2;
}
.onlinePlayer .title {
  color: hsla(0, 0%, 100%, 0.644);
}
.onlinePlayer .title::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background-color: rgb(124, 252, 0);
  border: 1.5px solid grey;
  border-radius: 50%;
  position: absolute;
  left: -5%;
  top: 10%;
}
.onlinePlayer .nowOnline {
  color: hwb(122 0% 0%);
  animation: zoomInOut 1s infinite;
}
@media only screen and (max-width: 767px) {
  .onlinePlayer.mobile {
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    font-size: 20px;
    scale: 1;
    padding: 10px 0;
    margin: 0;
  }
  .onlinePlayer .title::before {
    position: relative;
    display: inline-block;
    margin-right: 5px;
    top: 0;
    left: 0;
  }
}

.scroll-container {
  height: 200px;
  width: 70%;
  min-width: 330px;
  margin: 20px auto 35px auto;
  overflow: hidden;
  position: relative;
  font-family: "Arial", sans-serif;
  background: linear-gradient(to bottom, #ff1300 0%, #4a0a0a 100%);
  border-style: none ridge ridge ridge;
  border-color: #4a0a0a;
  border-width: 5px;
  box-sizing: border-box;
  box-shadow: 0 0 8px 2px #ff1300;
  animation: boxShadowAnimation 2s infinite;
}

.scroll-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #4a0a0a;
  color: #fff;
  text-align: center;
  padding: 3px;
  box-sizing: border-box;
  font-weight: bold;
  text-shadow: 2px 2px 4px goldenrod;
  z-index: 1;
}

.scroll-text {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  top: 30px;
  animation: scroll 20s linear infinite;
  overflow: hidden;
  box-sizing: border-box;
  background: #1b1b1b;
}

.scroll-text p {
  margin: 3px;
  padding: 3px;
  background: linear-gradient(to right, #ff1300 0%, #4a0a0a 100%);
  border: 2px solid goldenrod;
  border-radius: 5px;
  text-shadow: 2px 2px 4px black;
  color: white;
  display: flex;
  justify-content: space-between;
}

.scroll-text span {
  display: inline-block;
}

.scroll-text span.circle {
  position: relative;
  display: inline-block;
  padding-left: 25px;
}

.scroll-text span.circle::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, #00ff00, #66ff66, #009900, #004d00);
  border: 3px solid #b5b5b5;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes boxShadowAnimation {
  0% { box-shadow: 0 0 8px 2px rgba(255, 19, 0, 0.8); }
  50% { box-shadow: 0 0 20px 8px rgba(255, 19, 0, 0.6); }
  100% { box-shadow: 0 0 8px 2px rgba(74, 10, 10, 0.8); }
}

@keyframes scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-75%); }
}


/* PAKSA OPEN pakai class checked (lebih kuat dari :checked) */
.fab-wrapper.checked .fab-wheel {
  transform: scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}