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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: white;
}

.game-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

#start-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border-radius: 15px;
  z-index: 10;
  width: 80%;
}

#start-screen h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#start-button {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  background: #4CAF50;
  border: none;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  margin: 1rem 0;
  transition: transform 0.2s, background 0.2s;
}

#start-button:hover {
  transform: scale(1.05);
  background: #45a049;
}

.instructions {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

#game-area {
  width: 100%;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

#basket {
  width: 120px;
  height: 80px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #8B4513;
  border-radius: 0 0 40px 40px;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

#question {
  position: absolute;
  top: -30px;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  background: rgba(0, 0, 0, 0.7);
  padding: 5px;
  border-radius: 5px;
}

#basket::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: #A0522D;
  border-radius: 40px 40px 0 0;
}

.fruit {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  animation: fall linear forwards;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  font-size: 0.9rem;
  box-shadow: inset -2px -2px 8px rgba(0, 0, 0, 0.3);
}

.correct {
  box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.4);
}

.incorrect {
  box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.4);
}

.hud {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes fall {
  from {
    transform: translateY(-40px);
  }
  to {
    transform: translateY(600px);
  }
}

@keyframes collect {
  to {
    transform: scale(0);
    opacity: 0;
  }
}