/* 02.12.2026 (владелец: «сейчас зима — зимняя тема: иконка, снег на главном, весь интерфейс»): зимнее оформление.
   Всё — только при html.x-winter (включает winter.js: ?winter=1, выбор в «Оформлении» или зимний сезон, когда владелец решит).
   Ледяная кромка у карточек, иней в углу, снежные «шапки» сверху, морозная кнопка VPN, снег — отдельным слоем (winter.js). */
html.x-winter {
  --x-ice: rgba(196, 222, 255, .30);
  --x-ice-2: rgba(196, 222, 255, .55);
  --x-ice-glow: rgba(150, 200, 255, .28);
}
/* снег — под интерфейсом, над фоном-планетой; нажатия не перехватывает */
.x-snow, .x-frost { position: fixed; inset: 0; z-index: 1; pointer-events: none; }   /* над фоном-планетой (#x-bg, z 0) */
.x-snow { z-index: 2; }                                  /* снег — над синевой и инеем */
/* холодный оттенок ночи — поверх фона-планеты, под интерфейсом */
html.x-winter.x-wfull body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;   /* глубокая зимняя ночь, как у образца */
  background: radial-gradient(120% 70% at 50% 0%, rgba(60, 110, 190, .30), rgba(10, 25, 50, 0) 65%),
              linear-gradient(180deg, rgba(14, 28, 56, .78), rgba(10, 20, 40, .82) 60%, rgba(16, 30, 58, .80)); }
html.x-winter #app { position: relative; z-index: 3; }

/* ледяная кромка и холодный отсвет */
html.x-winter.x-wfull .x-card,
html.x-winter.x-wfull .x-vpn__loc,
html.x-winter.x-wfull .x-loc,
html.x-winter.x-wfull .x-li { border-color: var(--x-ice) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 22px -8px var(--x-ice-glow); }

/* иней в углу (папоротник) — едва заметный */
html.x-winter .x-vpn__loc,
html.x-winter .x-loc { position: relative; }
html.x-winter.x-wfull .x-loc::after,
html.x-winter.x-wfull .x-card:not(.x-vpn)::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 120px; height: 90px; pointer-events: none; opacity: .38; border-radius: inherit;
  background: no-repeat right bottom / 120px 90px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cg fill='none' stroke='%23dbeaff' stroke-width='.9' stroke-linecap='round'%3E%3Cpath d='M118 88 L70 52'/%3E%3Cpath d='M108 80 l-4 -10 M108 80 l-11 1 M99 73 l-3 -9 M99 73 l-10 1 M90 66 l-2 -8 M90 66 l-9 1 M81 59 l-2 -6 M81 59 l-7 1'/%3E%3Cpath d='M118 88 L96 40'/%3E%3Cpath d='M112 75 l-8 -5 M112 75 l3 -10 M107 64 l-7 -4 M107 64 l3 -9 M102 53 l-6 -3 M102 53 l2 -7'/%3E%3Cpath d='M118 88 L60 78'/%3E%3Cpath d='M104 86 l-7 -6 M104 86 l-7 5 M90 83 l-6 -5 M90 83 l-6 4 M76 81 l-5 -4 M76 81 l-5 3'/%3E%3C/g%3E%3C/svg%3E");
}
html.x-winter .x-card:not(.x-vpn) { position: relative; }

/* снежная шапка сверху карточек */
html.x-winter.x-wfull .x-vpn__loc::before,
html.x-winter.x-wfull .x-loc::before,
html.x-winter.x-wfull .x-card:not(.x-vpn)::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -7px; height: 14px; pointer-events: none; z-index: 2;
  background: repeat-x left top / 64px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 14'%3E%3Cpath fill='%23f4f8ff' d='M0 9 Q4 2 10 6 Q15 0 22 5 Q28 1 33 6 Q40 0 46 5 Q52 1 57 6 Q61 3 64 9 L64 14 L0 14Z'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
  border-radius: 8px 8px 0 0;
}

/* кнопка VPN — морозное кольцо, голубое свечение, когда защищено */
html.x-winter.x-wfull .x-vpn__btn { box-shadow: inset 0 0 0 1px var(--x-ice-2), inset 0 0 40px rgba(170, 210, 255, .10), 0 0 60px -10px var(--x-ice-glow); }
html.x-winter .x-vpn.is-on .x-vpn__btn { color: #eaf4ff; }
html.x-winter.x-wfull .x-vpn.is-on .x-vpn__btn::after { box-shadow: 0 0 0 10px rgba(170, 210, 255, .07), 0 0 70px 6px rgba(150, 200, 255, .30) !important; }

/* заголовки и полосы — чуть холоднее */
html.x-winter.x-wfull .x-vpn__state { text-shadow: 0 0 18px rgba(170, 210, 255, .35); }

@media (prefers-reduced-motion: reduce) { .x-snow { display: none; } }

/* черновик 1 (02.12): снег-картинка на кнопке и сосульки на карточках — выключены (только .x-wfull); на кнопке теперь winter-cap.js */
html.x-winter.x-wfull .x-vpn__btn::before { content: ""; position: absolute; left: -20px; top: -20px; width: calc(100% + 40px); height: calc(100% + 80px);
  pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
  background: no-repeat center top / 100% auto url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 290 330'%3E%3Cdefs%3E%3ClinearGradient id='i' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f2f8ff'/%3E%3Cstop offset='1' stop-color='%23a9cdf2' stop-opacity='.7'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.8' stop-color='%23eef5fc'/%3E%3Cstop offset='1' stop-color='%23cfe0f2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M29.3 83.5 L31.6 79.4 L34.1 75.3 L36.7 71.4 L39.4 67.5 L42.2 63.7 L45.2 60.1 L48.4 56.6 L51.6 53.1 L55.0 49.8 L58.5 46.6 L62.1 43.6 L65.8 40.7 L69.6 37.9 L73.5 35.2 L77.5 32.7 L81.6 30.4 L85.8 28.1 L90.1 26.1 L94.4 24.2 L98.8 22.4 L103.2 20.8 L107.7 19.4 L112.3 18.2 L116.9 17.1 L121.5 16.1 L126.2 15.4 L130.9 14.8 L135.6 14.3 L140.3 14.1 L145.0 14.0 L149.7 14.1 L154.4 14.3 L159.1 14.8 L163.8 15.4 L168.5 16.1 L173.1 17.1 L177.7 18.2 L182.3 19.4 L186.8 20.8 L191.2 22.4 L195.6 24.2 L199.9 26.1 L204.2 28.1 L208.4 30.4 L212.5 32.7 L216.5 35.2 L220.4 37.9 L224.2 40.7 L227.9 43.6 L231.5 46.6 L235.0 49.8 L238.4 53.1 L241.6 56.6 L244.8 60.1 L247.8 63.7 L250.6 67.5 L253.3 71.4 L255.9 75.3 L258.4 79.4 L260.7 83.5 L250.1 89.1 Q233.3 81.5 228.8 65.5 Q211.0 62.8 203.0 48.5 Q185.3 51.3 174.6 38.3 Q158.9 42.8 145.0 35.0 Q131.1 43.0 115.4 38.3 Q104.2 50.1 87.0 48.5 Q78.1 61.6 61.2 65.5 Q56.9 81.6 39.9 89.1 Z' fill='url%28%23s%29'/%3E%3Cpath d='M200.0 254.3 Q203.2 264.3 204.2 276.6 Q205.2 264.3 208.3 254.3Z' fill='url%28%23i%29'/%3E%3Cpath d='M180.5 262.8 Q182.9 270.5 183.9 279.8 Q184.9 270.5 187.4 262.8Z' fill='url%28%23i%29'/%3E%3Cpath d='M160.5 267.4 Q163.7 279.5 164.7 294.2 Q165.7 279.5 168.9 267.4Z' fill='url%28%23i%29'/%3E%3Cpath d='M141.9 269.0 Q144.0 279.3 145.0 291.9 Q146.0 279.3 148.1 269.0Z' fill='url%28%23i%29'/%3E%3Cpath d='M120.8 267.4 Q124.3 282.7 125.3 301.3 Q126.3 282.7 129.7 267.4Z' fill='url%28%23i%29'/%3E%3Cpath d='M102.1 262.8 Q105.1 273.0 106.1 285.4 Q107.1 273.0 110.0 262.8Z' fill='url%28%23i%29'/%3E%3Cpath d='M82.8 254.3 Q84.8 262.2 85.8 271.8 Q86.8 262.2 88.9 254.3Z' fill='url%28%23i%29'/%3E%3C/svg%3E"); }
/* сосульки по нижнему краю карточки локации и карточки паузы */
html.x-winter.x-wfull .x-vpn__loc::after, html.x-winter.x-wfull .x-vpn__pause::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -18px; height: 22px; pointer-events: none;
  background: repeat-x left top / 90px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 22'%3E%3Crect width='90' height='3' rx='1.5' fill='%23f4f8ff'/%3E%3Cpath d='M4.7 0 Q7.4 4.5 8.0 10.1 Q8.6 4.5 11.3 0Z' fill='%23e6f1ff' fill-opacity='.9'/%3E%3Cpath d='M19.6 0 Q22.4 5.3 23.0 11.8 Q23.6 5.3 26.4 0Z' fill='%23e6f1ff' fill-opacity='.9'/%3E%3Cpath d='M34.4 0 Q36.4 6.8 37.0 15.1 Q37.6 6.8 39.6 0Z' fill='%23e6f1ff' fill-opacity='.9'/%3E%3Cpath d='M48.2 0 Q51.4 3.2 52.0 7.2 Q52.6 3.2 55.8 0Z' fill='%23e6f1ff' fill-opacity='.9'/%3E%3Cpath d='M63.1 0 Q65.4 4.7 66.0 10.4 Q66.6 4.7 68.9 0Z' fill='%23e6f1ff' fill-opacity='.9'/%3E%3Cpath d='M77.8 0 Q80.4 9.0 81.0 19.9 Q81.6 9.0 84.2 0Z' fill='%23e6f1ff' fill-opacity='.9'/%3E%3C/svg%3E"); opacity: .95; }
html.x-winter .x-vpn__pause { position: relative; }
html.x-winter.x-wfull .x-vpn__pause::before { content: ""; position: absolute; left: 14px; right: 14px; top: -7px; height: 14px; pointer-events: none; z-index: 2;
  background: repeat-x left top / 64px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 14'%3E%3Cpath fill='%23f4f8ff' d='M0 9 Q4 2 10 6 Q15 0 22 5 Q28 1 33 6 Q40 0 46 5 Q52 1 57 6 Q61 3 64 9 L64 14 L0 14Z'/%3E%3C/svg%3E"); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
/* карточки — тёмно-синее стекло вместо графита; кнопка — синяя, как ночь */
html.x-winter.x-wfull .x-vpn__loc, html.x-winter.x-wfull .x-vpn .x-vpn__loc, html.x-winter.x-wfull .x-vpn__pause, html.x-winter.x-wfull .x-loc, html.x-winter.x-wfull .x-li { background: rgba(30, 50, 92, .62) !important; }   /* 02.12: фон — как был (владелец) */
html.x-winter.x-wfull .x-vpn__btn { background: radial-gradient(circle at 50% 35%, rgba(52, 76, 120, .75), rgba(20, 34, 64, .85) 70%) !important; }

/* 02.12, v2: снег на кнопке — векторный слой winter-cap.js (по геометрии кнопки, тянется с ней) */
html .x-vpn__btn > svg.x-wcap { position: absolute; left: -10%; top: -10%; width: 120% !important; height: 136% !important; max-width: none; pointer-events: none; z-index: 3; overflow: visible; }   /* сильнее правила «svg в кнопке — 96–112 px» (значок) */

/* 02.12: снег владельца на кнопке лежит под значком питания */
html.x-winter .x-vpn__btn > :not(.x-wown):not(.x-wown2) { position: relative; z-index: 3; }   /* значок — над снегом */
html.x-winter .x-vpn__btn::after { z-index: 0; }
/* 02.12: снежный знак владельца — внутри svg; свои контуры знака прозрачные (нужны анимации частиц), части двигаются как контуры */
html.x-winter .x-hello .x-mark svg.x-wlogo path { fill-opacity: 0; }
html.x-winter .x-hello .x-mark.is-snap .x-wl { animation: x-snap1 .8s cubic-bezier(.3, 0, .2, 1) both; }
html.x-winter .x-hello .x-mark.is-snap .x-wl2 { animation-delay: .12s; }
html.x-winter .x-hello .x-mark.is-snap .x-wl3 { animation-delay: .24s; }
/* 02.12: светлая тема — знак обычный (белый снежный знак на светлом фоне — плохо), снег на плашках и шапка кнопки остаются */
html.x-winter.x-light .x-hello .x-mark svg.x-wlogo path { fill-opacity: 1; }
html.x-winter.x-light .x-hello .x-mark .x-wl { display: none; }
/* 02.12: светлая тема — без слоя падающего снега: белые снежинки на светлом не видны, а слой поверх кнопки даёт квадратную «полосу» вокруг её тени */
/* (было: скрыт; 02.12 владелец — снег в светлой нужен: снежинки голубовато-серые, winter.js) */
/* 02.12: светлая тема — кнопка прозрачная, как в тёмной: свой белый фон и тени кнопки убраны, видны кольцо и стекло из картинки владельца */
html.x-winter.x-light .x-vpn__btn { background: radial-gradient(circle at 50% 38%, rgba(28, 27, 24, .05), rgba(28, 27, 24, .13)) !important; box-shadow: none !important; border-color: transparent !important; }   /* 02.12 (владелец): «кнопку серой немного» */
html.x-winter.x-light .x-vpn__btn::after { box-shadow: none !important; }
