.fx-post { display: block; --fx-cards: 0; --fx-envelope: 0; --fx-stock-x: 79%; --fx-stock-y: 124px; --fx-pan-x: 32%; --fx-floor: 274px; --fx-total: calc(var(--fx-cards) * 30 + var(--fx-envelope) * 7); }
.fx-post:has(#fx-post-n1:checked) { --fx-cards: 1; }
.fx-post:has(#fx-post-n2:checked) { --fx-cards: 2; }
.fx-post:has(#fx-post-n3:checked) { --fx-cards: 3; }
.fx-post:has(#fx-post-n4:checked) { --fx-cards: 4; }
.fx-post:has(#fx-post-env:checked) { --fx-envelope: 1; --fx-floor: 244px; }
.fx-post * { box-sizing: border-box; }
.fx-post .fx-post-content { display: grid; gap: 14px; min-width: 0; color: var(--fx-ink); }
.fx-post .fx-post-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-post .fx-post-goal, .fx-post .fx-post-read { margin: 0; }
.fx-post .fx-post-controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-post .fx-post-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-post .fx-post-group legend { padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 15px; }
.fx-post .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-post .fx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; line-height: 1.3; cursor: pointer; }
.fx-post .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); }
.fx-post .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-post .fx-note, .fx-post .fx-right, .fx-post .fx-wrong { color: var(--fx-ink); }
.fx-post .fx-post-scene { position: relative; height: 446px; min-width: 0; padding: 0; overflow: hidden; }
.fx-post .fx-post-limit { position: absolute; top: 12px; left: 12px; right: 12px; font-size: 14px; }
.fx-post .fx-post-track { position: relative; height: 22px; margin-top: 7px; border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-paper); }
.fx-post .fx-post-fill { display: block; height: 100%; width: calc(var(--fx-total) * 100% / 130); background: var(--fx-mint); transition: width 0.4s; }
.fx-post:has(#fx-post-n4:checked) .fx-post-fill { background: var(--fx-coral); }
.fx-post .fx-post-marker { position: absolute; left: 76.923%; top: -5px; bottom: -5px; border-left: 3px solid var(--fx-ink); }
.fx-post .fx-post-ticks { position: relative; margin-top: 6px; height: 18px; font-size: 12px; }
.fx-post .fx-post-limit-number { position: absolute; left: 76.923%; transform: translateX(-50%); font-weight: 800; }
.fx-post .fx-post-pile-label { position: absolute; left: var(--fx-stock-x); top: 92px; width: 38%; transform: translateX(-50%); text-align: center; font-size: 14px; }
.fx-post .fx-post-card { position: absolute; z-index: 2; left: var(--fx-stock-x); top: calc(var(--fx-stock-y) + var(--fx-i) * 28px); width: 104px; height: 26px; display: grid; place-items: center; transform: translateX(-50%); border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-paper); font-size: 12px; font-weight: 800; transition: left 0.4s, top 0.4s; }
.fx-post .fx-post-card:nth-child(even) { background: var(--fx-coral-pale); }
.fx-post:has(#fx-post-n1:checked) .fx-post-card:nth-child(1), .fx-post:has(#fx-post-n2:checked) .fx-post-card:nth-child(-n+2), .fx-post:has(#fx-post-n3:checked) .fx-post-card:nth-child(-n+3), .fx-post:has(#fx-post-n4:checked) .fx-post-card { left: var(--fx-pan-x); top: calc(var(--fx-floor) - 26px - (var(--fx-cards) - 1 - var(--fx-i)) * 28px); }
.fx-post .fx-post-envelope { position: absolute; z-index: 1; left: 79%; top: 278px; width: 132px; height: 98px; transform: translateX(-50%); transition: left 0.4s, top 0.4s, width 0.4s, height 0.4s; }
.fx-post .fx-post-envelope svg { display: block; width: 100%; height: 100%; }
.fx-post .fx-post-envelope rect { fill: var(--fx-sun-pale); stroke: var(--fx-ink); stroke-width: 2; }
.fx-post .fx-post-envelope path { fill: none; stroke: var(--fx-ink); stroke-width: 2; }
.fx-post .fx-post-envelope-label { position: absolute; bottom: 6px; left: 0; width: 100%; text-align: center; font-size: 12px; }
.fx-post:has(#fx-post-env:checked) .fx-post-envelope { left: var(--fx-pan-x); top: 126px; width: 142px; height: 148px; }
.fx-post:has(#fx-post-env:checked):has(#fx-post-n4:checked) .fx-post-envelope { width: 156px; }
.fx-post .fx-post-machine { position: absolute; z-index: 3; top: 278px; left: 4%; width: 56%; }
.fx-post .fx-post-pan { height: 12px; border: 3px solid var(--fx-ink); border-radius: 5px; background: var(--fx-sky); }
.fx-post .fx-post-base { height: 132px; padding: 8px 12px; border: 3px solid var(--fx-ink); border-top: 0; border-radius: 0 0 14px 14px; background: var(--fx-paper); display: grid; gap: 4px; text-align: center; }
.fx-post .fx-post-display-label { font-size: 12px; }
.fx-post .fx-post-screen { position: relative; padding: 4px 24px; border: 2px solid var(--fx-ink); border-radius: 5px; background: var(--fx-mint); }
.fx-post .fx-post-digits { font-size: 28px; font-weight: 800; line-height: 1.2; }
.fx-post .fx-post-digits small { font-size: 14px; }
.fx-post .fx-post-machine-label { font-size: 14px; }
.fx-post .fx-post-tick { position: absolute; top: 7px; right: 6px; font-size: 22px; font-weight: 800; visibility: hidden; }
.fx-post .fx-post-swap { display: grid; min-width: 0; }
.fx-post .fx-post-swap > * { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-post:has(#fx-post-n0:checked):not(:has(#fx-post-env:checked)) .fx-post-s0, .fx-post:has(#fx-post-n1:checked):not(:has(#fx-post-env:checked)) .fx-post-s1, .fx-post:has(#fx-post-n2:checked):not(:has(#fx-post-env:checked)) .fx-post-s2, .fx-post:has(#fx-post-n3:checked):not(:has(#fx-post-env:checked)) .fx-post-s3, .fx-post:has(#fx-post-n4:checked):not(:has(#fx-post-env:checked)) .fx-post-s4, .fx-post:has(#fx-post-n0:checked):has(#fx-post-env:checked) .fx-post-s5, .fx-post:has(#fx-post-n1:checked):has(#fx-post-env:checked) .fx-post-s6, .fx-post:has(#fx-post-n2:checked):has(#fx-post-env:checked) .fx-post-s7, .fx-post:has(#fx-post-n3:checked):has(#fx-post-env:checked) .fx-post-s8, .fx-post:has(#fx-post-n4:checked):has(#fx-post-env:checked) .fx-post-s9 { visibility: visible; }
@container (max-width: 480px) { .fx-post .fx-post-controls { grid-template-columns: 1fr; } .fx-post .fx-post-scene { height: 612px; --fx-stock-x: 26%; --fx-stock-y: 480px; --fx-pan-x: 50%; } .fx-post .fx-post-machine { width: 92%; } .fx-post .fx-post-pile-label { top: 450px; width: 44%; } .fx-post .fx-post-envelope { left: 74%; top: 480px; width: 106px; height: 110px; } }