/* ============================================================================
   AVATAR
   Sizes: 28, 34, 36, 40, 44, 56, 64px. Photo or initials (~0.32x diameter).
   Fill follows the player's status.
   Size is set via the --avatar-size custom property (see component_helper.rb).
   ============================================================================ */

.avatar {
  --avatar-size: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: var(--r-pill);
  flex-shrink: 0;
  overflow: hidden;
  font-family: var(--font);
  font-weight: var(--fw-bold);
  font-size: calc(var(--avatar-size) * 0.32);
  line-height: 1;
  background: var(--sf2);
  color: var(--tx2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--mint   { background: var(--mint);   color: var(--mint-tx); }
.avatar--butter { background: var(--butter); color: var(--butter-tx); }
.avatar--peach  { background: var(--peach);  color: var(--peach-tx); }
.avatar--lilac  { background: var(--lilac);  color: var(--lilac-tx); }
.avatar--accent { background: var(--ac-bg);  color: var(--ac-text); }
