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

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

.wrap {
  position: relative;
  display: inline-block;
}

.bubble {
  padding: 16px 24px;
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 600;
  font-size: clamp(15px, 4.8vw, 18px);
  line-height: 1.4;
  font-family: inherit;
  transform-origin: center;
}
.wrap.is-demo .bubble {
  animation: bubble-settle-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.reaction {
  position: absolute;
  right: -16px;
  bottom: -16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: scale(0);
  transform-origin: center;
}
.wrap.is-demo .reaction {
  animation: reaction-pop-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes bubble-settle-loop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1);
  }
  66% {
    transform: scale(0.96);
  }
  76% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes reaction-pop-loop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  55% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.3);
    opacity: 1;
  }
  80% {
    transform: scale(1);
    opacity: 1;
  }
  96% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wrap.is-demo .bubble, .wrap.is-demo .reaction {
    animation: none !important;
  }
  .wrap.is-demo .reaction {
    transform: scale(1);
    opacity: 1;
  }
}
