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);
}

.row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 109, 246, 0.4), rgba(47, 109, 246, 0) 70%);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}
.row.is-demo .glow {
  animation: glow-loop 2s ease-out infinite;
}

.bubble {
  position: relative;
  padding: 14px 20px;
  border-radius: 16px;
  background: #2f6df6;
  color: #fff;
  font-weight: 600;
  font-size: clamp(14px, 4.5vw, 17px);
  line-height: 1.4;
  font-family: inherit;
}

.status {
  position: relative;
  width: 26px;
  height: 26px;
  color: #2f6df6;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  font-family: inherit;
}

.unread, .check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.check {
  color: #2f6df6;
}

.row.is-demo .unread {
  animation: unread-out-loop 2s ease-out infinite;
}

.row.is-demo .check {
  animation: check-in-loop 2s ease-out infinite;
}

@keyframes unread-out-loop {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  48% {
    opacity: 1;
    transform: scale(1);
  }
  58% {
    opacity: 0;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes check-in-loop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  48% {
    opacity: 0;
    transform: scale(0.4);
  }
  62% {
    opacity: 1;
    transform: scale(1.15);
  }
  72% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes glow-loop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  44% {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 0;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}
@media (prefers-reduced-motion: reduce) {
  .row.is-demo .unread, .row.is-demo .check, .glow {
    animation: none !important;
  }
  .row.is-demo .unread {
    opacity: 0;
  }
  .row.is-demo .check {
    opacity: 1;
    transform: none;
  }
  .glow {
    opacity: 0;
  }
}
