.ccn-fe-root {
	position: relative;
	z-index: 9990;
	overflow-x: hidden;
	pointer-events: none;
}

.ccn-fe-root[hidden],
.ccn-fe-greeting[hidden],
.ccn-fe-greeting-scrim[hidden],
.ccn-fe-greeting.ccn-fe-greeting--pending,
.ccn-fe-diyo-dock[hidden],
.ccn-fe-music-control[hidden],
.ccn-fe-fireworks-restart[hidden] {
	display: none !important;
}

.ccn-fe-mala {
	position: fixed;
	top: 0;
	left: 0;
	display: block;
	width: 100vw;
	max-width: none;
	height: 52px;
	overflow: visible;
	pointer-events: none;
	z-index: 9991;
}

.ccn-fe-mala-cable,
.ccn-fe-mala-loop-cable {
	fill: none;
	stroke: url(#ccn-fe-mala-gradient);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 0 3px rgb(255 194 103 / 100%)) drop-shadow(0 0 8px rgb(110 188 255 / 62%));
	animation: ccn-fe-mala-cable-shimmer 5.6s ease-in-out infinite;
}

.ccn-fe-mala-loop-cable { stroke-width: 1.65; animation-duration: 4.8s; animation-delay: -1.4s; }

.ccn-fe-mala-bulb {
	stroke: rgb(255 255 255 / 78%);
	stroke-width: .9;
	transform-box: fill-box;
	transform-origin: center;
	animation: ccn-fe-mala-blink 2.8s ease-in-out var(--ccn-fe-delay, 0s) infinite;
}

.ccn-fe-mala-bulb--red { fill: #ef4b4f; filter: drop-shadow(0 0 4px rgb(239 75 79 / 100%)) drop-shadow(0 0 8px rgb(239 75 79 / 68%)); }
.ccn-fe-mala-bulb--yellow { fill: #ffe37a; filter: drop-shadow(0 0 4px rgb(255 227 122 / 100%)) drop-shadow(0 0 8px rgb(255 227 122 / 70%)); }
.ccn-fe-mala-bulb--green { fill: #55ce86; filter: drop-shadow(0 0 4px rgb(85 206 134 / 100%)) drop-shadow(0 0 8px rgb(85 206 134 / 68%)); }
.ccn-fe-mala-bulb--blue { fill: #5cb7ff; filter: drop-shadow(0 0 4px rgb(92 183 255 / 100%)) drop-shadow(0 0 8px rgb(92 183 255 / 68%)); }
.ccn-fe-mala-bulb--orange { fill: #ff9d4d; filter: drop-shadow(0 0 4px rgb(255 157 77 / 100%)) drop-shadow(0 0 8px rgb(255 157 77 / 68%)); }
.ccn-fe-mala-bulb--pink { fill: #ef83c1; filter: drop-shadow(0 0 4px rgb(239 131 193 / 100%)) drop-shadow(0 0 8px rgb(239 131 193 / 68%)); }
.ccn-fe-mala-bulb--purple { fill: #b99bff; filter: drop-shadow(0 0 4px rgb(185 155 255 / 100%)) drop-shadow(0 0 8px rgb(185 155 255 / 68%)); }
.ccn-fe-mala-bulb--warm { fill: #fff5c2; filter: drop-shadow(0 0 4px rgb(255 245 194 / 100%)) drop-shadow(0 0 8px rgb(255 245 194 / 70%)); }

.ccn-fe-greeting-scrim {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgb(30 12 20 / 24%);
	pointer-events: auto;
	z-index: 9993;
}

.ccn-fe-greeting {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(520px, calc(100vw - 40px));
	padding: 24px 34px 30px;
	gap: 20px;
	overflow: hidden;
	border: 0;
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 22px 70px rgb(32 10 24 / 34%);
	color: #263238;
	text-align: center;
	transform: translateY(10px) scale(.96);
	z-index: 1;
}

.ccn-fe-greeting::before,
.ccn-fe-greeting::after {
	display: none;
}

.ccn-fe-greeting::before {
	top: 14px;
	left: 14px;
	border-right: 0;
	border-bottom: 0;
	border-radius: 18px 0 0;
}

.ccn-fe-greeting::after {
	right: 14px;
	bottom: 14px;
	border-top: 0;
	border-left: 0;
	border-radius: 0 0 18px;
}

.ccn-fe-greeting--visible { animation: ccn-fe-greeting-in 420ms cubic-bezier(.2,.9,.2,1) both; }

.ccn-fe-greeting h2,
.ccn-fe-greeting p,
.ccn-fe-greeting .ccn-fe-greeting-kicker {
	position: relative;
	z-index: 2;
}

.ccn-fe-greeting-copy {
	position: relative;
	width: 100%;
	padding: 0;
	z-index: 2;
}

.ccn-fe-greeting-kicker {
	display: block;
	margin-bottom: 10px;
	color: #d63384;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.ccn-fe-greeting h2 {
	margin: 0 0 14px;
	background: linear-gradient(90deg, #5f3dc4, #d63384 52%, #f08c00);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(27px, 5vw, 42px);
	line-height: 1.16;
}

.ccn-fe-greeting p {
	max-width: 390px;
	margin: 0 auto;
	color: #087f8c;
	font-size: 16px;
	line-height: 1.7;
	white-space: pre-line;
}

.ccn-fe-rangoli {
	position: relative;
	display: block;
	width: min(330px, 72vw);
	height: auto;
	margin: 0 auto;
	border-radius: 18px;
	opacity: 1;
	pointer-events: none;
	transform: scale(.35);
	z-index: 1;
}

.ccn-fe-greeting-media {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	background: transparent;
	text-align: center;
	overflow: hidden;
}

.ccn-fe-greeting-sparkles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.ccn-fe-greeting-sparkles i {
	position: absolute;
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #e7ad39;
	box-shadow: 0 0 14px #ffe29a;
	opacity: 0;
}

.ccn-fe-greeting-sparkles i:nth-child(1) { top: 22%; left: 15%; }
.ccn-fe-greeting-sparkles i:nth-child(2) { top: 31%; right: 14%; }
.ccn-fe-greeting-sparkles i:nth-child(3) { bottom: 23%; left: 18%; }
.ccn-fe-greeting-sparkles i:nth-child(4) { right: 20%; bottom: 20%; }

.ccn-fe-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 1px solid rgb(255 218 105 / 90%);
	border-radius: 50%;
	background: linear-gradient(135deg, #0ca678, #5f3dc4 52%, #d63384);
	box-shadow: 0 4px 12px rgb(61 17 44 / 26%);
	color: #fff8e7;
	font-size: 23px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
}

.ccn-fe-diyo-dock {
	position: fixed;
	bottom: 18px;
	left: 50%;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translateX(-50%);
	pointer-events: auto;
	z-index: 9994;
}

.ccn-fe-diyo-prompt {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(120deg, #5f3dc4, #d63384 52%, #0ca678);
	box-shadow: 0 7px 18px rgb(53 24 99 / 28%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.ccn-fe-diyo-prompt-icon { animation: ccn-fe-prompt-blink 1.15s ease-in-out infinite; }

.ccn-fe-diyos {
	display: flex;
	align-items: end;
	gap: 8px;
	padding: 7px 10px 5px;
	border: 2px solid rgb(255 255 255 / 88%);
	border-radius: 999px;
	background: linear-gradient(135deg, rgb(255 248 220 / 98%), rgb(255 220 141 / 96%) 30%, rgb(255 205 230 / 94%) 68%, rgb(209 247 241 / 96%));
	box-shadow: 0 10px 24px rgb(53 24 99 / 22%), 0 0 0 3px rgb(255 183 3 / 24%);
}

.ccn-fe-diyo {
	width: 58px;
	height: 54px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 180ms ease, opacity 180ms ease;
}

.ccn-fe-diyo-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: .74;
	transition: opacity 180ms ease, transform 180ms ease;
}

.ccn-fe-diyo:hover,
.ccn-fe-diyo:focus-visible,
.ccn-fe-diyo.is-lit { transform: translateY(-3px); }

.ccn-fe-diyo:hover .ccn-fe-diyo-image,
.ccn-fe-diyo:focus-visible .ccn-fe-diyo-image,
.ccn-fe-diyo.is-lit .ccn-fe-diyo-image { opacity: 1; }

.ccn-fe-diyos-close,
.ccn-fe-fireworks-restart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 11px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #0ca678, #5f3dc4 52%, #d63384);
	box-shadow: 0 6px 16px rgb(53 24 99 / 24%);
	color: #fff;
	font-size: 12px;
	line-height: 1.2;
	cursor: pointer;
}

.ccn-fe-diyos-close {
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
}

.ccn-fe-fireworks-restart {
	width: auto;
	min-height: 38px;
	white-space: nowrap;
}

.ccn-fe-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ccn-fe-fireworks-canvas {
	position: fixed;
	top: 0;
	left: 0;
	display: block;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	image-rendering: auto;
	filter: saturate(.82) contrast(.96) blur(.45px);
	z-index: 9988;
}

.ccn-fe-utility-controls {
	position: fixed;
	bottom: 18px;
	left: 18px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	pointer-events: none;
	z-index: 9995;
}

.ccn-fe-utility-controls > * { pointer-events: auto; }
.ccn-fe-music-control { display: flex; align-items: center; }
.ccn-fe-music-toggle,
.ccn-fe-music-mute { min-height: 38px; border: 1px solid rgb(255 236 156 / 92%); background: linear-gradient(120deg, #5f3dc4, #d63384 52%, #0ca678); color: #fff; box-shadow: 0 6px 16px rgb(53 24 99 / 24%); cursor: pointer; }
.ccn-fe-music-toggle { padding: 8px 11px; border-radius: 999px 0 0 999px; font-size: 12px; }
.ccn-fe-music-toggle span:first-child { margin-right: 4px; font-size: 15px; }
.ccn-fe-music-mute { width: 38px; padding: 0; border-left: 0; border-radius: 0 999px 999px 0; }

.ccn-fe-close:hover,
.ccn-fe-close:focus-visible,
.ccn-fe-diyos-close:hover,
.ccn-fe-fireworks-restart:hover,
.ccn-fe-music-toggle:hover,
.ccn-fe-music-mute:hover { background: linear-gradient(135deg, #8d2560, #df4861 48%, #ffb347); }

.ccn-fe-diyo:focus-visible,
.ccn-fe-diyos-close:focus-visible,
.ccn-fe-fireworks-restart:focus-visible,
.ccn-fe-music-toggle:focus-visible,
.ccn-fe-music-mute:focus-visible,
.ccn-fe-close:focus-visible { outline: 2px solid #b88429; outline-offset: 3px; }

@keyframes ccn-fe-mala-blink {
	0%, 100% { opacity: .25; transform: scale(.72); }
	28%, 52% { opacity: 1; transform: scale(1.16); }
	42% { opacity: .55; transform: scale(.88); }
}

@keyframes ccn-fe-prompt-blink {
	0%, 100% { opacity: .55; transform: translateX(0); }
	50% { opacity: 1; transform: translateX(4px); }
}

@keyframes ccn-fe-mala-cable-shimmer {
	0%, 100% { opacity: .82; filter: drop-shadow(0 0 3px rgb(255 194 103 / 92%)) drop-shadow(0 0 7px rgb(110 188 255 / 44%)); }
	50% { opacity: 1; filter: drop-shadow(0 0 6px rgb(255 220 145 / 100%)) drop-shadow(0 0 12px rgb(99 196 255 / 68%)); }
}

@keyframes ccn-fe-greeting-in {
	from { opacity: 0; transform: translateY(18px) scale(.94); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
	.ccn-fe-mala { width: 100vw; height: 36px; }
	.ccn-fe-mala-loop:nth-child(even) { display: none; }
	.ccn-fe-mala-cable { stroke-width: 1.8; }
	.ccn-fe-mala-loop-cable { stroke-width: 1.35; }
	.ccn-fe-mala-bulb { transform: scale(.82); }
	.ccn-fe-diyo-dock { flex-wrap: wrap; row-gap: 6px; }
	.ccn-fe-diyo-prompt { padding: 7px 10px; font-size: 11px; }
	.ccn-fe-greeting-scrim { padding: 14px; }
	.ccn-fe-greeting { width: min(440px, calc(100vw - 28px)); gap: 14px; padding: 18px 20px 24px; border-radius: 21px; }
	.ccn-fe-greeting h2 { font-size: 28px; }
	.ccn-fe-greeting p { font-size: 14px; }
	.ccn-fe-rangoli { width: min(286px, 76vw); margin-bottom: 0; border-radius: 14px; }
	.ccn-fe-diyo-dock { bottom: 12px; width: calc(100% - 24px); justify-content: center; gap: 5px; }
	.ccn-fe-diyos { gap: 1px; padding-right: 5px; padding-left: 5px; }
	.ccn-fe-diyo { width: 48px; height: 48px; }
	.ccn-fe-diyo:nth-child(n + 4) { display: none; }
	.ccn-fe-diyos-close { width: 34px; height: 34px; padding: 0; }
	.ccn-fe-utility-controls { bottom: 70px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.ccn-fe-mala-bulb,
	.ccn-fe-mala-cable,
	.ccn-fe-mala-loop-cable,
	.ccn-fe-greeting,
	.ccn-fe-diyo,
	.ccn-fe-diyo-image,
	.ccn-fe-diyo-prompt-icon { animation: none !important; transition: none !important; }
}
