.fx-stacks{--fx-coin-h:6px;display:grid;gap:16px;}
.fx-stacks .fx-instructions,.fx-stacks .fx-goal,.fx-stacks .fx-controls,.fx-stacks .fx-figure,.fx-stacks .fx-live{color:var(--fx-ink);}
.fx-stacks .fx-instructions ol{margin:0;padding-left:24px;}
.fx-stacks .fx-instructions li{padding:3px 0;}
.fx-stacks .fx-goal{margin:0;}
.fx-stacks .fx-controls{border:0;padding:0;margin:0;min-width:0;}
.fx-stacks .fx-controls legend{padding:0;margin-bottom:12px;font-weight:800;}
.fx-stacks .fx-frames{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.fx-stacks .fx-frame{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:76px;padding:10px 6px;border:4px solid var(--fx-sun);border-radius:6px;background:var(--fx-sun-pale);box-shadow:0 0 0 3px var(--fx-sun-pale);color:var(--fx-ink);font-size:14px;cursor:pointer;}
.fx-stacks .fx-frame:has(input:checked){background:var(--fx-mint-pale);border-color:var(--fx-ink);box-shadow:0 0 0 3px var(--fx-mint-pale);color:var(--fx-ink);}
.fx-stacks .fx-frame:has(input:focus-visible){outline:3px solid var(--fx-ink);outline-offset:4px;}
.fx-stacks .fx-tickbox{box-sizing:border-box;position:relative;flex:0 0 20px;width:20px;height:20px;border:2px solid var(--fx-ink);border-radius:3px;background:var(--fx-paper);}
.fx-stacks .fx-tickbox::after{content:"";position:absolute;left:3px;top:3px;width:9px;height:5px;border-left:2px solid var(--fx-ink);border-bottom:2px solid var(--fx-ink);transform:rotate(-45deg);opacity:0;}
.fx-stacks .fx-frame:has(input:checked) .fx-tickbox::after{opacity:1;}
.fx-stacks .fx-art{flex:0 0 32px;width:32px;height:24px;border:2px solid var(--fx-ink);background:var(--fx-paper);}
.fx-stacks .fx-art circle{fill:var(--fx-sun);}
.fx-stacks .fx-art path{fill:var(--fx-mint);stroke:var(--fx-ink);stroke-width:1;}
.fx-stacks .fx-help{margin:14px 0 0;font-size:14px;}
.fx-stacks .fx-figure{margin:0;min-width:0;}
.fx-stacks .fx-step{font-weight:800;margin-bottom:12px;}
.fx-stacks .fx-scene{box-sizing:border-box;position:relative;height:360px;overflow:hidden;color:var(--fx-ink);}
.fx-stacks .fx-perspective{position:relative;height:100%;perspective:800px;}
.fx-stacks .fx-caption{position:absolute;top:8px;left:8px;right:8px;margin:0;text-align:center;font-size:16px;line-height:1.3;}
.fx-stacks .fx-caption small{font-size:12px;}
.fx-stacks .fx-world{position:absolute;inset:0 18px;transform-style:preserve-3d;}
.fx-stacks .fx-shelf{position:absolute;left:0;right:0;bottom:100px;height:38px;border:1px solid var(--fx-ink);background:var(--fx-sky-pale);transform-origin:center bottom;transform:rotateX(65deg) translateZ(-1px);transform-style:preserve-3d;}
.fx-stacks .fx-shelf::after{content:"";position:absolute;left:0;right:0;bottom:0;height:7px;border:1px solid var(--fx-ink);background:var(--fx-sky);transform-origin:center bottom;transform:rotateX(-90deg) translateZ(3px);}
.fx-stacks .fx-axis{position:absolute;left:0;right:0;bottom:100px;height:0;border-top:2px solid var(--fx-ink);}
.fx-stacks .fx-tick{position:absolute;left:calc(var(--fx-n)*5%);bottom:-5px;height:10px;border-left:1px solid var(--fx-ink);}
.fx-stacks .fx-tick b{position:absolute;left:0;top:14px;transform:translateX(-50%);font-size:12px;font-weight:600;line-height:16px;}
.fx-stacks .fx-tick:nth-child(even) b{top:32px;}
.fx-stacks .fx-tower{position:absolute;left:calc(var(--fx-value)*5%);bottom:100px;width:4.5%;max-width:22px;height:calc(var(--fx-value)*var(--fx-coin-h));transform:translateX(-50%);transform-style:preserve-3d;}
.fx-stacks .fx-stack{position:relative;display:flex;flex-direction:column;width:100%;height:100%;transform-style:preserve-3d;opacity:0;transform:translate3d(0,-60px,30px) rotateX(-8deg) rotateY(-12deg) scale(0);transition:transform .5s,opacity .5s;}
.fx-stacks .fx-coin{box-sizing:border-box;position:relative;display:block;flex:0 0 var(--fx-coin-h);width:100%;height:var(--fx-coin-h);border:1px solid var(--fx-ink);border-radius:40%;background:var(--fx-sun);transform-style:preserve-3d;}
.fx-stacks .fx-coin:nth-of-type(even){background:var(--fx-sun-pale);}
.fx-stacks .fx-coin::before{content:"";position:absolute;left:-1px;right:-1px;top:-2px;height:3px;border:1px solid var(--fx-ink);border-radius:50%;background:var(--fx-sun-pale);transform:rotateX(40deg) translateZ(1px);}
.fx-stacks .fx-leader{position:absolute;left:50%;bottom:100%;height:calc(var(--fx-label) - var(--fx-value)*var(--fx-coin-h) - 3px);border-left:1px dotted var(--fx-ink);}
.fx-stacks .fx-price{box-sizing:border-box;position:absolute;left:50%;bottom:var(--fx-label);transform:translateX(-50%);width:44px;padding:3px 0;border:1px solid var(--fx-ink);border-radius:5px;background:var(--fx-paper);font-size:12px;line-height:16px;text-align:center;}
.fx-stacks .fx-cheapest{box-sizing:border-box;position:absolute;left:50%;bottom:112px;transform:translateX(-100%);width:70px;padding:3px;border-radius:5px;background:var(--fx-mint);font-size:12px;line-height:16px;text-align:center;visibility:hidden;}
.fx-stacks .fx-directions{position:absolute;left:0;right:0;bottom:29px;display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:18px;}
.fx-stacks .fx-read{position:absolute;left:50%;bottom:3px;transform:translateX(-50%);width:150px;box-sizing:border-box;margin:0;padding:4px;border-radius:6px;background:var(--fx-sky-pale);font-size:12px;line-height:18px;font-weight:800;text-align:center;}
.fx-stacks:has(#fx-stacks-a:checked) .fx-a .fx-stack,.fx-stacks:has(#fx-stacks-b:checked) .fx-b .fx-stack,.fx-stacks:has(#fx-stacks-c:checked) .fx-c .fx-stack,.fx-stacks:has(#fx-stacks-d:checked) .fx-d .fx-stack{opacity:1;transform:translate3d(0,0,0) rotateX(0deg) rotateY(0deg) scale(1);}
.fx-stacks .fx-messages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.fx-stacks .fx-live{display:grid;min-width:0;}
.fx-stacks .fx-live>p{grid-area:1 / 1;margin:0;visibility:hidden;color:var(--fx-ink);}
.fx-stacks .fx-live .fx-off,.fx-stacks .fx-live .fx-start{visibility:visible;}
.fx-stacks:has(input:checked) .fx-start{visibility:hidden;}
.fx-stacks:has(input:checked) .fx-progress{visibility:visible;}
.fx-stacks:has(#fx-stacks-a:checked) .fx-a-off,.fx-stacks:has(#fx-stacks-b:checked) .fx-b-off,.fx-stacks:has(#fx-stacks-c:checked) .fx-c-off,.fx-stacks:has(#fx-stacks-d:checked) .fx-d-off{visibility:hidden;}
.fx-stacks:has(#fx-stacks-a:checked) .fx-a-on,.fx-stacks:has(#fx-stacks-b:checked) .fx-b-on,.fx-stacks:has(#fx-stacks-c:checked) .fx-c-on,.fx-stacks:has(#fx-stacks-d:checked) .fx-d-on{visibility:visible;}
.fx-stacks:not(:has(input:not(:checked))) .fx-progress{visibility:hidden;}
.fx-stacks:not(:has(input:not(:checked))) .fx-complete,.fx-stacks:not(:has(input:not(:checked))) .fx-cheapest{visibility:visible;}
.fx-stacks:not(:has(input:not(:checked))) .fx-read{background:var(--fx-sun);}
@container (max-width:480px){.fx-stacks .fx-frames,.fx-stacks .fx-messages{grid-template-columns:1fr;}.fx-stacks .fx-frame{justify-content:flex-start;min-height:60px;padding:8px 12px;}.fx-stacks .fx-world{--fx-coin-h:4px;}}
@media (prefers-reduced-motion:reduce){.fx-stacks .fx-stack{transition:none;}}