/* Easter eggs: triggered by clicking the smiley image */

.connorb-logo {
	cursor: pointer;
}

.connorb-logo:hover .connorb-slide.is-active {
	transform: scale(1.03);
}

.connorb-logo[data-animation="slide"]:hover .connorb-slide.is-active {
	transform: translateX(0) scale(1.03);
}

.connorb-logo[data-animation="zoom"]:hover .connorb-slide.is-active {
	transform: scale(1.1);
}

/* Egg 1: confetti canvas overlay */
.connorb-confetti-canvas {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 9999;
}

/* Egg 2: melt */
.connorb-landing > * {
	transition: transform 0.9s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.9s ease;
}

.connorb-landing.is-melting > * {
	transform: translateY(70vh) scaleY(2.2) scaleX(0.85);
	opacity: 0;
}

/* Egg 3: bouncing balls */
.connorb-ball {
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 50%;
	object-fit: contain;
	pointer-events: none;
	z-index: 9999;
	transition: opacity 0.4s ease;
}

.connorb-ball.is-settling {
	transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1), top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
		width 0.6s ease, height 0.6s ease, opacity 0.4s ease 0.2s;
}

/* Egg 4: Pac-Man */
.connorb-pacman {
	position: fixed;
	top: 50%;
	width: 70px;
	height: 70px;
	margin-top: -35px;
	background: #ffd400;
	border-radius: 50%;
	pointer-events: none;
	z-index: 10000;
	clip-path: polygon(100% 74%, 44% 50%, 100% 26%, 100% 0%, 0% 0%, 0% 100%, 100% 100%);
}

.connorb-pacman.chomp-closed {
	clip-path: polygon(100% 51%, 44% 50%, 100% 49%, 100% 0%, 0% 0%, 0% 100%, 100% 100%);
}

@media (prefers-reduced-motion: reduce) {
	.connorb-landing > * {
		transition: opacity 0.4s ease;
	}
	.connorb-landing.is-melting > * {
		transform: none;
	}
	.connorb-ball,
	.connorb-ball.is-settling,
	.connorb-pacman {
		transition: opacity 0.4s ease;
	}
}
