@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --background-color: #1a1a2e;
  --primary-color: #f0f0f0;
  --accent-color: #e94560;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --border-radius: 12px;
  --font-family: "Poppins", sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.container {
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 600px;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  font-weight: 700;
}

#lotto-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.lotto-set {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.number {
  background-color: var(--primary-color);
  color: var(--background-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 600;
  opacity: 0;
}

.number.generated {
  animation: pop-in 0.5s ease-out forwards;
}

@keyframes pop-in {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.number:nth-child(1) { animation-delay: 0.1s; }
.number:nth-child(2) { animation-delay: 0.2s; }
.number:nth-child(3) { animation-delay: 0.3s; }
.number:nth-child(4) { animation-delay: 0.4s; }
.number:nth-child(5) { animation-delay: 0.5s; }
.number:nth-child(6) { animation-delay: 0.6s; }

#generate-btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

#generate-btn:hover { background-color: #ff5c79; transform: translateY(-3px); }

.home-link {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
}

.home-link:hover { color: var(--primary-color); }