.fx-weigh { --fx-o: 0; --fx-r: 0; --fx-a: 0; --fx-angle: clamp(-12deg, calc(24deg - (var(--fx-o) + var(--fx-r) + var(--fx-a)) * 12deg), 12deg); display: grid; }
.fx-weigh:has(#fx-weigh-opinion:checked) { --fx-o: 1; }
.fx-weigh:has(#fx-weigh-reason:checked) { --fx-r: 1; }
.fx-weigh:has(#fx-weigh-other:checked) { --fx-a: 1; }
.fx-weigh .fx-weigh-body { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; }
.fx-weigh .fx-weigh-body * { box-sizing: border-box; }
.fx-weigh .fx-weigh-steps { margin: 0; padding-left: 24px; }
.fx-weigh .fx-weigh-steps li + li { margin-top: 6px; }
.fx-weigh .fx-weigh-goal, .fx-weigh .fx-weigh-step { margin: 0; }
.fx-weigh .fx-weigh-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-weigh .fx-weigh-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-weigh .fx-weigh-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-weigh .fx-weigh-choice { display: flex; align-items: flex-start; min-width: 0; min-height: 48px; padding: 12px; text-align: left; white-space: normal; color: var(--fx-ink); background: var(--fx-paper); border: 2px solid var(--fx-ink); border-radius: 8px; line-height: 1.45; cursor: pointer; }
.fx-weigh .fx-weigh-choice b { display: block; margin-bottom: 4px; }
.fx-weigh .fx-weigh-choice:has(input:checked) { color: var(--fx-ink); background: var(--fx-mint-pale); box-shadow: inset 0 0 0 2px var(--fx-ink); }
.fx-weigh .fx-weigh-choice:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-weigh .fx-weigh-scene { position: relative; height: 390px; min-width: 0; padding: 0; overflow: hidden; color: var(--fx-ink); background: var(--fx-sky-pale); }
.fx-weigh .fx-weigh-topic { position: absolute; top: 10px; left: 8px; right: 8px; margin: 0; padding: 6px; text-align: center; font-size: 14px; background: var(--fx-paper); border: 1px solid var(--fx-ink); border-radius: 6px; }
.fx-weigh .fx-weigh-topic span { display: block; font-size: 12px; margin-top: 3px; }
.fx-weigh .fx-weigh-left-label, .fx-weigh .fx-weigh-right-label { position: absolute; top: 88px; width: 44%; margin: 0; text-align: center; font-size: 14px; line-height: 1.25; }
.fx-weigh .fx-weigh-left-label { left: 3%; }
.fx-weigh .fx-weigh-right-label { right: 3%; }
.fx-weigh .fx-weigh-weak, .fx-weigh .fx-weigh-strong { position: absolute; left: 6%; padding: 5px 8px; border: 1px solid var(--fx-ink); border-radius: 6px; font-size: 14px; line-height: 1.25; color: var(--fx-ink); }
.fx-weigh .fx-weigh-weak { top: 128px; background: var(--fx-sun); }
.fx-weigh .fx-weigh-strong { bottom: 16px; background: var(--fx-paper); }
.fx-weigh .fx-weigh-stand { position: absolute; top: 170px; left: 50%; width: 86px; height: 168px; transform: translateX(-50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--fx-sky); }
.fx-weigh .fx-weigh-foot { position: absolute; top: 333px; left: 50%; width: 110px; height: 8px; transform: translateX(-50%); border-radius: 4px; background: var(--fx-ink); }
.fx-weigh .fx-weigh-machine { position: absolute; top: 170px; left: 50%; width: 86%; max-width: 460px; height: 0; transform: translateX(-50%); }
.fx-weigh .fx-weigh-turn { position: relative; width: 100%; height: 0; transform: rotate(var(--fx-angle)); transition: transform 0.6s; }
.fx-weigh .fx-weigh-beam { position: absolute; top: -4px; left: 0; width: 100%; height: 8px; border: 1px solid var(--fx-ink); border-radius: 4px; background: var(--fx-coral); }
.fx-weigh .fx-weigh-pan { position: absolute; top: 0; width: 36%; max-width: 120px; height: 100px; transform: translateX(-50%) rotate(calc(0deg - var(--fx-angle))); transform-origin: 50% 0; transition: transform 0.6s; }
.fx-weigh .fx-weigh-left-pan { left: 16%; }
.fx-weigh .fx-weigh-right-pan { left: 84%; }
.fx-weigh .fx-weigh-ropes { position: absolute; width: 100%; height: 100%; stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-weigh .fx-weigh-dish { position: absolute; bottom: 0; width: 100%; height: 8px; border: 2px solid var(--fx-ink); border-radius: 0 0 8px 8px; background: var(--fx-sun); }
.fx-weigh .fx-weigh-weights { position: absolute; bottom: 8px; left: 4%; right: 4%; height: 90px; }
.fx-weigh .fx-weigh-card { position: absolute; left: 0; width: 100%; height: 28px; display: flex; align-items: center; justify-content: center; padding: 1px; border: 1px solid var(--fx-ink); border-radius: 3px; background: var(--fx-paper); font-size: 12px; line-height: 12px; font-weight: 700; text-align: center; visibility: hidden; }
.fx-weigh .fx-weigh-card-reason { bottom: 0; background: var(--fx-mint-pale); }
.fx-weigh .fx-weigh-card-opinion { bottom: calc(var(--fx-r) * 30px); background: var(--fx-sun-pale); }
.fx-weigh .fx-weigh-card-other { bottom: calc((var(--fx-r) + var(--fx-o)) * 30px); }
.fx-weigh:has(#fx-weigh-opinion:checked) .fx-weigh-card-opinion, .fx-weigh:has(#fx-weigh-reason:checked) .fx-weigh-card-reason, .fx-weigh:has(#fx-weigh-other:checked) .fx-weigh-card-other { visibility: visible; }
.fx-weigh .fx-weigh-fixed { position: absolute; bottom: 8px; left: 15%; width: 70%; height: 54px; display: grid; place-content: center; border: 2px solid var(--fx-ink); border-radius: 10px 10px 3px 3px; background: var(--fx-sun); font-size: 12px; line-height: 15px; font-weight: 700; text-align: center; }
.fx-weigh:has(#fx-weigh-opinion:checked):has(#fx-weigh-reason:checked) .fx-weigh-weak, .fx-weigh:has(#fx-weigh-opinion:checked):has(#fx-weigh-other:checked) .fx-weigh-weak, .fx-weigh:has(#fx-weigh-reason:checked):has(#fx-weigh-other:checked) .fx-weigh-weak { background: var(--fx-paper); }
.fx-weigh:has(#fx-weigh-opinion:checked):has(#fx-weigh-reason:checked):has(#fx-weigh-other:checked) .fx-weigh-strong { background: var(--fx-mint); box-shadow: 0 0 0 4px var(--fx-mint-pale); }
.fx-weigh .fx-weigh-messages, .fx-weigh .fx-weigh-answer-messages { display: grid; min-width: 0; }
.fx-weigh .fx-weigh-message, .fx-weigh .fx-weigh-answer-messages p { grid-area: 1 / 1; margin: 0; visibility: hidden; color: var(--fx-ink); }
.fx-weigh .fx-weigh-description { display: block; margin-top: 10px; font-size: 14px; font-weight: 400; }
.fx-weigh .fx-weigh-s0, .fx-weigh .fx-weigh-answer-messages .fx-weigh-wait { visibility: visible; }
.fx-weigh:has(input:checked) .fx-weigh-s0 { visibility: hidden; }
.fx-weigh:has(#fx-weigh-opinion:checked):has(#fx-weigh-reason:not(:checked)):has(#fx-weigh-other:not(:checked)) .fx-weigh-s1, .fx-weigh:has(#fx-weigh-opinion:not(:checked)):has(#fx-weigh-reason:checked):has(#fx-weigh-other:not(:checked)) .fx-weigh-s2, .fx-weigh:has(#fx-weigh-opinion:not(:checked)):has(#fx-weigh-reason:not(:checked)):has(#fx-weigh-other:checked) .fx-weigh-s3, .fx-weigh:has(#fx-weigh-opinion:checked):has(#fx-weigh-reason:checked):has(#fx-weigh-other:not(:checked)) .fx-weigh-s4, .fx-weigh:has(#fx-weigh-opinion:checked):has(#fx-weigh-reason:not(:checked)):has(#fx-weigh-other:checked) .fx-weigh-s5, .fx-weigh:has(#fx-weigh-opinion:not(:checked)):has(#fx-weigh-reason:checked):has(#fx-weigh-other:checked) .fx-weigh-s6, .fx-weigh:has(#fx-weigh-opinion:checked):has(#fx-weigh-reason:checked):has(#fx-weigh-other:checked) .fx-weigh-s7, .fx-weigh:has(#fx-weigh-opinion:checked):has(#fx-weigh-reason:checked):has(#fx-weigh-other:checked) .fx-weigh-full { visibility: visible; }
.fx-weigh:has(#fx-weigh-opinion:checked):has(#fx-weigh-reason:checked):has(#fx-weigh-other:checked) .fx-weigh-wait { visibility: hidden; }
.fx-weigh .fx-weigh-answer { display: grid; gap: 10px; }
@container (max-width: 480px) { .fx-weigh .fx-weigh-choices { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-weigh .fx-weigh-turn, .fx-weigh .fx-weigh-pan { transition: none; } }