/*
 * Motion budget for the glow / moving-light effects. Nothing is removed:
 *  - cards scrolled off screen and background tabs pause their loops (resume where they left off);
 *  - the page loader ring only spins while a navigation is in flight;
 *  - prefers-reduced-motion freezes decorative loops on a pleasant frame (glows stay visible);
 *  - .kb-lite (low-end device / Save-Data, set in <head>) keeps every glow but slows the drift,
 *    drops the third background blob and swaps large backdrop blurs for a denser tint.
 */

.kb-offscreen,
.kb-offscreen *,
.kb-offscreen *::before,
.kb-offscreen *::after,
html.kb-tab-hidden *,
html.kb-tab-hidden *::before,
html.kb-tab-hidden *::after {
  animation-play-state: paused !important;
}

.kb-nav-loader__ring {
  animation-play-state: paused;
}

html.is-kb-busy .kb-nav-loader__ring {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .neon-blob,
  .landing-logo-glow,
  .landing-logo-sheen::before,
  .landing-welcome::after,
  .event-card__live-dot,
  .event-card__char-breath,
  .event-card__char-glow,
  .kb-glass-card__core,
  .kb-glass-card__ring--a,
  .kb-glass-card__ring--b,
  .kb-glass-card__trail--top,
  .kb-glass-card__trail--bottom,
  .kb-glass-card__trail--side,
  .kb-media::before {
    animation: none !important;
    will-change: auto !important;
  }

  .event-card__char-glow {
    opacity: 0.45;
  }
}

html.kb-lite .neon-blob--1 {
  animation-duration: 44s;
}

html.kb-lite .neon-blob--2 {
  animation-duration: 38s;
}

html.kb-lite .neon-blob--3 {
  display: none;
}

html.kb-lite .kb-glass-card__trail--side,
html.kb-lite .kb-glass-card__ring--b {
  animation-duration: 30s;
}

html.kb-lite .event-card__live-dot {
  animation-duration: 2.4s;
}

html.kb-lite .profile-card,
html.kb-lite .feed-card,
html.kb-lite .kb-dock,
html.kb-lite .kb-topbar,
html.kb-lite .kb-tour-banner,
html.kb-lite .event-glass {
  -webkit-backdrop-filter: blur(4px) !important;
  backdrop-filter: blur(4px) !important;
}
