/* stage.css: the rail / metro scene strip at the foot of pages */
.scene{position:relative;width:100%;overflow:hidden;line-height:0;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--bg2) 62%,transparent))}
.scene svg{display:block;width:100%;height:clamp(74px,13vw,190px)}
.scene-mini svg{height:clamp(46px,7vw,80px)}
.scene .sun{fill:var(--amber);opacity:.8}
.scene .cloud{fill:var(--fg);opacity:.06}
.scene .cloud.c2{opacity:.045}
.scene .hill{fill:var(--acc)}
.scene .hill.h2{opacity:.09}
.scene .hill.h1{opacity:.16}
.scene .poles path{fill:none;stroke:var(--fg);stroke-width:3;opacity:.22;stroke-linecap:round}
.scene .rail{stroke:var(--fg);stroke-width:3;opacity:.32;fill:none}
.scene .ties{stroke:var(--fg);stroke-width:9;opacity:.16;stroke-dasharray:9 15;fill:none}
.scene .tun{fill:var(--bg2);stroke:var(--bd);stroke-width:2}
.scene .lt{fill:var(--amber);opacity:.85;animation:sc-lamp 3.4s ease-in-out infinite}
.scene .plat{fill:var(--bg2);opacity:.92}
.scene .st circle{fill:var(--acc);opacity:.85}
.scene .ring{fill:none;stroke:var(--acc);stroke-width:2;opacity:.55;transform-box:fill-box;transform-origin:center;animation:sc-ring 2.6s ease-out infinite}
.drive{animation:sc-drive 16s linear infinite}
.drive.fast{animation-duration:13s}
.drive.slow{animation-duration:24s}
.drive .flip{transform-box:view-box;transform-origin:center}
@keyframes sc-drive{from{transform:translateX(-360px)}to{transform:translateX(1560px)}}
@keyframes sc-lamp{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes sc-ring{0%{opacity:.6;transform:scale(1)}70%{opacity:0;transform:scale(2.4)}100%{opacity:0;transform:scale(2.4)}}
@media(prefers-reduced-motion:reduce){
  .drive,.drive.fast,.drive.slow,.scene .lt,.scene .ring{animation:none}
  .drive{transform:translateX(180px)}
}
