* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

body.dark {
  background: radial-gradient(circle at top, #000, #111);
}

.app {
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.subtitle {
  opacity: 0.75;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

button {
  padding: 12px 22px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
  font-weight: bold;
}

.seed, .history {
  text-align: center;
  margin-bottom: 1rem;
}

input {
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
}

.output {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.ticket {
  background: rgba(0,0,0,0.35);
  padding: 1rem;
  border-radius: 14px;
}

.balls {
  display: flex;
  gap: 10px;
}

.ball {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e90ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: pop 0.4s ease;
}

.ball.pb {
  background: #e63946;
}

.hidden {
  display: none;
}

@keyframes pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.65;
  text-align: center;
}
