.fx-hops{--fx-hops-n:0;--fx-hops-v0:visible;--fx-hops-v1:hidden;--fx-hops-v2:hidden;--fx-hops-v3:hidden;--fx-hops-v4:hidden;--fx-hops-v5:hidden;--fx-hops-bank:var(--fx-mint-pale);display:grid}
.fx-hops:has(.fx-hops-pads input:checked){--fx-hops-n:1;--fx-hops-v0:hidden;--fx-hops-v1:visible}
.fx-hops:has(.fx-hops-pads input:checked ~ input:checked){--fx-hops-n:2;--fx-hops-v1:hidden;--fx-hops-v2:visible}
.fx-hops:has(.fx-hops-pads input:checked ~ input:checked ~ input:checked){--fx-hops-n:3;--fx-hops-v2:hidden;--fx-hops-v3:visible}
.fx-hops:has(.fx-hops-pads input:checked ~ input:checked ~ input:checked ~ input:checked){--fx-hops-n:4;--fx-hops-v3:hidden;--fx-hops-v4:visible}
.fx-hops:has(.fx-hops-pads input:checked ~ input:checked ~ input:checked ~ input:checked ~ input:checked){--fx-hops-n:5;--fx-hops-v4:hidden;--fx-hops-v5:visible;--fx-hops-bank:var(--fx-mint)}
.fx-hops .fx-hops-wrap{display:grid;gap:14px;min-width:0;color:var(--fx-ink)}
.fx-hops .fx-hops-wrap p{margin:0}
.fx-hops .fx-hops-steps{margin:0;padding-left:24px;line-height:1.5}
.fx-hops .fx-hops-controls{min-width:0;margin:0;padding:0;border:0}
.fx-hops .fx-hops-controls legend{padding:0;margin-bottom:10px;font-weight:800}
.fx-hops .fx-hops-pads{gap:8px}
.fx-hops .fx-hops-pad{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:1 1 36px;min-width:36px;max-width:72px;min-height:44px;padding:10px 5px;border:2px solid var(--fx-ink);border-radius:50% 50% 45% 45%;background:var(--fx-mint-pale);color:var(--fx-ink);font-size:14px;cursor:pointer}
.fx-hops .fx-hops-pads input:checked + .fx-hops-pad{background:var(--fx-mint);color:var(--fx-ink);box-shadow:inset 0 -3px 0 var(--fx-ink)}
.fx-hops .fx-hops-pads input:focus-visible + .fx-hops-pad{outline:3px solid var(--fx-grape);outline-offset:3px}
.fx-hops .fx-hops-controls .fx-hops-tip{margin-top:10px;font-size:12px;line-height:1.5}
.fx-hops .fx-hops-river{position:relative;box-sizing:border-box;height:300px;min-width:0;padding:0;overflow:hidden;background:var(--fx-sky-pale);perspective:700px}
.fx-hops .fx-hops-world{position:absolute;inset:0;transform-style:preserve-3d}
.fx-hops .fx-hops-river-labels{position:absolute;top:12px;left:8px;right:8px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:12px}
.fx-hops .fx-hops-bank{position:absolute;top:174px;bottom:22px;right:0;width:calc(100% / 11);background:var(--fx-hops-bank);border-top:4px solid var(--fx-mint);transition:background 0.3s}
.fx-hops .fx-hops-stones{position:absolute;top:184px;left:0;right:0;display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:1px}
.fx-hops .fx-hops-stones span{box-sizing:border-box;display:grid;place-items:center;justify-self:center;width:100%;max-width:40px;aspect-ratio:1;border:1px solid var(--fx-ink);border-radius:50%;background:var(--fx-sun-pale);box-shadow:0 3px 0 var(--fx-muted);font-size:12px;line-height:1}
.fx-hops .fx-hops-stones .fx-hops-start{background:var(--fx-sun);font-weight:800}
.fx-hops .fx-hops-flag{position:absolute;top:228px;left:50%;padding:4px;border-left:2px solid var(--fx-ink);background:var(--fx-paper);font-size:12px;white-space:nowrap}
.fx-hops .fx-hops-flag::before{content:"";position:absolute;top:-24px;left:-2px;height:24px;border-left:2px solid var(--fx-ink)}
.fx-hops .fx-hops-bank-label{position:absolute;right:6px;bottom:5px;padding:3px;background:var(--fx-hops-bank);font-size:12px;font-weight:800}
.fx-hops .fx-hops-arc{--fx-hops-on:clamp(0,calc(var(--fx-hops-n) - var(--fx-hops-i)),1);position:absolute;top:64px;left:calc((5.5 + var(--fx-hops-i)) * 100% / 11);width:calc(100% / 11);height:68px;opacity:var(--fx-hops-on);transform-style:preserve-3d;transform:translate3d(0,calc((1 - var(--fx-hops-on)) * -30px),calc((1 - var(--fx-hops-on)) * 20px)) rotateX(calc((1 - var(--fx-hops-on)) * -55deg)) scale(var(--fx-hops-on));transition:transform 0.4s,opacity 0.3s}
.fx-hops .fx-hops-arc span{position:absolute;top:0;left:0;right:0;text-align:center;font-size:12px;font-weight:800}
.fx-hops .fx-hops-arc svg{position:absolute;top:16px;left:0;width:100%;height:52px;fill:none;stroke:var(--fx-ink);stroke-width:1.5px}
.fx-hops .fx-hops-arc path{vector-effect:non-scaling-stroke}
.fx-hops .fx-hops-frog-name{position:absolute;top:132px;left:clamp(0px,calc((5.5 + var(--fx-hops-n)) * 100% / 11 - 28px),calc(100% - 56px));width:56px;text-align:center;font-size:12px;line-height:16px;transition:left 0.45s}
.fx-hops .fx-hops-frog{position:absolute;top:150px;left:calc(500% / 11);width:calc(100% / 11);height:34px;display:flex;align-items:flex-end;justify-content:center;transform-style:preserve-3d;transform:translate3d(calc(var(--fx-hops-n) * 100%),0,0) rotateY(calc(var(--fx-hops-n) * 2deg));transition:transform 0.45s ease-out}
.fx-hops .fx-hops-frog svg{display:block;width:100%;max-width:40px;height:auto}
.fx-hops:where(:has(.fx-hops-pads :nth-child(odd of :checked):nth-last-child(1 of :checked))) .fx-hops-frog svg{animation:fx-hops-leap-a 0.45s ease-out}
.fx-hops:where(:has(.fx-hops-pads :nth-child(even of :checked):nth-last-child(1 of :checked))) .fx-hops-frog svg{animation:fx-hops-leap-b 0.45s ease-out}
.fx-hops .fx-hops-skin{fill:var(--fx-mint);stroke:var(--fx-ink);stroke-width:1.5}
.fx-hops .fx-hops-eyes{fill:var(--fx-ink)}
.fx-hops .fx-hops-smile{fill:none;stroke:var(--fx-ink);stroke-width:2}
.fx-hops .fx-hops-readout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.fx-hops .fx-hops-card{display:grid;gap:4px;min-width:0;padding:12px}
.fx-hops .fx-hops-stack,.fx-hops .fx-hops-says{display:grid}
.fx-hops .fx-hops-stack{font-size:24px;line-height:1.3}
.fx-hops .fx-hops-stack > span,.fx-hops .fx-hops-says > p{grid-area:1 / 1}
.fx-hops .fx-hops-s0{visibility:var(--fx-hops-v0)}
.fx-hops .fx-hops-s1{visibility:var(--fx-hops-v1)}
.fx-hops .fx-hops-s2{visibility:var(--fx-hops-v2)}
.fx-hops .fx-hops-s3{visibility:var(--fx-hops-v3)}
.fx-hops .fx-hops-s4{visibility:var(--fx-hops-v4)}
.fx-hops .fx-hops-s5{visibility:var(--fx-hops-v5)}
@container (max-width:480px){.fx-hops .fx-hops-readout{grid-template-columns:1fr}}
@keyframes fx-hops-leap-a{0%,100%{transform:translateY(0) rotateZ(0deg)}50%{transform:translateY(-22px) rotateZ(-8deg)}}
@keyframes fx-hops-leap-b{0%,100%{transform:translateY(0) rotateZ(0deg)}50%{transform:translateY(-22px) rotateZ(-8deg)}}
@media (prefers-reduced-motion:reduce){.fx-hops .fx-hops-frog,.fx-hops .fx-hops-frog-name,.fx-hops .fx-hops-arc,.fx-hops .fx-hops-bank{transition:none}.fx-hops .fx-hops-frog svg{animation:none}}