.FloatingAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
  cursor: inherit;
  animation: FloatingAvatar-floatNatural 6s ease-in-out infinite;
}

.FloatingAvatar-clickable {
  cursor: pointer;
}

.FloatingAvatar-contained {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  opacity: 0.7;
  animation: FloatingAvatar-floatContained 6s ease-in-out infinite;
}

.FloatingAvatar-opaque {
  opacity: 1;
}

@keyframes FloatingAvatar-floatNatural {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(3px, -5px) rotate(2deg);
  }
  50% {
    transform: translate(-2px, -10px) rotate(-1deg);
  }
  75% {
    transform: translate(4px, -7px) rotate(1deg);
  }
}

@keyframes FloatingAvatar-floatContained {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, -2px);
  }
  50% {
    transform: translate(-1px, -3px);
  }
  75% {
    transform: translate(1px, -2px);
  }
}

/* Mobile: smaller avatars, subtler floating animation */
@media (max-width: 768px) {
  .FloatingAvatar {
    width: 22px;
    height: 22px;
    animation: FloatingAvatar-floatSubtle 8s ease-in-out infinite;
  }

  @keyframes FloatingAvatar-floatSubtle {
    0%,
    100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(0, -3px);
    }
  }
}
