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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 2rem;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
  font-size: 1rem;
}

.numbers-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.number-ball {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(145deg, #e0e0e0, #cfcfcf);
  color: #999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.number-ball.active {
  animation: pop 0.5s ease;
}

.number-ball.yellow {
  background: linear-gradient(145deg, #ffd93d, #f5c400);
  color: #333;
}

.number-ball.blue {
  background: linear-gradient(145deg, #6bcaff, #0096dc);
  color: white;
}

.number-ball.red {
  background: linear-gradient(145deg, #ff6b6b, #dc0000);
  color: white;
}

.number-ball.gray {
  background: linear-gradient(145deg, #8d8d8d, #5c5c5c);
  color: white;
}

.number-ball.green {
  background: linear-gradient(145deg, #6bff6b, #00dc00);
  color: white;
}

@keyframes pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.generate-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 50px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

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

.history-section {
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.history-section h2 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.history-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
}

.history-list li {
  padding: 10px;
  background: #f8f9fa;
  margin-bottom: 8px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.history-ball {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
}

.history-ball.yellow { background: #f5c400; color: #333; }
.history-ball.blue { background: #0096dc; }
.history-ball.red { background: #dc0000; }
.history-ball.gray { background: #5c5c5c; }
.history-ball.green { background: #00dc00; }

@media (max-width: 480px) {
  .container { padding: 20px; }
  h1 { font-size: 1.5rem; }
  .number-ball { width: 50px; height: 50px; font-size: 1.2rem; }
  .generate-btn { padding: 12px 40px; font-size: 1rem; }
}
