.fx-tilt { display: grid; gap: 14px; --fx-g: 0; --fx-b: 0; --fx-gs: 0; --fx-bs: 0; --fx-g0: initial; --fx-g1: hidden; --fx-g2: hidden; --fx-g3: hidden; --fx-b0: initial; --fx-b1: hidden; --fx-b2: hidden; --fx-b3: hidden; --fx-a: clamp(-22deg, calc((var(--fx-b) - var(--fx-g)) * 5deg + (var(--fx-bs) - var(--fx-gs)) * 11deg), 22deg); }
.fx-tilt:has(.fx-good :checked) { --fx-g: 1; --fx-gs: 1; --fx-g0: hidden; --fx-g1: initial; }
.fx-tilt:has(.fx-good label:has(:checked) ~ label:has(:checked)) { --fx-g: 2; --fx-g1: hidden; --fx-g2: initial; }
.fx-tilt:has(.fx-good label:has(:checked) ~ label:has(:checked) ~ label:has(:checked)) { --fx-g: 3; --fx-g2: hidden; --fx-g3: initial; }
.fx-tilt:has(.fx-bad :checked) { --fx-b: 1; --fx-bs: 1; --fx-b0: hidden; --fx-b1: initial; }
.fx-tilt:has(.fx-bad label:has(:checked) ~ label:has(:checked)) { --fx-b: 2; --fx-b1: hidden; --fx-b2: initial; }
.fx-tilt:has(.fx-bad label:has(:checked) ~ label:has(:checked) ~ label:has(:checked)) { --fx-b: 3; --fx-b2: hidden; --fx-b3: initial; }
.fx-tilt .fx-guide ol { margin: 0; padding-left: 24px; }
.fx-tilt .fx-guide li { padding: 3px 0; }
.fx-tilt .fx-goal, .fx-tilt .fx-hint, .fx-tilt .fx-read { margin: 0; color: var(--fx-ink); }
.fx-tilt .fx-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fx-tilt .fx-controls fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-tilt .fx-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; color: var(--fx-ink); }
.fx-tilt .fx-choices { display: grid; gap: 8px; }
.fx-tilt .fx-btn { display: flex; align-items: center; justify-content: flex-start; gap: 8px; box-sizing: border-box; min-width: 0; min-height: 52px; padding: 10px; border: 2px solid var(--fx-ink); border-bottom-width: 5px; background: var(--fx-paper); color: var(--fx-ink); text-align: left; white-space: normal; font-size: 14px; line-height: 1.35; }
.fx-tilt .fx-good .fx-btn { border-bottom-color: var(--fx-mint); }
.fx-tilt .fx-bad .fx-btn { border-bottom-color: var(--fx-coral); }
.fx-tilt .fx-good .fx-btn:has(:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); }
.fx-tilt .fx-bad .fx-btn:has(:checked) { background: var(--fx-coral-pale); color: var(--fx-ink); }
.fx-tilt .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-tilt .fx-tick { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 18px; height: 18px; border: 2px solid var(--fx-ink); background: var(--fx-paper); }
.fx-tilt .fx-tick::after { content: ""; width: 10px; height: 10px; background: var(--fx-ink); transform: scale(0); }
.fx-tilt .fx-btn:has(:checked) .fx-tick::after { transform: scale(1); }
.fx-tilt .fx-scene { position: relative; box-sizing: border-box; min-width: 0; height: 510px; padding: 0; overflow: hidden; color: var(--fx-ink); }
.fx-tilt .fx-review { position: absolute; top: 12px; left: 4%; width: 92%; box-sizing: border-box; padding: 8px; border: 2px solid var(--fx-ink); background: var(--fx-paper); font-weight: 800; text-align: center; }
.fx-tilt .fx-stamps { position: absolute; top: 70px; left: 4%; width: 92%; display: grid; place-items: center; }
.fx-tilt .fx-stamps b { padding: 4px 10px; border: 2px solid var(--fx-ink); border-radius: 4px; font-size: 14px; line-height: 1.2; text-align: center; }
.fx-tilt .fx-biased { background: var(--fx-coral-pale); }
.fx-tilt .fx-balanced { background: var(--fx-mint); }
.fx-tilt .fx-both { background: var(--fx-sun-pale); }
.fx-tilt .fx-pivot { position: absolute; top: 425px; left: calc(50% - 30px); width: 60px; height: 58px; }
.fx-tilt .fx-pivot polygon { fill: var(--fx-sun-pale); stroke: var(--fx-ink); stroke-width: 3; stroke-linejoin: round; }
.fx-tilt .fx-pivot-label { position: absolute; top: 486px; left: 0; width: 100%; font-size: 14px; line-height: 18px; font-weight: 800; text-align: center; }
.fx-tilt .fx-beam { position: absolute; top: 420px; left: 25%; width: 50%; height: 10px; transform-origin: center center; transform: rotate(var(--fx-a)); transition: transform 0.5s; }
.fx-tilt .fx-bar { position: absolute; inset: 0; box-sizing: border-box; border: 2px solid var(--fx-ink); background: var(--fx-muted); opacity: 0.5; }
.fx-tilt:has(input:checked) .fx-bar { background: var(--fx-sun); opacity: 1; }
.fx-tilt .fx-pan { position: absolute; bottom: 100%; width: 92%; box-sizing: border-box; padding: 4px; border: 2px solid var(--fx-ink); border-bottom-width: 6px; transform-origin: 50% 100%; transform: translateX(-50%) rotate(calc(0deg - var(--fx-a))); transition: transform 0.5s; }
.fx-tilt .fx-left { left: 0; background: var(--fx-mint-pale); border-bottom-color: var(--fx-mint); }
.fx-tilt .fx-right-pan { left: 100%; background: var(--fx-coral-pale); border-bottom-color: var(--fx-coral); }
.fx-tilt .fx-pan > b { display: block; min-height: 28px; font-size: 14px; line-height: 28px; text-align: center; }
.fx-tilt .fx-weights { display: grid; grid-template-rows: repeat(3, 64px); gap: 4px; }
.fx-tilt .fx-weight { display: grid; place-items: center; box-sizing: border-box; padding: 4px; border: 1px solid var(--fx-ink); background: var(--fx-mint); font-size: 12px; line-height: 13px; text-align: center; overflow-wrap: anywhere; visibility: hidden; transform: translateY(-12px); transition: transform 0.35s; }
.fx-tilt .fx-right-pan .fx-weight { background: var(--fx-coral); }
.fx-tilt:has(#fx-tilt-g1:checked) .fx-wg1, .fx-tilt:has(#fx-tilt-g2:checked) .fx-wg2, .fx-tilt:has(#fx-tilt-g3:checked) .fx-wg3, .fx-tilt:has(#fx-tilt-b1:checked) .fx-wb1, .fx-tilt:has(#fx-tilt-b2:checked) .fx-wb2, .fx-tilt:has(#fx-tilt-b3:checked) .fx-wb3 { visibility: visible; transform: translateY(0); }
.fx-tilt .fx-messages { display: grid; min-width: 0; }
.fx-tilt .fx-state { grid-area: 1 / 1; visibility: hidden; color: var(--fx-ink); }
.fx-tilt .fx-messages .fx-state { margin: 0; align-self: stretch; }
.fx-tilt .fx-messages small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.4; }
.fx-tilt .fx-g0 { visibility: var(--fx-g0, var(--fx-side)); }
.fx-tilt .fx-g1 { visibility: var(--fx-g1, var(--fx-side)); }
.fx-tilt .fx-g2 { visibility: var(--fx-g2, var(--fx-side)); }
.fx-tilt .fx-g3 { visibility: var(--fx-g3, var(--fx-side)); }
.fx-tilt .fx-b0 { --fx-side: var(--fx-b0, visible); }
.fx-tilt .fx-b1 { --fx-side: var(--fx-b1, visible); }
.fx-tilt .fx-b2 { --fx-side: var(--fx-b2, visible); }
.fx-tilt .fx-b3 { --fx-side: var(--fx-b3, visible); }
@container (max-width: 480px) { .fx-tilt .fx-controls { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-tilt .fx-beam, .fx-tilt .fx-pan, .fx-tilt .fx-weight { transition: none; } }