* {
  box-sizing: border-box;
}

.typing-ellipsis {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 10rem;
  border-bottom-left-radius: 0.125rem;
  background-color: rgb(var(--contrast-600), 0.4);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
}

.circle {
  position: relative;
  height: 0.5rem;
  width: 0.5rem;
  background: rgb(var(--contrast-800));
  border-radius: 50%;
}
.circle:first-of-type {
  animation: ellipsis-typing-indicator 1.2s infinite;
}
.circle:nth-of-type(2) {
  animation: ellipsis-typing-indicator 1.2s infinite 0.2s;
}
.circle:nth-of-type(3) {
  animation: ellipsis-typing-indicator 1.2s infinite 0.4s;
}

@keyframes ellipsis-typing-indicator {
  0% {
    top: 0;
  }
  6.25% {
    top: -1px;
  }
  12.5% {
    top: 0;
    background: rgb(var(--contrast-1000));
  }
  18.75% {
    top: 1px;
  }
  25% {
    top: 0;
  }
}