:root {
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-color: #2d3436;
  --card-bg: rgba(255, 255, 255, 0.9);
  --accent-color: #6c5ce7;
  --shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  --ball-shadow: inset -4px -4px 10px rgba(0,0,0,0.3), 4px 4px 10px rgba(0,0,0,0.2);
}

[data-theme='dark'] {
  --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --text-color: #f5f6fa;
  --card-bg: rgba(30, 30, 30, 0.8);
  --accent-color: #a29bfe;
  --shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-color);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  transition: all 0.5s ease;
}

.controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

#theme-toggle {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: var(--shadow);
}

.lotto-container {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  padding: 50px;
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.lotto-container:hover {
  transform: translateY(-5px);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.results-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.numbers-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 15px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  animation: slideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.lotto-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: var(--ball-shadow);
  transition: transform 0.2s ease;
  cursor: default;
}

.lotto-ball:hover {
  transform: scale(1.1) rotate(10deg);
}

#generate-lotto {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 18px 45px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

#generate-lotto:hover {
  filter: brightness(1.1);
  box-shadow: 0 15px 30px rgba(108, 92, 231, 0.6);
}

.placeholder {
  font-size: 1.1rem;
  opacity: 0.7;
}
