/* Run HUD: the step readout between the RUN and SPREAD rings. The page positions #run-hud (its top on the rings' line);
   ui/run-hud.js lifts it by its extra height (--up), so a longer step grows upward and the progress line stays put.
   Counter, then the step: a lead line in ice, the rest a step smaller, a figure in thin numerals; then the progress line. */
.run-hud{transform:translateY(calc(var(--up,0px) * -1));display:flex;flex-direction:column;align-items:stretch;gap:calc(7px*var(--u,1));min-width:0;pointer-events:none;color:var(--ice,#d9f3ff);font-family:"Barlow Condensed",system-ui,sans-serif;opacity:0;transition:opacity var(--m-exit,150ms) var(--e-exit,ease-in),transform var(--m-entry,260ms) var(--e-out,ease-out)}
.run-hud[hidden]{display:none}
.run-hud.on{opacity:1;transition:opacity var(--m-entry,260ms) var(--e-out,ease-out),transform var(--m-entry,260ms) var(--e-out,ease-out)}
.run-hud .rh-n{font-weight:500;font-size:calc(12.5px*var(--u,1));line-height:calc(15px*var(--u,1));letter-spacing:.2em;padding-left:.2em;color:#93bcd3;text-align:center;white-space:nowrap;text-shadow:0 0 calc(6px*var(--u,1)) #02050b,0 0 calc(2px*var(--u,1)) #02050b;font-variant-numeric:tabular-nums}
.run-hud .rh-n b{font-weight:500;color:var(--ice,#d9f3ff)}
/* the step: a measure of about 70 characters at most on a wide screen, centred on the line */
.run-hud .rh-c{display:flex;flex-direction:column;align-items:center;gap:calc(3px*var(--u,1));width:100%;max-width:calc(470px*var(--u,1));margin:0 auto;text-align:center}
.run-hud .rh-s,.run-hud .rh-d{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;overflow-wrap:break-word;text-wrap:balance;text-shadow:0 0 calc(7px*var(--u,1)) #02050b,0 0 calc(2px*var(--u,1)) #02050b,0 0 calc(12px*var(--u,1)) rgba(2,5,11,.9)}
.run-hud .rh-s{font-weight:400;font-size:calc(15px*var(--u,1));line-height:calc(19px*var(--u,1));letter-spacing:.02em;color:var(--ice,#d9f3ff);-webkit-line-clamp:2;line-clamp:2}
.run-hud .rh-d{font-weight:400;font-size:calc(13.5px*var(--u,1));line-height:calc(17px*var(--u,1));letter-spacing:.025em;color:#b4d2e3;-webkit-line-clamp:3;line-clamp:3}
.run-hud .rh-d[hidden],.run-hud .rh-f[hidden]{display:none}
/* the figure: numbers as the readouts draw them, words between them as small labels */
.run-hud .rh-f{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:0 calc(7px*var(--u,1));margin-top:calc(3px*var(--u,1));white-space:nowrap;text-shadow:0 0 calc(8px*var(--u,1)) #02050b,0 0 calc(2px*var(--u,1)) #02050b}
.run-hud .rh-f b{font-weight:400;font-size:calc(19px*var(--u,1));line-height:calc(22px*var(--u,1));letter-spacing:.01em;color:var(--ice,#d9f3ff);font-variant-numeric:tabular-nums}
.run-hud .rh-f u{text-decoration:none;font-weight:500;font-size:calc(10.5px*var(--u,1));letter-spacing:.16em;color:#a9cfe2;margin-left:calc(-3px*var(--u,1))}
.run-hud .rh-f i{font-style:normal;font-weight:500;font-size:calc(11px*var(--u,1));letter-spacing:.2em;text-transform:uppercase;color:#93bcd3}
.run-hud.done .rh-s{font-weight:500;font-size:calc(15px*var(--u,1));letter-spacing:.3em;padding-left:.3em}
/* the progress line: the run's share done in ice, the HUD's amber tick at its start */
.run-hud .rh-l{position:relative;height:1px;margin-top:calc(2px*var(--u,1));background:linear-gradient(90deg,rgba(190,236,255,.25),rgba(217,243,255,.4) 50%,rgba(190,236,255,.25))}
.run-hud .rh-l::before{content:"";position:absolute;left:0;top:0;width:100%;height:1px;background:var(--ice,#d9f3ff);transform:scaleX(var(--p,0));transform-origin:0 50%;transition:transform var(--m-entry,260ms) var(--e-out,ease-out)}
.run-hud .rh-l::after{content:"";position:absolute;left:0;top:-1px;width:calc(16px*var(--u,1));height:calc(3px*var(--u,1));background:var(--hot,#ffab3d)}
/* a new step: its words crossfade in where they stand (text that is read never travels) */
@keyframes rh-tin{from{opacity:0}}
.run-hud .rh-c.tin{animation:rh-tin var(--m-fade,200ms) var(--e-out,ease-out)}
@media (prefers-reduced-motion:reduce){.run-hud,.run-hud .rh-l::before{transition:none}.run-hud .rh-c.tin{animation:none}}
