/* LastCS Christmas 1.1.1 */

/* ---------- Snow canvas ---------- */
#lcsx-snow {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 600;
}

/* ---------- Snow caps ---------- */
.lcsx-cap {
	position: absolute;
	height: 48px;
	pointer-events: none;
	z-index: 5;
}
.lcsx-cap svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lcsx-cap .lcsx-spark { animation: lcsx-tw 6s ease-in-out infinite; opacity: 0; }
@keyframes lcsx-tw { 0%, 100% { opacity: 0 } 6% { opacity: .9 } 14% { opacity: 0 } }

/* ---------- Santa hats on avatars ----------
   Square avatars: straight brim laid across the top-left corner at 45deg,
   its ends land exactly on the left and top edges.
   Round avatars (class added by JS): curved brim with the same curvature
   as the avatar circle, laid along its top-left edge. */
html.lcsx-hats .avatar {
	position: relative;
	overflow: visible !important;
}
html.lcsx-hats .avatar > img {
	border-radius: inherit;
}
html.lcsx-hats .avatar::after {
	/* the hat svg is drawn in the avatar's own coordinates (box = 2x avatar),
	   so its brim lands exactly on the avatar edge at any size */
	content: "";
	position: absolute;
	z-index: 3;
	pointer-events: none;
	left: -50%;
	top: -50%;
	width: 200%;
	height: 200%;
	background: url("hat-square.svg?v=4") center / 100% 100% no-repeat;
}
html.lcsx-hats .avatar.lcsx-rnd::after {
	background-image: url("hat-round.svg?v=4");
}

/* hat on logo (element created by JS) */
.lcsx-logo-hat {
	position: absolute;
	pointer-events: none;
	z-index: 601;
	background: url("hat-square.svg?v=4") center / 100% 100% no-repeat;
}

/* waving Santa next to the logo (element created by JS) */
.lcsx-logo-santa {
	position: absolute;
	pointer-events: none;
	z-index: 601;
	background: url("santa.svg?v=1") center bottom / contain no-repeat;
}

/* logo decoration: soft fade in/out, smooth follow */
.lcsx-logo-santa,
.lcsx-logo-hat {
	opacity: 0;
	visibility: hidden;
	will-change: transform, opacity;
	transition: opacity .25s ease, visibility 0s linear .25s, transform .18s ease-out;
}
.lcsx-logo-santa.lcsx-on,
.lcsx-logo-hat.lcsx-on {
	opacity: 1;
	visibility: visible;
	transition: opacity .35s ease, visibility 0s, transform .18s ease-out;
}
.lcsx-logo-santa.lcsx-snap,
.lcsx-logo-hat.lcsx-snap {
	transition: none !important;
}

/* ---------- Christmas wreath around node icons (elements created by JS) ---------- */
.lcsx-ice-ov {
	position: absolute;
	pointer-events: none;
	z-index: 3;
	background: url("wreath.svg?v=1") center / 100% 100% no-repeat;
}

@media (prefers-reduced-motion: reduce) {
	.lcsx-cap .lcsx-spark { animation: none; }
}
