body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f7f6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.container {
  text-align: center;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
}

h1 {
  color: #333;
  margin-bottom: 25px;
}

.controls {
  margin-bottom: 30px;
}

button {
  padding: 10px 25px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  transition: background 0.3s;
  margin: 0 5px;
}

#draw-btn {
  background-color: #4caf50;
  color: white;
}

#draw-btn:hover {
  background-color: #45a049;
}

#clear-btn {
  background-color: #f44336;
  color: white;
}

#clear-btn:hover {
  background-color: #da190b;
}

#result-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 15px;
}

.lotto-set {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #eee;
  animation: fadeInScale 0.4s ease-out;
}

.ball {
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: inset -3px -3px 5px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ball Colors */
.ball.yellow { background: linear-gradient(135deg, #fbc02d, #f9a825); color: #333; text-shadow: none; }
.ball.blue   { background: linear-gradient(135deg, #1e88e5, #1565c0); }
.ball.red    { background: linear-gradient(135deg, #e53935, #c62828); }
.ball.gray   { background: linear-gradient(135deg, #757575, #616161); }
.ball.green  { background: linear-gradient(135deg, #43a047, #2e7d32); }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
