
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

.toast {
  --toast-accent: var(--mana);
  position: relative;
  box-sizing: border-box;
  max-width: min(26rem, 100%);
  padding: .62rem 1.15rem .62rem 1.05rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--font-chrome), serif;
  font-size: .95rem;
  letter-spacing: .04em;
  text-align: center;
  color: var(--bone);
  background:
    linear-gradient(180deg, rgba(24, 25, 31, .97), rgba(14, 15, 20, .97)) padding-box,
    var(--gilt-lit) border-box;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
  cursor: pointer;
  pointer-events: auto;
  animation: toast-in .22s var(--ease-out, ease-out);
}

.toast::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--toast-accent);
  box-shadow: 0 0 8px var(--toast-accent);
}

.toast-success { --toast-accent: var(--life); }
.toast-error { --toast-accent: var(--ember); }
.toast-info { --toast-accent: var(--mana); }
.toast-loot {
  --toast-accent: var(--gold);
  color: var(--gold-bright);
}

.toast.out { animation: toast-out .18s ease-in forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .toast.out { animation-duration: 1ms; }
}

@media (max-width: 640px) {
  .toast-stack { bottom: 10px; width: calc(100vw - 24px); }
  .toast { max-width: 100%; font-size: .86rem; padding: .55rem .9rem .55rem .95rem; }
}
