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 {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: min(360px, 88vw);
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1.2;
  font-family: inherit;
}
.toasts li {
  padding: clamp(8px, 2.6vw, 11px) clamp(14px, 3.6vw, 18px);
  border-radius: 999px;
  background: #fff7e6;
  color: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

@keyframes exit-1 {
  0%, 5% {
    opacity: 0;
    transform: translateY(-8px);
  }
  15%, 78% {
    opacity: 1;
    transform: translateY(0);
  }
  90%, 100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes exit-2 {
  0%, 15% {
    opacity: 0;
    transform: translateY(-8px);
  }
  25%, 63% {
    opacity: 1;
    transform: translateY(0);
  }
  75%, 100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes exit-3 {
  0%, 25% {
    opacity: 0;
    transform: translateY(-8px);
  }
  35%, 53% {
    opacity: 1;
    transform: translateY(0);
  }
  65%, 100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.toasts li:nth-child(1) {
  animation: exit-1 2s ease-out infinite;
}

.toasts li:nth-child(2) {
  animation: exit-2 2s ease-out infinite;
}

.toasts li:nth-child(3) {
  animation: exit-3 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .toasts li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
