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

.toast {
  position: relative;
  overflow: hidden;
  width: min(280px, 84vw);
  padding: 16px;
  border-radius: 16px;
  background: #17141a;
  color: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.toast__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  font-family: inherit;
}

.toast__text {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  font-family: inherit;
  opacity: 0.78;
}

.toast__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: #2f6df6;
  transform-origin: left;
  transform: scaleX(1);
}

.toast.is-demo .toast__bar {
  animation: bar-shrink 2s linear infinite;
}

.toast.is-demo {
  animation: toast-out 2s ease-out infinite;
}

@keyframes bar-shrink {
  0% {
    transform: scaleX(1);
  }
  82% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes toast-out {
  0%, 82% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast.is-demo {
    animation: none;
  }
  .toast.is-demo .toast__bar {
    animation: bar-shrink 5000ms linear forwards;
  }
}
