.leaderboard-page {
  background: #040e13;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lb-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 32px 48px;
}

/* Full-bleed hero matching Jeff mock */
.lb-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
  margin-bottom: 18px;
  border: 1px solid #1c2a33;
  background: #061015;
}
.lb-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.lb-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    #040e13f5 0%,
    #040e13d0 34%,
    #040e1360 58%,
    #040e1320 78%,
    transparent 100%
  );
}
.lb-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 240px;
  padding: 22px 26px 26px;
  max-width: 420px;
}
.lb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #c3d4df;
  font-size: 13px;
  text-decoration: none;
}
.lb-back:hover {
  color: #12f9ef;
}
.lb-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 2px 18px #040e1380;
}
.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-tags span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0c1921cc;
  border: 1px solid #3a4d5a;
  color: #d7e3ec;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.lb-hero-logo {
  position: absolute;
  right: 36px;
  top: 50%;
  z-index: 1;
  transform: translateY(-52%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.88;
  filter: drop-shadow(0 0 18px #12f9ef88) drop-shadow(0 8px 20px #000a);
  pointer-events: none;
  user-select: none;
}
.lb-logo-super {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ff7a3d 0%, #ff2a4a 55%, #c01030 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #1a0508;
  paint-order: stroke fill;
  text-shadow: none;
}
.lb-logo-charged {
  font-size: clamp(22px, 2.9vw, 36px);
  font-weight: 900;
  letter-spacing: 0.04em;
  font-style: italic;
  background: linear-gradient(180deg, #7dfff7 0%, #12f9ef 45%, #0aa8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #041820;
  paint-order: stroke fill;
}

.lb-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 22px;
}
.lb-search-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.lb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #243542;
  border-radius: 12px;
  background: #0a141b;
}
.lb-search i {
  color: #6f8494;
  font-size: 14px;
}
.lb-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #e8f1f7;
  font: 500 14px/1.2 inherit;
  outline: none;
}
.lb-search input::placeholder {
  color: #6f8494;
}
.lb-search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #2a3b47;
  border-radius: 12px;
  background: #0f1a22;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lb-search-suggest[hidden] {
  display: none !important;
}
.lb-suggest-item {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e8f1f7;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.lb-suggest-item:hover {
  background: #152631;
}
.lb-suggest-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #12202a;
  flex: 0 0 auto;
}
.lb-suggest-item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lb-suggest-item strong {
  font-size: 13px;
  font-weight: 700;
}
.lb-suggest-item small {
  font-size: 11px;
  color: #8fa3b3;
}
.lb-suggest-empty {
  padding: 12px;
  font-size: 13px;
  color: #8fa3b3;
}
.lb-game-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 6px;
  border: 1px solid #1c2a33;
  border-radius: 12px;
  background: #0a141b;
}
.lb-game-switch button {
  appearance: none;
  border: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  background: transparent;
  color: #8fa3b3;
  font: 700 13px/1 inherit;
  cursor: pointer;
}
.lb-game-switch button:hover {
  color: #f7f9fc;
  background: #12202a;
}
.lb-game-switch button[aria-selected="true"] {
  background: #d0ff00;
  color: #080e00;
}

.lb-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  border-bottom: 1px solid #1c2a33;
}
.lb-tabs {
  display: flex;
  gap: 28px;
}
.lb-tabs a {
  padding: 8px 2px 14px;
  color: #8fa3b3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.lb-tabs a:hover {
  color: #f7f9fc;
}
.lb-tabs a[aria-current="page"] {
  color: #f7f9fc;
  border-bottom-color: #12f9ef;
}
.lb-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}
.lb-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-filter-label {
  font-size: 12px;
  color: #8fa3b3;
  white-space: nowrap;
}
.lb-period select {
  appearance: none;
  min-height: 34px;
  padding: 0 32px 0 12px;
  border: 0;
  border-radius: 8px;
  background: #d0ff00
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23080e00' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E")
    no-repeat right 11px center;
  color: #080e00;
  font: 700 13px/1 inherit;
  cursor: pointer;
}
.lb-rank-toggle {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  background: #0c1921;
  border: 1px solid #2a3b47;
}
.lb-rank-toggle button {
  appearance: none;
  border: 0;
  min-height: 34px;
  padding: 0 14px;
  background: transparent;
  color: #8fa3b3;
  font: 700 13px/1 inherit;
  cursor: pointer;
}
.lb-rank-toggle button[aria-pressed="true"] {
  background: #d0ff00;
  color: #080e00;
}
.lb-empty {
  padding: 36px 20px;
  text-align: center;
  border: 1px dashed #2a3b47;
  border-radius: 12px;
  color: #8fa3b3;
  background: #0c1921;
}

.lb-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  align-items: end;
}
.lb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #101c26 0%, #0a141b 100%);
  border: 1px solid #2a3b47;
  border-radius: 16px;
  padding: 18px 14px 16px;
  text-align: center;
  min-height: 0;
}
.lb-card-1 {
  border-color: rgba(228, 192, 74, 0.65);
  box-shadow:
    0 0 0 1px rgba(228, 192, 74, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.35);
  padding-top: 22px;
  padding-bottom: 20px;
  transform: translateY(-14px);
}
.lb-card-2 {
  border-color: rgba(168, 184, 200, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.lb-card-3 {
  border-color: rgba(200, 146, 78, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.lb-avatar-wrap {
  position: relative;
  line-height: 0;
}
.lb-avatar {
  width: 76px;
  height: 76px;
  display: block;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #12202a;
  border: 3px solid #6b7f90;
}
.lb-card-1 .lb-avatar {
  width: 88px;
  height: 88px;
  border-color: #e4c04a;
  box-shadow: 0 0 0 3px rgba(228, 192, 74, 0.22);
}
.lb-card-2 .lb-avatar {
  border-color: #b8c4d0;
  box-shadow: 0 0 0 3px rgba(184, 196, 208, 0.18);
}
.lb-card-3 .lb-avatar {
  border-color: #c8924e;
  box-shadow: 0 0 0 3px rgba(200, 146, 78, 0.2);
}
/* Font Awesome solid crown + rank 1/2/3 */
.lb-crown {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 38px;
  margin: 0 0 4px;
  line-height: 1;
}
.lb-crown i {
  font-size: 26px;
  line-height: 1;
}
.lb-crown-rank {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: 800 10px/1 Arial, Helvetica, sans-serif;
  border: 2px solid #0a141b;
}
.lb-crown-gold i {
  color: #f5c518;
}
.lb-crown-gold .lb-crown-rank {
  background: #f5c518;
  color: #1a1400;
}
.lb-crown-silver i {
  color: #c0c8d0;
}
.lb-crown-silver .lb-crown-rank {
  background: #c0c8d0;
  color: #1a2430;
}
.lb-crown-bronze i {
  color: #cd7f32;
}
.lb-crown-bronze .lb-crown-rank {
  background: #cd7f32;
  color: #1a0e04;
}
.lb-card-1 .lb-crown {
  width: 46px;
  height: 42px;
}
.lb-card-1 .lb-crown i {
  font-size: 32px;
}
.lb-card-1 .lb-crown-rank {
  min-width: 20px;
  height: 20px;
  font-size: 11px;
}
.lb-card h2 {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.lb-sample {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #8fa3b3;
  text-transform: uppercase;
}
.lb-card h2 .lb-sample {
  display: inline;
}
.lb-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 0;
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid #1c2a33;
}
.lb-card dl div {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0 8px;
  text-align: center;
  min-width: 0;
}
.lb-card dl div + div {
  border-left: 1px solid #1c2a33;
}
.lb-card dt {
  margin: 0;
  font-size: 10px;
  color: #8fa3b3;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lb-card dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .lb-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .lb-card-1 {
    order: -1;
    transform: none;
  }
}

.lb-table-wrap {
  background: transparent;
  border: 0;
}
.lb-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 4px 0 8px;
}
.lb-pager[hidden] {
  display: none;
}
.lb-pager-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #2a3b47;
  border-radius: 10px;
  background: #0e1820;
  color: #f7f9fc;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lb-pager-btn:hover:not(:disabled) {
  border-color: #12f9ef;
  color: #12f9ef;
}
.lb-pager-btn[aria-current="page"] {
  border-color: #12f9ef;
  background: rgba(18, 249, 239, 0.12);
  color: #12f9ef;
}
.lb-pager-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.lb-pager-ellipsis {
  color: #8a9aa6;
  font-size: 14px;
  padding: 0 2px;
  user-select: none;
}
.lb-pager-meta {
  width: 100%;
  text-align: center;
  color: #8a9aa6;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.lb-table-head,
.lb-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.6fr) 110px 70px 70px;
  gap: 12px;
  align-items: center;
  padding: 16px 8px;
}
.lb-table-head {
  color: #12f9ef;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid #1c2a33;
  padding-bottom: 12px;
}
.lb-row {
  border-bottom: 1px solid #15222b;
  color: #f7f9fc;
  font-size: 15px;
}
.lb-row:last-child:not(.lb-you) {
  border-bottom: 0;
}
.lb-rank {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f7f9fc;
}
.lb-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 600;
}
.lb-player-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.lb-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #12202a;
  border: 1px solid #2a3b47;
}
.lb-mini-fallback {
  display: grid;
  place-items: center;
  background: #d0ff00;
  color: #080e00;
  font-size: 11px;
  font-weight: 800;
}
.lb-stat {
  font-variant-numeric: tabular-nums;
  color: #e8eef3;
}
.lb-you {
  margin-top: 14px;
  margin-bottom: 4px;
  padding: 14px 14px;
  border: 2px solid #e8ff4a;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(208, 255, 0, 0.1), rgba(13, 22, 6, 0.95));
  box-shadow: 0 0 0 1px rgba(232, 255, 74, 0.15), 0 0 24px rgba(208, 255, 0, 0.12);
}
.lb-you .lb-rank,
.lb-you .lb-stat,
.lb-you .lb-name {
  color: #e8ff4a;
  font-weight: 700;
}
.lb-you .lb-player {
  color: #e8ff4a;
}
.lb-you .lb-mini {
  border-color: #e8ff4a;
}

@media (max-width: 900px) {
  .lb-hero-content {
    max-width: none;
  }
  .lb-hero-logo {
    right: 16px;
    opacity: 0.92;
  }
}
@media (max-width: 640px) {
  .lb-page {
    padding: 16px 14px 36px;
  }
  .lb-hero,
  .lb-hero-content {
    min-height: 200px;
  }
  .lb-hero-logo {
    display: none;
  }
  .lb-table-head,
  .lb-row {
    grid-template-columns: 36px minmax(0, 1fr) 64px 40px 44px;
    padding: 12px 4px;
    font-size: 13px;
  }
  .lb-rank {
    font-size: 16px;
  }
  .lb-filter-label {
    display: none;
  }
  .lb-card {
    padding: 14px 12px;
  }
  .lb-avatar {
    width: 72px;
    height: 72px;
  }
  .lb-card-1 .lb-avatar {
    width: 80px;
    height: 80px;
  }
}
