.fx-counter{display:grid;gap:16px;--fx-k:0;--fx-v0:visible;--fx-v1:hidden;--fx-v2:hidden;--fx-v3:hidden;--fx-v4:hidden;--fx-v5:hidden;--fx-v6:hidden;--fx-v7:hidden;--fx-v8:hidden;--fx-v9:hidden;--fx-a:hidden;--fx-b:hidden;--fx-hint:visible;--fx-edge:var(--fx-muted)}.fx-counter p{margin:0}.fx-counter ol{margin:0;padding-left:24px}.fx-counter .fx-controls,.fx-counter .fx-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.fx-counter fieldset{min-width:0;margin:0;padding:0;border:0}.fx-counter legend{font-weight:700;margin-bottom:8px;padding:0}.fx-counter .fx-row{gap:6px}.fx-counter .fx-btn{min-width:32px;min-height:32px;box-sizing:border-box;justify-content:center;color:var(--fx-ink)}.fx-counter .fx-btn:has(input:checked){background:var(--fx-sun);color:var(--fx-ink)}.fx-counter .fx-btn:has(input:focus-visible){outline:3px solid var(--fx-ink);outline-offset:3px}.fx-counter .fx-feedback,.fx-counter .fx-says{display:grid}.fx-counter .fx-feedback p,.fx-counter .fx-says p{grid-area:1 / 1;align-self:start}.fx-counter .fx-hint{visibility:var(--fx-hint)}.fx-counter .fx-a{visibility:var(--fx-a)}.fx-counter .fx-b{visibility:var(--fx-b)}.fx-counter .fx-m0{visibility:var(--fx-v0)}.fx-counter .fx-m1{visibility:var(--fx-v1)}.fx-counter .fx-m2{visibility:var(--fx-v2)}.fx-counter .fx-m3{visibility:var(--fx-v3)}.fx-counter .fx-m4{visibility:var(--fx-v4)}.fx-counter .fx-m5{visibility:var(--fx-v5)}.fx-counter .fx-m6{visibility:var(--fx-v6)}.fx-counter .fx-m7{visibility:var(--fx-v7)}.fx-counter .fx-m8{visibility:var(--fx-v8)}.fx-counter .fx-m9{visibility:var(--fx-v9)}.fx-counter:has(#fx-counter-h1:checked) .fx-h{--fx-k:1;--fx-v0:hidden;--fx-v1:visible}.fx-counter:has(#fx-counter-t1:checked) .fx-t{--fx-k:1;--fx-v0:hidden;--fx-v1:visible}.fx-counter:has(#fx-counter-t2:checked) .fx-t{--fx-k:2;--fx-v0:hidden;--fx-v2:visible}.fx-counter:has(#fx-counter-t3:checked) .fx-t{--fx-k:3;--fx-v0:hidden;--fx-v3:visible}.fx-counter:has(#fx-counter-t4:checked) .fx-t{--fx-k:4;--fx-v0:hidden;--fx-v4:visible}.fx-counter:has(#fx-counter-t5:checked) .fx-t{--fx-k:5;--fx-v0:hidden;--fx-v5:visible}.fx-counter:has(#fx-counter-t6:checked) .fx-t{--fx-k:6;--fx-v0:hidden;--fx-v6:visible}.fx-counter:has(#fx-counter-t7:checked) .fx-t{--fx-k:7;--fx-v0:hidden;--fx-v7:visible}.fx-counter:has(#fx-counter-t8:checked) .fx-t{--fx-k:8;--fx-v0:hidden;--fx-v8:visible}.fx-counter:has(#fx-counter-t9:checked) .fx-t{--fx-k:9;--fx-v0:hidden;--fx-v9:visible}.fx-counter:has(#fx-counter-u1:checked) .fx-u{--fx-k:1;--fx-v0:hidden;--fx-v1:visible}.fx-counter:has(#fx-counter-u2:checked) .fx-u{--fx-k:2;--fx-v0:hidden;--fx-v2:visible}.fx-counter:has(#fx-counter-u3:checked) .fx-u{--fx-k:3;--fx-v0:hidden;--fx-v3:visible}.fx-counter:has(#fx-counter-u4:checked) .fx-u{--fx-k:4;--fx-v0:hidden;--fx-v4:visible}.fx-counter:has(#fx-counter-u5:checked) .fx-u{--fx-k:5;--fx-v0:hidden;--fx-v5:visible}.fx-counter:has(#fx-counter-u6:checked) .fx-u{--fx-k:6;--fx-v0:hidden;--fx-v6:visible}.fx-counter:has(#fx-counter-u7:checked) .fx-u{--fx-k:7;--fx-v0:hidden;--fx-v7:visible}.fx-counter:has(#fx-counter-u8:checked) .fx-u{--fx-k:8;--fx-v0:hidden;--fx-v8:visible}.fx-counter:has(#fx-counter-u9:checked) .fx-u{--fx-k:9;--fx-v0:hidden;--fx-v9:visible}.fx-counter:has(#fx-counter-h1:checked):has(#fx-counter-t0:checked):has(#fx-counter-u8:checked){--fx-a:visible;--fx-hint:hidden;--fx-edge:var(--fx-mint)}.fx-counter:has(#fx-counter-h1:checked):has(#fx-counter-t8:checked):has(#fx-counter-u0:checked){--fx-b:visible;--fx-hint:hidden;--fx-edge:var(--fx-mint)}.fx-counter .fx-stage{height:310px;box-sizing:border-box;padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--fx-ink)}.fx-counter .fx-stage b{font-size:14px;text-align:center}.fx-counter small{font-size:12px}.fx-counter .fx-case{position:relative;perspective:400px;width:100%;max-width:140px;height:90px;flex-shrink:0;box-sizing:border-box;border:7px solid var(--fx-edge);border-radius:12px;background:var(--fx-paper);overflow:hidden}.fx-counter .fx-wheel{position:absolute;left:20%;top:25px;width:60%;height:24px;transform-style:preserve-3d;transform:translateZ(-37px) rotateX(calc(var(--fx-k) * -36deg));transition:transform 0.6s steps(6,end)}.fx-counter .fx-wheel span{--fx-i:0;position:absolute;inset:0;display:grid;place-items:center;font-size:22px;font-weight:800;line-height:24px;color:var(--fx-ink);background:var(--fx-paper);border:1px solid var(--fx-muted);box-sizing:border-box;backface-visibility:hidden;transform:rotateX(calc(var(--fx-i) * 36deg)) translateZ(37px)}.fx-counter .fx-wheel span:nth-child(2){--fx-i:1}.fx-counter .fx-wheel span:nth-child(3){--fx-i:2}.fx-counter .fx-wheel span:nth-child(4){--fx-i:3}.fx-counter .fx-wheel span:nth-child(5){--fx-i:4}.fx-counter .fx-wheel span:nth-child(6){--fx-i:5}.fx-counter .fx-wheel span:nth-child(7){--fx-i:6}.fx-counter .fx-wheel span:nth-child(8){--fx-i:7}.fx-counter .fx-wheel span:nth-child(9){--fx-i:8}.fx-counter .fx-wheel span:nth-child(10){--fx-i:9}.fx-counter .fx-pointer{position:absolute;right:2px;top:32px;width:9px;height:10px;background:var(--fx-coral);clip-path:polygon(0 50%,100% 0,100% 100%)}.fx-counter .fx-tray{display:flex;justify-content:center;align-items:center;width:100%;max-width:140px;height:124px;box-sizing:border-box;padding:6px;background:var(--fx-sun-pale);border:4px solid var(--fx-sun);border-radius:5px}.fx-counter .fx-piece{--fx-on:clamp(0,calc(var(--fx-k) - var(--fx-i) + 1),1);opacity:var(--fx-on);transform:translateY(calc((1 - var(--fx-on)) * -12px));transition:opacity 0.3s,transform 0.3s}.fx-counter .fx-flat{width:100px;height:100px;max-width:100%}.fx-counter .fx-tray rect{fill:var(--fx-sky);stroke:var(--fx-ink);stroke-width:1}.fx-counter .fx-tray path{fill:none;stroke:var(--fx-ink);stroke-width:1}.fx-counter .fx-rods{flex-direction:column;gap:1px}.fx-counter .fx-rods svg{width:100%;max-width:100px;height:10px}.fx-counter .fx-rods rect{fill:var(--fx-mint)}.fx-counter .fx-cube-pieces{display:flex;flex-wrap:wrap;gap:8px;width:76px;flex-shrink:0}.fx-counter .fx-cubes span{width:20px;height:20px;box-sizing:border-box;background:var(--fx-coral);border:2px solid var(--fx-ink);box-shadow:3px -3px 0 var(--fx-sun)}.fx-counter .fx-says{margin-top:10px}@container (max-width:480px){.fx-counter .fx-controls,.fx-counter .fx-columns{grid-template-columns:minmax(0,1fr)}}@media (prefers-reduced-motion:reduce){.fx-counter .fx-wheel,.fx-counter .fx-piece{transition:none}}