/* ===== UNIT STYLES ===== */
/* Separate CSS for unit visuals - floating orb/swarm aesthetic */

/* Container for unit rendering - provides perspective and positioning */
.unit-container {
	perspective: 800px;
	perspective-origin: 50% 50%;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

/* ===== ORB VARIANT ===== */
/* Concentric rings - energy sphere theme */

.unit-orb {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.orb-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Concentric ring layers */
.orb-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 2px solid rgba(0, 230, 118, 0.8);
	box-shadow: 0 0 10px rgba(0, 230, 118, 0.6), inset 0 0 8px rgba(0, 230, 118, 0.3);
}

.orb-ring:nth-child(1) {
	width: 50px;
	height: 50px;
	border-width: 3px;
}

.orb-ring:nth-child(2) {
	width: 38px;
	height: 38px;
}

.orb-ring:nth-child(3) {
	width: 26px;
	height: 26px;
}

/* Center core */
.orb-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(0, 230, 118, 0.9));
	box-shadow: 0 0 15px rgba(0, 230, 118, 1);
	animation: orbCorePulse 2s ease-in-out infinite;
}

@keyframes orbCorePulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		box-shadow: 0 0 15px rgba(0, 230, 118, 1);
	}
	50% {
		transform: translate(-50%, -50%) scale(1.2);
		box-shadow: 0 0 25px rgba(0, 230, 118, 1);
	}
}

/* Floating animation - gentle up/down movement */
@keyframes floatUnit {
	0%, 100% {
		transform: translateZ(15px) rotateX(-15deg) translateY(0px);
	}
	50% {
		transform: translateZ(15px) rotateX(-15deg) translateY(-8px);
	}
}

/* Shadow beneath unit to show it's hovering */
.unit-shadow {
	position: absolute;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	width: 35px;
	height: 8px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
	/* Shadow pulses with the float animation */
	animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
	0%, 100% {
		opacity: 0.6;
		transform: translateX(-50%) scale(1);
	}
	50% {
		opacity: 0.3;
		transform: translateX(-50%) scale(0.85);
	}
}

/* Unit icon/symbol overlay (centered on orb) */
.unit-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.5rem;
	z-index: 2;
	text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
	filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

/* Hover effect - unit becomes more energized */
.unit-container:hover .unit-orb {
	animation-duration: 1.5s;
	filter: brightness(1.3);
}

.unit-container:hover .unit-orb-core {
	box-shadow:
		0 0 30px rgba(0, 230, 118, 1),
		0 0 50px rgba(0, 230, 118, 0.7),
		inset -10px -10px 20px rgba(0, 0, 0, 0.3),
		inset 5px 5px 10px rgba(255, 255, 255, 0.5);
}

/* ===== UNIT COLOR VARIANTS ===== */

/* Orb color variants */
.unit-orb.unit-blue .orb-ring {
	border-color: rgba(33, 150, 243, 0.8);
	box-shadow: 0 0 10px rgba(33, 150, 243, 0.6), inset 0 0 8px rgba(33, 150, 243, 0.3);
}

.unit-orb.unit-blue .orb-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(33, 150, 243, 0.9));
	box-shadow: 0 0 15px rgba(33, 150, 243, 1);
}

.unit-orb.unit-red .orb-ring {
	border-color: rgba(244, 67, 54, 0.8);
	box-shadow: 0 0 10px rgba(244, 67, 54, 0.6), inset 0 0 8px rgba(244, 67, 54, 0.3);
}

.unit-orb.unit-red .orb-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(244, 67, 54, 0.9));
	box-shadow: 0 0 15px rgba(244, 67, 54, 1);
}

.unit-orb.unit-gold .orb-ring {
	border-color: rgba(255, 193, 7, 0.8);
	box-shadow: 0 0 10px rgba(255, 193, 7, 0.6), inset 0 0 8px rgba(255, 193, 7, 0.3);
}

.unit-orb.unit-gold .orb-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 193, 7, 0.9));
	box-shadow: 0 0 15px rgba(255, 193, 7, 1);
}

.unit-orb.unit-purple .orb-ring {
	border-color: rgba(156, 39, 176, 0.8);
	box-shadow: 0 0 10px rgba(156, 39, 176, 0.6), inset 0 0 8px rgba(156, 39, 176, 0.3);
}

.unit-orb.unit-purple .orb-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(156, 39, 176, 0.9));
	box-shadow: 0 0 15px rgba(156, 39, 176, 1);
}

/* ===== UNIT STATUS INDICATORS ===== */

/* Health bar above the unit */
.unit-health-bar {
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 4px;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	overflow: hidden;
	z-index: 100;
	pointer-events: none;
}

.health-fill {
	height: 100%;
	transition: width 0.3s, background 0.3s;
	box-shadow: 0 0 8px currentColor;
}

/* Exhausted indicator (unit has acted this turn) */
.unit-exhausted-icon {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 0.9rem;
	z-index: 101;
	animation: exhaustedPulse 2s infinite;
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
	pointer-events: none;
}

@keyframes exhaustedPulse {
	0%, 100% {
		opacity: 0.6;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.1);
	}
}

/* Movement points indicator (dots below unit) */
.unit-movement-indicator {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 3px;
	z-index: 100;
	pointer-events: none;
}

.movement-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.movement-dot.active {
	background: #4CAF50;
	box-shadow: 0 0 6px rgba(76, 175, 80, 0.9);
}

.movement-dot.inactive {
	background: rgba(255, 255, 255, 0.2);
}

/* Enemy unit indicator (different visual treatment) */
.unit-orb.enemy-unit .unit-orb-core {
	filter: hue-rotate(180deg) saturate(1.5);
	border-color: rgba(255, 50, 50, 0.9);
}

/* ===== SWARM VARIANT ===== */
/* Alternative design: multiple small dots instead of single orb */

.unit-swarm {
	position: relative;
	width: 60px;
	height: 60px;
	transform-style: preserve-3d;
	animation: floatUnit 3s ease-in-out infinite;
	transform: translateZ(15px) rotateX(-15deg);
}

.swarm-dot {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(0, 230, 118, 0.8) 50%, rgba(0, 180, 90, 1) 100%);
	box-shadow: 0 0 10px rgba(0, 230, 118, 0.8);
	animation: swarmOrbit 4s linear infinite;
}

/* Position swarm dots in a cluster pattern */
.swarm-dot:nth-child(1) {
	top: 24px;
	left: 24px;
	animation: swarmOrbit1 3s ease-in-out infinite;
}

.swarm-dot:nth-child(2) {
	top: 10px;
	left: 30px;
	animation: swarmOrbit2 2.5s ease-in-out infinite;
}

.swarm-dot:nth-child(3) {
	top: 38px;
	left: 30px;
	animation: swarmOrbit3 3.5s ease-in-out infinite;
}

.swarm-dot:nth-child(4) {
	top: 24px;
	left: 12px;
	animation: swarmOrbit4 2.8s ease-in-out infinite;
}

.swarm-dot:nth-child(5) {
	top: 24px;
	left: 36px;
	animation: swarmOrbit5 3.2s ease-in-out infinite;
}

/* Different animation for each dot - more chaotic movement */
@keyframes swarmOrbit1 {
	0%, 100% {
		transform: translate(0, 0) scale(1);
		opacity: 1;
	}
	33% {
		transform: translate(8px, -6px) scale(1.2);
		opacity: 0.7;
	}
	66% {
		transform: translate(-5px, 4px) scale(0.8);
		opacity: 0.9;
	}
}

@keyframes swarmOrbit2 {
	0%, 100% {
		transform: translate(0, 0) scale(0.9);
		opacity: 0.9;
	}
	40% {
		transform: translate(-7px, 8px) scale(1.1);
		opacity: 0.8;
	}
	70% {
		transform: translate(6px, -4px) scale(1.3);
		opacity: 0.6;
	}
}

@keyframes swarmOrbit3 {
	0%, 100% {
		transform: translate(0, 0) scale(1.1);
		opacity: 1;
	}
	30% {
		transform: translate(5px, 7px) scale(0.9);
		opacity: 0.7;
	}
	65% {
		transform: translate(-8px, -5px) scale(1.2);
		opacity: 0.85;
	}
}

@keyframes swarmOrbit4 {
	0%, 100% {
		transform: translate(0, 0) scale(1);
		opacity: 0.95;
	}
	35% {
		transform: translate(-6px, -7px) scale(1.3);
		opacity: 0.65;
	}
	68% {
		transform: translate(7px, 6px) scale(0.85);
		opacity: 0.9;
	}
}

@keyframes swarmOrbit5 {
	0%, 100% {
		transform: translate(0, 0) scale(1.05);
		opacity: 1;
	}
	38% {
		transform: translate(6px, -8px) scale(0.9);
		opacity: 0.8;
	}
	72% {
		transform: translate(-7px, 5px) scale(1.25);
		opacity: 0.7;
	}
}

/* Swarm color variants */
.unit-swarm.unit-blue .swarm-dot {
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(33, 150, 243, 0.8) 50%, rgba(21, 101, 192, 1) 100%);
	box-shadow: 0 0 10px rgba(33, 150, 243, 0.8);
}

.unit-swarm.unit-red .swarm-dot {
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(244, 67, 54, 0.8) 50%, rgba(198, 40, 40, 1) 100%);
	box-shadow: 0 0 10px rgba(244, 67, 54, 0.8);
}

.unit-swarm.unit-gold .swarm-dot {
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 193, 7, 0.8) 50%, rgba(255, 160, 0, 1) 100%);
	box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
}

.unit-swarm.unit-purple .swarm-dot {
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(156, 39, 176, 0.8) 50%, rgba(123, 31, 162, 1) 100%);
	box-shadow: 0 0 10px rgba(156, 39, 176, 0.8);
}

/* ===== PYRAMID VARIANT ===== */
/* Stacked chevrons - upward pointing energy theme */

.unit-pyramid {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.pyramid-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

/* Chevron/arrow layers that stack to form pyramid */
.pyramid-layer {
	position: relative;
	height: 10px;
	background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.8) 20%, rgba(0, 230, 118, 1) 50%, rgba(0, 230, 118, 0.8) 80%, transparent);
	border: 1px solid rgba(0, 230, 118, 0.6);
	box-shadow: 0 0 10px rgba(0, 230, 118, 0.6), inset 0 0 5px rgba(0, 230, 118, 0.3);
	clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.pyramid-layer:nth-child(1) {
	width: 15px;
}

.pyramid-layer:nth-child(2) {
	width: 28px;
}

.pyramid-layer:nth-child(3) {
	width: 41px;
}

.pyramid-layer:nth-child(4) {
	width: 54px;
}

/* Apex glow */
.pyramid-apex {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(0, 230, 118, 0.9));
	box-shadow: 0 0 12px rgba(0, 230, 118, 1);
	animation: pyramidApexPulse 2s ease-in-out infinite;
}

@keyframes pyramidApexPulse {
	0%, 100% {
		transform: translateX(-50%) scale(1);
		box-shadow: 0 0 12px rgba(0, 230, 118, 1);
	}
	50% {
		transform: translateX(-50%) scale(1.3);
		box-shadow: 0 0 20px rgba(0, 230, 118, 1);
	}
}

/* Pyramid color variants */
.unit-pyramid.unit-blue .pyramid-layer {
	background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.8) 20%, rgba(33, 150, 243, 1) 50%, rgba(33, 150, 243, 0.8) 80%, transparent);
	border-color: rgba(33, 150, 243, 0.6);
	box-shadow: 0 0 10px rgba(33, 150, 243, 0.6), inset 0 0 5px rgba(33, 150, 243, 0.3);
}

.unit-pyramid.unit-blue .pyramid-apex {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(33, 150, 243, 0.9));
	box-shadow: 0 0 12px rgba(33, 150, 243, 1);
}

.unit-pyramid.unit-red .pyramid-layer {
	background: linear-gradient(90deg, transparent, rgba(244, 67, 54, 0.8) 20%, rgba(244, 67, 54, 1) 50%, rgba(244, 67, 54, 0.8) 80%, transparent);
	border-color: rgba(244, 67, 54, 0.6);
	box-shadow: 0 0 10px rgba(244, 67, 54, 0.6), inset 0 0 5px rgba(244, 67, 54, 0.3);
}

.unit-pyramid.unit-red .pyramid-apex {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(244, 67, 54, 0.9));
	box-shadow: 0 0 12px rgba(244, 67, 54, 1);
}

.unit-pyramid.unit-gold .pyramid-layer {
	background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.8) 20%, rgba(255, 193, 7, 1) 50%, rgba(255, 193, 7, 0.8) 80%, transparent);
	border-color: rgba(255, 193, 7, 0.6);
	box-shadow: 0 0 10px rgba(255, 193, 7, 0.6), inset 0 0 5px rgba(255, 193, 7, 0.3);
}

.unit-pyramid.unit-gold .pyramid-apex {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 193, 7, 0.9));
	box-shadow: 0 0 12px rgba(255, 193, 7, 1);
}

.unit-pyramid.unit-purple .pyramid-layer {
	background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.8) 20%, rgba(156, 39, 176, 1) 50%, rgba(156, 39, 176, 0.8) 80%, transparent);
	border-color: rgba(156, 39, 176, 0.6);
	box-shadow: 0 0 10px rgba(156, 39, 176, 0.6), inset 0 0 5px rgba(156, 39, 176, 0.3);
}

.unit-pyramid.unit-purple .pyramid-apex {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(156, 39, 176, 0.9));
	box-shadow: 0 0 12px rgba(156, 39, 176, 1);
}

/* ===== NEURAL NODE VARIANT ===== */
/* AI Network nodes with connecting lines - digital/AI theme */

.unit-neural {
	position: relative;
	width: 60px;
	height: 60px;
	transform-style: preserve-3d;
	animation: floatUnit 3s ease-in-out infinite;
	transform: translateZ(15px);
}

/* Center node (larger) */
.neural-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(0, 230, 118, 0.8) 50%, rgba(0, 180, 90, 1) 100%);
	box-shadow: 0 0 20px rgba(0, 230, 118, 1), inset 0 0 10px rgba(255, 255, 255, 0.5);
	animation: neuralPulse 2s ease-in-out infinite;
}

@keyframes neuralPulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
	50% {
		transform: translate(-50%, -50%) scale(1.2);
		opacity: 0.8;
	}
}

/* Satellite nodes - orbit around center */
.neural-node {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(0, 230, 118, 0.9));
	box-shadow: 0 0 12px rgba(0, 230, 118, 0.9);
}

.neural-node:nth-child(2) {
	animation: nodeOrbit1 4s linear infinite;
}

.neural-node:nth-child(3) {
	animation: nodeOrbit2 4s linear infinite;
}

.neural-node:nth-child(4) {
	animation: nodeOrbit3 4s linear infinite;
}

.neural-node:nth-child(5) {
	animation: nodeOrbit4 4s linear infinite;
}

/* Circular orbit animations */
@keyframes nodeOrbit1 {
	0% {
		transform: translate(-50%, -50%) rotate(0deg) translateX(22px) rotate(0deg);
	}
	100% {
		transform: translate(-50%, -50%) rotate(360deg) translateX(22px) rotate(-360deg);
	}
}

@keyframes nodeOrbit2 {
	0% {
		transform: translate(-50%, -50%) rotate(90deg) translateX(22px) rotate(-90deg);
	}
	100% {
		transform: translate(-50%, -50%) rotate(450deg) translateX(22px) rotate(-450deg);
	}
}

@keyframes nodeOrbit3 {
	0% {
		transform: translate(-50%, -50%) rotate(180deg) translateX(22px) rotate(-180deg);
	}
	100% {
		transform: translate(-50%, -50%) rotate(540deg) translateX(22px) rotate(-540deg);
	}
}

@keyframes nodeOrbit4 {
	0% {
		transform: translate(-50%, -50%) rotate(270deg) translateX(22px) rotate(-270deg);
	}
	100% {
		transform: translate(-50%, -50%) rotate(630deg) translateX(22px) rotate(-630deg);
	}
}

/* Connection lines between nodes */
.neural-connection {
	position: absolute;
	height: 2px;
	background: linear-gradient(90deg, rgba(0, 230, 118, 0.6), rgba(0, 230, 118, 0.2));
	transform-origin: left center;
	animation: connectionPulse 2s ease-in-out infinite;
}

@keyframes connectionPulse {
	0%, 100% {
		opacity: 0.4;
	}
	50% {
		opacity: 1;
	}
}

.neural-connection:nth-child(6) {
	top: 20px;
	left: 30px;
	width: 18px;
	transform: rotate(-30deg);
}

.neural-connection:nth-child(7) {
	top: 30px;
	left: 38px;
	width: 18px;
	transform: rotate(30deg);
}

.neural-connection:nth-child(8) {
	bottom: 20px;
	left: 30px;
	width: 18px;
	transform: rotate(30deg);
}

.neural-connection:nth-child(9) {
	top: 30px;
	left: 18px;
	width: 18px;
	transform: rotate(-30deg);
}

/* Neural color variants */
.unit-neural.unit-blue .neural-center,
.unit-neural.unit-blue .neural-node {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(33, 150, 243, 0.8) 50%, rgba(21, 101, 192, 1) 100%);
	box-shadow: 0 0 20px rgba(33, 150, 243, 1);
}

.unit-neural.unit-blue .neural-connection {
	background: linear-gradient(90deg, rgba(33, 150, 243, 0.6), rgba(33, 150, 243, 0.2));
}

.unit-neural.unit-red .neural-center,
.unit-neural.unit-red .neural-node {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(244, 67, 54, 0.8) 50%, rgba(198, 40, 40, 1) 100%);
	box-shadow: 0 0 20px rgba(244, 67, 54, 1);
}

.unit-neural.unit-red .neural-connection {
	background: linear-gradient(90deg, rgba(244, 67, 54, 0.6), rgba(244, 67, 54, 0.2));
}

.unit-neural.unit-gold .neural-center,
.unit-neural.unit-gold .neural-node {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 193, 7, 0.8) 50%, rgba(255, 160, 0, 1) 100%);
	box-shadow: 0 0 20px rgba(255, 193, 7, 1);
}

.unit-neural.unit-gold .neural-connection {
	background: linear-gradient(90deg, rgba(255, 193, 7, 0.6), rgba(255, 193, 7, 0.2));
}

.unit-neural.unit-purple .neural-center,
.unit-neural.unit-purple .neural-node {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(156, 39, 176, 0.8) 50%, rgba(123, 31, 162, 1) 100%);
	box-shadow: 0 0 20px rgba(156, 39, 176, 1);
}

.unit-neural.unit-purple .neural-connection {
	background: linear-gradient(90deg, rgba(156, 39, 176, 0.6), rgba(156, 39, 176, 0.2));
}

/* ===== SIGNAL WAVE VARIANT ===== */
/* Pulsing concentric rings - data transmission/signal theme */

.unit-signal {
	position: relative;
	width: 60px;
	height: 60px;
	transform-style: preserve-3d;
	transform: translateZ(15px);
}

/* Core signal source */
.signal-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(0, 230, 118, 0.9));
	box-shadow: 0 0 15px rgba(0, 230, 118, 1), 0 0 30px rgba(0, 230, 118, 0.5);
	animation: corePulse 1.5s ease-in-out infinite;
}

@keyframes corePulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		box-shadow: 0 0 15px rgba(0, 230, 118, 1), 0 0 30px rgba(0, 230, 118, 0.5);
	}
	50% {
		transform: translate(-50%, -50%) scale(1.3);
		box-shadow: 0 0 25px rgba(0, 230, 118, 1), 0 0 50px rgba(0, 230, 118, 0.7);
	}
}

/* Expanding signal rings */
.signal-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 2px solid rgba(0, 230, 118, 0.8);
	animation: signalExpand 2s ease-out infinite;
}

.signal-ring:nth-child(2) {
	width: 25px;
	height: 25px;
	animation-delay: 0s;
}

.signal-ring:nth-child(3) {
	width: 40px;
	height: 40px;
	animation-delay: 0.5s;
}

.signal-ring:nth-child(4) {
	width: 55px;
	height: 55px;
	animation-delay: 1s;
}

@keyframes signalExpand {
	0% {
		transform: translate(-50%, -50%) scale(0.3);
		opacity: 1;
		border-width: 3px;
	}
	100% {
		transform: translate(-50%, -50%) scale(1.2);
		opacity: 0;
		border-width: 1px;
	}
}

/* Signal color variants */
.unit-signal.unit-blue .signal-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(33, 150, 243, 0.9));
	box-shadow: 0 0 15px rgba(33, 150, 243, 1), 0 0 30px rgba(33, 150, 243, 0.5);
}

.unit-signal.unit-blue .signal-ring {
	border-color: rgba(33, 150, 243, 0.8);
}

@keyframes corePulseBlue {
	0%, 100% {
		box-shadow: 0 0 15px rgba(33, 150, 243, 1), 0 0 30px rgba(33, 150, 243, 0.5);
	}
	50% {
		box-shadow: 0 0 25px rgba(33, 150, 243, 1), 0 0 50px rgba(33, 150, 243, 0.7);
	}
}

.unit-signal.unit-red .signal-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(244, 67, 54, 0.9));
	box-shadow: 0 0 15px rgba(244, 67, 54, 1), 0 0 30px rgba(244, 67, 54, 0.5);
}

.unit-signal.unit-red .signal-ring {
	border-color: rgba(244, 67, 54, 0.8);
}

.unit-signal.unit-gold .signal-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 193, 7, 0.9));
	box-shadow: 0 0 15px rgba(255, 193, 7, 1), 0 0 30px rgba(255, 193, 7, 0.5);
}

.unit-signal.unit-gold .signal-ring {
	border-color: rgba(255, 193, 7, 0.8);
}

.unit-signal.unit-purple .signal-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(156, 39, 176, 0.9));
	box-shadow: 0 0 15px rgba(156, 39, 176, 1), 0 0 30px rgba(156, 39, 176, 0.5);
}

.unit-signal.unit-purple .signal-ring {
	border-color: rgba(156, 39, 176, 0.8);
}

/* ===== QUANTUM ATOM VARIANT ===== */
/* Quantum/atomic structure with orbiting electrons - science/energy theme */

.unit-quantum {
	position: relative;
	width: 60px;
	height: 60px;
	transform-style: preserve-3d;
	animation: floatUnit 3s ease-in-out infinite;
	transform: translateZ(15px);
}

/* Central nucleus */
.quantum-nucleus {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(0, 230, 118, 0.9));
	box-shadow: 0 0 20px rgba(0, 230, 118, 1), inset 0 0 8px rgba(255, 255, 255, 0.8);
	animation: nucleusPulse 2s ease-in-out infinite;
}

@keyframes nucleusPulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		box-shadow: 0 0 20px rgba(0, 230, 118, 1), inset 0 0 8px rgba(255, 255, 255, 0.8);
	}
	50% {
		transform: translate(-50%, -50%) scale(1.15);
		box-shadow: 0 0 30px rgba(0, 230, 118, 1), inset 0 0 12px rgba(255, 255, 255, 1);
	}
}

/* Orbital rings */
.quantum-orbit {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 2px solid rgba(0, 230, 118, 0.4);
	border-radius: 50%;
	animation: orbitRotate 8s linear infinite;
}

.quantum-orbit:nth-child(2) {
	width: 45px;
	height: 18px;
	transform: translate(-50%, -50%) rotateX(75deg);
}

.quantum-orbit:nth-child(3) {
	width: 45px;
	height: 18px;
	transform: translate(-50%, -50%) rotateX(75deg) rotateY(60deg);
}

.quantum-orbit:nth-child(4) {
	width: 45px;
	height: 18px;
	transform: translate(-50%, -50%) rotateX(75deg) rotateY(120deg);
}

@keyframes orbitRotate {
	0% {
		opacity: 0.4;
	}
	50% {
		opacity: 0.7;
	}
	100% {
		opacity: 0.4;
	}
}

/* Electrons orbiting along the rings */
.quantum-electron {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(0, 230, 118, 1));
	box-shadow: 0 0 8px rgba(0, 230, 118, 1);
}

/* Electron on first orbital ring */
.quantum-electron:nth-child(5) {
	animation: electronOrbit1 3s linear infinite;
}

/* Electron on second orbital ring */
.quantum-electron:nth-child(6) {
	animation: electronOrbit2 3s linear infinite;
}

/* Electron on third orbital ring */
.quantum-electron:nth-child(7) {
	animation: electronOrbit3 3s linear infinite;
}

/* Orbital path 1 - matches first ring rotation */
@keyframes electronOrbit1 {
	0% {
		transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg) translateX(22.5px) rotateZ(0deg) rotateX(-75deg);
	}
	100% {
		transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg) translateX(22.5px) rotateZ(-360deg) rotateX(-75deg);
	}
}

/* Orbital path 2 - matches second ring rotation (60deg offset) */
@keyframes electronOrbit2 {
	0% {
		transform: translate(-50%, -50%) rotateX(75deg) rotateY(60deg) rotateZ(120deg) translateX(22.5px) rotateZ(-120deg) rotateY(-60deg) rotateX(-75deg);
	}
	100% {
		transform: translate(-50%, -50%) rotateX(75deg) rotateY(60deg) rotateZ(480deg) translateX(22.5px) rotateZ(-480deg) rotateY(-60deg) rotateX(-75deg);
	}
}

/* Orbital path 3 - matches third ring rotation (120deg offset) */
@keyframes electronOrbit3 {
	0% {
		transform: translate(-50%, -50%) rotateX(75deg) rotateY(120deg) rotateZ(240deg) translateX(22.5px) rotateZ(-240deg) rotateY(-120deg) rotateX(-75deg);
	}
	100% {
		transform: translate(-50%, -50%) rotateX(75deg) rotateY(120deg) rotateZ(600deg) translateX(22.5px) rotateZ(-600deg) rotateY(-120deg) rotateX(-75deg);
	}
}

/* Quantum color variants */
.unit-quantum.unit-blue .quantum-nucleus,
.unit-quantum.unit-blue .quantum-electron {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(33, 150, 243, 1));
	box-shadow: 0 0 20px rgba(33, 150, 243, 1);
}

.unit-quantum.unit-blue .quantum-orbit {
	border-color: rgba(33, 150, 243, 0.4);
}

.unit-quantum.unit-red .quantum-nucleus,
.unit-quantum.unit-red .quantum-electron {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(244, 67, 54, 1));
	box-shadow: 0 0 20px rgba(244, 67, 54, 1);
}

.unit-quantum.unit-red .quantum-orbit {
	border-color: rgba(244, 67, 54, 0.4);
}

.unit-quantum.unit-gold .quantum-nucleus,
.unit-quantum.unit-gold .quantum-electron {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 193, 7, 1));
	box-shadow: 0 0 20px rgba(255, 193, 7, 1);
}

.unit-quantum.unit-gold .quantum-orbit {
	border-color: rgba(255, 193, 7, 0.4);
}

.unit-quantum.unit-purple .quantum-nucleus,
.unit-quantum.unit-purple .quantum-electron {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(156, 39, 176, 1));
	box-shadow: 0 0 20px rgba(156, 39, 176, 1);
}

.unit-quantum.unit-purple .quantum-orbit {
	border-color: rgba(156, 39, 176, 0.4);
}

/* ===== TORUS VARIANT ===== */
/* 3D ring/donut shape - energy containment theme */

.unit-torus {
	position: relative;
	width: 60px;
	height: 60px;
	transform-style: preserve-3d;
	transform: translateZ(15px);
}

.torus-3d {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
}

/* Outer ring */
.torus-outer {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotateX(70deg);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 8px solid rgba(0, 230, 118, 0.9);
	box-shadow:
		0 0 20px rgba(0, 230, 118, 0.8),
		inset 0 0 15px rgba(0, 230, 118, 0.5);
}

/* Inner ring (smaller, creates donut effect) */
.torus-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotateX(70deg);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: radial-gradient(circle, transparent 40%, rgba(0, 230, 118, 0.3) 100%);
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Energy glow in center */
.torus-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(0, 230, 118, 0.8));
	box-shadow: 0 0 15px rgba(0, 230, 118, 1);
	animation: torusCorePulse 2s ease-in-out infinite;
}

@keyframes rotateTorus {
	0% {
		transform: rotateY(0deg);
	}
	100% {
		transform: rotateY(360deg);
	}
}

@keyframes torusCorePulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0.8;
	}
	50% {
		transform: translate(-50%, -50%) scale(1.3);
		opacity: 1;
	}
}

/* Torus color variants */
.unit-torus.unit-blue .torus-outer {
	border-color: rgba(33, 150, 243, 0.9);
	box-shadow:
		0 0 20px rgba(33, 150, 243, 0.8),
		inset 0 0 15px rgba(33, 150, 243, 0.5);
}

.unit-torus.unit-blue .torus-inner {
	background: radial-gradient(circle, transparent 40%, rgba(33, 150, 243, 0.3) 100%);
}

.unit-torus.unit-blue .torus-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(33, 150, 243, 0.8));
	box-shadow: 0 0 15px rgba(33, 150, 243, 1);
}

.unit-torus.unit-red .torus-outer {
	border-color: rgba(244, 67, 54, 0.9);
	box-shadow:
		0 0 20px rgba(244, 67, 54, 0.8),
		inset 0 0 15px rgba(244, 67, 54, 0.5);
}

.unit-torus.unit-red .torus-inner {
	background: radial-gradient(circle, transparent 40%, rgba(244, 67, 54, 0.3) 100%);
}

.unit-torus.unit-red .torus-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(244, 67, 54, 0.8));
	box-shadow: 0 0 15px rgba(244, 67, 54, 1);
}

.unit-torus.unit-gold .torus-outer {
	border-color: rgba(255, 193, 7, 0.9);
	box-shadow:
		0 0 20px rgba(255, 193, 7, 0.8),
		inset 0 0 15px rgba(255, 193, 7, 0.5);
}

.unit-torus.unit-gold .torus-inner {
	background: radial-gradient(circle, transparent 40%, rgba(255, 193, 7, 0.3) 100%);
}

.unit-torus.unit-gold .torus-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 193, 7, 0.8));
	box-shadow: 0 0 15px rgba(255, 193, 7, 1);
}

.unit-torus.unit-purple .torus-outer {
	border-color: rgba(156, 39, 176, 0.9);
	box-shadow:
		0 0 20px rgba(156, 39, 176, 0.8),
		inset 0 0 15px rgba(156, 39, 176, 0.5);
}

.unit-torus.unit-purple .torus-inner {
	background: radial-gradient(circle, transparent 40%, rgba(156, 39, 176, 0.3) 100%);
}

.unit-torus.unit-purple .torus-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(156, 39, 176, 0.8));
	box-shadow: 0 0 15px rgba(156, 39, 176, 1);
}

/* ===== FIREWALL VARIANT ===== */
/* Vertical barrier with scanning lines - security/defense theme */

.unit-firewall {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.firewall-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

/* Vertical bars */
.firewall-bar {
	width: 6px;
	height: 50px;
	background: linear-gradient(180deg, transparent, rgba(0, 230, 118, 0.8) 20%, rgba(0, 230, 118, 1) 50%, rgba(0, 230, 118, 0.8) 80%, transparent);
	border: 1px solid rgba(0, 230, 118, 0.6);
	box-shadow: 0 0 10px rgba(0, 230, 118, 0.6), inset 0 0 5px rgba(0, 230, 118, 0.3);
	position: relative;
	overflow: hidden;
}

.firewall-bar::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
	animation: firewall-scan 2s linear infinite;
}

.firewall-bar:nth-child(2)::after { animation-delay: 0.3s; }
.firewall-bar:nth-child(3)::after { animation-delay: 0.6s; }
.firewall-bar:nth-child(4)::after { animation-delay: 0.9s; }

@keyframes firewall-scan {
	0% { transform: translateY(0); opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { transform: translateY(50px); opacity: 0; }
}

/* Firewall color variants */
.unit-firewall.unit-blue .firewall-bar {
	background: linear-gradient(180deg, transparent, rgba(33, 150, 243, 0.8) 20%, rgba(33, 150, 243, 1) 50%, rgba(33, 150, 243, 0.8) 80%, transparent);
	border-color: rgba(33, 150, 243, 0.6);
	box-shadow: 0 0 10px rgba(33, 150, 243, 0.6), inset 0 0 5px rgba(33, 150, 243, 0.3);
}

.unit-firewall.unit-red .firewall-bar {
	background: linear-gradient(180deg, transparent, rgba(244, 67, 54, 0.8) 20%, rgba(244, 67, 54, 1) 50%, rgba(244, 67, 54, 0.8) 80%, transparent);
	border-color: rgba(244, 67, 54, 0.6);
	box-shadow: 0 0 10px rgba(244, 67, 54, 0.6), inset 0 0 5px rgba(244, 67, 54, 0.3);
}

.unit-firewall.unit-gold .firewall-bar {
	background: linear-gradient(180deg, transparent, rgba(255, 193, 7, 0.8) 20%, rgba(255, 193, 7, 1) 50%, rgba(255, 193, 7, 0.8) 80%, transparent);
	border-color: rgba(255, 193, 7, 0.6);
	box-shadow: 0 0 10px rgba(255, 193, 7, 0.6), inset 0 0 5px rgba(255, 193, 7, 0.3);
}

.unit-firewall.unit-purple .firewall-bar {
	background: linear-gradient(180deg, transparent, rgba(156, 39, 176, 0.8) 20%, rgba(156, 39, 176, 1) 50%, rgba(156, 39, 176, 0.8) 80%, transparent);
	border-color: rgba(156, 39, 176, 0.6);
	box-shadow: 0 0 10px rgba(156, 39, 176, 0.6), inset 0 0 5px rgba(156, 39, 176, 0.3);
}

/* ===== GRID VARIANT ===== */
/* Pulse grid - radar/scanning theme */

.unit-grid {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.grid-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 8px;
	padding: 10px;
}

/* Grid nodes */
.grid-node {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(0, 230, 118, 1));
	border: 1px solid rgba(0, 230, 118, 0.8);
	box-shadow: 0 0 10px rgba(0, 230, 118, 0.8);
	animation: grid-pulse 1.5s ease-in-out infinite;
}

/* Staggered pulse animation for wave effect */
.grid-node:nth-child(1) { animation-delay: 0s; }
.grid-node:nth-child(2) { animation-delay: 0.1s; }
.grid-node:nth-child(3) { animation-delay: 0.2s; }
.grid-node:nth-child(4) { animation-delay: 0.3s; }
.grid-node:nth-child(5) { animation-delay: 0.4s; }
.grid-node:nth-child(6) { animation-delay: 0.5s; }
.grid-node:nth-child(7) { animation-delay: 0.6s; }
.grid-node:nth-child(8) { animation-delay: 0.7s; }
.grid-node:nth-child(9) { animation-delay: 0.8s; }

@keyframes grid-pulse {
	0%, 100% {
		opacity: 0.4;
		transform: scale(0.8);
	}
	50% {
		opacity: 1;
		transform: scale(1.2);
	}
}

/* Grid color variants */
.unit-grid.unit-blue .grid-node {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(33, 150, 243, 1));
	border-color: rgba(33, 150, 243, 0.8);
	box-shadow: 0 0 10px rgba(33, 150, 243, 0.8);
}

.unit-grid.unit-red .grid-node {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(244, 67, 54, 1));
	border-color: rgba(244, 67, 54, 0.8);
	box-shadow: 0 0 10px rgba(244, 67, 54, 0.8);
}

.unit-grid.unit-gold .grid-node {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 193, 7, 1));
	border-color: rgba(255, 193, 7, 0.8);
	box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
}

.unit-grid.unit-purple .grid-node {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(156, 39, 176, 1));
	border-color: rgba(156, 39, 176, 0.8);
	box-shadow: 0 0 10px rgba(156, 39, 176, 0.8);
}

/* ===== BARRIER VARIANT ===== */
/* Horizontal energy plates - defensive wall theme */

.unit-barrier {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.barrier-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

/* Horizontal plates */
.barrier-plate {
	width: 50px;
	height: 6px;
	background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.8) 20%, rgba(0, 230, 118, 1) 50%, rgba(0, 230, 118, 0.8) 80%, transparent);
	border: 1px solid rgba(0, 230, 118, 0.6);
	box-shadow: 0 0 10px rgba(0, 230, 118, 0.6), inset 0 0 5px rgba(0, 230, 118, 0.3);
	position: relative;
}

/* Energy flow effect */
.barrier-plate::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -5px;
	width: 5px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
	animation: barrier-flow 1.5s linear infinite;
}

.barrier-plate:nth-child(2)::after { animation-delay: 0.3s; }
.barrier-plate:nth-child(3)::after { animation-delay: 0.6s; }
.barrier-plate:nth-child(4)::after { animation-delay: 0.9s; }

@keyframes barrier-flow {
	0% { transform: translateX(0); opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { transform: translateX(55px); opacity: 0; }
}

/* Barrier color variants */
.unit-barrier.unit-blue .barrier-plate {
	background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.8) 20%, rgba(33, 150, 243, 1) 50%, rgba(33, 150, 243, 0.8) 80%, transparent);
	border-color: rgba(33, 150, 243, 0.6);
	box-shadow: 0 0 10px rgba(33, 150, 243, 0.6), inset 0 0 5px rgba(33, 150, 243, 0.3);
}

.unit-barrier.unit-red .barrier-plate {
	background: linear-gradient(90deg, transparent, rgba(244, 67, 54, 0.8) 20%, rgba(244, 67, 54, 1) 50%, rgba(244, 67, 54, 0.8) 80%, transparent);
	border-color: rgba(244, 67, 54, 0.6);
	box-shadow: 0 0 10px rgba(244, 67, 54, 0.6), inset 0 0 5px rgba(244, 67, 54, 0.3);
}

.unit-barrier.unit-gold .barrier-plate {
	background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.8) 20%, rgba(255, 193, 7, 1) 50%, rgba(255, 193, 7, 0.8) 80%, transparent);
	border-color: rgba(255, 193, 7, 0.6);
	box-shadow: 0 0 10px rgba(255, 193, 7, 0.6), inset 0 0 5px rgba(255, 193, 7, 0.3);
}

.unit-barrier.unit-purple .barrier-plate {
	background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.8) 20%, rgba(156, 39, 176, 1) 50%, rgba(156, 39, 176, 0.8) 80%, transparent);
	border-color: rgba(156, 39, 176, 0.6);
	box-shadow: 0 0 10px rgba(156, 39, 176, 0.6), inset 0 0 5px rgba(156, 39, 176, 0.3);
}

/* ===== BLOCK VARIANT ===== */
/* Simple non-rotating cube face - solid defensive unit */

.unit-block {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.block-face {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 45px;
	height: 45px;
	background: linear-gradient(135deg, rgba(0, 230, 118, 0.6), rgba(0, 180, 90, 0.9) 50%, rgba(0, 140, 70, 1));
	border: 2px solid rgba(0, 230, 118, 1);
	box-shadow:
		0 0 20px rgba(0, 230, 118, 0.6),
		inset 5px 5px 10px rgba(255, 255, 255, 0.2),
		inset -5px -5px 10px rgba(0, 0, 0, 0.3);
}

/* Inner detail lines for depth */
.block-detail {
	position: absolute;
	background: rgba(0, 230, 118, 0.4);
}

.block-detail:nth-child(1) {
	top: 10px;
	left: 10px;
	right: 10px;
	height: 2px;
}

.block-detail:nth-child(2) {
	top: 10px;
	bottom: 10px;
	left: 10px;
	width: 2px;
}

.block-detail:nth-child(3) {
	bottom: 10px;
	left: 10px;
	right: 10px;
	height: 2px;
}

.block-detail:nth-child(4) {
	top: 10px;
	bottom: 10px;
	right: 10px;
	width: 2px;
}

/* Block color variants */
.unit-block.unit-blue .block-face {
	background: linear-gradient(135deg, rgba(33, 150, 243, 0.6), rgba(21, 101, 192, 0.9) 50%, rgba(13, 71, 161, 1));
	border-color: rgba(33, 150, 243, 1);
	box-shadow:
		0 0 20px rgba(33, 150, 243, 0.6),
		inset 5px 5px 10px rgba(255, 255, 255, 0.2),
		inset -5px -5px 10px rgba(0, 0, 0, 0.3);
}

.unit-block.unit-blue .block-detail {
	background: rgba(33, 150, 243, 0.4);
}

.unit-block.unit-red .block-face {
	background: linear-gradient(135deg, rgba(244, 67, 54, 0.6), rgba(198, 40, 40, 0.9) 50%, rgba(183, 28, 28, 1));
	border-color: rgba(244, 67, 54, 1);
	box-shadow:
		0 0 20px rgba(244, 67, 54, 0.6),
		inset 5px 5px 10px rgba(255, 255, 255, 0.2),
		inset -5px -5px 10px rgba(0, 0, 0, 0.3);
}

.unit-block.unit-red .block-detail {
	background: rgba(244, 67, 54, 0.4);
}

.unit-block.unit-gold .block-face {
	background: linear-gradient(135deg, rgba(255, 193, 7, 0.6), rgba(255, 160, 0, 0.9) 50%, rgba(245, 127, 23, 1));
	border-color: rgba(255, 193, 7, 1);
	box-shadow:
		0 0 20px rgba(255, 193, 7, 0.6),
		inset 5px 5px 10px rgba(255, 255, 255, 0.2),
		inset -5px -5px 10px rgba(0, 0, 0, 0.3);
}

.unit-block.unit-gold .block-detail {
	background: rgba(255, 193, 7, 0.4);
}

.unit-block.unit-purple .block-face {
	background: linear-gradient(135deg, rgba(156, 39, 176, 0.6), rgba(123, 31, 162, 0.9) 50%, rgba(74, 20, 140, 1));
	border-color: rgba(156, 39, 176, 1);
	box-shadow:
		0 0 20px rgba(156, 39, 176, 0.6),
		inset 5px 5px 10px rgba(255, 255, 255, 0.2),
		inset -5px -5px 10px rgba(0, 0, 0, 0.3);
}

.unit-block.unit-purple .block-detail {
	background: rgba(156, 39, 176, 0.4);
}

/* ===== FORTRESS VARIANT ===== */
/* Multiple overlapping shapes - heavy defense theme */

.unit-fortress {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.fortress-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Nested hexagon layers */
.fortress-layer {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 3px solid rgba(0, 230, 118, 0.8);
	background: rgba(0, 230, 118, 0.1);
	box-shadow: 0 0 10px rgba(0, 230, 118, 0.6), inset 0 0 8px rgba(0, 230, 118, 0.2);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.fortress-layer:nth-child(1) {
	width: 52px;
	height: 52px;
	border-width: 4px;
}

.fortress-layer:nth-child(2) {
	width: 40px;
	height: 40px;
}

.fortress-layer:nth-child(3) {
	width: 28px;
	height: 28px;
}

/* Center core */
.fortress-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	height: 14px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(0, 230, 118, 1));
	border: 2px solid rgba(0, 230, 118, 1);
	box-shadow: 0 0 15px rgba(0, 230, 118, 1);
	animation: fortressCorePulse 3s ease-in-out infinite;
}

@keyframes fortressCorePulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0.8;
	}
	50% {
		transform: translate(-50%, -50%) scale(1.15);
		opacity: 1;
	}
}

/* Fortress color variants */
.unit-fortress.unit-blue .fortress-layer {
	border-color: rgba(33, 150, 243, 0.8);
	background: rgba(33, 150, 243, 0.1);
	box-shadow: 0 0 10px rgba(33, 150, 243, 0.6), inset 0 0 8px rgba(33, 150, 243, 0.2);
}

.unit-fortress.unit-blue .fortress-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(33, 150, 243, 1));
	border-color: rgba(33, 150, 243, 1);
	box-shadow: 0 0 15px rgba(33, 150, 243, 1);
}

.unit-fortress.unit-red .fortress-layer {
	border-color: rgba(244, 67, 54, 0.8);
	background: rgba(244, 67, 54, 0.1);
	box-shadow: 0 0 10px rgba(244, 67, 54, 0.6), inset 0 0 8px rgba(244, 67, 54, 0.2);
}

.unit-fortress.unit-red .fortress-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(244, 67, 54, 1));
	border-color: rgba(244, 67, 54, 1);
	box-shadow: 0 0 15px rgba(244, 67, 54, 1);
}

.unit-fortress.unit-gold .fortress-layer {
	border-color: rgba(255, 193, 7, 0.8);
	background: rgba(255, 193, 7, 0.1);
	box-shadow: 0 0 10px rgba(255, 193, 7, 0.6), inset 0 0 8px rgba(255, 193, 7, 0.2);
}

.unit-fortress.unit-gold .fortress-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 193, 7, 1));
	border-color: rgba(255, 193, 7, 1);
	box-shadow: 0 0 15px rgba(255, 193, 7, 1);
}

.unit-fortress.unit-purple .fortress-layer {
	border-color: rgba(156, 39, 176, 0.8);
	background: rgba(156, 39, 176, 0.1);
	box-shadow: 0 0 10px rgba(156, 39, 176, 0.6), inset 0 0 8px rgba(156, 39, 176, 0.2);
}

.unit-fortress.unit-purple .fortress-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(156, 39, 176, 1));
	border-color: rgba(156, 39, 176, 1);
	box-shadow: 0 0 15px rgba(156, 39, 176, 1);
}

/* ===== ARMOR VARIANT ===== */
/* Overlapping plates/scales - segmented armor theme */

.unit-armor {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.armor-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 6px;
	padding: 12px;
}

/* Armor plates */
.armor-plate {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(0, 230, 118, 0.5), rgba(0, 180, 90, 0.9));
	border: 2px solid rgba(0, 230, 118, 0.8);
	box-shadow: 0 0 10px rgba(0, 230, 118, 0.5), inset 0 0 8px rgba(0, 230, 118, 0.2);
	clip-path: polygon(15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%, 0% 15%);
}

/* Armor color variants */
.unit-armor.unit-blue .armor-plate {
	background: linear-gradient(135deg, rgba(33, 150, 243, 0.5), rgba(21, 101, 192, 0.9));
	border-color: rgba(33, 150, 243, 0.8);
	box-shadow: 0 0 10px rgba(33, 150, 243, 0.5), inset 0 0 8px rgba(33, 150, 243, 0.2);
}

.unit-armor.unit-red .armor-plate {
	background: linear-gradient(135deg, rgba(244, 67, 54, 0.5), rgba(198, 40, 40, 0.9));
	border-color: rgba(244, 67, 54, 0.8);
	box-shadow: 0 0 10px rgba(244, 67, 54, 0.5), inset 0 0 8px rgba(244, 67, 54, 0.2);
}

.unit-armor.unit-gold .armor-plate {
	background: linear-gradient(135deg, rgba(255, 193, 7, 0.5), rgba(255, 160, 0, 0.9));
	border-color: rgba(255, 193, 7, 0.8);
	box-shadow: 0 0 10px rgba(255, 193, 7, 0.5), inset 0 0 8px rgba(255, 193, 7, 0.2);
}

.unit-armor.unit-purple .armor-plate {
	background: linear-gradient(135deg, rgba(156, 39, 176, 0.5), rgba(123, 31, 162, 0.9));
	border-color: rgba(156, 39, 176, 0.8);
	box-shadow: 0 0 10px rgba(156, 39, 176, 0.5), inset 0 0 8px rgba(156, 39, 176, 0.2);
}

/* ===== BULWARK VARIANT ===== */
/* Thick cross pattern - solid immovable defense */

.unit-bulwark {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.bulwark-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Vertical beam */
.bulwark-vertical {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
	height: 50px;
	background: linear-gradient(180deg, rgba(0, 230, 118, 0.6), rgba(0, 230, 118, 1) 50%, rgba(0, 230, 118, 0.6));
	border: 2px solid rgba(0, 230, 118, 0.8);
	box-shadow: 0 0 15px rgba(0, 230, 118, 0.7), inset 0 0 8px rgba(0, 230, 118, 0.3);
}

/* Horizontal beam */
.bulwark-horizontal {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 12px;
	background: linear-gradient(90deg, rgba(0, 230, 118, 0.6), rgba(0, 230, 118, 1) 50%, rgba(0, 230, 118, 0.6));
	border: 2px solid rgba(0, 230, 118, 0.8);
	box-shadow: 0 0 15px rgba(0, 230, 118, 0.7), inset 0 0 8px rgba(0, 230, 118, 0.3);
}

/* Center reinforcement */
.bulwark-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 18px;
	height: 18px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(0, 230, 118, 1));
	border: 3px solid rgba(0, 230, 118, 1);
	box-shadow: 0 0 20px rgba(0, 230, 118, 1);
}

/* Bulwark color variants */
.unit-bulwark.unit-blue .bulwark-vertical,
.unit-bulwark.unit-blue .bulwark-horizontal {
	background: linear-gradient(180deg, rgba(33, 150, 243, 0.6), rgba(33, 150, 243, 1) 50%, rgba(33, 150, 243, 0.6));
	border-color: rgba(33, 150, 243, 0.8);
	box-shadow: 0 0 15px rgba(33, 150, 243, 0.7), inset 0 0 8px rgba(33, 150, 243, 0.3);
}

.unit-bulwark.unit-blue .bulwark-center {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(33, 150, 243, 1));
	border-color: rgba(33, 150, 243, 1);
	box-shadow: 0 0 20px rgba(33, 150, 243, 1);
}

.unit-bulwark.unit-red .bulwark-vertical,
.unit-bulwark.unit-red .bulwark-horizontal {
	background: linear-gradient(180deg, rgba(244, 67, 54, 0.6), rgba(244, 67, 54, 1) 50%, rgba(244, 67, 54, 0.6));
	border-color: rgba(244, 67, 54, 0.8);
	box-shadow: 0 0 15px rgba(244, 67, 54, 0.7), inset 0 0 8px rgba(244, 67, 54, 0.3);
}

.unit-bulwark.unit-red .bulwark-center {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(244, 67, 54, 1));
	border-color: rgba(244, 67, 54, 1);
	box-shadow: 0 0 20px rgba(244, 67, 54, 1);
}

.unit-bulwark.unit-gold .bulwark-vertical,
.unit-bulwark.unit-gold .bulwark-horizontal {
	background: linear-gradient(180deg, rgba(255, 193, 7, 0.6), rgba(255, 193, 7, 1) 50%, rgba(255, 193, 7, 0.6));
	border-color: rgba(255, 193, 7, 0.8);
	box-shadow: 0 0 15px rgba(255, 193, 7, 0.7), inset 0 0 8px rgba(255, 193, 7, 0.3);
}

.unit-bulwark.unit-gold .bulwark-center {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 193, 7, 1));
	border-color: rgba(255, 193, 7, 1);
	box-shadow: 0 0 20px rgba(255, 193, 7, 1);
}

.unit-bulwark.unit-purple .bulwark-vertical,
.unit-bulwark.unit-purple .bulwark-horizontal {
	background: linear-gradient(180deg, rgba(156, 39, 176, 0.6), rgba(156, 39, 176, 1) 50%, rgba(156, 39, 176, 0.6));
	border-color: rgba(156, 39, 176, 0.8);
	box-shadow: 0 0 15px rgba(156, 39, 176, 0.7), inset 0 0 8px rgba(156, 39, 176, 0.3);
}

.unit-bulwark.unit-purple .bulwark-center {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(156, 39, 176, 1));
	border-color: rgba(156, 39, 176, 1);
	box-shadow: 0 0 20px rgba(156, 39, 176, 1);
}

/* ===== BLADE VARIANT ===== */
/* Radiating spikes - aggressive offensive unit */

.unit-blade {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.blade-container {
	position: relative;
	width: 100%;
	height: 100%;
	animation: bladeRotate 8s linear infinite;
}

/* Spike blades */
.blade-spike {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4px;
	height: 28px;
	background: linear-gradient(180deg, rgba(0, 230, 118, 1), transparent);
	box-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
	transform-origin: bottom center;
}

.blade-spike:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); }
.blade-spike:nth-child(2) { transform: translate(-50%, -100%) rotate(45deg); }
.blade-spike:nth-child(3) { transform: translate(-50%, -100%) rotate(90deg); }
.blade-spike:nth-child(4) { transform: translate(-50%, -100%) rotate(135deg); }
.blade-spike:nth-child(5) { transform: translate(-50%, -100%) rotate(180deg); }
.blade-spike:nth-child(6) { transform: translate(-50%, -100%) rotate(225deg); }
.blade-spike:nth-child(7) { transform: translate(-50%, -100%) rotate(270deg); }
.blade-spike:nth-child(8) { transform: translate(-50%, -100%) rotate(315deg); }

@keyframes bladeRotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Center core */
.blade-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(0, 230, 118, 1));
	box-shadow: 0 0 15px rgba(0, 230, 118, 1);
}

/* Blade color variants */
.unit-blade.unit-blue .blade-spike {
	background: linear-gradient(180deg, rgba(33, 150, 243, 1), transparent);
	box-shadow: 0 0 8px rgba(33, 150, 243, 0.8);
}

.unit-blade.unit-blue .blade-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(33, 150, 243, 1));
	box-shadow: 0 0 15px rgba(33, 150, 243, 1);
}

.unit-blade.unit-red .blade-spike {
	background: linear-gradient(180deg, rgba(244, 67, 54, 1), transparent);
	box-shadow: 0 0 8px rgba(244, 67, 54, 0.8);
}

.unit-blade.unit-red .blade-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(244, 67, 54, 1));
	box-shadow: 0 0 15px rgba(244, 67, 54, 1);
}

.unit-blade.unit-gold .blade-spike {
	background: linear-gradient(180deg, rgba(255, 193, 7, 1), transparent);
	box-shadow: 0 0 8px rgba(255, 193, 7, 0.8);
}

.unit-blade.unit-gold .blade-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 193, 7, 1));
	box-shadow: 0 0 15px rgba(255, 193, 7, 1);
}

.unit-blade.unit-purple .blade-spike {
	background: linear-gradient(180deg, rgba(156, 39, 176, 1), transparent);
	box-shadow: 0 0 8px rgba(156, 39, 176, 0.8);
}

.unit-blade.unit-purple .blade-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(156, 39, 176, 1));
	box-shadow: 0 0 15px rgba(156, 39, 176, 1);
}

/* ===== LANCE VARIANT ===== */
/* Horizontal beam with flowing particles - directional attack */

.unit-lance {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.lance-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Main beam */
.lance-beam {
	position: relative;
	width: 54px;
	height: 6px;
	background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.8) 20%, rgba(0, 230, 118, 1) 50%, rgba(0, 230, 118, 0.8) 80%, transparent);
	border: 1px solid rgba(0, 230, 118, 0.6);
	box-shadow: 0 0 12px rgba(0, 230, 118, 0.7);
	overflow: hidden;
}

/* Energy particles flowing along beam */
.lance-beam::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -8px;
	width: 8px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
	animation: lanceFlow 1s linear infinite;
}

@keyframes lanceFlow {
	0% { transform: translateX(0); opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { transform: translateX(62px); opacity: 0; }
}

/* Pointed tip */
.lance-tip {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 12px solid rgba(0, 230, 118, 1);
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	filter: drop-shadow(0 0 8px rgba(0, 230, 118, 1));
}

/* Lance color variants */
.unit-lance.unit-blue .lance-beam {
	background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.8) 20%, rgba(33, 150, 243, 1) 50%, rgba(33, 150, 243, 0.8) 80%, transparent);
	border-color: rgba(33, 150, 243, 0.6);
	box-shadow: 0 0 12px rgba(33, 150, 243, 0.7);
}

.unit-lance.unit-blue .lance-tip {
	border-left-color: rgba(33, 150, 243, 1);
	filter: drop-shadow(0 0 8px rgba(33, 150, 243, 1));
}

.unit-lance.unit-red .lance-beam {
	background: linear-gradient(90deg, transparent, rgba(244, 67, 54, 0.8) 20%, rgba(244, 67, 54, 1) 50%, rgba(244, 67, 54, 0.8) 80%, transparent);
	border-color: rgba(244, 67, 54, 0.6);
	box-shadow: 0 0 12px rgba(244, 67, 54, 0.7);
}

.unit-lance.unit-red .lance-tip {
	border-left-color: rgba(244, 67, 54, 1);
	filter: drop-shadow(0 0 8px rgba(244, 67, 54, 1));
}

.unit-lance.unit-gold .lance-beam {
	background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.8) 20%, rgba(255, 193, 7, 1) 50%, rgba(255, 193, 7, 0.8) 80%, transparent);
	border-color: rgba(255, 193, 7, 0.6);
	box-shadow: 0 0 12px rgba(255, 193, 7, 0.7);
}

.unit-lance.unit-gold .lance-tip {
	border-left-color: rgba(255, 193, 7, 1);
	filter: drop-shadow(0 0 8px rgba(255, 193, 7, 1));
}

.unit-lance.unit-purple .lance-beam {
	background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.8) 20%, rgba(156, 39, 176, 1) 50%, rgba(156, 39, 176, 0.8) 80%, transparent);
	border-color: rgba(156, 39, 176, 0.6);
	box-shadow: 0 0 12px rgba(156, 39, 176, 0.7);
}

.unit-lance.unit-purple .lance-tip {
	border-left-color: rgba(156, 39, 176, 1);
	filter: drop-shadow(0 0 8px rgba(156, 39, 176, 1));
}

/* ===== SCATTER VARIANT ===== */
/* Angular shards orbiting chaotically - aggressive DPS */

.unit-scatter {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.scatter-container {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Angular shards */
.scatter-shard {
	position: absolute;
	width: 8px;
	height: 16px;
	background: linear-gradient(180deg, rgba(0, 230, 118, 1), rgba(0, 230, 118, 0.6));
	box-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
	clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Chaotic orbital animations */
.scatter-shard:nth-child(1) {
	top: 30%;
	left: 30%;
	animation: scatterOrbit1 2s ease-in-out infinite;
}

.scatter-shard:nth-child(2) {
	top: 20%;
	left: 50%;
	animation: scatterOrbit2 2.2s ease-in-out infinite;
}

.scatter-shard:nth-child(3) {
	top: 40%;
	left: 60%;
	animation: scatterOrbit3 1.8s ease-in-out infinite;
}

.scatter-shard:nth-child(4) {
	top: 50%;
	left: 20%;
	animation: scatterOrbit4 2.5s ease-in-out infinite;
}

.scatter-shard:nth-child(5) {
	top: 60%;
	left: 40%;
	animation: scatterOrbit5 2.1s ease-in-out infinite;
}

@keyframes scatterOrbit1 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	50% { transform: translate(12px, -8px) rotate(180deg); }
}

@keyframes scatterOrbit2 {
	0%, 100% { transform: translate(0, 0) rotate(45deg); }
	50% { transform: translate(-10px, 10px) rotate(225deg); }
}

@keyframes scatterOrbit3 {
	0%, 100% { transform: translate(0, 0) rotate(90deg); }
	50% { transform: translate(8px, 12px) rotate(270deg); }
}

@keyframes scatterOrbit4 {
	0%, 100% { transform: translate(0, 0) rotate(135deg); }
	50% { transform: translate(-12px, -6px) rotate(315deg); }
}

@keyframes scatterOrbit5 {
	0%, 100% { transform: translate(0, 0) rotate(180deg); }
	50% { transform: translate(10px, -10px) rotate(360deg); }
}

/* Center point */
.scatter-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(0, 230, 118, 1));
	box-shadow: 0 0 12px rgba(0, 230, 118, 1);
}

/* Scatter color variants */
.unit-scatter.unit-blue .scatter-shard {
	background: linear-gradient(180deg, rgba(33, 150, 243, 1), rgba(33, 150, 243, 0.6));
	box-shadow: 0 0 8px rgba(33, 150, 243, 0.8);
}

.unit-scatter.unit-blue .scatter-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(33, 150, 243, 1));
	box-shadow: 0 0 12px rgba(33, 150, 243, 1);
}

.unit-scatter.unit-red .scatter-shard {
	background: linear-gradient(180deg, rgba(244, 67, 54, 1), rgba(244, 67, 54, 0.6));
	box-shadow: 0 0 8px rgba(244, 67, 54, 0.8);
}

.unit-scatter.unit-red .scatter-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(244, 67, 54, 1));
	box-shadow: 0 0 12px rgba(244, 67, 54, 1);
}

.unit-scatter.unit-gold .scatter-shard {
	background: linear-gradient(180deg, rgba(255, 193, 7, 1), rgba(255, 193, 7, 0.6));
	box-shadow: 0 0 8px rgba(255, 193, 7, 0.8);
}

.unit-scatter.unit-gold .scatter-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 193, 7, 1));
	box-shadow: 0 0 12px rgba(255, 193, 7, 1);
}

.unit-scatter.unit-purple .scatter-shard {
	background: linear-gradient(180deg, rgba(156, 39, 176, 1), rgba(156, 39, 176, 0.6));
	box-shadow: 0 0 8px rgba(156, 39, 176, 0.8);
}

.unit-scatter.unit-purple .scatter-core {
	background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(156, 39, 176, 1));
	box-shadow: 0 0 12px rgba(156, 39, 176, 1);
}

/* ===== SPIKE VARIANT ===== */
/* Sharp angular chevrons - static aggressive geometry */

.unit-spike {
	position: relative;
	width: 60px;
	height: 60px;
	transform: translateZ(15px);
}

.spike-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Chevron spikes pointing outward */
.spike-chevron {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 22px solid rgba(0, 230, 118, 0.9);
	filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
	transform-origin: center;
}

.spike-chevron:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); }
.spike-chevron:nth-child(2) { transform: translate(-50%, -100%) rotate(90deg); }
.spike-chevron:nth-child(3) { transform: translate(-50%, -100%) rotate(180deg); }
.spike-chevron:nth-child(4) { transform: translate(-50%, -100%) rotate(270deg); }

/* Center core */
.spike-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	height: 14px;
	background: linear-gradient(135deg, rgba(0, 230, 118, 0.7), rgba(0, 180, 90, 1));
	border: 2px solid rgba(0, 230, 118, 1);
	box-shadow: 0 0 15px rgba(0, 230, 118, 0.8);
	clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Spike color variants */
.unit-spike.unit-blue .spike-chevron {
	border-bottom-color: rgba(33, 150, 243, 0.9);
	filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.6));
}

.unit-spike.unit-blue .spike-core {
	background: linear-gradient(135deg, rgba(33, 150, 243, 0.7), rgba(21, 101, 192, 1));
	border-color: rgba(33, 150, 243, 1);
	box-shadow: 0 0 15px rgba(33, 150, 243, 0.8);
}

.unit-spike.unit-red .spike-chevron {
	border-bottom-color: rgba(244, 67, 54, 0.9);
	filter: drop-shadow(0 0 8px rgba(244, 67, 54, 0.6));
}

.unit-spike.unit-red .spike-core {
	background: linear-gradient(135deg, rgba(244, 67, 54, 0.7), rgba(198, 40, 40, 1));
	border-color: rgba(244, 67, 54, 1);
	box-shadow: 0 0 15px rgba(244, 67, 54, 0.8);
}

.unit-spike.unit-gold .spike-chevron {
	border-bottom-color: rgba(255, 193, 7, 0.9);
	filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
}

.unit-spike.unit-gold .spike-core {
	background: linear-gradient(135deg, rgba(255, 193, 7, 0.7), rgba(255, 160, 0, 1));
	border-color: rgba(255, 193, 7, 1);
	box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
}

.unit-spike.unit-purple .spike-chevron {
	border-bottom-color: rgba(156, 39, 176, 0.9);
	filter: drop-shadow(0 0 8px rgba(156, 39, 176, 0.6));
}

.unit-spike.unit-purple .spike-core {
	background: linear-gradient(135deg, rgba(156, 39, 176, 0.7), rgba(123, 31, 162, 1));
	border-color: rgba(156, 39, 176, 1);
	box-shadow: 0 0 15px rgba(156, 39, 176, 0.8);
}

/* ===== CUBE VARIANT ===== */
/* Simple 3D cube - classic geometric shape */

.unit-cube {
	position: relative;
	width: 60px;
	height: 60px;
	transform-style: preserve-3d;
	animation: floatUnit 3s ease-in-out infinite, rotateCube 12s linear infinite;
	transform: translateZ(15px);
}

.cube-3d-simple {
	position: relative;
	width: 35px;
	height: 35px;
	margin: 12.5px auto;
	transform-style: preserve-3d;
}

.cube-face-simple {
	position: absolute;
	width: 35px;
	height: 35px;
	background: linear-gradient(135deg, rgba(0, 230, 118, 0.85), rgba(0, 180, 90, 0.95));
	border: 2px solid rgba(0, 230, 118, 1);
	box-shadow: 0 0 15px rgba(0, 230, 118, 0.6), inset 0 0 10px rgba(0, 230, 118, 0.3);
}

.cube-face-simple.cube-front {
	transform: translateZ(17.5px);
}

.cube-face-simple.cube-back {
	transform: rotateY(180deg) translateZ(17.5px);
}

.cube-face-simple.cube-right {
	transform: rotateY(90deg) translateZ(17.5px);
}

.cube-face-simple.cube-left {
	transform: rotateY(-90deg) translateZ(17.5px);
}

.cube-face-simple.cube-top {
	transform: rotateX(90deg) translateZ(17.5px);
}

.cube-face-simple.cube-bottom {
	transform: rotateX(-90deg) translateZ(17.5px);
}

@keyframes rotateCube {
	0% {
		transform: translateZ(15px) rotateX(-25deg) rotateY(0deg);
	}
	100% {
		transform: translateZ(15px) rotateX(-25deg) rotateY(360deg);
	}
}

/* Cube color variants */
.unit-cube.unit-blue .cube-face-simple {
	background: linear-gradient(135deg, rgba(33, 150, 243, 0.85), rgba(21, 101, 192, 0.95));
	border-color: rgba(33, 150, 243, 1);
	box-shadow: 0 0 15px rgba(33, 150, 243, 0.6), inset 0 0 10px rgba(33, 150, 243, 0.3);
}

.unit-cube.unit-red .cube-face-simple {
	background: linear-gradient(135deg, rgba(244, 67, 54, 0.85), rgba(198, 40, 40, 0.95));
	border-color: rgba(244, 67, 54, 1);
	box-shadow: 0 0 15px rgba(244, 67, 54, 0.6), inset 0 0 10px rgba(244, 67, 54, 0.3);
}

.unit-cube.unit-gold .cube-face-simple {
	background: linear-gradient(135deg, rgba(255, 193, 7, 0.85), rgba(255, 160, 0, 0.95));
	border-color: rgba(255, 193, 7, 1);
	box-shadow: 0 0 15px rgba(255, 193, 7, 0.6), inset 0 0 10px rgba(255, 193, 7, 0.3);
}

.unit-cube.unit-purple .cube-face-simple {
	background: linear-gradient(135deg, rgba(156, 39, 176, 0.85), rgba(123, 31, 162, 0.95));
	border-color: rgba(156, 39, 176, 1);
	box-shadow: 0 0 15px rgba(156, 39, 176, 0.6), inset 0 0 10px rgba(156, 39, 176, 0.3);
}
