/* ============================================================================
   theme-effects.css — эффекты оформления для тем HOME FIT

   ФАЙЛ СГЕНЕРИРОВАН. Руками не править: правка исчезнет при следующей
   сборке (build-effects.py). Источник форм — fxshapes.py.

   У каждой темы СВОЯ фигура, а не точка:

     newyear  снежинки + гирлянда из лампочек
     march8   летящие тюльпаны
     feb23    звёзды и залпы салюта
     autumn   падающие кленовые листья
     winter   снежинки-кристаллы
     summer   солнечные блики и бабочки
     barber   ножницы и усы
     beauty   блёстки и сердечки

   ПОЧЕМУ ЭТО НЕ ТОРМОЗИТ ТЕЛЕФОН.
   Анимируется только transform. Это свойство браузер считает на
   композиторе (GPU) без перерисовки страницы. Прежние эффекты
   анимировали background-position — полная перерисовка экрана 60 раз
   в секунду, и именно она грела телефон.

   Ни одного элемента в DOM не создаётся и ни одного запроса не делается:
   вся графика — встроенные SVG внутри этого файла. Каждая фигура описана
   в <defs> один раз, экземпляры — короткие <use>.
   ============================================================================ */

/* --- Слои по умолчанию отсутствуют ----------------------------------------
   content: none — псевдоэлемент не генерируется вовсе. Выключенный
   эффект не стоит ничего: ни пикселя отрисовки, ни памяти. */
body::before,
body::after {
  content: none;
  position: fixed;
  /* Боковые отступы строго нулевые: отрицательный правый отступ даёт
     горизонтальное переполнение и полосу прокрутки на всей странице —
     проверено замером scrollWidth в браузере. Сверху -400px — самая
     высокая плитка 320px: слой уезжает вниз на целую плитку, и без
     запаса сверху открылась бы полоса. Вверх переполнение не
     прокручивается, поэтому прокрутки не добавляет. */
  inset: -400px 0 0 0;
  pointer-events: none;
  z-index: -1;
  background-repeat: repeat;
  background-position: 0 0;
}

/* --- Включение ------------------------------------------------------------
   Один селектор на все эффекты: есть data-effect и он не none — слой
   работает. Перечислять здесь имена тем не нужно, поэтому новая тема
   не может быть забыта в этом месте. */
html[data-effect]:not([data-effect="none"]) body::before,
html[data-effect]:not([data-effect="none"]) body::after {
  content: "";
}

/* --- Анимация -------------------------------------------------------------
   Сдвиг ровно на одну плитку: рисунок периодичен, поэтому в конце цикла
   кадр совпадает с начальным и стыка не видно.

   animation-name и animation-duration заданы РАЗДЕЛЬНО. Шорткат
   animation с var() внутри разрешается на этапе вычисления значения и
   при малейшей проблеме молча превращается в animation-name: none —
   эффект просто не работает, без единой ошибки в консоли. Раздельные
   свойства ведут себя предсказуемо. */
@keyframes hf-fx-a {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, var(--fx-a-tile), 0); }
}
@keyframes hf-fx-b {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, var(--fx-b-tile), 0); }
}

/* ==========================================================================
   newyear — снежинки + гирлянда из лампочек
   плитки 300 и 320 px; фигур в defs: 1 и 5; экземпляров: 9 и 9
   ========================================================================== */
html[data-effect="newyear"],html[data-effect="snow"] {
  --fx-a-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='17' y2='0'/%3E%3Cline x1='9.5' y1='0' x2='13.1' y2='-3.6'/%3E%3Cline x1='9.5' y1='0' x2='13.1' y2='3.6'/%3E%3Cline x1='0' y1='0' x2='8.5' y2='14.7'/%3E%3Cline x1='4.8' y1='8.2' x2='9.7' y2='9.6'/%3E%3Cline x1='4.8' y1='8.2' x2='3.4' y2='13.2'/%3E%3Cline x1='0' y1='0' x2='-8.5' y2='14.7'/%3E%3Cline x1='-4.8' y1='8.2' x2='-3.4' y2='13.2'/%3E%3Cline x1='-4.8' y1='8.2' x2='-9.7' y2='9.6'/%3E%3Cline x1='0' y1='0' x2='-17' y2='0'/%3E%3Cline x1='-9.5' y1='0' x2='-13.1' y2='3.6'/%3E%3Cline x1='-9.5' y1='0' x2='-13.1' y2='-3.6'/%3E%3Cline x1='0' y1='0' x2='-8.5' y2='-14.7'/%3E%3Cline x1='-4.8' y1='-8.2' x2='-9.7' y2='-9.6'/%3E%3Cline x1='-4.8' y1='-8.2' x2='-3.4' y2='-13.2'/%3E%3Cline x1='0' y1='0' x2='8.5' y2='-14.7'/%3E%3Cline x1='4.8' y1='-8.2' x2='3.4' y2='-13.2'/%3E%3Cline x1='4.8' y1='-8.2' x2='9.7' y2='-9.6'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(42 30)'/%3E%3Cuse href='%23d1' transform='translate(186 18)'/%3E%3Cuse href='%23d1' transform='translate(252 84)'/%3E%3Cuse href='%23d1' transform='translate(90 132)'/%3E%3Cuse href='%23d1' transform='translate(27 210)'/%3E%3Cuse href='%23d1' transform='translate(156 180)'/%3E%3Cuse href='%23d1' transform='translate(216 246)'/%3E%3Cuse href='%23d1' transform='translate(282 198)'/%3E%3Cuse href='%23d1' transform='translate(108 270)'/%3E%3C/svg%3E");
  --fx-a-size: 300px 300px;
  --fx-a-tile: 300px;
  --fx-a-dur: 26s;
  --fx-b-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ff4d5e' opacity='0.2'%3E%3Cellipse cx='0' cy='0' rx='13' ry='13'/%3E%3C/g%3E%3Cg fill='%23ff4d5e' opacity='0.4'%3E%3Cellipse cx='0' cy='0' rx='7.1' ry='7.1'/%3E%3C/g%3E%3Cg fill='%23ff4d5e'%3E%3Cellipse cx='0' cy='0' rx='3.2' ry='3.2'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='%23ffd166' opacity='0.2'%3E%3Cellipse cx='0' cy='0' rx='13' ry='13'/%3E%3C/g%3E%3Cg fill='%23ffd166' opacity='0.4'%3E%3Cellipse cx='0' cy='0' rx='7.1' ry='7.1'/%3E%3C/g%3E%3Cg fill='%23ffd166'%3E%3Cellipse cx='0' cy='0' rx='3.2' ry='3.2'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='%234ade80' opacity='0.2'%3E%3Cellipse cx='0' cy='0' rx='13' ry='13'/%3E%3C/g%3E%3Cg fill='%234ade80' opacity='0.4'%3E%3Cellipse cx='0' cy='0' rx='7.1' ry='7.1'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Cellipse cx='0' cy='0' rx='3.2' ry='3.2'/%3E%3C/g%3E%3C/g%3E%3Cg id='d4'%3E%3Cg fill='%2360a5fa' opacity='0.2'%3E%3Cellipse cx='0' cy='0' rx='13' ry='13'/%3E%3C/g%3E%3Cg fill='%2360a5fa' opacity='0.4'%3E%3Cellipse cx='0' cy='0' rx='7.1' ry='7.1'/%3E%3C/g%3E%3Cg fill='%2360a5fa'%3E%3Cellipse cx='0' cy='0' rx='3.2' ry='3.2'/%3E%3C/g%3E%3C/g%3E%3Cg id='d5'%3E%3Cg fill='%23f472b6' opacity='0.2'%3E%3Cellipse cx='0' cy='0' rx='13' ry='13'/%3E%3C/g%3E%3Cg fill='%23f472b6' opacity='0.4'%3E%3Cellipse cx='0' cy='0' rx='7.1' ry='7.1'/%3E%3C/g%3E%3Cg fill='%23f472b6'%3E%3Cellipse cx='0' cy='0' rx='3.2' ry='3.2'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(25.6 57.6)'/%3E%3Cuse href='%23d2' transform='translate(96 32)'/%3E%3Cuse href='%23d3' transform='translate(166.4 64)'/%3E%3Cuse href='%23d4' transform='translate(236.8 35.2)'/%3E%3Cuse href='%23d5' transform='translate(297.6 70.4)'/%3E%3Cuse href='%23d1' transform='translate(60.8 198.4)'/%3E%3Cuse href='%23d2' transform='translate(201.6 185.6)'/%3E%3Cuse href='%23d3' transform='translate(278.4 224)'/%3E%3Cuse href='%23d4' transform='translate(131.2 268.8)'/%3E%3C/svg%3E");
  --fx-b-size: 320px 320px;
  --fx-b-tile: 320px;
  --fx-b-dur: 15s;
}
html[data-effect="newyear"] body::before,html[data-effect="snow"] body::before {
  background-image: var(--fx-a-img);
  background-size: var(--fx-a-size);
  animation-name: hf-fx-a;
  animation-duration: var(--fx-a-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
html[data-effect="newyear"] body::after,html[data-effect="snow"] body::after {
  background-image: var(--fx-b-img);
  background-size: var(--fx-b-size);
  opacity: 0.9;
  animation-name: hf-fx-b;
  animation-duration: var(--fx-b-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ==========================================================================
   march8 — летящие тюльпаны
   плитки 300 и 300 px; фигур в defs: 3 и 1; экземпляров: 7 и 9
   ========================================================================== */
html[data-effect="march8"],html[data-effect="petals"] {
  --fx-a-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23e8468f'%3E%3Cellipse cx='-9.6' cy='-10.1' rx='6' ry='10.8' transform='rotate(-16 -9.6 -10.1)'/%3E%3C/g%3E%3Cg fill='%23e8468f'%3E%3Cellipse cx='9.6' cy='-10.1' rx='6' ry='10.8' transform='rotate(16 9.6 -10.1)'/%3E%3C/g%3E%3Cg fill='%23ff6fae'%3E%3Cellipse cx='0' cy='-14' rx='7' ry='13'/%3E%3C/g%3E%3Cg fill='none' stroke='%234ade80' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='0' y1='-1.9' x2='0' y2='27'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Cellipse cx='-8.2' cy='13' rx='3.1' ry='9.6' transform='rotate(32 -8.2 13)'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Cellipse cx='8.2' cy='13' rx='3.1' ry='9.6' transform='rotate(-32 8.2 13)'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='%23ec4899'%3E%3Cellipse cx='-9.6' cy='-10.1' rx='6' ry='10.8' transform='rotate(-16 -9.6 -10.1)'/%3E%3C/g%3E%3Cg fill='%23ec4899'%3E%3Cellipse cx='9.6' cy='-10.1' rx='6' ry='10.8' transform='rotate(16 9.6 -10.1)'/%3E%3C/g%3E%3Cg fill='%23f9a8d4'%3E%3Cellipse cx='0' cy='-14' rx='7' ry='13'/%3E%3C/g%3E%3Cg fill='none' stroke='%234ade80' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='0' y1='-1.9' x2='0' y2='27'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Cellipse cx='-8.2' cy='13' rx='3.1' ry='9.6' transform='rotate(32 -8.2 13)'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Cellipse cx='8.2' cy='13' rx='3.1' ry='9.6' transform='rotate(-32 8.2 13)'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='%23f472b6'%3E%3Cellipse cx='-9.6' cy='-10.1' rx='6' ry='10.8' transform='rotate(-16 -9.6 -10.1)'/%3E%3C/g%3E%3Cg fill='%23f472b6'%3E%3Cellipse cx='9.6' cy='-10.1' rx='6' ry='10.8' transform='rotate(16 9.6 -10.1)'/%3E%3C/g%3E%3Cg fill='%23fff1f7'%3E%3Cellipse cx='0' cy='-14' rx='7' ry='13'/%3E%3C/g%3E%3Cg fill='none' stroke='%234ade80' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='0' y1='-1.9' x2='0' y2='27'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Cellipse cx='-8.2' cy='13' rx='3.1' ry='9.6' transform='rotate(32 -8.2 13)'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Cellipse cx='8.2' cy='13' rx='3.1' ry='9.6' transform='rotate(-32 8.2 13)'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(48 60) rotate(10)'/%3E%3Cuse href='%23d2' transform='translate(168 36) rotate(-12)'/%3E%3Cuse href='%23d3' transform='translate(258 102) rotate(10)'/%3E%3Cuse href='%23d1' transform='translate(102 174) rotate(-12)'/%3E%3Cuse href='%23d2' transform='translate(210 186) rotate(10)'/%3E%3Cuse href='%23d3' transform='translate(30 246) rotate(-12)'/%3E%3Cuse href='%23d1' transform='translate(144 258) rotate(10)'/%3E%3C/svg%3E");
  --fx-a-size: 300px 300px;
  --fx-a-tile: 300px;
  --fx-a-dur: 30s;
  --fx-b-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ec4899'%3E%3Cellipse cx='-5.4' cy='-5.6' rx='3.3' ry='6' transform='rotate(-16 -5.4 -5.6)'/%3E%3C/g%3E%3Cg fill='%23ec4899'%3E%3Cellipse cx='5.4' cy='-5.6' rx='3.3' ry='6' transform='rotate(16 5.4 -5.6)'/%3E%3C/g%3E%3Cg fill='%23ff8fc0'%3E%3Cellipse cx='0' cy='-7.8' rx='3.9' ry='7.2'/%3E%3C/g%3E%3Cg fill='none' stroke='%234ade80' stroke-width='1.9' stroke-linecap='round'%3E%3Cline x1='0' y1='-1.1' x2='0' y2='15'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Cellipse cx='-4.6' cy='7.2' rx='1.7' ry='5.4' transform='rotate(32 -4.6 7.2)'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Cellipse cx='4.6' cy='7.2' rx='1.7' ry='5.4' transform='rotate(-32 4.6 7.2)'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(30 42) rotate(14)'/%3E%3Cuse href='%23d1' transform='translate(132 24) rotate(-18)'/%3E%3Cuse href='%23d1' transform='translate(228 72) rotate(14)'/%3E%3Cuse href='%23d1' transform='translate(66 138) rotate(-18)'/%3E%3Cuse href='%23d1' transform='translate(174 126) rotate(14)'/%3E%3Cuse href='%23d1' transform='translate(270 168) rotate(-18)'/%3E%3Cuse href='%23d1' transform='translate(108 216) rotate(14)'/%3E%3Cuse href='%23d1' transform='translate(204 240) rotate(-18)'/%3E%3Cuse href='%23d1' transform='translate(36 264) rotate(14)'/%3E%3C/svg%3E");
  --fx-b-size: 300px 300px;
  --fx-b-tile: 300px;
  --fx-b-dur: 20s;
}
html[data-effect="march8"] body::before,html[data-effect="petals"] body::before {
  background-image: var(--fx-a-img);
  background-size: var(--fx-a-size);
  animation-name: hf-fx-a;
  animation-duration: var(--fx-a-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
html[data-effect="march8"] body::after,html[data-effect="petals"] body::after {
  background-image: var(--fx-b-img);
  background-size: var(--fx-b-size);
  opacity: 0.85;
  animation-name: hf-fx-b;
  animation-duration: var(--fx-b-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ==========================================================================
   feb23 — звёзды и залпы салюта
   плитки 300 и 300 px; фигур в defs: 4 и 3; экземпляров: 7 и 5
   ========================================================================== */
html[data-effect="feb23"],html[data-effect="stars"] {
  --fx-a-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ffd166'%3E%3Cpolygon points='0,-14.3 4.2,-4.2 15,-3.4 6.8,3.7 9.3,14.3 0,8.6 -9.3,14.3 -6.7,3.7 -15,-3.4 -4.2,-4.2'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='%23fff3c4'%3E%3Cpolygon points='0,-10 2.9,-3 10.5,-2.4 4.7,2.6 6.5,10 0,6 -6.5,10 -4.7,2.6 -10.5,-2.4 -2.9,-3'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='%23ffb4a2'%3E%3Cpolygon points='0,-12.8 3.8,-3.8 13.5,-3 6.1,3.3 8.3,12.8 0,7.7 -8.3,12.8 -6.1,3.3 -13.5,-3 -3.8,-3.8'/%3E%3C/g%3E%3C/g%3E%3Cg id='d4'%3E%3Cg fill='%23ffd166'%3E%3Cellipse cx='0' cy='0' rx='2.1' ry='2.1'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffd166' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='5.7' y1='0' x2='15' y2='0'/%3E%3Cline x1='4' y1='4' x2='10.6' y2='10.6'/%3E%3Cline x1='0' y1='5.7' x2='0' y2='15'/%3E%3Cline x1='-4' y1='4' x2='-10.6' y2='10.6'/%3E%3Cline x1='-5.7' y1='0' x2='-15' y2='0'/%3E%3Cline x1='-4' y1='-4' x2='-10.6' y2='-10.6'/%3E%3Cline x1='0' y1='-5.7' x2='0' y2='-15'/%3E%3Cline x1='4' y1='-4' x2='10.6' y2='-10.6'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(54 48) rotate(-20)'/%3E%3Cuse href='%23d2' transform='translate(186 30) rotate(-7)'/%3E%3Cuse href='%23d3' transform='translate(264 96) rotate(6)'/%3E%3Cuse href='%23d1' transform='translate(102 156) rotate(19)'/%3E%3Cuse href='%23d2' transform='translate(216 198) rotate(-8)'/%3E%3Cuse href='%23d3' transform='translate(36 258) rotate(5)'/%3E%3Cuse href='%23d4' transform='translate(150 264)'/%3E%3C/svg%3E");
  --fx-a-size: 300px 300px;
  --fx-a-tile: 300px;
  --fx-a-dur: 24s;
  --fx-b-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ffd166'%3E%3Cellipse cx='0' cy='0' rx='3.1' ry='3.1'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffd166' stroke-width='0.7' stroke-linecap='round'%3E%3Cline x1='8.4' y1='0' x2='22' y2='0'/%3E%3Cline x1='5.9' y1='5.9' x2='15.6' y2='15.6'/%3E%3Cline x1='0' y1='8.4' x2='0' y2='22'/%3E%3Cline x1='-5.9' y1='5.9' x2='-15.6' y2='15.6'/%3E%3Cline x1='-8.4' y1='0' x2='-22' y2='0'/%3E%3Cline x1='-5.9' y1='-5.9' x2='-15.6' y2='-15.6'/%3E%3Cline x1='0' y1='-8.4' x2='0' y2='-22'/%3E%3Cline x1='5.9' y1='-5.9' x2='15.6' y2='-15.6'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='%23fff3c4'%3E%3Cellipse cx='0' cy='0' rx='2.2' ry='2.2'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff3c4' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='6.1' y1='0' x2='16' y2='0'/%3E%3Cline x1='4.3' y1='4.3' x2='11.3' y2='11.3'/%3E%3Cline x1='0' y1='6.1' x2='0' y2='16'/%3E%3Cline x1='-4.3' y1='4.3' x2='-11.3' y2='11.3'/%3E%3Cline x1='-6.1' y1='0' x2='-16' y2='0'/%3E%3Cline x1='-4.3' y1='-4.3' x2='-11.3' y2='-11.3'/%3E%3Cline x1='0' y1='-6.1' x2='0' y2='-16'/%3E%3Cline x1='4.3' y1='-4.3' x2='11.3' y2='-11.3'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='%23ffb4a2'%3E%3Cellipse cx='0' cy='0' rx='3.2' ry='3.2'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffb4a2' stroke-width='0.7' stroke-linecap='round'%3E%3Cline x1='8.7' y1='0' x2='23' y2='0'/%3E%3Cline x1='6.2' y1='6.2' x2='16.3' y2='16.3'/%3E%3Cline x1='0' y1='8.7' x2='0' y2='23'/%3E%3Cline x1='-6.2' y1='6.2' x2='-16.3' y2='16.3'/%3E%3Cline x1='-8.7' y1='0' x2='-23' y2='0'/%3E%3Cline x1='-6.2' y1='-6.2' x2='-16.3' y2='-16.3'/%3E%3Cline x1='0' y1='-8.7' x2='0' y2='-23'/%3E%3Cline x1='6.2' y1='-6.2' x2='16.3' y2='-16.3'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(60 66)'/%3E%3Cuse href='%23d2' transform='translate(210 42)'/%3E%3Cuse href='%23d3' transform='translate(156 168)'/%3E%3Cuse href='%23d1' transform='translate(42 252)'/%3E%3Cuse href='%23d2' transform='translate(258 240)'/%3E%3C/svg%3E");
  --fx-b-size: 300px 300px;
  --fx-b-tile: 300px;
  --fx-b-dur: 17s;
}
html[data-effect="feb23"] body::before,html[data-effect="stars"] body::before {
  background-image: var(--fx-a-img);
  background-size: var(--fx-a-size);
  animation-name: hf-fx-a;
  animation-duration: var(--fx-a-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
html[data-effect="feb23"] body::after,html[data-effect="stars"] body::after {
  background-image: var(--fx-b-img);
  background-size: var(--fx-b-size);
  opacity: 0.9;
  animation-name: hf-fx-b;
  animation-duration: var(--fx-b-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ==========================================================================
   autumn — падающие кленовые листья
   плитки 300 и 300 px; фигур в defs: 4 и 3; экземпляров: 8 и 11
   ========================================================================== */
html[data-effect="autumn"],html[data-effect="leaves"] {
  --fx-a-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ff8a3d'%3E%3Cpolygon points='0,-20 4.3,-10 12.3,-13.7 10,-4.4 19.7,-3.6 13,2 17.9,8.7 7.8,8.7 8.6,17.6 0,12 -8.6,17.6 -7.8,8.7 -17.9,8.7 -13,2 -19.7,-3.6 -10,-4.4 -12.3,-13.7 -4.3,-10'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='0.9' stroke-linecap='round'%3E%3Cline x1='0' y1='7' x2='0' y2='-15.1'/%3E%3Cline x1='0' y1='7' x2='-14.1' y2='-2.4'/%3E%3Cline x1='0' y1='7' x2='14.1' y2='-2.4'/%3E%3Cline x1='0' y1='7' x2='-5.7' y2='12.5'/%3E%3Cline x1='0' y1='7' x2='5.7' y2='12.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='0' y1='7.9' x2='0' y2='20'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='%23e05c1f'%3E%3Cpolygon points='0,-24 5.1,-11.9 14.7,-16.4 12.1,-5.2 23.7,-4.4 15.6,2.3 21.4,10.4 9.4,10.4 10.3,21.1 0,14.4 -10.3,21.1 -9.4,10.4 -21.4,10.4 -15.6,2.3 -23.7,-4.4 -12.1,-5.2 -14.7,-16.4 -5.1,-11.9'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='1.1' stroke-linecap='round'%3E%3Cline x1='0' y1='8.4' x2='0' y2='-18.1'/%3E%3Cline x1='0' y1='8.4' x2='-17' y2='-2.8'/%3E%3Cline x1='0' y1='8.4' x2='17' y2='-2.8'/%3E%3Cline x1='0' y1='8.4' x2='-6.8' y2='15'/%3E%3Cline x1='0' y1='8.4' x2='6.8' y2='15'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='1.8' stroke-linecap='round'%3E%3Cline x1='0' y1='9.5' x2='0' y2='24'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='%23ffc247'%3E%3Cpolygon points='0,-28 6,-13.9 17.2,-19.1 14.1,-6.1 27.6,-5.1 18.2,2.7 25,12.1 10.9,12.1 12,24.6 0,16.8 -12,24.6 -10.9,12.1 -25,12.1 -18.2,2.7 -27.6,-5.1 -14.1,-6.1 -17.2,-19.1 -6,-13.9'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='1.3' stroke-linecap='round'%3E%3Cline x1='0' y1='9.8' x2='0' y2='-21.1'/%3E%3Cline x1='0' y1='9.8' x2='-19.8' y2='-3.3'/%3E%3Cline x1='0' y1='9.8' x2='19.8' y2='-3.3'/%3E%3Cline x1='0' y1='9.8' x2='-7.9' y2='17.5'/%3E%3Cline x1='0' y1='9.8' x2='7.9' y2='17.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='2.1' stroke-linecap='round'%3E%3Cline x1='0' y1='11.1' x2='0' y2='28'/%3E%3C/g%3E%3C/g%3E%3Cg id='d4'%3E%3Cg fill='%23c2410c'%3E%3Cpolygon points='0,-20 4.3,-10 12.3,-13.7 10,-4.4 19.7,-3.6 13,2 17.9,8.7 7.8,8.7 8.6,17.6 0,12 -8.6,17.6 -7.8,8.7 -17.9,8.7 -13,2 -19.7,-3.6 -10,-4.4 -12.3,-13.7 -4.3,-10'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='0.9' stroke-linecap='round'%3E%3Cline x1='0' y1='7' x2='0' y2='-15.1'/%3E%3Cline x1='0' y1='7' x2='-14.1' y2='-2.4'/%3E%3Cline x1='0' y1='7' x2='14.1' y2='-2.4'/%3E%3Cline x1='0' y1='7' x2='-5.7' y2='12.5'/%3E%3Cline x1='0' y1='7' x2='5.7' y2='12.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='0' y1='7.9' x2='0' y2='20'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(48 54) rotate(-30)'/%3E%3Cuse href='%23d2' transform='translate(174 30) rotate(-7)'/%3E%3Cuse href='%23d3' transform='translate(258 90) rotate(16)'/%3E%3Cuse href='%23d4' transform='translate(96 150) rotate(-21)'/%3E%3Cuse href='%23d1' transform='translate(210 174) rotate(2)'/%3E%3Cuse href='%23d2' transform='translate(30 234) rotate(25)'/%3E%3Cuse href='%23d3' transform='translate(138 258) rotate(-12)'/%3E%3Cuse href='%23d4' transform='translate(270 216) rotate(11)'/%3E%3C/svg%3E");
  --fx-a-size: 300px 300px;
  --fx-a-tile: 300px;
  --fx-a-dur: 28s;
  --fx-b-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ffb347'%3E%3Cpolygon points='0,-11 2.4,-5.5 6.8,-7.5 5.5,-2.4 10.8,-2 7.2,1.1 9.8,4.8 4.3,4.8 4.7,9.7 0,6.6 -4.7,9.7 -4.3,4.8 -9.8,4.8 -7.2,1.1 -10.8,-2 -5.5,-2.4 -6.8,-7.5 -2.4,-5.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='0' y1='3.8' x2='0' y2='-8.3'/%3E%3Cline x1='0' y1='3.8' x2='-7.8' y2='-1.3'/%3E%3Cline x1='0' y1='3.8' x2='7.8' y2='-1.3'/%3E%3Cline x1='0' y1='3.8' x2='-3.1' y2='6.9'/%3E%3Cline x1='0' y1='3.8' x2='3.1' y2='6.9'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='0.8' stroke-linecap='round'%3E%3Cline x1='0' y1='4.3' x2='0' y2='11'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='%23f97316'%3E%3Cpolygon points='0,-13.5 2.9,-6.7 8.3,-9.2 6.8,-3 13.3,-2.4 8.8,1.3 12.1,5.8 5.3,5.8 5.8,11.9 0,8.1 -5.8,11.9 -5.3,5.8 -12.1,5.8 -8.8,1.3 -13.3,-2.4 -6.8,-3 -8.3,-9.2 -2.9,-6.7'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='0' y1='4.7' x2='0' y2='-10.2'/%3E%3Cline x1='0' y1='4.7' x2='-9.5' y2='-1.6'/%3E%3Cline x1='0' y1='4.7' x2='9.5' y2='-1.6'/%3E%3Cline x1='0' y1='4.7' x2='-3.8' y2='8.4'/%3E%3Cline x1='0' y1='4.7' x2='3.8' y2='8.4'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='1' stroke-linecap='round'%3E%3Cline x1='0' y1='5.3' x2='0' y2='13.5'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='%23fbbf24'%3E%3Cpolygon points='0,-11 2.4,-5.5 6.8,-7.5 5.5,-2.4 10.8,-2 7.2,1.1 9.8,4.8 4.3,4.8 4.7,9.7 0,6.6 -4.7,9.7 -4.3,4.8 -9.8,4.8 -7.2,1.1 -10.8,-2 -5.5,-2.4 -6.8,-7.5 -2.4,-5.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='0' y1='3.8' x2='0' y2='-8.3'/%3E%3Cline x1='0' y1='3.8' x2='-7.8' y2='-1.3'/%3E%3Cline x1='0' y1='3.8' x2='7.8' y2='-1.3'/%3E%3Cline x1='0' y1='3.8' x2='-3.1' y2='6.9'/%3E%3Cline x1='0' y1='3.8' x2='3.1' y2='6.9'/%3E%3C/g%3E%3Cg fill='none' stroke='%237c2d12' stroke-width='0.8' stroke-linecap='round'%3E%3Cline x1='0' y1='4.3' x2='0' y2='11'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(36 36) rotate(-35)'/%3E%3Cuse href='%23d2' transform='translate(120 66) rotate(2)'/%3E%3Cuse href='%23d3' transform='translate(216 30) rotate(-31)'/%3E%3Cuse href='%23d1' transform='translate(72 132) rotate(6)'/%3E%3Cuse href='%23d2' transform='translate(180 120) rotate(-27)'/%3E%3Cuse href='%23d3' transform='translate(270 156) rotate(10)'/%3E%3Cuse href='%23d1' transform='translate(42 204) rotate(-23)'/%3E%3Cuse href='%23d2' transform='translate(132 222) rotate(14)'/%3E%3Cuse href='%23d3' transform='translate(228 258) rotate(-19)'/%3E%3Cuse href='%23d1' transform='translate(288 282) rotate(18)'/%3E%3Cuse href='%23d1' transform='translate(-12 282) rotate(18)'/%3E%3C/svg%3E");
  --fx-b-size: 300px 300px;
  --fx-b-tile: 300px;
  --fx-b-dur: 19s;
}
html[data-effect="autumn"] body::before,html[data-effect="leaves"] body::before {
  background-image: var(--fx-a-img);
  background-size: var(--fx-a-size);
  animation-name: hf-fx-a;
  animation-duration: var(--fx-a-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
html[data-effect="autumn"] body::after,html[data-effect="leaves"] body::after {
  background-image: var(--fx-b-img);
  background-size: var(--fx-b-size);
  opacity: 0.8;
  animation-name: hf-fx-b;
  animation-duration: var(--fx-b-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ==========================================================================
   winter — снежинки-кристаллы
   плитки 300 и 300 px; фигур в defs: 3 и 1; экземпляров: 10 и 13
   ========================================================================== */
html[data-effect="winter"] {
  --fx-a-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='none' stroke='%23dff3ff' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='17' y2='0'/%3E%3Cline x1='9.5' y1='0' x2='13.1' y2='-3.6'/%3E%3Cline x1='9.5' y1='0' x2='13.1' y2='3.6'/%3E%3Cline x1='0' y1='0' x2='8.5' y2='14.7'/%3E%3Cline x1='4.8' y1='8.2' x2='9.7' y2='9.6'/%3E%3Cline x1='4.8' y1='8.2' x2='3.4' y2='13.2'/%3E%3Cline x1='0' y1='0' x2='-8.5' y2='14.7'/%3E%3Cline x1='-4.8' y1='8.2' x2='-3.4' y2='13.2'/%3E%3Cline x1='-4.8' y1='8.2' x2='-9.7' y2='9.6'/%3E%3Cline x1='0' y1='0' x2='-17' y2='0'/%3E%3Cline x1='-9.5' y1='0' x2='-13.1' y2='3.6'/%3E%3Cline x1='-9.5' y1='0' x2='-13.1' y2='-3.6'/%3E%3Cline x1='0' y1='0' x2='-8.5' y2='-14.7'/%3E%3Cline x1='-4.8' y1='-8.2' x2='-9.7' y2='-9.6'/%3E%3Cline x1='-4.8' y1='-8.2' x2='-3.4' y2='-13.2'/%3E%3Cline x1='0' y1='0' x2='8.5' y2='-14.7'/%3E%3Cline x1='4.8' y1='-8.2' x2='3.4' y2='-13.2'/%3E%3Cline x1='4.8' y1='-8.2' x2='9.7' y2='-9.6'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='none' stroke='%23a8dcff' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='10.5' y2='0'/%3E%3Cline x1='5.9' y1='0' x2='8.1' y2='-2.2'/%3E%3Cline x1='5.9' y1='0' x2='8.1' y2='2.2'/%3E%3Cline x1='0' y1='0' x2='5.3' y2='9.1'/%3E%3Cline x1='2.9' y1='5.1' x2='6' y2='5.9'/%3E%3Cline x1='2.9' y1='5.1' x2='2.1' y2='8.1'/%3E%3Cline x1='0' y1='0' x2='-5.2' y2='9.1'/%3E%3Cline x1='-2.9' y1='5.1' x2='-2.1' y2='8.1'/%3E%3Cline x1='-2.9' y1='5.1' x2='-6' y2='5.9'/%3E%3Cline x1='0' y1='0' x2='-10.5' y2='0'/%3E%3Cline x1='-5.9' y1='0' x2='-8.1' y2='2.2'/%3E%3Cline x1='-5.9' y1='0' x2='-8.1' y2='-2.2'/%3E%3Cline x1='0' y1='0' x2='-5.3' y2='-9.1'/%3E%3Cline x1='-2.9' y1='-5.1' x2='-6' y2='-5.9'/%3E%3Cline x1='-2.9' y1='-5.1' x2='-2.1' y2='-8.1'/%3E%3Cline x1='0' y1='0' x2='5.3' y2='-9.1'/%3E%3Cline x1='2.9' y1='-5.1' x2='2.1' y2='-8.1'/%3E%3Cline x1='2.9' y1='-5.1' x2='6' y2='-5.9'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='18' y2='0'/%3E%3Cline x1='10.1' y1='0' x2='13.9' y2='-3.8'/%3E%3Cline x1='10.1' y1='0' x2='13.9' y2='3.8'/%3E%3Cline x1='0' y1='0' x2='9' y2='15.6'/%3E%3Cline x1='5' y1='8.7' x2='10.3' y2='10.1'/%3E%3Cline x1='5' y1='8.7' x2='3.6' y2='13.9'/%3E%3Cline x1='0' y1='0' x2='-9' y2='15.6'/%3E%3Cline x1='-5' y1='8.7' x2='-3.6' y2='13.9'/%3E%3Cline x1='-5' y1='8.7' x2='-10.3' y2='10.1'/%3E%3Cline x1='0' y1='0' x2='-18' y2='0'/%3E%3Cline x1='-10.1' y1='0' x2='-13.9' y2='3.8'/%3E%3Cline x1='-10.1' y1='0' x2='-13.9' y2='-3.8'/%3E%3Cline x1='0' y1='0' x2='-9' y2='-15.6'/%3E%3Cline x1='-5' y1='-8.7' x2='-10.3' y2='-10.1'/%3E%3Cline x1='-5' y1='-8.7' x2='-3.6' y2='-13.9'/%3E%3Cline x1='0' y1='0' x2='9' y2='-15.6'/%3E%3Cline x1='5' y1='-8.7' x2='3.6' y2='-13.9'/%3E%3Cline x1='5' y1='-8.7' x2='10.3' y2='-10.1'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(42 36)'/%3E%3Cuse href='%23d2' transform='translate(156 24)'/%3E%3Cuse href='%23d3' transform='translate(246 78)'/%3E%3Cuse href='%23d1' transform='translate(84 126)'/%3E%3Cuse href='%23d2' transform='translate(192 150)'/%3E%3Cuse href='%23d3' transform='translate(24 198)'/%3E%3Cuse href='%23d1' transform='translate(120 222)'/%3E%3Cuse href='%23d2' transform='translate(234 204)'/%3E%3Cuse href='%23d3' transform='translate(60 276)'/%3E%3Cuse href='%23d1' transform='translate(276 264)'/%3E%3C/svg%3E");
  --fx-a-size: 300px 300px;
  --fx-a-tile: 300px;
  --fx-a-dur: 30s;
  --fx-b-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='none' stroke='%23cfeeff' stroke-width='0.6' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='8' y2='0'/%3E%3Cline x1='4.5' y1='0' x2='6.2' y2='-1.7'/%3E%3Cline x1='4.5' y1='0' x2='6.2' y2='1.7'/%3E%3Cline x1='0' y1='0' x2='4' y2='6.9'/%3E%3Cline x1='2.2' y1='3.9' x2='4.6' y2='4.5'/%3E%3Cline x1='2.2' y1='3.9' x2='1.6' y2='6.2'/%3E%3Cline x1='0' y1='0' x2='-4' y2='6.9'/%3E%3Cline x1='-2.2' y1='3.9' x2='-1.6' y2='6.2'/%3E%3Cline x1='-2.2' y1='3.9' x2='-4.6' y2='4.5'/%3E%3Cline x1='0' y1='0' x2='-8' y2='0'/%3E%3Cline x1='-4.5' y1='0' x2='-6.2' y2='1.7'/%3E%3Cline x1='-4.5' y1='0' x2='-6.2' y2='-1.7'/%3E%3Cline x1='0' y1='0' x2='-4' y2='-6.9'/%3E%3Cline x1='-2.2' y1='-3.9' x2='-4.6' y2='-4.5'/%3E%3Cline x1='-2.2' y1='-3.9' x2='-1.6' y2='-6.2'/%3E%3Cline x1='0' y1='0' x2='4' y2='-6.9'/%3E%3Cline x1='2.2' y1='-3.9' x2='1.6' y2='-6.2'/%3E%3Cline x1='2.2' y1='-3.9' x2='4.6' y2='-4.5'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(30 30)'/%3E%3Cuse href='%23d1' transform='translate(84 78)'/%3E%3Cuse href='%23d1' transform='translate(144 42)'/%3E%3Cuse href='%23d1' transform='translate(210 66)'/%3E%3Cuse href='%23d1' transform='translate(270 36)'/%3E%3Cuse href='%23d1' transform='translate(54 144)'/%3E%3Cuse href='%23d1' transform='translate(114 180)'/%3E%3Cuse href='%23d1' transform='translate(174 132)'/%3E%3Cuse href='%23d1' transform='translate(240 162)'/%3E%3Cuse href='%23d1' transform='translate(294 198)'/%3E%3Cuse href='%23d1' transform='translate(-6 198)'/%3E%3Cuse href='%23d1' transform='translate(78 246)'/%3E%3Cuse href='%23d1' transform='translate(198 258)'/%3E%3C/svg%3E");
  --fx-b-size: 300px 300px;
  --fx-b-tile: 300px;
  --fx-b-dur: 21s;
}
html[data-effect="winter"] body::before {
  background-image: var(--fx-a-img);
  background-size: var(--fx-a-size);
  animation-name: hf-fx-a;
  animation-duration: var(--fx-a-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
html[data-effect="winter"] body::after {
  background-image: var(--fx-b-img);
  background-size: var(--fx-b-size);
  opacity: 0.85;
  animation-name: hf-fx-b;
  animation-duration: var(--fx-b-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ==========================================================================
   summer — солнечные блики и бабочки
   плитки 300 и 300 px; фигур в defs: 1 и 3; экземпляров: 7 и 7
   ========================================================================== */
html[data-effect="summer"] {
  --fx-a-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ffe066'%3E%3Cellipse cx='0' cy='0' rx='6.1' ry='6.1'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffe066' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='9.9' y1='0' x2='21' y2='0'/%3E%3Cline x1='7' y1='7' x2='11.1' y2='11.1'/%3E%3Cline x1='0' y1='9.9' x2='0' y2='21'/%3E%3Cline x1='-7' y1='7' x2='-11.1' y2='11.1'/%3E%3Cline x1='-9.9' y1='0' x2='-21' y2='0'/%3E%3Cline x1='-7' y1='-7' x2='-11.1' y2='-11.1'/%3E%3Cline x1='0' y1='-9.9' x2='0' y2='-21'/%3E%3Cline x1='7' y1='-7' x2='11.1' y2='-11.1'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(54 54)'/%3E%3Cuse href='%23d1' transform='translate(186 30)'/%3E%3Cuse href='%23d1' transform='translate(264 102)'/%3E%3Cuse href='%23d1' transform='translate(102 150)'/%3E%3Cuse href='%23d1' transform='translate(216 186)'/%3E%3Cuse href='%23d1' transform='translate(36 240)'/%3E%3Cuse href='%23d1' transform='translate(144 264)'/%3E%3C/svg%3E");
  --fx-a-size: 300px 300px;
  --fx-a-tile: 300px;
  --fx-a-dur: 22s;
  --fx-b-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ffd166'%3E%3Cellipse cx='-11' cy='-3.7' rx='11' ry='7.6' transform='rotate(-28 -11 -3.7)'/%3E%3C/g%3E%3Cg fill='%23f59e0b'%3E%3Cellipse cx='-8.9' cy='10.5' rx='7.9' ry='5.8' transform='rotate(22 -8.9 10.5)'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f59e0b' stroke-width='1.1' stroke-linecap='round'%3E%3Cline x1='0' y1='-3.1' x2='-7.3' y2='-16.2'/%3E%3C/g%3E%3Cg fill='%23ffd166'%3E%3Cellipse cx='11' cy='-3.7' rx='11' ry='7.6' transform='rotate(28 11 -3.7)'/%3E%3C/g%3E%3Cg fill='%23f59e0b'%3E%3Cellipse cx='8.9' cy='10.5' rx='7.9' ry='5.8' transform='rotate(-22 8.9 10.5)'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f59e0b' stroke-width='1.1' stroke-linecap='round'%3E%3Cline x1='0' y1='-3.1' x2='7.3' y2='-16.2'/%3E%3C/g%3E%3Cg fill='%23f59e0b'%3E%3Cellipse cx='0' cy='3.7' rx='2' ry='10'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='%23fca5a5'%3E%3Cellipse cx='-11' cy='-3.7' rx='11' ry='7.6' transform='rotate(-28 -11 -3.7)'/%3E%3C/g%3E%3Cg fill='%23ef4444'%3E%3Cellipse cx='-8.9' cy='10.5' rx='7.9' ry='5.8' transform='rotate(22 -8.9 10.5)'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ef4444' stroke-width='1.1' stroke-linecap='round'%3E%3Cline x1='0' y1='-3.1' x2='-7.3' y2='-16.2'/%3E%3C/g%3E%3Cg fill='%23fca5a5'%3E%3Cellipse cx='11' cy='-3.7' rx='11' ry='7.6' transform='rotate(28 11 -3.7)'/%3E%3C/g%3E%3Cg fill='%23ef4444'%3E%3Cellipse cx='8.9' cy='10.5' rx='7.9' ry='5.8' transform='rotate(-22 8.9 10.5)'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ef4444' stroke-width='1.1' stroke-linecap='round'%3E%3Cline x1='0' y1='-3.1' x2='7.3' y2='-16.2'/%3E%3C/g%3E%3Cg fill='%23ef4444'%3E%3Cellipse cx='0' cy='3.7' rx='2' ry='10'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='%23a7f3d0'%3E%3Cellipse cx='-11' cy='-3.7' rx='11' ry='7.6' transform='rotate(-28 -11 -3.7)'/%3E%3C/g%3E%3Cg fill='%2310b981'%3E%3Cellipse cx='-8.9' cy='10.5' rx='7.9' ry='5.8' transform='rotate(22 -8.9 10.5)'/%3E%3C/g%3E%3Cg fill='none' stroke='%2310b981' stroke-width='1.1' stroke-linecap='round'%3E%3Cline x1='0' y1='-3.1' x2='-7.3' y2='-16.2'/%3E%3C/g%3E%3Cg fill='%23a7f3d0'%3E%3Cellipse cx='11' cy='-3.7' rx='11' ry='7.6' transform='rotate(28 11 -3.7)'/%3E%3C/g%3E%3Cg fill='%2310b981'%3E%3Cellipse cx='8.9' cy='10.5' rx='7.9' ry='5.8' transform='rotate(-22 8.9 10.5)'/%3E%3C/g%3E%3Cg fill='none' stroke='%2310b981' stroke-width='1.1' stroke-linecap='round'%3E%3Cline x1='0' y1='-3.1' x2='7.3' y2='-16.2'/%3E%3C/g%3E%3Cg fill='%2310b981'%3E%3Cellipse cx='0' cy='3.7' rx='2' ry='10'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(48 60) rotate(12)'/%3E%3Cuse href='%23d2' transform='translate(168 36) rotate(-15)'/%3E%3Cuse href='%23d3' transform='translate(258 108) rotate(12)'/%3E%3Cuse href='%23d1' transform='translate(108 168) rotate(-15)'/%3E%3Cuse href='%23d2' transform='translate(222 192) rotate(12)'/%3E%3Cuse href='%23d3' transform='translate(42 252) rotate(-15)'/%3E%3Cuse href='%23d1' transform='translate(150 270) rotate(12)'/%3E%3C/svg%3E");
  --fx-b-size: 300px 300px;
  --fx-b-tile: 300px;
  --fx-b-dur: 18s;
}
html[data-effect="summer"] body::before {
  background-image: var(--fx-a-img);
  background-size: var(--fx-a-size);
  animation-name: hf-fx-a;
  animation-duration: var(--fx-a-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
html[data-effect="summer"] body::after {
  background-image: var(--fx-b-img);
  background-size: var(--fx-b-size);
  opacity: 0.85;
  animation-name: hf-fx-b;
  animation-duration: var(--fx-b-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ==========================================================================
   barber — ножницы и усы
   плитки 300 и 300 px; фигур в defs: 1 и 1; экземпляров: 6 и 6
   ========================================================================== */
html[data-effect="barber"] {
  --fx-a-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='none' stroke='%23d9a441' stroke-width='1.8'%3E%3Cellipse cx='-17.4' cy='10.1' rx='4.6' ry='4.6'/%3E%3Cellipse cx='-17.4' cy='-10.1' rx='4.6' ry='4.6'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9a441' stroke-width='1.8' stroke-linecap='round'%3E%3Cline x1='-13.2' y1='8.1' x2='22' y2='-4.4'/%3E%3Cline x1='-13.2' y1='-8.1' x2='22' y2='4.4'/%3E%3C/g%3E%3Cg fill='%23d9a441'%3E%3Cellipse cx='-3.1' cy='0' rx='1.6' ry='1.6'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(54 60) rotate(-25)'/%3E%3Cuse href='%23d1' transform='translate(180 36) rotate(6)'/%3E%3Cuse href='%23d1' transform='translate(264 114) rotate(-13)'/%3E%3Cuse href='%23d1' transform='translate(96 162) rotate(18)'/%3E%3Cuse href='%23d1' transform='translate(210 198) rotate(-1)'/%3E%3Cuse href='%23d1' transform='translate(36 258) rotate(-20)'/%3E%3C/svg%3E");
  --fx-a-size: 300px 300px;
  --fx-a-tile: 300px;
  --fx-a-dur: 30s;
  --fx-b-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23a4232b'%3E%3Cpolygon points='-3.6,11.5 -0.4,11.7 2.9,11.6 6.1,11 9.1,10.1 11.9,8.8 14.5,7.2 16.7,5.3 18.5,3.1 19.8,0.8 20.6,-1.7 21,-4.2 20.8,-6.8 20.2,-9.3 19,-11.7 13.1,-9 13.9,-7.5 14.4,-6 14.5,-4.5 14.3,-2.9 13.7,-1.4 12.7,0 11.5,1.3 10,2.5 8.2,3.5 6.3,4.2 4.2,4.8 2,5.1 -0.3,5.2 -2.5,5.1'/%3E%3Cpolygon points='3.6,11.5 0.4,11.7 -2.9,11.6 -6.1,11 -9.1,10.1 -11.9,8.8 -14.5,7.2 -16.7,5.3 -18.5,3.1 -19.8,0.8 -20.6,-1.7 -21,-4.2 -20.8,-6.8 -20.2,-9.3 -19,-11.7 -13.1,-9 -13.9,-7.5 -14.4,-6 -14.5,-4.5 -14.3,-2.9 -13.7,-1.4 -12.7,0 -11.5,1.3 -10,2.5 -8.2,3.5 -6.3,4.2 -4.2,4.8 -2,5.1 0.3,5.2 2.5,5.1'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(48 66) rotate(-15)'/%3E%3Cuse href='%23d1' transform='translate(174 42) rotate(2)'/%3E%3Cuse href='%23d1' transform='translate(258 120) rotate(-11)'/%3E%3Cuse href='%23d1' transform='translate(102 174) rotate(6)'/%3E%3Cuse href='%23d1' transform='translate(216 210) rotate(-7)'/%3E%3Cuse href='%23d1' transform='translate(42 264) rotate(10)'/%3E%3C/svg%3E");
  --fx-b-size: 300px 300px;
  --fx-b-tile: 300px;
  --fx-b-dur: 20s;
}
html[data-effect="barber"] body::before {
  background-image: var(--fx-a-img);
  background-size: var(--fx-a-size);
  animation-name: hf-fx-a;
  animation-duration: var(--fx-a-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
html[data-effect="barber"] body::after {
  background-image: var(--fx-b-img);
  background-size: var(--fx-b-size);
  opacity: 0.8;
  animation-name: hf-fx-b;
  animation-duration: var(--fx-b-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ==========================================================================
   beauty — блёстки и сердечки
   плитки 300 и 300 px; фигур в defs: 3 и 3; экземпляров: 8 и 14
   ========================================================================== */
html[data-effect="beauty"] {
  --fx-a-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ff9ec4'%3E%3Cpolygon points='0,-7.1 0,-7.2 0.1,-7.6 0.3,-8.3 0.6,-9.2 1.1,-10.1 1.9,-11.1 2.8,-12 4,-12.7 5.3,-13.3 6.7,-13.5 8.2,-13.5 9.7,-13.2 11.2,-12.5 12.4,-11.6 13.5,-10.5 14.3,-9.1 14.8,-7.7 15,-6.1 14.8,-4.6 14.3,-3 13.5,-1.5 12.4,0 11.2,1.4 9.7,2.8 8.2,4.1 6.7,5.4 5.3,6.6 4,7.8 2.8,9 1.9,10 1.1,11 0.6,11.9 0.3,12.6 0.1,13.1 0,13.4 0,13.5 0,13.4 -0.1,13.1 -0.3,12.6 -0.6,11.9 -1.1,11 -1.9,10 -2.8,9 -4,7.8 -5.3,6.6 -6.7,5.4 -8.2,4.1 -9.7,2.8 -11.2,1.4 -12.4,0 -13.5,-1.5 -14.3,-3 -14.8,-4.6 -15,-6.1 -14.8,-7.7 -14.3,-9.1 -13.5,-10.5 -12.4,-11.6 -11.2,-12.5 -9.7,-13.2 -8.2,-13.5 -6.7,-13.5 -5.3,-13.3 -4,-12.7 -2.8,-12 -1.9,-11.1 -1.1,-10.1 -0.6,-9.2 -0.3,-8.3 -0.1,-7.6 0,-7.2'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='%23ff7aa8'%3E%3Cpolygon points='0,-9 0,-9.2 0.1,-9.7 0.3,-10.5 0.8,-11.6 1.4,-12.8 2.4,-14 3.6,-15.2 5,-16.1 6.7,-16.8 8.5,-17.2 10.4,-17.1 12.3,-16.7 14.1,-15.9 15.8,-14.7 17.1,-13.3 18.1,-11.6 18.8,-9.7 19,-7.8 18.8,-5.8 18.1,-3.8 17.1,-1.9 15.8,0 14.1,1.8 12.3,3.5 10.4,5.2 8.5,6.8 6.7,8.4 5,9.9 3.6,11.4 2.4,12.7 1.4,14 0.8,15 0.3,15.9 0.1,16.6 0,17 0,17.2 0,17 -0.1,16.6 -0.3,15.9 -0.8,15 -1.4,14 -2.4,12.7 -3.6,11.4 -5,9.9 -6.7,8.4 -8.5,6.8 -10.4,5.2 -12.3,3.5 -14.1,1.8 -15.8,0 -17.1,-1.9 -18.1,-3.8 -18.8,-5.8 -19,-7.8 -18.8,-9.7 -18.1,-11.6 -17.1,-13.3 -15.8,-14.7 -14.1,-15.9 -12.3,-16.7 -10.4,-17.1 -8.5,-17.2 -6.7,-16.8 -5,-16.1 -3.6,-15.2 -2.4,-14 -1.4,-12.8 -0.8,-11.6 -0.3,-10.5 -0.1,-9.7 0,-9.2'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='%23ffd1e3'%3E%3Cpolygon points='0,-7.1 0,-7.2 0.1,-7.6 0.3,-8.3 0.6,-9.2 1.1,-10.1 1.9,-11.1 2.8,-12 4,-12.7 5.3,-13.3 6.7,-13.5 8.2,-13.5 9.7,-13.2 11.2,-12.5 12.4,-11.6 13.5,-10.5 14.3,-9.1 14.8,-7.7 15,-6.1 14.8,-4.6 14.3,-3 13.5,-1.5 12.4,0 11.2,1.4 9.7,2.8 8.2,4.1 6.7,5.4 5.3,6.6 4,7.8 2.8,9 1.9,10 1.1,11 0.6,11.9 0.3,12.6 0.1,13.1 0,13.4 0,13.5 0,13.4 -0.1,13.1 -0.3,12.6 -0.6,11.9 -1.1,11 -1.9,10 -2.8,9 -4,7.8 -5.3,6.6 -6.7,5.4 -8.2,4.1 -9.7,2.8 -11.2,1.4 -12.4,0 -13.5,-1.5 -14.3,-3 -14.8,-4.6 -15,-6.1 -14.8,-7.7 -14.3,-9.1 -13.5,-10.5 -12.4,-11.6 -11.2,-12.5 -9.7,-13.2 -8.2,-13.5 -6.7,-13.5 -5.3,-13.3 -4,-12.7 -2.8,-12 -1.9,-11.1 -1.1,-10.1 -0.6,-9.2 -0.3,-8.3 -0.1,-7.6 0,-7.2'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(48 48) rotate(-14)'/%3E%3Cuse href='%23d2' transform='translate(162 30) rotate(5)'/%3E%3Cuse href='%23d3' transform='translate(252 90) rotate(-4)'/%3E%3Cuse href='%23d1' transform='translate(90 150) rotate(-13)'/%3E%3Cuse href='%23d2' transform='translate(210 168) rotate(6)'/%3E%3Cuse href='%23d3' transform='translate(30 234) rotate(-3)'/%3E%3Cuse href='%23d1' transform='translate(138 258) rotate(-12)'/%3E%3Cuse href='%23d2' transform='translate(270 210) rotate(7)'/%3E%3C/svg%3E");
  --fx-a-size: 300px 300px;
  --fx-a-tile: 300px;
  --fx-a-dur: 26s;
  --fx-b-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='d1'%3E%3Cg fill='%23ffffff'%3E%3Cpolygon points='0,-9 1.8,-1.8 9,0 1.8,1.8 0,9 -1.8,1.8 -9,0 -1.8,-1.8'/%3E%3C/g%3E%3C/g%3E%3Cg id='d2'%3E%3Cg fill='%23ffe9a8'%3E%3Cpolygon points='0,-12 2.4,-2.4 12,0 2.4,2.4 0,12 -2.4,2.4 -12,0 -2.4,-2.4'/%3E%3C/g%3E%3C/g%3E%3Cg id='d3'%3E%3Cg fill='%23ffd6e7'%3E%3Cpolygon points='0,-15 3,-3 15,0 3,3 0,15 -3,3 -15,0 -3,-3'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23d1' transform='translate(24 30)'/%3E%3Cuse href='%23d2' transform='translate(78 72)'/%3E%3Cuse href='%23d3' transform='translate(132 24)'/%3E%3Cuse href='%23d1' transform='translate(186 66)'/%3E%3Cuse href='%23d2' transform='translate(246 30)'/%3E%3Cuse href='%23d3' transform='translate(282 90)'/%3E%3Cuse href='%23d1' transform='translate(48 138)'/%3E%3Cuse href='%23d2' transform='translate(108 174)'/%3E%3Cuse href='%23d3' transform='translate(168 132)'/%3E%3Cuse href='%23d1' transform='translate(228 180)'/%3E%3Cuse href='%23d2' transform='translate(270 216)'/%3E%3Cuse href='%23d3' transform='translate(72 240)'/%3E%3Cuse href='%23d1' transform='translate(156 264)'/%3E%3Cuse href='%23d2' transform='translate(216 282)'/%3E%3C/svg%3E");
  --fx-b-size: 300px 300px;
  --fx-b-tile: 300px;
  --fx-b-dur: 14s;
}
html[data-effect="beauty"] body::before {
  background-image: var(--fx-a-img);
  background-size: var(--fx-a-size);
  animation-name: hf-fx-a;
  animation-duration: var(--fx-a-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
html[data-effect="beauty"] body::after {
  background-image: var(--fx-b-img);
  background-size: var(--fx-b-size);
  opacity: 0.95;
  animation-name: hf-fx-b;
  animation-duration: var(--fx-b-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ==========================================================================
   Телефон. Плитка та же и число фигур то же; приглушается ближний слой,
   чтобы крупная частая фигура не мешала читать текст.

   ВАЖНО: селектор здесь не body::after, а html[data-effect] body::after.
   У правил выше (html[data-effect="autumn"] body::after) специфичность
   (0,1,3). У простого body::after — (0,0,2), то есть меньше, и медиазапрос
   молча проигрывал: на телефоне opacity оставалась 0.8 вместо 0.7. Именно
   это поймала проба в браузере с шириной 390 px. При равной специфичности
   (0,1,3) побеждает правило, стоящее позже, — а этот блок идёт последним.
   ========================================================================== */
@media (max-width: 600px) {
  html[data-effect] body::after {
    opacity: .7;
  }
}

/* ==========================================================================
   Кому движение мешает (настройка ОС, вестибулярные расстройства) —
   анимация выключается полностью. Фигуры остаются на месте.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}
