/* Pre-wheel landing notice; other lp-* reading styles live after the wheel. */
.hero--landing .lp-tool-notice {
  align-self: center;
  width: 100%;
  max-width: 46ch;
  /* Reserve a row for the corner wheel title. multi-wheel-layout.css drops
     it on phones, where a named title sits above the wheel instead. */
  margin: 3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

html.sc-focus-mode .hero--landing .lp-tool-notice {
  width: min(46ch, calc(100vw - 28px));
  max-width: none;
  margin-top: 0;
  flex-shrink: 0;
}

.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;
}

:root{
  /* Wheel shadow: three tight neutral-black layers (contact, lift, ground)
     instead of one wide blurred halo. Short offsets keep the circle looking
     seated and sharp on both themes rather than smudged. */
  --sc-wheel-under-shadow:
    0 1px 2px rgba(0,0,0,0.34),
    0 6px 14px rgba(0,0,0,0.32),
    0 16px 30px rgba(0,0,0,0.26);
  --sc-wheel-pointer-shadow-filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
}

html[data-theme="light"]{
  --sc-wheel-under-shadow:
    0 1px 2px rgba(0,0,0,0.12),
    0 6px 14px rgba(0,0,0,0.11),
    0 16px 30px rgba(0,0,0,0.09);
}

/* 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;

  /* ✅ 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;

}

/* Homepage-only first-paint fallback; the real canvas replaces it atomically. */
html.sc-starter-fallback .wheel:not(.is-canvas-ready) {
  background:
    radial-gradient(circle closest-side, #f9fafb 0 20%, transparent 20.5%),
    conic-gradient(
      #125745 0deg 51.429deg,
      #FAA921 51.429deg 102.857deg,
      #DD2043 102.857deg 154.286deg,
      #F5EBD9 154.286deg 205.714deg,
      #125745 205.714deg 257.143deg,
      #FAA921 257.143deg 308.571deg,
      #DD2043 308.571deg 360deg
    ) !important;
}

html.sc-starter-fallback:not([data-theme="light"]) .wheel:not(.is-canvas-ready) {
  background:
    radial-gradient(circle closest-side, #0b0b10 0 20%, transparent 20.5%),
    conic-gradient(
      #125745 0deg 51.429deg,
      #FAA921 51.429deg 102.857deg,
      #DD2043 102.857deg 154.286deg,
      #F5EBD9 154.286deg 205.714deg,
      #125745 205.714deg 257.143deg,
      #FAA921 257.143deg 308.571deg,
      #DD2043 308.571deg 360deg
    ) !important;
}

.wheel.is-canvas-ready {
  background: transparent !important;
}

.wheel:hover {
  /* ✅ keep no shadow on hover */
  box-shadow: none;
}

.wheel.is-spinning {
  cursor: default;
}

.wheel-starter-hint{
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, -50%);

  display: block;
  width: 72%;
  max-width: 34rem;
  color: #fff;
}

.wheel-starter-hint[hidden]{
  display: none !important;
}

.wheel-starter-hint__svg{
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter:
    drop-shadow(0 1px 0 rgba(15, 23, 42, 0.38))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.52))
    drop-shadow(0 7px 10px rgba(0, 0, 0, 0.34));
}

.wheel-starter-hint__text{
  fill: currentColor;
  stroke: rgba(15, 23, 42, 0.30);
  stroke-width: 1.9px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-family: "Fredoka One", Satoshi, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Fredoka One has no Vietnamese letters, so the hint would mix two fonts in
   one word. The Vietnamese hint uses the wheel label font, which has them. */
:lang(vi) .wheel-starter-hint__text{
  font-family: "ChoiceSpin Wheel Label", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-weight: 450;
}

.wheel-starter-hint__phone{
  display: none;
}

@media (max-width: 550px), (hover: none) and (pointer: coarse){
  .wheel-starter-hint__desktop{
    display: none;
  }

  .wheel-starter-hint__phone{
    display: block;
  }

  .wheel-starter-hint__text{
    font-size: 44px;
    stroke-width: 1.9px;
  }
}

/* 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: var(--sc-wheel-pointer-shadow-filter);
  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: none;
}


/* 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;
}

#wheelCanvas:focus-visible{
  outline: 3px solid rgba(37, 99, 235, 0.9) !important;
  outline-offset: 8px !important;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.24) !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: var(--sc-wheel-under-shadow);
}

/* Keep the actual wheel above the shadow */
.wheel{
  position: relative;
  z-index: 1;
}

/* =========================================================
   WHEEL OUTER STROKE (PASTE LAST)
   - clean visible ring, does NOT spin
   ========================================================= */

.hero__wheel .wheel-wrapper{
  position: relative;
  isolation: isolate;
}

/* ring removed: keep wheel edge clean */
html .hero__wheel .wheel-wrapper::after{
  content: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* keep pointer above everything */
.hero__wheel .wheel-pointer{ z-index: 6 !important; }
/* ✅ Hard kill switch: when border is OFF, remove the ring no matter what */
html.sc-wheel-border-off .hero__wheel .wheel-wrapper::after{
  content: none !important;
  outline: none !important;
  box-shadow: none !important;
}
/* CLS fix: remove ::before shadow on desktop, use wrapper box-shadow instead */
@media (min-width: 1024px) {
  .wheel-wrapper::before {
    content: none !important;
  }
  .hero__wheel .wheel-wrapper {
    border-radius: 50%;
    box-shadow: var(--sc-wheel-under-shadow) !important;
  }
}
