* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #090d16;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.trigger-btn {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
  transition: transform 0.2s ease;
}

.trigger-btn:hover {
  transform: translateY(-2px);
}

/* 🌟 @starting-style with transition-behavior: allow-discrete */
.toast {
  display: none;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  background: #1e293b;
  border: 1px solid #a855f7;
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 320px;
  font-size: 0.9rem;
  color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  transition: opacity 0.35s ease, transform 0.35s ease, display 0.35s allow-discrete;
}

.toast.open {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);

  @starting-style {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
}

