/* === GLOBAL === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin: 0;
  background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

h1 {
  margin: 20px 0;
  color: white;
  font-size: 28px;
}

/* === ROULETTE WHEEL CONTAINER === */
#wheel-container {
  position: relative;
  width: 90vw;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #dcdcdc 100%);
}

#wheel-rotate {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 6s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: rotate(0deg);
}

canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
}

/* === SPIN BUTTON === */
#spin-button {
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 30% 30%, #ff4d4d, #cc0000);
  border: none;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#spin-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 77, 77, 0.6);
}

/* === POINTER === */
#pointer {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: #c70000;
  z-index: 15;
  pointer-events: none;
  line-height: 1;
}

/* === NEON EFFECT === */
@keyframes neonGlow {
  0%, 100% {
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
  }
  50% {
    box-shadow: 0 0 20px #ff6666, 0 0 40px #ff6666, 0 0 60px #ff6666;
  }
}

#wheel-rotate.neon {
  animation: neonGlow 1.5s ease-in-out infinite;
}

/* === TOMBOL "CHECK HISTORY TIKET" === */
.btn-history {
  background-color: #2f5f66;
  color: white;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-history:hover {
  background-color: #1c3d42;
}

/* Desktop: tombol history di kiri atas */
.btn-desktop {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

/* Mobile: tombol history di bawah logo */
.btn-mobile {
  display: none;
  margin-top: 10px;
}

/* === RESPONSIVE (MOBILE) === */
@media (max-width: 768px) {
  h1 {
    font-size: 20px;
  }

  #spin-button {
    width: 60px;
    height: 60px;
    font-size: 14px;
  }

  #pointer {
    font-size: 24px;
    top: 0;
  }

  .btn-desktop {
    display: none;
  }

  .btn-mobile {
    display: inline-block;
    font-size: 16px;
    padding: 12px 20px;
  }

  .swal2-popup.swal2-mobile-fix {
    max-width: 90vw !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
}
