/* Ghost look: the Runner logo behind each setup page (js/runbg.js), on the left, half tucked behind the sidebar,
   fading out toward the content. Behind everything, never clickable; pages cross-fade, the motion is slow. */
#run-bg { display: none; }
:root[data-look="2"] #run-bg { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; color: var(--ac); --sbw: 264px; }
:root[data-look="2"] body.sb-mini #run-bg { --sbw: 76px; }
#run-bg .rb-art { position: absolute; left: var(--sbw); top: 56%; width: min(84vh, 860px); aspect-ratio: 1; transform: translate(-42%, -50%); opacity: 0; transition: opacity .5s ease;
  -webkit-mask: linear-gradient(90deg, #000 45%, transparent 96%); mask: linear-gradient(90deg, #000 45%, transparent 96%); }
#run-bg .rb-art.on { opacity: .085; }
#run-bg .rb-art > div { position: absolute; inset: 0; }
#run-bg .rb-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#run-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; }

/* How: two echoes behind the logo light up one after the other, like a team moving together */
#run-bg .rb-echo { position: absolute; inset: 0; opacity: .35; }
#run-bg .rb-echo.e1 { transform: translate(-13%, 4%) scale(.92); } #run-bg .rb-echo.e2 { transform: translate(-25%, 8%) scale(.84); }
#run-bg .rb-art.on .rb-echo { animation: rbEcho 5s ease-in-out infinite; } #run-bg .rb-art.on .rb-echo.e2 { animation-delay: .6s; }
@keyframes rbEcho { 0%, 100% { opacity: .18; } 45% { opacity: .5; } }

/* Fund: a dotted ring of coins turning slowly around a smaller logo */
#run-bg .rb-a2 .rb-logo { inset: 22%; width: 56%; height: 56%; }
#run-bg .rb-ring { stroke-width: .35; }
#run-bg .rb-art.on .rb-ring { animation: rbSpin 70s linear infinite; }
@keyframes rbSpin { to { transform: rotate(360deg); } }

/* Launch: the logo tilted up, floating gently, its trail lines breathing */
#run-bg .rb-a3 .rb-logo { transform: rotate(-24deg) scale(.86); }
#run-bg .rb-art.on .rb-a3 { animation: rbFloat 7s ease-in-out infinite; }
#run-bg .rb-trail { stroke-width: 1.4; }
#run-bg .rb-trail path:not(:first-child) { stroke-width: .8; opacity: .55; }
#run-bg .rb-art.on .rb-trail { animation: rbTrail 7s ease-in-out infinite; }
@keyframes rbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5%); } }
@keyframes rbTrail { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

@media (max-width: 980px) { :root[data-look="2"] #run-bg { --sbw: 0px; } #run-bg .rb-art { width: 90vw; top: 40%; } }
@media (prefers-reduced-motion: reduce) { #run-bg * { animation: none !important; transition: none !important; } }
