/* ZeroPvP tier list (2026-11-16, owner: "the leaderboard like pvptiers", round 3 of the /v2 preview, now live).
   Used by leaderboard.html (the full list) and the home page (the small version). Colours only from the
   zp.css token block; chamfered frames are an edge colour behind a 1px inset fill with the same cut. */
.tl{--tl-c:16px;--tl-edge:rgba(255,255,255,.16);--tl-edge-hi:rgba(255,255,255,.36);--tl-fill:linear-gradient(var(--zp-box),var(--zp-box));--tl-ease:cubic-bezier(.22,1,.36,1);color:var(--zp-white)}
.tl *{box-sizing:border-box}
.tl-fr{--fc:var(--tl-c);position:relative;isolation:isolate;background:var(--fe,var(--tl-edge));clip-path:polygon(0 0,calc(100% - var(--fc)) 0,100% var(--fc),100% calc(100% - var(--fc)),calc(100% - var(--fc)) 100%,var(--fc) 100%,0 calc(100% - var(--fc)))}
.tl-fr::before{content:"";position:absolute;inset:1px;z-index:-1;background:var(--ff,var(--tl-fill));clip-path:polygon(0 0,calc(100% - var(--fc)) 0,100% var(--fc),100% calc(100% - var(--fc)),calc(100% - var(--fc)) 100%,var(--fc) 100%,0 calc(100% - var(--fc)))}
.tl-s{--fc:5px}
.tl-o,.tl-o::before{clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px)}
.tl-mc{font-family:'McVanilla','ZeroCraft',monospace;font-weight:400}

/* buttons */
.tl-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:42px;padding:0 18px;border:0;color:#fff;font:600 14.5px/1 var(--nx-body);text-decoration:none;white-space:nowrap;cursor:pointer;transition:filter .2s,transform .25s var(--tl-ease)}
.tl-btn svg{width:17px;height:17px;fill:currentColor}
.tl-btn-red{--fe:rgba(255,170,178,.5);--ff:var(--zp-grad)}
.tl-btn-red:hover{filter:brightness(1.12)}
.tl-btn-dark{--ff:var(--zp-raise)}
.tl-btn-dark:hover{--fe:var(--tl-edge-hi)}
@media (hover:hover){.tl-btn:hover{transform:translateY(-1px)}}

/* chips, tier tags, kit hexagons, heads */
.tl-chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px;white-space:nowrap;font:600 12.5px/1 var(--nx-body);color:#fff}
.tl-chip-title{--fe:rgba(255,190,198,.55);--ff:var(--zp-grad)}
.tl-chip-red{--fe:color-mix(in srgb,var(--zp-red-hi) 80%,transparent);--ff:color-mix(in srgb,var(--zp-main) 55%,transparent)}
.tl-chip-cc{--fe:rgba(255,255,255,.28);--ff:var(--zp-band);font:400 18px/1 'McVanilla',monospace;color:var(--zp-grey)}
.tl-chip-cc img{width:12px;height:12px;image-rendering:pixelated}
.tl-tg{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:24px;padding:0 6px 2px;font:400 18px/1 'McVanilla','ZeroCraft',monospace;color:var(--zp-grey);--fe:rgba(255,255,255,.26);--ff:var(--zp-band)}
.tl-t5{color:#C8CCD3}.tl-t4{color:var(--t-ht4)}.tl-t3{color:var(--t-ht3)}.tl-t2{color:var(--t-ht2)}.tl-t1{color:var(--t-ht1);--fe:rgba(255,215,0,.6)}
.tl-hx{position:relative;width:44px;height:44px;flex:none;display:flex;align-items:center;justify-content:center;background:var(--hxe,rgba(255,255,255,.26));clip-path:polygon(29% 0,71% 0,100% 29%,100% 71%,71% 100%,29% 100%,0 71%,0 29%)}
.tl-hx::before{content:"";position:absolute;inset:2px;background:var(--zp-raise);clip-path:inherit}
.tl-hx img{position:relative;width:62%;height:62%;image-rendering:pixelated}
.tl-hx.h1{--hxe:var(--zp-gold-deep)}.tl-hx.h2{--hxe:var(--silver)}.tl-hx.h3{--hxe:var(--bronze)}
.tl-hx.none{--hxe:rgba(255,255,255,.1)}
.tl-hx.none::after{content:"?";position:relative;font:400 18px/1 'McVanilla',monospace;color:rgba(255,255,255,.22)}
.tl-kt{display:flex;flex-direction:column;align-items:center;gap:6px}
.tl-hd{width:32px;height:32px;flex:none;image-rendering:pixelated;background:var(--zp-band);clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px)}
.tl-load{display:block;height:44px;margin:8px 0;background:linear-gradient(90deg,var(--zp-box) 0,var(--zp-raise) 50%,var(--zp-box) 100%);background-size:200% 100%;animation:tlsk 1.4s linear infinite}
@keyframes tlsk{to{background-position:-200% 0}}
.tl-empty{padding:16px 4px;color:var(--zp-muted)}

/* ---------- the full page ---------- */
.tl-page{max-width:1376px;margin:0 auto;padding:36px var(--gutter,16px) 70px}
.tl-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.tl-head h1{margin:0;font:600 clamp(30px,3vw,38px)/1.1 var(--nx-body)}
.tl-head p{margin:6px 0 0;color:var(--zp-grey)}
.tl-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tl-search{position:relative;width:240px;height:42px}
.tl-search input{width:100%;height:100%;padding:0 14px 0 38px;border:0;background:transparent;color:#fff;font:500 14.5px var(--nx-body);outline:none}
.tl-search input::placeholder{color:var(--zp-muted)}
.tl-search svg{position:absolute;left:12px;top:12px;width:18px;height:18px;fill:var(--zp-muted)}
.tl-search::after{content:"";position:absolute;left:12px;right:0;bottom:5px;height:1px;background:var(--tl-edge-hi);transform:skewX(-40deg)}
.tl-sres{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;padding:6px;background:var(--zp-band);border:1px solid var(--tl-edge);display:none}
.tl-sres.on{display:block}
.tl-sres button{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border:0;background:none;color:#fff;font:600 14.5px var(--nx-body);text-align:left;cursor:pointer}
.tl-sres button:hover,.tl-sres button.on{background:var(--zp-raise)}
.tl-sres small{margin-left:auto;font:400 18px/1 'McVanilla',monospace;color:var(--zp-muted)}
.tl-sres p{margin:0;padding:8px;color:var(--zp-muted)}
.tl-tabs-wrap{overflow-x:auto;scrollbar-width:none;padding-top:26px;margin-top:18px}
.tl-tabs-wrap::-webkit-scrollbar{display:none}
.tl-tabs{position:relative;display:flex;width:max-content}
.tl-tab{position:relative;width:126px;height:48px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px;margin-right:-1px;background:var(--zp-box);border:1px solid var(--tl-edge);color:var(--zp-muted);font:600 13px/1 var(--nx-body);white-space:nowrap;cursor:pointer;transition:color .2s,background .2s}
.tl-tab img{position:absolute;left:50%;top:-20px;width:34px;height:34px;transform:translateX(-50%);image-rendering:pixelated;filter:saturate(.7) brightness(.8);transition:filter .2s,transform .25s var(--tl-ease)}
.tl-tab:hover{color:#fff}
.tl-tab:hover img{transform:translate(-50%,-2px)}
.tl-tab[aria-selected="true"]{color:#fff;background:var(--zp-raise);border-color:var(--tl-edge-hi);z-index:1}
.tl-tab[aria-selected="true"] img{filter:none}
.tl-glow{position:absolute;left:0;bottom:-1px;width:126px;height:3px;z-index:2;background:var(--zp-red-hi);box-shadow:0 0 14px 2px color-mix(in srgb,var(--zp-red-hi) 60%,transparent);pointer-events:none;transition:transform .22s var(--tl-ease),width .22s var(--tl-ease)}
.tl-view{transition:opacity .3s var(--tl-ease),transform .3s var(--tl-ease)}
.tl-thead{display:grid;grid-template-columns:118px minmax(0,1fr) 90px 470px;gap:18px;padding:30px 22px 12px 0;font:400 18px/1 'McVanilla',monospace;color:var(--zp-muted)}
.tl-thead span:nth-child(3){text-align:center}
.tl-thead span:last-child{text-align:right}
.tl-rows{display:grid;gap:20px}
.tl-row{display:grid;grid-template-columns:116px minmax(0,1fr);width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer;transition:transform .25s var(--tl-ease)}
@media (hover:hover){.tl-row:hover{transform:translateY(-2px)}}
.tl-medal{display:block;position:relative;height:100px;overflow:hidden;--ff:var(--zp-raise-2)}
.tl-medal,.tl-medal::before{clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
.tl-medal img{position:absolute;left:50%;top:8px;width:72%;transform:translateX(-50%);filter:drop-shadow(0 4px 6px rgba(0,0,0,.5))}
.tl-medal b{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);min-width:34px;height:28px;padding:0 6px 2px;display:flex;align-items:center;justify-content:center;font:400 18px/1 'McVanilla',monospace;color:#fff;background:var(--zp-band);border:1px solid rgba(255,255,255,.45);clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px)}
.tl-m1{--fe:rgba(255,226,140,.9);--ff:linear-gradient(160deg,#F7D774,#B8861E)}
.tl-m1 b{color:#FFE28A;border-color:var(--zp-gold-deep)}
.tl-m2{--fe:rgba(240,244,250,.9);--ff:linear-gradient(160deg,#E7EBF1,#8C939E)}
.tl-m3{--fe:rgba(240,180,140,.9);--ff:linear-gradient(160deg,#E2A270,#8A4B22)}
.tl-m4{--fe:color-mix(in srgb,var(--zp-red-hi) 70%,transparent);--ff:var(--zp-main)}
.tl-card{--fc:14px;display:grid;grid-template-columns:minmax(0,1fr) 90px 470px;gap:18px;align-items:center;min-height:100px;margin-left:-14px;padding:0 22px 0 34px}
.tl-card.c1{--fe:rgba(244,193,82,.85)}.tl-card.c2{--fe:rgba(220,226,234,.7)}.tl-card.c3{--fe:rgba(208,138,78,.8)}
.tl-who{display:block;min-width:0}
.tl-nm{display:block;font:600 22px/1.2 var(--nx-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-meta{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
.tl-pts{font:600 14px/1 var(--nx-body);color:var(--zp-grey)}
.tl-reg{display:flex;justify-content:center}
.tl-kits{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding-block:12px}
.tl-mm{display:none;position:relative;width:76px;height:76px}
.tl-mm .tl-medal{height:76px}
.tl-more{display:flex;justify-content:center;margin-top:24px}
.tl-cols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:30px}
.tl-col{min-width:0;align-self:start}
.tl-col h3{display:flex;align-items:center;height:52px;margin:0;padding:0 16px;font:700 16px/1 var(--nx-body);color:#141518;clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%)}
.tl-c1 h3{background:linear-gradient(180deg,#FFE9A6,#E2B13C)}
.tl-c2 h3{background:linear-gradient(180deg,#F2F5F9,#A9B0BA)}
.tl-c3 h3{background:linear-gradient(180deg,#F0B98C,#A75C2A);color:#1c0f06}
.tl-c4 h3{background:var(--zp-grad);color:#fff}
.tl-c5 h3{background:linear-gradient(180deg,#8E939C,#4D525B);color:#fff}
.tl-col ol{list-style:none;margin:0;padding:0}
.tl-col li button{display:flex;align-items:center;gap:10px;width:100%;height:48px;padding:0 12px;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:none;color:#fff;font:600 15px var(--nx-body);text-align:left;cursor:pointer;transition:background .18s}
.tl-c1 li button{background:linear-gradient(90deg,rgba(244,193,82,.12),transparent)}
.tl-c2 li button{background:linear-gradient(90deg,rgba(201,206,214,.12),transparent)}
.tl-c3 li button{background:linear-gradient(90deg,rgba(208,138,78,.14),transparent)}
.tl-c4 li button{background:linear-gradient(90deg,color-mix(in srgb,var(--zp-main) 26%,transparent),transparent)}
.tl-col li button:hover{background:rgba(255,255,255,.05)}
.tl-col li button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-up{width:20px;height:20px;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.4);border-radius:50%}
.tl-up svg{width:12px;height:12px;fill:#fff}
.tl-col li button .tl-chip,.tl-col li button .tl-tg{margin-left:auto}
.tl-col .none{padding:14px 12px;color:var(--zp-muted)}
.tl-col .foot{height:18px}
.tl-pending{margin-top:20px;color:var(--zp-muted)}
.tl-updated{margin-top:26px;color:var(--zp-muted);font-size:13px}

/* the profile pop-up */
.tl-modal{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.72);opacity:0;pointer-events:none;transition:opacity .22s var(--tl-ease)}
.tl-modal.on{opacity:1;pointer-events:auto}
.tl-sheet{--fc:18px;--ff:var(--zp-band);width:min(480px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:24px 18px 26px;transform:translateY(8px);transition:transform .25s var(--tl-ease)}
.tl-modal.on .tl-sheet{transform:none}
.tl-x{position:absolute;right:14px;top:14px;z-index:2;width:46px;height:46px;display:flex;align-items:center;justify-content:center;border:0;cursor:pointer;--ff:var(--zp-band);--fe:rgba(255,255,255,.4)}
.tl-x i{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:2px solid #fff;border-radius:50%}
.tl-x svg{width:12px;height:12px;fill:#fff}
.tl-pf{text-align:left}
.tl .tl-pf h2{margin:0;padding-right:56px;font:600 24px/1.2 var(--nx-body)!important;text-transform:none!important;letter-spacing:0!important}
.tl-pf .chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.tl-pf .ov{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.tl-pf .ov img{width:22px;height:22px;image-rendering:pixelated}
.tl-pf .ov i{width:1px;height:20px;background:var(--tl-edge-hi)}
.tl-pf .fig{display:flex;justify-content:center;height:230px;margin-top:16px}
.tl-pf .fig img{height:100%;width:auto;filter:drop-shadow(0 12px 10px rgba(0,0,0,.6))}
.tl-pf .plate{display:flex;justify-content:center;margin-top:-6px}
.tl-pf .plate b{min-width:58px;height:42px;padding:0 10px 2px;display:flex;align-items:center;justify-content:center;font:400 27px/1 'McVanilla',monospace;color:#fff;--fe:rgba(255,255,255,.5);--ff:var(--zp-band)}
.tl-pf .plate b.g{color:#FFE28A;--fe:var(--zp-gold-deep)}
.tl-pf .acts{display:flex;justify-content:center;gap:10px;margin-top:18px}
.tl-sec{margin-top:22px;text-align:center}
.tl-sec h3{margin:0 0 12px;font:400 18px/1 'McVanilla',monospace;color:var(--zp-grey)}
.tl-pfk{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.tl-ptab{width:100%;border-collapse:collapse;margin-top:14px;font-size:14.5px}
.tl-ptab td{padding:7px 8px;border-bottom:1px solid rgba(255,255,255,.07)}
.tl-ptab td:nth-child(2),.tl-ptab td:last-child{text-align:right;font:400 18px/1 'McVanilla',monospace}
.tl .tl-sheet h2.t{margin:0;font:600 24px/1.2 var(--nx-body)!important;text-transform:none!important}
.tl-sheet p.d{margin:8px 0 0;padding-right:50px;color:var(--zp-grey)}

/* ---------- the small version on the home page ---------- */
.tl-mini{max-width:1320px;margin:0 auto;padding:10px var(--gutter,16px) 40px}
.tl-mini-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.tl-pnl{--fc:16px}
.tl-pnl-h{display:flex;align-items:center;justify-content:space-between;gap:12px;height:52px;padding:0 18px;border-bottom:1px solid var(--tl-edge);background:rgba(255,255,255,.04)}
.tl-pnl-h h2{margin:0;font:600 18px/1 var(--nx-body)}
.tl-pnl-h a{color:var(--zp-grey);font:600 13.5px var(--nx-body);text-decoration:none}
.tl-pnl-h a:hover{color:#fff}
.tl-pnl-b{padding:14px 18px 18px}
.tl-pnl-b>.tl-chip{margin-bottom:6px}
.tl-rr{display:flex;align-items:center;gap:12px;height:48px;color:#fff;text-decoration:none;transition:transform .25s var(--tl-ease)}
@media (hover:hover){.tl-rr:hover{transform:translateX(4px)}}
.tl-rr .n{font:400 18px/1 'McVanilla',monospace;color:var(--zp-muted);width:22px;text-align:right}
.tl-rr .n.g{color:var(--zp-gold)}
.tl-rr .nm{min-width:0;font:600 16px var(--nx-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-rr .nm small{margin-left:6px;color:var(--zp-muted);font-weight:500;font-size:13px}
.tl-rr .rt{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
.tl-rr .tl-hx{width:30px;height:30px}
.tl-rr .kl{color:var(--zp-muted);font:600 13px/1 var(--nx-body)}
.tl-mini-foot{display:flex;justify-content:center;margin-top:18px}

@media (prefers-reduced-motion:reduce){.tl-glow,.tl-view,.tl-row,.tl-rr,.tl-btn,.tl-sheet,.tl-modal{transition-duration:.01ms}.tl-load{animation:none}}
@media (max-width:1180px){
  .tl-card{grid-template-columns:minmax(0,1fr) auto;padding-right:16px}
  .tl-card .tl-kits{grid-column:1 / -1;justify-content:flex-start;padding-top:0}
  .tl-thead{display:none}
  .tl-cols{grid-template-columns:repeat(5,minmax(220px,1fr));overflow-x:auto;padding-bottom:6px}
}
@media (max-width:900px){.tl-mini-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:620px){
  .tl-page{padding-top:24px}
  .tl-tools{width:100%}
  .tl-tools .tl-search{width:100%}
  .tl-tools .tl-btn{flex:1}
  .tl-tab{width:104px}
  .tl-row{grid-template-columns:minmax(0,1fr)}
  .tl-row>.tl-medal{display:none}
  .tl-mm{display:block}
  .tl-card{margin-left:0;padding:14px 16px;grid-template-columns:76px minmax(0,1fr) auto}
  .tl-card .tl-kits{grid-column:1 / -1}
  .tl-kits .tl-kt[aria-hidden]{display:none}
  .tl-nm{font-size:19px}
  .tl-rr .kl,.tl-rr .nm small{display:none}
  .tl-hx{width:40px;height:40px}
}
