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

:root {
  --bg-gradient-start: #1a0a1e;
  --bg-gradient-mid: #2d1233;
  --bg-gradient-end: #1f0f23;
  --accent-pink: #ff6b9d;
  --accent-orange: #ffa726;
  --accent-yellow: #ffe066;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
}

body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  color: white;
  overflow-x: hidden;
}

.app-container {
  min-height: 100vh;
  padding: 1.5rem;
  position: relative;
}

/* Floating Strawberries */
.strawberries-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-strawberry {
  position: absolute;
  font-size: 2rem;
  opacity: 0.4;
  animation: floatStrawberry 12s ease-in-out infinite;
}

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

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.confetti-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% { top: -10px; opacity: 1; }
  100% { top: 100vh; opacity: 0; transform: rotate(720deg); }
}

/* Easter Egg */
.easter-egg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
  padding: 2rem 3rem;
  border-radius: 20px;
  font-size: 1.5rem;
  font-weight: 800;
  z-index: 200;
  animation: easterEggPop 0.5s ease-out;
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.5);
}

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

/* Header */
.header {
  text-align: center;
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.logo {
  font-size: 4rem;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease;
  animation: logoPulse 2s ease-in-out infinite;
}

.logo:hover {
  transform: scale(1.2) rotate(10deg);
}

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

.main-title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange), var(--accent-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0;
  line-height: 1.2;
}

.name-input-container {
  margin: 1.5rem auto;
  max-width: 400px;
}

.name-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.1rem;
  font-family: 'Space Mono', monospace;
  text-align: center;
  transition: all 0.3s ease;
}

.name-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.name-input:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

/* Stats Banner */
.stats-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  max-width: fit-content;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 10;
}

.stats-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.stats-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-emoji {
  font-size: 1.5rem;
  animation: rocketBounce 1s ease-in-out infinite;
}

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

/* Loading Bar */
.loading-bar-container {
  max-width: 400px;
  margin: 2rem auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.loading-bar-text {
  font-size: 1rem;
  color: var(--accent-pink);
  margin-bottom: 0.5rem;
  animation: textPulse 1s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-bar-track {
  height: 8px;
  background: var(--glass-bg);
  border-radius: 10px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-orange), var(--accent-yellow));
  border-radius: 10px;
  animation: loadingProgress 2s ease-in-out;
}

@keyframes loadingProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Carousel */
.carousel-container {
  position: relative;
  z-index: 10;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* App Cards */
.app-card {
  flex: 0 0 280px;
  min-height: 360px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  scroll-snap-align: center;
  border: 1px solid var(--glass-border);
}

.app-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-card-featured {
  transform: scale(1.08);
  z-index: 20;
  box-shadow: 0 40px 80px rgba(255, 107, 157, 0.3);
}

.app-card-featured:hover {
  transform: scale(1.1);
}

.app-of-day {
  border: 3px solid var(--accent-yellow);
  box-shadow: 0 0 40px rgba(255, 224, 102, 0.4);
}

.app-of-day-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
  color: #1a0a1e;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 10;
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 224, 102, 0.5); }
  50% { box-shadow: 0 0 25px rgba(255, 224, 102, 0.8); }
}

.app-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.app-card-content {
  position: relative;
  z-index: 5;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.app-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.app-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.app-category {
  font-size: 0.8rem;
  font-family: 'Space Mono', monospace;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
  width: fit-content;
}

.app-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  flex-grow: 1;
}

.app-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
}

.card-loading {
  opacity: 0.5;
  pointer-events: none;
  animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }
}

/* Actions */
.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
  color: white;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-pink);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--accent-pink);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-orange);
}

.footer-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--glass-bg);
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.85rem;
  font-family: 'Space Mono', monospace;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .app-container {
    padding: 1rem;
  }
  
  .main-title {
    font-size: 1.6rem;
  }
  
  .carousel {
    gap: 1rem;
  }
  
  .app-card {
    flex: 0 0 260px;
    min-height: 320px;
  }
  
  .app-card-content {
    padding: 1.5rem;
  }
  
  .app-icon {
    font-size: 3rem;
  }
  
  .app-name {
    font-size: 1.3rem;
  }
  
  .stats-banner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .actions {
    flex-direction: column;
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .floating-strawberry {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .app-card {
    flex: 0 0 240px;
    min-height: 300px;
  }
  
  .logo {
    font-size: 3rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
}