/* spin-the-wheel: styles only it uses, split out of site.css by scripts/split-css.mjs. */
.wheel-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.wheel-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; background: var(--paper); }
.wheel-stage:fullscreen { justify-content: center; padding: 24px; }
.wheel-stage:fullscreen .wheel-box { width: min(86vh, 92vw); }
.wheel-heading { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-align: center; color: var(--ink); }
.wheel-box { position: relative; width: min(100%, 560px); aspect-ratio: 1; }
.wheel-box canvas { display: block; width: 100%; height: 100%; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--ink); filter: drop-shadow(0 2px 3px rgb(15 29 58 / 0.3)); }
.wheel-spin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1; border-radius: 50%; border: 5px solid #fff; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(0.9rem, 3vw, 1.3rem); cursor: pointer; box-shadow: var(--shadow-3); }
.wheel-spin:hover:not(:disabled) { background: var(--signal-deep); }
.wheel-spin:disabled { cursor: progress; }
.wheel-spin:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.wheel-result { margin: 0; min-height: 2.4rem; font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-align: center; color: var(--ink); opacity: 0; transform: scale(0.9); transition: opacity 0.25s, transform 0.25s; overflow-wrap: anywhere; }
.wheel-result.is-shown { opacity: 1; transform: none; }
.wheel-actions { justify-content: center; }
.wheel-history { margin: 6px 0 0; padding-left: 22px; max-height: 220px; overflow: auto; font-size: 0.95rem; }
@media (max-width: 900px) { .wheel-layout { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wheel-result { transition: none; } }
