.easter-hunt-root {
	position: relative;
	z-index: 9999;
}

.easter-hunt-wrapper {
	position: fixed;
	bottom: 0;
	left: 0;
	transform: translateY(100%);
	z-index: 9999;
	opacity: 0;
	animation: eh-slide-up 0.8s ease-out forwards;
	will-change: transform, opacity;
	pointer-events: none;
	width: 100vw;
	overflow: visible;
	--eh-grass-height: clamp(120px, 18vw, 220px);
	--eh-nest-top-factor: 2.3;
}

.easter-hunt-grass {
	width: 100vw;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: stretch;
	height: var(--eh-grass-height);
	border-radius: 999px 999px 0 0;
	overflow: hidden;
	position: relative;
	z-index: 3;
	pointer-events: none;
}

.easter-hunt-grass img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center top;
}

.easter-hunt-grass.is-fallback {
	background:
		radial-gradient(circle at 20% 0, #90d77f 0 22%, transparent 23%),
		radial-gradient(circle at 42% 0, #79c967 0 21%, transparent 22%),
		radial-gradient(circle at 65% 0, #68bb58 0 22%, transparent 23%),
		radial-gradient(circle at 84% 0, #7ecf6c 0 20%, transparent 21%),
		linear-gradient(180deg, #97de87 0%, #5ca84b 100%);
	box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.2);
}

.easter-hunt-nest {
	position: absolute;
	left: 50%;
	top: calc(var(--eh-grass-height) * var(--eh-nest-top-factor));
	transform: translate(-50%, -50%);
	width: var(--eh-nest-size, 180px);
	height: var(--eh-nest-size, 180px);
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0;
	cursor: pointer;
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	animation: eh-nest-bounce-in 0.5s ease-out forwards, eh-nest-idle 2s ease-in-out infinite;
	transform-origin: center bottom;
	will-change: transform;
	z-index: 2;
}

.easter-hunt-nest img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	background: transparent !important;
	mix-blend-mode: normal;
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.25));
}

.easter-hunt-exit-teaser {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	z-index: 10001;
	width: min(460px, 92vw);
	background: #1f1f1f;
	color: #fff;
	border-radius: 12px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
	padding: 12px 14px;
}

.easter-hunt-exit-teaser-title {
	display: block;
	font-size: 15px;
}

.easter-hunt-exit-teaser-text {
	margin: 4px 0 0;
	font-size: 14px;
}

.easter-hunt-exit-teaser-close {
	margin-top: 10px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: transparent;
	color: #fff;
	border-radius: 6px;
	padding: 6px 10px;
	cursor: pointer;
}

.easter-hunt-overlay {
	position: fixed;
	inset: 0;
	z-index: 10002;
	background: rgba(0, 0, 0, 0.56);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.easter-hunt-modal {
	width: min(560px, 100%);
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
	position: relative;
}

.easter-hunt-modal h2 {
	margin: 0 0 8px;
	font-size: 28px;
}

.easter-hunt-modal p {
	margin: 0;
	white-space: pre-line;
}

.easter-hunt-scratchcard {
	margin-top: 14px;
}

.easter-hunt-scratchcanvas {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	border-radius: 10px;
	border: 1px solid #ddd;
	background: #aeaeae;
	touch-action: none;
	transition: opacity 0.25s ease;
}

.easter-hunt-scratchcanvas.is-complete {
	opacity: 0.2;
}

.easter-hunt-prize {
	margin-top: 10px;
	padding: 12px;
	background: #f8f8f8;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.easter-hunt-direct-actions {
	margin-top: 16px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.easter-hunt-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border: 1px solid #d0d0d0;
	background: #fff;
	color: #222;
	border-radius: 999px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.easter-hunt-debug-panel {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 10011;
	width: min(360px, 90vw);
	max-height: 50vh;
	overflow: auto;
	background: rgba(12, 12, 12, 0.94);
	color: #8bff8f;
	border: 1px solid #1f6f2a;
	border-radius: 8px;
	padding: 10px;
	font: 12px/1.4 Consolas, Monaco, monospace;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.easter-hunt-debug-content {
	margin: 0;
	white-space: pre-wrap;
	font: inherit;
	color: inherit !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.easter-hunt-debug-actions {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(139, 255, 143, 0.25);
}

.easter-hunt-debug-reset {
	color: #8bff8f;
	text-decoration: underline;
	font: inherit;
}

.easter-hunt-debug-reset:hover,
.easter-hunt-debug-reset:focus {
	color: #c8ffd0;
}

.easter-hunt-continue {
	appearance: none;
	border: 1px solid #2d9b42;
	background: #33ad4a;
	color: #fff;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 15px;
	cursor: pointer;
}

.easter-hunt-continue:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

@keyframes eh-slide-up {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes eh-nest-bounce-in {
	0% {
		transform: translate(-50%, -50%) scale(0.3);
		opacity: 0;
	}
	60% {
		transform: translate(-50%, -50%) scale(1.05);
		opacity: 1;
	}
	100% {
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes eh-nest-idle {
	0%, 100% {
		transform: translate(-50%, -50%) translateY(0) rotate(0deg);
	}
	50% {
		transform: translate(-50%, -50%) translateY(-5px) rotate(-2deg);
	}
}

@media (max-width: 767px) {
	.easter-hunt-wrapper {
		--eh-grass-height: clamp(110px, 24vw, 180px);
		--eh-nest-top-factor: 2.3;
	}

	.easter-hunt-nest {
		width: min(var(--eh-nest-size, 180px), 72vw);
		height: min(var(--eh-nest-size, 180px), 72vw);
	}
}

@media (prefers-reduced-motion: reduce) {
	.easter-hunt-wrapper,
	.easter-hunt-nest,
	.easter-hunt-scratchcanvas {
		animation: none !important;
		transition: none !important;
	}

	.easter-hunt-wrapper {
		opacity: 1;
		transform: translateY(0);
	}
}
