/* toasts.css — 1s popups for buy messages */
#toasts {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
}

.toast {
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;

  /* ~1s total: 120ms in, show ~700ms, 180ms out */
  animation: toast-in 120ms ease-out forwards, toast-out 180ms ease-in forwards 820ms;
}

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