.fx-drum { --fx-k: 0; display: grid; gap: 16px; }
.fx-drum:has(#fx-drum-five:checked) { --fx-k: 1; }
.fx-drum:has(#fx-drum-twenty:checked) { --fx-k: 2; }
.fx-drum .fx-drum-content { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; }
.fx-drum .fx-drum-content * { box-sizing: border-box; }
.fx-drum .fx-drum-guide ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fx-drum .fx-drum-goal { margin: 0; }
.fx-drum .fx-drum-controls { border: 0; margin: 0; padding: 0; min-width: 0; }
.fx-drum .fx-drum-controls legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 800; }
.fx-drum .fx-drum-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-drum .fx-btn { min-height: 44px; padding: 10px 12px; display: flex; align-items: center; justify-content: flex-start; font-size: 14px; line-height: 1.35; text-align: left; color: var(--fx-ink); background: var(--fx-paper); }
.fx-drum .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun); }
.fx-drum .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-drum .fx-drum-stage { position: relative; height: 672px; padding: 14px 8px; min-width: 0; color: var(--fx-ink); }
.fx-drum .fx-drum-title { height: 44px; margin: 0; font-size: 16px; line-height: 20px; text-align: center; }
.fx-drum .fx-drum-axis-title { height: 26px; margin: 0; font-size: 14px; line-height: 20px; text-align: center; }
.fx-drum .fx-drum-partheads { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; height: 90px; font-size: 12px; line-height: 14px; }
.fx-drum .fx-drum-partheads b, .fx-drum .fx-drum-partheads span { display: block; }
.fx-drum .fx-drum-partheads b { margin-bottom: 6px; }
.fx-drum .fx-drum-chart { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; height: 420px; }
.fx-drum .fx-drum-window { position: relative; width: 52px; height: 420px; }
.fx-drum .fx-drum-window::before { content: ""; position: absolute; inset: -15px 0; border: 1px solid var(--fx-muted); border-radius: 10px; background: var(--fx-sky-pale); }
.fx-drum .fx-drum-wheel { position: absolute; top: calc(var(--fx-row) * 60px); left: 4px; width: 44px; height: 26px; margin-top: -13px; perspective: 500px; }
.fx-drum .fx-drum-turn { position: relative; width: 44px; height: 26px; transform-style: preserve-3d; transform: rotateX(calc(var(--fx-k) * -120deg)); transition: transform 0.6s steps(4, end); }
.fx-drum .fx-drum-face { position: absolute; inset: 0; display: grid; place-items: center; border: 1px solid var(--fx-ink); border-radius: 3px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; line-height: 20px; font-weight: 800; backface-visibility: hidden; transform: rotateX(calc(var(--fx-i) * 120deg)) translateZ(7.5px); }
.fx-drum .fx-drum-plot { position: relative; height: 420px; min-width: 0; }
.fx-drum .fx-drum-plot svg { position: absolute; inset: 0; width: 100%; height: 420px; overflow: visible; }
.fx-drum .fx-drum-grid { fill: none; stroke: var(--fx-muted); stroke-width: 0.6; }
.fx-drum .fx-drum-major { fill: none; stroke: var(--fx-ink); stroke-width: 1.2; }
.fx-drum .fx-drum-axis, .fx-drum .fx-drum-leader { fill: none; stroke: var(--fx-ink); stroke-width: 2; }
.fx-drum .fx-drum-bar { fill: var(--fx-coral); stroke: var(--fx-ink); stroke-width: 2; }
.fx-drum .fx-drum-count-shade { visibility: hidden; fill: var(--fx-sun-pale); stroke: var(--fx-sun); stroke-width: 1; }
.fx-drum .fx-drum-counts { position: absolute; left: 4px; bottom: 0; display: flex; flex-direction: column-reverse; font-size: 12px; line-height: 12px; font-weight: 800; visibility: hidden; }
.fx-drum .fx-drum-counts span { height: 12px; min-width: 14px; text-align: center; }
.fx-drum .fx-drum-top { position: absolute; top: 5px; left: 67%; right: 0; padding: 1px 2px; background: var(--fx-paper); font-size: 12px; line-height: 14px; }
.fx-drum .fx-drum-values { display: grid; min-height: 22px; font-size: 16px; line-height: 22px; font-weight: 800; }
.fx-drum .fx-drum-value { grid-area: 1 / 1; visibility: hidden; }
.fx-drum .fx-drum-bar-name { position: absolute; top: 434px; left: 0; right: 0; margin: 0; font-size: 14px; line-height: 18px; text-align: center; }
.fx-drum .fx-drum-says { display: grid; }
.fx-drum .fx-drum-says p { display: block; grid-area: 1 / 1; margin: 0; visibility: hidden; }
.fx-drum:has(#fx-drum-count:checked) .fx-drum-count-shade, .fx-drum:has(#fx-drum-count:checked) .fx-drum-counts { visibility: visible; }
.fx-drum:has(#fx-drum-ten:checked):not(:has(#fx-drum-count:checked)) .fx-drum-ten-off, .fx-drum:has(#fx-drum-five:checked):not(:has(#fx-drum-count:checked)) .fx-drum-five-off, .fx-drum:has(#fx-drum-twenty:checked):not(:has(#fx-drum-count:checked)) .fx-drum-twenty-off { visibility: visible; }
.fx-drum:has(#fx-drum-ten:checked):has(#fx-drum-count:checked) .fx-drum-ten-on, .fx-drum:has(#fx-drum-ten:checked):has(#fx-drum-count:checked) .fx-drum-value-ten, .fx-drum:has(#fx-drum-five:checked):has(#fx-drum-count:checked) .fx-drum-five-on, .fx-drum:has(#fx-drum-five:checked):has(#fx-drum-count:checked) .fx-drum-value-five, .fx-drum:has(#fx-drum-twenty:checked):has(#fx-drum-count:checked) .fx-drum-twenty-on, .fx-drum:has(#fx-drum-twenty:checked):has(#fx-drum-count:checked) .fx-drum-value-twenty { visibility: visible; }
@container (max-width: 480px) { .fx-drum .fx-drum-options { grid-template-columns: 1fr; } }