/* Scoped Design System & Precision Wheel Styles for /spin-and-win/ */

:root {
  --sw-bg-dark: #0B1120;
  --sw-surface-dark: #172238;
  --sw-accent-gold: #D6AC93;
  --sw-accent-teal: #0D9488;
  --sw-border-dark: #344054;
  --sw-text-dark: #FFFFFF;
  --sw-muted-dark: #CBD5E1;
  --sw-bg-warm: #FAF8F5;
}

/* Precision Wheel Stage Wrapper */
.sw-stage-card {
  background: radial-gradient(circle at 50% 35%, rgba(214, 172, 147, 0.12) 0%, rgba(15, 118, 110, 0.08) 42%, #0B1120 75%);
  border: 1px solid var(--sw-border-dark);
  box-shadow: 0 24px 60px -15px rgba(11, 17, 32, 0.45);
}

.sw-wheel-wrap {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 639px) {
  .sw-wheel-wrap {
    width: min(100%, 296px);
  }
}

@media (max-width: 374px) {
  .sw-wheel-wrap {
    width: min(100%, 256px);
  }
}

/* Ambient halo behind wheel - intentionally subtle */
.sw-wheel-halo {
  position: absolute;
  inset: 8%;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(214, 172, 147, 0.24) 0%, rgba(13, 148, 136, 0.1) 50%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

/* Precision top pointer at 12 o'clock */
.sw-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: 50% 20%;
  z-index: 20;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  transition: transform 80ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.sw-pointer.is-ticking {
  transform: translateX(-50%) rotate(-10deg);
}

@media (prefers-reduced-motion: reduce) {
  .sw-pointer.is-ticking {
    transform: translateX(-50%);
  }
}

.sw-wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.sw-wheel-rotor {
  transform-origin: 250px 250px;
  will-change: transform;
}

/* Accessible focus rings on dark surface */
.sw-focus-dark:focus-visible {
  outline: 2px solid #D6AC93;
  outline-offset: 3px;
}

/* Gentle idle shimmer disabled cleanly under reduced motion */
@keyframes swFloatSubtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

.sw-hub-pulse {
  animation: swFloatSubtle 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sw-hub-pulse {
    animation: none !important;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* Claim ticket notched aesthetic */
.sw-ticket {
  background: linear-gradient(135deg, rgba(23, 34, 56, 0.96) 0%, rgba(11, 17, 32, 0.98) 100%);
  border: 1px solid rgba(214, 172, 147, 0.45);
}

/* Ensure touch targets comfortably meet 44px minimum */
.sw-touch-target {
  min-height: 44px;
}
