.fx-scales { display: grid; gap: 16px; --fx-angle: -18deg; --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-scales:has(.fx-pick:nth-child(1 of :has(input:checked))) { --fx-angle: -15deg; --fx-v0: hidden; --fx-v1: visible; }
.fx-scales:has(.fx-pick:nth-child(2 of :has(input:checked))) { --fx-angle: -12deg; --fx-v1: hidden; --fx-v2: visible; }
.fx-scales:has(.fx-pick:nth-child(3 of :has(input:checked))) { --fx-angle: -9deg; --fx-v2: hidden; --fx-v3: visible; }
.fx-scales:has(.fx-pick:nth-child(4 of :has(input:checked))) { --fx-angle: -6deg; --fx-v3: hidden; --fx-v4: visible; }
.fx-scales:has(.fx-pick:nth-child(5 of :has(input:checked))) { --fx-angle: -3deg; --fx-v4: hidden; --fx-v5: visible; }
.fx-scales:has(.fx-pick:nth-child(6 of :has(input:checked))) { --fx-angle: 0deg; --fx-v5: hidden; --fx-v6: visible; }
.fx-scales:has(.fx-pick:nth-child(7 of :has(input:checked))) { --fx-angle: 10deg; --fx-v6: hidden; --fx-v7: visible; }
.fx-scales:has(.fx-pick:nth-child(8 of :has(input:checked))) { --fx-angle: 18deg; --fx-v7: hidden; --fx-v8: visible; }
.fx-scales .fx-how { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fx-scales .fx-goal { margin: 0; color: var(--fx-ink); }
.fx-scales .fx-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
.fx-scales .fx-controls legend { padding: 0; margin-bottom: 12px; font-weight: 800; color: var(--fx-ink); }
.fx-scales .fx-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-bottom: 8px; border-bottom: 5px solid var(--fx-muted); }
.fx-scales .fx-pick { display: grid; grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 92px; padding: 8px 4px; box-sizing: border-box; font-size: 14px; line-height: 1.3; color: var(--fx-ink); background: var(--fx-paper); cursor: pointer; }
.fx-scales .fx-pick b { padding: 3px 6px; border: 2px solid var(--fx-muted); border-radius: 8px 8px 2px 2px; background: var(--fx-paper); color: var(--fx-ink); }
.fx-scales .fx-pick:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-scales .fx-pick:has(input:checked) b { background: var(--fx-mint); }
.fx-scales .fx-pick:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 2px; }
.fx-scales .fx-tip, .fx-scales .fx-space { min-height: 16px; font-size: 12px; }
.fx-scales .fx-tip { visibility: var(--fx-v0); }
.fx-scales .fx-space { visibility: hidden; }
.fx-scales .fx-scene { position: relative; height: 420px; padding: 0; box-sizing: border-box; color: var(--fx-ink); }
.fx-scales .fx-machine { position: relative; width: 100%; max-width: 560px; height: 100%; margin: 0 auto; }
.fx-scales .fx-shop { position: absolute; top: 14px; left: 0; width: 100%; text-align: center; font-size: 18px; }
.fx-scales .fx-balanced { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); padding: 5px 12px; background: var(--fx-mint); border: 2px solid var(--fx-ink); border-radius: 8px; font-weight: 800; }
.fx-scales .fx-stand { position: absolute; top: 155px; left: calc(50% - 15px); width: 30px; height: 144px; background: var(--fx-muted); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fx-scales .fx-foot { position: absolute; top: 292px; left: calc(50% - 48px); width: 96px; height: 12px; border-radius: 5px; background: var(--fx-ink); }
.fx-scales .fx-beam { position: absolute; top: 155px; left: 22%; width: 56%; height: 8px; border-radius: 4px; background: var(--fx-ink); transform: rotate(var(--fx-angle)); transform-origin: 50% 50%; transition: transform 0.5s; }
.fx-scales .fx-hanger { position: absolute; top: 4px; width: 0; height: 0; }
.fx-scales .fx-left { left: 0; }
.fx-scales .fx-right-end { left: 100%; }
.fx-scales .fx-pan { position: absolute; top: 0; left: -44px; width: 88px; height: 196px; transform-origin: 50% 0; transform: rotate(calc(0deg - var(--fx-angle))); transition: transform 0.5s; }
.fx-scales .fx-pan::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 96px; box-sizing: border-box; border-left: 2px solid var(--fx-muted); border-right: 2px solid var(--fx-muted); }
.fx-scales .fx-pan::after { content: ""; position: absolute; top: 94px; left: -2px; width: 92px; height: 8px; border-radius: 0 0 8px 8px; background: var(--fx-ink); }
.fx-scales .fx-sack { position: absolute; top: 29px; left: 4px; width: 80px; height: 65px; box-sizing: border-box; display: grid; place-items: center; padding: 6px; border: 2px solid var(--fx-ink); border-radius: 20px 20px 10px 10px; background: var(--fx-sun-pale); font-size: 14px; line-height: 1.4; text-align: center; }
.fx-scales .fx-loads { position: absolute; top: 20px; left: 2px; width: 84px; height: 74px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 2px; }
.fx-scales .fx-load { visibility: hidden; display: grid; place-items: center; box-sizing: border-box; border: 1px solid var(--fx-ink); border-radius: 4px 4px 1px 1px; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; line-height: 1; white-space: nowrap; }
.fx-scales:has(#fx-scales-w1:checked) .fx-load1, .fx-scales:has(#fx-scales-w2:checked) .fx-load2, .fx-scales:has(#fx-scales-w3:checked) .fx-load3, .fx-scales:has(#fx-scales-w4:checked) .fx-load4, .fx-scales:has(#fx-scales-w5:checked) .fx-load5, .fx-scales:has(#fx-scales-w6:checked) .fx-load6, .fx-scales:has(#fx-scales-w7:checked) .fx-load7, .fx-scales:has(#fx-scales-w8:checked) .fx-load8 { visibility: visible; }
.fx-scales .fx-your { position: absolute; top: 107px; left: 0; width: 88px; font-size: 12px; line-height: 1.3; text-align: center; }
.fx-scales .fx-total { position: absolute; top: 131px; left: -4px; width: 96px; box-sizing: border-box; padding: 4px; border: 1px solid var(--fx-ink); border-radius: 4px; background: var(--fx-paper); text-align: center; font-size: 12px; line-height: 1.3; }
.fx-scales .fx-total strong { display: block; }
.fx-scales .fx-values, .fx-scales .fx-feedback { display: grid; }
.fx-scales .fx-values > span, .fx-scales .fx-feedback > p { grid-area: 1 / 1; }
.fx-scales .fx-values > span { font-weight: 800; }
.fx-scales .fx-feedback > p { margin: 0; color: var(--fx-ink); }
.fx-scales .fx-state0 { visibility: var(--fx-v0); }
.fx-scales .fx-state1 { visibility: var(--fx-v1); }
.fx-scales .fx-state2 { visibility: var(--fx-v2); }
.fx-scales .fx-state3 { visibility: var(--fx-v3); }
.fx-scales .fx-state4 { visibility: var(--fx-v4); }
.fx-scales .fx-state5 { visibility: var(--fx-v5); }
.fx-scales .fx-state6 { visibility: var(--fx-v6); }
.fx-scales .fx-state7 { visibility: var(--fx-v7); }
.fx-scales .fx-state8 { visibility: var(--fx-v8); }
@container (max-width: 480px) { .fx-scales .fx-shelf { grid-template-columns: 1fr; } .fx-scales .fx-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 48px; padding: 6px; } }