/* Reset & base */
* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  margin: 0;
  background: #0f0f0f;
  color: #eaeaea;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #0e1015;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #d4a254;
}

.nav-links {
  display: flex;
  gap: 16px;
  transition: max-height .35s ease, opacity .25s ease;
}

.nav-links a {
  text-decoration: none;
  color: #e9ecf1;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background .25s ease;
}

.nav-links a:hover {
  background: #1b1f29;
}

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-btn { display: flex; }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #0e1015;
    padding: 10px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .nav-links a { padding: 8px 18px; }

  .nav-links.open { max-height: 260px; opacity: 1; }

  .menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.active span:nth-child(2) { opacity: 0; }
  .menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Leaderboard */
.dashboard {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 24px;
  text-align: center;
}

.dashboard h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #d4a254;
}

/* List of users */
#leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#leaderboard-list li {
  background: #131313;
  padding: 16px 20px;
  margin-bottom: 14px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  font-size: 1rem;
  transition: transform 0.2s, background 0.25s;
}

#leaderboard-list li:hover {
  transform: translateY(-3px);
  background: #1a1a1a;
}

/* Highlight top 3 */
#leaderboard-list li:nth-child(1) {
  border-left: 6px solid #ffd700; /* Gold */
}
#leaderboard-list li:nth-child(2) {
  border-left: 6px solid #c0c0c0; /* Silver */
}
#leaderboard-list li:nth-child(3) {
  border-left: 6px solid #cd7f32; /* Bronze */
}









footer {
  text-align: center;
  padding: 30px 0;
  color: #7c7c7c;
}


/* Floating Help Button */
.floating-help-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d4a254, #b8863b);
  color: #0f0f0f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(212, 162, 84, 0.5);
  transition: all 0.3s ease;
  z-index: 999;
}

.floating-help-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 30px rgba(212, 162, 84, 0.7);
}

@media (max-width: 768px) {
  .floating-help-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}