:root {
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-color: #4dabf7;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

  /* Lotto Colors */
  --lotto-yellow: #fbc02d;
  --lotto-blue: #1976d2;
  --lotto-red: #e53935;
  --lotto-gray: #757575;
  --lotto-green: #43a047;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 500px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

h1 {
  margin-top: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.description {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 15px;
}

.result-section {
  margin-bottom: 40px;
}

.nums-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bonus-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 10px;
  margin-bottom: 5px;
}

.ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ball:hover {
  transform: scale(1.1);
}

.ball.yellow { background-color: var(--lotto-yellow); }
.ball.blue { background-color: var(--lotto-blue); }
.ball.red { background-color: var(--lotto-red); }
.ball.gray { background-color: var(--lotto-gray); }
.ball.green { background-color: var(--lotto-green); }

.plus-sign {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
}

button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background-color: var(--text-primary);
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  filter: brightness(1.2);
}

button:active {
  transform: translateY(0);
}

.history-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: left;
}

.history-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.history-item .small-ball {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.history-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.no-history {
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
}
