/* ==============================
   BASE STYLES
   ============================== */
#swc_container {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  display: block;
  perspective: 1200px;
}

.swc-spin-btn {
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.swc-spin-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.swc-guest-prompt {
  animation: flash 2s infinite;
  padding: 6px;
  border-radius: 4px;
  display: block;
  margin-bottom: 5px;
}
@keyframes flash {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

#swc_result { font-size: 16px; margin-top: 8px; }
#swc_countdown { font-size: 16px; margin-top: 10px; }

/* ==============================
   POINTER
   ============================== */
#swc_pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: none !important;
  border-top: 20px solid #ff3b3b !important;
  z-index: 10;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
  animation: pointerPulse 2s infinite ease-in-out;
}
@keyframes pointerPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

/* ==============================
   3D WHEEL ENHANCEMENTS
   ============================== */
#swc_canvas {
  border-radius: 50%;
  box-shadow:
    0 0 0 4px #222,
    0 8px 30px rgba(0,0,0,0.6),
    inset 0 0 10px rgba(255,255,255,0.15),
    inset 0 0 25px rgba(0,0,0,0.45);
  transform: rotateX(3deg);
  background: radial-gradient(circle at 50% 45%, #262626 0%, #000 90%);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin: 0 auto;
  display: block;
}

/* Metallic rim around wheel (outer glow + depth) */
#swc_canvas::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 8px #b8b8b8 inset,          /* silver rim */
    0 0 30px rgba(0,0,0,0.6),
    inset 0 0 25px rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 2;
}

/* Subtle hover lift */
#swc_canvas:hover {
  box-shadow:
    0 0 0 4px #111,
    0 0 40px rgba(255,255,255,0.15),
    inset 0 0 20px rgba(255,255,255,0.25),
    inset 0 0 35px rgba(0,0,0,0.6);
  transform: rotateX(4deg);
}

/* Deep drop shadow under wheel (elevated look) */
/* #swc_container::after {
  content: "";
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.05);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 70%);
  filter: blur(18px);
  z-index: 0;
} */

/* ==============================
   CENTER HUB
   ============================== */
#swc_center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1a1a 0%, #000 90%);
  border: 3px solid #edebeb;
  box-shadow:
    0 5px 18px rgba(0,0,0,0.6),
    inset 0 2px 4px rgba(255,255,255,0.1),
    inset 0 -4px 6px rgba(0,0,0,0.7);
  z-index: 9;
}
#swc_center::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), rgba(0,0,0,0.7));
  box-shadow: 0 1px 1px rgba(255,255,255,0.2);
}

/* ==============================
   STATES & MOBILE
   ============================== */
#swc_canvas.spinning {
  box-shadow:
    0 0 0 4px #333,
    0 0 60px rgba(255,255,255,0.25),
    inset 0 0 35px rgba(255,255,255,0.25),
    inset 0 0 40px rgba(0,0,0,0.8);
  transition: all 0.25s ease;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  #swc_center {
    width: 32px;
    height: 32px;
  }
  #swc_canvas {
    box-shadow:
      0 0 0 3px #111,
      0 0 20px rgba(0,0,0,0.6),
      inset 0 0 10px rgba(255,255,255,0.2),
      inset 0 0 20px rgba(0,0,0,0.5);
  }
}
