/* /leaderboard (V4b). Everything is scoped to .pg-lb. */

/* Page band */
.pg-lb .band{padding:18px 0 88px}
.pg-lb .band::after{height:72px;opacity:1;background:
  radial-gradient(58% 120% at 16% 100%,#25365f 60%,transparent 61%),
  radial-gradient(54% 104% at 84% 100%,#1c2c55 60%,transparent 61%),
  linear-gradient(transparent 64%,var(--menu-1) 64%)}
.pg-lb .band-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:center}
.pg-lb .band-copy{min-width:0}
.pg-lb .band h1{margin:12px 0 8px;max-width:640px}
.pg-lb .band .lede{max-width:600px;margin:0 0 12px;color:#e7e9ff}
.pg-lb .band .note{max-width:600px;margin:0 0 14px;color:#cdd5f2;font-size:14.5px}
.pg-lb .band-art{display:grid;place-items:center;min-width:0}
.pg-lb .band-art img{display:block;width:min(72vw,280px);max-width:100%;height:auto;filter:drop-shadow(0 16px 20px rgba(8,12,30,.3))}
.pg-lb .live{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:rgba(10,18,41,.42);border:1px solid var(--line-2);color:#e9eeff;font-size:13px;font-weight:800}
.pg-lb .live i{width:8px;height:8px;border-radius:50%;background:#7be35f;animation:pg-lb-pulse 2.2s ease-out infinite}
.pg-lb .live.is-down i{background:#f2a33a;animation:none}
.pg-lb .live.is-archive i{background:#b7b0a1;animation:none}
.pg-lb .live time{font-variant-numeric:tabular-nums}
@keyframes pg-lb-pulse{0%{box-shadow:0 0 0 0 rgba(123,227,95,.6)}70%{box-shadow:0 0 0 8px rgba(123,227,95,0)}100%{box-shadow:0 0 0 0 rgba(123,227,95,0)}}
@media (min-width:900px){
  .pg-lb .band-grid{grid-template-columns:minmax(0,1fr) minmax(300px,42%);gap:28px}
  .pg-lb .band-art img{width:100%;max-width:480px}
}
@media (min-width:1024px){.pg-lb .band{padding:24px 0 104px}}

/* Body */
.pg-lb .pg-body{padding:0 0 56px}
.pg-lb .lift{position:relative;z-index:2;margin-top:-64px}
@media (min-width:1024px){.pg-lb .lift{margin-top:-84px}.pg-lb .pg-body{padding-bottom:84px}}
.pg-lb .muted{color:var(--stone-mute)}

/* Fields on stone */
.pg-lb .fld{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}
.pg-lb .fld > label{font-size:13px;font-weight:800;color:var(--stone-mute)}
.pg-lb .inp{position:relative;display:flex;align-items:center;gap:8px;min-height:48px;padding:0 6px 0 12px;background:#fff;border:1.5px solid #cfc8b8;border-radius:12px}
.pg-lb .inp:focus-within{border-color:var(--blue-2);box-shadow:0 0 0 3px rgba(42,139,224,.2)}
.pg-lb .inp > svg{width:18px;height:18px;flex:0 0 auto;color:var(--stone-mute)}
.pg-lb .inp > img{width:22px;height:22px;object-fit:contain;flex:0 0 auto}
.pg-lb .inp input,.pg-lb .inp select{flex:1 1 auto;min-width:0;width:100%;height:45px;border:0;outline:0;background:transparent;font:800 16px "Nunito",sans-serif;color:var(--stone-ink)}
.pg-lb .inp input::placeholder{color:#9aa0ad;font-weight:600}
.pg-lb .inp input[type="search"]::-webkit-search-cancel-button{display:none}
.pg-lb .inp select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:28px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6170' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 8px center/12px no-repeat}
.pg-lb .inp .clr{flex:0 0 auto;width:36px;height:36px;border:0;border-radius:9px;background:var(--card-2);display:grid;place-items:center;color:var(--stone-mute)}
.pg-lb .inp .clr svg{width:12px;height:12px}
.pg-lb .inp .clr[hidden]{display:none}

/* Buttons on stone */
.pg-lb .btn-line{--c2:#fff;color:var(--stone-ink);box-shadow:inset 0 0 0 1.5px var(--card-line),0 1px 2px rgba(8,12,30,.08)}
.pg-lb .btn{min-height:48px}
.pg-lb .btn svg{width:13px;height:13px;flex:0 0 auto}
.pg-lb .btn[hidden]{display:none}

/* States */
.pg-lb .state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:28px 18px 26px;border-radius:16px;background:#fff;border:1.5px dashed var(--stone-3)}
.pg-lb .state[hidden]{display:none}
.pg-lb .state > img{width:64px;height:64px;object-fit:contain}
.pg-lb .state h3{margin:4px 0 0;font:800 18px/1.3 "Nunito",sans-serif;color:var(--stone-ink);overflow-wrap:anywhere}
.pg-lb .state p{margin:0;max-width:460px;color:var(--stone-mute);font-size:15px}
.pg-lb .state .acts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:8px}
.pg-lb .state.warn{border-color:#ecd9a4;background:#fffaf0}
.pg-lb .chg.new{color:var(--blue-2)}

/* Controls */
.pg-lb .board{padding:12px}
@media (min-width:1024px){.pg-lb .board{padding:18px}}
.pg-lb .rk-controls{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}
.pg-lb .rk-types{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:var(--card-2);border:0;width:100%;min-inline-size:0}
.pg-lb .rk-types label{position:relative;min-height:44px;padding:0 8px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font:800 15px "Nunito",sans-serif;color:var(--stone-ink);cursor:pointer}
.pg-lb .rk-types label img{width:22px;height:22px;object-fit:contain}
.pg-lb .rk-types label.is-on,.pg-lb .rk-types label:has(input:checked){background:#fff;box-shadow:var(--soft-sm)}
.pg-lb .rk-types label:has(input:focus-visible){outline:2px solid var(--blue-2);outline-offset:2px}
.pg-lb .rk-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:end}
.pg-lb .lb-scope{margin:0;font-size:13px;font-weight:700;color:var(--stone-mute)}
.pg-lb .lb-scope b{color:var(--stone-ink);font-weight:800}
@media (min-width:640px){
  .pg-lb .rk-types{display:inline-flex;width:auto;align-self:flex-start}
  .pg-lb .rk-filters{grid-template-columns:minmax(0,1fr) 280px auto}
}
@media (min-width:1024px){.pg-lb .rk-filters{grid-template-columns:minmax(0,1fr) 300px auto}}
.pg-lb .rk-view{transition:opacity .2s ease}
.pg-lb .rk-board[aria-busy="true"] .rk-view{opacity:.45;pointer-events:none}

/* Podium: top 3 */
.pg-lb .rk-board.is-filtering .podium{display:none}
.pg-lb .podium{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end}
.pg-lb .pod{min-width:0}
.pg-lb .pod-1{order:2}.pg-lb .pod-2{order:1}.pg-lb .pod-3{order:3}
.pg-lb .pod a{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:12px 6px 0;border-radius:16px;background:#fff;text-decoration:none;color:inherit;overflow:hidden;
  box-shadow:inset 0 0 0 1px var(--card-line);transition:transform .15s ease}
.pg-lb .pod a:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1.5px var(--blue-2)}
.pg-lb .pod-1 a{background:linear-gradient(180deg,#fff2c2 0%,#fffdf5 70%);box-shadow:inset 0 0 0 1px #f0d77a,0 10px 24px rgba(247,181,18,.18)}
.pg-lb .pod-badge{display:grid;place-items:center;width:58px;height:58px}
.pg-lb .pod-badge img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(8,12,30,.18))}
.pg-lb .pod-1 .pod-badge{width:70px;height:70px}
.pg-lb .pod-n{max-width:100%;font:800 14px/1.2 "Nunito",sans-serif;color:var(--stone-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;unicode-bidi:plaintext}
.pg-lb .pod-s{max-width:100%;font-size:11.5px;font-weight:800;color:var(--stone-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pg-lb .pod .pts{font-size:14.5px;gap:4px}
.pg-lb .pod .pts img{width:17px;height:17px}
.pg-lb .pod .chg{min-width:0;text-align:center}
.pg-lb .pod-step{align-self:stretch;margin:8px -6px 0;display:grid;place-items:center;height:40px;font-size:24px;line-height:1;color:#fff;text-shadow:0 2px 0 rgba(8,12,30,.25)}
.pg-lb .pod-1 .pod-step{height:58px;font-size:32px;background:linear-gradient(180deg,#ffd860,#e99a0b)}
.pg-lb .pod-2 .pod-step{height:46px;background:linear-gradient(180deg,#e6eaf3,#a3adc1)}
.pg-lb .pod-3 .pod-step{height:36px;background:linear-gradient(180deg,#f0b47e,#b4652a)}
@media (min-width:768px){
  .pg-lb .podium{gap:12px;margin:0 auto 16px;max-width:880px}
  .pg-lb .pod a{padding:16px 10px 0;gap:4px}
  .pg-lb .pod-badge{width:76px;height:76px}
  .pg-lb .pod-1 .pod-badge{width:96px;height:96px}
  .pg-lb .pod-n{font-size:17px}
  .pg-lb .pod-s{font-size:13px}
  .pg-lb .pod .pts{font-size:17px}
  .pg-lb .pod-step{margin:10px -10px 0}
  .pg-lb .pod-1 .pod-step{height:72px;font-size:40px}
  .pg-lb .pod-2 .pod-step{height:56px;font-size:30px}
  .pg-lb .pod-3 .pod-step{height:44px;font-size:26px}
}

/* One table: card rows below 1024px, a real table above */
.pg-lb .lbt{width:100%;border-collapse:separate;border-spacing:0 4px;font-variant-numeric:tabular-nums}
.pg-lb .lbt tr[hidden]{display:none!important}
.pg-lb .rk-board:not(.is-filtering) .lbt tr.is-pod,.pg-lb .rk-board:not(.is-filtering) .lbt tr.is-extra{display:none}
.pg-lb .ent{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;min-width:0;max-width:340px;min-height:44px}
.pg-lb .ent img{width:40px;height:40px;object-fit:contain;flex:0 0 auto}
.pg-lb .ent span{min-width:0}
.pg-lb .ent b{display:block;font-weight:800;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;unicode-bidi:plaintext;text-align:left}
.pg-lb .ent small{display:block;font-size:12.5px;font-weight:800;color:var(--stone-mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pg-lb .ent:hover b{color:var(--blue-dk);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.pg-lb .ent.sm{min-height:32px;gap:8px}
.pg-lb .ent.sm img{width:28px;height:28px}
.pg-lb .ent.sm b{font-size:14.5px}
.pg-lb .lbt .pts{justify-content:flex-end}
.pg-lb .lbt .lvl-star{margin-left:auto}
.pg-lb .lbt td{color:var(--stone-ink)}
@media (max-width:1023px){
  .pg-lb .lbt,.pg-lb .lbt tbody{display:block}
  .pg-lb .lbt thead{display:none}
  .pg-lb .lbt tr{display:grid;grid-template-columns:30px minmax(0,1fr) auto;grid-template-areas:"rk ent pts" "rk sub chg";column-gap:8px;align-items:center;margin-bottom:4px;padding:8px 10px 8px 4px;border-radius:12px;background:#fff}
  .pg-lb .lbt tr.top1{background:linear-gradient(90deg,#fff4cc,#fff 65%);box-shadow:inset 0 0 0 1px #f0d77a}
  .pg-lb .lbt td{display:block;padding:0;min-width:0}
  .pg-lb .lbt .c-rk{grid-area:rk;align-self:center}
  .pg-lb .lbt .c-ent{grid-area:ent}
  .pg-lb .lbt .c-sub{grid-area:sub;padding-left:50px;font-size:13px;font-weight:800;color:var(--stone-mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pg-lb .lbt .c-pts{grid-area:pts}
  .pg-lb .lbt .c-ch{grid-area:chg;text-align:right}
  .pg-lb .lbt .c-lvl,.pg-lb .lbt .c-mem{display:none}
  .pg-lb .lbt .rk{width:30px;height:30px;font-size:15px}
  .pg-lb .lbt .ent small{display:none}
  .pg-lb .lbt .c-ent .ent{min-height:36px}
  .pg-lb .lbt .c-ent .ent img{width:36px;height:36px}
  .pg-lb .lbt .c-sub{padding-left:46px;margin-top:-2px}
  .pg-lb .lbt .ent.sm{min-height:28px}
  .pg-lb .lbt .ent.sm img{width:20px;height:20px}
  .pg-lb .lbt .ent.sm b{font-size:13px;color:var(--stone-mute)}
  .pg-lb .lbt .c-sub .ent{max-width:100%}
  .pg-lb .lbt .pts{font-size:15px}
  .pg-lb .lbt .pts img{width:17px;height:17px}
  .pg-lb .lbt .chg{font-size:11.5px}
}
@media (min-width:600px) and (max-width:1023px){
  .pg-lb .lbt tr{grid-template-columns:40px minmax(0,1fr) auto auto 110px;grid-template-areas:"rk ent lvl mem pts" "rk sub lvl mem chg";column-gap:12px;padding:8px 12px 8px 6px}
  .pg-lb .lbt .c-lvl{display:block;grid-area:lvl}
  .pg-lb .lbt .c-mem{display:block;grid-area:mem;font-weight:800;font-size:14px}
  .pg-lb .lbt .rk{width:36px;height:36px}
  .pg-lb .lbt .ent small{display:block}
  .pg-lb .lbt .c-pts .pts{font-size:16px}
}
@media (min-width:1024px){
  .pg-lb .lbt-wrap{overflow-x:auto;margin-top:-4px}
  .pg-lb .lbt th{padding:6px 12px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--stone-mute);text-align:left;white-space:nowrap}
  .pg-lb .lbt th.num{text-align:right}
  .pg-lb .lbt td{padding:8px 12px;height:60px;background:#fff;font-weight:800;font-size:15px;white-space:nowrap}
  .pg-lb .lbt td:first-child{border-radius:12px 0 0 12px;width:56px}
  .pg-lb .lbt td:last-child{border-radius:0 12px 12px 0}
  .pg-lb .lbt tr.top1 td{background:#fff8dc}
  .pg-lb .lbt tbody tr:hover td{background:#f4f8ff}
  .pg-lb .lbt .num{text-align:right}
  .pg-lb .lbt .c-ch{width:64px}
  .pg-lb .lbt .c-sub{max-width:280px}
}

/* Foot */
.pg-lb .board-foot{align-items:center}
.pg-lb .board-foot small{font-weight:700}
.pg-lb .rk-acts{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:599px){.pg-lb .rk-acts{width:100%}.pg-lb .rk-acts .btn{flex:1 1 auto}}

@media (prefers-reduced-motion:reduce){
  .pg-lb .live i{animation:none}
  .pg-lb .pod a,.pg-lb .rk-view{transition:none}
  .pg-lb .pod a:hover{transform:none}
}

/* Compare toggle column (players rankings only) */
.pg-lb .lbt .c-cmp{width:56px}
@media (max-width:599px){
  .pg-lb .lbt tr:has(.c-cmp){grid-template-columns:30px minmax(0,1fr) auto 40px;grid-template-areas:"rk ent pts cmp" "rk sub chg cmp"}
}
@media (min-width:600px) and (max-width:1023px){
  .pg-lb .lbt tr:has(.c-cmp){grid-template-columns:40px minmax(0,1fr) auto auto 110px 40px;grid-template-areas:"rk ent lvl mem pts cmp" "rk sub lvl mem chg cmp"}
}
@media (max-width:1023px){.pg-lb .lbt .c-cmp{grid-area:cmp;width:auto;align-self:center}}
@media (min-width:1024px){.pg-lb .lbt td.c-cmp{padding-left:0;text-align:right}}

/* Sky fades straight into the navy page, same as /player: no hill silhouettes with hard edges */
.pg-lb .band::after{height:160px;background:linear-gradient(180deg,rgba(19,34,71,0) 0%,rgba(19,34,71,.55) 45%,var(--menu-1) 100%)}
.pg-lb .band + .menu-bg{background:linear-gradient(180deg,var(--menu-1),var(--menu-2) 900px)}
