/* Sonder · rendimiento. Se carga DESPUÉS del resto de CSS.
   html.lite: lo pone el script del <head> de index.html (reducir movimiento, ≤4 GB de RAM, ≤4 núcleos,
   ahorro de datos, 2g/3g, o ?lite=1; ?lite=0 lo quita). Aquí solo se aligera: nada de diseño nuevo.
   html.tab-hidden: lo pone perf.js mientras la pestaña está oculta. */

/* Pestaña oculta: todas las animaciones CSS en pausa (vale también fuera de lite). */
html.tab-hidden *, html.tab-hidden *::before, html.tab-hidden *::after { animation-play-state: paused !important; }

/* ── Lite ── */
/* Animaciones: terminan al instante y nunca en bucle. Transiciones: 120 ms como mucho (la tarjeta del
   swipe sigue moviéndose con transform; las duraciones en línea de participant.js quedan por debajo). */
html.lite *, html.lite *::before, html.lite *::after {
  animation-duration: 1ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .12s !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background-attachment: scroll !important;
}

/* Sin desenfoque de fondo, las capas translúcidas necesitan un fondo más opaco para leerse. */
html.lite .topbar.scrolled { background: var(--paper) !important; }
html.lite .topbar.dark.scrolled { background: var(--blue-ink) !important; }
html.lite .filters { background: var(--paper) !important; }
html.lite .pill-cta { background: rgba(255, 255, 255, .94) !important; }
html.lite .modal-bg { background: rgba(14, 14, 20, .8) !important; }

/* Capas y sombras grandes que solo decoran. */
html.lite .confetti, html.lite .fly-heart { display: none !important; }

/* Las mascotas animadas de fase1-mascota.js no se crean en lite; por si acaso. */
html.lite .se-wrap { display: none !important; }
