.fx-weigh { --fx-o1: 0; --fx-o3: 0; --fx-o4: 0; --fx-f: 0; --fx-v0: visible; --fx-v1: hidden; --fx-v2: hidden; --fx-v3: hidden; --fx-tilt: calc((var(--fx-o1) + var(--fx-o3) + var(--fx-o4) - var(--fx-f)) * 6deg); display: grid; gap: 16px; }
.fx-weigh:has(#fx-weigh-t:checked) { --fx-o1: 1; }
.fx-weigh:has(#fx-weigh-f:checked) { --fx-f: 1; }
.fx-weigh:has(#fx-weigh-c:checked) { --fx-o3: 1; }
.fx-weigh:has(#fx-weigh-w:checked) { --fx-o4: 1; }
.fx-weigh:has(.fx-weigh-op input:checked) { --fx-v0: hidden; --fx-v1: visible; }
.fx-weigh:has(.fx-weigh-op:has(input:checked) ~ .fx-weigh-op:has(input:checked)) { --fx-v1: hidden; --fx-v2: visible; }
.fx-weigh:has(.fx-weigh-op:has(input:checked) ~ .fx-weigh-op:has(input:checked) ~ .fx-weigh-op:has(input:checked)) { --fx-v2: hidden; --fx-v3: visible; }
.fx-weigh * { box-sizing: border-box; }
.fx-weigh .fx-weigh-how ol { margin: 0; padding-left: 24px; }
.fx-weigh .fx-weigh-how li + li { margin-top: 6px; }
.fx-weigh .fx-weigh-goal, .fx-weigh .fx-weigh-help { margin: 0; color: var(--fx-ink); }
.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-size: 16px; font-weight: 800; color: var(--fx-ink); }
.fx-weigh .fx-weigh-help { margin-bottom: 12px; font-size: 14px; }
.fx-weigh .fx-weigh-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-weigh .fx-btn { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; width: 100%; min-height: 112px; padding: 12px; border: 2px solid var(--fx-muted); border-radius: 8px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; line-height: 1.4; text-align: left; white-space: normal; cursor: pointer; }
.fx-weigh .fx-btn small { font-size: 12px; }
.fx-weigh .fx-btn:has(input:checked) { background: var(--fx-sky-pale); border-color: var(--fx-ink); color: var(--fx-ink); }
.fx-weigh .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-weigh .fx-weigh-stage { position: relative; min-width: 0; height: 760px; padding: 0; overflow: hidden; color: var(--fx-ink); }
.fx-weigh .fx-weigh-shop { position: absolute; top: 8px; left: 4%; width: 92%; text-align: center; font-size: 16px; }
.fx-weigh .fx-weigh-fact-label, .fx-weigh .fx-weigh-opinion-label { position: absolute; top: 36px; width: 42%; font-size: 12px; line-height: 1.25; text-align: center; }
.fx-weigh .fx-weigh-fact-label { left: 4%; }
.fx-weigh .fx-weigh-opinion-label { right: 4%; }
.fx-weigh .fx-weigh-post { position: absolute; top: 95px; left: calc(50% - 5px); width: 10px; height: 360px; background: var(--fx-ink); }
.fx-weigh .fx-weigh-base { position: absolute; top: 451px; left: 33%; width: 34%; height: 12px; border-radius: 6px; background: var(--fx-ink); }
.fx-weigh .fx-weigh-beam { position: absolute; top: 92px; left: 26%; width: 48%; height: 6px; background: var(--fx-ink); transform: rotate(var(--fx-tilt)); transition: transform 0.45s; }
.fx-weigh .fx-weigh-pivot { position: absolute; top: 86px; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--fx-ink); }
.fx-weigh .fx-weigh-hanger { --fx-pan: var(--fx-mint); --fx-pan-pale: var(--fx-mint-pale); position: absolute; top: 3px; width: 86%; height: 350px; transform-origin: 50% 0; transform: translateX(-50%) rotate(calc(0deg - var(--fx-tilt))); transition: transform 0.45s; }
.fx-weigh .fx-weigh-left { left: 0; }
.fx-weigh .fx-weigh-right { --fx-pan: var(--fx-coral); --fx-pan-pale: var(--fx-coral-pale); left: 100%; }
.fx-weigh .fx-weigh-chain { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 2px solid var(--fx-ink); }
.fx-weigh .fx-weigh-pan { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; border: 3px solid var(--fx-pan); border-top: 0; border-radius: 0 0 22px 22px; background: var(--fx-pan-pale); }
.fx-weigh .fx-weigh-card { padding: 8px; border: 2px solid var(--fx-muted); border-top-width: 6px; border-radius: 8px; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.fx-weigh .fx-weigh-load { position: absolute; left: 4%; bottom: 7px; width: 92%; height: 112px; padding: 6px; border-color: var(--fx-ink); background: var(--fx-pan); visibility: hidden; transition: bottom 0.35s; }
.fx-weigh .fx-weigh-load3 { bottom: calc(7px + var(--fx-o1) * 112px); }
.fx-weigh .fx-weigh-load4 { bottom: calc(7px + (var(--fx-o1) + var(--fx-o3)) * 112px); }
.fx-weigh .fx-weigh-dock-label { position: absolute; top: 520px; left: 4%; width: 92%; text-align: center; font-size: 14px; }
.fx-weigh .fx-weigh-dock { position: absolute; top: 550px; left: 4%; width: 92%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fx-weigh .fx-weigh-wait { height: 160px; }
.fx-weigh:has(#fx-weigh-t:checked) .fx-weigh-load1, .fx-weigh:has(#fx-weigh-f:checked) .fx-weigh-load2, .fx-weigh:has(#fx-weigh-c:checked) .fx-weigh-load3, .fx-weigh:has(#fx-weigh-w:checked) .fx-weigh-load4 { visibility: visible; animation: fx-weigh-drop 0.3s; }
.fx-weigh:has(#fx-weigh-t:checked) .fx-weigh-wait1, .fx-weigh:has(#fx-weigh-f:checked) .fx-weigh-wait2, .fx-weigh:has(#fx-weigh-c:checked) .fx-weigh-wait3, .fx-weigh:has(#fx-weigh-w:checked) .fx-weigh-wait4 { visibility: hidden; }
.fx-weigh:has(#fx-weigh-t:checked):has(#fx-weigh-f:checked):has(#fx-weigh-c:checked):has(#fx-weigh-w:checked) .fx-weigh-pan { box-shadow: 0 0 0 5px var(--fx-sun-pale); }
.fx-weigh .fx-weigh-live { display: grid; min-width: 0; }
.fx-weigh .fx-weigh-live > p { grid-area: 1 / 1; margin: 0; color: var(--fx-ink); }
.fx-weigh .fx-weigh-count0 { visibility: var(--fx-v0); }
.fx-weigh .fx-weigh-count1 { visibility: var(--fx-v1); }
.fx-weigh .fx-weigh-count2 { visibility: var(--fx-v2); }
.fx-weigh .fx-weigh-count3 { visibility: var(--fx-v3); }
.fx-weigh:has(#fx-weigh-f:checked) .fx-weigh-no-f, .fx-weigh:not(:has(#fx-weigh-f:checked)) .fx-weigh-with-f { visibility: hidden; }
.fx-weigh .fx-weigh-explanations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-weigh .fx-weigh-on { visibility: hidden; }
.fx-weigh:has(#fx-weigh-t:checked) .fx-weigh-on1, .fx-weigh:has(#fx-weigh-f:checked) .fx-weigh-on2, .fx-weigh:has(#fx-weigh-c:checked) .fx-weigh-on3, .fx-weigh:has(#fx-weigh-w:checked) .fx-weigh-on4 { visibility: visible; }
.fx-weigh:has(#fx-weigh-t:checked) .fx-weigh-off1, .fx-weigh:has(#fx-weigh-f:checked) .fx-weigh-off2, .fx-weigh:has(#fx-weigh-c:checked) .fx-weigh-off3, .fx-weigh:has(#fx-weigh-w:checked) .fx-weigh-off4 { visibility: hidden; }
@container (max-width: 480px) { .fx-weigh .fx-weigh-choices, .fx-weigh .fx-weigh-explanations { grid-template-columns: 1fr; } .fx-weigh .fx-btn { min-height: 88px; } .fx-weigh .fx-weigh-stage { height: 850px; } .fx-weigh .fx-weigh-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-weigh .fx-weigh-wait { height: 130px; } }
@keyframes fx-weigh-drop { from { transform: translateY(-20px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fx-weigh .fx-weigh-beam, .fx-weigh .fx-weigh-hanger, .fx-weigh .fx-weigh-load { transition: none; animation: none; } }