/* =====================================================================
   THE WHEEL · "noir minimal"
   Near-black disc, hairline dividers, Inter numbers, one cherry slice,
   one cold slice. A thin ring of pin lights, a slim cherry needle and a
   dark glass hub that says Spin. Built by buildWheel() in app.js.
   ===================================================================== */
.wheelwrap{position:relative;width:100%;max-width:400px;aspect-ratio:1;margin:28px auto 0;isolation:isolate}
.wheelwrap .halo,.wheelwrap .halo2,.wheelwrap > .pointer,.wheelwrap > .hub{display:none}
.wh-glow{position:absolute;inset:-14%;z-index:-1;border-radius:50%;background:radial-gradient(circle,rgba(208,18,60,.22),rgba(94,10,28,.08) 45%,transparent 66%);animation:whBreathe 5s ease-in-out infinite}
@keyframes whBreathe{50%{opacity:.65}}
.wh-bezel{position:absolute;inset:-7%;width:114%;height:114%;z-index:0;filter:drop-shadow(0 30px 60px rgba(0,0,0,.75))}
.wh-disc{position:absolute;inset:0;width:100%;height:100%;z-index:1;display:block;transform-origin:50% 50%}
#wheel{transition:none !important}

/* pin lights: dim at rest, a chase while spinning, a flash when it lands */
.wh-bezel .led{fill:#ffdfe6;opacity:.22}
.wheelwrap.spinning .wh-bezel .led{animation:chase .8s linear infinite;animation-delay:calc(var(--i) * -16.6ms)}
@keyframes chase{0%{opacity:1}35%,100%{opacity:.12}}
.wheelwrap.won .wh-bezel .led{animation:flash .3s steps(1) 4}
@keyframes flash{0%{opacity:1}50%{opacity:.1}}

/* the slice that won lights up softly */
.wh-disc .hl{opacity:0}
.wh-disc .hl.on{animation:hl 1.8s var(--ease-out) both}
@keyframes hl{0%{opacity:0}14%{opacity:.32}100%{opacity:.1}}

/* dark glass hub: it spins the wheel too */
.wh-hub{position:absolute;left:50%;top:50%;z-index:3;width:30%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;padding:0;cursor:pointer;
  border:1px solid rgba(208,18,60,.7);
  background:radial-gradient(circle at 50% 28%,rgba(255,255,255,.14),rgba(255,255,255,0) 46%),radial-gradient(circle at 50% 60%,#1c0d13,#07040a 72%);
  box-shadow:0 0 0 6px rgba(7,4,10,.9),0 0 0 7px rgba(255,255,255,.08),0 12px 30px rgba(0,0,0,.6),0 0 36px rgba(208,18,60,.35),inset 0 1px 0 rgba(255,255,255,.12);
  display:grid;place-items:center;transition:transform .16s var(--ease-out),box-shadow .3s ease,border-color .3s ease}
.wh-hub span{font:700 clamp(12px,2.4vw,15px) var(--body);letter-spacing:.24em;text-transform:uppercase;color:var(--bone);padding-left:.24em}
.wh-hub:active{transform:translate(-50%,-50%) scale(.95)}
@media (hover:hover) and (pointer:fine){.wh-hub:hover{border-color:#ff3a62;box-shadow:0 0 0 6px rgba(7,4,10,.9),0 0 0 7px rgba(255,255,255,.12),0 12px 30px rgba(0,0,0,.6),0 0 54px rgba(255,58,98,.6),inset 0 1px 0 rgba(255,255,255,.16)}}
.wh-hub:disabled{cursor:default;opacity:.85}
div.wh-hub{pointer-events:none}

/* slim cherry needle, pivoting at its head */
.wh-needle{position:absolute;left:50%;top:-9%;z-index:4;width:7.5%;height:auto;transform:translateX(-50%);transform-origin:50% 22%;filter:drop-shadow(0 4px 8px rgba(0,0,0,.6)) drop-shadow(0 0 10px rgba(208,18,60,.65))}

/* the line she says sits above the wheel, with room around it */
#s-session .taunt{margin:6px 0 0;min-height:1.3em}

/* home-page preview */
.sx-wheel::before{display:none}
.sx-wheel > img{display:none}
.sx-wheel .wheelwrap{max-width:none;margin:0}
.sx-wheel svg.wh-disc{animation:none;filter:none}
.sx-wheel svg.wh-needle{width:7.5%;height:auto;animation:none;filter:drop-shadow(0 4px 8px rgba(0,0,0,.6)) drop-shadow(0 0 10px rgba(208,18,60,.65))}
.sx-wheel svg.wh-bezel{width:114%;height:114%;animation:none;filter:drop-shadow(0 30px 60px rgba(0,0,0,.75))}
.sx-wheel .wh-hub{width:30%}

html[data-motion="calm"] .wheelwrap.spinning .wh-bezel .led,html[data-motion="calm"] .wh-glow{animation:none !important}
@media (min-width:960px){#s-session .wheelwrap{max-width:500px;margin-top:48px}}
