/* Elite Page pre-checkout prize wheel (one free spin per order). Loaded on /start/, /start/full/, /gift/. */
.wheel-box{position:relative;overflow:hidden;margin:6px 0 22px;padding:20px 16px 16px;border-radius:20px;border:1.5px solid #EBD9C0;background:radial-gradient(420px 220px at 50% 0%,#FFF3E0 0%,rgba(255,243,224,0) 70%),var(--card);text-align:center;isolation:isolate}
.wheel-head{margin:0 0 10px}
.wheel-title{margin:0;font-size:20px;font-weight:900;color:var(--plum);line-height:1.25}
.wheel-gift{display:inline-block}
.wheel-box:not(.is-done) .wheel-gift{animation:wheelBob 2.4s ease-in-out infinite}
@keyframes wheelBob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3px) rotate(-8deg)}}
.wheel-sub{margin:4px auto 0;max-width:30em;text-wrap:balance;color:var(--gray);font-size:15px;font-weight:600;line-height:1.45}
.wheel-stage{position:relative;width:min(300px,78vw);aspect-ratio:1;margin:8px auto 4px}
.wheel-svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 10px 22px rgba(74,37,80,.22))}
.wheel-rim{fill:#3A1C40;stroke:#E39A3F;stroke-width:3}
.wheel-slice{stroke:#fff;stroke-width:.8;stroke-opacity:.55}
.wheel-label{font:800 7.6px "Nunito","Nunito Fallback",system-ui,sans-serif;letter-spacing:.01em;pointer-events:none}
.wheel-label.is-gold{font-size:10.5px;font-weight:900;letter-spacing:.06em}
.wheel-star{fill:#4A2550;font-size:11px}
.wheel-stud{fill:#FCE3B8}
.wheel-seg{transition:opacity .35s ease}
.wheel-box.is-done .wheel-seg:not(.is-win){opacity:.5}
.wheel-seg.is-win .wheel-slice{stroke:#fff;stroke-width:2.2;stroke-opacity:1}
.wheel-pointer{position:absolute;left:50%;top:-6px;width:28px;height:34px;margin-left:-14px;background:linear-gradient(180deg,#F7C873,#E39A3F);clip-path:polygon(50% 100%,0 0,100% 0);filter:drop-shadow(0 3px 3px rgba(42,26,46,.35));transform-origin:50% 0;z-index:2}
.wheel-pointer.flick{animation:wheelFlick .12s ease-out}
@keyframes wheelFlick{0%{transform:rotate(-14deg)}100%{transform:rotate(0)}}
.wheel-hub{position:absolute;left:50%;top:50%;width:22%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#FFFCF8;border:3px solid #E39A3F;box-shadow:0 4px 12px rgba(42,26,46,.25);display:flex;align-items:center;justify-content:center;z-index:1}
.wheel-hub img{width:62%;height:auto}
.wheel-controls{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:12px 0 4px}
.wheel-spin{min-height:52px;padding:12px 30px;background:linear-gradient(135deg,var(--plum),#6B3A73);box-shadow:0 8px 20px rgba(74,37,80,.28)}
.wheel-box:not(.is-done):not(.is-spinning) .wheel-spin{animation:wheelPulse 2.2s ease-in-out infinite}
@keyframes wheelPulse{0%,100%{box-shadow:0 8px 20px rgba(74,37,80,.28),0 0 0 0 rgba(227,154,63,.45)}50%{box-shadow:0 8px 20px rgba(74,37,80,.28),0 0 0 9px rgba(227,154,63,0)}}
.wheel-box.is-done .wheel-spin{background:#EFE6F1;color:var(--plum);box-shadow:none;opacity:1}
.wheel-spin[aria-disabled="true"]{cursor:default}
.wheel-box.is-spinning .wheel-spin[aria-disabled="true"]{cursor:progress;opacity:.9}
.wheel-result:focus{outline:none}
.wheel-result:focus-visible{outline:3px solid var(--plum);outline-offset:3px}
.wheel-sound{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 14px;border-radius:999px;border:1.5px solid var(--line);background:transparent;color:var(--gray);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.wheel-sound:hover{border-color:var(--plum);color:var(--plum)}
.wheel-sound .ws-on{display:none}.wheel-sound[aria-pressed=true] .ws-on{display:inline}.wheel-sound[aria-pressed=true] .ws-off{display:none}
.wheel-result{min-height:28px;margin:8px auto 0;max-width:32em}
.wheel-result:empty{min-height:0}
.wr-big{margin:4px 0 2px;font-size:19px;font-weight:700;color:var(--ink);animation:wheelPop .45s cubic-bezier(.2,1.4,.4,1)}
.wr-big strong{color:var(--plum);font-weight:900}
.wr-small{margin:2px 0 0;color:var(--gray);font-size:14px;font-weight:600;line-height:1.45}
@keyframes wheelPop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}
.wheel-how{margin:12px auto 0;max-width:32em;text-align:left;font-size:13.5px;color:var(--gray)}
.wheel-how summary{cursor:pointer;font-weight:800;color:var(--plum);text-align:center;list-style:none;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px}
.wheel-how summary::-webkit-details-marker{display:none}
.wheel-how summary::after{content:"+";font-weight:900}
.wheel-how[open] summary::after{content:"–"}
.wheel-note{margin:6px 0 8px;font-weight:700;color:var(--ink);text-align:center}
.wheel-legend{list-style:none;margin:0 0 8px;padding:0;display:grid;grid-template-columns:1fr;gap:2px 18px}
.wheel-legend li{display:flex;justify-content:space-between;gap:10px;padding:3px 0;border-bottom:1px dashed var(--line)}
.wheel-legend li.is-gold{font-weight:800;color:var(--amber-text)}
.wl-pct{font-variant-numeric:tabular-nums;font-weight:700}
.wheel-fine{margin:6px 0 0;font-size:12.5px;line-height:1.45}
.wheel-confetti{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
.wheel-done-wrap{margin:14px auto 4px;max-width:30em;padding:12px 16px;border-radius:14px;background:#FFF4E3;border:1.5px solid #F0D2A4}
.wheel-done{margin:0;font-weight:700;color:var(--ink)}
.wheel-done strong{color:var(--plum)}
.wheel-done-note{margin:4px 0 0;font-size:14px;color:var(--gray)}
@media (max-width:599px){.wheel-sound{width:44px;padding:0;justify-content:center}.wheel-sound .ws-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media (min-width:600px){.wheel-box{padding:24px 28px 18px}.wheel-stage{width:320px}.wheel-legend{grid-template-columns:1fr 1fr}}
@media (prefers-reduced-motion: reduce){.wheel-box .wheel-gift,.wheel-box .wheel-spin,.wheel-pointer.flick,.wr-big{animation:none!important}.wheel-seg{transition:none}}
[data-theme=dark] .wheel-box{border-color:#4a3550;background:radial-gradient(420px 220px at 50% 0%,rgba(227,154,63,.14) 0%,rgba(227,154,63,0) 70%),var(--card)}
[data-theme=dark] .wheel-title,[data-theme=dark] .wr-big strong,[data-theme=dark] .wheel-how summary,[data-theme=dark] .wheel-done strong{color:#E7C6EE}
[data-theme=dark] .wheel-box.is-done .wheel-spin{background:#3a2a40;color:#E7C6EE}
[data-theme=dark] .wheel-done-wrap{background:#2c2030;border-color:#5a4060}
@media (prefers-color-scheme: dark){
  html:not([data-theme=light]) .wheel-box{border-color:#4a3550;background:radial-gradient(420px 220px at 50% 0%,rgba(227,154,63,.14) 0%,rgba(227,154,63,0) 70%),var(--card)}
  html:not([data-theme=light]) .wheel-title,html:not([data-theme=light]) .wr-big strong,html:not([data-theme=light]) .wheel-how summary,html:not([data-theme=light]) .wheel-done strong{color:#E7C6EE}
  html:not([data-theme=light]) .wheel-box.is-done .wheel-spin{background:#3a2a40;color:#E7C6EE}
  html:not([data-theme=light]) .wheel-done-wrap{background:#2c2030;border-color:#5a4060}
}

.wheel-cap{margin:10px 0 0;color:var(--ink,#2a1b2e);font-size:15px;font-weight:650;line-height:1.45;text-wrap:balance;max-width:36ch}
.wheel-box.is-capped .wheel-spin{display:none}
[data-theme=dark] .wheel-cap{color:var(--paper,#F3E6F5)}
