.fireworks-section,
.fireworks-section * {
	position: relative;
	box-sizing: border-box;
}

.happy-diwali-page {
	margin: 0;
}

.fireworks-section {
	position: relative;
	width: 100%;
	height: var(--fireworks-height, 100vh);
	min-height: 320px;
	margin: 0;
	overflow: hidden;
	/* display: flex; */
	justify-content: center;
	align-items: center;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	font-family: "Russo One", arial, sans-serif;
	line-height: 1.25;
	letter-spacing: 0.06em;
}

.fireworks-section .hide {
	opacity: 0;
	visibility: hidden;
}

.fireworks-section .remove {
	display: none !important;
}

.fireworks-section .blur {
	filter: blur(12px);
}

.fireworks-section .stage-container {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	margin: 0;
	z-index: 222	;	
	pointer-events: none;
}

@media (max-width: 840px) {
	.fireworks-section .stage-container {
		border: none;
		margin: 0;
	}
}

.fireworks-section .canvas-container {
	width: 100%;
	height: 100%;
	background-color: transparent;
	transition: filter 0.3s;
}

.fireworks-section .canvas-container canvas {
	position: absolute;
	background-color: transparent;
	mix-blend-mode: lighten;
	transform: translateZ(0);
}

.fireworks-section .controls {
	position: absolute;
	top: 0;
	width: 100%;
	padding-bottom: 50px;
	display: flex;
	justify-content: space-between;
}

@media (min-width: 840px) {
	.fireworks-section .controls {
		visibility: hidden;
	}

	.fireworks-section .controls.hide:hover {
		opacity: 0;
	}
}



.fireworks-section .btn--bright {
	opacity: 0.5;
}

@media (min-width: 840px) {
	.fireworks-section .btn:hover {
		opacity: 0.32;
	}

	.fireworks-section .btn--bright:hover {
		opacity: 0.75;
	}
}

.fireworks-section .btn svg {
	display: block;
	margin: auto;
}

/* Happy Diwali overlay on patakha animation */
.fireworks-section .diwali-title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 50;
	pointer-events: none;
	font-family: "Russo One", arial, sans-serif;
	font-size: clamp(2.5rem, 9vw, 6.5rem);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	background: linear-gradient(90deg, #ff3c00, #ffd700, #ff9a00, #ff3c00);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 18px rgba(255, 150, 0, 0.9)) drop-shadow(0 0 40px rgba(255, 80, 0, 0.6));
	opacity: 0;
	animation: diwaliAppear 1.4s ease-out 7s forwards, diwaliShine 3s linear 8.4s infinite, diwaliPulse 2.4s ease-in-out 8.4s infinite;
	white-space: nowrap;
}

@keyframes diwaliAppear {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.6);
	}

	100% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes diwaliShine {
	to {
		background-position: 200% center;
	}
}

@keyframes diwaliPulse {

	0%,
	100% {
		transform: translate(-50%, -50%) scale(1);
	}

	50% {
		transform: translate(-50%, -50%) scale(1.06);
	}
}

@media (max-width: 600px) {
	.fireworks-section .diwali-title {
		font-size: 2.2rem;
	}
}

/* Text formed by patakhe (firecracker particles) overlay */
.fireworks-section #text-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 40;
	pointer-events: none;
	mix-blend-mode: lighten;
}