/* Full-screen celebration after Stripe claim — mirrors claw win overlay energy, above wallet (7500) & help (8000). */
.coin-purchase-success-overlay {
  --cps-sun: #fefae0;
  --cps-glow: rgba(149, 213, 178, 0.5);
  --cps-deep: #1b4332;

  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(5, 18, 12, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  animation: coin-purchase-success-fade 0.45s ease both;
}

.coin-purchase-success-overlay[hidden] {
  display: none !important;
}

.coin-purchase-success-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: min(92vw, 28rem);
  pointer-events: none;
}

.coin-purchase-success-overlay__headline {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: clamp(1.65rem, 7vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.15;
  color: var(--cps-sun);
  text-shadow:
    0 3px 0 var(--cps-deep),
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 42px var(--cps-glow);
  transform: rotate(-1deg) scale(0.88);
  animation: coin-purchase-success-pop 0.58s cubic-bezier(0.34, 1.45, 0.64, 1) 0.08s both;
}

.coin-purchase-success-overlay__hint {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: max(0.95rem, 15px);
  font-weight: 600;
  color: rgba(216, 243, 220, 0.88);
  text-align: center;
  opacity: 0;
  animation: coin-purchase-success-hint-in 0.4s ease 0.55s forwards;
}

@keyframes coin-purchase-success-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes coin-purchase-success-pop {
  to {
    transform: rotate(-1deg) scale(1);
  }
}

@keyframes coin-purchase-success-hint-in {
  to {
    opacity: 1;
  }
}
