@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
	--bg-gradient: radial-gradient(circle at top, rgba(255, 255, 255, 0.65), rgba(201, 232, 220, 0.6) 45%, rgba(161, 216, 199, 0.55));
	--panel-bg: #ffffffed;
	--text: #0d2a1d;
	--accent: #2f8f5b;
	--danger: #e74c3c;
	--shadow: 0 30px 80px rgba(8, 28, 18, 0.35);
	--card-shadow: 0 25px 60px rgba(7, 38, 22, 0.25);
	--bucket-bio: linear-gradient(180deg, #f8e3c5, #d8a76e);
	--bucket-pot: linear-gradient(180deg, #d3f1dc, #7cc09b);
}

* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	background-color: #b9dfce;
	background-image: url('assets/kitchen_bg.png');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-attachment: fixed;
	position: relative;
}

button {
	font-family: inherit;
}

.game-shell {
	width: 100%;
	height: 100vh;
	position: relative;
	overflow: hidden;
}

.hud {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;    
    padding: 1rem;
    color: wheat;
}

.lives {
	display: flex;
	gap: 8px;
}

.heart {
	font-size: 1.4rem;
	color: var(--danger);
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
	transition: opacity 0.2s ease;
}

.heart.lost {
	opacity: 0.2;
}

.timer {
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: 1px;
}

.play-area {
	flex: 1;
	padding-top: 6vh;
	padding-bottom: 4vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	position: relative;
}

.game-shell {
	display: flex;
	flex-direction: column;
}

.herb-card {
	width: 320px;
	height: 320px;
	border-radius: 26px;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 20px;
	color: #f6fff8;
	text-align: center;
	position: relative;
	transition: opacity 0.25s ease;
	opacity: 0;
	pointer-events: none;
	overflow: visible;
}

.herb-illustration {
	position: relative;
	z-index: 1;
}

.herb-illustration {
	width: 250px;
	height: 250px;
	margin: 0 auto;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}


.herb-card.visible {
	opacity: 1;
	pointer-events: auto;
}

.herb-card.card-idle .herb-illustration {
	animation: herb-idle 1.4s ease-in-out infinite;
	transform-origin: center bottom;
}

.herb-card.wrong {
	filter: drop-shadow(0 0 25px rgba(231, 76, 60, 0.65));
}

.herb-card.timeout {
	filter: drop-shadow(0 0 25px rgba(247, 169, 0, 0.7));
}

.targets {
	position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.bucket {
	border: none;
	position: absolute;
    background-size: contain;
	background-position: center;
    background-repeat: no-repeat;
}




.bucket-left {
	background-image: url('assets/muell_bg.png');
    width: 44vw;
    height: 64vw;
    left: 0vw;
    bottom: -7vh;
}

.bucket-right {
	background-image: url('assets/topf_bg.png');
        width: 40vw;
    height: 53vw;
    right: -6vw;
    bottom: 35vh;
}



.overlay {
    
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(5, 20, 10, 0.78);
	z-index: 10;
    /* display: none; */
}

.overlay.hidden {
	display: none;
}

.overlay-card {
	background: #fbfff9;
	border-radius: 24px;
	padding: 32px;
	max-width: 440px;
	text-align: center;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.overlay-card h2 {
	margin-top: 0;
}

.primary-btn {
	margin-top: 16px;
	background: linear-gradient(135deg, #2f8f5b, #1c6840);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 34px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 16px 30px rgba(47, 143, 91, 0.35);
	transition: transform 0.2s ease;
}

.primary-btn:active {
	transform: scale(0.97);
}

.stats {
	margin-top: 12px;
	font-size: 1rem;
	line-height: 1.7;
}

.herb-card.fall-left {
	animation: fall-left 0.65s ease forwards;
}

.herb-card.fall-right {
	animation: fall-right 0.65s ease forwards;
}

.herb-card.drop-down {
	animation: drop-down 0.65s ease forwards;
}

@keyframes herb-idle {
	0% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-6px) rotate(-2deg); }
	100% { transform: translateY(0) rotate(2deg); }
}

@keyframes fall-left {
	0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
	40% { transform: translate(-25vw, -3vh) rotate(-8deg); opacity: 1; }
	90% { opacity: 1; }
	100% { transform: translate(-30vw, 65vh) scale(0.5) rotate(-14deg); opacity: 0; }
}

@keyframes fall-right {
	0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
	40% { transform: translate(30vw, -4vh) rotate(8deg); opacity: 1; }
	60% { opacity: 1; }
	100% { transform: translate(35vw, 27vh) scale(0.5) rotate(14deg); opacity: 0; }
}

@keyframes drop-down {
	0% { transform: translate(0, 0) scale(1); opacity: 1; }
	90% { opacity: 1; }
	100% { transform: translate(0, 80vh) scale(0.7); opacity: 0; }
}

@media (max-width: 520px) {
	
	

	.play-area {
		min-height: 180px;
	}

	.herb-card {
		width: 240px;
		height: 240px;
	}

	.herb-illustration {
		width: 190px;
		height: 190px;
	}

	

	
}
