body {
  background-color: #1a6b3a;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 36px;
  letter-spacing: 3px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

#dealer-area, #player-area {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin: 10px auto;
  max-width: 600px;
}

h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 12px;
}

#controls {
  margin: 20px auto;
}

button {
  background: white;
  color: #1a6b3a;
  border: none;
  padding: 12px 28px;
  margin: 6px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #c8e6c9;
}

#message {
  font-size: 22px;
  font-weight: bold;
  margin-top: 20px;
}

.card {
  display: inline-block;
  background: white;
  color: #1a1a1a;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 5px;
  font-size: 22px;
  font-weight: bold;
  min-width: 50px;
  text-align: center;
}

.card.red {
  color: #c0392b;
}

.hidden-card {
  background: #1a6b3a;
  color: white;
  border: 2px solid white;
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

#stats-area {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 15px;
  margin: 10px auto;
  max-width: 600px;
  display: flex;
  justify-content: space-around;
}

#stats-area p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#stats-area span {
  font-weight: bold;
  font-size: 18px;
}

#bet-controls button {
  background: #ffd700;
  color: #1a1a1a;
  border: none;
  padding: 12px 28px;
  margin: 6px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  width: 160px;
}

#bet-controls button:hover {
  background: #ffe340;
}

#message {
  font-size: 22px;
  font-weight: bold;
  margin-top: 20px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.message-win {
  background: rgba(50, 205, 50, 0.3);
}

.message-lose {
  background: rgba(220, 50, 50, 0.3);
}

.message-tie {
  background: rgba(255, 255, 255, 0.15);
}

#name-area {
  margin-bottom: 10px;
}

#new-game-controls {
  margin: 10px auto;
}

#new-game-controls button:first-child {
  background: #539c71;
  color: white;
}

#new-game-controls button:first-child:hover {
  background: #27ae60;
}

#bet-controls button:last-child {
  background: #a58238;
  color: white;
}

#bet-controls button:last-child:hover {
  background: #a58c3c;
}

#leaderboard-area {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin: 10px auto;
  max-width: 600px;
}

#leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

#leaderboard-list li {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 6px;
  font-size: 14px;
}

#leaderboard-list li:first-child {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
}

#reset-btn {
  background: transparent !important;
  color: rgba(255,255,255,0.5) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  padding: 12px 28px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  width: 160px !important;
}

#reset-btn:hover {
  background: rgba(255,255,255,0.1) !important;
  color: white !important;
}