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

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

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

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #f7d94e, #f0a500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.1rem;
  color: #8899aa;
  margin-bottom: 32px;
}

button#generateBtn {
  background: linear-gradient(135deg, #f0a500, #f7d94e);
  color: #1a1a2e;
  border: none;
  padding: 16px 48px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(247, 217, 78, 0.3);
  margin-bottom: 36px;
}

button#generateBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(247, 217, 78, 0.5);
}

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

.set {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  animation: fadeSlideIn 0.4s ease forwards;
  opacity: 0;
}

.set-label {
  font-size: 0.85rem;
  color: #667788;
  margin-bottom: 12px;
  text-align: left;
  font-weight: 600;
}

.balls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  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);
  animation: popIn 0.3s ease forwards;
  opacity: 0;
  transform: scale(0);
}

.ball.yellow  { background: linear-gradient(135deg, #fbc531, #e1b12c); }
.ball.blue    { background: linear-gradient(135deg, #3498db, #2980b9); }
.ball.red     { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.ball.gray    { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.ball.green   { background: linear-gradient(135deg, #2ecc71, #27ae60); }

.plus {
  font-size: 1.4rem;
  color: #556677;
  margin: 0 4px;
  font-weight: 300;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  70% {
    transform: scale(1.15) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

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

.contact-link {
  display: inline-block;
  margin-top: 32px;
  color: #8899aa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #f7d94e;
}

.disqus-section {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}

.disqus-section h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #ccddeeff;
}

#disqus_thread {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .ball { width: 40px; height: 40px; font-size: 0.95rem; }
  .container { padding: 0 8px; }
}
