/**
 * Confetti + banner overlay. Shared by the front-end celebration and the
 * admin settings page's live preview, so what you see in Preview is exactly
 * what visitors see.
 */

.astro-bday-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: rgba(20, 10, 30, 0.4);
	opacity: 1;
	transition: opacity 0.4s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.astro-bday-overlay.astro-bday-hide {
	opacity: 0;
	pointer-events: none;
}

.astro-bday-confetti-piece {
	position: absolute;
	top: -10vh;
	width: 10px;
	height: 16px;
	opacity: 0.95;
	will-change: transform;
	animation-name: astro-bday-fall;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@keyframes astro-bday-fall {
	0% {
		transform: translateY(0) rotate(0deg);
	}
	100% {
		transform: translateY(120vh) rotate(720deg);
	}
}

.astro-bday-banner {
	position: relative;
	z-index: 2;
	max-width: 90vw;
	width: 480px;
	padding: 2.25rem 2.5rem;
	border-radius: 20px;
	text-align: center;
	color: #ffffff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	background-size: cover;
	background-position: center;
	box-sizing: border-box;
	overflow: hidden;
}

/*
 * Uploaded banner images are rendered on this separate, deliberately
 * oversized layer (rather than directly as the banner's own background) so
 * it can be zoomed in past any border/vignette/watermark baked into the
 * source file -- the banner's overflow:hidden + rounded corners then clip
 * the overshoot cleanly. The plain color-gradient option doesn't need this
 * and is applied directly to .astro-bday-banner instead.
 */
.astro-bday-banner-bg {
	position: absolute;
	inset: -18%;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.astro-bday-banner-text,
.astro-bday-banner-subtext,
.astro-bday-skip {
	position: relative;
	z-index: 1;
}

.astro-bday-banner-text {
	font-size: 1.85rem;
	line-height: 1.3;
	font-weight: 800;
	margin: 0 0 0.6rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.astro-bday-banner-subtext {
	font-size: 1rem;
	margin: 0 0 1.25rem;
	opacity: 0.92;
}

.astro-bday-skip {
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.65);
	color: #ffffff;
	padding: 0.55rem 1.4rem;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.9rem;
}

.astro-bday-skip:hover {
	background: rgba(255, 255, 255, 0.32);
}

@media (max-width: 600px) {
	.astro-bday-banner {
		width: 92vw;
		padding: 1.75rem 1.5rem;
	}

	.astro-bday-banner-text {
		font-size: 1.4rem;
	}
}
