/* Leaderboard avatars + equipped frames (64×64). Shared fx classes with profile. */
.lb-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
  isolation: isolate;
  vertical-align: middle;
}

.lb-avatar-wrap .lb-avatar,
.lb-avatar-wrap .lb-avatar.lb-avatar,
.lb-avatar {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid #1a1a1e;
  flex-shrink: 0;
  background: #101014;
  display: block;
  position: relative;
  z-index: 1;
  margin: 0;
}

.lb-avatar--empty {
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 700;
}

.lb-avatar-wrap::before,
.lb-avatar-wrap::after {
  pointer-events: none;
}

.lb-avatar-wrap.fx-neon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  border: 2px solid #3cf6ff;
  box-shadow: 0 0 8px #3cf6ff, 0 0 16px #ff2bd6, inset 0 0 8px rgb(60 246 255 / 0.25);
  animation: wd-fx-neon 1.8s ease-in-out infinite;
}

.lb-avatar-wrap.fx-loyal::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 7px;
  box-shadow: 0 0 0 2px #d4a017, 0 0 12px rgb(242 169 0 / 0.5);
}

.lb-avatar-wrap.fx-seed::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 112%, rgb(74 180 80 / 0.5), transparent 58%);
  box-shadow: 0 0 12px rgb(80 170 70 / 0.35);
}

.lb-avatar-wrap.fx-seed::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 3px;
  height: 7px;
  background: repeating-linear-gradient(90deg, #4caf50 0 3px, transparent 3px 7px);
  opacity: 0.7;
}

.lb-avatar-wrap.fx-platinum::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  box-shadow: 0 0 0 2px #cfd8e3, 0 0 12px rgb(200 220 240 / 0.5);
  background: linear-gradient(120deg, transparent 28%, rgb(255 255 255 / 0.35) 50%, transparent 72%);
  background-size: 220% 100%;
  animation: wd-fx-shimmer 2.4s linear infinite;
}

.lb-avatar-wrap.fx-laurel::before,
.lb-avatar-wrap.fx-laurel::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 12px;
  border: 2px solid var(--accent, #f2a900);
  z-index: 2;
}

.lb-avatar-wrap.fx-laurel::before {
  left: 0;
  border-radius: 80% 12% 12% 80%;
  border-right-color: transparent;
  box-shadow: -2px 0 6px rgb(201 162 39 / 0.35);
}

.lb-avatar-wrap.fx-laurel::after {
  right: 0;
  border-radius: 12% 80% 80% 12%;
  border-left-color: transparent;
  box-shadow: 2px 0 6px rgb(201 162 39 / 0.35);
}

.lb-avatar-wrap.fx-profit::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 6px;
  box-shadow: 0 0 0 2px #e6b422, 0 0 14px rgb(230 180 34 / 0.55);
}

.lb-avatar-wrap.fx-profit::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 6px;
  background: repeating-linear-gradient(90deg, #f2c14e 0 6px, #b8860b 6px 8px);
  opacity: 0.85;
  z-index: 2;
}

.lb-avatar-wrap.fx-ember::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 7px;
  box-shadow: 0 0 0 2px #ff6a00, 0 0 14px rgb(255 80 0 / 0.55);
  z-index: 1;
}

.lb-avatar-wrap.fx-ice::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 7px;
  box-shadow: 0 0 0 2px #7ec8ff, 0 0 12px rgb(120 200 255 / 0.5);
  z-index: 1;
}

.lb-avatar-wrap.fx-void::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 7px;
  box-shadow: 0 0 0 2px #8b5cf6, 0 0 14px rgb(139 92 246 / 0.55);
  z-index: 1;
}

/* Steam-style ornamental frames on LB (frame box = wrap; avatar in hole) */
.lb-avatar-wrap.fx-sniper,
.lb-avatar-wrap.fx-pilot,
.lb-avatar-wrap.fx-soldier,
.lb-avatar-wrap.fx-mortar {
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 4px 12px 4px 6px;
  overflow: visible;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.lb-avatar-wrap.fx-sniper {
  --fx-hw: 0.6214;
  --fx-hh: 0.6351;
  --fx-cx: 0.5282;
  --fx-cy: 0.5473;
}
.lb-avatar-wrap.fx-pilot {
  --fx-hw: 0.7069;
  --fx-hh: 0.5450;
  --fx-cx: 0.5099;
  --fx-cy: 0.5130;
}
.lb-avatar-wrap.fx-soldier {
  --fx-hw: 0.7008;
  --fx-hh: 0.5878;
  --fx-cx: 0.5008;
  --fx-cy: 0.4153;
}
.lb-avatar-wrap.fx-mortar {
  --fx-hw: 0.6779;
  --fx-hh: 0.6153;
  --fx-cx: 0.5076;
  --fx-cy: 0.4275;
}

.lb-avatar-wrap.fx-sniper .lb-avatar,
.lb-avatar-wrap.fx-pilot .lb-avatar,
.lb-avatar-wrap.fx-soldier .lb-avatar,
.lb-avatar-wrap.fx-mortar .lb-avatar {
  position: absolute !important;
  left: calc(var(--fx-cx) * 100% - var(--fx-hw) * 50% * 1.14);
  top: calc(var(--fx-cy) * 100% - var(--fx-hh) * 50% * 1.14);
  width: calc(var(--fx-hw) * 100% * 1.14) !important;
  height: calc(var(--fx-hh) * 100% * 1.14) !important;
  max-width: none;
  max-height: none;
  transform: none;
  border-radius: 2px;
  object-fit: cover;
  z-index: 1;
}

.lb-avatar-wrap.fx-sniper::before,
.lb-avatar-wrap.fx-pilot::before,
.lb-avatar-wrap.fx-soldier::before,
.lb-avatar-wrap.fx-mortar::before {
  content: none;
}

.lb-avatar-wrap.fx-sniper::after,
.lb-avatar-wrap.fx-pilot::after,
.lb-avatar-wrap.fx-soldier::after,
.lb-avatar-wrap.fx-mortar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
}

.lb-avatar-wrap.fx-sniper::after {
  background-image: url('/avatar-fx/sniper.png?v=20261006049000');
}
.lb-avatar-wrap.fx-pilot::after {
  background-image: url('/avatar-fx/pilot.png?v=20261006049000');
}
.lb-avatar-wrap.fx-soldier::after {
  background-image: url('/avatar-fx/soldier.png?v=20261006049000');
}
.lb-avatar-wrap.fx-mortar::after {
  background-image: url('/avatar-fx/mortar.png?v=20261006049000');
}

@keyframes wd-fx-sniper-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

@keyframes wd-fx-neon {
  0%, 100% { box-shadow: 0 0 8px #3cf6ff, 0 0 16px #ff2bd6; }
  50% { box-shadow: 0 0 16px #3cf6ff, 0 0 28px #ff2bd6; }
}

@keyframes wd-fx-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.lb-player {
  min-width: 200px;
  max-width: 360px;
}

.lb-player strong {
  gap: 8px;
  flex-wrap: wrap;
}

.lb-clan-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid color-mix(in oklab, var(--accent, #f2a900) 45%, #2a2a30);
  background: color-mix(in oklab, var(--accent, #f2a900) 14%, #121218);
  color: var(--accent, #f2a900) !important;
  font-family: var(--font-display, inherit);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  text-transform: uppercase;
  line-height: 1.2;
}

.lb-clan-tag:hover {
  background: color-mix(in oklab, var(--accent, #f2a900) 26%, #121218);
  border-color: var(--accent, #f2a900);
  color: #fff !important;
}

.lb-clan-tag--plain {
  cursor: default;
  opacity: 0.9;
}

.lb-rank-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(76%) sepia(55%) saturate(700%) hue-rotate(2deg) brightness(105%) contrast(102%);
}

.lb-player-link {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.lb-player-link:hover .lb-player-name {
  color: var(--accent, #f2a900);
}

.lb-table td {
  vertical-align: middle;
}

@media (max-width: 720px) {
  .lb-avatar-wrap {
    width: 48px;
    height: 48px;
    padding: 4px;
  }
  .lb-avatar-wrap .lb-avatar,
  .lb-avatar {
    width: 40px;
    height: 40px;
  }
}
