/* CSS UTAMA */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 100%, #fdbb2d 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
}
.leaderboard-container {
  width: 90%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-bottom: 50px;
}
h1 {
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}
.back-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}
.rank-table {
  width: 100%;
  border-collapse: collapse;
}
.rank-table th {
  text-align: left;
  padding: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffeb3b;
  font-size: 1.2rem;
}
.rank-table th.th-right {
  text-align: right;
}
.rank-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}
.player-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
}
.player-name {
  font-weight: bold;
  font-size: 1.1rem;
}
.total-score {
  font-weight: bold;
  font-size: 1.5rem;
  color: #4caf50;
  text-align: right;
}
.rank-cell {
  font-weight: bold;
}
.rank-1 {
  color: #ffd700;
  font-size: 1.5rem;
  text-shadow: 0 0 10px #ffd700;
}
.rank-2 {
  color: #c0c0c0;
  font-size: 1.3rem;
  text-shadow: 0 0 10px #c0c0c0;
}
.rank-3 {
  color: #cd7f32;
  font-size: 1.2rem;
  text-shadow: 0 0 10px #cd7f32;
}
.row-highlight:hover {
  background: rgba(255, 255, 255, 0.1);
}
.empty-msg {
  text-align: center;
}
