#note-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(520px, calc(100% - 32px));
  z-index: 1000;
  pointer-events: none;
}

.note {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
  border-left: 5px solid var(--color-accent);
  border-radius: 12px;
  background: var(--color-primary);
  color: var(--color-text);
  box-shadow: var(--shadow);
  font: 700 1.05rem / 1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  pointer-events: auto;
  animation: note-in 0.25s ease-out;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.note.leaving {
  opacity: 0;
  transform: translateY(-8px);
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}
