@layer blocks {
  .avatars {
    display: flex;
    justify-content: flex-end;
  }

  .avatar {
    display: grid;
    place-items: center;
    inline-size: var(--avatar-size);
    aspect-ratio: 1;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    color: var(--color-ink);
    background: oklch(80% 0.12 var(--hue));
    border: 2px solid var(--color-edge);
    border-radius: 50%;

    /* Several players on one row overlap like a stack of coins */
    & + & {
      margin-inline-start: calc(var(--avatar-overlap) * -1);
    }

    /* Faded with a dark tint and not opacity, or overlapping bubbles show through each other */
    &[data-playing] {
      color: var(--color-text-muted);
      background: oklch(32% 0.04 var(--hue));
    }

    &[data-more] {
      color: var(--color-text);
      background: var(--color-surface-raised);
    }
  }
}
