* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  z-index: 0;
}

.app-title {
  font-family: 'Fredoka One', cursive;
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.emoji-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-emoji {
  position: absolute;
  font-size: 2rem;
  animation: float-up linear infinite;
  opacity: 0.4;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.age-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #fbbf24 0%, #f59e0b 25%, #ec4899 50%, #8b5cf6 75%, #3b82f6 100%);
  outline: none;
  cursor: pointer;
}

.age-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 3px solid #8b5cf6;
}

.age-slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 3px solid #8b5cf6;
}

.complexity-bar {
  width: 100%;
  height: 24px;
  background: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.complexity-fill {
  height: 100%;
  background: linear-gradient(to right, #fbbf24, #f59e0b, #ec4899, #8b5cf6, #3b82f6);
  transition: width 0.5s ease;
  border-radius: 12px;
}

.app-card {
  background: linear-gradient(135deg, #fff5f7 0%, #f0f4ff 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #e9d5ff;
  transition: all 0.3s ease;
}

.app-card:hover {
  transform: scale(1.03);
  border-color: #c084fc;
  box-shadow: 0 8px 20px rgba(192, 132, 252, 0.3);
}

.difficulty-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-easy {
  background: #d1fae5;
  color: #065f46;
}

.difficulty-medium {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-hard {
  background: #fee2e2;
  color: #991b1b;
}

.difficulty-expert {
  background: #e0e7ff;
  color: #3730a3;
}

.btn-primary {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .app-title {
    font-size: 2.5rem !important;
  }

  .card {
    padding: 1.5rem;
  }

  .floating-emoji {
    font-size: 1.5rem;
  }
}