/* ==========================================================================
   Component — Rank Badge (gold circle with rank number)
   ========================================================================== */

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-surface-dark);
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--color-accent) 70%, #000);
  box-shadow: 0 1px 2px color-mix(in srgb, #000 15%, transparent);

  /* Default: small */
  width: 1.75rem;
  height: 1.75rem;
  font-size: var(--font-size-xs);

  &--md {
    width: 2.75rem;
    height: 2.75rem;
    font-size: var(--font-size-sm);
  }

  &--lg {
    width: 3.5rem;
    height: 3.5rem;
    font-size: var(--font-size-body);
  }

  &--overlay {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    box-shadow: var(--shadow-md);
  }
}
