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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  color: #fff;
}

.container {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.controls {
  margin-bottom: 20px;
}

.controls label {
  font-size: 1rem;
  margin-right: 8px;
}

.controls select {
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #333;
  cursor: pointer;
}

#generateBtn {
  padding: 14px 48px;
  font-size: 1.3rem;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #e94560, #c23616);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
  margin-bottom: 30px;
}

#generateBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(233, 69, 96, 0.6);
}

#generateBtn:active {
  transform: scale(0.97);
}

.lotto-set {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}

.lotto-set .set-label {
  font-weight: bold;
  font-size: 0.9rem;
  color: #aab;
  min-width: 28px;
}

.ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.3);
}

.ball-1  { background: linear-gradient(135deg, #fbc531, #e1b12c); }
.ball-11 { background: linear-gradient(135deg, #4cd137, #44bd32); }
.ball-21 { background: linear-gradient(135deg, #e84118, #c23616); }
.ball-31 { background: linear-gradient(135deg, #7f8fa6, #718093); }
.ball-41 { background: linear-gradient(135deg, #00a8ff, #0097e6); }

.info {
  margin-top: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.info h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #aab;
}

.color-guide {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.color-guide .ball {
  width: auto;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

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

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .ball { width: 38px; height: 38px; font-size: 0.85rem; }
  .lotto-set { gap: 6px; padding: 12px; }
}
