/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* Dialog Box */
.dialog-box {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin: 20px;
  z-index: 1;
  text-align: center;
}

/* Avatar */
.dingbutouxiang {
  margin-bottom: 20px;
}
.dingbutouxiang img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #ffe15e;
  object-fit: cover;
}

/* Banner */
.roulette-banner1 {
  font-size: 18px;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Banner Image */
/* Banner Image */
.img-banner1 {
  position: relative; /* biar top bisa jalan */
  display: block; /* Biar nggak inline */
  top: -20px; /* dari 60px jadi 20px (naik ke atas) */
  margin: 0 auto 20px; /* Tengah horizontal dan jarak bawah */
  max-width: 100%; /* Responsive, nggak melebihi container */
  height: auto; /* Sesuaikan tinggi otomatis */
  border-radius: 12px; /* Sudut membulat (opsional) */
  animation: bounce 2s infinite; /* Animasi opsional */
}

/* Animasi sederhana bounce */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .img-banner1 {
    top: -23px; /* Naik sedikit di layar kecil */
    max-width: 90%; /* Lebih kecil agar muat di layar kecil */
    margin-bottom: 15px; /* Sedikit jarak bawah */
  }
}

/* Roulette Circle Container */
.circle-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 20px;
}

/* Background rings */
.circle-bg1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 265px;
  height: 265px;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle at 40% 30%,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02) 40%,
    transparent 60%
  );
  border: 2.5px solid #e9c844;
}

.circle-bg3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 305px;
  height: 305px;
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(
    circle at 60% 60%,
    rgba(255, 255, 255, 0.05),
    transparent 50%
  );
  box-shadow: #9090a3 0 0 15px 5px;
  border: 2.5px solid #e9c844;
}

.circle-bg4 {
  position: absolute;
  top: 138px;
  left: 141px;
  transform: translate(-50%, -50%);
  width: 408px;
  height: 408px;
  background: url("https://blogger.googleusercontent.com/img/a/AVvXsEhDtnMKXwenQ1noNOTUsO3oSsWM8nuPVPEa4zJpQiIGhQ2hkYrUq61b-wPhaUY86c1e8Lj_ep33r0chryLqXP5A-4SmUq-F8ybVXH9hzCzkBHti_nK9khxvx6QtbmliUsRub01dQfEDNcVsEpSEKU7gsykatedDceXZ_Y725t_3Q8kLqxyD9e8ffQORt3-I")
    no-repeat center center;
  background-size: contain;
  border-radius: 50%;
  z-index: 6;
  /* Animasi putar */
  animation: rotateBg 20s linear infinite; /* 20 detik sekali putaran penuh */
}

/* Keyframes untuk putaran */
@keyframes rotateBg {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Roulette Circle */
.roulette-circle-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: visible;
  z-index: 5;
}

#roulette-circle {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 1s ease-out;
}

.circle {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  height: 460px;
  object-fit: cover;
  display: block;
}

/* CSS tambahan untuk animasi spin */
.spin-active {
  transition: transform 5s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Labels */
.lb-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lb {
  position: absolute;
  top: 10px;
  left: 50%;
  transform-origin: 0px 110px;
  text-align: center;
  width: 60px;
}

.space {
  height: 20px;
}

.value {
  position: absolute; /* Posisi mengikuti parent circle */
  top: 50%; /* Tengah vertikal circle */
  left: 50%; /* Tengah horizontal circle */
  transform: translate(-50%, -50%); /* Pusatkan teks di titik tengah */
  font-size: 12px; /* Bisa disesuaikan */
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none; /* Agar klik tidak terganggu */
  white-space: nowrap; /* Biar teks tidak pecah */
  width: max-content; /* Sesuaikan ukuran teks */
  text-align: center;
}

/* Desktop */
.roulette-white {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; /* sama seperti roulette-light */
  height: 300px; /* sama seperti roulette-light */
  pointer-events: none;
  z-index: 15;
  animation: blink 1s infinite alternate; /* sama seperti roulette-light */
}

/* Roulette Lights */
.roulette-light {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 15;
  animation: blink 2s infinite alternate, spin 10s linear infinite; /* lebih slow */
}

.roulette-light-blue {
  filter: hue-rotate(180deg);
}
.roulette-light-red {
  filter: hue-rotate(0deg);
}

@keyframes blink {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.roulette-pink {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 285px; /* sama dengan circle-bg3 */
  height: 285px;
  transform: translate(-50%, -50%) rotate(10deg); /* tetap miring */
  z-index: 16; /* pastikan di atas circle-bg3 & roulette-out */
  animation: glowPulse 1.8s ease-in-out infinite;
  opacity: 0.85;
  pointer-events: none;
}

/* Animasi terang-redup tanpa zoom */
@keyframes glowPulse {
  0% {
    opacity: 0.6;
    filter: brightness(0.8);
  }
  50% {
    opacity: 1;
    filter: brightness(1.2);
  }
  100% {
    opacity: 0.6;
    filter: brightness(0.8);
  }
}

/* pastiin layer lainnya di bawahnya */
.circle-bg3 {
  position: absolute;
  z-index: 5;
}

.roulette-out {
  position: absolute;
  z-index: 10;
}

/* Arrow and Pointer */
.roulette-arrow {
  position: absolute;
  top: 132px;
  right: -25px;
  width: 38px;
  height: 15px;
  z-index: 10;
  transform-origin: center;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.roulette-point {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: 10;
}

.roulette-lucky {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  z-index: 15;
}

/* Animasi Lucky Spin ikut berputar */
.roulette-lucky.spin-active {
  animation: spinLucky 5s ease-out forwards;
}

/* Keyframes animasi putaran */
@keyframes spinLucky {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(1440deg);
  }
}

/* ===== Start Button Spin Wheel ===== */
.button-spin {
  position: relative;
  background: linear-gradient(45deg, #ff8800, #ff2d55);
  color: #fff;
  border: none;
  top: 70px;
  width: 120px;
  height: 40px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.6);
}

/* ✨ Efek neon luar */
.button-spin::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50px;
  /* Gradient baru: gold ke jingga */
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  background-size: 300% 300%;
  z-index: -1;
  filter: blur(8px);
  animation: glowmove 3s linear infinite;
  opacity: 0.8;
}

/* 💥 Efek hover lebih intens */
.button-spin:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 140, 0, 0.4);
}

/* ✊ Efek klik */
.button-spin:active {
  transform: translateY(0) scale(1);
}

/* ✨ Animasi glow warna jalan */
@keyframes glowmove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 🌀 Disabled state saat spin aktif */
.button-spin.dinjixuanzhuna {
  pointer-events: none;
  opacity: 0.6;
  filter: grayscale(0.5);
}
/* ===== End Button Spin Wheel ===== */

/* ===== Modal Casino Style ===== */
.casino-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  width: 600px;
  max-width: 90vw;
  max-height: 90vh;

  /* 🔥 Efek blur transparan (glassmorphism) */
  background: rgba(60, 0, 0, 0.5); /* transparan merah gelap */
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  /* Style bingkai & bayangan */
  border-radius: 25px;
  border: 2px solid rgba(255, 204, 0, 0.5);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), 0 0 100px rgba(255, 0, 0, 0.4);

  color: #fff;
  overflow-y: auto;
  animation: fadeInModal 0.8s ease-in-out;
  padding: 35px 40px;
  text-align: center;
}

/* Animasi masuk */
@keyframes fadeInModal {
  from {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Efek cahaya berputar */
.casino-modal::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -120%;
  width: 350%;
  height: 350%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.12),
    transparent 100%
  );
  animation: shine 8s linear infinite;
  z-index: 0;
}

@keyframes shine {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Logo di bagian atas */
.casino-logo {
  width: 320px;
  max-width: 200px;
  animation: bounceIn 1.5s ease;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Judul besar */
.casino-title {
  font-weight: 800;
  color: #ffd700;
  font-size: 30px;
  text-shadow: 0 0 12px #ffcc00, 0 0 25px #ff0000;
  margin-bottom: 12px;
  z-index: 1;
  position: relative;
}

.casino-title span {
  color: #ffffff;
  text-shadow: 0 0 8px #ffcc00;
}

/* Subjudul */
.casino-subtitle {
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  font-size: 22px;
  margin-bottom: 25px;
  letter-spacing: 1px;
  z-index: 1;
  position: relative;
}

.casino-subtitle span {
  color: #ffd700;
}

/* Isi teks */
.casino-body {
  line-height: 1.7;
  font-size: 16px;
  text-align: left;
  z-index: 1;
  position: relative;
}

.casino-rules strong {
  color: #ffdd88;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.casino-list {
  margin-top: 10px;
  padding-left: 15px;
  border-left: 3px solid rgba(255, 215, 0, 0.6);
}

/* Tombol utama */
.casino-btn {
  background: linear-gradient(90deg, #ff0000, #ff6600);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 40px;
  padding: 14px 60px;
  margin-top: 30px;
  box-shadow: 0 0 18px rgba(255, 120, 0, 0.7);
  transition: all 0.3s ease;
  animation: pulseGlow 1.5s infinite;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.casino-btn:hover {
  background: linear-gradient(90deg, #ff6600, #ff0000);
  box-shadow: 0 0 30px rgba(255, 200, 0, 1);
  transform: scale(1.05);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(255, 150, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 200, 0, 0.9);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 150, 0, 0.5);
  }
}

/* Scroll halus dalam modal */
.casino-modal::-webkit-scrollbar {
  width: 8px;
}
.casino-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.6);
  border-radius: 10px;
}
.casino-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.9);
}
/* Tablet (max 768px) */
@media (max-width: 768px) {
  .casino-modal {
    width: 90%;
    height: auto;
    max-height: 90vh;
    padding: 20px;
  }

  .casino-logo {
    width: 150px;
  }

  .casino-title {
    font-size: 22px;
  }

  .casino-subtitle {
    font-size: 18px;
  }

  .casino-btn {
    font-size: 18px;
    padding: 10px 40px;
  }
}

/* HP (max 480px) */
@media (max-width: 480px) {
  .casino-modal {
    width: 95%;
    height: 600px;
    max-height: 90vh;
    padding: 15px;
    border-radius: 20px;
  }

  .casino-logo {
    width: 420px;
  }

  .casino-title {
    font-size: 20px;
  }

  .casino-subtitle {
    font-size: 16px;
  }

  .casino-body {
    font-size: 14px;
    line-height: 1.5;
  }

  .casino-btn {
    font-size: 16px;
    padding: 10px 35px;
  }
}
/* ===== End Responsive ===== */

/* ===== START Popup Hadiah ===== */
.popup-hadiah {
  display: none; /* awalnya tersembunyi */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
  animation: fadeBg 0.4s ease forwards;
}

@keyframes fadeBg {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.popup-hadiah.show {
  display: flex;
}

.popup-hadiah .daftar {
  width: 200px; /* ubah ukuran sesuai keinginan, misal 120px atau 180px */
  height: auto;
  display: block;
  margin: 10px auto;
}

/* ==== CARD UTAMA MINIMALIS === */
.popup-card {
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  color: #fff;
}

/* animasi masuk */
@keyframes fadeInModal {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==== KONTEN === */
.popup-icon {
  margin-bottom: 15px;
}

.popup-icon img {
  width: 300px; /* Lebar mengikuti parent card */
  max-width: 400px; /* Maksimal 400px di layar besar */
  height: auto; /* Proporsional */
  padding: 5px;
  border-radius: 10px; /* Sudut halus */
  display: block;
  margin: 0 auto; /* Tengah horizontal */
}

.popup-title {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 15px;
}

.popup-card p {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 20px;
}

/* ==== TOMBOL ==== */
#closePopup {
  background: #ffcc00;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 12px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#closePopup:hover {
  background: #ffd633;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 480px) {
  .popup-card {
    width: 90%;
    padding: 20px 15px;
    border-radius: 15px;
  }

  .popup-icon img {
    width: 280px;
    height: 230px;
  }

  .popup-card h3 {
    font-size: 20px;
  }

  .popup-title {
    font-size: 16px;
  }

  .popup-hadiah .daftar {
    width: 250px;
  }

  #closePopup {
    font-size: 14px;
    padding: 10px 30px;
  }
}
/* ===== End Popup Hadiah ===== */

/* ===== START Controls Container for Left-Right Alignment ===== */

/* ===== END Ticket Form Styling ===== */
