/* Новый Год SH — Стили фронтенда v1.10.1 (Сказочный стиль, лёгкая GPU-анимация) */

.ngsh-layer {
	position: fixed;
	inset: 0;
	pointer-events: none !important;
	overflow: hidden;
	z-index: 9990;
}

.ngsh-doc-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	pointer-events: none !important;
	overflow: hidden;
	z-index: 9989;
}

.ngsh-layer *,
.ngsh-doc-layer * {
	pointer-events: none !important;
	box-sizing: border-box;
}

.ngsh-is-interactive {
	pointer-events: auto !important;
	cursor: pointer !important;
}

/* === Верхняя гирлянда === */
.ngsh-garland {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 44px;
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	z-index: 9995;
}

.ngsh-bulb-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 4px;
	transform-origin: top center;
	animation: ngsh-sway 3.6s ease-in-out infinite;
}

.ngsh-bulb-cap {
	width: 7px;
	height: 6px;
	background: linear-gradient(90deg, #1e293b, #475569, #1e293b);
	border-radius: 2px 2px 0 0;
}

.ngsh-bulb {
	width: 12px;
	height: 16px;
	border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
	animation: ngsh-twinkle 1.8s ease-in-out infinite alternate;
}

.ngsh-garland--classic .ngsh-bulb-wrap:nth-child(4n+1) .ngsh-bulb { background: radial-gradient(circle at 35% 30%, #ff9b96, #ff3b30 65%, #991b1b); box-shadow: 0 0 12px 3px rgba(255,59,48,.75); animation-delay: 0s; }
.ngsh-garland--classic .ngsh-bulb-wrap:nth-child(4n+2) .ngsh-bulb { background: radial-gradient(circle at 35% 30%, #fff3a1, #ffd60a 65%, #ca8a04); box-shadow: 0 0 12px 3px rgba(255,214,10,.75); animation-delay: .45s; }
.ngsh-garland--classic .ngsh-bulb-wrap:nth-child(4n+3) .ngsh-bulb { background: radial-gradient(circle at 35% 30%, #a7f3d0, #34c759 65%, #15803d); box-shadow: 0 0 12px 3px rgba(52,199,89,.75); animation-delay: .9s; }
.ngsh-garland--classic .ngsh-bulb-wrap:nth-child(4n+4) .ngsh-bulb { background: radial-gradient(circle at 35% 30%, #bfdbfe, #0a84ff 65%, #1d4ed8); box-shadow: 0 0 12px 3px rgba(10,132,255,.75); animation-delay: 1.35s; }

.ngsh-garland--warm .ngsh-bulb { background: radial-gradient(circle at 35% 30%, #fffbeb, #ffe082 65%, #d97706); box-shadow: 0 0 14px 4px rgba(255, 213, 79, .8); }
.ngsh-garland--warm .ngsh-bulb-wrap:nth-child(2n) .ngsh-bulb { background: radial-gradient(circle at 35% 30%, #fef3c7, #ffb300 65%, #b45309); animation-delay: .7s; }

.ngsh-garland--neon .ngsh-bulb-wrap:nth-child(3n+1) .ngsh-bulb { background: radial-gradient(circle at 35% 30%, #ffffff, #e0f7fa 65%, #06b6d4); box-shadow: 0 0 14px 4px rgba(128,222,234,.85); animation-delay: 0s; }
.ngsh-garland--neon .ngsh-bulb-wrap:nth-child(3n+2) .ngsh-bulb { background: radial-gradient(circle at 35% 30%, #e0f2fe, #4fc3f7 65%, #0284c7); box-shadow: 0 0 14px 4px rgba(79,195,247,.85); animation-delay: .6s; }
.ngsh-garland--neon .ngsh-bulb-wrap:nth-child(3n+3) .ngsh-bulb { background: radial-gradient(circle at 35% 30%, #ffffff, #b3e5fc 65%, #0369a1); box-shadow: 0 0 14px 4px rgba(179,229,252,.85); animation-delay: 1.2s; }

/* === Подвесные фонарики === */
.ngsh-lantern {
	position: fixed;
	top: 0;
	width: 52px;
	height: 104px;
	transform-origin: top center;
	animation: ngsh-lantern-swing 4.5s ease-in-out infinite;
	filter: drop-shadow(0 8px 14px rgba(255, 179, 0, 0.42));
}

.ngsh-lantern-glow { animation: ngsh-twinkle 2.2s ease-in-out infinite alternate; }

/* === Снег, сугробы и снежный островок === */
.ngsh-snowflake {
	position: fixed;
	top: -24px;
	color: #ffffff;
	text-shadow: 0 0 6px rgba(173, 216, 255, 0.9);
	user-select: none;
	will-change: transform, opacity;
	animation-name: ngsh-snowfall;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.ngsh-snowflake--soft {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: radial-gradient(circle, #ffffff 30%, rgba(255,255,255,0) 75%);
	box-shadow: 0 0 6px rgba(200, 230, 255, 0.7);
}

.ngsh-snowdrift {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 36px;
	opacity: 0.72;
}

.ngsh-snow-island {
	position: absolute;
	pointer-events: none !important;
	filter: drop-shadow(0 6px 14px rgba(148, 197, 240, 0.45));
}

/* === Следы и колея от саней === */
.ngsh-track {
	position: absolute;
	left: 0;
	top: 0;
	display:block;
	pointer-events:none !important;
	transform-origin:50% 50%;
	mix-blend-mode:multiply;
	filter:drop-shadow(0 1px 1px rgba(68,105,137,.22));
	will-change: opacity, transform;
	animation: ngsh-track-cover var(--ngsh-track-fade, 10s) ease-out forwards;
}
.ngsh-track svg { display:block; width:100%; height:100%; overflow:visible; }

@keyframes ngsh-track-cover {
	0%   { opacity: 0.84; }
	55%  { opacity: 0.52; }
	100% { opacity: 0; }
}

/* === Ёлки и живые персонажи === */
.ngsh-tree {
	position: absolute;
	transform-origin: bottom center;
	animation: ngsh-tree-breathe 5.5s ease-in-out infinite;
	filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}

.ngsh-tree-light {
	animation: ngsh-twinkle 1.6s ease-in-out infinite alternate;
}

.ngsh-actor {
	position: absolute;
	left: 0;
	top: 0;
	will-change: transform, opacity;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
	transition: opacity 0.5s ease;
}

.ngsh-actor-inner {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	transform-origin: center bottom;
}

.ngsh-actor--flip .ngsh-actor-inner {
	transform: scaleX(-1);
}

.ngsh-actor:not(.ngsh-is-moving) .ngsh-anim-walk,
.ngsh-actor:not(.ngsh-is-moving) .ngsh-anim-hop {
	animation: ngsh-hop 1.4s ease-in-out infinite;
}

.ngsh-actor.ngsh-is-moving .ngsh-anim-hop { animation: ngsh-hop 0.68s ease-in-out infinite; }
.ngsh-actor.ngsh-is-moving .ngsh-anim-walk { animation: ngsh-walk 0.85s ease-in-out infinite; }

.ngsh-actor.ngsh-is-moving .ngsh-leg-a,
.ngsh-sleigh-convoy .ngsh-leg-a {
	transform-box: fill-box;
	transform-origin: top center;
	animation: ngsh-stride-a 0.52s ease-in-out infinite alternate;
}

.ngsh-actor.ngsh-is-moving .ngsh-leg-b,
.ngsh-sleigh-convoy .ngsh-leg-b {
	transform-box: fill-box;
	transform-origin: top center;
	animation: ngsh-stride-b 0.52s ease-in-out infinite alternate;
}

/* Живые детали: моргание, шевеление ушек и хвостиков */
.ngsh-blink {
	transform-box: fill-box;
	transform-origin: center center;
	animation: ngsh-blink-anim 4.6s ease-in-out infinite;
}

.ngsh-ear-twitch {
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: ngsh-ear-anim 3.2s ease-in-out infinite;
}

.ngsh-tail-wag {
	transform-box: fill-box;
	transform-origin: left center;
	animation: ngsh-tail-anim 2.2s ease-in-out infinite alternate;
}

.ngsh-sleigh-convoy {
	position: fixed;
	left: 0;
	top: 0;
	will-change: transform, opacity;
	filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.ngsh-sleigh-inner {
	display: flex;
	align-items: flex-end;
	gap: 0px;
	animation: ngsh-glide 1.9s ease-in-out infinite;
}

.ngsh-sleigh-convoy--rtl .ngsh-sleigh-inner {
	transform: scaleX(-1);
}

/* === Карточка поздравления, таймер и кнопка гостя === */
.ngsh-widget {
	position: fixed;
	pointer-events: auto !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	z-index: 9998;
}

.ngsh-widget * { pointer-events: auto !important; }

.ngsh-greeting-card {
	max-width: 310px;
	background: linear-gradient(145deg, rgba(15, 61, 46, 0.95), rgba(24, 83, 62, 0.95));
	color: #ffffff;
	border: 1.5px solid rgba(255, 214, 10, 0.55);
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
	animation: ngsh-pop-in 0.45s ease-out;
}

.ngsh-greeting-card--bottom-left  { left: 18px; bottom: 20px; }
.ngsh-greeting-card--bottom-right { right: 18px; bottom: 20px; }
.ngsh-greeting-card--top-center   { left: 50%; top: 52px; transform: translateX(-50%); }

.ngsh-greeting-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ngsh-greeting-title { font-size: 14.5px; font-weight: 700; color: #ffd60a; line-height: 1.3; }

.ngsh-greeting-close {
	background: rgba(255,255,255,0.16);
	border: none;
	color: #fff;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 13px;
	line-height: 22px;
	text-align: center;
	padding: 0;
	flex-shrink: 0;
}
.ngsh-greeting-close:hover { background: rgba(255,255,255,0.3); }
.ngsh-greeting-text { font-size: 12.8px; line-height: 1.45; color: rgba(255, 255, 255, 0.94); }

.ngsh-countdown {
	background: rgba(15, 27, 48, 0.84);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #ffffff;
	border: 1px solid rgba(255, 214, 10, 0.52);
	border-radius: 14px;
	padding: 9px 14px;
	max-width: calc(100vw - 32px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	text-align: center;
	transition: opacity .35s ease, transform .35s ease;
}

.ngsh-countdown--top-right    { right: 18px; top: 140px; }
.ngsh-countdown--top-left     { left: 18px; top: 140px; }
.ngsh-countdown--bottom-right { right: 18px; bottom: 64px; }
.ngsh-countdown--bottom-left  { left: 18px; bottom: 64px; }

.ngsh-countdown-label { font-size: 11px; color: #ffd60a; font-weight: 600; margin-bottom: 3px; }
.ngsh-countdown-time { font-size: 14px; font-weight: 700; letter-spacing: 0.4px; font-variant-numeric: tabular-nums; }

.ngsh-visitor-toggle {
	right: 16px;
	bottom: 16px;
	background: rgba(15, 61, 46, 0.86);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.28);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.ngsh-visitor-toggle:hover { background: rgba(15, 61, 46, 1); }

.ngsh-shortcode-greeting {
	background: linear-gradient(135deg, #0f3d2e, #1b5e43);
	color: #fff;
	border-radius: 12px;
	padding: 18px 22px;
	border: 1px solid rgba(255, 214, 10, 0.45);
	margin: 14px 0;
}
.ngsh-shortcode-greeting__title { font-size: 18px; font-weight: 700; color: #ffd60a; margin-bottom: 6px; }

.ngsh-shortcode-countdown {
	display: inline-block;
	background: #14213d;
	color: #fff;
	padding: 10px 16px;
	border-radius: 10px;
	font-weight: 700;
	border: 1px solid rgba(255, 214, 10, 0.45);
}

.ngsh-spark {
	position: fixed;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	will-change: transform, opacity;
	animation: ngsh-spark-fly 0.85s ease-out forwards;
}

.ngsh-wish-toast {
	position: fixed;
	background: rgba(155, 34, 38, 0.94);
	color: #fff;
	padding: 7px 12px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(0,0,0,0.25);
	border: 1px solid rgba(255,214,10,0.6);
	animation: ngsh-toast-up 2.4s ease-out forwards;
	white-space: nowrap;
}

/* === Keyframes === */
@keyframes ngsh-twinkle { 0% { opacity: 0.5; transform: scale(0.92); } 100% { opacity: 1; transform: scale(1.08); } }
@keyframes ngsh-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes ngsh-lantern-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ngsh-tree-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@keyframes ngsh-idle-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.022); } }
@keyframes ngsh-hop { 0%, 100% { transform: translateY(0) rotate(0deg); } 45% { transform: translateY(-14px) rotate(4deg); } 75% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes ngsh-walk { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-4px) rotate(4.5deg); } }
@keyframes ngsh-stride-a { 0% { transform: rotate(-16deg); } 100% { transform: rotate(18deg); } }
@keyframes ngsh-stride-b { 0% { transform: rotate(18deg); } 100% { transform: rotate(-16deg); } }
@keyframes ngsh-glide { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-7px); } }
@keyframes ngsh-blink-anim { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes ngsh-ear-anim { 0%, 80%, 100% { transform: rotate(0deg); } 88% { transform: rotate(-8deg); } 94% { transform: rotate(5deg); } }
@keyframes ngsh-tail-anim { 0% { transform: rotate(-7deg); } 100% { transform: rotate(9deg); } }
@keyframes ngsh-snowfall { 0% { transform: translate3d(0, -10px, 0) rotate(0deg); opacity: 0; } 10% { opacity: 0.9; } 90% { opacity: 0.85; } 100% { transform: translate3d(var(--ngsh-drift, 30px), 105vh, 0) rotate(360deg); opacity: 0; } }
@keyframes ngsh-pop-in { 0% { opacity: 0; transform: translateY(12px) scale(0.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ngsh-spark-fly { 0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } 100% { opacity: 0; transform: translate3d(var(--sx, 30px), var(--sy, -30px), 0) scale(0.2); } }
@keyframes ngsh-toast-up { 0% { opacity: 0; transform: translate(-50%, 6px); } 15% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; transform: translate(-50%, -14px); } 100% { opacity: 0; transform: translate(-50%, -26px); } }

@media (prefers-reduced-motion: reduce) {
	.ngsh-bulb-wrap, .ngsh-bulb, .ngsh-lantern, .ngsh-tree, .ngsh-tree-light,
	.ngsh-anim-hop, .ngsh-anim-walk, .ngsh-leg-a, .ngsh-leg-b,
	.ngsh-blink, .ngsh-ear-twitch, .ngsh-tail-wag, .ngsh-animal-legs,
	.ngsh-sleigh-inner, .ngsh-snowflake, .ngsh-candle-halo, .ngsh-candle-flame { animation: none !important; }
}

/* === Сказочные WebP-спрайты === */
.ngsh-sprite-img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
}

/* === Хвойная гирлянда с игрушками и свечами сверху === */
.ngsh-pine-garland {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 104px;
	display: flex;
	align-items: flex-start;
	overflow: hidden;	
	filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28));
}

.ngsh-pine-swag {
	flex: 0 0 340px;
	height: 104px;
	position: relative;
}

.ngsh-candle-halo {
	transform-box: fill-box;
	transform-origin: center center;
	animation: ngsh-halo-pulse 1.9s ease-in-out infinite alternate;
}

.ngsh-candle-flame {
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: ngsh-flame-wind 1.4s ease-in-out infinite;
}

@keyframes ngsh-halo-pulse {
	0%   { opacity: 0.45; transform: scale(0.92); }
	50%  { opacity: 0.85; transform: scale(1.08); }
	100% { opacity: 0.58; transform: scale(0.98); }
}

@keyframes ngsh-flame-wind {
	0%   { transform: rotate(-6deg) scaleY(1); }
	25%  { transform: rotate(8deg) scaleY(1.08) skewX(-4deg); }
	50%  { transform: rotate(-3deg) scaleY(0.94) skewX(3deg); }
	75%  { transform: rotate(10deg) scaleY(1.05) skewX(-5deg); }
	100% { transform: rotate(-6deg) scaleY(1); }
}

/* === Сменяющиеся сказочные сценки === */
.ngsh-scene {
	position: absolute;
	pointer-events: none !important;
	transition: opacity 1.1s ease, transform 1.1s ease;
}

.ngsh-scene-stage {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.ngsh-scene-item {
	position: relative;
	margin: 0 -10px;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
}

.ngsh-scene-item--center {
	z-index: 2;
	margin: 0 -4px;
}

.ngsh-scene-item--hop {
	animation: ngsh-hop 0.85s ease-in-out infinite;
}

.ngsh-scene-item--sway {
	animation: ngsh-idle-breathe 3.2s ease-in-out infinite;
}

.ngsh-pine-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 104px;
	object-fit: cover;
	display: block;
}
.ngsh-pine-overlay {
	position: relative;
	z-index: 2;
	display: block;
}


/* 1.6.0 — сказочные фотоперсонажи и движение только вперёд */
.ngsh-actor-inner { gap: 3px; }
.ngsh-actor .ngsh-sprite-img,
.ngsh-sleigh-convoy .ngsh-sprite-img {
	filter: drop-shadow(0 5px 7px rgba(17, 24, 39, .2));
}
.ngsh-sleigh-inner { gap: 0; align-items: flex-end; animation: none; }
.ngsh-sleigh-unit {
	position: relative;
	flex: 0 0 auto;
	width: 142px;
	height: 104px;
	display: flex;
	align-items: flex-end;
}
.ngsh-sleigh-unit > img { width: 142px; height: auto; position: relative; z-index: 1; }
.ngsh-sleigh-riders {
	position: absolute;
	z-index: 2;
	left: 34%;
	bottom: 34%;
	display: flex;
	align-items: flex-end;
	gap: 0;
	filter: drop-shadow(0 3px 4px rgba(0,0,0,.18));
}
.ngsh-sleigh-riders img { width: 36px; max-height: 68px; object-fit: contain; }
.ngsh-sleigh-team {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 0;
	margin-left: -6px;
}
.ngsh-sleigh-team::before {
	content: "";
	position: absolute;
	left: -24px;
	bottom: 42%;
	width: 34px;
	height: 2px;
	background: #c59b57;
	box-shadow: 0 -5px 0 rgba(197,155,87,.9), 0 5px 0 rgba(197,155,87,.9);
	transform: rotate(-3deg);
	z-index: 1;
}
.ngsh-sleigh-team--deer img, .ngsh-sleigh-team--deer svg { width: 66px; height: auto; margin-left: -7px; overflow: visible; }
.ngsh-sleigh-team--horses img, .ngsh-sleigh-team--horses svg { width: 82px; height: auto; margin-left: -10px; overflow: visible; }
.ngsh-snow-island--tree { filter: drop-shadow(0 10px 14px rgba(148,197,240,.55)); }
@media (max-width: 767px) {
	.ngsh-pine-garland { height: 82px; }
	.ngsh-pine-swag { flex-basis: 280px; height: 82px; }
	.ngsh-pine-photo { height: 82px; }
	.ngsh-sleigh-unit { width: 112px; height: 82px; }
	.ngsh-sleigh-unit > img { width: 112px; }
	.ngsh-sleigh-riders img { width: 28px; max-height: 54px; }
	.ngsh-sleigh-team--deer img, .ngsh-sleigh-team--deer svg { width: 52px; }
	.ngsh-sleigh-team--horses img, .ngsh-sleigh-team--horses svg { width: 65px; }
}


/* 1.7.0 — независимые сказочные маршруты и гирлянда с боковыми спусками */
.ngsh-pine-garland { overflow: visible; }
.ngsh-pine-drop {
	position: absolute;
	top: 68px;
	width: 112px;
	min-height: 140px;
	pointer-events: none !important;
	overflow: visible;
	z-index: 4;
	filter: drop-shadow(0 4px 8px rgba(0,0,0,.24));
	transform-origin: top center;
	transition: rotate .24s ease-out, filter .6s ease;
	will-change: rotate;
}
.ngsh-pine-drop--left { left: 0; }
.ngsh-pine-drop--right { right: 0; left: auto; transform: scaleX(-1); transform-origin: top center; }
.ngsh-pine-drop-svg { display: block; width: 112px; height: 100%; overflow: visible; }
.ngsh-pine-drop__segment { position: absolute; left: 0; width: 92px; height: 340px; overflow: visible; }
.ngsh-pine-drop__segment img { position: absolute; display: block; left: 92px; top: 0; width: 340px; height: 92px; max-width: none; transform-origin: top left; transform: rotate(90deg); object-fit: fill; }
.ngsh-pine-drop__segment--first img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 76px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 76px, #000 100%); }
.ngsh-vertical-candle { position: absolute; z-index: 5; display: block; overflow: visible; filter: drop-shadow(0 1px 5px rgba(255,184,76,.5)); }
.ngsh-vertical-candle .ngsh-candle-halo { opacity: .76; animation: ngsh-halo-pulse 1.8s ease-in-out infinite alternate; }
.ngsh-vertical-candle .ngsh-candle-flame { transform-box: fill-box; transform-origin: center bottom; animation: ngsh-flame-wind 1.15s ease-in-out infinite; }

.ngsh-side-candle--upright { transform-box: fill-box; transform-origin: center center; }
.ngsh-side-candle--upright .ngsh-candle-flame { transform-box: fill-box; transform-origin: center bottom; }

.ngsh-actor--individual {
	transform-origin: center bottom;
	will-change: transform, opacity;
}
.ngsh-actor--individual .ngsh-actor-inner {
	width: 100%;
	height: 100%;
	align-items: flex-end;
	justify-content: center;
	gap: 0;
	transform-origin: center bottom;
}
.ngsh-actor--individual .ngsh-anim-walk,
.ngsh-actor--individual .ngsh-anim-hop,
.ngsh-actor--individual .ngsh-anim-fly {
	display: block;
	width: 100%;
	height: 100%;
	transform-origin: center bottom;
}
.ngsh-actor--individual.ngsh-is-moving .ngsh-anim-walk { animation: ngsh-walk 0.56s ease-in-out infinite; }
.ngsh-actor--individual.ngsh-is-moving .ngsh-anim-hop { animation: ngsh-hop 0.72s cubic-bezier(.42,0,.58,1) infinite; }
.ngsh-actor--individual.ngsh-is-moving .ngsh-anim-fly { animation: ngsh-flutter 0.42s ease-in-out infinite; }
.ngsh-actor--individual:not(.ngsh-is-moving) .ngsh-anim-walk { animation: ngsh-idle-breathe 2.8s ease-in-out infinite; }
.ngsh-actor--individual:not(.ngsh-is-moving) .ngsh-anim-hop { animation: ngsh-idle-breathe 2.4s ease-in-out infinite; }
.ngsh-actor--individual .ngsh-leg-a,
.ngsh-actor--individual .ngsh-leg-b {
	transform-box: fill-box;
	transform-origin: top center;
}
.ngsh-actor--individual.ngsh-is-moving .ngsh-leg-a { animation: ngsh-stride-a .34s ease-in-out infinite alternate; }
.ngsh-actor--individual.ngsh-is-moving .ngsh-leg-b { animation: ngsh-stride-b .34s ease-in-out infinite alternate; }
.ngsh-actor--individual .ngsh-tail-wag { transform-box: fill-box; transform-origin: left center; animation: ngsh-tail-anim 1.35s ease-in-out infinite alternate; }
.ngsh-actor--individual .ngsh-ear-twitch { transform-box: fill-box; transform-origin: bottom center; animation: ngsh-ear-anim 3s ease-in-out infinite; }
.ngsh-actor--individual .ngsh-blink { transform-box: fill-box; transform-origin: center; animation: ngsh-blink-anim 3.8s ease-in-out infinite; }
.ngsh-actor--flying .ngsh-wing-a { transform-box: fill-box; transform-origin: 100% 50%; animation: ngsh-wing-flap .28s ease-in-out infinite alternate; }
.ngsh-actor--flying .ngsh-wing-b { transform-box: fill-box; transform-origin: 0% 50%; animation: ngsh-wing-flap .28s ease-in-out infinite alternate-reverse; }
.ngsh-actor--flip .ngsh-actor-inner { transform: scaleX(-1); }

@keyframes ngsh-flutter { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes ngsh-wing-flap { 0% { transform: rotate(-12deg) scaleY(.86); } 100% { transform: rotate(22deg) scaleY(1.06); } }

@media (prefers-reduced-motion: reduce) {
	.ngsh-actor--individual *, .ngsh-pine-drop__strand { animation: none !important; }
}

/* Объёмные сказочные звери: отдельный слой мягкого тела и анимируемые лапы */
.ngsh-raster-figure {
	position: relative;
	display: block;
	flex: 0 0 auto;
	isolation: isolate;
	filter: drop-shadow(0 5px 7px rgba(17,24,39,.2));
}
.ngsh-raster-body {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	user-select: none;
	-webkit-user-drag: none;
}
.ngsh-raster-legs {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: visible;
	pointer-events: none;
}
.ngsh-raster-legs .ngsh-leg-a,
.ngsh-raster-legs .ngsh-leg-b {
	transform-box: fill-box;
	transform-origin: top center;
}

/* === 1.9.0 — провисающая и реагирующая на движение гирлянда === */
.ngsh-pine-garland {
	min-height: calc(104px + var(--ngsh-garland-sag, 48px));
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .30));
}
.ngsh-pine-swag {
	transition: rotate .26s ease-out, filter .6s ease;
	will-change: rotate;
}
.ngsh-pine-drop {
	transition: rotate .22s ease-out, filter .6s ease;
	will-change: rotate;
}
.ngsh-pine-drop--left { transform-origin: top left; }
.ngsh-pine-drop--right { transform-origin: top right; }
.ngsh-pine-drop__strand { transition: filter .6s ease; }
.ngsh-pine-corner { position:absolute; top:0; z-index:6; display:block; width:152px; height:152px; object-fit:contain; pointer-events:none !important; filter:drop-shadow(0 4px 8px rgba(0,0,0,.22)); }
.ngsh-pine-corner--left { left:0; }
.ngsh-pine-corner--right { right:0; }

/* Пушистые хлопья: мягкая объёмная кромка и несколько световых ореолов. */
.ngsh-snowflake--soft {
	border-radius: 50%;
	background: radial-gradient(circle at 34% 30%, #fff 0 18%, rgba(255,255,255,.96) 30%, rgba(235,247,255,.66) 53%, rgba(220,240,255,.08) 76%, transparent 82%);
	box-shadow: 0 0 5px 1px rgba(255,255,255,.78), 0 0 13px 3px rgba(204,229,255,.48), inset 0 0 4px rgba(255,255,255,.92);
	filter: blur(var(--ngsh-snow-blur, 1.5px));
}

/* Ночной режим: затемняется только страница, а декор остаётся над затемняющим слоем. */
.ngsh-idle-shade {
	position: fixed;
	inset: 0;
	z-index: 9988;
	pointer-events: none !important;
	background: rgba(5, 10, 24, var(--ngsh-idle-darkness, .58));
	opacity: 0;
	transition: opacity 1.4s ease, background 1.4s ease;
}
.ngsh-idle-shade--active { opacity: 1; }
html.ngsh-idle-stage2 .ngsh-idle-shade { background: rgba(5, 10, 24, var(--ngsh-idle-darkness-stage2, .58)); }
html.ngsh-idle-tree .ngsh-idle-shade { opacity:0; }
html.ngsh-idle-active .ngsh-idle-shade,html.ngsh-idle-stage2 .ngsh-idle-shade { opacity:1!important; }
.ngsh-tree-glow {
	position: absolute;
	pointer-events: none !important;
	border-radius: 50%;
	opacity: 0;
	background: radial-gradient(ellipse at 50% 48%, rgba(255, 202, 102, .42) 0%, rgba(255, 174, 70, .22) 31%, rgba(255, 191, 96, .10) 52%, transparent 73%);
	filter: blur(12px);
	transition: opacity 1.8s ease, filter 1.8s ease;
}
html.ngsh-idle-active .ngsh-tree-glow { opacity: 1; filter: blur(8px); }
html.ngsh-idle-active .ngsh-tree {
	filter: drop-shadow(0 0 11px rgba(255, 196, 92, .78)) drop-shadow(0 0 29px rgba(255, 176, 70, .48)) drop-shadow(0 10px 14px rgba(0,0,0,.22));
}
html.ngsh-idle-active .ngsh-pine-garland,
html.ngsh-idle-active .ngsh-pine-drop__strand {
	filter: drop-shadow(0 0 9px rgba(255, 194, 92, .65)) drop-shadow(0 4px 12px rgba(0,0,0,.2)) brightness(1.18);
}
html.ngsh-idle-active .ngsh-candle-halo {
	opacity: 1 !important;
	filter: brightness(1.5) drop-shadow(0 0 13px rgba(255, 173, 65, .95));
	animation-duration: 1.05s;
}
html.ngsh-idle-active .ngsh-candle-flame {
	filter: brightness(1.35) drop-shadow(0 0 8px rgba(255, 167, 62, .9));
}
html.ngsh-idle-active .ngsh-garland .ngsh-bulb { filter: brightness(1.45); }

@media (max-width: 767px) {
	.ngsh-pine-garland { min-height: calc(82px + min(var(--ngsh-garland-sag, 32px), 72px)); }
	.ngsh-tree-glow { filter: blur(9px); }
}

/* Центральная ёлка и двухступенчатое ночное освещение при простое. */
.ngsh-tree-scene-hidden {
	opacity: 0 !important;
	visibility: hidden;
	transition: opacity 1.5s ease, visibility 1.5s ease, filter 1.5s ease;
}
html.ngsh-idle-tree .ngsh-tree-scene-hidden,
html.ngsh-idle-active .ngsh-tree-scene-hidden,
html.ngsh-idle-stage2 .ngsh-tree-scene-hidden {
	opacity: 1 !important;
	visibility: visible;
}
html.ngsh-idle-stage2 .ngsh-tree-glow {
	opacity: 1 !important;
	filter: blur(3px) brightness(1.6);
	background: radial-gradient(ellipse at 50% 48%, rgba(255,225,150,.72) 0%, rgba(255,187,85,.34) 34%, rgba(255,176,70,.15) 57%, transparent 78%);
}
html.ngsh-idle-stage2 .ngsh-tree {
	filter: brightness(1.23) drop-shadow(0 0 18px rgba(255,218,132,.98)) drop-shadow(0 0 56px rgba(255,166,64,.82)) drop-shadow(0 12px 18px rgba(0,0,0,.24));
}
html.ngsh-idle-stage2 .ngsh-pine-garland,
html.ngsh-idle-stage2 .ngsh-pine-drop__strand {
	filter: brightness(1.38) drop-shadow(0 0 14px rgba(255,211,112,.95)) drop-shadow(0 5px 15px rgba(0,0,0,.25));
}
html.ngsh-idle-stage2 .ngsh-candle-halo {
	filter: brightness(1.9) drop-shadow(0 0 20px rgba(255,178,68,1));
	animation-duration: .72s;
}
html.ngsh-idle-stage2 .ngsh-candle-flame {
	filter: brightness(1.65) drop-shadow(0 0 13px rgba(255,171,59,1));
}
html.ngsh-idle-stage2 .ngsh-garland .ngsh-bulb { filter: brightness(1.75) drop-shadow(0 0 10px rgba(255,220,150,.8)); }

/* Животные получили единые прозрачные фотореалистичные сказочные спрайты; походка отличается по видам. */
.ngsh-actor--individual .ngsh-anim-walk,
.ngsh-actor--individual .ngsh-anim-hop,
.ngsh-actor--individual .ngsh-anim-fly {
	will-change: transform;
}
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--fox .ngsh-anim-walk { animation-duration: .48s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--squirrel .ngsh-anim-walk { animation-duration: .38s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--hedgehog .ngsh-anim-walk { animation-duration: .72s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--raccoon .ngsh-anim-walk { animation-duration: .58s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--badger .ngsh-anim-walk { animation-duration: .66s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--bearCub .ngsh-anim-walk { animation-duration: .8s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--reindeer .ngsh-anim-walk { animation-duration: .52s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--bunny .ngsh-anim-hop { animation-duration: .66s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--owl .ngsh-anim-fly { animation-duration: .31s; }
.ngsh-actor--individual.ngsh-actor--dedMoroz .ngsh-anim-walk,
.ngsh-actor--individual.ngsh-actor--snegurochka .ngsh-anim-walk { transform-origin: center bottom; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--dedMoroz .ngsh-anim-walk { animation-duration: .8s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--snegurochka .ngsh-anim-walk { animation-duration: .72s; }
.ngsh-actor--individual:not(.ngsh-is-moving) .ngsh-anim-walk,
.ngsh-actor--individual:not(.ngsh-is-moving) .ngsh-anim-hop { animation: ngsh-idle-breathe 2.8s ease-in-out infinite; }
.ngsh-actor--individual.ngsh-actor--bunny:not(.ngsh-is-moving) .ngsh-anim-hop { animation-duration: 2.2s; }
.ngsh-actor--individual.ngsh-actor--owl:not(.ngsh-is-moving) .ngsh-anim-fly { animation: ngsh-flutter 2.8s ease-in-out infinite; }

@media (max-width: 767px) {
	.ngsh-idle-shade { transition-duration: 1s; }
}

/* Отдельный нижний слой взят из того же исходного спрайта конкретного зверя. */
.ngsh-animated-animal {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	isolation: isolate;
}
.ngsh-animated-animal .ngsh-animal-body,
.ngsh-animated-animal .ngsh-animal-legs {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	pointer-events: none !important;
}
.ngsh-animated-animal .ngsh-animal-body { z-index: 1; }
.ngsh-animated-animal .ngsh-animal-legs {
	z-index: 2;
	transform-origin: 50% var(--ngsh-animal-pivot, 70%);
	animation: ngsh-lower-limb-step .56s ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes ngsh-lower-limb-step {
	0% { transform: rotate(-2.7deg) translateY(0); }
	100% { transform: rotate(3deg) translateY(1.7px); }
}
@keyframes ngsh-hare-limb-hop {
	0% { transform: rotate(-4deg) translateY(1px) scaleY(1); }
	42% { transform: rotate(6deg) translateY(-5px) scaleY(.94); }
	72% { transform: rotate(-1deg) translateY(2px) scaleY(1.05); }
	100% { transform: rotate(2deg) translateY(0) scaleY(1); }
}
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--fox .ngsh-animal-legs { animation-duration: .48s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--squirrel .ngsh-animal-legs { animation-duration: .38s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--hedgehog .ngsh-animal-legs { animation-duration: .72s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--raccoon .ngsh-animal-legs { animation-duration: .58s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--badger .ngsh-animal-legs { animation-duration: .66s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--bearCub .ngsh-animal-legs { animation-duration: .8s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--reindeer .ngsh-animal-legs { animation-duration: .52s; }
.ngsh-actor--individual.ngsh-is-moving.ngsh-actor--bunny .ngsh-animal-legs { animation: ngsh-hare-limb-hop .66s ease-in-out infinite; }
.ngsh-actor--individual:not(.ngsh-is-moving) .ngsh-animal-legs { animation: none !important; transform: none; }


/* 1.11.0 — плавные углы гирлянды, вертикальные ветви и staged idle animation */
.ngsh-pine-drop-svg { overflow: visible; }
.ngsh-pine-drop .ngsh-candle-halo { opacity: .72; }
.ngsh-pine-drop .ngsh-candle-flame { animation: ngsh-flame-wind 1.18s ease-in-out infinite; }
.ngsh-actor--individual { transition: opacity .8s ease; }
@media (max-width: 767px) {
  .ngsh-pine-corner { width:136px; height:136px; }
  .ngsh-pine-drop { width: 92px; }
  .ngsh-pine-drop-svg { width: 92px; }
  .ngsh-pine-drop__segment { width: 82px; }
  .ngsh-pine-drop__segment img { left: 82px; width: 304px; height: 82px; }
  .ngsh-pine-drop__segment--first img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 68px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 68px, #000 100%); }
}


/* Доступность и экономия ресурсов: уважение системного prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  html.ngsh-reduced-motion *, html.ngsh-reduced-motion *::before, html.ngsh-reduced-motion *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
html.ngsh-page-hidden .ngsh-snowflake, html.ngsh-page-hidden .ngsh-candle-flame, html.ngsh-page-hidden .ngsh-candle-halo, html.ngsh-page-hidden .ngsh-actor--individual *, html.ngsh-page-hidden .ngsh-pine-swag, html.ngsh-page-hidden .ngsh-vertical-candle { animation-play-state: paused !important; }


/* 1.11.2 — цельная U-образная гирлянда одним изображением без стыков и повёрнутых фрагментов. */
.ngsh-pine-garland.ngsh-pine-garland--unified {
	position: fixed;
	left: 0;
	right: 0;
	width: auto;
	min-height: 100vh;
	height: 100vh;
	display: block;
	padding: 0;
	overflow: visible;
	pointer-events: none !important;
	filter: drop-shadow(0 6px 12px rgba(0,0,0,.28));
}
.ngsh-pine-frame {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: fill;
	object-position: top left;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none !important;
	transition: transform .28s ease-out, filter .6s ease;
	transform-origin: top center;
	will-change: transform;
}
html.ngsh-idle-active .ngsh-pine-frame { filter: brightness(1.18) drop-shadow(0 0 12px rgba(255,190,90,.55)); }
html.ngsh-idle-stage2 .ngsh-pine-frame { filter: brightness(1.34) drop-shadow(0 0 18px rgba(255,194,104,.82)); }
@media (max-width: 767px) {
	.ngsh-pine-garland.ngsh-pine-garland--unified { min-height: 100vh; }
	.ngsh-pine-frame { object-fit: fill; }
}

/* Бенгальские огни сняты с гирлянды в 1.12.2 по запросу. */

/* Свечи остаются с читаемым пламенем даже при максимальном ночном свечении. */
html.ngsh-idle-active .ngsh-candle-halo {
	opacity: .82 !important;
	filter: brightness(1.12) drop-shadow(0 0 8px rgba(255, 173, 65, .68));
	animation-duration: 1.35s;
}
html.ngsh-idle-active .ngsh-candle-flame {
	filter: brightness(1.12) drop-shadow(0 0 5px rgba(255, 167, 62, .62));
}
html.ngsh-idle-stage2 .ngsh-candle-halo {
	opacity: .88 !important;
	filter: brightness(1.22) drop-shadow(0 0 11px rgba(255, 178, 68, .76));
	animation-duration: 1.05s;
}
html.ngsh-idle-stage2 .ngsh-candle-flame {
	filter: brightness(1.18) drop-shadow(0 0 6px rgba(255, 171, 59, .72));
}

/* 1.11.3 — не пересвечивать свечи внутри U-образного изображения при двух ступенях ночного режима. */
html.ngsh-idle-active .ngsh-pine-garland.ngsh-pine-garland--unified {
	filter: drop-shadow(0 0 8px rgba(255, 194, 92, .42)) drop-shadow(0 4px 10px rgba(0,0,0,.20));
}
html.ngsh-idle-stage2 .ngsh-pine-garland.ngsh-pine-garland--unified {
	filter: drop-shadow(0 0 12px rgba(255, 211, 112, .60)) drop-shadow(0 5px 12px rgba(0,0,0,.22));
}
html.ngsh-idle-active .ngsh-pine-garland--unified .ngsh-pine-frame {
	filter: brightness(1.05) saturate(1.04) drop-shadow(0 0 7px rgba(255,190,90,.32));
}
html.ngsh-idle-stage2 .ngsh-pine-garland--unified .ngsh-pine-frame {
	filter: brightness(1.10) saturate(1.06) drop-shadow(0 0 10px rgba(255,194,104,.42));
}


/* 1.12.0 — показ гирлянды после простоя и холодные фонтаны внизу сцены. */
.ngsh-pine-garland--delayed { opacity:0; visibility:hidden; transition:opacity .8s ease, visibility .8s ease; }
.ngsh-pine-garland--delayed.ngsh-pine-garland--visible { opacity:1; visibility:visible; }
.ngsh-cold-fountains { position:absolute;left:0;right:0;bottom:0;width:100%;height:clamp(150px,30vh,280px);z-index:90;pointer-events:none!important;overflow:hidden;padding-bottom:env(safe-area-inset-bottom,0px);opacity:1;transform:translateY(0);transition:opacity 1.25s ease,transform 1.25s ease; }
.ngsh-cold-fountains--warming {opacity:0;transform:translateY(18px);}
.ngsh-cold-fountain { position:absolute;bottom:0;width:10px;height:20px;transform:translateX(-50%);border-radius:50% 50% 2px 2px;background:linear-gradient(180deg,#fffef0 0%,#ffd166 45%,#f97316 80%,#475569 100%);box-shadow:0 0 18px 4px rgba(255,200,80,.82);}
.ngsh-cold-fountain:before { content:"";position:absolute;left:50%;bottom:6px;width:calc(68px * var(--ngsh-fountain-intensity,1));height:calc(195px * var(--ngsh-fountain-intensity,1));transform:translateX(-50%);background:radial-gradient(ellipse at 50% 100%,rgba(255,245,195,.75) 0%,rgba(255,190,70,.38) 38%,rgba(249,115,22,.12) 68%,transparent 85%);filter:blur(5px);}
.ngsh-cold-fountain i { position:absolute;left:50%;bottom:8px;width:4px;height:4px;border-radius:50%;background:#fffdf0;box-shadow:0 0 7px 2px rgba(255,240,160,1),0 0 14px 4px rgba(255,145,40,.78);animation:ngsh-cold-fountain-spark 1.25s ease-out infinite;}
.ngsh-cold-fountain i:nth-child(3n) { width:3px;height:7px;border-radius:4px;background:#ffe066; }
@keyframes ngsh-cold-fountain-spark { 0%{transform:translate(0,0) scale(.35);opacity:0}10%{opacity:1}100%{transform:translate(var(--ngsh-fx),var(--ngsh-fy)) scale(.05);opacity:0} }
html.ngsh-idle-stage2 .ngsh-cold-fountains { filter:drop-shadow(0 0 13px rgba(178,220,255,.58));}
.ngsh-greeting-card--custom { left:4%;top:94%;right:auto;bottom:auto;transform:translate(0,-100%);max-width:min(420px,88vw);max-height:calc(100vh - 32px);overflow:auto;transition:opacity .65s ease,visibility .65s ease,transform .65s ease,left .65s ease,top .65s ease;}
/* greeting visible before idle stages start */
.ngsh-greeting-card--custom.ngsh-greeting-card--idle-intro {left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
@media (prefers-reduced-motion:reduce) { .ngsh-cold-fountain i { animation:none!important;opacity:.5; } .ngsh-cold-fountains {transition:none;} }

/* 1.12.0 — динамические свечи: количество задаётся отдельно для верхней части и двух спусков. */
.ngsh-candle-cleaner {position:absolute;z-index:5;display:block;border-radius:42%;background-repeat:no-repeat;filter:saturate(1.04);pointer-events:none!important;}
.ngsh-dynamic-candle {position:absolute;z-index:6;width:14px;height:34px;transform:translate(-50%,-50%);pointer-events:none!important;}
.ngsh-dynamic-candle__body {position:absolute;left:50%;bottom:0;width:9px;height:25px;transform:translateX(-50%);border-radius:3px 3px 2px 2px;background:linear-gradient(90deg,#b9a47a 0%,#fff9df 22%,#fffef0 56%,#cdbb91 100%);box-shadow:0 1px 3px rgba(0,0,0,.26),inset 0 0 3px rgba(255,255,255,.9);}
.ngsh-dynamic-candle__body:after {content:"";position:absolute;left:50%;top:-2px;width:2px;height:4px;transform:translateX(-50%);background:#4b3320;border-radius:2px;}
.ngsh-dynamic-candle__halo {position:absolute;left:50%;top:-12px;width:32px;height:34px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,rgba(255,214,130,.5),rgba(255,173,70,.17) 42%,transparent 74%);filter:blur(3px);animation:ngsh-dynamic-flame-glow 1.45s ease-in-out infinite alternate;}
.ngsh-dynamic-candle__flame {position:absolute;left:50%;top:-11px;width:7px;height:12px;transform:translateX(-50%);transform-origin:50% 100%;border-radius:55% 45% 54% 46% / 68% 68% 32% 32%;background:radial-gradient(ellipse at 48% 68%,#fffde6 0 22%,#ffe18b 44%,#ff9b30 76%,rgba(241,83,15,0) 100%);filter:drop-shadow(0 0 4px rgba(255,184,75,.9));animation:ngsh-dynamic-flame-waver .72s ease-in-out infinite alternate;}
@keyframes ngsh-dynamic-flame-waver {to{transform:translateX(-50%) rotate(7deg) scale(.88,1.08)}}
@keyframes ngsh-dynamic-flame-glow {to{opacity:.65;transform:translateX(-50%) scale(.86,1.12)}}

/* 1.12.0 — Дед Мороз оставляет мешок у основания ёлки. */
.ngsh-gift-sack { position:absolute; width:34px; height:38px; border-radius:45% 48% 42% 42%; background:radial-gradient(ellipse at 32% 24%,#e44b50 0,#a41626 54%,#650b18 100%); border:2px solid #5b1118; box-shadow:inset 3px 0 5px rgba(255,220,160,.28),0 5px 8px rgba(0,0,0,.28); transform:rotate(-8deg); pointer-events:none!important; }
.ngsh-gift-sack:before { content:""; position:absolute; left:7px; top:-5px; width:18px; height:9px; border-radius:45% 45% 35% 35%; background:#9b1827; border:1px solid #5b1118; }
.ngsh-gift-sack__knot { position:absolute; left:14px; top:-7px; width:7px; height:8px; border-radius:50%; background:#edc75d; }
.ngsh-gift-sack__ribbon { position:absolute; left:4px; top:12px; width:25px; height:4px; background:#f0c75e; transform:rotate(22deg); box-shadow:0 0 2px rgba(255,232,160,.8); }
.ngsh-gift-sack__gift { position:absolute; right:-3px; bottom:4px; width:12px; height:12px; border:1px solid #e9c15a; background:linear-gradient(90deg,#2c9c68 0 42%,#f8d66b 42% 58%,#2c9c68 58%); box-shadow:0 2px 4px rgba(0,0,0,.25); }
.ngsh-actor--dedMoroz .ngsh-ded-bag-carried { transition:opacity .55s ease; }
.ngsh-actor--dedMoroz.ngsh-ded-moroz-has-left-gifts .ngsh-ded-bag-carried { opacity:0; }

.ngsh-pine-top-strip { position:absolute;top:0;left:0;right:0;height:var(--ngsh-garland-t,84px);background-repeat:repeat-x;background-position:top center;background-size:auto var(--ngsh-garland-t,84px);filter:drop-shadow(0 6px 12px rgba(0,0,0,.28)) contrast(1.04) saturate(1.06);image-rendering:-webkit-optimize-contrast;z-index:3;pointer-events:none!important; }
.ngsh-pine-left-strip { position:absolute;top:0;left:0;width:var(--ngsh-garland-t,84px);height:100%;background-repeat:repeat-y;background-position:top left;background-size:var(--ngsh-garland-t,84px) auto;filter:drop-shadow(5px 4px 12px rgba(0,0,0,.26)) contrast(1.04) saturate(1.06);image-rendering:-webkit-optimize-contrast;z-index:2;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 90%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 90%,transparent 100%);pointer-events:none!important; }
.ngsh-pine-right-strip { position:absolute;top:0;right:0;width:var(--ngsh-garland-t,84px);height:100%;background-repeat:repeat-y;background-position:top right;background-size:var(--ngsh-garland-t,84px) auto;filter:drop-shadow(-5px 4px 12px rgba(0,0,0,.26)) contrast(1.04) saturate(1.06);image-rendering:-webkit-optimize-contrast;z-index:2;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 90%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 90%,transparent 100%);pointer-events:none!important; }

/* === 2.0.3: Точная цепочка стадий простоя и единая П-образная гирлянда === */
.ngsh-pine-top-strip { border-radius: 0 0 18px 18px; }
.ngsh-pine-left-strip { border-top-left-radius: 26px; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }
.ngsh-pine-right-strip { border-top-right-radius: 26px; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }

/* До наступления +3с после простоя гирлянда и поздравление скрыты */
html.ngsh-idle-sequenced .ngsh-pine-garland { opacity:0; visibility:hidden; transition:opacity .9s ease, visibility .9s ease; }
html.ngsh-idle-sequenced .ngsh-greeting-card--custom { opacity:0; visibility:hidden; pointer-events:none; transition:opacity .65s ease, visibility .65s ease; }

/* Фаза +3с: появляется гирлянда и поздравление */
html.ngsh-idle-greeting .ngsh-pine-garland,
html.ngsh-idle-tree .ngsh-pine-garland,
html.ngsh-idle-active .ngsh-pine-garland,
html.ngsh-idle-stage2 .ngsh-pine-garland { opacity:1; visibility:visible; }
/* Поздравление появляется вместе с гирляндой и автоматически пропадает по таймеру (по умолчанию 10с) */
html.ngsh-idle-sequenced .ngsh-greeting-card--custom.ngsh-greeting-card--idle-intro { opacity:1!important; visibility:visible!important; pointer-events:auto!important; }

/* Свечи на гирлянде */
html.ngsh-idle-sequenced .ngsh-dynamic-candle__halo,
html.ngsh-idle-sequenced .ngsh-dynamic-candle__flame { opacity:0.08; transition:opacity .8s ease, transform .8s ease, filter .8s ease; }
html.ngsh-idle-active .ngsh-dynamic-candle__halo,
html.ngsh-idle-active .ngsh-dynamic-candle__flame { opacity:0.9; }
html.ngsh-idle-stage2 .ngsh-dynamic-candle__halo { opacity:1; transform:translateX(-50%) scale(1.38); filter:blur(4px) brightness(1.3); }
html.ngsh-idle-stage2 .ngsh-dynamic-candle__flame { opacity:1; filter:drop-shadow(0 0 8px rgba(255,210,100,1)); }

/* Ёлка: ярче в фазе +10с */
html.ngsh-idle-stage2 .ngsh-tree-glow { opacity:1; transform:scale(1.18); filter:brightness(1.4); transition:all 1.1s ease; }
html.ngsh-idle-stage2 .ngsh-tree--photo { filter:drop-shadow(0 0 24px rgba(255,220,130,.6)); }

/* Салют в углах (отключаемый) */
.ngsh-corner-fireworks { position:fixed; inset:0; pointer-events:none!important; z-index:9996; overflow:hidden; }
.ngsh-corner-burst { position:absolute; width:1px; height:1px; }
.ngsh-corner-spark { position:absolute; left:0; top:0; width:4.5px; height:4.5px; border-radius:50%; animation:ngsh-corner-burst-anim 1.35s cubic-bezier(.16,.8,.3,1) forwards; }
@keyframes ngsh-corner-burst-anim { 0%{transform:translate(0,0) scale(.35);opacity:1} 75%{opacity:1} 100%{transform:translate(var(--fx),var(--fy)) scale(.12);opacity:0} }

/* === 2.0.4: Ёлка на переднем плане — герои за ёлкой скрываются === */
.ngsh-actor { transition: opacity .26s ease, visibility .26s ease; }
.ngsh-actor.ngsh-actor--behind-tree { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* === 2.0.5: Гарантированная видимость таймера обратного отсчёта === */
.ngsh-countdown { display: block !important; opacity: 1 !important; visibility: visible !important; }

/* === 2.0.6: Объёмная пушистая гирлянда со скруглёнными краями === */
.ngsh-pine-top-strip {
	border-radius: 0 0 32px 32px;
	filter: drop-shadow(0 8px 16px rgba(0,0,0,.38)) drop-shadow(0 2px 6px rgba(10,40,24,.55)) contrast(1.06) saturate(1.08);
}
.ngsh-pine-left-strip {
	border-radius: 38px 24px 48px 48px;
	filter: drop-shadow(7px 6px 16px rgba(0,0,0,.36)) drop-shadow(2px 2px 6px rgba(10,40,24,.5)) contrast(1.06) saturate(1.08);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0,0,0,.68) 93%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0,0,0,.68) 93%, transparent 100%);
}
.ngsh-pine-right-strip {
	border-radius: 24px 38px 48px 48px;
	transform: scaleX(-1);
	filter: drop-shadow(7px 6px 16px rgba(0,0,0,.36)) drop-shadow(2px 2px 6px rgba(10,40,24,.5)) contrast(1.06) saturate(1.08);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0,0,0,.68) 93%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0,0,0,.68) 93%, transparent 100%);
}

/* === 2.0.7: Центрированная верхняя позиция и адаптация таймера === */
.ngsh-countdown--top-center { left: 50%; transform: translateX(-50%); }
@media (max-width: 767px) {
	.ngsh-countdown { padding: 6px 10px; border-radius: 10px; }
	.ngsh-countdown-label { font-size: 10px; }
	.ngsh-countdown-time { font-size: 12.5px; }
}

/* === 2.0.8: Надёжный счётчик отсчёта, реалистичные снежинки-кристаллы и следы === */
.ngsh-countdown {
	position: fixed !important;
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	width: auto !important;
	min-width: 124px;
	height: auto !important;
	z-index: 2147483000 !important;
	color: #ffffff !important;
	background: rgba(15, 27, 48, 0.88) !important;
}
.ngsh-snowflake--crystal {
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none !important;
	filter: drop-shadow(0 0 4px rgba(205, 235, 255, 0.85));
}
.ngsh-snowflake--crystal svg {
	width: 100%;
	height: 100%;
	display: block;
	animation: ngsh-snow-spin var(--ngsh-spin-dur, 9s) linear infinite;
}
@keyframes ngsh-snow-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}
.ngsh-track { z-index: 100 !important; }
