.fx-fence{--fx-ab:0;--fx-bc:0;--fx-dc:0;--fx-ed:0;--fx-ef:0;--fx-fa:0;display:grid;gap:16px}
.fx-fence:has(#fx-fence-ab:checked){--fx-ab:1}
.fx-fence:has(#fx-fence-bc:checked){--fx-bc:1}
.fx-fence:has(#fx-fence-dc:checked){--fx-dc:1}
.fx-fence:has(#fx-fence-ed:checked){--fx-ed:1}
.fx-fence:has(#fx-fence-ef:checked){--fx-ef:1}
.fx-fence:has(#fx-fence-fa:checked){--fx-fa:1}
.fx-fence .fx-fence-shell{display:grid;gap:16px;min-width:0;color:var(--fx-ink);font-size:16px;line-height:1.45}
.fx-fence ol{margin:0;padding-left:24px}
.fx-fence li+li{margin-top:6px}
.fx-fence .fx-fence-goal,.fx-fence .fx-fence-reset{margin:0}
.fx-fence fieldset{border:0;padding:0;margin:0;min-width:0}
.fx-fence legend{font-weight:800;padding:0;margin-bottom:10px}
.fx-fence .fx-fence-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fx-fence .fx-btn{box-sizing:border-box;position:relative;min-width:24px;min-height:48px;padding:10px;white-space:normal;text-align:left;color:var(--fx-ink);background:var(--fx-paper);font-size:16px}
.fx-fence .fx-btn:has(input:checked){background:var(--fx-mint-pale);color:var(--fx-ink);border-color:var(--fx-ink)}
.fx-fence .fx-btn:focus-within{outline:3px solid var(--fx-ink);outline-offset:3px}
.fx-fence .fx-fence-scene{box-sizing:border-box;height:370px;padding:0;position:relative}
.fx-fence .fx-fence-art{position:relative;width:280px;max-width:100%;aspect-ratio:7/9;margin:0 auto}
.fx-fence svg{display:block;width:100%;height:auto}
.fx-fence svg text{fill:var(--fx-ink);font-size:16px;text-anchor:middle}
.fx-fence .fx-fence-grass{fill:var(--fx-mint-pale);stroke:none}
.fx-fence .fx-fence-edge{fill:none;stroke:var(--fx-muted);stroke-width:4;stroke-dasharray:7 5}
.fx-fence .fx-fence-path-line{stroke:var(--fx-grape);stroke-width:3;stroke-dasharray:2 5;fill:none}
.fx-fence .fx-fence-cross{visibility:hidden;fill:none;stroke:var(--fx-coral);stroke-width:4}
.fx-fence .fx-fence-leader{stroke:var(--fx-ink);stroke-width:1;fill:none}
.fx-fence .fx-fence-hint path{stroke:var(--fx-ink);stroke-width:2;fill:none}
.fx-fence .fx-fence-hit{position:absolute;display:block;min-width:24px;min-height:24px;cursor:pointer}
.fx-fence .fx-fence-hit:hover{outline:2px dashed var(--fx-sky)}
.fx-fence .fx-fence-hit-ab{left:19.643%;top:19.444%;width:57.857%;height:24px;transform:translateY(-50%)}
.fx-fence .fx-fence-hit-bc{left:77.5%;top:19.444%;width:24px;height:52.5%;transform:translateX(-50%)}
.fx-fence .fx-fence-hit-dc{left:58.214%;top:71.944%;width:19.286%;height:24px;transform:translateY(-50%)}
.fx-fence .fx-fence-hit-ed{left:58.214%;top:41.944%;width:24px;height:30%;transform:translateX(-50%)}
.fx-fence .fx-fence-hit-ef{left:19.643%;top:41.944%;width:38.571%;height:24px;transform:translateY(-50%)}
.fx-fence .fx-fence-hit-fa{left:19.643%;top:19.444%;width:24px;height:22.5%;transform:translateX(-50%)}
.fx-fence .fx-fence-hit-path{left:58.214%;top:41.944%;width:19.286%;height:24px;transform:translateY(-50%)}
.fx-fence .fx-fence-ab{--fx-on:var(--fx-ab)}
.fx-fence .fx-fence-bc{--fx-on:var(--fx-bc)}
.fx-fence .fx-fence-dc{--fx-on:var(--fx-dc)}
.fx-fence .fx-fence-ed{--fx-on:var(--fx-ed)}
.fx-fence .fx-fence-ef{--fx-on:var(--fx-ef)}
.fx-fence .fx-fence-fa{--fx-on:var(--fx-fa)}
.fx-fence:has(#fx-fence-ab:checked) .fx-fence-ab,.fx-fence:has(#fx-fence-bc:checked) .fx-fence-bc,.fx-fence:has(#fx-fence-dc:checked) .fx-fence-dc,.fx-fence:has(#fx-fence-ed:checked) .fx-fence-ed,.fx-fence:has(#fx-fence-ef:checked) .fx-fence-ef,.fx-fence:has(#fx-fence-fa:checked) .fx-fence-fa{stroke:var(--fx-ink);stroke-dasharray:none;stroke-width:5}
.fx-fence .fx-fence-roll{display:grid;gap:8px;min-width:0}
.fx-fence .fx-fence-roll>p{margin:0}
.fx-fence .fx-fence-ruler{position:relative;height:68px}
.fx-fence .fx-fence-used{display:flex;height:22px;width:100%;background:var(--fx-paper);outline:1px solid var(--fx-muted);overflow:hidden}
.fx-fence .fx-fence-segment{display:block;flex:none;min-width:0;height:100%;width:calc(var(--fx-length)*var(--fx-on)*100%/26);background:var(--fx-ink);box-shadow:inset -1px 0 0 var(--fx-paper);transition:width .4s}
.fx-fence .fx-fence-track{position:absolute;left:0;top:32px;width:96.1538%;height:12px;background:var(--fx-sun-pale);outline:1px solid var(--fx-muted)}
.fx-fence .fx-fence-marker{position:absolute;left:96.1538%;top:-3px;height:49px;border-left:3px solid var(--fx-ink)}
.fx-fence .fx-fence-mark-label{position:absolute;right:0;top:48px;font-size:12px}
.fx-fence .fx-fence-swap{display:grid;min-width:0}
.fx-fence .fx-fence-swap>p{grid-area:1/1;margin:0;overflow-wrap:break-word}
.fx-fence .fx-fence-log{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fx-fence .fx-fence-log p{padding:10px;font-size:14px}
.fx-fence .fx-fence-on,.fx-fence .fx-fence-gap,.fx-fence .fx-fence-success,.fx-fence .fx-fence-error,.fx-fence .fx-fence-roll-full{visibility:hidden}
.fx-fence:has(#fx-fence-ab:checked) .fx-fence-ab-off,.fx-fence:has(#fx-fence-bc:checked) .fx-fence-bc-off,.fx-fence:has(#fx-fence-dc:checked) .fx-fence-dc-off,.fx-fence:has(#fx-fence-ed:checked) .fx-fence-ed-off,.fx-fence:has(#fx-fence-ef:checked) .fx-fence-ef-off,.fx-fence:has(#fx-fence-fa:checked) .fx-fence-fa-off{visibility:hidden}
.fx-fence:has(#fx-fence-ab:checked) .fx-fence-ab-on,.fx-fence:has(#fx-fence-bc:checked) .fx-fence-bc-on,.fx-fence:has(#fx-fence-dc:checked) .fx-fence-dc-on,.fx-fence:has(#fx-fence-ed:checked) .fx-fence-ed-on,.fx-fence:has(#fx-fence-ef:checked) .fx-fence-ef-on,.fx-fence:has(#fx-fence-fa:checked) .fx-fence-fa-on{visibility:visible}
.fx-fence:has(input:checked) .fx-fence-idle,.fx-fence:has(input:checked) .fx-fence-hint{visibility:hidden}
.fx-fence:has(.fx-fence-edges input:checked):not(:has(#fx-fence-path:checked)) .fx-fence-gap{visibility:visible}
.fx-fence:not(:has(.fx-fence-edges input:not(:checked))) .fx-fence-gap,.fx-fence:not(:has(.fx-fence-edges input:not(:checked))) .fx-fence-roll-part{visibility:hidden}
.fx-fence:not(:has(.fx-fence-edges input:not(:checked))):not(:has(#fx-fence-path:checked)) .fx-fence-success,.fx-fence:not(:has(.fx-fence-edges input:not(:checked))) .fx-fence-roll-full{visibility:visible}
.fx-fence:not(:has(.fx-fence-edges input:not(:checked))) .fx-fence-segment{background:var(--fx-coral)}
.fx-fence:has(#fx-fence-path:checked) .fx-fence-error,.fx-fence:has(#fx-fence-path:checked) .fx-fence-cross{visibility:visible}
.fx-fence:has(#fx-fence-path:checked) .fx-fence-path-line{stroke:var(--fx-coral);animation:fx-fence-flash .4s steps(2) 2}
@keyframes fx-fence-flash{0%{opacity:.25}50%{opacity:1}100%{opacity:.25}}
@container (max-width:480px){.fx-fence .fx-fence-choices,.fx-fence .fx-fence-log{grid-template-columns:minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){.fx-fence .fx-fence-segment{transition:none}.fx-fence .fx-fence-path-line{animation:none}}