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: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  margin: 0 auto;
  max-width: 340px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  text-align: center;
  transform: translateY(140%);
  opacity: 0;
}

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

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

@keyframes bottom-loop {
  0% {
    transform: translateY(140%);
    opacity: 0;
  }
  20% {
    transform: translateY(0);
    opacity: 1;
  }
  78% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(140%);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast.is-demo {
    animation: none;
    transform: translateY(0);
    opacity: 1;
  }
}
