.factionTabBar {
  background: var(--faction-tab-bar-bg);
  padding: 8px 12px;
  position: sticky;
  top: 0;
  z-index: var(--z-faction-tab-bar);
  overflow: hidden;
}

.factionTabBar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  pointer-events: none;
  opacity: 0.7;
}

.tab {
  width: 44px;
  height: 36px;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: var(--faction-tab-border);
  background: var(--faction-tab-bg);
  box-shadow: var(--faction-tab-shadow);
  position: relative;
  overflow: hidden;
}

.tab:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.tab:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.tab + .tab {
  border-left: none;
}

.active {
  background: var(--faction-tab-active-bg);
  box-shadow: var(--faction-tab-active-shadow);
}

.pinned {
  background: var(--faction-tab-pinned-bg);
  box-shadow: var(--faction-tab-pinned-shadow);
}

.activePlayerIndicator {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 1) 100%);
  box-shadow:
    0 0 8px rgba(34, 197, 94, 0.6),
    0 0 4px rgba(34, 197, 94, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: activePlayerPulse 2s ease-in-out infinite;
}

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

.img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) brightness(0.9);
  transition: filter 0.2s ease;
}

.imgActive {
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3)) brightness(1.1);
}

.imgPinned {
  filter: drop-shadow(0 2px 4px rgba(74, 158, 255, 0.4)) brightness(1.2);
}

.btnTab {
  border-left: none;
  transition: all 0.2s ease;
  width: auto;
  min-width: 50px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.btnLeft {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btnRight {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-left: none;
}

.icon {
  color: var(--mantine-color-gray-5);
  transition: color 0.2s ease;
  line-height: 1;
}

.iconTech {
  --active-color: var(--mantine-color-blue-4);
  --pinned-color: var(--mantine-color-blue-3);
}

.iconComp {
  --active-color: var(--mantine-color-green-4);
  --pinned-color: var(--mantine-color-green-3);
}

.iconActive {
  color: var(--active-color);
}

.iconPinned {
  color: var(--pinned-color);
}

.text {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--mantine-color-gray-5);
  font-weight: 600;
  transition: color 0.2s ease;
}

.textTech {
  --active-color: var(--mantine-color-blue-4);
  --pinned-color: var(--mantine-color-blue-3);
}

.textComp {
  --active-color: var(--mantine-color-green-4);
  --pinned-color: var(--mantine-color-green-3);
}

.textActive {
  color: var(--active-color);
}

.textPinned {
  color: var(--pinned-color);
}