.fx-pivot { --fx-a: 0.5; --fx-b: 2.5; --fx-mean: calc((12 * var(--fx-a) + 14 * var(--fx-b) + 44) / 34); display: grid; }
.fx-pivot:has(#fx-pivot-a0:checked) { --fx-a: 0; }
.fx-pivot:has(#fx-pivot-a1:checked) { --fx-a: 1; }
.fx-pivot:has(#fx-pivot-b2:checked) { --fx-b: 2; }
.fx-pivot:has(#fx-pivot-b3:checked) { --fx-b: 3; }
.fx-pivot .fx-body { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.5; }
.fx-pivot .fx-body * { box-sizing: border-box; }
.fx-pivot .fx-body > p { margin: 0; }
.fx-pivot .fx-note ol { margin: 0; padding-left: 24px; }
.fx-pivot .fx-goal { font-weight: 700; }
.fx-pivot .fx-context { font-size: 14px; }
.fx-pivot .fx-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fx-pivot .fx-q { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-pivot .fx-q legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.fx-pivot .fx-row { display: grid; gap: 8px; }
.fx-pivot .fx-btn { display: flex; align-items: center; min-height: 44px; min-width: 0; padding: 10px 12px; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; line-height: 1.35; cursor: pointer; }
.fx-pivot .fx-q-a .fx-btn:has(input:checked) { background: var(--fx-coral-pale); color: var(--fx-ink); }
.fx-pivot .fx-q-b .fx-btn:has(input:checked) { background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-pivot .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-pivot .fx-figure { display: grid; gap: 12px; min-width: 0; margin: 0; }
.fx-pivot .fx-scene { position: relative; height: 280px; width: 100%; padding: 0; overflow: hidden; color: var(--fx-ink); }
.fx-pivot .fx-axis-label { position: absolute; top: 12px; left: 12px; right: 12px; margin: 0; text-align: center; font-size: 14px; font-weight: 700; }
.fx-pivot .fx-drawing { position: absolute; top: 42px; left: 12px; right: 12px; height: 210px; }
.fx-pivot .fx-board { position: absolute; top: 110px; left: 3%; width: 94%; height: 24px; }
.fx-pivot .fx-board polygon { stroke: var(--fx-ink); stroke-width: 1; stroke-linejoin: round; }
.fx-pivot .fx-board-top { fill: var(--fx-sun-pale); }
.fx-pivot .fx-board-front { fill: var(--fx-sun); }
.fx-pivot .fx-board-end { fill: var(--fx-coral-pale); }
.fx-pivot .fx-stack { position: absolute; bottom: 100px; display: flex; flex-direction: column; align-items: center; width: 18px; transform: translateX(-50%); transition: left 0.5s; }
.fx-pivot .fx-stack i { display: block; flex: 0 0 8px; width: 18px; height: 8px; margin-top: -2px; border: 1px solid var(--fx-ink); border-radius: 50%; background: var(--fx-counter); }
.fx-pivot .fx-stack b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12px; line-height: 18px; }
.fx-pivot .fx-a { left: calc(5% + var(--fx-a) * 10%); }
.fx-pivot .fx-b { left: calc(5% + var(--fx-b) * 10%); }
.fx-pivot .fx-c { left: 50%; }
.fx-pivot .fx-d { left: 70%; }
.fx-pivot .fx-e { left: 90%; }
.fx-pivot .fx-orange { --fx-counter: var(--fx-coral); }
.fx-pivot .fx-blue { --fx-counter: var(--fx-sky); }
.fx-pivot .fx-green { --fx-counter: var(--fx-mint); }
.fx-pivot .fx-purple { --fx-counter: var(--fx-grape); }
.fx-pivot .fx-grey { --fx-counter: var(--fx-muted); }
.fx-pivot .fx-tick { position: absolute; top: 135px; left: calc(5% + var(--fx-t) * 10%); transform: translateX(-50%); font-size: 12px; line-height: 16px; }
.fx-pivot .fx-tick::before { content: ""; position: absolute; top: -18px; left: 50%; height: 9px; border-left: 1px solid var(--fx-ink); }
.fx-pivot .fx-marker { position: absolute; top: 132px; left: calc(5% + var(--fx-mean) * 10%); width: 24px; height: 24px; transform: translateX(-50%); transition: left 0.5s; }
.fx-pivot .fx-marker::before { content: ""; position: absolute; width: 100%; height: 100%; background: var(--fx-coral); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fx-pivot .fx-flag { position: absolute; top: 30px; left: 50%; display: grid; place-items: center; width: 68px; min-height: 28px; padding: 3px 6px; transform: translateX(-50%); border: 1px solid var(--fx-ink); border-radius: 4px; background: var(--fx-sun-pale); color: var(--fx-ink); font-size: 14px; font-weight: 800; }
.fx-pivot .fx-flag span { grid-area: 1 / 1; visibility: hidden; }
.fx-pivot .fx-mean-label { position: absolute; bottom: 10px; left: 4px; right: 4px; margin: 0; text-align: center; font-size: 14px; font-weight: 700; }
.fx-pivot .fx-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; list-style: none; padding: 0; margin: 0; }
.fx-pivot .fx-key li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; line-height: 1.4; }
.fx-pivot .fx-dot { flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid var(--fx-ink); border-radius: 50%; background: var(--fx-counter); }
.fx-pivot .fx-swap { display: grid; }
.fx-pivot .fx-swap > p { grid-area: 1 / 1; visibility: hidden; margin: 0; line-height: 1.5; }
.fx-pivot:has(#fx-pivot-a0:checked):has(#fx-pivot-b2:checked) .fx-s00 { visibility: visible; }
.fx-pivot:has(#fx-pivot-a0:checked):has(#fx-pivot-b25:checked) .fx-s01 { visibility: visible; }
.fx-pivot:has(#fx-pivot-a0:checked):has(#fx-pivot-b3:checked) .fx-s02 { visibility: visible; }
.fx-pivot:has(#fx-pivot-a05:checked):has(#fx-pivot-b2:checked) .fx-s10 { visibility: visible; }
.fx-pivot:has(#fx-pivot-a05:checked):has(#fx-pivot-b25:checked) .fx-s11 { visibility: visible; }
.fx-pivot:has(#fx-pivot-a05:checked):has(#fx-pivot-b3:checked) .fx-s12 { visibility: visible; }
.fx-pivot:has(#fx-pivot-a1:checked):has(#fx-pivot-b2:checked) .fx-s20 { visibility: visible; }
.fx-pivot:has(#fx-pivot-a1:checked):has(#fx-pivot-b25:checked) .fx-s21 { visibility: visible; }
.fx-pivot:has(#fx-pivot-a1:checked):has(#fx-pivot-b3:checked) .fx-s22 { visibility: visible; }
.fx-pivot:has(#fx-pivot-a05:checked):has(#fx-pivot-b25:checked) .fx-flag { background: var(--fx-mint); }
@container (max-width: 480px) { .fx-pivot .fx-controls { grid-template-columns: 1fr; } .fx-pivot .fx-key { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-pivot .fx-stack, .fx-pivot .fx-marker { transition: none; } }