.fx-packs { --fx-k: 2; display: grid; gap: 12px; }
.fx-packs:has(#fx-packs-16:checked) { --fx-k: 0; }
.fx-packs:has(#fx-packs-17:checked) { --fx-k: 1; }
.fx-packs:has(#fx-packs-19:checked) { --fx-k: 3; }
.fx-packs:has(#fx-packs-20:checked) { --fx-k: 4; }
.fx-packs .fx-note ol { list-style: none; margin: 0; padding: 0; }
.fx-packs .fx-note li + li { margin-top: 6px; }
.fx-packs .fx-goal { margin: 0; color: var(--fx-ink); }
.fx-packs .fx-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-packs .fx-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-packs .fx-caption { display: block; margin-bottom: 8px; }
.fx-packs .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-packs .fx-btn { min-height: 44px; min-width: 64px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; color: var(--fx-ink); }
.fx-packs .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); }
.fx-packs .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-packs .fx-dial-area { display: flex; align-items: center; justify-content: center; height: 106px; gap: 8px; color: var(--fx-ink); }
.fx-packs .fx-dial-window { position: relative; width: 100px; height: 90px; border: 7px dashed var(--fx-grape); border-radius: 42%; box-sizing: border-box; background: var(--fx-sun-pale); perspective: 400px; overflow: hidden; }
.fx-packs .fx-drum { position: absolute; left: 10%; top: 50%; width: 80%; height: 40px; margin-top: -20px; transform-style: preserve-3d; transform: rotateX(calc(var(--fx-k) * -72deg)); transition: transform 0.6s steps(4, end); }
.fx-packs .fx-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; transform: rotateX(calc(var(--fx-i) * 72deg)) translateZ(30px); background: var(--fx-sun-pale); color: var(--fx-ink); font-size: 26px; font-weight: 800; }
.fx-packs .fx-pointer { font-size: 28px; }
.fx-packs .fx-party { height: 390px; box-sizing: border-box; padding: 14px; color: var(--fx-ink); }
.fx-packs .fx-step { display: block; font-size: 16px; }
.fx-packs .fx-table { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 12px; padding-bottom: 12px; border-bottom: 8px solid var(--fx-grape); }
.fx-packs .fx-stock, .fx-packs .fx-service { min-width: 0; }
.fx-packs .fx-part { margin: 8px 0; font-weight: 800; }
.fx-packs .fx-part .fx-swap { display: inline-grid; margin-left: 6px; }
.fx-packs .fx-boxes { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 8px; }
.fx-packs .fx-box { flex: 0 0 calc((100% - 20px) / 5); height: 32px; border: 2px solid var(--fx-ink); border-radius: 3px; background: var(--fx-coral-pale); display: flex; align-items: center; gap: 1px; padding: 2px; box-sizing: border-box; }
.fx-packs .fx-box i { flex: 1; position: relative; display: block; height: 10px; margin-top: 7px; background: var(--fx-sun); border-bottom: 2px solid var(--fx-ink); }
.fx-packs .fx-box i::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px; border-radius: 60% 60% 15% 15%; background: var(--fx-paper); border: 1px solid var(--fx-ink); }
.fx-packs .fx-stock small { font-size: 12px; }
.fx-packs .fx-score { margin: 0; font-size: 30px; line-height: 1.2; }
.fx-packs .fx-sign { margin: 0 0 14px; padding: 10px; border: 2px solid var(--fx-ink); background: var(--fx-sun-pale); }
.fx-packs .fx-swap, .fx-packs .fx-messages { display: grid; }
.fx-packs .fx-state { grid-area: 1 / 1; visibility: hidden; }
.fx-packs .fx-messages p { margin: 0; box-sizing: border-box; }
.fx-packs:has(#fx-packs-16:checked) .fx-s16, .fx-packs:has(#fx-packs-17:checked) .fx-s17, .fx-packs:has(#fx-packs-18:checked) .fx-s18, .fx-packs:has(#fx-packs-19:checked) .fx-s19, .fx-packs:has(#fx-packs-20:checked) .fx-s20 { visibility: visible; }
.fx-packs .fx-total { font-size: 14px; line-height: 1.4; }
.fx-packs .fx-plates { display: flex; flex-wrap: wrap; max-width: 169px; gap: 5px; margin: 10px 0 14px; }
.fx-packs .fx-plates i { flex: 0 0 24px; display: block; width: 24px; height: 18px; box-sizing: border-box; border: 3px solid var(--fx-coral); border-radius: 50%; background: var(--fx-paper); }
.fx-packs .fx-spares { display: flex; gap: 10px; padding-top: 12px; height: 32px; }
.fx-packs .fx-spares i { visibility: hidden; display: block; position: relative; width: 18px; height: 16px; background: var(--fx-mint); border: 1px solid var(--fx-ink); border-radius: 0 0 4px 4px; }
.fx-packs .fx-spares i::before { content: ""; position: absolute; left: -2px; right: -2px; top: -9px; height: 12px; border-radius: 60% 60% 20% 20%; background: var(--fx-mint); border: 1px solid var(--fx-ink); }
.fx-packs:has(#fx-packs-16:checked) .fx-box:nth-child(n + 17), .fx-packs:has(#fx-packs-17:checked) .fx-box:nth-child(n + 18), .fx-packs:has(#fx-packs-18:checked) .fx-box:nth-child(n + 19), .fx-packs:has(#fx-packs-19:checked) .fx-box:nth-child(n + 20) { visibility: hidden; }
.fx-packs:has(#fx-packs-17:checked) .fx-plates i:nth-child(n + 8), .fx-packs:has(#fx-packs-18:checked) .fx-plates i:nth-child(n + 4), .fx-packs:has(#fx-packs-19:checked) .fx-plates i, .fx-packs:has(#fx-packs-20:checked) .fx-plates i { visibility: hidden; }
.fx-packs:has(#fx-packs-19:checked) .fx-spares i:first-child, .fx-packs:has(#fx-packs-20:checked) .fx-spares i { visibility: visible; }
@container (max-width: 480px) { .fx-packs .fx-table { grid-template-columns: minmax(0, 1fr); gap: 16px; } .fx-packs .fx-party { height: 670px; } }
@media (prefers-reduced-motion: reduce) { .fx-packs .fx-drum { transition: none; } }