/* Shared motion include for the preview only, 25 Nov 2026.
   Feel modelled on Druid Radar GTA VI, not their code or assets.
   Live include v=8, 26 Nov 2026. Plays once. No ticker.
   Respects prefers-reduced-motion. Preview-only ?motion=force is not shipped. */

:root{
  /* Radar: --ease cubic-bezier(.45,0,.55,1), --dur .7s, --stagger 70ms.
     Bars use 1.4s, the Radar --bar-dur default. */
  --mo-ease:cubic-bezier(.45,0,.55,1);
  --mo-dur:.7s;
  --mo-bar-dur:1.4s;
}

.mo-num{
  font-variant-numeric:tabular-nums;
  display:inline-block;
  white-space:nowrap;
}

@keyframes mo-glow-lite{
  0%{text-shadow:0 0 0 transparent}
  40%{text-shadow:0 0 14px rgba(25,195,195,.9),0 0 28px rgba(25,195,195,.45),0 0 2px rgba(255,210,63,.35)}
  100%{text-shadow:0 0 0 transparent}
}
@keyframes mo-glow-ink{
  0%{text-shadow:0 0 0 transparent}
  40%{text-shadow:0 0 10px rgba(25,195,195,.5),0 0 18px rgba(255,79,154,.22)}
  100%{text-shadow:0 0 0 transparent}
}

.mo-glow-hold.mo-glow-lite,
.r12-card.s-all .n.mo-glow-hold,
.band.st .st-head .st-n.mo-glow-hold,
.sx-hero-v.mo-glow-hold,
.sx-f-v.mo-glow-hold,
.f85-v.mo-glow-hold,
.cs-big-n.mo-glow-hold,
.bg-n.mo-glow-hold,
.cr-feat .cr-pct.mo-glow-hold{
  text-shadow:0 0 14px rgba(25,195,195,.9),0 0 28px rgba(25,195,195,.45),0 0 2px rgba(255,210,63,.35);
  animation:none;
}
.r12-card:not(.s-all) .n.mo-glow-hold{
  text-shadow:0 0 10px rgba(25,195,195,.5),0 0 18px rgba(255,79,154,.22);
  animation:none;
}

.r12-card.s-all .n.mo-glow,
.band.st .st-n.mo-glow,
.sx-hero-v.mo-glow,
.sx-f-v.mo-glow,
.f85-v.mo-glow,
.cs-big-n.mo-glow,
.bg-n.mo-glow,
.ix-kpis b.mo-glow,
.cr-feat .cr-pct.mo-glow,
.mo-num.mo-glow{
  animation:mo-glow-lite .9s ease-out 1;
}
.r12-card:not(.s-all) .n.mo-glow{
  animation:mo-glow-ink .9s ease-out 1;
}

.band.st .st-head .st-n.mo-glow,
.band.st .st-head .st-n.mo-glow-hold{
  text-shadow:3px 3px 0 rgba(29,11,54,.55),0 0 14px rgba(25,195,195,.9),0 0 28px rgba(25,195,195,.4);
}

/* Radar data-rv: opacity 0, translateY(28px), 700ms, same ease, delay via --d. Once. */
html.mo-on .mo-reveal,
html.mo-on .mo-kid{
  opacity:0;
  transform:translateY(28px);
}
/* Radar data-rv="scale": image tiles settle from 0.96. */
html.mo-on .mo-reveal img,
html.mo-on .mo-kid img,
html.mo-on .mo-tile img,
html.mo-on img.mo-tile{
  transform:translateY(28px) scale(.96);
}
html.mo-on .mo-reveal.mo-in,
html.mo-on .mo-reveal.mo-in .mo-kid,
html.mo-on .mo-reveal.mo-in img,
html.mo-on .mo-reveal.mo-in .mo-kid img,
html.mo-on .mo-tile.mo-in img,
html.mo-on img.mo-tile.mo-in,
html.mo-on .mo-in img.mo-tile{
  opacity:1;
  transform:none;
  transition:opacity var(--mo-dur) var(--mo-ease),transform var(--mo-dur) var(--mo-ease);
}
html.mo-on .mo-reveal.mo-in{transition-delay:0s}
html.mo-on .mo-reveal.mo-in .mo-kid,
html.mo-on .mo-reveal.mo-in img,
html.mo-on .mo-reveal.mo-in .mo-kid img{
  transition-delay:var(--mo-delay,0s);
}

html.mo-on .mo-reveal.mo-mid,
html.mo-on .mo-reveal.mo-mid .mo-kid,
html.mo-on .mo-reveal.mo-mid img{
  opacity:.45;
  transform:translateY(16px);
  transition:none;
}

/* Radar bars: grow once from zero, 1.4s, same ease, no layout jump. */
/* Transition only on .mo-bar-in, otherwise JS adding .mo-bar-x after paint
   would shrink every bar from full to zero on load. */
.mo-bar-x{
  transform:scaleX(0);
  transform-origin:left center;
}
.mo-bar-y{
  transform:scaleY(0);
  transform-origin:bottom center;
}
.mo-bar-x.mo-bar-in,
.mo-bar-y.mo-bar-in{
  transform:none;
  transition:transform var(--mo-bar-dur) var(--mo-ease) var(--bar-delay,0s);
}

@media (prefers-reduced-motion:reduce){
  html.mo-on .mo-reveal,
  html.mo-on .mo-reveal.mo-in,
  html.mo-on .mo-reveal.mo-mid,
  html.mo-on .mo-kid,
  html.mo-on .mo-reveal.mo-in .mo-kid,
  html.mo-on .mo-reveal img,
  html.mo-on .mo-reveal.mo-in img,
  html .mo-bar-x,
  html .mo-bar-y,
  html .mo-bar-x.mo-bar-in,
  html .mo-bar-y.mo-bar-in{
    opacity:1;
    transform:none;
    transition:none;
  }
  html .mo-glow,
  html .mo-num.mo-glow{
    animation:none;
  }
  html .band.st .st-head .st-n.mo-glow,
  html .band.st .st-head .st-n.mo-glow-hold{
    text-shadow:3px 3px 0 rgba(29,11,54,.55);
  }
}
