/**
 * MD-CELEBRATION.CSS — Styles for Celebration screen
 * Confetti + animations
 */

/* ============================================================
   CELEBRATION AREA
   ============================================================ */
#screen-child-done .md-screen__content {
  background: linear-gradient(180deg, #FFF8F0 0%, #DCFCE7 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.cele-area {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cele-content {
  position: relative;
  z-index: 10;
  padding: 40px 24px;
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   CELEBRATION ELEMENTS
   ============================================================ */
.cele-emoji {
  font-size: 5rem;
  animation: bounceIn 0.6s ease;
  margin-bottom: 16px;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.cele-title {
  font-family: var(--md-font-c);
  font-size: 2rem;
  font-weight: 900;
  color: var(--md-primary);
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cele-sub {
  font-family: var(--md-font-c);
  font-size: var(--md-fs-lg);
  font-weight: 700;
  color: var(--md-fun-green);
  margin-bottom: 24px;
}

.cele-task {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--md-w);
  border-radius: var(--md-r-full);
  box-shadow: var(--md-sh-md);
  margin-bottom: 16px;
}

.cele-task-icon {
  font-size: 1.5rem;
}

.cele-task-name {
  font-weight: 700;
  color: var(--md-g8);
}

.cele-msg {
  font-size: var(--md-fs-sm);
  color: var(--md-g6);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto 24px;
}

/* ============================================================
   STREAK DISPLAY
   ============================================================ */
.cele-streak {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 32px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-radius: var(--md-r-lg);
  box-shadow: var(--md-sh-sm);
}

.streak-icon {
  font-size: 2rem;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.streak-text {
  font-size: var(--md-fs-xs);
  color: var(--md-g6);
  margin-top: 4px;
}

.streak-num {
  font-family: var(--md-font-c);
  font-size: var(--md-fs-xl);
  font-weight: 900;
  color: var(--md-secondary);
}

/* ============================================================
   CONFETTI
   ============================================================ */
.confetti {
  position: absolute;
  top: -20px;
  animation: confettiFall linear forwards;
  pointer-events: none;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
