:root {
  --primary: #8b5cf6;
  --secondary: #3b82f6;
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glow: rgba(139, 92, 246, 0.5);
  --success: #10b981;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.5) 0%, var(--bg-color) 100%),
    url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
  color: var(--text-main);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.container {
  max-width: 500px;
  width: 90%;
  padding: 2.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.number-display {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.number-ball {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 15px var(--glow), inset 0 0 10px rgba(139, 92, 246, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.number-ball.placeholder {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.number-ball.active {
  animation: popIn 0.5s ease forwards;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.draw-btn {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px -5px var(--glow);
}

.draw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px var(--glow);
  filter: brightness(1.1);
}

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

@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }
  .number-ball {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}
