@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Noto+Sans+KR:wght@400;700;900&display=swap');

body {
  text-align: center;
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  margin: 0;
  padding: 40px 20px;
  box-sizing: border-box;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 550px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 35px 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
}

header {
  margin-bottom: 25px;
  text-align: left;
}

.home-link {
  text-decoration: none;
  color: #7f8c8d;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-link:hover {
  color: #3498db;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #2c3e50;
  margin: 0 0 30px 0;
  letter-spacing: -1px;
}

.section-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 25px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #34495e;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}

.balls-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.ball {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.2), 
              inset 2px 2px 5px rgba(255, 255, 255, 0.35),
              0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.ball:hover {
  transform: translateY(-4px) scale(1.1);
}

.ball-yellow { background: radial-gradient(circle at 35% 35%, #ffd43f 0%, #fbc400 70%, #d4a300 100%); }
.ball-blue { background: radial-gradient(circle at 35% 35%, #8de0ff 0%, #69c8f2 70%, #3ca0cc 100%); }
.ball-red { background: radial-gradient(circle at 35% 35%, #ff9797 0%, #ff7272 70%, #d64747 100%); }
.ball-gray { background: radial-gradient(circle at 35% 35%, #cccccc 0%, #aaaaaa 70%, #888888 100%); }
.ball-green { background: radial-gradient(circle at 35% 35%, #d1f465 0%, #b0d840 70%, #85aa1b 100%); }

.bonus-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: #bdc3c7;
  margin: 0 5px;
  user-select: none;
}

.action-container {
  margin-top: 20px;
}

.retry-link {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  transition: all 0.2s ease;
}

.retry-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.retry-link:active {
  transform: translateY(1px);
}

.draw-info {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin: 5px 0 15px 0;
}

.draw-info strong {
  color: #2c3e50;
}

.bonus-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #95a5a6;
  margin: 5px 0 0 0;
  text-align: right;
  padding-right: 12px;
}

.footer-links {
  margin-top: 10px;
}

.api-link {
  font-size: 0.85rem;
  color: #95a5a6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.api-link:hover {
  color: #2980b9;
  text-decoration: underline;
}
