.fx-clock { --fx-angle: 0deg; --fx-count: 0; display: grid; gap: 16px; }
.fx-clock:has(#fx-clock-n1:checked) { --fx-angle: 30deg; --fx-count: 1; }
.fx-clock:has(#fx-clock-n2:checked) { --fx-angle: 60deg; --fx-count: 2; }
.fx-clock:has(#fx-clock-n3:checked) { --fx-angle: 90deg; --fx-count: 3; }
.fx-clock:has(#fx-clock-n4:checked) { --fx-angle: 120deg; --fx-count: 4; }
.fx-clock:has(#fx-clock-n5:checked) { --fx-angle: 150deg; --fx-count: 5; }
.fx-clock:has(#fx-clock-n6:checked) { --fx-angle: 180deg; --fx-count: 6; }
.fx-clock:has(#fx-clock-n7:checked) { --fx-angle: 210deg; --fx-count: 7; }
.fx-clock:has(#fx-clock-n8:checked) { --fx-angle: 240deg; --fx-count: 8; }
.fx-clock:has(#fx-clock-n9:checked) { --fx-angle: 270deg; --fx-count: 9; }
.fx-clock:has(#fx-clock-n10:checked) { --fx-angle: 300deg; --fx-count: 10; }
.fx-clock:has(#fx-clock-n11:checked) { --fx-angle: 330deg; --fx-count: 11; }
.fx-clock:has(#fx-clock-n12:checked) { --fx-angle: 360deg; --fx-count: 12; }
.fx-clock .fx-clock-steps { margin: 0; padding-left: 24px; }
.fx-clock .fx-clock-steps li { padding: 3px 0; }
.fx-clock .fx-clock-goal, .fx-clock .fx-clock-key, .fx-clock .fx-clock-part { margin: 0; color: var(--fx-ink); }
.fx-clock .fx-clock-controls { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-clock .fx-clock-controls legend { padding: 0; margin-bottom: 12px; font-weight: 800; max-width: 100%; color: var(--fx-ink); }
.fx-clock .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-clock .fx-btn { min-height: 36px; box-sizing: border-box; color: var(--fx-ink); background: var(--fx-paper); border: 2px solid var(--fx-ink); cursor: pointer; }
.fx-clock .fx-btn:hover { background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-clock .fx-btn:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-clock .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-clock .fx-clock-reset { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 12px; }
.fx-clock .fx-clock-reset small { font-size: 12px; }
.fx-clock .fx-clock-key { font-size: 14px; }
.fx-clock .fx-clock-stage { position: relative; display: grid; place-items: center; height: 320px; min-height: 0; min-width: 0; padding: 10px; box-sizing: border-box; }
.fx-clock .fx-clock-dial { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1; border: 3px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); box-sizing: border-box; }
.fx-clock .fx-clock-number { position: absolute; z-index: 3; left: var(--fx-x); top: var(--fx-y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 36px; height: 36px; min-width: 36px; min-height: 36px; margin: 0; padding: 0; border-radius: 50%; line-height: 1; }
.fx-clock .fx-clock-number b { font-size: 16px; color: var(--fx-ink); }
.fx-clock .fx-clock-number small { font-size: 12px; font-weight: 400; color: var(--fx-muted); }
.fx-clock .fx-clock-number:has(input:focus-visible) { z-index: 4; }
.fx-clock .fx-clock-hand { position: absolute; z-index: 1; left: calc(50% - 4px); bottom: 50%; width: 8px; height: 32%; box-sizing: border-box; border: 1px solid var(--fx-ink); border-radius: 6px; background: var(--fx-sky); transform-origin: 50% 100%; transform: rotate(var(--fx-angle)); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fx-clock .fx-clock-pin { position: absolute; z-index: 2; left: 50%; top: 50%; width: 14px; height: 14px; border: 2px solid var(--fx-ink); box-sizing: border-box; border-radius: 50%; background: var(--fx-sky); transform: translate(-50%, -50%); }
.fx-clock .fx-clock-count { display: grid; gap: 12px; min-width: 0; }
.fx-clock .fx-clock-coins { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.fx-clock .fx-clock-coin { position: relative; display: grid; place-items: center; justify-self: center; width: 30px; height: 30px; box-sizing: border-box; overflow: hidden; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; font-weight: 800; }
.fx-clock .fx-clock-coin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--fx-sky); opacity: clamp(0, calc(var(--fx-count) - var(--fx-i) + 1), 1); }
.fx-clock .fx-clock-coin:last-child::before { background: var(--fx-sun); }
.fx-clock .fx-clock-coin span { position: relative; }
.fx-clock .fx-clock-says { display: grid; min-width: 0; }
.fx-clock .fx-clock-says p { grid-area: 1 / 1; visibility: hidden; margin: 0; color: var(--fx-ink); }
.fx-clock .fx-clock-says small { display: inline-block; margin-top: 8px; font-size: 12px; }
.fx-clock:has(#fx-clock-start:checked) .fx-clock-s0, .fx-clock:has(#fx-clock-n1:checked) .fx-clock-s1, .fx-clock:has(#fx-clock-n2:checked) .fx-clock-s2, .fx-clock:has(#fx-clock-n3:checked) .fx-clock-s3, .fx-clock:has(#fx-clock-n4:checked) .fx-clock-s4, .fx-clock:has(#fx-clock-n5:checked) .fx-clock-s5, .fx-clock:has(#fx-clock-n6:checked) .fx-clock-s6, .fx-clock:has(#fx-clock-n7:checked) .fx-clock-s7, .fx-clock:has(#fx-clock-n8:checked) .fx-clock-s8, .fx-clock:has(#fx-clock-n9:checked) .fx-clock-s9, .fx-clock:has(#fx-clock-n10:checked) .fx-clock-s10, .fx-clock:has(#fx-clock-n11:checked) .fx-clock-s11, .fx-clock:has(#fx-clock-n12:checked) .fx-clock-s12 { visibility: visible; }
@container (max-width: 480px) { .fx-clock .fx-clock-controls { grid-template-columns: minmax(0, 1fr); } .fx-clock .fx-clock-coins { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .fx-clock .fx-clock-hand { transition: none; } }