/* Figure ink: hairlines, paths the dot travels, parts, tags, and the state changes Steps make. */
.hair{stroke:#D7D5CE;stroke-width:1;fill:none}
.hair.dash{stroke-dasharray:3 5}
.line{stroke:#A5A39D;stroke-width:1;fill:none;transition:stroke .3s,stroke-width .3s}
.line.dash{stroke-dasharray:4 5}
.line.on{stroke:var(--ink);stroke-width:1.6}
.ink{stroke:var(--ink);stroke-width:1.2;fill:var(--bg)}
.thin{stroke:var(--ink);stroke-width:.8;fill:none}
.solid{fill:var(--ink)}
.hatch{fill:url(#hatch);stroke:var(--ink);stroke-width:1.2}
.hatch-bg{fill:var(--bg)}
.hatch-ink{stroke:var(--ink);stroke-width:2.2}
.spin{animation:spin 24s linear infinite;transform-box:fill-box;transform-origin:center}
.spin.fast{animation-duration:5s}
.ctxc{transition:r .7s cubic-bezier(.65,0,.35,1)}
.tag{font-size:10px;letter-spacing:.16em;fill:var(--mute);font-weight:500}
.tag .ix{fill:var(--faint)}
.ftxt{font-size:12px;fill:var(--ink-soft)}
.mono{font-family:var(--mono);font-size:12px;fill:var(--ink)}
.turnl{font-size:10px;letter-spacing:.2em;fill:var(--mute)}
.turnn{font-size:76px;font-weight:300;letter-spacing:-.05em;fill:var(--ink)}

/* Parts. A Hotspot shows a dashed ring when selected or highlighted from Field Notes. */
.part{cursor:pointer}
.part.mute{cursor:default}
.part .body{transition:opacity .35s}
.part.hit .body{opacity:.4}
/* An exit an earlier act already took, faded once the next act begins. */
.part.past .body{opacity:.3}
.part:hover .tag,.part.sel .tag,.part.hl .tag{fill:var(--ink)}
.part .selr{fill:none;stroke:var(--ink);stroke-width:1;stroke-dasharray:2 3;opacity:0;transition:opacity .2s}
.part.sel .selr,.part.hl .selr,.part:focus-visible .selr{opacity:1}
.part:focus-visible{outline:none}
.part:focus-visible .tag{fill:var(--ink)}

.codeline{stroke:var(--mute);stroke-width:1.6}
.codeline.bug{stroke:var(--ink);stroke-dasharray:2 3}
.codeline.fixed{stroke:var(--ink);stroke-dasharray:none;stroke-width:2.4}
.check{opacity:0;transition:opacity .4s}
.check.on{opacity:1}
.tick{stroke:var(--bg);stroke-width:2;fill:none}
/* A large figure numeral, such as a score, and a meter bar that slides to its new length. */
.big{font-size:36px;font-weight:300;letter-spacing:-.04em;fill:var(--ink)}
.meter{fill:var(--ink);transition:width .7s cubic-bezier(.65,0,.35,1)}
/* A bar that rises from its base, and a message slab that slides between slots and fades in or out. */
.rise{fill:var(--ink);transform-box:fill-box;transform-origin:50% 100%;transition:transform .7s cubic-bezier(.65,0,.35,1)}
.slab{transition:transform .7s cubic-bezier(.65,0,.35,1),opacity .4s}
.slab.off{opacity:0;pointer-events:none}
.mono.inv{fill:var(--bg)}

/* An element that opens its Payload: a message slab, say. Hover thickens its outline; open, it stays thick. */
.inspectable{cursor:pointer}
.inspectable>rect:first-child,.inspectable>circle:first-child{transition:stroke-width .15s}
.inspectable:hover>rect:first-child,.inspectable:hover>circle:first-child{stroke:var(--ink);stroke-width:2.2}
.inspectable.insp>rect:first-child,.inspectable.insp>circle:first-child{stroke:var(--ink);stroke-width:3.2}
.inspectable:focus{outline:none}
.inspectable:focus-visible>rect:first-child,.inspectable:focus-visible>circle:first-child{stroke:var(--ink);stroke-width:2.2;stroke-dasharray:3 2}

/* The travelling dot and the label it carries. */
.dot{fill:var(--ink)}
.dotl rect{fill:var(--ink)}
.dotl text{fill:var(--bg);font-family:var(--mono);font-size:11px}

@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spin{animation:none}.ctxc,.meter,.rise,.slab{transition:none}}
