/* Challenge function, variant c (18 Nov): memory grid, chains hop in lockstep. Plays once (fnc.js adds fnc-play); the plain styles are the finished state. Drawn by gen.py. */
.fnc-s0{stroke:var(--fg-a)}.fnc-s1{stroke:var(--fg-b)}.fnc-s2{stroke:var(--fg-c)}
.fnc-f0{fill:var(--fg-a)}.fnc-f1{fill:var(--fg-b)}.fnc-f2{fill:var(--fg-c)}
.fnc-stage{position:relative}
.fnc[data-fnc-ready] .fnc-stage{cursor:pointer;touch-action:manipulation}
.fnc-replay path{display:none}
.fnc-replay[data-icon="play"] .fnc-icon-play{display:block;fill:currentColor}
.fnc-replay[data-icon="pause"] .fnc-icon-pause{display:block;stroke-width:3}
.fnc-replay[data-icon="replay"] .fnc-icon-replay{display:block}
.fnc-replay:focus-visible{outline:2px solid var(--fg-a);outline-offset:2px}
.fnc-cell{fill:var(--wash);stroke:var(--line);stroke-width:1}
.fnc-ln{fill:none;stroke-width:1.7;stroke-linecap:round}
.fnc-ln--q{stroke-width:1.1;opacity:.45}
.fnc-lit--q{fill-opacity:.5}
.fnc-replay{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:30px;height:30px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.fnc-replay[hidden]{display:none}
.fnc-replay::after{content:"";position:absolute;inset:-8px}
.fnc-replay__ico{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@container (max-width:540px){.fnc-stage{max-width:420px;margin:0 auto}}
/* waiting to be scrolled into view: only the seed and the empty memory */
.fnc-wait .fnc-ln,.fnc-wait .fnc-hd,.fnc-wait .fnc-lit,.fnc-wait .fnc-out{visibility:hidden}
.fnc-b1{--fnc-d:0.25s}.fnc-b2{--fnc-d:0.77s}.fnc-b3{--fnc-d:1.29s}.fnc-b4{--fnc-d:1.81s}.fnc-b5{--fnc-d:2.33s}.fnc-b6{--fnc-d:2.85s}
.fnc-o0{--fnc-o:0s}.fnc-o1{--fnc-o:.07s}.fnc-o2{--fnc-o:.14s}.fnc-o3{--fnc-o:.21s}
.fnc-play .fnc-ln{stroke-dasharray:1 3;animation:fnc-draw .4s cubic-bezier(.4,0,.3,1) var(--fnc-d) both}
.fnc-play .fnc-hd{animation:fnc-in .12s linear calc(var(--fnc-d) + .3s) both}
.fnc-play .fnc-lit{transform-box:fill-box;transform-origin:center;animation:fnc-pop .22s ease-out calc(var(--fnc-d) + .34s) both}
.fnc-play .fnc-out{transform-box:fill-box;transform-origin:center;animation:fnc-pop .22s ease-out calc(3.21s + var(--fnc-o)) both}
.fnc-play .fnc-seed{transform-box:fill-box;transform-origin:center;animation:fnc-pulse .5s ease-out both}
@keyframes fnc-draw{from{stroke-dashoffset:1.2}to{stroke-dashoffset:0}}
@keyframes fnc-in{from{opacity:0}to{opacity:1}}
@keyframes fnc-pop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
@keyframes fnc-pulse{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
.fnc-play.fnc-paused :is(.fnc-ln,.fnc-hd,.fnc-lit,.fnc-out,.fnc-seed){animation-play-state:paused}
@media print{.fnc-replay{display:none}.fnc-wait .fnc-ln,.fnc-wait .fnc-hd,.fnc-wait .fnc-lit,.fnc-wait .fnc-out{visibility:visible}}
.fnc-key{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.7rem 1.6rem;margin:1.15rem 0 0;font:13px/1.4 var(--sans)}
.fnc-key__i{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:.65rem;align-items:start}
.fnc-key__ico{display:block;width:30px;height:18px;margin-top:.1rem;overflow:visible}
.fnc-key__t{display:block;min-width:0}
.fnc-key__n{display:block;font-weight:600;font-size:13.5px;color:var(--ink);white-space:nowrap}
.fnc-key__g{display:block;color:var(--muted);white-space:nowrap}
.fnc-ic-l{fill:none;stroke-width:1.4;stroke-linecap:round}
.fnc-ic-next{fill:none;stroke:var(--muted);stroke-width:1.1;stroke-dasharray:1.6 1.8}
.fnc-ic-end{fill:none;stroke:var(--muted);stroke-width:1;stroke-dasharray:1.5 2}
@container (max-width:540px){
  .fnc-key{display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem;margin-top:.95rem}
  .fnc-key__n,.fnc-key__g{display:inline;font-size:13px}
  .fnc-key__n{margin-right:.3em}
}
