.wheel-wrapper {
  position: relative;
  width: min(620px, 96vw);
  aspect-ratio: 1 / 1;
  margin: 18 auto 1.1rem;

  /* ✅ remove the float animation (this can make spinning feel "wobbly") */
  animation: none;
}

/* Wheel container (button) */
.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;

  /* ✅ IMPORTANT: keep border INSIDE the 100% size (perfect circle) */
  box-sizing: border-box;

  /* ✅ kill default button padding / weird sizing */
  padding: 0;

    border: 0 !important;          /* ✅ no outer ring */
  outline: none !important;       /* ✅ no focus outline */
  box-shadow: none !important;    /* ✅ no shadow ring */
  background: transparent !important; /* ✅ no “edge color” showing */


  /* ✅ remove shadows completely */
  box-shadow: none;

  cursor: pointer;
  transition: none;         /* optional: no hover animation */
  outline: none;
  overflow: hidden;

  /* ✅ ensure rotation is perfectly centered */
  transform-origin: 50% 50%;
  will-change: transform;
    box-shadow: none !important;
  filter: none !important;
  outline: none !important;

}

.wheel:hover {
  /* ✅ keep no shadow on hover */
  box-shadow: none;
}

.wheel.is-spinning {
  cursor: default;
}

/* The drawn wheel */
.wheel-canvas {
  /* ✅ make canvas fill the wheel perfectly (no layout/baseline weirdness) */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;

  /* optional (safe): */
  pointer-events: none;
}

/* Pointer at TOP */
/* Pointer – inside the wheel, pointing DOWN */
.wheel-pointer {
  position: absolute;
  top: 10px; /* inside the wheel */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;

  /* triangle that points DOWN ( \/ ) */
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 28px solid #f97373; /* this is the colored side now */
  border-bottom: 0;

  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
  z-index: 3;
}


/* Result box */
.result {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  min-height: 1.4rem;
  color: #e5e7eb;
  text-align: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d2333, #111827);
  border: 1px solid #1f2937;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.7);
}

.result--error {
  background: linear-gradient(90deg, #3b0b0b, #450a0a);
  border-color: #7f1d1d;
  color: #fecaca;
}

.result--pulse {
  animation: pulseResult 0.5s ease-out;
}

/* Animations */
@keyframes floatWheel {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulseResult {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}
/* Bigger wheel on desktop (SAFE in grid: no % widths) */
@media (min-width: 1024px){
  .hero__wheel .wheel-wrapper{
    width: clamp(620px, 46vw, 820px) !important; /* control size here */
    max-width: 800px !important;                 /* overrides your base 620 cap */
    margin-left: auto;
    margin-right: auto;
  }
}
/* ✅ Remove the outer stroke/ring on ALL themes */
.wheel{
  border: 0 !important;
}
@media (min-width: 1024px){
  .hero__wheel .wheel-wrapper{
    width: clamp(560px, 40vw, 760px) !important; /* smaller range */
    max-width: 760px !important;
    margin-left: auto;
    margin-right: auto;

    /* extra-safe centering if parent is grid */
    justify-self: center;
    align-self: center;
  }
}
@media (min-width: 1024px){
  .hero__wheel .wheel-wrapper{
    margin-top: 25px; /* push down */
  }
}
/* ✅ FINAL OVERRIDE: absolutely no shadows/filters on wheel stack */
.wheel-wrapper,
.wheel,
#wheelCanvas,
.wheel-canvas{
  box-shadow: none !important;
  filter: none !important;
  outline: none !important;
}
/* =========================================================
   Premium shadow BEHIND the wheel (does NOT spin)
   - Shadow lives on .wheel-wrapper::before (wrapper never rotates)
   ========================================================= */

.wheel-wrapper{
  position: relative; /* ensure ::before positions correctly */
}

/* The shadow "plate" behind the wheel */
.wheel-wrapper::before{
  content: "";
  position: absolute;
  inset: 10px;              /* how close the shadow hugs the wheel */
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 0;

  /* Premium deep shadow (dark mode default) */
  box-shadow:
    0 34px 90px rgba(0,0,0,0.55),
    0 14px 34px rgba(0,0,0,0.35);
}

/* Keep the actual wheel above the shadow */
.wheel{
  position: relative;
  z-index: 1;
}

/* Light mode: softer shadow */
html[data-theme="light"] .wheel-wrapper::before{
  box-shadow:
    0 30px 80px rgba(15,23,42,0.18),
    0 12px 28px rgba(15,23,42,0.10);
}
/* =========================================================
   WHEEL OUTER STROKE (PASTE LAST)
   - clean visible ring, does NOT spin
   ========================================================= */

.hero__wheel .wheel-wrapper{
  position: relative;
  isolation: isolate;
}

/* ring */
.hero__wheel .wheel-wrapper::after{
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;          /* lets stroke sit slightly outside */
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 4 !important;

  box-shadow: 
    0 0 0 3px rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(0,0,0,0.55) !important;
}

/* light theme ring */
html[data-theme="light"] .hero__wheel .wheel-wrapper::after{
  box-shadow:
    0 0 0 3px rgba(15,23,42,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.85) !important;
}

/* keep pointer above everything */
.hero__wheel .wheel-pointer{ z-index: 6 !important; }
