/* =====================================================================
   Lite mode — switched on automatically (html.lite) on low-end phones,
   "Data saver" or "Reduce motion". Same layout and colours; only the
   GPU-heavy effects (live blur, endless background animations, big
   blurred glows) are removed so scrolling and taps stay smooth.
   ===================================================================== */

/* Live background blur is the single most expensive effect on cheap GPUs */
html.lite *, html.lite *::before, html.lite *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* …so give the bars that relied on it a solid backdrop instead */
html.lite .app-header,
html.lite .topbar.scrolled,
html.lite .admin-top,
html.lite .toast { background: color-mix(in srgb, var(--bg) 94%, #000) !important; }
html.lite .bottom-nav { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)), color-mix(in srgb, var(--bg) 92%, #000) !important; }
html.lite .modal-backdrop { background: rgba(4, 3, 12, .86) !important; }

/* Static page background (the drifting glow layer repaints the whole screen every frame) */
html.lite body::after { animation: none !important; }

/* Decorative blurred orbs, sparks and halos */
html.lite .auth-bg .orb,
html.lite .auth-bg .spark,
html.lite .auth-emblem .halo { display: none !important; }

/* Endless decorative loops play once and stop; loaders keep spinning */
html.lite *:not(.spinner):not(.skeleton):not(.logo-pulse):not(.spa-bar),
html.lite *::before,
html.lite *::after { animation-iteration-count: 1 !important; }

/* Shorter entrance animations feel snappier on slow phones */
html.lite .app-main,
html.lite .app-main.enter-l,
html.lite .app-main.enter-r { animation-duration: .2s !important; }
