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

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

.toasts {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: clamp(14px, 4vw, 20px);
}

.toasts__trigger {
  border: 0;
  border-radius: 12px;
  padding: clamp(10px, 3.4vw, 14px) clamp(18px, 5.6vw, 24px);
  font-weight: 700;
  font-size: clamp(13px, 3.8vw, 15px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  background: #fff7e6;
  cursor: pointer;
}

.toasts__list {
  position: relative;
  width: min(210px, 78vw);
  height: 118px;
}

.toast {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  padding: 9px 14px;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 600;
  font-size: clamp(11.5px, 3.2vw, 13px);
  line-height: 1.2;
  font-family: inherit;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
  transform: translateY(16px);
}

.toast--3 {
  background: #2f6df6;
  color: #fff7e6;
}

.toasts__list.is-demo .toast--1 {
  animation: slot-1 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.toasts__list.is-demo .toast--2 {
  animation: slot-2 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.toasts__list.is-demo .toast--3 {
  animation: slot-3 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.toasts__list.is-replaying .toast--1 {
  animation: slot-1 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1;
}
.toasts__list.is-replaying .toast--2 {
  animation: slot-2 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1;
}
.toasts__list.is-replaying .toast--3 {
  animation: slot-3 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1;
}

@keyframes slot-1 {
  0%, 4% {
    opacity: 0;
    transform: translateY(16px) scale(1);
  }
  12%, 38% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50%, 68% {
    opacity: 0.88;
    transform: translateY(-42px) scale(0.96);
  }
  80%, 92% {
    opacity: 0.7;
    transform: translateY(-84px) scale(0.92);
  }
  98%, 100% {
    opacity: 0;
    transform: translateY(-84px) scale(0.92);
  }
}
@keyframes slot-2 {
  0%, 40% {
    opacity: 0;
    transform: translateY(16px) scale(1);
  }
  50%, 68% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80%, 92% {
    opacity: 0.88;
    transform: translateY(-42px) scale(0.96);
  }
  98%, 100% {
    opacity: 0;
    transform: translateY(-42px) scale(0.96);
  }
}
@keyframes slot-3 {
  0%, 70% {
    opacity: 0;
    transform: translateY(16px) scale(1);
  }
  80%, 92% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  98%, 100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .toasts__list.is-demo .toast,
  .toasts__list.is-replaying .toast {
    animation: none !important;
  }
  .toast--1 {
    opacity: 0.7;
    transform: translateY(-84px);
  }
  .toast--2 {
    opacity: 0.88;
    transform: translateY(-42px);
  }
  .toast--3 {
    opacity: 1;
    transform: translateY(0);
  }
}
