/* === ROOT VARIABLES === */
:root {
  --card-bg: #1a1b2f;
  --border: #444;
  --text: #e0ffff;
  --primary: #00ffff;
  --muted: #aaa;
}

/* === GLOBAL STYLES === */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background-color: var(--card-bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #14152a, var(--card-bg));
}

h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

header p {
  color: var(--muted);
  font-size: 1rem;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* === LEADERBOARD SECTION === */
.leaderboard-section {
  margin-bottom: 3rem;
}

.leaderboard-section h2 {
  text-align: center;
  color: var(--primary);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
  margin-bottom: 1.5rem;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.board {
  background: #111324;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.board h3 {
  text-align: center;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}

/* === LEADERBOARD LIST === */
.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.leaderboard-list li:hover {
  background: rgba(0, 255, 255, 0.05);
}

.leaderboard-list li span.name {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.leaderboard-list li span.score {
  color: var(--primary);
  font-weight: bold;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: #14152a;
  color: var(--muted);
  font-size: 0.9rem;
}
