/* Celebrate-offer modal + confetti canvas. */

.celebrate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 16px;
  animation: celebrate-fade-in 0.2s ease;
}

@keyframes celebrate-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.celebrate-modal {
  width: 100%;
  max-width: 460px;
  padding: 32px 28px 24px;
  background: var(--surface, #161625);
  border: 1px solid var(--border, #2a2a3d);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 92, 255, 0.2);
  text-align: center;
  color: var(--text-primary, #fff);
  font-family: 'Inter', system-ui, sans-serif;
  animation: celebrate-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celebrate-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.celebrate-modal__emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
  animation: celebrate-bounce 1.4s ease-in-out infinite;
}

@keyframes celebrate-bounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-6px) rotate(-8deg); }
  75% { transform: translateY(-3px) rotate(8deg); }
}

.celebrate-modal__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text-primary, #fff);
  letter-spacing: -0.01em;
}

.celebrate-modal__lede {
  font-size: 14px;
  color: var(--text-secondary, #a4a4bf);
  line-height: 1.55;
  margin: 0 0 12px;
}

.celebrate-modal__sponsor {
  font-size: 12px;
  color: var(--text-tertiary, #6b6b86);
  font-style: italic;
  margin: 0 0 20px;
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 8px;
}

.celebrate-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.celebrate-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
  font-family: inherit;
  min-width: 140px;
}

.celebrate-modal__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.celebrate-modal__btn--primary {
  background: linear-gradient(135deg, #7c5cff, #5b8cff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.35);
}

.celebrate-modal__btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.5);
}

.celebrate-modal__btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #a4a4bf);
  border-color: var(--border, #2a2a3d);
}

.celebrate-modal__btn--secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #fff);
}

@media (max-width: 480px) {
  .celebrate-modal { padding: 24px 18px 18px; }
  .celebrate-modal__emoji { font-size: 44px; }
  .celebrate-modal__title { font-size: 18px; }
  .celebrate-modal__btn { width: 100%; }
}
