/* ========================================
   CELEBRATION SCREEN - EXTRA AF
   ======================================== */

.celebration-wrap {
  width: 100%;
  min-height: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* =============================
   ANIMATED PARTICLES/CONFETTI
   ============================= */

.celebration-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.celebration-particles::before,
.celebration-particles::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift 4s ease-out forwards;
}

.celebration-particles::before {
  top: 10%;
  left: -100px;
  background: radial-gradient(circle, 
    rgba(254, 232, 21, 0.15) 0%, 
    transparent 70%
  );
  animation-delay: 0.3s;
}

.celebration-particles::after {
  top: 60%;
  right: -100px;
  background: radial-gradient(circle, 
    rgba(97, 217, 251, 0.15) 0%, 
    transparent 70%
  );
  animation-delay: 0.6s;
}

@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translate(0, 50px) scale(0.5);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(0, -100px) scale(1.2);
  }
}

/* =============================
   LOGO WITH EXPANDING RINGS
   ============================= */

.celebration-logo-wrap {
  position: relative;
  animation: logoEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.celebration-logo-rings {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.celebration-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--p-capri);
  opacity: 0;
  animation: ringExpand 2s ease-out infinite;
}

.celebration-ring--1 {
  animation-delay: 0s;
}

.celebration-ring--2 {
  animation-delay: 0.6s;
}

.celebration-ring--3 {
  animation-delay: 1.2s;
}

@keyframes ringExpand {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.celebration-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: contain;
  background: #fff;
  border: 3px solid var(--p-capri);
  
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, .4),
    0 0 0 6px color-mix(in srgb, var(--p-capri) 20%, transparent),
    0 0 80px color-mix(in srgb, var(--p-capri) 40%, transparent);
  
  animation: logoFloat 3s ease-in-out infinite;
  animation-delay: 0.8s;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

/* =============================
   CELEBRATION CONTENT
   ============================= */

.celebration-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* Fire emojis that bounce in */
.celebration-fires {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(254, 232, 21, 0.6));
  
  animation: 
    firesEntrance 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards 0.2s,
    firesFlicker 2s ease-in-out infinite 0.8s;
}

@keyframes firesEntrance {
  from {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes firesFlicker {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 24px rgba(254, 232, 21, 0.6));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 12px 32px rgba(254, 232, 21, 0.8));
  }
}

/* Giant number with explosive entrance */
.celebration-number {
  font-size: clamp(96px, 25vw, 140px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.03em;
  
  background: linear-gradient(135deg,
    var(--p-blazing-yellow) 0%,
    color-mix(in srgb, var(--p-blazing-yellow) 80%, #fff 20%) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  text-shadow: 
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 0 60px rgba(254, 232, 21, 0.6);
  
  animation: 
    numberExplosion 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards 0.4s,
    numberPulse 2s ease-in-out infinite 1.2s;
  
  position: relative;
}

@keyframes numberExplosion {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(-20deg);
  }
  60% {
    transform: scale(1.15) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes numberPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Sparkle effect on number */
.celebration-number::before,
.celebration-number::after {
  content: "✨";
  position: absolute;
  font-size: 32px;
  opacity: 0;
  animation: sparkle 2s ease-in-out infinite;
}

.celebration-number::before {
  top: -10%;
  left: -8%;
  animation-delay: 1.5s;
}

.celebration-number::after {
  bottom: -5%;
  right: -8%;
  animation-delay: 2s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

/* Label slides up */
.celebration-label {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 251, 252, 0.85);
  
  animation: slideUp 0.6s ease-out backwards 0.6s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Message with fade and slight blur-in */
.celebration-message {
  font-size: 18px;
  font-weight: 650;
  font-style: italic;
  color: rgba(246, 251, 252, 0.75);
  text-align: center;
  max-width: 32ch;
  line-height: 1.4;
  
  animation: messageReveal 0.8s ease-out backwards 0.8s;
}

@keyframes messageReveal {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* =============================
   TAP HINT (fades in late)
   ============================= */

.celebration-hint {
  position: absolute;
  bottom: max(40px, var(--safe-bot, 40px));
  left: 50%;
  transform: translateX(-50%);
  
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 251, 252, 0.5);
  
  opacity: 0;
  animation: hintFadeIn 0.6s ease-out forwards 2s;
}

@keyframes hintFadeIn {
  to {
    opacity: 1;
  }
}

/* Pulsing underline on hint */
.celebration-hint::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: rgba(246, 251, 252, 0.3);
  border-radius: 2px;
  
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% {
    width: 40px;
    opacity: 0.3;
  }
  50% {
    width: 60px;
    opacity: 0.6;
  }
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 420px) {
  .celebration-logo {
    width: 64px;
    height: 64px;
  }
  
  .celebration-fires {
    font-size: 40px;
  }
  
  .celebration-number {
    font-size: clamp(80px, 20vw, 100px);
  }
  
  .celebration-label {
    font-size: 18px;
  }
  
  .celebration-message {
    font-size: 16px;
  }
}

@media (max-height: 700px) {
  .celebration-wrap {
    gap: 24px;
    padding: 30px 20px;
  }
  
  .celebration-logo {
    width: 64px;
    height: 64px;
  }
  
  .celebration-fires {
    font-size: 36px;
  }
  
  .celebration-number {
    font-size: clamp(72px, 18vw, 96px);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .celebration-logo-wrap,
  .celebration-fires,
  .celebration-number,
  .celebration-label,
  .celebration-message {
    animation-duration: 0.01ms !important;
  }
  
  .celebration-logo,
  .celebration-fires,
  .celebration-number {
    animation: none !important;
  }
  
  .celebration-ring {
    display: none;
  }
}
#celebration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: fixed; /* Changed from relative */
  inset: 0; /* Cover entire screen */
  z-index: 100; /* Above everything */
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, 
    rgba(97, 217, 251, 0.08) 0%, 
    transparent 50%
  );
}