* {
  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;
}

.description {
  color: #666;
  margin-bottom: 30px;
}

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

.number-ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.number-ball:hover {
  transform: scale(1.1);
}

.number-ball.empty {
  background: #ddd;
  color: #999;
}

.number-ball.range-1 { background: #fbc400; }
.number-ball.range-2 { background: #69c8f2; }
.number-ball.range-3 { background: #ff7272; }
.number-ball.range-4 { background: #aaa; }
.number-ball.range-5 { background: #b0d840; }

.number-ball.bonus {
  border: 3px dashed #764ba2;
}

.plus {
  font-size: 1.5rem;
  color: #999;
  font-weight: bold;
}

.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 {
  margin-top: 30px;
  text-align: left;
}

.history h3 {
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

#historyList {
  list-style: none;
  max-height: 150px;
  overflow-y: auto;
}

#historyList li {
  padding: 10px;
  background: #f8f9fa;
  margin-bottom: 8px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9rem;
  color: #555;
}

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

.number-ball.animate {
  animation: pop 0.3s ease forwards;
}
