.fx-plate { --fx-a: 0; --fx-b: 0; --fx-c: 0; --fx-d: 0; --fx-dx: -30px; --fx-dy: 0px; display: grid; gap: 16px; }
.fx-plate:has(#fx-plate-a:checked) { --fx-a: 1; }
.fx-plate:has(#fx-plate-b:checked) { --fx-b: 1; }
.fx-plate:has(#fx-plate-c:checked) { --fx-c: 1; }
.fx-plate:has(#fx-plate-d:checked) { --fx-d: 1; }
.fx-plate * { box-sizing: border-box; }
.fx-plate .fx-plate-steps { margin: 0; padding-left: 24px; }
.fx-plate .fx-plate-steps li + li { margin-top: 6px; }
.fx-plate .fx-plate-goal { margin: 0; color: var(--fx-ink); }
.fx-plate .fx-plate-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-plate .fx-plate-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-plate .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-plate .fx-btn { display: flex; align-items: center; min-width: 44px; min-height: 44px; padding: 10px 12px; border: 2px solid var(--fx-ink); background: var(--fx-paper); color: var(--fx-ink); }
.fx-plate .fx-btn:has(input:checked) { background: var(--fx-fill); color: var(--fx-ink); }
.fx-plate .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-plate .fx-plate-a { --fx-on: var(--fx-a); --fx-fill: var(--fx-mint); }
.fx-plate .fx-plate-b { --fx-on: var(--fx-b); --fx-fill: var(--fx-sky); }
.fx-plate .fx-plate-c { --fx-on: var(--fx-c); --fx-fill: var(--fx-coral); }
.fx-plate .fx-plate-d { --fx-on: var(--fx-d); --fx-fill: var(--fx-grape); }
.fx-plate .fx-plate-scene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 16px; height: 400px; padding: 12px; }
.fx-plate .fx-plate-figure { display: flex; flex-direction: column; align-items: center; min-width: 0; margin: 0; }
.fx-plate .fx-plate-figure figcaption { min-height: 28px; margin: 0; font-size: 18px; font-weight: 800; text-align: center; color: var(--fx-ink); }
.fx-plate .fx-plate-figure svg { display: block; width: 100%; max-width: 300px; height: 300px; flex: none; fill: var(--fx-ink); color: var(--fx-ink); font-size: 18px; }
.fx-plate .fx-plate-foot { min-height: 28px; margin: 0; font-size: 14px; text-align: center; color: var(--fx-ink); }
.fx-plate .fx-plate-body { fill: var(--fx-mint-pale); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-plate .fx-plate-snip { fill: var(--fx-paper); stroke: var(--fx-muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.fx-plate .fx-plate-cut, .fx-plate .fx-plate-wedge path { fill: var(--fx-fill); stroke: var(--fx-ink); stroke-width: 1.5; stroke-linejoin: round; }
.fx-plate .fx-plate-cut { opacity: calc(1 - var(--fx-on)); transition: opacity 0.45s; }
.fx-plate .fx-plate-square { fill: none; stroke: var(--fx-ink); stroke-width: 2; opacity: calc(1 - var(--fx-on)); transition: opacity 0.45s; }
.fx-plate .fx-plate-rim { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 3; }
.fx-plate .fx-plate-wedge { opacity: var(--fx-on); transform: translate(calc((1 - var(--fx-on)) * var(--fx-dx)), calc((1 - var(--fx-on)) * var(--fx-dy))); transition: transform 0.45s, opacity 0.45s; }
.fx-plate .fx-plate-wedge text { fill: var(--fx-ink); text-anchor: middle; }
.fx-plate .fx-plate-gap { fill: var(--fx-sun-pale); stroke: var(--fx-sun); stroke-width: 6; stroke-linejoin: round; }
.fx-plate .fx-plate-dot { fill: var(--fx-ink); }
.fx-plate .fx-plate-question { text-anchor: middle; font-size: 28px; font-weight: 800; }
.fx-plate .fx-plate-tick { font-size: 32px; font-weight: 800; }
.fx-plate .fx-plate-start { text-anchor: middle; }
.fx-plate .fx-plate-says { display: grid; }
.fx-plate .fx-plate-says p { grid-area: 1 / 1; margin: 0; align-self: stretch; }
.fx-plate .fx-plate-state { visibility: hidden; }
.fx-plate:not(:has(input:checked)) .fx-plate-s0,
.fx-plate:has(#fx-plate-a:checked):not(:has(#fx-plate-b:checked,#fx-plate-c:checked,#fx-plate-d:checked)) .fx-plate-s1,
.fx-plate:has(#fx-plate-b:checked):not(:has(#fx-plate-a:checked,#fx-plate-c:checked,#fx-plate-d:checked)) .fx-plate-s2,
.fx-plate:has(#fx-plate-c:checked):not(:has(#fx-plate-a:checked,#fx-plate-b:checked,#fx-plate-d:checked)) .fx-plate-s3,
.fx-plate:has(#fx-plate-d:checked):not(:has(#fx-plate-a:checked,#fx-plate-b:checked,#fx-plate-c:checked)) .fx-plate-s4,
.fx-plate:has(#fx-plate-a:checked):has(#fx-plate-b:checked):not(:has(#fx-plate-c:checked,#fx-plate-d:checked)) .fx-plate-s5,
.fx-plate:has(#fx-plate-a:checked):has(#fx-plate-c:checked):not(:has(#fx-plate-b:checked,#fx-plate-d:checked)) .fx-plate-s6,
.fx-plate:has(#fx-plate-b:checked):has(#fx-plate-c:checked):not(:has(#fx-plate-a:checked,#fx-plate-d:checked)) .fx-plate-s6,
.fx-plate:has(#fx-plate-a:checked):has(#fx-plate-d:checked):not(:has(#fx-plate-b:checked,#fx-plate-c:checked)) .fx-plate-s7,
.fx-plate:has(#fx-plate-b:checked):has(#fx-plate-d:checked):not(:has(#fx-plate-a:checked,#fx-plate-c:checked)) .fx-plate-s7,
.fx-plate:has(#fx-plate-c:checked):has(#fx-plate-d:checked):not(:has(#fx-plate-a:checked,#fx-plate-b:checked)) .fx-plate-s8,
.fx-plate:has(#fx-plate-a:checked):has(#fx-plate-b:checked):has(#fx-plate-c:checked):not(:has(#fx-plate-d:checked)) .fx-plate-s9,
.fx-plate:has(#fx-plate-a:checked):has(#fx-plate-b:checked):has(#fx-plate-d:checked):not(:has(#fx-plate-c:checked)) .fx-plate-s10,
.fx-plate:has(#fx-plate-a:checked):has(#fx-plate-c:checked):has(#fx-plate-d:checked):not(:has(#fx-plate-b:checked)) .fx-plate-s11,
.fx-plate:has(#fx-plate-b:checked):has(#fx-plate-c:checked):has(#fx-plate-d:checked):not(:has(#fx-plate-a:checked)) .fx-plate-s12,
.fx-plate:has(#fx-plate-a:checked):has(#fx-plate-b:checked):has(#fx-plate-c:checked):has(#fx-plate-d:checked) .fx-plate-s13 { visibility: visible; }
@container (max-width: 480px) { .fx-plate .fx-plate-scene { --fx-dx: 0px; --fx-dy: -30px; grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: 760px; } }