.fx-balance{--fx-tilt:0deg;--fx-beam:var(--fx-ink);display:grid;gap:14px}
.fx-balance p,.fx-balance fieldset{color:var(--fx-ink)}
.fx-balance .fx-balance-steps{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.fx-balance .fx-balance-goal{margin:0}
.fx-balance .fx-balance-control{border:0;padding:0;margin:0;min-width:0}
.fx-balance .fx-balance-control legend{font-weight:800;padding:0;margin-bottom:10px}
.fx-balance .fx-balance-puzzles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fx-balance .fx-btn{box-sizing:border-box;min-height:44px;display:flex;align-items:center;padding:8px;color:var(--fx-ink);background:var(--fx-paper);line-height:1.35;white-space:normal}
.fx-balance .fx-balance-puzzles .fx-btn{font-size:14px;text-align:left;justify-content:flex-start}
.fx-balance .fx-btn:has(input:checked){color:var(--fx-ink);background:var(--fx-sky-pale);border-color:var(--fx-ink)}
.fx-balance .fx-btn:focus-within{outline:3px solid var(--fx-ink);outline-offset:2px}
.fx-balance .fx-balance-symbols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.fx-balance .fx-balance-symbols .fx-btn{font-size:24px;justify-content:center;min-width:0;padding:8px 2px}
.fx-balance .fx-balance-symbols .fx-balance-clear{font-size:12px}
.fx-balance .fx-balance-stage{height:370px;box-sizing:border-box;padding:0;overflow:hidden;color:var(--fx-ink)}
.fx-balance .fx-balance-picture{position:relative;width:100%;height:100%;max-width:440px;margin:0 auto}
.fx-balance .fx-balance-labels{position:absolute;top:10px;left:6px;right:6px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fx-balance .fx-balance-labels p{margin:0;font-size:12px;font-weight:700;line-height:1.35;text-align:center}
.fx-balance .fx-balance-pivot{position:absolute;top:130px;left:50%;width:54px;height:74px;transform:translateX(-50%);background:var(--fx-sun);clip-path:polygon(50% 0,100% 100%,0 100%)}
.fx-balance .fx-balance-pivot b{position:absolute;top:35px;left:0;width:100%;font-size:22px;line-height:28px;text-align:center}
.fx-balance .fx-balance-beam{position:absolute;top:130px;left:23%;width:54%;height:7px;background:var(--fx-beam);border-radius:4px;transform-origin:50% 50%;transform:rotate(var(--fx-tilt));transition:transform .5s,background .5s}
.fx-balance .fx-balance-left,.fx-balance .fx-balance-right{position:absolute;top:3px;width:0;height:0}
.fx-balance .fx-balance-left{left:0}
.fx-balance .fx-balance-right{right:0}
.fx-balance .fx-balance-pan{position:absolute;top:0;left:-45px;width:90px;height:129px;transform-origin:50% 0;transform:rotate(calc(0deg - var(--fx-tilt)));transition:transform .5s}
.fx-balance .fx-balance-string{position:absolute;left:50%;top:0;height:65px;border-left:2px solid var(--fx-ink)}
.fx-balance .fx-balance-tray{position:absolute;top:65px;left:0;width:100%;height:64px;box-sizing:border-box;border:2px solid var(--fx-ink);border-radius:4px 4px 20px 20px;background:var(--fx-sky-pale)}
.fx-balance .fx-balance-expression{position:absolute;top:70px;left:0;width:100%;height:28px;display:flex;align-items:center;justify-content:center;gap:3px;font-size:16px;font-weight:800;line-height:24px}
.fx-balance .fx-balance-stack{display:grid;place-items:center}
.fx-balance .fx-balance-stack>span,.fx-balance .fx-balance-says>p{grid-area:1 / 1;visibility:hidden}
.fx-balance .fx-balance-gap{box-sizing:border-box;width:26px;height:28px;border:2px dashed var(--fx-ink);border-radius:4px;background:var(--fx-paper)}
.fx-balance .fx-balance-result{position:absolute;top:101px;left:0;width:100%;margin:0;font-size:18px;line-height:22px;font-weight:800}
.fx-balance .fx-balance-answer{position:absolute;top:81px;left:0;width:100%;margin:0;font-size:26px;line-height:32px;font-weight:800}
.fx-balance .fx-balance-pivot-label,.fx-balance .fx-balance-gap-label{position:absolute;left:4px;right:4px;margin:0;text-align:center;font-size:12px;line-height:16px;font-weight:700}
.fx-balance .fx-balance-pivot-label{top:304px}
.fx-balance .fx-balance-gap-label{top:336px}
.fx-balance .fx-balance-says{display:grid}
.fx-balance .fx-balance-says>p{margin:0;min-width:0;box-sizing:border-box;padding:12px;line-height:1.45}
.fx-balance .fx-balance-status>p{font-size:14px}
.fx-balance:has(#fx-balance-n:checked) .fx-balance-gap{background:var(--fx-sun-pale);animation:fx-balance-pulse .8s ease-in-out 3}
.fx-balance:has(#fx-balance-a:checked) .fx-balance-pa,.fx-balance:has(#fx-balance-b:checked) .fx-balance-pb,.fx-balance:has(#fx-balance-c:checked) .fx-balance-pc,.fx-balance:has(#fx-balance-n:checked) .fx-balance-s0,.fx-balance:has(#fx-balance-plus:checked) .fx-balance-s1,.fx-balance:has(#fx-balance-minus:checked) .fx-balance-s2,.fx-balance:has(#fx-balance-times:checked) .fx-balance-s3,.fx-balance:has(#fx-balance-divide:checked) .fx-balance-s4{visibility:visible}
.fx-balance:has(#fx-balance-a:checked):has(#fx-balance-n:checked) .fx-balance-a0,.fx-balance:has(#fx-balance-a:checked):has(#fx-balance-plus:checked) .fx-balance-a1,.fx-balance:has(#fx-balance-a:checked):has(#fx-balance-minus:checked) .fx-balance-a2,.fx-balance:has(#fx-balance-a:checked):has(#fx-balance-times:checked) .fx-balance-a3,.fx-balance:has(#fx-balance-a:checked):has(#fx-balance-divide:checked) .fx-balance-a4,.fx-balance:has(#fx-balance-b:checked):has(#fx-balance-n:checked) .fx-balance-b0,.fx-balance:has(#fx-balance-b:checked):has(#fx-balance-plus:checked) .fx-balance-b1,.fx-balance:has(#fx-balance-b:checked):has(#fx-balance-minus:checked) .fx-balance-b2,.fx-balance:has(#fx-balance-b:checked):has(#fx-balance-times:checked) .fx-balance-b3,.fx-balance:has(#fx-balance-b:checked):has(#fx-balance-divide:checked) .fx-balance-b4,.fx-balance:has(#fx-balance-c:checked):has(#fx-balance-n:checked) .fx-balance-c0,.fx-balance:has(#fx-balance-c:checked):has(#fx-balance-plus:checked) .fx-balance-c1,.fx-balance:has(#fx-balance-c:checked):has(#fx-balance-minus:checked) .fx-balance-c2,.fx-balance:has(#fx-balance-c:checked):has(#fx-balance-times:checked) .fx-balance-c3,.fx-balance:has(#fx-balance-c:checked):has(#fx-balance-divide:checked) .fx-balance-c4{visibility:visible}
.fx-balance:has(#fx-balance-a:checked):has(#fx-balance-plus:checked),.fx-balance:has(#fx-balance-b:checked):has(#fx-balance-plus:checked),.fx-balance:has(#fx-balance-b:checked):has(#fx-balance-minus:checked){--fx-tilt:-10deg}
.fx-balance:has(#fx-balance-a:checked):has(#fx-balance-times:checked),.fx-balance:has(#fx-balance-b:checked):has(#fx-balance-times:checked){--fx-tilt:-18deg}
.fx-balance:has(#fx-balance-a:checked):has(#fx-balance-divide:checked),.fx-balance:has(#fx-balance-c:checked):has(#fx-balance-plus:checked),.fx-balance:has(#fx-balance-c:checked):has(#fx-balance-minus:checked),.fx-balance:has(#fx-balance-c:checked):has(#fx-balance-divide:checked){--fx-tilt:12deg}
.fx-balance:has(#fx-balance-a:checked):has(#fx-balance-minus:checked),.fx-balance:has(#fx-balance-b:checked):has(#fx-balance-divide:checked),.fx-balance:has(#fx-balance-c:checked):has(#fx-balance-times:checked){--fx-beam:var(--fx-mint)}
@container (max-width:480px){.fx-balance .fx-balance-puzzles{grid-template-columns:1fr}}
@keyframes fx-balance-pulse{0%,100%{box-shadow:0 0 0 1px var(--fx-sun)}50%{box-shadow:0 0 0 5px var(--fx-sun-pale)}}
@media (prefers-reduced-motion:reduce){.fx-balance .fx-balance-beam,.fx-balance .fx-balance-pan{transition:none}.fx-balance .fx-balance-gap{animation:none}}