/**
 * Seasonal Noel styling for Pearl Nail Bar.
 *
 * Loaded only when PEARL_NOEL_ENABLED is true in functions.php.
 */

.pearl-noel-snow {
	position: fixed;
	inset: 0;
	z-index: 9990;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.pearl-noel-active .pearl-hero {
	overflow: hidden;
}

.pearl-noel-active .pearl-hero__inside {
	position: relative;
	z-index: 3;
	padding-top: 120px;
}

.pearl-noel-hero-decor {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 2;
	height: 240px;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
}

.pearl-noel-garland {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 68px;
	display: block;
}

.pearl-noel-corner {
	position: absolute;
	top: -4px;
	width: clamp(220px, 24vw, 350px);
	height: auto;
	display: block;
	filter: drop-shadow(0 8px 16px rgba(13, 30, 24, 0.16));
}

.pearl-noel-corner--left {
	left: -8px;
	transform-origin: top left;
	animation: pearl-noel-sway-left 8.5s ease-in-out infinite;
}

.pearl-noel-corner--right {
	right: -8px;
	transform-origin: top right;
	animation: pearl-noel-sway-right 9.5s ease-in-out infinite;
}

.pearl-noel-bulb--a {
	animation: pearl-noel-twinkle 3.4s ease-in-out infinite;
}

.pearl-noel-bulb--b {
	animation: pearl-noel-twinkle 4.2s ease-in-out 1.1s infinite;
}

.pearl-noel-bulb--c {
	animation: pearl-noel-twinkle 3.8s ease-in-out 2s infinite;
}

@keyframes pearl-noel-sway-left {
	0%, 100% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(1.1deg);
	}
}

@keyframes pearl-noel-sway-right {
	0%, 100% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(-1.1deg);
	}
}

@keyframes pearl-noel-twinkle {
	0%, 100% {
		opacity: 0.42;
	}
	50% {
		opacity: 1;
	}
}

@media (max-width: 1080px) {
	.pearl-noel-corner {
		width: clamp(185px, 23vw, 260px);
	}
}

@media (max-width: 860px) {
	.pearl-noel-hero-decor {
		height: 185px;
	}
	.pearl-noel-garland {
		height: 52px;
	}
	.pearl-noel-corner {
		width: clamp(150px, 28vw, 220px);
	}
	.pearl-noel-active .pearl-hero__inside {
		padding-top: 104px;
	}
}

@media (max-width: 560px) {
	.pearl-noel-hero-decor {
		height: 150px;
	}
	.pearl-noel-garland {
		height: 44px;
	}
	.pearl-noel-corner {
		width: 148px;
	}
	.pearl-noel-active .pearl-hero__inside {
		padding-top: 108px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pearl-noel-snow {
		display: none;
	}
	.pearl-noel-corner--left,
	.pearl-noel-corner--right,
	.pearl-noel-bulb--a,
	.pearl-noel-bulb--b,
	.pearl-noel-bulb--c {
		animation: none;
	}
}
