/* ──────────────────────────────────────────────────────────────
   SC_Wheel — styles for the real-artwork spin wheel.
   ────────────────────────────────────────────────────────────── */
.sc-wheel {
  position: relative;
  margin: 0 auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* neon glow behind the wheel, tinted to the tier */
.sc-wheel__glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
              color-mix(in srgb, var(--wheel-tier, #8b2bff) 55%, transparent) 0%,
              transparent 68%);
  filter: blur(14px);
  opacity: 0.85;
  z-index: 0;
  animation: scWheelGlow 3.4s ease-in-out infinite;
}
@keyframes scWheelGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50%      { opacity: 0.95; transform: scale(1.03); }
}

/* circular clip that trims any artwork bleed at the very edge */
.sc-wheel__discwrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.6));
}
/* rotating disc (vector SVG, drawn from the prize data).
   It fills the square box and pivots about its exact centre — perfect centring
   with no per-wheel offset, so it never wobbles and lands on the true slice. */
.sc-wheel__disc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none; -webkit-user-drag: none;
}
.sc-wheel.is-spinning .sc-wheel__disc { filter: drop-shadow(0 0 28px color-mix(in srgb, var(--wheel-tier) 60%, transparent)); }
/* settle flash — filter only, so it never clobbers the disc's translate+rotate */
.sc-wheel.is-settle .sc-wheel__disc { animation: scSettle 0.6s var(--ease-spring); }
@keyframes scSettle {
  0%   { filter: brightness(1); }
  40%  { filter: brightness(1.25); }
  100% { filter: brightness(1); }
}

/* gold pointer at 12 o'clock pointing down into the wheel */
.sc-wheel__pointer {
  position: absolute;
  top: -3%;
  left: 50%;
  transform: translateX(-50%);
  width: 9%;
  height: 12%;
  z-index: 4;
  background: var(--grad-gold);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), var(--glow-gold);
  filter: drop-shadow(0 0 4px rgba(255,210,80,0.8));
}
.sc-wheel__pointer::after {
  content: '';
  position: absolute;
  top: 8%; left: 50%; transform: translateX(-50%);
  width: 34%; height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #ff5b5b 60%, #b81f1f);
}

/* static gold SPIN hub, covers the rotating baked centre */
.sc-wheel__hub {
  position: absolute;
  z-index: 5;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 0;
  padding: 0;
  background:
    radial-gradient(circle at 50% 32%, #fff7cf 0%, #ffd84a 30%, #f5a623 62%, #a4660f 100%);
  box-shadow:
    0 0 0 4px rgba(120,70,8,0.55),
    0 0 0 7px rgba(255,222,120,0.35),
    inset 0 3px 6px rgba(255,255,255,0.7),
    inset 0 -6px 10px rgba(120,60,0,0.55),
    0 8px 20px rgba(0,0,0,0.55),
    var(--glow-gold);
  transition: transform var(--t-fast) var(--ease-spring), filter var(--t-fast);
  animation: scHubPulse 2.4s ease-in-out infinite;
}
.sc-wheel__hub:active { transform: scale(0.93); }
.sc-wheel.is-spinning .sc-wheel__hub { animation: none; filter: saturate(1.1) brightness(1.05); cursor: default; }
@keyframes scHubPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(120,70,8,0.55), 0 0 0 7px rgba(255,222,120,0.35), inset 0 3px 6px rgba(255,255,255,0.7), inset 0 -6px 10px rgba(120,60,0,0.55), 0 8px 20px rgba(0,0,0,0.55), 0 0 22px rgba(255,200,60,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(120,70,8,0.55), 0 0 0 7px rgba(255,222,120,0.55), inset 0 3px 6px rgba(255,255,255,0.8), inset 0 -6px 10px rgba(120,60,0,0.55), 0 8px 20px rgba(0,0,0,0.55), 0 0 40px rgba(255,210,70,0.85); }
}
.sc-wheel__hub-top {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6px, 2.4vw, 9px);
  letter-spacing: 0.04em;
  color: #5a3700;
  line-height: 1;
  margin-bottom: 1px;
}
.sc-wheel__hub-spin {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(15px, 6vw, 24px);
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: #4a2c00;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
