* {
  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: 24px;
  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-selector-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 3px solid rgba(139, 92, 246, 0.2);
}

.emoji-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.age-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(to right, 
    #fbbf24 0%, 
    #f59e0b 15%, 
    #ec4899 35%, 
    #8b5cf6 60%, 
    #3b82f6 85%, 
    #06b6d4 100%
  );
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

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

.age-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

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

.age-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.info-box {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}

.ability-item {
  animation: fadeInLeft 0.5s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.progress-container {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 12px;
}

.progress-bar-wrapper {
  width: 100%;
  height: 20px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

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

.language-card {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 2px solid #e9d5ff;
}

.coding-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #fed7aa;
}

.special-message {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: #92400e;
}

.complexity-bar {
  width: 100%;
  height: 28px;
  background: #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.complexity-fill {
  height: 100%;
  background: linear-gradient(to right, #fbbf24, #f59e0b, #ec4899, #8b5cf6, #3b82f6);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
  position: relative;
}

.complexity-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

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

.app-card:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: #c084fc;
  box-shadow: 0 12px 24px rgba(192, 132, 252, 0.4);
}

.command-bubble {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
  color: #5b21b6;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #c4b5fd;
  transition: all 0.2s ease;
}

.command-bubble:hover {
  background: linear-gradient(135deg, #c7d2fe 0%, #c4b5fd 100%);
  transform: translateY(-2px);
}

.difficulty-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-easy {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid #6ee7b7;
}

.difficulty-medium {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 2px solid #fbbf24;
}

.difficulty-hard {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid #f87171;
}

.difficulty-expert {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #3730a3;
  border: 2px solid #818cf8;
}

.btn-primary {
  width: 100%;
  padding: 1.25rem 2rem;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-pink {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-pink:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

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

.info-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
}

.info-content {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

.info-section {
  padding: 1rem;
  background: white;
  border-radius: 12px;
  border-left: 4px solid #8b5cf6;
}

.disclaimer-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9d5ff;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.command-example {
  animation: fadeInUp 0.5s ease;
}

.command-bubble-large {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #c7d2fe 0%, #ddd6fe 100%);
  color: #5b21b6;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #a78bfa;
  width: 100%;
  text-align: center;
}

.modal-close-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.modal-close-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

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

  .card {
    padding: 1.5rem;
  }

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

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .command-bubble-large {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

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

  .btn-primary {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
}