/* Ant Invasion Styles */

.ant {
	position: fixed;
	width: 24px;
	height: 24px;
	cursor: pointer;
	z-index: 999;
	transition: opacity 0.3s ease;
	pointer-events: auto;
}

.ant:hover {
	transform: scale(1.2);
}

.ant.dying {
	opacity: 0;
	pointer-events: none;
}

/* Smoke effect container */
.smoke-puff {
	position: fixed;
	pointer-events: none;
	z-index: 1000;
}

.smoke-particle {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(150, 150, 150, 0.6) 0%, rgba(200, 200, 200, 0.3) 50%, transparent 100%);
	animation: smoke-rise 0.6s ease-out forwards;
}

.smoke-particle:nth-child(1) {
	width: 20px;
	height: 20px;
	left: -10px;
	top: -10px;
	animation-delay: 0s;
}

.smoke-particle:nth-child(2) {
	width: 25px;
	height: 25px;
	left: -5px;
	top: -15px;
	animation-delay: 0.05s;
}

.smoke-particle:nth-child(3) {
	width: 18px;
	height: 18px;
	left: 5px;
	top: -8px;
	animation-delay: 0.1s;
}

.smoke-particle:nth-child(4) {
	width: 22px;
	height: 22px;
	left: -8px;
	top: 5px;
	animation-delay: 0.08s;
}

.smoke-particle:nth-child(5) {
	width: 16px;
	height: 16px;
	left: 8px;
	top: 3px;
	animation-delay: 0.12s;
}

@keyframes smoke-rise {
	0% {
		transform: translate(0, 0) scale(0.5);
		opacity: 0.8;
	}
	50% {
		opacity: 0.6;
	}
	100% {
		transform: translate(
			calc(var(--drift-x, 0) * 1px),
			calc(var(--drift-y, -30) * 1px)
		) scale(1.5);
		opacity: 0;
	}
}

/* Mobile touch optimization */
@media (max-width: 640px) {
	.ant {
		width: 28px;
		height: 28px;
	}
}

/* Ensure ants don't interfere with text selection */
.ant {
	user-select: none;
	-webkit-user-select: none;
}

/* Weapon Toolbar Styles */
.weapon-toolbar {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.85);
	border-radius: 16px;
	padding: 12px 20px;
	display: flex;
	gap: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	z-index: 10000;
	backdrop-filter: blur(10px);
}

.weapon-btn {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	transition: all 0.2s ease;
	padding: 6px;
}

.weapon-btn:hover {
	transform: scale(1.1);
	background: rgba(255, 255, 255, 0.2);
}

.weapon-btn.active {
	background: rgba(226, 139, 75, 0.3);
	border-color: #E28B4B;
	box-shadow: 0 0 15px rgba(226, 139, 75, 0.4);
}

.weapon-icon {
	font-size: 24px;
	line-height: 1;
}

.weapon-label {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

@media (max-width: 640px) {
	.weapon-toolbar {
		padding: 10px 15px;
		gap: 8px;
	}

	.weapon-btn {
		width: 50px;
		height: 50px;
	}

	.weapon-icon {
		font-size: 20px;
	}

	.weapon-label {
		font-size: 9px;
	}
}

/* Death Effect Styles */

/* Burn Effect */
.burn-effect {
	position: fixed;
	pointer-events: none;
	z-index: 1000;
}

.flame-particle {
	position: absolute;
	width: 16px;
	height: 24px;
	border-radius: 50% 50% 0 0;
	background: linear-gradient(to top, #ff4500 0%, #ff6b00 30%, #ffa500 60%, #ffff00 100%);
	animation: flame-rise 0.8s ease-out forwards;
	filter: blur(1px);
}

@keyframes flame-rise {
	0% {
		transform: translate(0, 0) scale(1);
		opacity: 1;
	}
	100% {
		transform: translate(var(--drift-x, 0), var(--drift-y, -40px)) scale(0.3);
		opacity: 0;
	}
}

/* Shoot Effect */
.shoot-effect {
	position: fixed;
	pointer-events: none;
	z-index: 1000;
}

.shoot-flash {
	position: absolute;
	width: 40px;
	height: 40px;
	left: -20px;
	top: -20px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 100, 0.9) 0%, rgba(255, 200, 0, 0.6) 40%, transparent 70%);
	animation: shoot-flash 0.3s ease-out forwards;
}

@keyframes shoot-flash {
	0% {
		transform: scale(0);
		opacity: 1;
	}
	100% {
		transform: scale(2);
		opacity: 0;
	}
}

.shoot-debris {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #8B4513;
	animation: shoot-debris 0.5s ease-out forwards;
}

@keyframes shoot-debris {
	0% {
		transform: translate(0, 0) scale(1);
		opacity: 1;
	}
	100% {
		transform: translate(var(--drift-x, 0), var(--drift-y, 0)) scale(0);
		opacity: 0;
	}
}

/* Sweep Effect */
.sweep-effect {
	position: fixed;
	pointer-events: none;
	z-index: 1000;
}

.sweep-line {
	position: absolute;
	width: 60px;
	height: 4px;
	left: -30px;
	top: -2px;
	background: linear-gradient(to right, transparent, rgba(139, 69, 19, 0.6) 20%, rgba(139, 69, 19, 0.6) 80%, transparent);
	border-radius: 2px;
	animation: sweep-swipe 0.4s ease-out forwards;
}

@keyframes sweep-swipe {
	0% {
		transform: translateX(-40px) rotate(-30deg);
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		transform: translateX(40px) rotate(30deg);
		opacity: 0;
	}
}

.sweep-dust {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(200, 180, 150, 0.7) 0%, rgba(220, 200, 180, 0.4) 50%, transparent 100%);
	animation: sweep-dust 0.7s ease-out forwards;
}

@keyframes sweep-dust {
	0% {
		transform: translate(0, 0) scale(0.5);
		opacity: 0.8;
	}
	100% {
		transform: translate(var(--drift-x, 0), var(--drift-y, -20px)) scale(1.5);
		opacity: 0;
	}
}

/* Spray Effect */
.spray-effect {
	position: fixed;
	pointer-events: none;
	z-index: 1000;
}

.spray-droplet {
	position: absolute;
	width: 6px;
	height: 8px;
	border-radius: 50% 50% 50% 0;
	background: linear-gradient(135deg, rgba(100, 200, 255, 0.8) 0%, rgba(150, 220, 255, 0.6) 50%, rgba(200, 240, 255, 0.3) 100%);
	animation: spray-droplet 0.8s ease-out forwards;
	filter: blur(0.5px);
}

@keyframes spray-droplet {
	0% {
		transform: translate(0, 0) scale(1) rotate(0deg);
		opacity: 1;
	}
	100% {
		transform: translate(var(--drift-x, 0), var(--drift-y, 0)) scale(0.5) rotate(180deg);
		opacity: 0;
	}
}

.spray-mist {
	position: absolute;
	width: 50px;
	height: 50px;
	left: -25px;
	top: -25px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(150, 220, 255, 0.4) 0%, rgba(180, 230, 255, 0.2) 40%, transparent 70%);
	animation: spray-mist 0.8s ease-out forwards;
	filter: blur(3px);
}

@keyframes spray-mist {
	0% {
		transform: scale(0);
		opacity: 1;
	}
	100% {
		transform: scale(3);
		opacity: 0;
	}
}
