html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatarWrap {
  position: relative;
  width: 48px;
  height: 48px;
}

.avatar {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #2f6df6;
}

.ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid #2f6df6;
  opacity: 0;
  animation-duration: var(--period, 900ms);
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.ring.is-typing {
  animation-name: ringPulse;
}

@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
.status {
  font-size: 13px;
  color: #17141a;
}

@media (max-width: 340px) {
  .avatarWrap {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ring {
    animation: none;
    opacity: 0;
  }
}
