.fx-dial { --fx-k: 1; --fx-angle: -120deg; display: grid; gap: 12px; }
.fx-dial:has(#fx-dial-t:checked) { --fx-k: 0; --fx-angle: 0deg; }
.fx-dial:has(#fx-dial-k:checked) { --fx-k: 2; --fx-angle: 120deg; }
.fx-dial .fx-note ol { margin: 0; padding-left: 24px; }
.fx-dial .fx-goal, .fx-dial .fx-read, .fx-dial .fx-rule { margin: 0; color: var(--fx-ink); }
.fx-dial .fx-field { min-width: 0; border: 0; padding: 0; margin: 0; }
.fx-dial .fx-field legend { padding: 0; margin-bottom: 8px; font-weight: 800; }
.fx-dial .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-dial .fx-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 40px; padding: 8px 12px; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; cursor: pointer; }
.fx-dial .fx-btn:has(input:checked) { background: var(--fx-sun-pale); color: var(--fx-ink); }
.fx-dial .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-dial .fx-scene { position: relative; display: grid; grid-template-columns: 216px minmax(0, 1fr); align-items: center; gap: 12px; height: 340px; padding: 12px; box-sizing: border-box; color: var(--fx-ink); }
.fx-dial .fx-dial-unit { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.fx-dial .fx-wheel { position: relative; width: 216px; max-width: 100%; aspect-ratio: 1; }
.fx-dial .fx-gear { position: absolute; inset: 10px; border: 12px dashed var(--fx-ink); border-radius: 50%; background: var(--fx-sun-pale); transform: rotateZ(var(--fx-angle)); transition: transform 0.6s steps(4, end); }
.fx-dial .fx-tick { position: absolute; z-index: 2; padding: 2px 0; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; font-weight: 800; text-align: center; border-radius: 3px; }
.fx-dial .fx-tick10 { top: 7px; left: calc(50% - 44px); width: 88px; }
.fx-dial .fx-tick100 { bottom: 27px; left: 9px; width: 86px; }
.fx-dial .fx-tick1000 { bottom: 27px; right: 6px; width: 96px; }
.fx-dial .fx-window { position: absolute; left: 16%; top: 35%; width: 68%; height: 64px; overflow: hidden; perspective: 500px; border: 2px solid var(--fx-ink); border-radius: 6px; box-sizing: border-box; background: var(--fx-paper); }
.fx-dial .fx-drum { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(calc(var(--fx-k) * -120deg)); transition: transform 0.6s steps(4, end); }
.fx-dial .fx-face { position: absolute; top: calc(50% - 52px); left: 0; width: 100%; height: 104px; display: grid; place-items: center; backface-visibility: hidden; background: var(--fx-sky-pale); font-size: 14px; font-weight: 800; transform: rotateX(calc(var(--fx-i) * 120deg)) translateZ(30px); }
.fx-dial .fx-pointer { position: absolute; inset: 14px; z-index: 3; transform: rotateZ(var(--fx-angle)); transition: transform 0.6s steps(4, end); }
.fx-dial .fx-pointer::before { content: ""; position: absolute; top: 9px; left: calc(50% - 7px); width: 14px; height: 22px; background: var(--fx-coral); clip-path: polygon(50% 0%, 100% 45%, 70% 45%, 70% 100%, 30% 100%, 30% 45%, 0% 45%); }
.fx-dial .fx-tags { display: grid; gap: 8px; min-width: 0; }
.fx-dial .fx-tag { min-width: 0; padding: 8px; border: 2px dashed var(--fx-ink); border-radius: 10px; background: var(--fx-paper); text-align: center; }
.fx-dial .fx-tag > b { display: block; font-size: 14px; line-height: 20px; }
.fx-dial .fx-sources, .fx-dial .fx-answers, .fx-dial .fx-says, .fx-dial .fx-hints { display: grid; min-width: 0; }
.fx-dial .fx-sources { min-height: 70px; }
.fx-dial .fx-answers { height: 48px; }
.fx-dial .fx-pick { grid-area: 1 / 1; visibility: hidden; padding-top: 22px; }
.fx-dial .fx-digits, .fx-dial .fx-answers > .fx-state { display: flex; justify-content: center; align-items: center; gap: 4px; }
.fx-dial .fx-state { --fx-active: 0; grid-area: 1 / 1; visibility: hidden; }
.fx-dial .fx-says > p, .fx-dial .fx-hints > p { margin: 0; color: var(--fx-ink); }
.fx-dial .fx-digit { position: relative; display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 44px; box-sizing: border-box; border: 1px solid var(--fx-ink); border-radius: 5px; background: var(--fx-paper); color: var(--fx-ink); font-size: 22px; font-weight: 800; line-height: 1; perspective: 300px; }
.fx-dial .fx-comma { position: absolute; right: -5px; bottom: 1px; z-index: 1; font-size: 16px; }
.fx-dial .fx-ghost { opacity: 0; border-style: dashed; background: var(--fx-sky-pale); }
.fx-dial:has(#fx-dial-k:checked) .fx-ghost { opacity: 1; }
.fx-dial .fx-sources .fx-digit::after { content: ""; position: absolute; left: calc(50% - 6px); top: -21px; width: 12px; height: 16px; opacity: 0; background: var(--fx-coral); clip-path: polygon(35% 0%, 65% 0%, 65% 55%, 100% 55%, 50% 100%, 0% 55%, 35% 55%); }
.fx-dial .fx-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 12px; font-size: 12px; line-height: 20px; }
.fx-dial .fx-keys > span { white-space: nowrap; }
.fx-dial .fx-key-round { display: inline-block; width: 12px; height: 16px; box-sizing: border-box; border: 3px solid var(--fx-sky); vertical-align: middle; }
.fx-dial .fx-key-look { display: inline-block; width: 12px; height: 16px; vertical-align: middle; background: var(--fx-coral); clip-path: polygon(35% 0%, 65% 0%, 65% 55%, 100% 55%, 50% 100%, 0% 55%, 35% 55%); }
.fx-dial:has(#fx-dial-a:checked) .fx-na, .fx-dial:has(#fx-dial-b:checked) .fx-nb, .fx-dial:has(#fx-dial-c:checked) .fx-nc { visibility: visible; }
.fx-dial:has(#fx-dial-t:checked) .fx-sources .fx-digit:nth-last-child(2), .fx-dial:has(#fx-dial-h:checked) .fx-sources .fx-digit:nth-last-child(3), .fx-dial:has(#fx-dial-k:checked) .fx-sources .fx-digit:nth-last-child(4) { border-width: 3px; border-color: var(--fx-sky); }
.fx-dial:has(#fx-dial-t:checked) .fx-sources .fx-digit:last-child::after, .fx-dial:has(#fx-dial-h:checked) .fx-sources .fx-digit:nth-last-child(2)::after, .fx-dial:has(#fx-dial-k:checked) .fx-sources .fx-digit:nth-last-child(3)::after { opacity: 1; }
.fx-dial:has(#fx-dial-a:checked):has(#fx-dial-t:checked) .fx-a10, .fx-dial:has(#fx-dial-a:checked):has(#fx-dial-h:checked) .fx-a100, .fx-dial:has(#fx-dial-a:checked):has(#fx-dial-k:checked) .fx-a1000, .fx-dial:has(#fx-dial-b:checked):has(#fx-dial-t:checked) .fx-b10, .fx-dial:has(#fx-dial-b:checked):has(#fx-dial-h:checked) .fx-b100, .fx-dial:has(#fx-dial-b:checked):has(#fx-dial-k:checked) .fx-b1000, .fx-dial:has(#fx-dial-c:checked):has(#fx-dial-t:checked) .fx-c10, .fx-dial:has(#fx-dial-c:checked):has(#fx-dial-h:checked) .fx-c100, .fx-dial:has(#fx-dial-c:checked):has(#fx-dial-k:checked) .fx-c1000 { --fx-active: 1; visibility: visible; }
.fx-dial .fx-flip { display: grid; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(calc(var(--fx-active) * 180deg)); transition: transform 0.6s steps(4, end); }
.fx-dial .fx-flip > i, .fx-dial .fx-flip > b { grid-area: 1 / 1; display: grid; place-items: center; backface-visibility: hidden; font-style: normal; font-weight: inherit; border-radius: 4px; }
.fx-dial .fx-flip > b { background: var(--fx-mint-pale); transform: rotateX(180deg) translateZ(1px); }
.fx-dial .fx-leading { opacity: calc(1 - var(--fx-active)); transition: opacity 0.6s steps(4, end); }
.fx-dial .fx-zero { transform: translateX(calc(var(--fx-active) * -34px)); transition: transform 0.6s steps(4, end); }
@container (max-width: 480px) { .fx-dial .fx-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: 244px minmax(0, 1fr); height: 580px; } }
@media (prefers-reduced-motion: reduce) { .fx-dial .fx-gear, .fx-dial .fx-drum, .fx-dial .fx-pointer, .fx-dial .fx-flip, .fx-dial .fx-leading, .fx-dial .fx-zero { transition: none; } }