.fx-packs { --fx-n: 0; --fx-line: var(--fx-coral); --fx-line-pale: var(--fx-coral-pale); display: grid; gap: 16px; }
.fx-packs:has(#fx-packs-n1:checked) { --fx-n: 1; }
.fx-packs:has(#fx-packs-n2:checked) { --fx-n: 2; }
.fx-packs:has(#fx-packs-n3:checked) { --fx-n: 3; }
.fx-packs:has(#fx-packs-n4:checked) { --fx-n: 4; }
.fx-packs:has(#fx-packs-n5:checked) { --fx-n: 5; }
.fx-packs:has(#fx-packs-n6:checked) { --fx-n: 6; --fx-line: var(--fx-mint); --fx-line-pale: var(--fx-mint-pale); }
.fx-packs:has(#fx-packs-n7:checked) { --fx-n: 7; --fx-line: var(--fx-mint); --fx-line-pale: var(--fx-mint-pale); }
.fx-packs .fx-packs-steps { list-style: none; padding: 0; margin: 0; font-size: 16px; line-height: 1.5; }
.fx-packs .fx-packs-steps li + li { margin-top: 4px; }
.fx-packs .fx-packs-guide, .fx-packs .fx-packs-goal { margin: 0; color: var(--fx-ink); }
.fx-packs .fx-packs-goal { font-size: 16px; line-height: 1.5; }
.fx-packs .fx-packs-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-packs .fx-packs-controls legend { font-size: 16px; font-weight: 800; padding: 0; margin-bottom: 10px; }
.fx-packs .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-packs .fx-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: 1 0 82px; min-height: 40px; padding: 8px; border: 2px solid var(--fx-muted); background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; line-height: 1.3; text-align: center; cursor: pointer; }
.fx-packs .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-packs .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-packs .fx-packs-result { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 16px; min-width: 0; }
.fx-packs .fx-packs-stage { box-sizing: border-box; position: relative; width: 100%; height: 440px; min-width: 0; padding: 0; overflow: hidden; border: 2px dashed var(--fx-sky); border-radius: 12px; background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-packs .fx-packs-counter { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; }
.fx-packs .fx-packs-values { display: grid; min-width: 64px; text-align: right; }
.fx-packs .fx-packs-total, .fx-packs .fx-packs-message { grid-area: 1 / 1; visibility: hidden; margin: 0; color: var(--fx-ink); }
.fx-packs .fx-packs-total { font-size: 28px; font-weight: 800; line-height: 1.2; }
.fx-packs .fx-packs-target { box-sizing: border-box; position: absolute; top: 56px; left: 12px; padding: 3px 6px; border: 1px solid var(--fx-line); background: var(--fx-line-pale); font-size: 14px; font-weight: 700; line-height: 20px; }
.fx-packs .fx-packs-scene { position: absolute; top: 90px; bottom: 0; left: 4px; right: 4px; }
.fx-packs .fx-packs-floor { box-sizing: border-box; position: absolute; left: 4px; right: 4px; bottom: 0; height: 32px; border-top: 2px solid var(--fx-ink); background: var(--fx-paper); text-align: center; font-size: 12px; line-height: 28px; }
.fx-packs .fx-packs-world { position: absolute; inset: 0; perspective: 400px; perspective-origin: 150% 0%; z-index: 1; }
.fx-packs .fx-packs-tower { position: absolute; inset: 0; transform-style: preserve-3d; }
.fx-packs .fx-packs-pack { --fx-on: clamp(0, calc(var(--fx-n) - var(--fx-layer)), 1); position: absolute; left: 8px; bottom: calc(32px + var(--fx-layer) * 40px); width: 128px; height: 40px; transform-style: preserve-3d; transform-origin: 50% 100%; opacity: var(--fx-on); transform: translate3d(0, calc((var(--fx-on) - 1) * 24px), calc((1 - var(--fx-on)) * 24px)) rotateX(calc((1 - var(--fx-on)) * -12deg)) rotateY(calc((1 - var(--fx-on)) * -12deg)) scale(var(--fx-on)); transition: transform 0.45s, opacity 0.35s; }
.fx-packs .fx-packs-front, .fx-packs .fx-packs-top, .fx-packs .fx-packs-side { box-sizing: border-box; position: absolute; border: 1.5px solid var(--fx-ink); }
.fx-packs .fx-packs-front { inset: 0; background: var(--fx-sun); }
.fx-packs .fx-packs-top { top: 0; left: 0; width: 128px; height: 40px; background: var(--fx-sun-pale); transform-origin: 50% 0; transform: rotateX(-90deg); }
.fx-packs .fx-packs-side { top: 0; left: 100%; width: 40px; height: 40px; background: var(--fx-coral-pale); transform-origin: 0 50%; transform: rotateY(90deg); }
.fx-packs .fx-packs-label { position: absolute; bottom: 3px; left: 0; width: 100%; font-size: 12px; line-height: 14px; text-align: center; transform: translateZ(0.3px); }
.fx-packs .fx-packs-seventh .fx-packs-front, .fx-packs .fx-packs-seventh .fx-packs-top, .fx-packs .fx-packs-seventh .fx-packs-side { opacity: 0.45; }
.fx-packs .fx-packs-extra { position: absolute; top: 0; left: 0; right: 0; height: 20px; background: var(--fx-mint-pale); font-size: 12px; line-height: 20px; text-align: center; visibility: hidden; transform: translateZ(0.2px); }
.fx-packs .fx-packs-gap { position: absolute; left: 8px; bottom: 232px; width: 128px; height: 20px; background: var(--fx-coral-pale); font-size: 12px; line-height: 20px; text-align: center; visibility: hidden; z-index: 2; }
.fx-packs:has(#fx-packs-n5:checked) .fx-packs-gap, .fx-packs:has(#fx-packs-n6:checked) .fx-packs-extra { visibility: visible; }
.fx-packs .fx-packs-line { position: absolute; left: 4px; right: 4px; bottom: 252px; height: 0; border-top: 2px dashed var(--fx-line); transform: translateY(50%); z-index: 4; }
.fx-packs .fx-packs-axis { position: absolute; top: 0; bottom: 32px; right: 4px; width: 32px; border-left: 2px solid var(--fx-muted); z-index: 5; }
.fx-packs .fx-packs-axis-title { position: absolute; top: 0; left: 4px; font-size: 12px; line-height: 16px; }
.fx-packs .fx-packs-tick { position: absolute; bottom: var(--fx-y); left: 4px; padding: 0 2px; background: var(--fx-paper); font-size: 12px; line-height: 16px; transform: translateY(50%); }
.fx-packs .fx-packs-threshold { background: var(--fx-line-pale); font-weight: 800; }
.fx-packs .fx-packs-messages { display: grid; min-width: 0; }
.fx-packs .fx-packs-message { display: block; align-self: stretch; box-sizing: border-box; padding: 12px; font-size: 16px; line-height: 1.5; }
.fx-packs:has(#fx-packs-n0:checked) .fx-packs-s0, .fx-packs:has(#fx-packs-n1:checked) .fx-packs-s1, .fx-packs:has(#fx-packs-n2:checked) .fx-packs-s2, .fx-packs:has(#fx-packs-n3:checked) .fx-packs-s3, .fx-packs:has(#fx-packs-n4:checked) .fx-packs-s4, .fx-packs:has(#fx-packs-n5:checked) .fx-packs-s5, .fx-packs:has(#fx-packs-n6:checked) .fx-packs-s6, .fx-packs:has(#fx-packs-n7:checked) .fx-packs-s7 { visibility: visible; }
@container (max-width: 480px) { .fx-packs .fx-packs-result { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-packs .fx-packs-pack { transition: none; } }