/* Общий фон сайта — как в кабинете: сетка точек и мягкая светящаяся волна, которая
   медленно проходит по сетке. Подключается последним на лендинге, входе, приглашении,
   странице загрузки и в админке. Цвет фона страницы остаётся её собственным. */
:root { --fx-dot:rgba(255,255,255,.22); --fx-dot-wave:rgba(174,255,201,.96); --fx-dot-halo:rgba(130,255,170,.58); }
:root[data-theme='light'] { --fx-dot:rgba(0,0,0,.22); --fx-dot-wave:rgba(42,116,67,.86); --fx-dot-halo:rgba(74,166,100,.46); }
body {
  min-height:100vh;
  isolation:isolate;
  background-image:radial-gradient(circle,var(--fx-dot) .9px,transparent 1.3px);
  background-size:24px 24px; background-repeat:repeat; background-attachment:fixed;
}
/* Прежние сетка админки и цветные пятна страниц входа уступают место точкам. */
body.fx-admin::before, body.login-page::before { content:none; }
body::after {
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:0;
  background-image:
    radial-gradient(circle,var(--fx-dot-wave) 1px,transparent 1.8px),
    radial-gradient(circle,var(--fx-dot-halo) 0 3px,transparent 5.2px);
  background-size:24px 24px,24px 24px; background-repeat:repeat;
  -webkit-mask-image:linear-gradient(110deg,transparent 46%,#000 50%,transparent 54%);
  mask-image:linear-gradient(110deg,transparent 46%,#000 50%,transparent 54%);
  -webkit-mask-size:260% 100%; mask-size:260% 100%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  animation:fx-dot-wave 10s ease-in-out infinite;
}
@keyframes fx-dot-wave {
  0% { -webkit-mask-position:150% 0; mask-position:150% 0; opacity:0; }
  7% { opacity:.58; }
  84% { opacity:.58; }
  100% { -webkit-mask-position:-50% 0; mask-position:-50% 0; opacity:0; }
}
@media (prefers-reduced-motion:reduce) { body::after { animation:none; opacity:0; } }
@media (forced-colors:active) { body::after { content:none; } body { background-image:none; } }
