
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito:wght@700;800;900&display=swap');
body.rank-page {
  background: #0b1a3a !important;
  background-image:
    radial-gradient(ellipse 100% 55% at 50% -5%, #1a4a9e 0%, transparent 55%),
    linear-gradient(180deg, #0d2450 0%, #0a1428 50%, #0c0c12 100%) !important;
  background-attachment: fixed !important;
  font-family: Nunito, system-ui, sans-serif;
  color: #fff;
  min-height: 100vh;
}
body.rank-page #bsShellHeader {
  background: rgba(8,12,24,.45) !important;
  backdrop-filter: blur(14px) !important;
}
body.ps-open.rank-page #bsShellHeader {
  background: #0c0c0e !important;
  backdrop-filter: none !important;
}
.rank-main { max-width: 900px; margin: 0 auto; padding: 20px 16px 90px; }
.rank-hero {
  text-align: center; margin: 8px 0 22px; padding: 26px 16px;
  background: linear-gradient(180deg, rgba(30,80,180,.35), rgba(10,20,40,.2));
  border-radius: 24px; border: 2px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.rank-hero h1 {
  font-family: "Lilita One", sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 8px; text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.rank-hero h1 span {
  background: #f5e642; color: #0a1a3a; padding: 0.05em 0.28em;
  border-radius: 12px; display: inline-block; transform: rotate(-2deg);
  box-shadow: 0 4px 0 rgba(0,0,0,.3);
}
.rank-hero p { margin: 0; font-weight: 800; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.rank-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.rank-tab {
  padding: 10px 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25); color: #fff; font-weight: 900; font-size: .82rem;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
}
.rank-tab.on { background: #f5e642; color: #0a1a3a; border-color: #f5e642; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.rank-table-wrap {
  background: #f2f0ea; border: 3px solid #fff; border-radius: 10px;
  overflow: hidden; box-shadow: 0 8px 0 rgba(0,0,0,.22), 0 16px 36px rgba(0,0,0,.3);
}
.rank-table { width: 100%; border-collapse: collapse; color: #111; }
.rank-table th {
  text-align: left; padding: 12px 14px; font-size: .72rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .04em; color: #555;
  background: #e8e6e0; border-bottom: 2px solid #ddd;
}
.rank-table td {
  padding: 12px 14px; border-bottom: 1px solid #e5e5e5;
  font-weight: 800; font-size: .9rem; vertical-align: middle;
}
.rank-table tr:last-child td { border-bottom: none; }
.rank-table tr:hover td { background: #fffef0; }
.rank-table .pos {
  font-family: "Lilita One", sans-serif; font-size: 1.1rem; color: #1a3a8a; width: 40px;
}
.rank-table .pos.gold { color: #ca8a04; }
.rank-table .pos.silver { color: #64748b; }
.rank-table .pos.bronze { color: #c2410c; }
.rank-player {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.rank-player img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid #ddd; background: #ddd;
}
.rank-player .name { font-weight: 900; color: #111; }
.rank-player .tag { font-size: .72rem; color: #666; font-weight: 700; }
.rank-cups { color: #ca8a04; font-weight: 900; }
.rank-elo { color: #7c3aed; font-weight: 900; }
