.fx-paint { --fx-k: 1; display: grid; }
.fx-paint:has(#fx-paint-v0:checked) { --fx-k: 0; }
.fx-paint:has(#fx-paint-v1:checked) { --fx-k: 1; }
.fx-paint:has(#fx-paint-v2:checked) { --fx-k: 2; }
.fx-paint:has(#fx-paint-v3:checked) { --fx-k: 3; }
.fx-paint:has(#fx-paint-v4:checked) { --fx-k: 4; }
.fx-paint:has(#fx-paint-v5:checked) { --fx-k: 5; }
.fx-paint:has(#fx-paint-v6:checked) { --fx-k: 6; }
.fx-paint .fx-paint-wrap { display: grid; gap: 14px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.5; }
.fx-paint .fx-paint-steps { margin: 0; padding-left: 24px; }
.fx-paint .fx-paint-goal, .fx-paint .fx-paint-hint { margin: 0; }
.fx-paint .fx-paint-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-paint .fx-paint-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-paint .fx-row { gap: 6px; }
.fx-paint .fx-btn { box-sizing: border-box; min-width: 32px; min-height: 40px; padding: 6px 9px; justify-content: center; color: var(--fx-ink); background: var(--fx-paper); font-size: 16px; cursor: pointer; }
.fx-paint .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun); }
.fx-paint .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-paint .fx-paint-scene { box-sizing: border-box; height: 400px; padding: 12px; display: grid; grid-template-rows: 180px minmax(0, 1fr); gap: 16px; min-width: 0; }
.fx-paint .fx-paint-top { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; }
.fx-paint .fx-paint-scene figure { margin: 0; min-width: 0; }
.fx-paint .fx-paint-scene figcaption { margin-bottom: 10px; font-weight: 800; font-size: 16px; line-height: 1.3; }
.fx-paint .fx-paint-dial { display: grid; justify-items: center; text-align: center; }
.fx-paint .fx-paint-window { position: relative; width: 116px; height: 116px; box-sizing: border-box; border: 6px solid var(--fx-sun); border-radius: 50%; background: var(--fx-sun-pale); box-shadow: 0 5px 0 var(--fx-muted); overflow: hidden; }
.fx-paint .fx-paint-camera { width: 100%; height: 100%; display: grid; place-items: center; perspective: 400px; }
.fx-paint .fx-paint-drum { position: relative; width: 76px; height: 48px; transform-style: preserve-3d; transform: rotateX(calc(var(--fx-k) * -360deg / 7)); transition: transform 0.65s steps(4, end); }
.fx-paint .fx-paint-panel { position: absolute; inset: 0; box-sizing: border-box; display: grid; place-items: center; border: 2px solid var(--fx-ink); border-radius: 7px; background: var(--fx-paper); color: var(--fx-ink); font-size: 26px; font-weight: 800; backface-visibility: hidden; transform: rotateX(calc(var(--fx-i) * 360deg / 7)) translateZ(50px); }
.fx-paint .fx-paint-pointer { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: var(--fx-sun); color: var(--fx-ink); font-size: 20px; line-height: 28px; width: 22px; border-radius: 5px; }
.fx-paint .fx-paint-faces { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.fx-paint .fx-paint-face { min-width: 0; text-align: center; font-size: 12px; line-height: 1.3; }
.fx-paint .fx-paint-face svg { display: block; width: 100%; max-width: 62px; height: auto; margin: 0 auto 5px; }
.fx-paint .fx-paint-face rect { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 2; }
.fx-paint .fx-paint-face circle { fill: var(--fx-ink); }
.fx-paint:has(#fx-paint-v1:checked) .fx-paint-face:nth-child(-n + 1) rect, .fx-paint:has(#fx-paint-v2:checked) .fx-paint-face:nth-child(-n + 2) rect, .fx-paint:has(#fx-paint-v3:checked) .fx-paint-face:nth-child(-n + 3) rect, .fx-paint:has(#fx-paint-v4:checked) .fx-paint-face:nth-child(-n + 4) rect, .fx-paint:has(#fx-paint-v5:checked) .fx-paint-face:nth-child(-n + 5) rect, .fx-paint:has(#fx-paint-v6:checked) .fx-paint-face:nth-child(-n + 6) rect { fill: var(--fx-mint); }
.fx-paint .fx-paint-track { position: relative; height: 54px; margin: 0 30px; border-bottom: 3px solid var(--fx-ink); }
.fx-paint .fx-paint-track::before, .fx-paint .fx-paint-track::after { content: ""; position: absolute; bottom: -6px; width: 2px; height: 12px; background: var(--fx-ink); }
.fx-paint .fx-paint-track::before { left: 0; }
.fx-paint .fx-paint-track::after { right: 0; }
.fx-paint .fx-paint-midtick { position: absolute; left: 50%; bottom: -6px; width: 2px; height: 12px; background: var(--fx-ink); }
.fx-paint .fx-paint-arrow { position: absolute; left: calc(var(--fx-k) * 100% / 6); bottom: 0; transform: translateX(-50%); display: grid; justify-items: center; transition: left 0.65s; }
.fx-paint .fx-paint-arrow span { box-sizing: border-box; width: 64px; border: 2px solid var(--fx-ink); border-radius: 6px; text-align: center; background: var(--fx-mint-pale); color: var(--fx-ink); font-size: 12px; font-weight: 800; line-height: 22px; }
.fx-paint .fx-paint-arrow svg { display: block; width: 24px; height: 20px; }
.fx-paint .fx-paint-arrow polygon { fill: var(--fx-mint); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-paint .fx-paint-marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 8px 28px 0; font-size: 12px; line-height: 1.25; }
.fx-paint .fx-paint-marks span { min-width: 0; overflow-wrap: anywhere; }
.fx-paint .fx-paint-half { text-align: center; border-radius: 5px; }
.fx-paint .fx-paint-marks span:last-child { text-align: right; }
.fx-paint:has(#fx-paint-v3:checked) .fx-paint-half { background: var(--fx-mint); outline: 3px solid var(--fx-mint); box-shadow: 0 0 0 6px var(--fx-mint-pale); }
.fx-paint .fx-paint-zones { display: grid; grid-template-columns: 1fr 1fr; margin: 5px 28px 0; text-align: center; font-size: 12px; line-height: 1.25; }
.fx-paint .fx-paint-stack { display: grid; min-width: 0; }
.fx-paint .fx-paint-stack p { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.fx-paint:has(#fx-paint-v0:checked) .fx-paint-stack .fx-paint-s0, .fx-paint:has(#fx-paint-v1:checked) .fx-paint-stack .fx-paint-s1, .fx-paint:has(#fx-paint-v2:checked) .fx-paint-stack .fx-paint-s2, .fx-paint:has(#fx-paint-v3:checked) .fx-paint-stack .fx-paint-s3, .fx-paint:has(#fx-paint-v4:checked) .fx-paint-stack .fx-paint-s4, .fx-paint:has(#fx-paint-v5:checked) .fx-paint-stack .fx-paint-s5, .fx-paint:has(#fx-paint-v6:checked) .fx-paint-stack .fx-paint-s6 { visibility: visible; }
@container (max-width: 480px) { .fx-paint .fx-paint-scene { height: 550px; grid-template-rows: 312px minmax(0, 1fr); } .fx-paint .fx-paint-top { grid-template-columns: minmax(0, 1fr); grid-template-rows: 180px 118px; } .fx-paint .fx-paint-die figcaption { text-align: center; } }
@media (prefers-reduced-motion: reduce) { .fx-paint .fx-paint-drum, .fx-paint .fx-paint-arrow { transition: none; } }