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

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(280px, 84vw);
  padding: 16px;
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
}

.badge__layer {
  grid-area: 1/1;
}

.badge__neutral {
  color: #17141a;
  opacity: 0.3;
}

.badge__colored {
  color: #2f6df6;
  opacity: 0;
}

.badge__check {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.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.is-demo .badge__neutral {
  animation: fade-out 2s ease-out infinite;
}
.toast.is-demo .badge__colored {
  animation: fade-in 2s ease-out infinite;
}
.toast.is-demo .badge__check {
  animation: draw 2s ease-out infinite;
}

@keyframes fade-out {
  0%, 15% {
    opacity: 0.3;
  }
  32%, 80% {
    opacity: 0;
  }
  95%, 100% {
    opacity: 0.3;
  }
}
@keyframes fade-in {
  0%, 15% {
    opacity: 0;
  }
  32%, 80% {
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
  }
}
@keyframes draw {
  0%, 22% {
    stroke-dashoffset: 100;
  }
  55%, 100% {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast.is-demo .badge__neutral {
    animation: none;
    opacity: 0;
  }
  .toast.is-demo .badge__colored {
    animation: none;
    opacity: 1;
  }
  .toast.is-demo .badge__check {
    animation: none;
    stroke-dashoffset: 0;
  }
}
