body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
}

/* Animated background stars */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 4s linear infinite;
  z-index: -1;
}

@keyframes sparkle {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-100px);
  }
}

.cry-container {
  background: rgba(30, 30, 50, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 50px rgba(138, 43, 226, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(138, 43, 226, 0.3);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cry-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(138, 43, 226, 0.1), transparent);
  animation: rotate 10s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.cry-button {
  transition: all 0.3s ease;
  border: none;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24, #ff8e53);
  background-size: 200% 200%;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  animation: gradientShift 3s ease infinite;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.cry-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.cry-button:active {
  transform: translateY(0) scale(0.95);
}

.achievement {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 10px 0;
  font-weight: bold;
  animation: achievementPop 0.5s ease-out;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

@keyframes achievementPop {
  0% {
    transform: scale(0) rotate(-10deg);
  }

  50% {
    transform: scale(1.1) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 10000;
}

.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #74b9ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  animation: particleFloat 1s ease-out forwards;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

.streak-display {
  background: linear-gradient(45deg, #ff6b6b, #ffa726);
  color: white;
  border-radius: 10px;
  padding: 10px 15px;
  margin: 10px 0;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }

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

.mood-meter {
  background: linear-gradient(90deg, #ff6b6b, #ffa726, #ffeb3b, #4caf50, #2196f3);
  height: 20px;
  border-radius: 10px;
  margin: 10px 0;
  position: relative;
  overflow: hidden;
}

.mood-indicator {
  position: absolute;
  width: 4px;
  height: 100%;
  background: white;
  border-radius: 2px;
  transition: left 0.5s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.counter {
  font-size: 2rem;
  font-weight: bold;
  color: #f56565;
  text-shadow: 0 0 10px rgba(245, 101, 101, 0.5);
}

.emoji {
  font-size: 4rem;
  animation: bounce 2s infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transition: all 0.3s ease;
}

.emoji:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.fun-fact {
  background: linear-gradient(45deg, #2d3748, #4a5568);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  border-left: 5px solid #48bb78;
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fun-fact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.fun-fact:hover::before {
  left: 100%;
}

.fun-fact:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.title-text {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

@keyframes titleGlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  50% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-smooth {
  opacity: 0;
  transform: translateY(20px);
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.alert-smooth.show {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  padding: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.alert-smooth.hide {
  opacity: 0;
  transform: translateY(-20px);
  height: 0;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .counter {
    font-size: 1.5rem;
  }

  .emoji {
    font-size: 3rem;
  }

  .display-1 {
    font-size: 2.5rem;
  }

  .cry-container {
    margin: 10px;
    padding: 20px !important;
  }

  .cry-button {
    font-size: 1rem;
    padding: 12px 24px !important;
  }

  .fun-fact {
    margin: 10px 0;
    padding: 15px;
  }
}