.fx-outweigh { display: grid; gap: 16px; --fx-a: 0; --fx-b: 0; --fx-c: 0; --fx-d: 0; --fx-e: 0; --fx-f: 0; --fx-g: 0; --fx-note-value: 500; --fx-total: calc(var(--fx-a) + var(--fx-b) + var(--fx-c) + var(--fx-d) + var(--fx-e) + var(--fx-f) + var(--fx-g)); --fx-tilt: calc(6deg + (1 - var(--fx-total) / var(--fx-note-value)) * 6deg); }
.fx-outweigh:has(#fx-outweigh-c1:checked) { --fx-a: 1; }
.fx-outweigh:has(#fx-outweigh-c2:checked) { --fx-b: 2; }
.fx-outweigh:has(#fx-outweigh-c5:checked) { --fx-c: 5; }
.fx-outweigh:has(#fx-outweigh-c10:checked) { --fx-d: 10; }
.fx-outweigh:has(#fx-outweigh-c20:checked) { --fx-e: 20; }
.fx-outweigh:has(#fx-outweigh-c100:checked) { --fx-f: 100; }
.fx-outweigh:has(#fx-outweigh-c200:checked) { --fx-g: 200; }
.fx-outweigh:has(#fx-outweigh-n10:checked) { --fx-note-value: 1000; }
.fx-outweigh:has(#fx-outweigh-n20:checked) { --fx-note-value: 2000; }
.fx-outweigh ol { list-style: none; padding: 0; margin: 0; }
.fx-outweigh li { margin: 4px 0; }
.fx-outweigh .fx-o-goal, .fx-outweigh .fx-o-watch { margin: 0; color: var(--fx-ink); }
.fx-outweigh .fx-o-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-outweigh legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.fx-outweigh .fx-o-controls p { margin: 10px 0 0; }
.fx-outweigh .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-outweigh .fx-btn { min-width: 32px; min-height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; color: var(--fx-ink); background: var(--fx-paper); }
.fx-outweigh .fx-btn:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); outline: 2px solid var(--fx-ink); }
.fx-outweigh .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-outweigh .fx-o-coin { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box; width: 28px; height: 28px; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-sun); color: var(--fx-ink); font-size: 12px; font-weight: 700; }
.fx-outweigh .fx-o-small { width: 24px; height: 24px; }
.fx-outweigh .fx-o-large { width: 32px; height: 32px; }
.fx-outweigh .fx-o-seven { border-radius: 0; clip-path: polygon(50% 0%, 89% 19%, 99% 61%, 72% 95%, 28% 95%, 1% 61%, 11% 19%); }
.fx-outweigh .fx-o-twelve { border-radius: 0; clip-path: polygon(37% 0%, 63% 0%, 87% 13%, 100% 37%, 100% 63%, 87% 87%, 63% 100%, 37% 100%, 13% 87%, 0% 63%, 0% 37%, 13% 13%); }
.fx-outweigh .fx-o-stage { position: relative; height: 310px; box-sizing: border-box; overflow: hidden; color: var(--fx-ink); }
.fx-outweigh .fx-o-title { position: absolute; top: 12px; left: 0; width: 100%; text-align: center; }
.fx-outweigh .fx-o-counter { position: absolute; bottom: 12px; left: 4%; width: 92%; height: 12px; background: var(--fx-sun); border: 2px solid var(--fx-ink); box-sizing: border-box; }
.fx-outweigh .fx-o-base { position: absolute; bottom: 26px; left: 35%; width: 30%; height: 22px; background: var(--fx-sky); border: 2px solid var(--fx-ink); transform: skewX(-14deg); }
.fx-outweigh .fx-o-post { position: absolute; bottom: 48px; left: calc(50% - 7px); width: 14px; height: 118px; background: var(--fx-sky); border: 2px solid var(--fx-ink); box-sizing: border-box; }
.fx-outweigh .fx-o-space { position: absolute; top: 145px; left: 14%; width: 72%; height: 120px; perspective: 700px; }
.fx-outweigh .fx-o-beam { position: relative; width: 100%; height: 10px; transform-style: preserve-3d; transform: rotateX(12deg) rotateZ(var(--fx-tilt)); transition: transform 0.5s; }
.fx-outweigh .fx-o-arm { position: absolute; inset: 0; background: var(--fx-coral); border: 2px solid var(--fx-ink); transform: translateZ(4px); }
.fx-outweigh .fx-o-pan { position: absolute; top: -100px; width: 45%; height: 105px; box-sizing: border-box; border-bottom: 6px solid var(--fx-ink); transform-style: preserve-3d; transform-origin: 50% 100%; transform: rotateZ(calc(-1 * var(--fx-tilt))) rotateX(-12deg) translateZ(8px); transition: transform 0.5s; text-align: center; }
.fx-outweigh .fx-o-left { left: -20%; }
.fx-outweigh .fx-o-right { right: -20%; }
.fx-outweigh .fx-o-pan b { display: block; font-size: 12px; margin-bottom: 4px; }
.fx-outweigh .fx-o-pile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; align-items: end; height: 78px; }
.fx-outweigh .fx-o-pile .fx-o-coin { width: 22px; height: 22px; visibility: hidden; border-width: 1px; }
.fx-outweigh .fx-o-pile .fx-o-small { width: 19px; height: 19px; }
.fx-outweigh .fx-o-notes { display: grid; height: 78px; align-items: end; justify-items: center; }
.fx-outweigh .fx-o-bank { grid-area: 1 / 1; visibility: hidden; display: flex; align-items: center; justify-content: center; box-sizing: border-box; background: var(--fx-mint); border: 2px solid var(--fx-ink); color: var(--fx-ink); font-size: 12px; font-weight: 700; }
.fx-outweigh .fx-o-bank5 { width: 76%; height: 36px; }
.fx-outweigh .fx-o-bank10 { width: 86%; height: 40px; background: var(--fx-sun-pale); }
.fx-outweigh .fx-o-bank20 { width: 96%; height: 44px; background: var(--fx-sky-pale); }
.fx-outweigh .fx-o-swap { display: grid; min-width: 0; }
.fx-outweigh .fx-o-swap > p { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-outweigh .fx-o-updates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-outweigh .fx-o-updates p { font-size: 14px; }
.fx-outweigh .fx-o-swap .fx-o-off1, .fx-outweigh .fx-o-swap .fx-o-off2, .fx-outweigh .fx-o-swap .fx-o-off5, .fx-outweigh .fx-o-swap .fx-o-off10, .fx-outweigh .fx-o-swap .fx-o-off20, .fx-outweigh .fx-o-swap .fx-o-off100, .fx-outweigh .fx-o-swap .fx-o-off200 { visibility: visible; }
.fx-outweigh:has(#fx-outweigh-c1:checked) .fx-o-on1, .fx-outweigh:has(#fx-outweigh-c2:checked) .fx-o-on2, .fx-outweigh:has(#fx-outweigh-c5:checked) .fx-o-on5, .fx-outweigh:has(#fx-outweigh-c10:checked) .fx-o-on10, .fx-outweigh:has(#fx-outweigh-c20:checked) .fx-o-on20, .fx-outweigh:has(#fx-outweigh-c100:checked) .fx-o-on100, .fx-outweigh:has(#fx-outweigh-c200:checked) .fx-o-on200 { visibility: visible; }
.fx-outweigh:has(#fx-outweigh-c1:checked) .fx-o-off1, .fx-outweigh:has(#fx-outweigh-c2:checked) .fx-o-off2, .fx-outweigh:has(#fx-outweigh-c5:checked) .fx-o-off5, .fx-outweigh:has(#fx-outweigh-c10:checked) .fx-o-off10, .fx-outweigh:has(#fx-outweigh-c20:checked) .fx-o-off20, .fx-outweigh:has(#fx-outweigh-c100:checked) .fx-o-off100, .fx-outweigh:has(#fx-outweigh-c200:checked) .fx-o-off200 { visibility: hidden; }
.fx-outweigh:has(#fx-outweigh-n5:checked) .fx-o-bank5, .fx-outweigh:has(#fx-outweigh-n10:checked) .fx-o-bank10, .fx-outweigh:has(#fx-outweigh-n20:checked) .fx-o-bank20, .fx-outweigh:has(#fx-outweigh-n10:checked) .fx-o-ten, .fx-outweigh:has(#fx-outweigh-n20:checked) .fx-o-twenty { visibility: visible; }
.fx-outweigh:has(#fx-outweigh-n5:checked):not(:has(input[type=checkbox]:checked)) .fx-o-start, .fx-outweigh:has(#fx-outweigh-n5:checked):has(input[type=checkbox]:checked) .fx-o-five, .fx-outweigh:not(:has(input[type=checkbox]:checked)) .fx-o-empty, .fx-outweigh:has(input[type=checkbox]:checked):has(input[type=checkbox]:not(:checked)) .fx-o-some, .fx-outweigh:not(:has(input[type=checkbox]:not(:checked))) .fx-right { visibility: visible; }
.fx-outweigh:not(:has(input[type=checkbox]:not(:checked))) .fx-o-bank { outline: 4px solid var(--fx-sun); outline-offset: 3px; }
@container (max-width: 480px) { .fx-outweigh .fx-o-updates { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-outweigh .fx-o-beam, .fx-outweigh .fx-o-pan { transition: none; } }