.signup-bonus-toast-stack {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}

.signup-bonus-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(22.5rem, calc(100vw - 2.5rem));
  padding: 0.9rem 0.8rem 0.9rem 0.9rem;
  border-radius: 0.6rem;
  border: 3px solid var(--hentai-ink, #0b0507);
  background:
    radial-gradient(rgba(255, 61, 139, 0.14) 1px, transparent 1.4px) 0 0 / 9px 9px,
    var(--hentai-cream, #fff7f0);
  box-shadow:
    6px 6px 0 var(--hentai-pink, #ff3d8b),
    6px 6px 0 3px var(--hentai-ink, #0b0507);
  opacity: 0;
  transform: translateY(1rem) rotate(-1.5deg) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.signup-bonus-toast::before {
  content: "BONUS!";
  position: absolute;
  top: -0.85rem;
  left: 0.9rem;
  padding: 0.12rem 0.55rem;
  border: 2px solid var(--hentai-ink, #0b0507);
  border-radius: 0.3rem;
  background: var(--hentai-yellow, #ffd166);
  box-shadow: 2px 2px 0 var(--hentai-ink, #0b0507);
  color: var(--hentai-ink, #0b0507);
  font-family: var(--hentai-display, "Dela Gothic One", sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
}

.signup-bonus-toast.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg) scale(1);
}

.signup-bonus-toast.is-leaving {
  opacity: 0;
  transform: translateY(0.75rem) rotate(-1.5deg) scale(0.96);
  transition-duration: 0.25s;
}

.signup-bonus-toast__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  border: 3px solid var(--hentai-ink, #0b0507);
  background: var(--hentai-yellow, #ffd166);
  box-shadow: 3px 3px 0 var(--hentai-ink, #0b0507);
}

.signup-bonus-toast__icon {
  --coin-size: 2rem;
}

.signup-bonus-toast__content {
  flex: 1;
  min-width: 0;
}

.signup-bonus-toast__title {
  margin: 0 0 0.25rem;
  font-family: var(--hentai-display, "Dela Gothic One", sans-serif);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--hentai-ink, #0b0507);
  text-shadow: 2px 2px 0 var(--hentai-pink-soft, #ff7eb3);
}

.signup-bonus-toast__message {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3b1d29;
}

.signup-bonus-toast__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 2px solid var(--hentai-ink, #0b0507);
  border-radius: 999px;
  background: var(--hentai-pink, #ff3d8b);
  box-shadow: 2px 2px 0 var(--hentai-ink, #0b0507);
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.signup-bonus-toast__close:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--hentai-ink, #0b0507);
}

.signup-bonus-toast__close .material-symbols-outlined {
  font-size: 1.05rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .signup-bonus-toast {
    transition: none;
  }
}
