@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;700;800&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --bg-1: #ffffff;
  --bg-2: #f7f9ff;
  --ink: #0f1b33;
  --muted: #5e6f8f;
  --accent: #4c6fff;
  --line: rgba(134, 160, 209, 0.35);
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(93, 158, 255, 0.22) 0%, rgba(93, 158, 255, 0) 34%),
    radial-gradient(circle at 88% 2%, rgba(130, 120, 255, 0.06) 0%, rgba(255, 112, 70, 0) 38%);
}

.profile-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}

nav { display: flex; gap: 10px; align-items: center; }

nav a, button {
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.hero { padding: 16px; }

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4f74d1;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  margin: 8px 0 6px;
  font-family: "Sora", sans-serif;
}

.hero p { margin: 0; color: var(--muted); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 14px;
  border: 1px solid #42659b;
  border-radius: 14px;
  background: rgba(8, 17, 35, 0.76);
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-card h3 {
  margin: 6px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
}

.leaderboard { padding: 14px; }

.leaderboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leaderboard h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.leaderboard-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.leader-row {
  border: 1px solid #42659b;
  border-radius: 12px;
  background: rgba(8, 17, 35, 0.72);
  padding: 10px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) repeat(3, 110px);
  gap: 8px;
  align-items: center;
}

.leader-row .muted { color: var(--muted); font-size: 0.86rem; }

.empty { color: var(--muted); }

@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leader-row { grid-template-columns: 60px minmax(0, 1fr) repeat(2, 90px); }
  .leader-row .hide-mobile { display: none; }
}

@media (max-width: 760px) {
  .profile-shell { padding: 14px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  nav { flex-wrap: wrap; }
  .stats-grid { grid-template-columns: 1fr; }
  .leader-row { grid-template-columns: 54px minmax(0, 1fr) 90px; }
}
