.fx-bias { --fx-c: 0; --fx-p: 0; display: grid; gap: 14px; }
.fx-bias:has(#fx-bias-cg:checked) { --fx-c: -1; }
.fx-bias:has(#fx-bias-cb:checked) { --fx-c: 1; }
.fx-bias:has(#fx-bias-pg:checked) { --fx-p: -1; }
.fx-bias:has(#fx-bias-pb:checked) { --fx-p: 1; }
.fx-bias * { box-sizing: border-box; }
.fx-bias .fx-bias-how { margin: 0; padding-left: 24px; }
.fx-bias .fx-bias-how li { margin: 4px 0; }
.fx-bias .fx-bias-goal, .fx-bias .fx-bias-hint, .fx-bias .fx-bias-step { margin: 0; }
.fx-bias .fx-bias-hint { font-size: 14px; }
.fx-bias .fx-bias-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.fx-bias .fx-bias-controls fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-bias .fx-bias-controls legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 800; }
.fx-bias .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-bias .fx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 8px 12px; border: 2px solid var(--fx-muted); background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; white-space: normal; cursor: pointer; }
.fx-bias .fx-btn:has(input:checked) { border-color: var(--fx-ink); background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-bias .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-bias .fx-bias-stage { position: relative; display: grid; grid-template-rows: 180px 24px 210px minmax(0, 1fr); gap: 8px; height: 580px; min-width: 0; padding: 12px; color: var(--fx-ink); }
.fx-bias .fx-bias-review { min-width: 0; padding: 12px; border: 2px solid var(--fx-ink); border-radius: 10px; background: var(--fx-paper); }
.fx-bias .fx-bias-review > b { display: block; padding-right: 32px; font-size: 16px; }
.fx-bias .fx-bias-sentence { margin: 10px 0 0; font-size: 16px; line-height: 1.8; }
.fx-bias .fx-bias-slot { display: inline-grid; min-width: 5.8em; min-height: 1.6em; border: 2px dashed var(--fx-muted); border-radius: 5px; vertical-align: baseline; text-align: center; line-height: 1.5; }
.fx-bias .fx-bias-word { grid-area: 1 / 1; visibility: hidden; font-weight: 800; color: var(--fx-ink); }
.fx-bias .fx-bias-positive { background: var(--fx-mint); }
.fx-bias .fx-bias-negative { background: var(--fx-coral); }
.fx-bias .fx-bias-weight-title { align-self: center; text-align: center; font-size: 14px; }
.fx-bias .fx-bias-scene { position: relative; justify-self: center; width: 90%; height: 210px; perspective: 700px; }
.fx-bias .fx-bias-beam { position: absolute; top: 110px; left: 0; width: 100%; height: 10px; transform-style: preserve-3d; transform: rotateY(-6deg) rotateZ(calc((var(--fx-c) + var(--fx-p)) * 6deg)); transition: transform 0.45s; }
.fx-bias .fx-bias-plank { position: absolute; inset: 0; border: 2px solid var(--fx-ink); background: var(--fx-sun); transform-style: preserve-3d; transform: rotateX(18deg) translateZ(2px); }
.fx-bias .fx-bias-plank::after { content: ""; position: absolute; top: 6px; left: -2px; right: -2px; height: 8px; border: 2px solid var(--fx-ink); background: var(--fx-sun); transform-origin: top; transform: rotateX(-70deg); }
.fx-bias .fx-bias-pan { position: absolute; bottom: 10px; width: 42%; height: 65px; border: 3px solid var(--fx-ink); border-top: 0; border-radius: 0 0 12px 12px; transform-style: preserve-3d; transform: translateZ(8px); }
.fx-bias .fx-bias-good-pan { left: 0; background: var(--fx-mint-pale); }
.fx-bias .fx-bias-bad-pan { right: 0; background: var(--fx-coral-pale); }
.fx-bias .fx-bias-weight { position: absolute; bottom: 5px; left: 4px; right: 4px; height: 23px; padding: 1px 0; border: 1px solid var(--fx-ink); border-radius: 4px; font-size: 12px; line-height: 19px; text-align: center; transform: translateY(-12px) translateZ(10px); transition: transform 0.35s, bottom 0.35s; }
.fx-bias .fx-bias-pivot { position: absolute; top: 120px; left: 50%; width: 50px; height: 44px; background: var(--fx-ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.fx-bias .fx-bias-side-labels { position: absolute; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fx-bias .fx-bias-side-labels b { padding: 6px 3px; border-radius: 5px; font-size: 12px; line-height: 1.35; text-align: center; }
.fx-bias .fx-bias-good-label { background: var(--fx-mint-pale); }
.fx-bias .fx-bias-bad-label { background: var(--fx-coral-pale); }
.fx-bias .fx-bias-event { padding: 8px; border: 2px solid var(--fx-muted); border-radius: 7px; background: var(--fx-paper); font-size: 14px; line-height: 1.35; text-align: center; }
.fx-bias .fx-bias-event p { margin: 6px 0 0; }
.fx-bias .fx-bias-tick { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 28px; height: 28px; margin: 0; border-radius: 50%; background: var(--fx-mint); color: var(--fx-ink); font-size: 22px; line-height: 1; visibility: hidden; }
.fx-bias:has(#fx-bias-cg:checked) .fx-bias-wonderful, .fx-bias:has(#fx-bias-cb:checked) .fx-bias-heartless, .fx-bias:has(#fx-bias-pg:checked) .fx-bias-generous, .fx-bias:has(#fx-bias-pb:checked) .fx-bias-measly { visibility: visible; transform: translateY(0) translateZ(10px); }
.fx-bias:has(#fx-bias-cg:checked):has(#fx-bias-pg:checked) .fx-bias-company-weight, .fx-bias:has(#fx-bias-cb:checked):has(#fx-bias-pb:checked) .fx-bias-company-weight { bottom: 31px; }
.fx-bias:has(#fx-bias-cg:checked):has(#fx-bias-pg:checked) .fx-bias-tick, .fx-bias:has(#fx-bias-cb:checked):has(#fx-bias-pb:checked) .fx-bias-tick { visibility: visible; }
.fx-bias .fx-bias-messages { display: grid; min-width: 0; }
.fx-bias .fx-bias-message { grid-area: 1 / 1; margin: 0; visibility: hidden; color: var(--fx-ink); }
.fx-bias .fx-bias-motion { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; }
.fx-bias:has(#fx-bias-c0:checked):has(#fx-bias-p0:checked) .fx-bias-s00, .fx-bias:has(#fx-bias-cg:checked):has(#fx-bias-p0:checked) .fx-bias-sg0, .fx-bias:has(#fx-bias-cb:checked):has(#fx-bias-p0:checked) .fx-bias-sb0, .fx-bias:has(#fx-bias-c0:checked):has(#fx-bias-pg:checked) .fx-bias-s0g, .fx-bias:has(#fx-bias-c0:checked):has(#fx-bias-pb:checked) .fx-bias-s0b, .fx-bias:has(#fx-bias-cg:checked):has(#fx-bias-pg:checked) .fx-bias-sgg, .fx-bias:has(#fx-bias-cb:checked):has(#fx-bias-pb:checked) .fx-bias-sbb, .fx-bias:has(#fx-bias-cg:checked):has(#fx-bias-pb:checked) .fx-bias-sgb, .fx-bias:has(#fx-bias-cb:checked):has(#fx-bias-pg:checked) .fx-bias-sbg { visibility: visible; }
.fx-bias:has(#fx-bias-cg:checked):has(#fx-bias-pb:checked) .fx-bias-beam, .fx-bias:has(#fx-bias-cb:checked):has(#fx-bias-pg:checked) .fx-bias-beam { animation: fx-bias-wobble 0.65s 1; }
@keyframes fx-bias-wobble { 0%, 100% { transform: rotateY(-6deg) rotateZ(0deg); } 30% { transform: rotateY(-6deg) rotateZ(-2deg); } 70% { transform: rotateY(-6deg) rotateZ(2deg); } }
@container (max-width: 480px) { .fx-bias .fx-bias-controls { grid-template-columns: minmax(0, 1fr); } .fx-bias .fx-bias-stage { height: 644px; grid-template-rows: 244px 24px 210px minmax(0, 1fr); } }