html:has(#wheel-dialog[open]),body:has(#wheel-dialog[open]){overflow:hidden}
.wheel-dialog{width:min(410px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1.5px solid #cd86ff;border-radius:25px;overflow:auto;color:#f4edff;background:radial-gradient(ellipse at 50% 20%,#60258240,transparent 60%),linear-gradient(145deg,#16102f,#0c1025 60%,#24103b);box-shadow:inset 0 1px 8px #dbadff38,0 0 12px #bc61f45e,0 0 45px #8f35c652;font-family:Inter,system-ui,sans-serif;scrollbar-width:thin;scrollbar-color:#9259bd #17102d}
.wheel-dialog::backdrop{background:#070b1ec9;backdrop-filter:blur(7px)}
.wheel-card{padding:20px 22px 17px;text-align:center}
.wheel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.wheel-brand{display:flex;gap:7px;align-items:center;font-size:17px;font-weight:750;color:#fff;text-decoration:none;letter-spacing:-.5px;white-space:nowrap}
.wheel-brand>img{width:42px;height:38px;object-fit:contain;filter:drop-shadow(0 0 5px #ad65e75e)}
.wheel-brand strong{color:#41dff5;font-weight:750}
.wheel-close{display:grid;place-items:center;flex-shrink:0;width:31px;height:31px;padding:8px;border:1px solid #a981e24d;border-radius:50%;background:#37235488;box-shadow:inset 0 1px 5px #dab6ff1c;cursor:pointer}
.wheel-close>img{width:100%;height:100%;filter:brightness(0) invert(1)}
.wheel-close:hover{background:#75469280}
.wheel-badge{display:inline-block;padding:5px 12px;border:1px solid #c58af2;border-radius:30px;box-shadow:inset 0 0 9px #ae5de333,0 0 8px #a258e32b;color:#dfb2ff;font-size:10px;letter-spacing:1.4px;font-weight:700}
.wheel-main h2{font-size:29px;line-height:1.1;letter-spacing:-.9px;max-width:13em;margin:12px auto 9px;text-wrap:balance}
.wheel-subtitle{color:#ded4ec;font-size:12px;line-height:1.4;margin:0}
.wheel-stage{position:relative;width:min(100%,350px,47dvh);aspect-ratio:1;margin:10px auto 2px;isolation:isolate}
.wheel-rotor{position:absolute;inset:0;transition:transform 3.6s cubic-bezier(.13,.68,.13,1);will-change:transform}
.wheel-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 9px #a432d74d);pointer-events:none}
.wheel-value{position:absolute;transform:translate(-50%,-50%);font-size:clamp(14px,4.3vw,18px);font-weight:750;letter-spacing:-.25px;text-shadow:0 2px 8px #280b3f;line-height:1;pointer-events:none}
.wheel-value.v0{left:50%;top:32%}.wheel-value.v1{left:76%;top:40%}.wheel-value.v2{left:76%;top:70%}.wheel-value.v3{left:50%;top:83%}.wheel-value.v4{left:24%;top:70%}.wheel-value.v5{left:24%;top:40%}
.wheel-pointer{position:absolute;z-index:2;left:50%;top:1%;width:11%;height:11%;transform:translateX(-50%);object-fit:contain;filter:invert(79%) sepia(95%) saturate(1100%) hue-rotate(134deg) drop-shadow(0 0 3px #66ecff)}
.wheel-spin{position:absolute;inset:36% 36% 36%;width:28%;height:28%;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#fff;font:850 18px/1 Inter,system-ui,sans-serif;cursor:pointer;text-shadow:0 0 10px #c281ff}
.wheel-spin:hover{box-shadow:inset 0 0 15px #dca4ff4d}.wheel-spin:disabled{cursor:wait;opacity:1}.wheel-spin:disabled span{font-size:10px;max-width:90%;line-height:1.15}
.wheel-result{display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 12px;margin:4px auto 14px;border:1px solid #c27cf1ab;border-radius:15px;background:linear-gradient(110deg,#3f1e6257,#49256b66);box-shadow:inset 0 0 9px #c884ff18,0 0 10px #a158d929;font-size:13px;line-height:1.3}
.wheel-result strong{font-size:21px;font-weight:850;white-space:nowrap;color:#46edff;text-shadow:0 0 10px #20d4ef55}.wheel-result.is-revealed{animation:wheelResultPulse .8s ease-out}
.wheel-app{width:100%;min-height:43px;justify-content:center;border:1px solid #d5a0ff;border-radius:26px;font-size:14px;font-weight:750;background:linear-gradient(100deg,#4ce9f8,#bd4bf3);box-shadow:inset 0 1px 2px #fff6,0 0 18px #a944e53b}
.wheel-app>img{width:19px;height:19px}
.wheel-disclosure{font-size:11px;line-height:1.45;color:#d3c4e1;margin:12px 0 0;text-wrap:pretty}
.wheel-back{display:block;margin:11px auto 0;padding:3px 6px;color:#c79beb;border:0;border-bottom:1px solid #ba7be78c;background:none;font:600 12px/1.3 Inter,system-ui,sans-serif;cursor:pointer}
.wheel-app-preview{padding:0 0 9px}.wheel-app-preview[hidden],.wheel-main[hidden]{display:none}
.wheel-app-preview>img{width:100%;height:210px;object-fit:contain}.wheel-app-preview h3{font-size:25px;line-height:1.2;margin:4px 0 12px}.wheel-app-preview p{color:#d4c8e6;font-size:13px;line-height:1.6;margin-bottom:20px}.wheel-preview-back{justify-content:center;width:100%;font-size:13px}
.wheel-dialog button:focus-visible,.wheel-dialog a:focus-visible{outline:2px solid #77e8ff;outline-offset:4px}
.wheel-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:2px}
.wheel-actions .wheel-download{background:#231a42;color:#ecdfff;border-color:#ad76e3;box-shadow:inset 0 1px 2px #d1b2ff30}
.wheel-actions .wheel-download::before{content:none}
.wheel-draw:disabled{cursor:wait}
.wheel-complete[hidden]{display:none}
.wheel-complete{padding:4px 0 8px}
.wheel-result-hero{width:min(100%,250px);margin:0 auto 6px;background:radial-gradient(ellipse,#773ed54d,transparent 67%)}
.wheel-complete-art{display:block;width:min(100%,235px);height:auto;margin:auto;filter:drop-shadow(0 8px 18px #9449e65c);animation:wheelResultRise .65s cubic-bezier(.18,.74,.4,1) both}
.wheel-complete h3{font-size:23px;line-height:1.2;margin:0 0 7px}
.wheel-complete-note{margin:0 0 4px;color:#e3d5f5;font-size:13px;font-weight:650}
.wheel-complete-value{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:0 0 14px;font-weight:800;color:#6af8e4;text-shadow:0 0 18px #35cabe59}
.wheel-complete-value strong{font-size:clamp(42px,13vw,58px);line-height:1;letter-spacing:-.045em}
.wheel-complete-value span{font-size:clamp(18px,6vw,26px);letter-spacing:.02em}
.wheel-launcher{position:fixed;right:16px;bottom:92px;z-index:35;display:flex;align-items:center;flex-direction:column;gap:4px;max-width:112px;padding:0 5px 5px;border:0;background:none;cursor:pointer;transition:opacity .2s,transform .2s}
.wheel-launcher>img{width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 2px 10px #d58aff9c);animation:wheelLauncherFloat 4.2s ease-in-out infinite}
.wheel-launcher>span{font:700 11px/1.25 Inter,system-ui,sans-serif;color:#fff0ff;text-align:center;max-width:105px;padding:5px 9px;border:1px solid #d999ffe0;border-radius:20px;background:linear-gradient(145deg,#482568,#201533);box-shadow:0 0 12px #b24df166}
.wheel-launcher:hover{transform:translateY(-3px)}.wheel-launcher:focus-visible{outline:2px solid #b5e9ff;outline-offset:3px;border-radius:15px}
html:has(dialog[open]) .wheel-launcher{visibility:hidden;opacity:0;pointer-events:none}
@keyframes wheelLauncherFloat{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-5px) rotate(6deg);filter:drop-shadow(0 0 13px #c373efb3)}}
@keyframes wheelResultRise{from{opacity:.3;transform:translateY(10px) scale(.88)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes wheelResultPulse{50%{box-shadow:0 0 25px #ce7bff99,inset 0 0 15px #ca80f93b;transform:scale(1.025)}}
@media(max-width:380px){.wheel-card{padding:16px 16px 14px}.wheel-brand{font-size:15px}.wheel-brand>img{width:34px;height:32px}.wheel-main h2{font-size:25px}.wheel-value{font-size:15px}.wheel-result{font-size:11px}.wheel-app{font-size:12px}}
@media(max-height:700px){.wheel-card{padding-block:12px}.wheel-header{margin-bottom:7px}.wheel-main h2{font-size:24px;margin-block:8px 6px}.wheel-badge{font-size:8px;padding-block:4px}.wheel-stage{width:min(100%,300px,44dvh);margin-top:5px}.wheel-result{padding:7px 10px;margin-bottom:10px}.wheel-disclosure{font-size:10px;margin-top:9px}.wheel-back{margin-top:7px}.wheel-value{font-size:18px}}
@media(max-width:600px){.wheel-launcher{right:9px;bottom:76px;max-width:95px}.wheel-launcher>img{width:73px;height:73px}.wheel-launcher>span{font-size:10px;padding:4px 7px}}
@media(max-height:700px){.wheel-value{font-size:15px}}
@media(prefers-reduced-motion:reduce){.wheel-rotor{transition:none}.wheel-result.is-revealed,.wheel-launcher>img,.wheel-complete-art{animation:none}}

/* Travelling lilac highlights, masked to the actual circular rim and CTA edge. */
@property --wheel-light-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
.wheel-app{position:relative;isolation:isolate;overflow:visible;margin-top:10px}
.wheel-app::before{content:'';position:absolute;inset:-4px;padding:2px;border-radius:inherit;background:conic-gradient(from var(--wheel-light-angle),#8749be77 0deg,#bd7cefc9 35deg,#fff0ff 66deg,#e7a3ff 84deg,#8749be77 115deg,#8749be66 180deg,#bd7cefc9 215deg,#fff0ff 246deg,#e7a3ff 264deg,#8749be77 295deg);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;filter:drop-shadow(0 0 4px #d697ffb3);animation:wheelLightTravel 3s linear infinite;pointer-events:none}
.wheel-stage::after{content:'';position:absolute;inset:6%;padding:2px;border-radius:50%;z-index:1;background:conic-gradient(from var(--wheel-light-angle),transparent 0deg,#bd6ff3aa 25deg,#fff1ff 44deg,#ce79ffbb 60deg,transparent 80deg,transparent 120deg,#996af1aa 145deg,#fff1ff 164deg,#cf8dfabb 180deg,transparent 200deg,transparent 240deg,#bc6beba6 265deg,#fff1ff 284deg,#cc84efbb 300deg,transparent 320deg);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;filter:drop-shadow(0 0 5px #bc6cff);animation:wheelLightTravel 4s linear infinite;pointer-events:none}
@keyframes wheelLightTravel{to{--wheel-light-angle:360deg}}
@media(prefers-reduced-motion:reduce){.wheel-app::before,.wheel-stage::after{animation:none}}
