/* ZAMON — новогодний слой «Зимняя ночь» (образец 01.12.2026). Собирается build_ny.py из ny-rules.css.
   Только оформление главной и страниц игр /igra-*: цены, кнопки «Купить», способы получения и заказы не трогает.
   Всё включает атрибут data-ny-page на <html> — его ставит ny-ui.js с 1 декабря по 14 января.
   Гирлянда под шапкой и колпак на логотипе — псевдоэлементы: шапку сайт перерисовывает после загрузки. */
:root{
--ny-garland-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 44'%3E%3Cdefs%3E%3CradialGradient id='g0' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23FFF1BF'/%3E%3Cstop offset='.46' stop-color='%23FFC53D'/%3E%3Cstop offset='1' stop-color='%23B87700'/%3E%3C/radialGradient%3E%3CradialGradient id='g1' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23FFD3DA'/%3E%3Cstop offset='.46' stop-color='%23FF3B57'/%3E%3Cstop offset='1' stop-color='%23A0001C'/%3E%3C/radialGradient%3E%3CradialGradient id='g2' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23CBFFE4'/%3E%3Cstop offset='.46' stop-color='%2325D07B'/%3E%3Cstop offset='1' stop-color='%230A7A42'/%3E%3C/radialGradient%3E%3CradialGradient id='g3' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23D5ECFF'/%3E%3Cstop offset='.46' stop-color='%233BA2FF'/%3E%3Cstop offset='1' stop-color='%230B5BB2'/%3E%3C/radialGradient%3E%3CradialGradient id='g4' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23FFD8F1'/%3E%3Cstop offset='.46' stop-color='%23FF5CC2'/%3E%3Cstop offset='1' stop-color='%23A6146E'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M0 4Q75 36 150 4' fill='none' stroke='%2336513F' stroke-width='1.6'/%3E%3Cpath d='M0 5.5Q75 37.3 150 5.5' fill='none' stroke='%2336513F' stroke-width='.8' opacity='.55'/%3E%3Cg transform='rotate(13.2 15 9.8)'%3E%3Crect x='12.6' y='8.6' width='4.8' height='4.8' rx='1.1' fill='%238C7445'/%3E%3Cpath d='M12.7 13C9.1 16.2 9.6 22.6 15 27.4C20.4 22.6 20.9 16.2 17.3 13Z' fill='url(%23g0)'/%3E%3Cellipse cx='13.2' cy='18.4' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3Cg transform='rotate(6.8 45 17.4)'%3E%3Crect x='42.6' y='16.2' width='4.8' height='4.8' rx='1.1' fill='%238C7445'/%3E%3Cpath d='M42.7 20.6C39.1 23.8 39.6 30.2 45 35C50.4 30.2 50.9 23.8 47.3 20.6Z' fill='url(%23g1)'/%3E%3Cellipse cx='43.2' cy='26' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3Cg transform='rotate(0 75 20)'%3E%3Crect x='72.6' y='18.8' width='4.8' height='4.8' rx='1.1' fill='%238C7445'/%3E%3Cpath d='M72.7 23.2C69.1 26.4 69.6 32.8 75 37.6C80.4 32.8 80.9 26.4 77.3 23.2Z' fill='url(%23g2)'/%3E%3Cellipse cx='73.2' cy='28.6' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3Cg transform='rotate(-6.8 105 17.4)'%3E%3Crect x='102.6' y='16.2' width='4.8' height='4.8' rx='1.1' fill='%238C7445'/%3E%3Cpath d='M102.7 20.6C99.1 23.8 99.6 30.2 105 35C110.4 30.2 110.9 23.8 107.3 20.6Z' fill='url(%23g3)'/%3E%3Cellipse cx='103.2' cy='26' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3Cg transform='rotate(-13.2 135 9.8)'%3E%3Crect x='132.6' y='8.6' width='4.8' height='4.8' rx='1.1' fill='%238C7445'/%3E%3Cpath d='M132.7 13C129.1 16.2 129.6 22.6 135 27.4C140.4 22.6 140.9 16.2 137.3 13Z' fill='url(%23g4)'/%3E%3Cellipse cx='133.2' cy='18.4' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3C/svg%3E");
--ny-garland-dark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 44'%3E%3Cdefs%3E%3CradialGradient id='g0' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23FFF1BF'/%3E%3Cstop offset='.46' stop-color='%23FFC53D'/%3E%3Cstop offset='1' stop-color='%23B87700'/%3E%3C/radialGradient%3E%3CradialGradient id='g1' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23FFD3DA'/%3E%3Cstop offset='.46' stop-color='%23FF3B57'/%3E%3Cstop offset='1' stop-color='%23A0001C'/%3E%3C/radialGradient%3E%3CradialGradient id='g2' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23CBFFE4'/%3E%3Cstop offset='.46' stop-color='%2325D07B'/%3E%3Cstop offset='1' stop-color='%230A7A42'/%3E%3C/radialGradient%3E%3CradialGradient id='g3' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23D5ECFF'/%3E%3Cstop offset='.46' stop-color='%233BA2FF'/%3E%3Cstop offset='1' stop-color='%230B5BB2'/%3E%3C/radialGradient%3E%3CradialGradient id='g4' cx='.36' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23FFD8F1'/%3E%3Cstop offset='.46' stop-color='%23FF5CC2'/%3E%3Cstop offset='1' stop-color='%23A6146E'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M0 4Q75 36 150 4' fill='none' stroke='%2386A491' stroke-width='1.6'/%3E%3Cpath d='M0 5.5Q75 37.3 150 5.5' fill='none' stroke='%2386A491' stroke-width='.8' opacity='.55'/%3E%3Cg transform='rotate(13.2 15 9.8)'%3E%3Crect x='12.6' y='8.6' width='4.8' height='4.8' rx='1.1' fill='%23C9AE6E'/%3E%3Cpath d='M12.7 13C9.1 16.2 9.6 22.6 15 27.4C20.4 22.6 20.9 16.2 17.3 13Z' fill='url(%23g0)'/%3E%3Cellipse cx='13.2' cy='18.4' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3Cg transform='rotate(6.8 45 17.4)'%3E%3Crect x='42.6' y='16.2' width='4.8' height='4.8' rx='1.1' fill='%23C9AE6E'/%3E%3Cpath d='M42.7 20.6C39.1 23.8 39.6 30.2 45 35C50.4 30.2 50.9 23.8 47.3 20.6Z' fill='url(%23g1)'/%3E%3Cellipse cx='43.2' cy='26' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3Cg transform='rotate(0 75 20)'%3E%3Crect x='72.6' y='18.8' width='4.8' height='4.8' rx='1.1' fill='%23C9AE6E'/%3E%3Cpath d='M72.7 23.2C69.1 26.4 69.6 32.8 75 37.6C80.4 32.8 80.9 26.4 77.3 23.2Z' fill='url(%23g2)'/%3E%3Cellipse cx='73.2' cy='28.6' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3Cg transform='rotate(-6.8 105 17.4)'%3E%3Crect x='102.6' y='16.2' width='4.8' height='4.8' rx='1.1' fill='%23C9AE6E'/%3E%3Cpath d='M102.7 20.6C99.1 23.8 99.6 30.2 105 35C110.4 30.2 110.9 23.8 107.3 20.6Z' fill='url(%23g3)'/%3E%3Cellipse cx='103.2' cy='26' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3Cg transform='rotate(-13.2 135 9.8)'%3E%3Crect x='132.6' y='8.6' width='4.8' height='4.8' rx='1.1' fill='%23C9AE6E'/%3E%3Cpath d='M132.7 13C129.1 16.2 129.6 22.6 135 27.4C140.4 22.6 140.9 16.2 137.3 13Z' fill='url(%23g4)'/%3E%3Cellipse cx='133.2' cy='18.4' rx='1.1' ry='2.8' fill='%23fff' fill-opacity='.72'/%3E%3C/g%3E%3C/svg%3E");
--ny-glow-a:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 44'%3E%3Cdefs%3E%3CradialGradient id='h0'%3E%3Cstop offset='0' stop-color='%23FFC53D' stop-opacity='.95'/%3E%3Cstop offset='.42' stop-color='%23FFC53D' stop-opacity='.42'/%3E%3Cstop offset='1' stop-color='%23FFC53D' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='h2'%3E%3Cstop offset='0' stop-color='%2325D07B' stop-opacity='.95'/%3E%3Cstop offset='.42' stop-color='%2325D07B' stop-opacity='.42'/%3E%3Cstop offset='1' stop-color='%2325D07B' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='h4'%3E%3Cstop offset='0' stop-color='%23FF5CC2' stop-opacity='.95'/%3E%3Cstop offset='.42' stop-color='%23FF5CC2' stop-opacity='.42'/%3E%3Cstop offset='1' stop-color='%23FF5CC2' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12.6' cy='20' r='11.5' fill='url(%23h0)'/%3E%3Ccircle cx='75' cy='30.5' r='11.5' fill='url(%23h2)'/%3E%3Ccircle cx='137.4' cy='20' r='11.5' fill='url(%23h4)'/%3E%3C/svg%3E");
--ny-glow-b:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 44'%3E%3Cdefs%3E%3CradialGradient id='h1'%3E%3Cstop offset='0' stop-color='%23FF3B57' stop-opacity='.95'/%3E%3Cstop offset='.42' stop-color='%23FF3B57' stop-opacity='.42'/%3E%3Cstop offset='1' stop-color='%23FF3B57' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='h3'%3E%3Cstop offset='0' stop-color='%233BA2FF' stop-opacity='.95'/%3E%3Cstop offset='.42' stop-color='%233BA2FF' stop-opacity='.42'/%3E%3Cstop offset='1' stop-color='%233BA2FF' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='43.8' cy='27.9' r='11.5' fill='url(%23h1)'/%3E%3Ccircle cx='106.2' cy='27.9' r='11.5' fill='url(%23h3)'/%3E%3C/svg%3E");
--ny-hat:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 124'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23FF5B6B'/%3E%3Cstop offset='.5' stop-color='%23E3223D'/%3E%3Cstop offset='1' stop-color='%239E0E27'/%3E%3C/linearGradient%3E%3CradialGradient id='w' cx='.42' cy='.3' r='.85'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.62' stop-color='%23F4F6FD'/%3E%3Cstop offset='1' stop-color='%23CDD5EE'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M24 94C30 62 50 32 84 22C108 15 128 26 138 94Z' fill='url(%23r)'/%3E%3Cpath d='M84 22C64 19 46 29 34 47L44 55C54 40 70 33 94 33C93 28 90 24 84 22Z' fill='url(%23r)'/%3E%3Cpath d='M86 24C92 28 96 33 98 39' fill='none' stroke='%237E0A1F' stroke-width='3' stroke-linecap='round' opacity='.45'/%3E%3Cpath d='M44 88C50 66 62 48 82 36' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' opacity='.16'/%3E%3Cg fill='url(%23w)'%3E%3Crect x='12' y='86' width='136' height='28' rx='14'/%3E%3Ccircle cx='20' cy='88' r='8'/%3E%3Ccircle cx='34' cy='86' r='8.5'/%3E%3Ccircle cx='48' cy='87' r='8'/%3E%3Ccircle cx='62' cy='85' r='8.5'/%3E%3Ccircle cx='76' cy='86' r='8'/%3E%3Ccircle cx='90' cy='85' r='8.5'/%3E%3Ccircle cx='104' cy='86' r='8'/%3E%3Ccircle cx='118' cy='85' r='8.5'/%3E%3Ccircle cx='132' cy='87' r='8'/%3E%3Ccircle cx='142' cy='89' r='7'/%3E%3Ccircle cx='22' cy='112' r='7'/%3E%3Ccircle cx='38' cy='114' r='7.5'/%3E%3Ccircle cx='54' cy='113' r='7'/%3E%3Ccircle cx='70' cy='114' r='7.5'/%3E%3Ccircle cx='86' cy='113' r='7'/%3E%3Ccircle cx='102' cy='114' r='7.5'/%3E%3Ccircle cx='118' cy='113' r='7'/%3E%3Ccircle cx='134' cy='112' r='7'/%3E%3C/g%3E%3Cg fill='url(%23w)'%3E%3Ccircle cx='38' cy='56' r='14'/%3E%3Ccircle cx='26' cy='52' r='7'/%3E%3Ccircle cx='31' cy='44' r='7'/%3E%3Ccircle cx='43' cy='43' r='7'/%3E%3Ccircle cx='51' cy='51' r='7'/%3E%3Ccircle cx='50' cy='62' r='7'/%3E%3Ccircle cx='39' cy='69' r='7'/%3E%3Ccircle cx='27' cy='63' r='7'/%3E%3C/g%3E%3C/svg%3E");
--ny-bow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FF5A6E'/%3E%3Cstop offset='1' stop-color='%23C3102E'/%3E%3C/linearGradient%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23E8243F'/%3E%3Cstop offset='1' stop-color='%239C0B24'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M29 25L19 44L24 42L27 46L32 27Z' fill='url(%23t)'/%3E%3Cpath d='M35 25L45 44L40 42L37 46L32 27Z' fill='url(%23t)'/%3E%3Cpath d='M32 23C22 6 5 5 6 17C7 28 22 28 32 23Z' fill='url(%23b)'/%3E%3Cpath d='M32 23C42 6 59 5 58 17C57 28 42 28 32 23Z' fill='url(%23b)'/%3E%3Cpath d='M31 22C24 13 14 12 13 17C13 22 22 24 31 22Z' fill='%238E0A22' opacity='.5'/%3E%3Cpath d='M33 22C40 13 50 12 51 17C51 22 42 24 33 22Z' fill='%238E0A22' opacity='.5'/%3E%3Cpath d='M12 12C15 9 20 9 24 12' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' opacity='.45'/%3E%3Cpath d='M40 12C44 9 49 9 52 12' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' opacity='.3'/%3E%3Crect x='27' y='17' width='10' height='11' rx='3.5' fill='%23F23A52'/%3E%3Crect x='29' y='18.5' width='3' height='5' rx='1.5' fill='%23fff' opacity='.4'/%3E%3C/svg%3E");
--ny-icicles:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 24'%3E%3Cdefs%3E%3ClinearGradient id='i' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.96'/%3E%3Cstop offset='.55' stop-color='%23E3EEFF' stop-opacity='.78'/%3E%3Cstop offset='1' stop-color='%23B9D3FF' stop-opacity='.18'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23i)'%3E%3Cpath d='M1.8 0Q3.9 5 5 9Q6.1 5 8.2 0Z'/%3E%3Cpath d='M12.4 0Q14.1 8.2 15 15Q15.9 8.2 17.6 0Z'/%3E%3Cpath d='M21.4 0Q23.7 4.4 25 8Q26.3 4.4 28.6 0Z'/%3E%3Cpath d='M34 0Q36 10.5 37 19Q38 10.5 40 0Z'/%3E%3Cpath d='M46.6 0Q48.2 6.1 49 11Q49.8 6.1 51.4 0Z'/%3E%3Cpath d='M55.4 0Q57.7 3.9 59 7Q60.3 3.9 62.6 0Z'/%3E%3Cpath d='M68 0Q70 8.8 71 16Q72 8.8 74 0Z'/%3E%3Cpath d='M80.6 0Q82.2 5 83 9Q83.8 5 85.4 0Z'/%3E%3Cpath d='M89.4 0Q91.7 11.6 93 21Q94.3 11.6 96.6 0Z'/%3E%3Cpath d='M104.4 0Q106.1 5.5 107 10Q107.9 5.5 109.6 0Z'/%3E%3Cpath d='M114 0Q116 7.2 117 13Q118 7.2 120 0Z'/%3E%3Cpath d='M125.4 0Q127.7 3.9 129 7Q130.3 3.9 132.6 0Z'/%3E%3C/g%3E%3Cg stroke='%23fff' stroke-opacity='.85' stroke-width='.7' stroke-linecap='round'%3E%3Cpath d='M3.7 1.5L4.6 5.4'/%3E%3Cpath d='M14 1.5L14.7 9'/%3E%3Cpath d='M23.6 1.5L24.6 4.8'/%3E%3Cpath d='M35.8 1.5L36.6 11.4'/%3E%3Cpath d='M48 1.5L48.7 6.6'/%3E%3Cpath d='M57.6 1.5L58.6 4.2'/%3E%3Cpath d='M69.8 1.5L70.6 9.6'/%3E%3Cpath d='M82 1.5L82.7 5.4'/%3E%3Cpath d='M91.6 1.5L92.6 12.6'/%3E%3Cpath d='M106 1.5L106.7 6'/%3E%3Cpath d='M115.8 1.5L116.6 7.8'/%3E%3Cpath d='M127.6 1.5L128.6 4.2'/%3E%3C/g%3E%3C/svg%3E");
--ny-flakes:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cpath d='M84 46L84 16M84 29.5L78 22.8M84 29.5L90 22.8M84 22L80.4 18M84 22L87.6 18M84 46L110 31M98.3 37.8L101.1 29.2M98.3 37.8L107.1 39.6M104.8 34L106.5 28.9M104.8 34L110.1 35.1M84 46L110 61M98.3 54.2L107.1 52.4M98.3 54.2L101.1 62.8M104.8 58L110.1 56.9M104.8 58L106.5 63.1M84 46L84 76M84 62.5L90 69.2M84 62.5L78 69.2M84 70L87.6 74M84 70L80.4 74M84 46L58 61M69.7 54.3L66.9 62.8M69.7 54.3L60.9 52.4M63.2 58L61.5 63.1M63.2 58L57.9 56.9M84 46L58 31M69.7 37.8L60.9 39.6M69.7 37.8L66.9 29.2M63.2 34L57.9 35.1M63.2 34L61.5 28.9' stroke='%23fff' stroke-opacity='0.92' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M30 84L30 68M30 75.2L26.8 71.6M30 75.2L33.2 71.6M30 71.2L28.1 69.1M30 71.2L31.9 69.1M30 84L43.9 76M37.6 79.6L39.1 75M37.6 79.6L42.3 80.6M41.1 77.6L42 74.9M41.1 77.6L43.9 78.2M30 84L43.9 92M37.6 88.4L42.3 87.4M37.6 88.4L39.1 93M41.1 90.4L43.9 89.8M41.1 90.4L42 93.1M30 84L30 100M30 92.8L33.2 96.4M30 92.8L26.8 96.4M30 96.8L31.9 98.9M30 96.8L28.1 98.9M30 84L16.1 92M22.4 88.4L20.9 93M22.4 88.4L17.7 87.4M18.9 90.4L18 93.1M18.9 90.4L16.1 89.8M30 84L16.1 76M22.4 79.6L17.7 80.6M22.4 79.6L20.9 75M18.9 77.6L16.1 78.2M18.9 77.6L18 74.9' stroke='%23fff' stroke-opacity='0.78' stroke-width='1.9' stroke-linecap='round' fill='none'/%3E%3Cpath d='M118 104L118 93M118 98L115.8 95.5M118 98L120.2 95.5M118 95.2L116.7 93.7M118 95.2L119.3 93.7M118 104L127.5 98.5M123.2 101L124.3 97.8M123.2 101L126.5 101.7M125.6 99.6L126.2 97.7M125.6 99.6L127.6 100M118 104L127.5 109.5M123.2 107L126.5 106.3M123.2 107L124.3 110.2M125.6 108.4L127.6 108M125.6 108.4L126.2 110.3M118 104L118 115M118 110L120.2 112.5M118 110L115.8 112.5M118 112.8L119.3 114.3M118 112.8L116.7 114.3M118 104L108.5 109.5M112.8 107L111.7 110.2M112.8 107L109.5 106.3M110.4 108.4L109.8 110.3M110.4 108.4L108.4 108M118 104L108.5 98.5M112.8 101L109.5 101.7M112.8 101L111.7 97.8M110.4 99.6L108.4 100M110.4 99.6L109.8 97.7' stroke='%23fff' stroke-opacity='0.62' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3Cpath d='M44 20L44 12M44 15.6L42.4 13.8M44 15.6L45.6 13.8M44 13.6L43 12.5M44 13.6L45 12.5M44 20L50.9 16M47.8 17.8L48.6 15.5M47.8 17.8L50.2 18.3M49.5 16.8L50 15.4M49.5 16.8L51 17.1M44 20L50.9 24M47.8 22.2L50.2 21.7M47.8 22.2L48.6 24.5M49.5 23.2L51 22.9M49.5 23.2L50 24.6M44 20L44 28M44 24.4L45.6 26.2M44 24.4L42.4 26.2M44 26.4L45 27.5M44 26.4L43 27.5M44 20L37.1 24M40.2 22.2L39.4 24.5M40.2 22.2L37.8 21.7M38.5 23.2L38 24.6M38.5 23.2L37 22.9M44 20L37.1 16M40.2 17.8L37.8 18.3M40.2 17.8L39.4 15.5M38.5 16.8L37 17.1M38.5 16.8L38 15.4' stroke='%23fff' stroke-opacity='0.55' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
--ny-hills:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23E7ECFF'/%3E%3Cstop offset='1' stop-color='%23C3CDF0'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23E0E7FB'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 46C110 24 230 22 350 40S590 64 720 40 900 16 1000 34V100H0Z' fill='url(%23a)' opacity='.8'/%3E%3Cpath d='M0 70C140 52 290 56 430 68S700 84 830 68 950 56 1000 62V100H0Z' fill='url(%23b)'/%3E%3C/svg%3E");
--ny-paws:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='245' height='34' viewBox='0 0 245 34' fill='%238E9CD6' opacity='.55'%3E%3Cdefs%3E%3Cg id='p'%3E%3Cellipse cx='15' cy='21' rx='10' ry='6'/%3E%3Cellipse cx='2' cy='12' rx='4' ry='3' transform='rotate(28 2 12)'/%3E%3Cellipse cx='10' cy='7' rx='4' ry='3'/%3E%3Cellipse cx='20' cy='7' rx='4' ry='3'/%3E%3Cellipse cx='29' cy='12' rx='4' ry='3' transform='rotate(-28 29 12)'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23p' transform='translate(7 1) rotate(-11 15 17)'/%3E%3Cuse href='%23p' transform='translate(103 5) rotate(13 15 17)'/%3E%3Cuse href='%23p' transform='translate(204 0) rotate(-10 15 17)'/%3E%3C/svg%3E");
--ny-cap:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 16'%3E%3Cpath d='M0 11C8 5 18 3 27 7c9-5 23-6 33-1 10-4 22-3 30 2 10-5 24-6 32-2 10-5 24-3 30 1 8-4 20-3 28 4v5H0z' fill='%23fff'/%3E%3C/svg%3E");

  --ny-night-1:#0b0f30;
  --ny-night-2:#1b1752;
  --ny-night-3:#3a1a5c;
  --ny-aur-1:rgba(118,96,255,.5);
  --ny-aur-2:rgba(255,88,190,.28);
  --ny-aur-3:rgba(48,214,196,.2);
  --ny-on-night:#fff;
  --ny-on-night-2:#e2dcf8;
  --ny-on-night-3:#b9b0e0;
  --ny-sky:radial-gradient(95% 85% at 92% -14%,var(--ny-aur-1),transparent 62%),
    radial-gradient(70% 60% at 4% 2%,var(--ny-aur-3),transparent 64%),
    radial-gradient(85% 70% at 52% 120%,var(--ny-aur-2),transparent 68%),
    linear-gradient(168deg,var(--ny-night-2),var(--ny-night-1) 58%,var(--ny-night-3));
}

/* ===== Гирлянда под шапкой главной: провод с лампами + два слоя свечения, мигают по очереди ===== */
html[data-ny-page="home"] header.gnav::before,
html[data-ny-page="home"] header.gnav::after,
html[data-ny-page="home"] header.gnav .gnav-bar::after{
  content:"";position:absolute;left:0;right:0;top:100%;height:44px;pointer-events:none;
  background-repeat:repeat-x;background-size:150px 44px;background-position:-8px 0}
html[data-ny-page="home"] header.gnav::after{z-index:2;background-image:var(--ny-garland-light)}
html[data-ny-page="home"][data-theme="dark"] header.gnav::after{background-image:var(--ny-garland-dark)}
html[data-ny-page="home"] header.gnav::before{z-index:1;background-image:var(--ny-glow-a);animation:ny-blink 2.6s ease-in-out infinite}
html[data-ny-page="home"] header.gnav .gnav-bar::after{z-index:1;background-image:var(--ny-glow-b);animation:ny-blink 2.6s ease-in-out -1.3s infinite}
@keyframes ny-blink{0%,100%{opacity:1}50%{opacity:.1}}

/* ===== Колпак на еноте в логотипе ===== */
html[data-ny-page="home"] header.gnav .gnav-logo,html[data-ny-page="game"] header.zn .zn-logo{position:relative}
html[data-ny-page="home"] header.gnav .gnav-logo::after,html[data-ny-page="game"] header.zn .zn-logo::after{
  content:"";position:absolute;left:8px;top:-7px;width:27px;height:21px;pointer-events:none;
  background:var(--ny-hat) center/contain no-repeat;transform:rotate(-10deg);
  filter:drop-shadow(0 1px 1px rgba(40,20,50,.3))}
html[data-ny-page="game"] header.zn .zn-logo::after{left:8px;top:-5px;width:25px;height:19px}
html[data-ny-page="game"] header.zn .zn-logo:not(:has(img[src*="raccoon"]))::after{display:none}
@media (max-width:640px){html[data-ny-page="game"] header.zn .zn-logo::after{left:5px;top:-3px;width:21px;height:16px}}

/* ===== Главная: поиск и первый экран — зимняя ночь =====
   :not(#ny-x) добавляет правилам вес id: так они перекрывают оформление ГТА 6 (vice-ui.css) и тёмную тему. */
html[data-ny-page="home"]:not(#ny-x) #heroStatic .ou-search-banner,
html[data-ny-page="home"]:not(#ny-x) #heroStatic .hero-band{
  background:var(--ny-sky);border-color:rgba(255,255,255,.12);
  box-shadow:0 24px 48px -26px rgba(16,12,58,.7),inset 0 1px 0 rgba(255,255,255,.1)}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .ou-search-banner :is(label,small){color:var(--ny-on-night)}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .ou-search-banner p{color:var(--ny-on-night-3)}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .ou-search-banner .hs-search{border-color:rgba(255,255,255,.2)}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .hs-search .ou-search-examples button{
  background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);color:#fff;box-shadow:none}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .hs-search .ou-search-examples button:is(:hover,:focus-visible){
  background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.45);color:#fff}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .hero-band::before{
  background:radial-gradient(60% 46% at 50% 104%,rgba(255,170,225,.18),transparent 72%)}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .hero-band::after{
  background-image:var(--ny-paws);background-size:245px 34px;background-position:66% 72%}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .hero-copy h1{color:#fff;text-shadow:0 2px 18px rgba(8,6,40,.45)}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .hero-copy > p{color:var(--ny-on-night-2)}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .hero-ai-guide > summary{color:#fff;border-color:rgba(255,255,255,.28)}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .ou-art-column > h2,
html[data-ny-page="home"]:not(#ny-x) #heroStatic .ou-art-column > h2 a{color:#fff}
html[data-ny-page="home"]:not(#ny-x) #heroStatic .ou-art-entry > .ou-art-price-link{color:var(--ny-on-night-2)}

/* Колпак на большом еноте: место считает ny-ui.js по картинке енота (--ny-hat-x/y/w) */
html[data-ny-page="home"] #heroStatic .ou-art-controls::after{
  content:"";position:absolute;z-index:2;pointer-events:none;
  left:var(--ny-hat-x,0px);top:var(--ny-hat-y,0px);width:var(--ny-hat-w,0px);height:calc(var(--ny-hat-w,0px) * .775);
  background:var(--ny-hat) center/contain no-repeat;transform:rotate(-9deg);transform-origin:50% 82%;
  filter:drop-shadow(0 6px 8px rgba(6,4,32,.5))}

/* Снежная шапка и сосульки по верхнему краю */
.ny-cap{position:absolute;left:16px;right:16px;top:-8px;height:16px;pointer-events:none;z-index:3;
  background:var(--ny-cap) repeat-x 0 100%/180px 16px;filter:drop-shadow(0 1.5px 1.2px rgba(40,44,110,.35));
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent)}
.ny-ice{position:absolute;left:24px;right:24px;top:2px;height:27px;pointer-events:none;z-index:2;
  background:var(--ny-icicles) repeat-x 0 0/150px 27px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 30px,#000 calc(100% - 30px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 30px,#000 calc(100% - 30px),transparent)}
.ou-search-banner > .ny-ice{height:17px;background-size:108px 17px}
#gp-choose .gp-buy > .ny-cap{left:14px;right:14px;top:-7px;height:14px;background-size:150px 14px}

/* Звёзды и фейерверк — холст за содержимым первого экрана */
.ny-snowy{isolation:isolate}
.ny-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;border-radius:inherit}

/* Поздравление и отсчёт до Нового года. Пока ny-ui.js не вставил блок, место под него держит ::before
   (высота = заголовок × 1,06 + отсчёт), чтобы первый экран не сдвигался. */
html[data-ny-page="home"] #heroStatic .hero-copy:not(:has(> .ny-hello))::before{
  content:"";display:block;height:calc(clamp(30px,3.3vw,46px) * 1.06 + 70px);margin-bottom:24px}
html[data-ny-page]:not(#ny-x) .ny-hello{display:grid;justify-items:start;gap:14px;margin:0 0 24px;text-align:left}
html[data-ny-page]:not(#ny-x) .ny-hello__title{margin:0;font-size:clamp(30px,3.3vw,46px);font-weight:800;line-height:1.06;letter-spacing:-.015em;color:#ffd76a;
  background:linear-gradient(100deg,#f6b23e 0%,#ffe08a 22%,#fffbe8 32%,#ffd666 42%,#f2a334 64%,#ffe7a3 82%,#f6b23e 100%) 0 0/240% 100%;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 14px rgba(255,186,72,.38));animation:ny-foil 6s linear infinite}
@keyframes ny-foil{from{background-position:100% 0}to{background-position:-140% 0}}
html[data-ny-page]:not(#ny-x) .ny-hello__title b{font-weight:900}
html[data-ny-page]:not(#ny-x) .ny-count{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
html[data-ny-page]:not(#ny-x) .ny-count__lbl{margin-right:6px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ny-on-night-3)}
html[data-ny-page]:not(#ny-x) .ny-cell{display:grid;justify-items:center;align-content:center;min-width:56px;height:56px;padding:0 6px;box-sizing:border-box;border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 18px -10px rgba(0,0,0,.6)}
html[data-ny-page]:not(#ny-x) .ny-cell b{font-size:23px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;color:#fff}
html[data-ny-page]:not(#ny-x) .ny-cell i{margin-top:4px;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.02em;color:var(--ny-on-night-3)}
html[data-ny-page]:not(#ny-x) .ny-cell--sec b{color:#ffd36b}

/* Сугробы, следы и ёлка с подарками внизу первого экрана */
.ny-scene{position:absolute;left:0;right:0;bottom:0;height:96px;z-index:-1;pointer-events:none;border-radius:0 0 26px 26px;
  background:var(--ny-hills) 0 100%/100% 100% no-repeat}
.ny-tree{position:absolute;left:4px;bottom:4px;width:240px;height:172px;z-index:-1;pointer-events:none;filter:drop-shadow(0 0 18px rgba(255,214,120,.18))}
.ny-tree svg{display:block;width:100%;height:100%;overflow:visible}
.nyl-a,.nyl-b,.nyl-s{animation:ny-blink 1.9s ease-in-out infinite}
.nyl-b{animation-delay:-.95s}
.nyl-s{animation-duration:3.2s}

/* Снег по всей странице */
.ny-snowfall{position:fixed;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:998}

/* ===== Страница игры: гирлянда, иней и сугроб на обложке, поздравление, банты на карточках покупки ===== */
html[data-ny-page="game"] .zm-cover-stage > .logo{z-index:3}
.ny-garland{position:absolute;left:0;right:0;top:0;height:var(--ny-gh,44px);z-index:5;pointer-events:none}
.ny-garland > span{position:absolute;inset:0;background-repeat:repeat-x;background-size:var(--ny-gw,150px) var(--ny-gh,44px)}
.ny-garland__w{background-image:var(--ny-garland-dark)}
.ny-garland__a{background-image:var(--ny-glow-a);animation:ny-blink 2.6s ease-in-out infinite}
.ny-garland__b{background-image:var(--ny-glow-b);animation:ny-blink 2.6s ease-in-out -1.3s infinite}
.ny-frost{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:radial-gradient(38% 62% at 0 0,rgba(226,238,255,.36),transparent 72%),
    radial-gradient(38% 62% at 100% 0,rgba(226,238,255,.42),transparent 72%)}
.ny-frost::after{content:"";position:absolute;right:14px;top:38px;width:124px;height:124px;opacity:.92;
  background:var(--ny-flakes) center/contain no-repeat;filter:drop-shadow(0 0 6px rgba(160,200,255,.6))}
.ny-drift{position:absolute;left:0;right:0;bottom:0;height:54px;z-index:2;pointer-events:none;
  background:var(--ny-hills) 0 100%/100% 100% no-repeat}
html[data-ny-page]:not(#ny-x) .ny-badge{position:absolute;left:32px;top:54px;z-index:6;display:grid;gap:4px;max-width:calc(100% - 64px);padding:10px 15px 11px;border-radius:16px;
  background:rgba(14,10,40,.6);border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 12px 26px -8px rgba(0,0,0,.5);pointer-events:none}
html[data-ny-page]:not(#ny-x) .ny-badge .ny-hello__title{font-size:19px}
html[data-ny-page]:not(#ny-x) .ny-badge__line{margin:0;font-size:13px;font-weight:700;line-height:1.3;color:#fff;font-variant-numeric:tabular-nums}
html[data-ny-page]:not(#ny-x) .ny-badge__line span{font-weight:500;color:var(--ny-on-night-3)}
html[data-ny-page]:not(#ny-x) .ny-line{display:none;margin:0 0 12px;font-size:13px;font-weight:600;line-height:18px;color:var(--ny-line-muted)}
html[data-ny-page]:not(#ny-x) .ny-line__t{display:block;margin-bottom:2px;font-size:20px;font-weight:800;line-height:26px;letter-spacing:-.01em;color:var(--ny-line-gold)}
html[data-ny-page]:not(#ny-x) .ny-line__c b{color:var(--ny-line-ink);font-variant-numeric:tabular-nums}
html[data-ny-page="game"]{--ny-line-gold:#a8660b;--ny-line-ink:#2b2333;--ny-line-muted:#6e6080}
html[data-ny-page="game"][data-theme="dark"]{--ny-line-gold:#ffd36b;--ny-line-ink:#fff;--ny-line-muted:#b9b0e0}
.ny-bow{position:absolute;top:-16px;right:18px;width:46px;height:33px;z-index:5;pointer-events:none;
  background:var(--ny-bow) center/contain no-repeat;filter:drop-shadow(0 3px 3px rgba(0,0,0,.35))}

@media (max-width:980px){
  .ny-tree{display:none}
  .ny-scene{height:64px}
}
@media (max-width:640px){
  html[data-ny-page]:not(#ny-x) .ny-hello{gap:10px;margin-bottom:18px}
  html[data-ny-page]:not(#ny-x) .ny-hello__title{font-size:26px}
  html[data-ny-page]:not(#ny-x) .ny-count__lbl{flex-basis:100%;margin:0}
  html[data-ny-page]:not(#ny-x) .ny-cell{min-width:0;flex:1 1 0;height:52px}
  html[data-ny-page]:not(#ny-x) .ny-cell b{font-size:21px}
  .ny-garland{left:20px;right:20px;top:4px}
  .ny-frost::after{right:22px;top:46px;width:86px;height:86px}
  html[data-ny-page]:not(#ny-x) .ny-badge{display:none}
  html[data-ny-page]:not(#ny-x) .ny-line{display:block;order:30;margin:20px 16px -14px}
  html[data-ny-page="game"] .intro-main:not(:has(> .ny-line))::before{content:"";display:block;order:30;height:46px;margin:20px 16px -14px}
  html[data-ny-page="home"] #heroStatic .hero-copy:not(:has(> .ny-hello))::before{height:calc(26px * 1.06 + 86px);margin-bottom:18px}
  .ny-drift{height:34px}
}
@media (prefers-reduced-motion:reduce){
  html[data-ny-page="home"] header.gnav::before,html[data-ny-page="home"] header.gnav .gnav-bar::after,
  .ny-garland__a,.ny-garland__b,.nyl-a,.nyl-b,.nyl-s,html[data-ny-page]:not(#ny-x) .ny-hello__title{animation:none}
}
