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

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  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: 16px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #17141a;
  flex: none;
}

.bubble {
  position: relative;
  height: 44px;
  width: calc(var(--w, 56) * 1px);
  border-radius: 16px;
  background: #17141a;
  overflow: hidden;
}

.dots, .msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff7e6;
}

.msg {
  color: #fff7e6;
  font-size: 13px;
  white-space: nowrap;
  padding: 0 12px;
  opacity: 0;
}

@media (max-width: 340px) {
  .bubble {
    height: 38px;
  }
  .avatar {
    width: 26px;
    height: 26px;
  }
  .msg {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dots, .msg {
    transition: none;
  }
}
