/* transparent canvas for OBS; toast rises bottom-center */
html, body { margin: 0; background: transparent; overflow: hidden; }
#stack {
  position: fixed; left: 50%; bottom: 48px;
  transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; gap: 16px; align-items: center;
}
.popup {
  font-family: "JetBrains Mono", monospace;
  background: rgba(16, 16, 24, 0.92);
  color: #e8e8f0;
  border-left: 6px solid #9146ff;
  border-radius: 12px;
  padding: 28px 44px;
  min-width: 560px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  animation: risein 0.4s ease-out, fadeout 0.5s ease-in 5.5s forwards;
  display: flex; align-items: center; gap: 28px;
}
.popup .headline { font-size: 34px; font-weight: 700; color: #b89bff; }
.popup .detail { font-size: 24px; margin-top: 8px; }
.popup.cheer { border-left-color: #00c8af; }
.popup.cheer .headline { color: #7fe8db; }
.popup .sprite {
  height: 150px; width: auto;
  /* v2 sprite has real colors (blue eyes, red mouth): no invert.
     Light sticker chip keeps black ink readable on the dark card. */
  background: #eef0f4;
  border-radius: 14px;
  padding: 6px;
}
@keyframes risein {
  from { transform: translateY(140%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeout { to { opacity: 0; transform: translateY(12px); } }
