/* Zambia Apex Rankings design preview */
.rankings-hero {
  min-height: 690px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5,13,9,.96) 0%, rgba(5,13,9,.72) 55%, rgba(5,13,9,.92) 100%),
    radial-gradient(circle at 84% 40%, rgba(255,51,95,.16), transparent 24%),
    radial-gradient(circle at 66% 24%, rgba(155,92,255,.2), transparent 25%);
}
.rankings-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .85;
  background-image:
    linear-gradient(rgba(97,242,15,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97,242,15,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.rankings-hero::after {
  content: "ZM";
  position: absolute;
  right: -2vw;
  bottom: -12vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(97,242,15,.06);
  font-size: min(42vw, 520px);
  line-height: .8;
  font-weight: 1000;
  letter-spacing: -.12em;
  pointer-events: none;
}
.rankings-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(500px,.88fr);
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 58px;
  padding-bottom: 58px;
}
.rankings-hero-copy h1 { max-width: 760px; font-size: clamp(3.6rem, 7vw, 7rem); }
.rankings-hero-copy > p { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.rankings-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--lime-soft); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 18px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px rgba(97,242,15,.8); }
.rankings-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.demo-flag { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; margin-top: 26px; padding: 13px 15px; border: 1px solid rgba(255,212,94,.22); border-radius: 14px; background: rgba(255,212,94,.055); }
.demo-flag strong { color: var(--gold); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.demo-flag span { color: #d8cda9; font-size: .82rem; line-height: 1.45; }

.rank-podium { padding-top: 58px; }
.podium-grid { display: grid; grid-template-columns: .9fr 1.1fr .9fr; align-items: end; gap: 9px; }
.podium-ranker { position: relative; min-width: 0; min-height: 270px; padding: 34px 14px 20px; border: 1px solid var(--line); border-radius: 20px 20px 8px 8px; background: linear-gradient(180deg, rgba(20,43,30,.9), rgba(7,17,11,.94)); text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: 0 22px 44px rgba(0,0,0,.3); }
.podium-ranker--first { min-height: 338px; border-color: rgba(255,51,95,.34); background: linear-gradient(180deg, rgba(61,15,26,.9), rgba(13,10,12,.97)); box-shadow: 0 24px 65px rgba(255,51,95,.12); }
.podium-ranker--second { border-color: rgba(155,92,255,.26); }
.podium-ranker--third { border-color: rgba(155,92,255,.2); }
.podium-place { position: absolute; left: 14px; top: 10px; color: rgba(255,255,255,.18); font-size: 1.35rem; font-weight: 1000; letter-spacing: -.04em; }
.podium-ranker strong { max-width: 100%; overflow-wrap: anywhere; margin-top: 15px; font-size: .98rem; }
.podium-ranker small { color: var(--muted); font-size: .7rem; line-height: 1.35; }
.podium-ranker b { color: var(--lime-soft); margin-top: auto; padding-top: 16px; font-size: .9rem; }
.podium-ranker--first b { color: #ff92a9; }
.crown-chip { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 7px 11px; border-radius: 999px; color: #180306; background: linear-gradient(135deg,#ff335f,#ff93aa); font-size: .64rem; font-weight: 1000; text-transform: uppercase; letter-spacing: .1em; }

.rank-emblem { --rank-color:#61f20f; --rank-deep:#183b0e; position: relative; width: 50px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 8px 14px rgba(0,0,0,.34)); isolation: isolate; }
.rank-emblem::before { content: ""; position: absolute; inset: 7px 6px; z-index: -2; transform: rotate(45deg); border: 2px solid var(--rank-color); border-radius: 9px; background: linear-gradient(135deg, var(--rank-color), var(--rank-deep) 64%); box-shadow: inset 0 0 0 3px rgba(0,0,0,.3), 0 0 18px rgba(0,0,0,.3); }
.rank-emblem::after { content: ""; position: absolute; width: 19px; height: 19px; z-index: -1; border: 2px solid rgba(255,255,255,.68); transform: rotate(45deg); }
.rank-emblem span { font-weight: 1000; font-size: .76rem; letter-spacing: -.05em; text-shadow: 0 2px 5px rgba(0,0,0,.8); }
.rank-emblem--large { width: 76px; height: 82px; margin-top: 16px; }
.rank-emblem--large::before { inset: 11px 10px; border-radius: 12px; border-width: 3px; }
.rank-emblem--large::after { width: 29px; height: 29px; }
.rank-emblem--large span { font-size: 1.05rem; }
.rank-emblem--profile { width: 88px; height: 94px; }
.rank-emblem--profile::before { inset: 13px 12px; border-width: 3px; }
.rank-emblem--profile::after { width: 34px; height: 34px; }
.rank-emblem--profile span { font-size: 1.12rem; }
.rank-emblem--predator { --rank-color:#ff335f; --rank-deep:#54101e; }
.rank-emblem--master { --rank-color:#9b5cff; --rank-deep:#32155e; }
.rank-emblem--diamond { --rank-color:#43bfff; --rank-deep:#0e4263; }
.rank-emblem--platinum { --rank-color:#58e4cf; --rank-deep:#114b49; }
.rank-emblem--gold { --rank-color:#ffd45e; --rank-deep:#705015; color:#171006; }

.rankings-summary { position: relative; z-index: 2; background: rgba(4,10,7,.86); border-bottom: 1px solid var(--line); }
.rankings-stats { display: grid; grid-template-columns: repeat(4,1fr); }
.rankings-stats > div { position: relative; padding: 25px 26px; border-left: 1px solid var(--line); }
.rankings-stats > div:last-child { border-right: 1px solid var(--line); }
.rankings-stats span, .rankings-stats small { display: block; color: var(--muted); }
.rankings-stats span { text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; font-weight: 900; }
.rankings-stats strong { display: block; margin: 3px 0; color: var(--text); font-size: 1.5rem; line-height: 1.15; }
.rankings-stats small { font-size: .73rem; }

.rankings-section-head { align-items: end; }
.rankings-section-head h2 { max-width: 760px; }
.rankings-toolbar { display: grid; grid-template-columns: 1.45fr repeat(3,1fr); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.022); margin-bottom: 16px; }
.rankings-toolbar label { color: var(--muted); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.rankings-toolbar .form-control { margin-top: 6px; min-height: 46px; text-transform: none; letter-spacing: 0; }
.rankings-toolbar .form-control:focus { outline: 2px solid rgba(97,242,15,.4); outline-offset: 1px; border-color: var(--lime); }

.leaderboard-shell { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(13,29,20,.82), rgba(4,10,7,.7)); box-shadow: var(--shadow); }
.leaderboard-caption { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.leaderboard-caption > div { display: flex; align-items: center; gap: 12px; }
.leaderboard-caption strong { font-size: .85rem; }
.leaderboard-caption > span { color: var(--muted); font-size: .75rem; }
.rankings-table-wrap { border: 0; border-radius: 0; }
.rankings-table { min-width: 1030px; }
.rankings-table th { padding-top: 12px; padding-bottom: 12px; background: rgba(3,8,5,.66); color: var(--muted); }
.rankings-table td { height: 78px; }
.rankings-table tbody tr:last-child td { border-bottom: 0; }
.rankings-table tbody tr:hover td { background: rgba(97,242,15,.035); }
.ranking-position { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-weight: 1000; font-size: .82rem; }
.ranking-position--1 { color: #071007; border-color: var(--gold); background: var(--gold); box-shadow: 0 0 20px rgba(255,212,94,.18); }
.ranking-position--2 { color: #071007; border-color: var(--silver); background: var(--silver); }
.ranking-position--3 { color: #170a03; border-color: var(--bronze); background: var(--bronze); }
.ranking-player { border: 0; background: none; color: inherit; padding: 0; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.ranking-player:hover strong { color: var(--lime); }
.ranking-player:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; border-radius: 6px; }
.ranking-player span:last-child { display: grid; }
.ranking-player strong { font-size: .93rem; transition: color .2s ease; }
.ranking-player small { color: var(--muted); font-size: .68rem; }
.player-avatar { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; color: #081008; background: linear-gradient(135deg,var(--lime),#d5ffba); font-weight: 1000; }
.platform-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.platform-chip i { width: 30px; height: 25px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--lime-soft); background: rgba(97,242,15,.05); font-style: normal; font-size: .58rem; letter-spacing: .04em; }
.platform-chip--ps i { color: #73b8ff; background: rgba(43,120,255,.08); border-color: rgba(75,148,255,.2); }
.platform-chip--xb i { color: #8ef58b; background: rgba(57,180,63,.08); border-color: rgba(84,199,89,.2); }
.rank-cell { display: flex; align-items: center; gap: 13px; }
.rank-cell > span:last-child { display: grid; }
.rank-cell strong { font-size: .83rem; }
.rank-cell small { color: var(--muted); font-size: .67rem; }
.rp-value { font-size: 1rem; font-variant-numeric: tabular-nums; }
.rp-label { color: var(--muted); margin-left: 5px; font-size: .65rem; }
.movement { display: inline-flex; justify-content: center; min-width: 40px; padding: 5px 8px; border-radius: 999px; font-size: .7rem; font-weight: 1000; }
.movement--up { color: var(--lime-soft); background: rgba(97,242,15,.1); }
.movement--down { color: #ff93a9; background: rgba(255,51,95,.1); }
.movement--same { color: var(--muted); background: rgba(255,255,255,.04); }
.updated-time { color: var(--muted); font-size: .72rem; }
.empty-rankings { padding: 54px 20px; text-align: center; }
.empty-rankings strong, .empty-rankings span { display: block; }
.empty-rankings span { color: var(--muted); margin-top: 5px; }

.rank-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 18px; margin-top: 18px; color: var(--muted); font-size: .75rem; }
.rank-legend > span { color: var(--text); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
.rank-legend > div { display: flex; align-items: center; gap: 7px; }
.legend-gem { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--rank-color); box-shadow: 0 0 9px rgba(255,255,255,.12); }
.legend-gem--predator { --rank-color:#ff335f; }
.legend-gem--master { --rank-color:#9b5cff; }
.legend-gem--diamond { --rank-color:#43bfff; }
.legend-gem--platinum { --rank-color:#58e4cf; }
.legend-gem--gold { --rank-color:#ffd45e; }

.rankings-explainer { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 50%, rgba(155,92,255,.12), transparent 35%), rgba(2,7,4,.36); }
.rankings-info-grid { align-items: stretch; }
.rankings-process h2 { max-width: 620px; font-size: clamp(2rem,3.4vw,3.2rem); }
.ranking-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.ranking-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ranking-steps li:last-child { border-bottom: 0; }
.ranking-steps > li > span { color: var(--lime); font-weight: 1000; letter-spacing: .08em; }
.ranking-steps div { display: grid; }
.ranking-steps small { color: var(--muted); }
.registration-preview { position: relative; overflow: hidden; border: 1px solid rgba(155,92,255,.34); border-radius: var(--radius); padding: 30px; background: linear-gradient(145deg,rgba(39,20,63,.9),rgba(7,17,11,.96) 67%); box-shadow: var(--shadow); }
.registration-preview::after { content: "//"; position: absolute; right: -12px; bottom: -80px; color: rgba(155,92,255,.12); font-size: 260px; font-weight: 1000; letter-spacing: -.2em; pointer-events: none; }
.registration-preview > * { position: relative; z-index: 1; }
.registration-preview__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 58px; }
.registration-preview__mark { color: rgba(255,255,255,.4); font-size: .68rem; font-weight: 1000; letter-spacing: .15em; }
.registration-preview h2 { font-size: clamp(2.2rem,4vw,4rem); max-width: 600px; }
.registration-preview p { color: var(--muted); max-width: 580px; }
.registration-fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0; }
.registration-fields span { padding: 9px 11px; border: 1px solid rgba(155,92,255,.25); border-radius: 10px; color: #d9c7ff; background: rgba(155,92,255,.07); font-size: .72rem; }
.registration-note { display: block; color: var(--muted); margin-top: 14px; }
.rankings-registration-form { border-color: rgba(155,92,255,.34); background: linear-gradient(155deg,rgba(34,19,55,.88),rgba(10,24,16,.96) 58%); }
.rankings-registration-form .form-control:focus { outline: 2px solid rgba(155,92,255,.42); outline-offset: 1px; border-color: var(--purple); }
.rankings-registration-aside figure { border-color: rgba(155,92,255,.3); }
.rankings-credit { display: grid; grid-template-columns: .7fr 1.3fr; gap: 30px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.rankings-credit h3 { margin: 5px 0 0; }
.rankings-credit p { color: var(--muted); margin: 0; }
.rankings-credit a { color: var(--lime-soft); font-weight: 800; }

.ranking-modal-card { max-width: 880px; background: linear-gradient(160deg,#102719,#090d0b 68%); }
.ranking-profile-head { display: flex; align-items: center; gap: 24px; padding: 18px 0 8px; }
.ranking-profile-head h2 { margin: 5px 0 6px; }
.ranking-profile-head p { margin: 0; color: var(--muted); }
.ranking-profile-stats .profile-stat small { color: var(--muted); }
.ranking-profile-stats .profile-stat strong { font-size: 1.05rem; }
.ranking-profile-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.ranking-profile-actions > span { color: var(--muted); font-size: .8rem; }
.modal-lock { overflow: hidden; }

@media (max-width: 1100px) {
  .rankings-hero-grid { grid-template-columns: 1fr; }
  .rank-podium { width: min(680px,100%); padding-top: 10px; }
  .rankings-toolbar { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .rankings-hero { min-height: auto; }
  .rankings-stats { grid-template-columns: repeat(2,1fr); }
  .rankings-stats > div:nth-child(3), .rankings-stats > div:nth-child(4) { border-top: 1px solid var(--line); }
  .rankings-info-grid, .rankings-credit { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rankings-hero-grid { padding-top: 42px; padding-bottom: 42px; }
  .rankings-hero-copy h1 { font-size: clamp(3.25rem,17vw,5rem); }
  .demo-flag { grid-template-columns: 1fr; }
  .podium-grid { gap: 5px; }
  .podium-ranker { min-height: 230px; padding: 28px 7px 14px; }
  .podium-ranker--first { min-height: 280px; }
  .podium-ranker strong { font-size: .76rem; }
  .podium-ranker small { display: none; }
  .podium-ranker b { font-size: .68rem; }
  .rank-emblem--large { width: 58px; height: 64px; }
  .crown-chip { font-size: .55rem; }
  .rankings-stats > div { padding: 20px 14px; }
  .rankings-stats strong { font-size: 1.16rem; }
  .rankings-toolbar { grid-template-columns: 1fr; }
  .leaderboard-caption, .leaderboard-caption > div, .ranking-profile-actions { align-items: flex-start; flex-direction: column; }
  .leaderboard-caption { padding: 15px; }
  .rankings-credit { padding: 22px; }
  .ranking-profile-head { align-items: flex-start; flex-direction: column; }
}
