/* GLOBAL RESET */
* {
  box-sizing: border-box;
}

/* PREVENT SIDEWAYS SCROLL */
html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* PAGE BACKGROUND */
body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #1a0f2e, #0b0616);
  color: #eaeaea;
}

/* PAGE WRAPPER */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HERO IMAGE */
.hero {
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.hero img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* LEADERBOARD CARD */
.container {
  width: 420px;
  max-width: calc(100% - 32px);
  background: rgba(15, 10, 30, 0.9);
  border-radius: 20px;
  padding: 24px;
  margin: 24px 0 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

/* HEADINGS */
h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

.subtitle {
  margin: 6px 0 20px;
  text-align: center;
  font-size: 14px;
  color: #b9a7ff;
}

/* LEADERBOARD LIST */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ENTRY ROW */
.entry {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* TEXT STYLES */
.rank {
  font-weight: 700;
  font-size: 16px;
  color: #ffd966;
}

.name {
  font-weight: 600;
}

.title {
  font-size: 12px;
  color: #aaa;
}

.xp {
  font-weight: 700;
  color: #6b5cff;
}

/* TOP RANK HIGHLIGHTS */
.rank-1 {
  background: linear-gradient(90deg, rgba(255,215,128,0.25), rgba(255,200,100,0.05));
}

.rank-2 {
  background: linear-gradient(90deg, rgba(220,220,220,0.25), rgba(200,200,200,0.05));
}

.rank-3 {
  background: linear-gradient(90deg, rgba(205,127,50,0.25), rgba(160,82,45,0.05));
}

/* LOADING STATE */
.loading {
  text-align: center;
  padding: 20px;
  color: #aaa;
}

/* FOOTER */
.footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
