/* Challenge steps figure, variant sta (round of 18 Nov, second visuals round). Generated by gen.py.
   One drawing (verifier, prover GPU, seed out, response back, timed), then one row with the two arrow buttons and the
   three step names, then the live step's text. Without the script: the finished drawing and all three texts. */
.sta.fg{padding:1.1rem 1.25rem 1.1rem}
.sta [hidden]{display:none}
.sta-wrap{display:grid;grid-template-columns:minmax(0,1fr);row-gap:.7rem}
.sta-stage{min-width:0;position:relative}
.sta-live .sta-stage{cursor:pointer;touch-action:manipulation}
.sta-playback{position:absolute;left:2px;bottom:0;width:30px;height:30px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);cursor:pointer}
.sta-playback::after{content:"";position:absolute;inset:-7px}
.sta-playback svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sta-playback path{display:none}
.sta-playback[data-icon="play"] .sta-icon-play{display:block;fill:currentColor}
.sta-playback[data-icon="pause"] .sta-icon-pause{display:block;stroke-width:3}
.sta-playback[data-icon="replay"] .sta-icon-replay{display:block}
.sta-playback:focus-visible{outline:2px solid var(--fg-a);outline-offset:2px}
.sta-svg{display:block;width:100%;max-width:26rem;height:auto;margin:0 auto;overflow:visible}

/* ---------- drawing ---------- */
.sta-svg .sta-head{font:600 13.5px var(--sans);fill:var(--ink)}
.sta-svg .sta-lab{font:12px var(--sans);fill:var(--muted)}
.sta-svg .sta-val{font:500 12px var(--mono);fill:var(--ink)}
.sta-svg .sta-late{fill:var(--fg-late)}
.sta-box{fill:var(--paper);stroke:var(--muted);stroke-width:1.3}
.sta-pins{fill:none;stroke:var(--muted);stroke-width:1.5}
.sta-arrow{fill:none;stroke:var(--ink);stroke-width:1.4}
.sta-ah,.sta-dot{fill:var(--ink)}
.sta-route{fill:none;stroke:none}
.sta-back{fill:var(--paper)}
.sta-life{fill:none;stroke:var(--line);stroke-width:1.5}
.sta-timed{fill:none;stroke:var(--fg-a);stroke-width:2}
/* stopwatch: the wedge before twelve is the time after the deadline */
.sta-watch-face{fill:var(--paper)}
.sta-watch-rim{fill:none;stroke:var(--muted);stroke-width:1.4;stroke-linecap:round}
.sta-watch-late{fill:var(--fg-late);fill-opacity:.22}
.sta-watch-mark{fill:none;stroke:var(--fg-late);stroke-width:1.5}
.sta-hand{stroke:var(--fg-a);stroke-width:2;stroke-linecap:round}
.sta-watch-pivot{fill:var(--fg-a)}
/* time bar (variant c) */
.sta-track{fill:none;stroke:var(--line);stroke-width:5;stroke-linecap:round}
.sta-latezone{fill:none;stroke:var(--fg-late);stroke-opacity:.3;stroke-width:5;stroke-linecap:round}
.sta-fill{stroke:var(--fg-a);stroke-width:5;stroke-linecap:round}
.sta-mark{fill:none;stroke:var(--fg-late);stroke-width:1.6}
/* paused */
.sta-bars{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round}
/* GPU memory: while inference runs the script changes a few cells at a time */
.sta-c{fill:var(--ink);fill-opacity:.035;stroke:var(--line);stroke-width:1;transition:fill-opacity .18s linear}
.sta-c.sta-l1{fill-opacity:.13}
.sta-c.sta-l2{fill-opacity:.27}
.sta-slot{fill:var(--paper);stroke:var(--line);stroke-width:1}
/* the challenge function: read chains over the paused memory */
.sta-ch0{--sta-chain:var(--fg-a)}
.sta-ch1{--sta-chain:var(--fg-b)}
.sta-ch2{--sta-chain:var(--fg-c)}
.sta-edge{fill:none;stroke:var(--sta-chain);stroke-width:1.2;stroke-linecap:round;stroke-dasharray:1 2}
.sta-read{fill:var(--sta-chain)}
.sta-tip{fill:var(--sta-chain);stroke:var(--paper);stroke-width:.8}

/* ---------- states set by the script ---------- */
.sta:not(.sta-live) [data-sta-nostatic]{display:none}
.sta-svg .sta-off{opacity:0}
.sta-svg .sta-dim{opacity:.25}
.sta.sta-live:not(.sta-done) .sta-res{opacity:0}

/* ---------- steps. Without the script: a plain list with all the text. ---------- */
.sta-steps{display:grid;grid-template-columns:minmax(0,1fr);row-gap:.7rem;min-width:0}
.sta-step{min-width:0}
.sta-tab{display:flex;align-items:center;gap:.5rem;margin:0;padding:0;border:0;border-radius:4px;background:none;color:var(--ink);
  font:600 15px/1.3 var(--sans);text-align:left;-webkit-tap-highlight-color:transparent}
.sta-tab:disabled{color:var(--ink);opacity:1}
.sta-num{flex:none;display:grid;place-items:center;width:1.4rem;height:1.4rem;border:1.2px solid var(--ink);border-radius:50%;font:600 12px/1 var(--sans)}
.sta-text{margin:.25rem 0 0;font:15px/1.5 var(--sans);color:var(--soft)}
.sta-sr{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* with the script: [previous] [three names] [next], and under it the live step's text. The three texts share one
   grid cell, so the figure keeps the height of the longest one and nothing under it moves. */
.sta.sta-live .sta-steps{grid-template-columns:44px repeat(3,minmax(0,1fr)) 44px;column-gap:4px;row-gap:.65rem;align-items:start}
.sta.sta-live .sta-step{display:contents}
.sta.sta-live .sta-prev{grid-area:1/1}
.sta.sta-live .sta-next{grid-area:1/5}
.sta.sta-live .sta-tab{grid-row:1;justify-content:center;height:44px;padding:0 .1rem;border-radius:4px 4px 0 0;color:var(--muted);
  font-size:14.5px;cursor:pointer;box-shadow:inset 0 -1px 0 var(--line);transition:color .15s ease}
.sta.sta-live .sta-step[data-sta-step="1"] .sta-tab{grid-column:2}
.sta.sta-live .sta-step[data-sta-step="2"] .sta-tab{grid-column:3}
.sta.sta-live .sta-step[data-sta-step="3"] .sta-tab{grid-column:4}
.sta.sta-live .sta-num{display:none}
.sta.sta-live .sta-tab:hover{color:var(--ink)}
.sta.sta-live .sta-on .sta-tab{color:var(--ink);box-shadow:inset 0 -2px 0 var(--fg-a)}
.sta.sta-live .sta-text{grid-area:2/1/3/-1;margin:0;padding:0 .15rem;visibility:hidden}
.sta.sta-live .sta-on .sta-text{visibility:visible}
.sta-btn{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1.5px solid var(--ink);border-radius:50%;
  background:transparent;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease,color .15s ease,transform .15s ease}
.sta-next{background:var(--ink);color:var(--paper)}
.sta-ico{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sta-prev:hover{background:var(--wash)}
.sta-next:hover{background:var(--soft)}
.sta-btn:active{transform:scale(.94)}
.sta-btn:focus-visible{border-radius:50%}
.sta-btn[aria-disabled="true"]{border-color:var(--line);background:transparent;color:var(--muted);opacity:.55;cursor:default;transform:none}

/* ---------- wide: the drawing beside the steps ---------- */
@container (min-width:640px){
  .sta-wrap{grid-template-columns:minmax(0,24rem) minmax(0,1fr);column-gap:1.9rem;align-items:center}
  .sta-text{font-size:15.5px}
}
@media(max-width:560px){
  /* a little more room for the drawing, so its labels stay above 11 px on a small phone */
  .sta.fg{padding:.9rem .5rem .8rem}
}
@media(prefers-reduced-motion:reduce){
  .sta *{animation:none!important;transition:none!important}
}
@media print{
  .sta-btn,.sta-playback{display:none!important}
  .sta.sta-live .sta-steps{display:block!important}
  .sta.sta-live .sta-step{display:block!important;margin:0 0 .6rem}
  .sta.sta-live .sta-tab{display:flex!important;height:auto!important;justify-content:flex-start!important;box-shadow:none!important;color:var(--ink)!important}
  .sta.sta-live .sta-text{visibility:visible!important}
}
