.fx-spin { display: grid; gap: 14px; }
.fx-spin .fx-spin-steps { margin: 0; padding: 0; list-style: none; }
.fx-spin .fx-spin-steps li + li { margin-top: 6px; }
.fx-spin .fx-spin-goal { margin: 0; color: var(--fx-ink); }
.fx-spin .fx-spin-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-spin .fx-spin-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-spin .fx-spin-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-spin .fx-spin-options .fx-btn { box-sizing: border-box; min-height: 44px; min-width: 0; padding: 10px 12px; white-space: normal; color: var(--fx-ink); background: var(--fx-paper); border: 2px solid var(--fx-muted); }
.fx-spin .fx-spin-options .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sky-pale); border-color: var(--fx-ink); }
.fx-spin .fx-spin-options .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 2px; }
.fx-spin .fx-spin-help { font-size: 12px; margin: 10px 0 0; color: var(--fx-ink); }
.fx-spin .fx-spin-scene { box-sizing: border-box; height: 430px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--fx-ink); }
.fx-spin .fx-spin-board { position: relative; width: min(100%, 300px); aspect-ratio: 1; flex-shrink: 0; perspective: 850px; }
.fx-spin .fx-spin-board svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx-spin .fx-spin-map { color: var(--fx-ink); }
.fx-spin .fx-spin-ring { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 2; }
.fx-spin .fx-spin-spokes { fill: none; stroke: var(--fx-sky); stroke-width: 1; }
.fx-spin .fx-spin-track { fill: none; stroke: var(--fx-sky-pale); stroke-width: 10; }
.fx-spin .fx-spin-points text { fill: var(--fx-ink); font-size: 18px; font-weight: 800; text-anchor: middle; }
.fx-spin .fx-spin-start-marker { fill: var(--fx-coral-pale); stroke: var(--fx-muted); stroke-width: 2; }
.fx-spin .fx-spin-start-label { fill: var(--fx-ink); text-anchor: middle; font-size: 13px; }
.fx-spin .fx-spin-dora-label { fill: var(--fx-ink); text-anchor: middle; font-size: 16px; font-weight: 800; }
.fx-spin .fx-spin-wheel { position: absolute; inset: 0; transform-origin: 50% 46.875%; transform-style: preserve-3d; transform: rotateZ(0deg); transition: transform 1.4s; animation-duration: 1.4s; animation-timing-function: ease-in-out; animation-fill-mode: both; }
.fx-spin .fx-spin-wheel svg { transform: rotateX(0deg) rotateY(0deg) translateZ(2px); }
.fx-spin .fx-spin-person { fill: var(--fx-sun); stroke: var(--fx-ink); stroke-width: 3; }
.fx-spin .fx-spin-shoulders { fill: none; stroke: var(--fx-ink); stroke-width: 9; stroke-linecap: round; }
.fx-spin .fx-spin-facing { fill: none; stroke: var(--fx-grape); stroke-width: 8; stroke-linecap: round; }
.fx-spin .fx-spin-arrowhead { fill: var(--fx-grape); }
.fx-spin .fx-spin-arrow-label { margin: 0; min-height: 40px; text-align: center; font-size: 14px; }
.fx-spin .fx-spin-directions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 340px; }
.fx-spin .fx-spin-direction { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 5px; border: 2px solid var(--fx-sky-pale); border-radius: 8px; font-size: 12px; text-align: center; color: var(--fx-ink); }
.fx-spin .fx-spin-direction svg { width: 36px; height: 28px; fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.4; }
.fx-spin .fx-spin-clockwise svg { stroke: var(--fx-mint); }
.fx-spin .fx-spin-anticlockwise svg { stroke: var(--fx-sun); }
.fx-spin .fx-spin-arc { visibility: hidden; fill: none; stroke: var(--fx-mint); stroke-width: 9; stroke-linecap: round; }
.fx-spin .fx-spin-arc-ac1, .fx-spin .fx-spin-arc-ac3 { stroke: var(--fx-sun); }
.fx-spin .fx-spin-says, .fx-spin .fx-spin-feedback { display: grid; }
.fx-spin .fx-spin-message { grid-area: 1 / 1; visibility: hidden; margin: 0; color: var(--fx-ink); }
.fx-spin:has(#fx-spin-start:checked) .fx-spin-s-start, .fx-spin:has(#fx-spin-cw1:checked) .fx-spin-s-cw1, .fx-spin:has(#fx-spin-half:checked) .fx-spin-s-half, .fx-spin:has(#fx-spin-cw3:checked) .fx-spin-s-cw3, .fx-spin:has(#fx-spin-full:checked) .fx-spin-s-full, .fx-spin:has(#fx-spin-ac1:checked) .fx-spin-s-ac1, .fx-spin:has(#fx-spin-ac3:checked) .fx-spin-s-ac3, .fx-spin:has(#fx-spin-cw1:checked) .fx-spin-f-cw1, .fx-spin:has(#fx-spin-half:checked) .fx-spin-f-half, .fx-spin:has(#fx-spin-cw3:checked) .fx-spin-f-cw3, .fx-spin:has(#fx-spin-full:checked) .fx-spin-f-full, .fx-spin:has(#fx-spin-ac1:checked) .fx-spin-f-ac1, .fx-spin:has(#fx-spin-ac3:checked) .fx-spin-f-ac3 { visibility: visible; }
.fx-spin:has(#fx-spin-cw1:checked) .fx-spin-arc-cw1, .fx-spin:has(#fx-spin-half:checked) .fx-spin-arc-half, .fx-spin:has(#fx-spin-cw3:checked) .fx-spin-arc-cw3, .fx-spin:has(#fx-spin-full:checked) .fx-spin-arc-full, .fx-spin:has(#fx-spin-ac1:checked) .fx-spin-arc-ac1, .fx-spin:has(#fx-spin-ac3:checked) .fx-spin-arc-ac3 { visibility: visible; }
.fx-spin:has(#fx-spin-cw1:checked) .fx-spin-clockwise, .fx-spin:has(#fx-spin-half:checked) .fx-spin-clockwise, .fx-spin:has(#fx-spin-cw3:checked) .fx-spin-clockwise, .fx-spin:has(#fx-spin-full:checked) .fx-spin-clockwise { background: var(--fx-mint-pale); border-color: var(--fx-mint); }
.fx-spin:has(#fx-spin-ac1:checked) .fx-spin-anticlockwise, .fx-spin:has(#fx-spin-ac3:checked) .fx-spin-anticlockwise { background: var(--fx-sun-pale); border-color: var(--fx-sun); }
.fx-spin:has(#fx-spin-cw1:checked) .fx-spin-clockwise svg, .fx-spin:has(#fx-spin-half:checked) .fx-spin-clockwise svg, .fx-spin:has(#fx-spin-cw3:checked) .fx-spin-clockwise svg, .fx-spin:has(#fx-spin-full:checked) .fx-spin-clockwise svg, .fx-spin:has(#fx-spin-ac1:checked) .fx-spin-anticlockwise svg, .fx-spin:has(#fx-spin-ac3:checked) .fx-spin-anticlockwise svg { opacity: 1; }
.fx-spin:has(#fx-spin-cw1:checked) .fx-spin-wheel { animation-name: fx-spin-cw1; }
.fx-spin:has(#fx-spin-half:checked) .fx-spin-wheel { animation-name: fx-spin-half; }
.fx-spin:has(#fx-spin-cw3:checked) .fx-spin-wheel { animation-name: fx-spin-cw3; }
.fx-spin:has(#fx-spin-full:checked) .fx-spin-wheel { animation-name: fx-spin-full; }
.fx-spin:has(#fx-spin-ac1:checked) .fx-spin-wheel { animation-name: fx-spin-ac1; }
.fx-spin:has(#fx-spin-ac3:checked) .fx-spin-wheel { animation-name: fx-spin-ac3; }
@keyframes fx-spin-cw1 { from { transform: rotateZ(0deg); } to { transform: rotateZ(90deg); } }
@keyframes fx-spin-half { from { transform: rotateZ(0deg); } to { transform: rotateZ(180deg); } }
@keyframes fx-spin-cw3 { from { transform: rotateZ(0deg); } to { transform: rotateZ(270deg); } }
@keyframes fx-spin-full { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } }
@keyframes fx-spin-ac1 { from { transform: rotateZ(0deg); } to { transform: rotateZ(-90deg); } }
@keyframes fx-spin-ac3 { from { transform: rotateZ(0deg); } to { transform: rotateZ(-270deg); } }
@container (max-width: 480px) { .fx-spin .fx-spin-options { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-spin .fx-spin-wheel { animation-duration: 0.01ms; transition: none; } }