.fx-packs { display: grid; gap: 12px; }
.fx-packs * { box-sizing: border-box; }
.fx-packs .fx-packs-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-packs .fx-packs-goal { margin: 0; }
.fx-packs .fx-packs-controls { min-width: 0; border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-packs .fx-packs-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-packs .fx-packs-choices { display: grid; grid-template-columns: repeat(7, minmax(24px, 1fr)); gap: 4px; }
.fx-packs .fx-btn { min-width: 24px; min-height: 40px; padding: 8px 0; justify-content: center; text-align: center; color: var(--fx-ink); background: var(--fx-paper); }
.fx-packs .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun); }
.fx-packs .fx-btn:focus-within { outline: 3px solid var(--fx-ink); outline-offset: 2px; }
.fx-packs .fx-packs-hints, .fx-packs .fx-packs-says, .fx-packs .fx-packs-values { display: grid; }
.fx-packs .fx-packs-state { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-packs .fx-packs-hint { display: grid; grid-template-columns: repeat(7, minmax(24px, 1fr)); gap: 4px; min-height: 24px; font-size: 12px; line-height: 24px; }
.fx-packs .fx-packs-arrow { grid-column: 2; text-align: center; font-size: 20px; }
.fx-packs .fx-packs-hint-words { grid-column: 3 / -1; }
.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 { visibility: visible; }
.fx-packs .fx-packs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fx-packs .fx-stage { min-width: 0; padding: 12px; position: relative; overflow: hidden; color: var(--fx-ink); }
.fx-packs .fx-packs-shelf-stage { height: 340px; }
.fx-packs .fx-packs-side { display: grid; grid-template-rows: 188px 140px; gap: 12px; min-width: 0; }
.fx-packs .fx-packs-sample { height: 188px; }
.fx-packs .fx-packs-cap { display: block; font-size: 14px; line-height: 20px; }
.fx-packs .fx-packs-view { position: absolute; top: 34px; left: 50%; width: 204px; max-width: 100%; height: 260px; transform: translateX(-50%); perspective: 800px; }
.fx-packs .fx-packs-world { position: absolute; left: 50%; top: 0; margin-left: -92px; width: 184px; height: 248px; transform-style: preserve-3d; transform: rotateX(-16deg) rotateY(-18deg); }
.fx-packs .fx-packs-tower { position: absolute; inset: 0; transform-style: preserve-3d; }
.fx-packs .fx-packs-pack { position: absolute; left: 12px; bottom: calc(30px + var(--fx-level) * 30px); width: 160px; height: 30px; transform-style: preserve-3d; transition: transform 0.45s, opacity 0.45s, visibility 0.45s; }
.fx-packs .fx-packs-tower .fx-packs-pack { visibility: hidden; opacity: 0; transform: translate3d(0, -42px, 0) scale(0); }
.fx-packs:has(#fx-packs-n1:checked) .fx-packs-tower .fx-packs-pack:nth-child(-n + 1), .fx-packs:has(#fx-packs-n2:checked) .fx-packs-tower .fx-packs-pack:nth-child(-n + 2), .fx-packs:has(#fx-packs-n3:checked) .fx-packs-tower .fx-packs-pack:nth-child(-n + 3), .fx-packs:has(#fx-packs-n4:checked) .fx-packs-tower .fx-packs-pack:nth-child(-n + 4), .fx-packs:has(#fx-packs-n5:checked) .fx-packs-tower .fx-packs-pack:nth-child(-n + 5), .fx-packs:has(#fx-packs-n6:checked) .fx-packs-tower .fx-packs-pack:nth-child(-n + 6) { visibility: visible; opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.fx-packs .fx-packs-front { position: absolute; inset: 0; border: 1px solid var(--fx-ink); background: var(--fx-sun-pale); transform: translateZ(22px); }
.fx-packs .fx-packs-top { position: absolute; left: 0; top: 0; width: 100%; height: 44px; border: 1px solid var(--fx-ink); background: var(--fx-sun-pale); transform: translateY(-50%) rotateX(90deg); }
.fx-packs .fx-packs-end { position: absolute; left: 100%; top: 0; width: 44px; height: 100%; border: 1px solid var(--fx-ink); background: var(--fx-sun); transform: translateX(-50%) rotateY(90deg); }
.fx-packs .fx-packs-bodies, .fx-packs .fx-packs-lids { display: block; width: 100%; height: 100%; stroke: var(--fx-ink); stroke-width: 1; stroke-linejoin: round; }
.fx-packs .fx-packs-bodies { fill: var(--fx-paper); }
.fx-packs .fx-packs-lids { fill: var(--fx-sky); }
.fx-packs .fx-packs-pack .fx-packs-front::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 8px; border-top: 1px solid var(--fx-ink); background: var(--fx-sun); }
.fx-packs .fx-packs-pack-tag { position: absolute; right: 0; bottom: 0; z-index: 1; width: 18px; height: 17px; border: 1px solid var(--fx-ink); border-radius: 3px; background: var(--fx-sun); color: var(--fx-ink); font-size: 12px; line-height: 15px; text-align: center; }
.fx-packs .fx-packs-board { position: absolute; left: 0; bottom: 20px; width: 184px; height: 10px; transform-style: preserve-3d; }
.fx-packs .fx-packs-board .fx-packs-front { transform: translateZ(26px); background: var(--fx-grape); }
.fx-packs .fx-packs-board .fx-packs-top { height: 52px; background: var(--fx-sky); }
.fx-packs .fx-packs-board .fx-packs-end { width: 52px; background: var(--fx-grape); }
.fx-packs .fx-packs-sample-view { position: relative; top: auto; left: auto; height: 100px; margin: 18px auto 0; transform: none; }
.fx-packs .fx-packs-sample-world { height: 90px; }
.fx-packs .fx-packs-sample-world .fx-packs-pack { bottom: 20px; }
.fx-packs .fx-packs-sum-holder { position: absolute; left: 8px; right: 8px; bottom: 14px; display: grid; }
.fx-packs .fx-packs-sum { text-align: center; font-size: 16px; line-height: 28px; opacity: 0; transform: translateY(-18px); transition: transform 0.45s, opacity 0.45s; }
.fx-packs .fx-packs-sum b { display: inline-block; padding: 0 6px; border: 1px solid var(--fx-ink); border-radius: 4px; background: var(--fx-sun); }
.fx-packs:has(#fx-packs-n3:checked) .fx-packs-sum { opacity: 1; transform: translateY(0); }
.fx-packs .fx-packs-total { height: 140px; display: grid; align-content: center; justify-items: center; gap: 4px; }
.fx-packs .fx-packs-values { width: 100%; font-size: 44px; line-height: 52px; text-align: center; }
.fx-packs .fx-packs-tick { position: absolute; right: 14px; bottom: 14px; font-size: 26px; line-height: 28px; color: var(--fx-ink); background: var(--fx-mint); border-radius: 50%; width: 30px; height: 30px; text-align: center; }
.fx-packs:has(#fx-packs-n3:checked) .fx-packs-total { background: var(--fx-mint-pale); }
.fx-packs:has(#fx-packs-n1:checked) .fx-packs-tower .fx-packs-lids { fill: var(--fx-mint); }
.fx-packs:has(#fx-packs-n1:checked) .fx-packs-tower .fx-packs-bodies { fill: var(--fx-mint-pale); }
@container (max-width: 480px) { .fx-packs .fx-packs-layout { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-packs .fx-packs-pack, .fx-packs .fx-packs-sum { transition: none; } }