.fx-stack { --fx-month:0; --fx-weeks:0; --fx-days:0; display:grid; gap:14px; }
.fx-stack:has(#fx-stack-jan:checked) { --fx-month:1; --fx-weeks:4; --fx-days:3; }
.fx-stack:has(#fx-stack-feb:checked) { --fx-month:2; --fx-weeks:8; --fx-days:3; }
.fx-stack:has(#fx-stack-mar:checked) { --fx-month:3; --fx-weeks:12; --fx-days:6; }
.fx-stack:has(#fx-stack-apr:checked) { --fx-month:4; --fx-weeks:17; --fx-days:1; }
.fx-stack:has(#fx-stack-may:checked) { --fx-month:5; --fx-weeks:21; --fx-days:4; }
.fx-stack:has(#fx-stack-jun:checked) { --fx-month:6; --fx-weeks:25; --fx-days:6; }
.fx-stack:has(#fx-stack-jul:checked) { --fx-month:7; --fx-weeks:30; --fx-days:2; }
.fx-stack:has(#fx-stack-aug:checked) { --fx-month:8; --fx-weeks:34; --fx-days:5; }
.fx-stack:has(#fx-stack-sep:checked) { --fx-month:9; --fx-weeks:39; --fx-days:0; }
.fx-stack:has(#fx-stack-oct:checked) { --fx-month:10; --fx-weeks:43; --fx-days:3; }
.fx-stack:has(#fx-stack-nov:checked) { --fx-month:11; --fx-weeks:47; --fx-days:5; }
.fx-stack:has(#fx-stack-dec:checked) { --fx-month:12; --fx-weeks:52; --fx-days:1; }
.fx-stack .fx-steps { list-style:none; margin:0; padding:0; }
.fx-stack .fx-steps li + li { margin-top:6px; }
.fx-stack .fx-goal, .fx-stack .fx-context, .fx-stack .fx-key { margin:0; color:var(--fx-ink); }
.fx-stack .fx-context { font-size:14px; }
.fx-stack .fx-calendar { min-width:0; padding:0; margin:0; border:0; }
.fx-stack .fx-calendar legend { padding:0; font-weight:800; }
.fx-stack .fx-calendar p { margin:8px 0 12px; }
.fx-stack .fx-row { display:flex; flex-wrap:wrap; gap:8px; }
.fx-stack .fx-btn { box-sizing:border-box; min-width:44px; min-height:40px; padding:8px 12px; color:var(--fx-ink); background:var(--fx-paper); }
.fx-stack .fx-btn:has(input:checked) { color:var(--fx-ink); background:var(--fx-sky-pale); border-color:var(--fx-ink); }
.fx-stack .fx-btn:has(input:focus-visible) { outline:3px solid var(--fx-ink); outline-offset:3px; }
.fx-stack .fx-board { box-sizing:border-box; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:406px; align-content:start; gap:18px; height:448px; padding:12px; color:var(--fx-ink); }
.fx-stack .fx-station { min-width:0; display:block; }
.fx-stack .fx-part { height:48px; margin:0; text-align:center; font-size:14px; line-height:1.3; }
.fx-stack .fx-view { height:292px; position:relative; perspective:650px; perspective-origin:50% 45%; }
.fx-stack .fx-tower { --fx-count:calc(var(--fx-month) * 4); --fx-face:var(--fx-muted); --fx-top:var(--fx-paper); position:absolute; left:50%; bottom:12px; width:64px; height:270px; margin-left:-32px; transform-style:preserve-3d; transform:rotateX(-12deg) rotateY(-22deg); }
.fx-stack .fx-real .fx-tower { --fx-count:var(--fx-weeks); --fx-face:var(--fx-sky); --fx-top:var(--fx-sky-pale); }
.fx-stack .fx-layers { transform-style:preserve-3d; }
.fx-stack .fx-layers > i { --fx-on:clamp(0,calc(var(--fx-count) - var(--fx-i)),1); box-sizing:border-box; position:absolute; left:0; bottom:calc(var(--fx-i) * 5px); width:64px; height:5px; background:var(--fx-face); border:1px solid var(--fx-ink); transform-style:preserve-3d; transform:translate3d(0,calc((1 - var(--fx-on)) * -20px),0) scale(var(--fx-on)); transition:transform 0.65s; }
.fx-stack .fx-layers > .fx-gold { --fx-face:var(--fx-sun); --fx-top:var(--fx-sun-pale); transform:translate3d(0,calc((1 - var(--fx-on)) * (var(--fx-i) * 5px + 44px)),0) scale(var(--fx-on)); }
.fx-stack .fx-layers > i::before, .fx-stack .fx-base::before { content:""; box-sizing:border-box; position:absolute; left:0; bottom:100%; width:100%; height:16px; background:var(--fx-top); border:1px solid var(--fx-ink); transform-origin:bottom; transform:rotateX(90deg); }
.fx-stack .fx-layers > i::after { content:""; box-sizing:border-box; position:absolute; left:100%; top:-1px; width:16px; height:5px; background:var(--fx-face); border:1px solid var(--fx-ink); transform-origin:left; transform:rotateY(90deg); }
.fx-stack .fx-base { box-sizing:border-box; position:absolute; left:-16px; bottom:-8px; width:96px; height:8px; background:var(--fx-face); border:1px solid var(--fx-ink); transform-style:preserve-3d; transform:translateZ(-2px); }
.fx-stack .fx-flag { position:absolute; right:-37px; bottom:252px; padding:2px 5px; border-left:2px solid var(--fx-ink); background:var(--fx-sun); color:var(--fx-ink); font-size:14px; visibility:hidden; }
.fx-stack:has(#fx-stack-dec:checked) .fx-flag { visibility:visible; }
.fx-stack .fx-foot { box-sizing:border-box; height:66px; margin:0; padding-top:8px; text-align:center; font-size:14px; }
.fx-stack .fx-tray { box-sizing:border-box; height:66px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:8px; padding:6px; border:1px solid var(--fx-ink); border-radius:8px; background:var(--fx-paper); font-size:14px; }
.fx-stack .fx-pebbles { display:flex; gap:4px; height:16px; }
.fx-stack .fx-pebbles > i { box-sizing:border-box; width:16px; height:16px; border:1px solid var(--fx-ink); border-radius:50%; background:var(--fx-sun); transform:scale(clamp(0,calc(var(--fx-days) - var(--fx-i)),1)); transition:transform 0.45s; }
.fx-stack .fx-says { display:grid; min-width:0; }
.fx-stack .fx-says > p { grid-area:1 / 1; visibility:hidden; margin:0; }
.fx-stack:has(#fx-stack-start:checked) .fx-s0, .fx-stack:has(#fx-stack-jan:checked) .fx-s1, .fx-stack:has(#fx-stack-feb:checked) .fx-s2, .fx-stack:has(#fx-stack-mar:checked) .fx-s3, .fx-stack:has(#fx-stack-apr:checked) .fx-s4, .fx-stack:has(#fx-stack-may:checked) .fx-s5, .fx-stack:has(#fx-stack-jun:checked) .fx-s6, .fx-stack:has(#fx-stack-jul:checked) .fx-s7, .fx-stack:has(#fx-stack-aug:checked) .fx-s8, .fx-stack:has(#fx-stack-sep:checked) .fx-s9, .fx-stack:has(#fx-stack-oct:checked) .fx-s10, .fx-stack:has(#fx-stack-nov:checked) .fx-s11, .fx-stack:has(#fx-stack-dec:checked) .fx-s12 { visibility:visible; }
@container (max-width:480px) { .fx-stack .fx-board { grid-template-columns:minmax(0,1fr); height:864px; } }