


.animated {
  transition: all 0.2s ease;
}

.animated:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25), 0 0 6px rgba(255, 255, 255, 0.08);
}

.upgraded {
  background: rgba(59, 130, 246, 0.28) !important;
  border: 1px solid rgba(59, 130, 246, 0.8) !important;
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.45), 0 10px 26px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.animated.upgraded:hover {
  background: rgba(59, 130, 246, 0.22) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35), 0 0 10px rgba(147, 197, 253, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.standard {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(107, 114, 128, 0.25);
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.animated.standard:hover {
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 3px 12px rgba(107, 114, 128, 0.18), 0 0 6px rgba(156, 163, 175, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.locked {
  filter: grayscale(1) brightness(0.8);
  cursor: default;
}

.animated.locked:hover {
  transform: none;
  box-shadow: none;
}

.highlight {
  background: rgba(147, 197, 253, 0.6);
}
.highlightStandard {
  background: rgba(107, 114, 128, 0.3);
}

.compactCard {
  min-height: unset;
  padding-bottom: 4px;
}

.topHighlight {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
}
.glassySheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}
.innerGlow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(80% 60% at 50% 40%, rgba(147, 197, 253, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.factionBadge {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
}

.factionIcon {
  width: 24px;
  height: 24px;
}

.imageContainer {
  justify-content: center;
  align-items: center;
  min-height: 40px;
}

.unitImage {
  height: 30px;
  width: auto;
}

.unitImageCompact {
  height: 28px;
  width: auto;
}

.infoStack {
  gap: var(--mantine-spacing-xs);
  align-items: center;
}

.mainGroup {
  gap: var(--mantine-spacing-xs);
  justify-content: center;
  align-items: baseline;
}

.reinforcementGroup {
  gap: 3px;
  align-items: baseline;
}

.infinityText {
  color: white;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.countGroup {
  gap: 2px;
  align-items: baseline;
}

.countText {
  color: white;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.countTextZero {
  color: var(--mantine-color-red-3);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.maxCountText {
  color: var(--mantine-color-gray-5);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.lockedText {
  color: var(--mantine-color-gray-5);
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.capturedLabel {
  color: var(--mantine-color-red-3);
  font-weight: 600;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 3px rgba(239, 68, 68, 0.8), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.capturedCount {
  color: var(--mantine-color-red-4);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 4px rgba(239, 68, 68, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.popoverDropdown {
  padding: 0;
}