/* Emblèmes de rang Kergoal */
.rank-emblem {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
}

.rank-emblem__glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0.85;
  filter: blur(6px);
  z-index: 0;
  animation: rankGlowPulse 2.8s ease-in-out infinite;
}

.rank-emblem__shield {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 18%, 100% 72%, 50% 100%, 0% 72%, 0% 18%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.rank-emblem__icon {
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.rank-emblem--sm .rank-emblem__shield {
  width: 2rem;
  height: 2.25rem;
  font-size: 0.65rem;
}

.rank-emblem--md .rank-emblem__shield {
  width: 3rem;
  height: 3.35rem;
  font-size: 0.85rem;
}

.rank-emblem--lg .rank-emblem__shield {
  width: 4.5rem;
  height: 5rem;
  font-size: 1.15rem;
}

.rank-emblem--xl .rank-emblem__shield {
  width: 6rem;
  height: 6.75rem;
  font-size: 1.5rem;
}

.rank-emblem--placement .rank-emblem__shield {
  animation: rankPlacementPulse 2s ease-in-out infinite;
}

.rank-emblem--placement .rank-emblem__icon {
  animation: rankPlacementSpin 4s linear infinite;
}

@keyframes rankGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes rankPlacementPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

@keyframes rankPlacementSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rank-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}

.rank-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1.75rem;
}

.rank-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--rank-glow, rgba(87, 176, 226, 0.4)), transparent 70%);
  pointer-events: none;
}

.rank-tier-ladder__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.rank-tier-ladder__item--active {
  border-color: rgba(255, 180, 0, 0.45);
  background: rgba(255, 180, 0, 0.08);
}

.rank-tier-ladder__item--placement-active {
  border-color: rgba(87, 176, 226, 0.45);
  background: rgba(87, 176, 226, 0.1);
}

.player-profile-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.player-profile-link:hover {
  color: #57b0e2;
}

.bot-tag-mini {
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(168, 85, 247, 0.15);
  color: #c4b5fd;
  font-weight: 600;
  vertical-align: middle;
}
