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

.lchat {
  position: relative;
  width: 260px;
  height: 150px;
}

.lchat__launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #ff9ebb, #b9a0ff);
  color: #17141a;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.lchat__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: scale(0.85);
}

.lchat__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 0 2px #ff4d1f;
}

.lchat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 224px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.lchat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #17141a;
}

.lchat__close {
  border: 0;
  background: none;
  padding: 0;
  color: #6b6875;
  cursor: pointer;
}

.lchat__msg {
  margin: 8px 0;
  padding: 8px;
  border-radius: 8px;
  background: #f4f0fa;
  font-size: 12px;
  color: #3a2f1f;
}

.lchat__input-row {
  display: flex;
  gap: 4px;
}

.lchat__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #e7e5ea;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-family: inherit;
}

.lchat__send {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: #b9a0ff;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.stage.is-demo .lchat__ring {
  animation: lchat-ping 2s ease-out infinite;
}

.stage.is-demo .lchat__badge {
  animation: lchat-bounce 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes lchat-ping {
  0% {
    opacity: 0.5;
    transform: scale(0.85);
  }
  70% {
    opacity: 0;
    transform: scale(1.25);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}
@keyframes lchat-bounce {
  0%, 40%, 100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .lchat__ring {
    animation: none;
    opacity: 0;
  }
  .stage.is-demo .lchat__badge {
    animation: none;
  }
}
