.fx-scales { --fx-turn: -12deg; --fx-speed: 550ms; display: grid; gap: 16px; }
.fx-scales:has(#fx-scales-17:checked) { --fx-turn: -5deg; }
.fx-scales:has(#fx-scales-27:checked) { --fx-turn: 0deg; }
.fx-scales:has(#fx-scales-37:checked) { --fx-turn: 5deg; }
.fx-scales:has(#fx-scales-113:checked) { --fx-turn: 16deg; --fx-speed: 220ms; }
.fx-scales .fx-scales-guide { color: var(--fx-ink); }
.fx-scales .fx-scales-guide ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 16px; line-height: 1.5; }
.fx-scales .fx-scales-goal { margin: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.5; }
.fx-scales .fx-scales-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
.fx-scales .fx-scales-controls legend { max-width: 100%; padding: 0; margin-bottom: 12px; font-size: 16px; line-height: 1.5; font-weight: 800; color: var(--fx-ink); }
.fx-scales .fx-scales-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-scales .fx-btn { box-sizing: border-box; min-height: 44px; padding: 10px 12px; font-size: 16px; color: var(--fx-ink); background: var(--fx-paper); }
.fx-scales .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-scales .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-scales .fx-scales-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--fx-ink); }
.fx-scales .fx-scales-work { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 16px; }
.fx-scales .fx-scales-scene { position: relative; box-sizing: border-box; width: 100%; max-width: 580px; height: 410px; min-height: 410px; margin: 0 auto; padding: 0; color: var(--fx-ink); }
.fx-scales .fx-scales-state { grid-area: 1 / 1; visibility: hidden; }
.fx-scales:has(#fx-scales-none:checked) .fx-scales-s0, .fx-scales:has(#fx-scales-17:checked) .fx-scales-s17, .fx-scales:has(#fx-scales-27:checked) .fx-scales-s27, .fx-scales:has(#fx-scales-37:checked) .fx-scales-s37, .fx-scales:has(#fx-scales-113:checked) .fx-scales-s113 { visibility: visible; }
.fx-scales .fx-scales-maths { position: absolute; top: 10px; left: 8px; right: 8px; display: grid; align-items: center; text-align: center; }
.fx-scales .fx-scales-maths p { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 800; color: var(--fx-ink); }
.fx-scales .fx-scales-labels { position: absolute; top: 85px; left: 3%; right: 3%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; text-align: center; font-size: 12px; line-height: 1.4; }
.fx-scales .fx-scales-stand { position: absolute; top: 184px; left: 40%; width: 20%; height: 146px; }
.fx-scales .fx-scales-stand path { fill: var(--fx-sky); stroke: var(--fx-ink); stroke-width: 3; stroke-linejoin: round; }
.fx-scales .fx-scales-centre { position: absolute; top: 133px; left: 50%; height: 11px; border-left: 2px solid var(--fx-ink); }
.fx-scales .fx-scales-pointer { position: absolute; box-sizing: border-box; top: 144px; left: calc(50% - 4px); width: 8px; height: 40px; border: 1px solid var(--fx-ink); border-radius: 4px 4px 0 0; background: var(--fx-coral); transform-origin: 50% 100%; transform: rotate(var(--fx-turn)); transition: transform var(--fx-speed) ease-out; }
.fx-scales:has(#fx-scales-27:checked) .fx-scales-pointer { background: var(--fx-mint); }
.fx-scales .fx-scales-beam { position: absolute; top: 184px; left: 18%; width: 64%; height: 6px; border-radius: 3px; background: var(--fx-ink); transform: rotate(var(--fx-turn)); transform-origin: 50% 50%; transition: transform var(--fx-speed) ease-out; }
.fx-scales .fx-scales-hanger { position: absolute; top: 3px; width: 54%; height: 100px; transform-origin: 50% 0; transform: translateX(-50%) rotate(calc(0deg - var(--fx-turn))); transition: transform var(--fx-speed) ease-out; }
.fx-scales .fx-scales-left { left: 0; }
.fx-scales .fx-scales-right { left: 100%; }
.fx-scales .fx-scales-ropes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.fx-scales .fx-scales-ropes path { fill: none; stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-scales .fx-scales-pan { position: absolute; box-sizing: border-box; bottom: 0; left: 0; width: 100%; height: 8px; border: 2px solid var(--fx-ink); border-radius: 0 0 12px 12px; background: var(--fx-sun); }
.fx-scales .fx-scales-parcel { position: absolute; box-sizing: border-box; bottom: 8px; left: 16%; width: 68%; height: 48px; display: grid; place-items: center; border: 2px solid var(--fx-ink); border-radius: 3px; background: var(--fx-sun-pale); font-size: 12px; }
.fx-scales .fx-scales-parcel::before { content: ""; position: absolute; top: 5px; left: 0; width: 100%; height: 5px; background: var(--fx-sun); }
.fx-scales .fx-scales-known { position: absolute; box-sizing: border-box; bottom: 8px; left: 3%; width: 43%; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--fx-muted); border-radius: 8px 8px 2px 2px; background: var(--fx-paper); font-size: 12px; line-height: 1.2; }
.fx-scales .fx-scales-load { position: absolute; bottom: 8px; left: 54%; width: 43%; height: 66px; display: grid; align-items: end; }
.fx-scales .fx-scales-load .fx-scales-state { box-sizing: border-box; width: 100%; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--fx-ink); border-radius: 8px 8px 2px 2px; background: var(--fx-sky-pale); font-size: 12px; line-height: 1.2; transform: translateY(-18px); transition: transform 350ms ease-out; }
.fx-scales .fx-scales-load .fx-scales-empty { border-style: dashed; background: var(--fx-paper); font-size: 20px; }
.fx-scales .fx-scales-load .fx-scales-s27 { background: var(--fx-mint); }
.fx-scales .fx-scales-load .fx-scales-s113 { height: 66px; }
.fx-scales:has(#fx-scales-none:checked) .fx-scales-load .fx-scales-s0, .fx-scales:has(#fx-scales-17:checked) .fx-scales-load .fx-scales-s17, .fx-scales:has(#fx-scales-27:checked) .fx-scales-load .fx-scales-s27, .fx-scales:has(#fx-scales-37:checked) .fx-scales-load .fx-scales-s37, .fx-scales:has(#fx-scales-113:checked) .fx-scales-load .fx-scales-s113 { transform: translateY(0); }
.fx-scales .fx-scales-pivot { position: absolute; box-sizing: border-box; top: 179px; left: calc(50% - 7px); width: 14px; height: 14px; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-sun); }
.fx-scales .fx-scales-gap { position: absolute; top: 345px; right: 3%; width: 43%; margin: 0; font-size: 12px; line-height: 1.4; text-align: center; }
.fx-scales .fx-scales-pointer-label { position: absolute; bottom: 10px; left: 0; width: 100%; margin: 0; font-size: 12px; line-height: 1.5; text-align: center; font-weight: 800; }
.fx-scales .fx-scales-feedback { min-width: 0; display: grid; }
.fx-scales .fx-scales-feedback p { box-sizing: border-box; margin: 0; padding: 16px; font-size: 16px; line-height: 1.5; color: var(--fx-ink); }
@container (max-width: 480px) { .fx-scales .fx-scales-work { grid-template-columns: minmax(0, 1fr); } }