*{box-sizing:border-box}:root{--bg:#080c11;--panel:#0d1319;--line:#1d2731;--text:#f3f6f9;--muted:#66717e;--red:#e84950}
body{margin:0;min-height:100vh;background:#080c11;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
a{text-decoration:none;color:inherit}.site-header{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:0 max(18px,calc((100vw - 1210px)/2));background:#0a0f14}
.brand{font-size:21px;font-weight:950;letter-spacing:-.6px}.brand span{color:var(--red)}.header-tag{border-left:1px solid #29333d;padding-left:18px;color:#65717e;font-size:12px}
main{width:min(1210px,calc(100% - 24px));margin:auto;padding:44px 0 70px}.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:26px}
.eyebrow{font-size:11px;letter-spacing:1.7px;color:var(--red);font-weight:900}.hero h1{font-size:45px;line-height:1;margin:7px 0 10px;letter-spacing:-1.8px}.hero p{margin:0;color:#75818e}
.search{width:420px;padding:5px;display:flex;border:1px solid #27323d;border-radius:10px;background:#0d1319}.search input{min-width:0;flex:1;background:none;border:0;outline:0;color:#fff;padding:11px}.search button{border:0;border-radius:7px;background:var(--red);color:#fff;padding:0 18px;font-weight:850;cursor:pointer}

/* MCTiers-style gamemode sign navigation */
.mode-tabs{
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:5px;
  margin:0 0 17px;
  padding:0;
  min-height:88px;
  overflow:visible;
}
.mode-tab{
  min-width:0;
  height:88px;
  position:relative;
  border:1px solid #1d2833;
  border-bottom-color:#26323e;
  border-radius:20px 20px 0 0;
  background:#0c1218;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#46515e;
  transition:background .14s,border-color .14s,color .14s,transform .14s;
}
.mode-tab:hover{background:#101820;color:#aeb8c2;border-color:#2a3743}
.mode-tab.active{background:#111a24;color:#fff;border-color:#263340}
.mode-tab.active:after{
  content:"";
  height:2px;
  background:#eef4f8;
  position:absolute;
  left:0;
  right:0;
  bottom:0;
}
.mode-sign{
  width:38px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:27px;
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Segoe UI Symbol",sans-serif;
  line-height:1;
  overflow:visible;
}
.mode-sign img{width:38px;height:38px;object-fit:contain;display:block;image-rendering:auto;filter:none}
.mode-label{
  width:100%;
  padding:0 4px;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:13px;
  font-weight:900;
  line-height:1.1;
}
.overall .mode-sign{color:#ffb600}.ltms .mode-sign{color:#e6e9ed}.vanilla .mode-sign{color:#c790ff}.uhc .mode-sign{color:#d84c57}.pot .mode-sign{color:#ff6682}.nethop .mode-sign{color:#9a67bb}.smp .mode-sign{color:#00c3a2;text-shadow:0 0 8px #00c3a266}.sword .mode-sign{color:#61b9f1}.axe .mode-sign{color:#67c7e8}.mace .mode-sign{color:#737582}

.panel{background:#0c1218;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-head{padding:17px 19px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.panel-head h2{font-size:16px;margin:0 0 3px}.panel-head small,.panel-head>span{font-size:11px;color:#687481}
.rank-row{border-bottom:1px solid #18212a;transition:.12s}.rank-row:last-child{border-bottom:0}.rank-row:hover{background:#101820}.overall-row{display:grid;grid-template-columns:50px 42px 210px 1fr;gap:13px;align-items:center;padding:13px 17px}.mode-row{display:grid;grid-template-columns:50px 42px 1fr 170px 68px;gap:13px;align-items:center;padding:13px 17px}
.place{font-size:12px;font-weight:800;color:#596572}.head{width:38px;height:38px;border-radius:6px;image-rendering:pixelated}.identity{min-width:0;display:flex;flex-direction:column}.identity-name{min-width:0;display:flex;align-items:center;gap:8px}.identity-name strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leaderboard-mode-icon{width:22px;height:22px;flex:0 0 22px;display:block;object-fit:contain;image-rendering:pixelated}.identity small{font-size:11px;color:#65717d;margin-top:2px}.tier-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.tier-chip{font-size:11px;display:flex;align-items:center;gap:7px;padding:5px 6px 5px 8px;background:#111921;border:1px solid #27323c;border-radius:7px;color:#8d99a5}.tier-chip b,.tier-box{color:#f6f8fa;background:#1a232c;border:1px solid #3b4652;border-radius:5px;padding:3px 6px;font-weight:900}.mode-name{color:#8995a1;font-size:13px}.tier-box{text-align:center;font-size:12px}.empty{padding:45px;text-align:center;color:#65717d}

/* profile styles */
.back{display:inline-block;margin-bottom:20px;color:#8a96a2}.profile{display:flex;gap:24px;align-items:center;background:#0d1319;border:1px solid var(--line);border-radius:13px;padding:25px;margin-bottom:28px}.profile>img{width:100px;height:100px;border-radius:10px;image-rendering:pixelated}.profile div>b{color:var(--red);font-size:11px;letter-spacing:1.5px}.profile h1{font-size:42px;margin:6px 0}.profile p{color:#77838f}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.section-heading h2{font-size:16px}.section-heading span{font-size:11px;color:#65717d}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.cards article{background:#0d1319;border:1px solid var(--line);border-radius:11px;padding:17px}.card-top{display:flex;justify-content:space-between;align-items:center}.card-top h3{font-size:14px;margin:0}.tier-badge{font-size:12px;font-weight:900;background:#19222b;border:1px solid #394550;border-radius:6px;padding:5px 8px}dl{display:grid;grid-template-columns:1fr auto;gap:8px;border-top:1px solid var(--line);padding-top:13px;margin:15px 0 0;font-size:11px}dt{color:#697582}dd{margin:0;font-weight:800}.error{padding:35px}

@media(max-width:1050px){
  .mode-tabs{
    grid-template-columns:repeat(10,96px);
    gap:4px;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:4px;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .mode-tab{
    width:96px;
    height:84px;
    scroll-snap-align:start;
    border-radius:18px 18px 0 0;
    flex:0 0 auto;
  }
  .mode-sign{font-size:26px;height:32px}
  .mode-label{font-size:12px}
}

@media(max-width:850px){
  main{width:min(100% - 20px,1210px);padding-top:34px}
  .hero{display:block}
  .search{width:100%;margin-top:20px}
  .mode-tabs{
    grid-template-columns:repeat(10,88px);
    margin-left:-2px;
    margin-right:-2px;
  }
  .mode-tab{width:88px;height:80px;border-radius:16px 16px 0 0}
  .mode-sign{font-size:24px;height:29px}
  .mode-label{font-size:11px}
  .overall-row{grid-template-columns:38px 40px 1fr}
  .tier-chips{grid-column:3;justify-content:flex-start}
  .cards{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:650px){
  .site-header{height:64px;padding-left:14px;padding-right:14px}
  .header-tag{display:none}
  main{width:calc(100% - 16px);padding-top:28px}
  .hero{margin-bottom:20px}
  .hero h1{font-size:37px}
  .hero p{font-size:13px;line-height:1.45}
  .mode-tabs{
    grid-template-columns:repeat(10,78px);
    gap:4px;
    min-height:74px;
    margin-bottom:13px;
  }
  .mode-tab{
    width:78px;
    height:74px;
    border-radius:14px 14px 0 0;
    gap:4px;
  }
  .mode-sign{font-size:22px;height:27px;width:32px}
  .mode-label{font-size:10.5px;padding:0 2px}
  .mode-row{grid-template-columns:34px 38px 1fr 58px;padding-left:11px;padding-right:11px}
  .mode-name{display:none}
  .cards{grid-template-columns:1fr}
  .profile{padding:17px;gap:16px}
  .profile>img{width:78px;height:78px}
  .profile h1{font-size:31px}
}

@media(max-width:390px){
  .mode-tabs{grid-template-columns:repeat(10,72px)}
  .mode-tab{width:72px;height:70px}
  .mode-sign{font-size:20px;height:25px}
  .mode-label{font-size:10px}
}

@media(max-width:650px){.mode-sign img{width:32px;height:32px}}
@media(max-width:390px){.mode-sign img{width:29px;height:29px}}

/* MCTiers-inspired interactions and leaderboard */
.search button,.back{transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.search button:hover{filter:brightness(1.12);transform:translateY(-2px);box-shadow:0 8px 22px #e8495038}
.search button:active,.back:active{transform:translateY(0) scale(.96);box-shadow:none}
.mode-tab{transition:background .22s ease,border-color .22s ease,color .22s ease,transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s ease}
.mode-tab:hover{background:#121b24;color:#dbe4ed;border-color:#344451;transform:translateY(-4px);box-shadow:0 12px 28px #0008}
.mode-tab:active{transform:translateY(-1px) scale(.96);transition-duration:.08s}

.panel{background:transparent;border:0;border-radius:12px;overflow:visible}
.panel-head{margin-bottom:8px;background:#0c1218;border:1px solid var(--line);border-radius:12px}
.leaderboard-head{display:grid;grid-template-columns:minmax(360px,850px) 74px 1fr;align-items:center;padding:0 18px 8px;color:#263240;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.5px}
.leaderboard-head span:nth-child(2),.leaderboard-head span:nth-child(3){text-align:center}
.rank-row{min-height:80px;margin-bottom:8px;background:#111923;border:1px solid #1b2631;border-radius:14px;overflow:hidden;transition:transform .22s cubic-bezier(.2,.8,.2,1),border-color .22s ease,background .22s ease,box-shadow .22s ease}
.rank-row:last-child{border-bottom:1px solid #1b2631}
.rank-row:hover{background:#151f2a;border-color:#2a3a49;transform:translateY(-3px) scale(1.004);box-shadow:0 12px 30px #0007}
.rank-row:active{transform:translateY(0) scale(.985);transition-duration:.08s}
.overall-row,.mode-row{display:grid;grid-template-columns:minmax(360px,850px) 74px 1fr;gap:0;align-items:stretch;padding:0}
.rank-player{min-width:0;display:grid;grid-template-columns:72px 66px 1fr;align-items:center;background:#121b25}
.place{height:100%;display:flex;align-items:center;padding-left:17px;font-size:28px;font-style:italic;font-weight:950;color:#f3f7fb;text-shadow:0 2px 2px #000}
.rank-row:nth-of-type(1) .place{background:linear-gradient(110deg,#efb51f,#ffd75a)}
.rank-row:nth-of-type(2) .place{background:linear-gradient(110deg,#6f8791,#b8cbd2)}
.rank-row:nth-of-type(3) .place{background:linear-gradient(110deg,#a8571f,#df914e)}
.head{width:56px;height:56px;align-self:end;object-fit:cover;image-rendering:pixelated}
.identity{min-width:0;padding-left:12px;display:flex;flex-direction:column}
.identity-name{min-width:0;display:flex;align-items:center}
.identity-name strong{font-size:20px;color:#e7edf5}
.identity small{font-size:12px;color:#6786a8;margin-top:3px}
.region-badge{align-self:center;justify-self:center;min-width:40px;padding:8px 7px;border-radius:8px;text-align:center;text-transform:uppercase;font-size:15px;font-weight:950;background:#29333d;color:#aeb8c2}
.region-na{background:#51252c;color:#ff5e70}.region-eu{background:#174c27;color:#63ed74}.region-as,.region-asia,.region-au,.region-oce{background:#553c1f;color:#ffc65c}
.tier-chips{padding:11px 13px;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.tier-chip,.single-tier{display:flex;flex-direction:column;align-items:center;gap:1px}
.tier-icon{width:31px;height:31px;border:3px solid #243140;border-radius:50%;background:#070c12;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #000}
.tier-icon img{width:23px;height:23px;display:block;object-fit:contain;image-rendering:pixelated}
.tier-chip b,.tier-box{border:0;border-radius:6px;padding:1px 5px;background:#152332;color:#f6c334;font-size:11px;font-weight:950;line-height:1.25}
.single-tier{align-self:center;justify-self:end;padding:10px 22px}
.single-tier .tier-icon{width:38px;height:38px}.single-tier .tier-icon img{width:28px;height:28px}.single-tier .tier-box{font-size:13px}
.empty{background:#0c1218;border:1px solid var(--line);border-radius:12px}
.card-mode{display:flex;align-items:center;gap:8px}.card-mode img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}

@media(max-width:850px){
  .leaderboard-head{display:none}
  .overall-row,.mode-row{grid-template-columns:1fr 64px}
  .rank-player{grid-template-columns:54px 54px 1fr}
  .place{padding-left:10px;font-size:21px}
  .head{width:48px;height:48px}
  .identity-name strong{font-size:17px}
  .region-badge{grid-column:2;grid-row:1}
  .tier-chips,.single-tier{grid-column:1/-1;border-top:1px solid #1b2631;justify-content:flex-start;padding:10px 12px}
  .single-tier{flex-direction:row;justify-self:stretch}
}

@media(prefers-reduced-motion:reduce){.mode-tab,.rank-row,.search button,.back{transition:none}.mode-tab:hover,.rank-row:hover,.search button:hover{transform:none}}

/* Angled player rank ribbons */
.rank-player{grid-template-columns:160px minmax(0,1fr)}
.rank-ribbon{position:relative;align-self:stretch;min-height:78px;overflow:hidden;clip-path:polygon(0 0,100% 0,84% 100%,0 100%);background:linear-gradient(115deg,#172230,#202d3c);border-right:1px solid #304154}
.rank-ribbon:after{content:"";position:absolute;z-index:3;top:-45%;left:-75%;width:42%;height:190%;background:linear-gradient(90deg,#fff0 0%,#ffffff18 32%,#ffffffb8 50%,#ffffff22 68%,#fff0 100%);transform:skewX(-18deg);opacity:0;pointer-events:none}
.rank-ribbon .place{position:absolute;z-index:2;inset:0 auto 0 0;width:72px;height:auto;background:none!important}
.rank-ribbon .head{position:absolute;z-index:1;right:22px;bottom:-16px;width:78px;height:96px;object-fit:contain;object-position:center bottom;align-self:auto;border-radius:0;filter:drop-shadow(0 3px 2px #0008)}
.rank-row:nth-of-type(1) .rank-ribbon{background:linear-gradient(110deg,#efb51f,#ffd65a)}
.rank-row:nth-of-type(2) .rank-ribbon{background:linear-gradient(110deg,#78909b,#bdcdd2)}
.rank-row:nth-of-type(3) .rank-ribbon{background:linear-gradient(110deg,#a95923,#df914e)}
.rank-row:nth-of-type(1) .rank-ribbon:after,.rank-row:nth-of-type(2) .rank-ribbon:after,.rank-row:nth-of-type(3) .rank-ribbon:after{opacity:1;animation:podiumGlint 2.9s cubic-bezier(.35,0,.2,1) infinite}
.rank-row:nth-of-type(2) .rank-ribbon:after{animation-delay:.28s}
.rank-row:nth-of-type(3) .rank-ribbon:after{animation-delay:.56s}
.rank-row:nth-of-type(1),.rank-row:nth-of-type(2),.rank-row:nth-of-type(3){animation:podiumGlow 3.4s ease-in-out infinite}
.rank-row:nth-of-type(2){animation-delay:.28s}.rank-row:nth-of-type(3){animation-delay:.56s}
@keyframes podiumGlint{0%,18%{left:-75%}58%,100%{left:135%}}
@keyframes podiumGlow{0%,100%{border-color:#263442}50%{border-color:#425367;box-shadow:0 0 18px #9fb6ce12}}

@media(max-width:850px){
  .rank-player{grid-template-columns:128px minmax(0,1fr)}
  .rank-ribbon{min-height:72px}
  .rank-ribbon .place{width:52px}
  .rank-ribbon .head{right:16px;bottom:-13px;width:68px;height:84px}
}

@media(max-width:480px){
  .rank-player{grid-template-columns:108px minmax(0,1fr)}
  .rank-ribbon .head{right:12px;width:60px;height:76px}
}

@media(prefers-reduced-motion:reduce){
  .rank-row:nth-of-type(1),.rank-row:nth-of-type(2),.rank-row:nth-of-type(3),
  .rank-row:nth-of-type(1) .rank-ribbon:after,.rank-row:nth-of-type(2) .rank-ribbon:after,.rank-row:nth-of-type(3) .rank-ribbon:after{animation:none}
}

/* Player search result modal */
.search-modal-backdrop{position:fixed;z-index:50;inset:0;background:#03070cc7;backdrop-filter:blur(7px);animation:modalFade .18s ease-out both}
.search-modal{position:fixed;z-index:51;left:50%;top:50%;width:min(510px,calc(100% - 24px));max-height:calc(100vh - 24px);overflow:auto;transform:translate(-50%,-50%);padding:54px 40px 32px;background:#111923;border:1px solid #263442;border-radius:26px;box-shadow:0 28px 80px #000c;animation:modalRise .26s cubic-bezier(.2,.8,.2,1) both}
.search-modal-close{position:absolute;right:28px;top:28px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#1d2a3b;color:#aab8c7;font-size:38px;font-weight:300;line-height:1;transition:transform .18s ease,background .18s ease,color .18s ease}
.search-modal-close:hover{transform:rotate(8deg) scale(1.07);background:#29394d;color:#fff}.search-modal-close:active{transform:scale(.92)}
.search-player-avatar{width:116px;height:116px;margin:0 auto 10px;border:2px solid #efb91e;border-radius:50%;background:#182431;overflow:hidden;position:relative}
.search-player-avatar img{position:absolute;width:112px;height:137px;object-fit:contain;left:50%;bottom:-26px;transform:translateX(-50%);filter:drop-shadow(0 4px 3px #0008)}
.search-modal>h2{text-align:center;margin:0;font-size:30px;letter-spacing:-.5px}.search-player-region{text-align:center;margin:8px 0 30px;color:#718196;font-weight:750;text-transform:uppercase;font-size:12px;letter-spacing:.8px}
.search-modal>h3{margin:22px 0 9px;color:#9fb0c4;font-size:16px;text-transform:uppercase;letter-spacing:.7px}
.search-position{height:48px;display:flex;align-items:center;gap:14px;border:2px solid #2a394b;border-radius:10px;background:#121b25;overflow:hidden;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.search-position:hover{transform:translateY(-2px);border-color:#465a70;background:#172330}.search-position:active{transform:scale(.98)}
.search-position-rank{align-self:stretch;min-width:100px;padding-left:16px;display:flex;align-items:center;background:linear-gradient(110deg,#efb51f 0 82%,transparent 83%);font-size:26px;font-weight:950;font-style:italic;text-shadow:0 2px 2px #0005}
.search-position strong{text-transform:uppercase;font-size:18px}
.search-tiers{min-height:75px;padding:12px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#0e161f;border:2px solid #2a394b;border-radius:11px}
@keyframes modalFade{from{opacity:0}to{opacity:1}}@keyframes modalRise{from{opacity:0;transform:translate(-50%,-46%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}

@media(max-width:540px){.search-modal{padding:48px 22px 24px;border-radius:21px}.search-modal-close{right:18px;top:18px;width:42px;height:42px}.search-player-avatar{width:100px;height:100px}.search-player-avatar img{width:98px;height:122px}.search-position-rank{min-width:78px}.search-modal>h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.search-modal-backdrop,.search-modal{animation:none}}

/* Compact top navigation */
.site-header{height:74px;margin:12px 16px 0;padding:0 18px;border:1px solid #1d2936;border-radius:15px;background:#101720;gap:24px;box-shadow:0 8px 30px #0003}
.nav-logo{width:185px;height:58px;display:flex;align-items:center;overflow:hidden;flex:0 0 auto}
.nav-logo img{width:100%;height:100%;object-fit:contain;display:block}
.nav-links{display:flex;align-items:center;justify-content:center;gap:7px;flex:1}
.nav-links a{height:42px;padding:0 13px;border-radius:9px;display:flex;align-items:center;gap:8px;color:#8090a4;font-size:15px;font-weight:720;transition:background .18s ease,color .18s ease,transform .18s ease}
.nav-links a:hover{background:#172230;color:#e8eef5;transform:translateY(-2px)}.nav-links a:active{transform:scale(.96)}.nav-links a.active{color:#eef3f8}
.nav-search{width:min(310px,25vw);height:42px;padding:0 8px 0 12px;border:1px solid #1e2a38;border-radius:22px;background:#18212d;display:flex;align-items:center;gap:8px;flex:0 0 auto;transition:border-color .18s ease,box-shadow .18s ease}
.nav-search:focus-within{border-color:#42556c;box-shadow:0 0 0 3px #516b8720}.nav-search>span{color:#8291a4;font-size:21px}.nav-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#eaf0f6;font:inherit}.nav-search input::placeholder{color:#708095}.nav-search button{width:28px;height:28px;border:0;border-radius:50%;background:#202c3c;color:#90a0b4;cursor:pointer;transition:transform .16s ease,background .16s ease,color .16s ease}.nav-search button:hover{background:#2c3b4e;color:#fff;transform:scale(1.08)}.nav-search button:active{transform:scale(.9)}
main{padding-top:26px}.mode-tabs{margin-top:0}.panel-head{display:none}

@media(max-width:850px){.site-header{padding:0 12px;gap:10px}.nav-logo{width:145px}.nav-links a{padding:0 8px}.nav-links a span{display:none}.nav-search{width:min(270px,42vw)}}
@media(max-width:600px){.site-header{height:auto;min-height:72px;flex-wrap:wrap;padding:9px 11px}.nav-logo{width:135px;height:46px}.nav-links{order:3;width:100%;justify-content:flex-start;border-top:1px solid #1d2936;padding-top:7px}.nav-links a span{display:inline}.nav-search{margin-left:auto;width:calc(100% - 155px)}main{padding-top:18px}}
@media(max-width:390px){.nav-links a{font-size:12px;padding:0 6px}.nav-search{width:100%;order:2}.nav-logo{margin:auto}.site-header{justify-content:center}}

/* Refined compact navbar and Discord menu */
.site-header{width:min(1080px,calc(100% - 28px));height:64px;margin:16px auto 0;padding:0 15px;gap:18px;border-radius:13px}
.nav-logo{width:158px;height:48px}
.nav-links{justify-content:center;gap:4px}
.nav-links>a,.discord-menu>summary{height:38px;padding:0 10px;border-radius:8px;display:flex;align-items:center;gap:7px;color:#a5b2c2;font-size:14px;font-weight:720;cursor:pointer;list-style:none;transition:background .18s ease,color .18s ease,transform .18s ease}
.discord-menu>summary::-webkit-details-marker{display:none}.nav-links>a img,.discord-menu>summary img{width:22px;height:22px;object-fit:contain}.discord-menu>summary i{margin-left:2px;color:#8290a2;font-size:15px;font-style:normal;transition:transform .18s ease}
.nav-links>a:hover,.discord-menu>summary:hover,.discord-menu[open]>summary{background:#172230;color:#fff;transform:translateY(-1px)}.discord-menu[open]>summary i{transform:rotate(180deg)}
.discord-menu{position:relative}.discord-dropdown{position:absolute;z-index:30;top:46px;left:50%;width:285px;padding:12px;background:#111a24;border:1px solid #263443;border-radius:13px;box-shadow:0 18px 45px #000b;transform:translateX(-50%);animation:discordDrop .18s cubic-bezier(.2,.8,.2,1) both}
.discord-dropdown>small{display:block;padding:1px 5px 9px;color:#637388;font-size:10px;font-weight:850;letter-spacing:.8px;text-transform:uppercase}.discord-dropdown>a{height:auto;padding:10px;border:1px solid #273646;border-radius:10px;background:#151f2b;display:grid;grid-template-columns:42px 1fr 20px;align-items:center;gap:10px;color:inherit;transition:transform .18s ease,border-color .18s ease,background .18s ease}.discord-dropdown>a:hover{transform:translateY(-2px);border-color:#435873;background:#1a2735}.discord-dropdown>a:active{transform:scale(.98)}
.discord-dropdown>a>img{width:42px;height:42px;object-fit:contain}.discord-dropdown>a>span{min-width:0;display:flex;flex-direction:column}.discord-dropdown strong{font-size:14px}.discord-dropdown>a small{margin-top:2px;color:#718298;font-size:11px}.discord-dropdown b{color:#78899e;font-size:14px}
.nav-search{width:230px;height:38px}.nav-search input{font-size:13px}
@keyframes discordDrop{from{opacity:0;transform:translate(-50%,-7px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}

@media(max-width:850px){.site-header{width:calc(100% - 20px)}.nav-logo{width:138px}.nav-links>a,.discord-menu>summary{padding:0 7px}.nav-links>a span,.discord-menu>summary span{display:inline}.nav-search{width:210px}}
@media(max-width:600px){.site-header{height:auto;min-height:64px}.nav-links{order:3}.discord-dropdown{left:0;transform:none}.nav-search{width:calc(100% - 150px)}@keyframes discordDrop{from{opacity:0;transform:translateY(-7px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}}
@media(max-width:390px){.nav-search{width:100%}.nav-logo{width:132px}.nav-links{justify-content:center}.nav-links>a,.discord-menu>summary{font-size:13px}.discord-dropdown{left:50%;transform:translateX(-50%)}@keyframes discordDrop{from{opacity:0;transform:translate(-50%,-7px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}}

/* Final leaderboard layouts */
.overall-row:nth-of-type(1),.overall-row:nth-of-type(2),.overall-row:nth-of-type(3){animation:none;box-shadow:0 7px 22px #0003}
.overall-row:nth-of-type(1) .rank-ribbon:after,.overall-row:nth-of-type(2) .rank-ribbon:after,.overall-row:nth-of-type(3) .rank-ribbon:after{animation-delay:0s!important;animation-duration:3.2s;background:linear-gradient(90deg,#fff0 0%,#ffffff0d 28%,#ffffff8c 50%,#ffffff12 72%,#fff0 100%)}
.overall-row .rank-ribbon{border-right:0;box-shadow:inset -14px 0 20px #00000012}
.overall-row:nth-of-type(1) .rank-ribbon{background:linear-gradient(110deg,#d99a0b,#ffd55a 60%,#dda20f)}
.overall-row:nth-of-type(2) .rank-ribbon{background:linear-gradient(110deg,#647b87,#c0d0d5 60%,#718994)}
.overall-row:nth-of-type(3) .rank-ribbon{background:linear-gradient(110deg,#91461b,#d9894a 60%,#a95420)}

.mode-tier-grid{display:grid;grid-template-columns:repeat(5,minmax(205px,1fr));gap:8px;align-items:start;overflow-x:auto;padding:0 0 10px;scrollbar-width:thin}
.tier-column{min-width:0;border-radius:13px 13px 8px 8px;overflow:hidden;background:#111923;border:1px solid #1d2936}
.tier-column>header{height:58px;padding:0 14px;display:flex;align-items:center;gap:8px;background:#182230;border-bottom:1px solid #293849}
.tier-column>header img{width:25px;height:25px;object-fit:contain}.tier-column>header strong{font-size:20px;color:#dbe5f0}.tier-column>header span{margin-left:auto;min-width:24px;padding:3px 6px;border-radius:10px;background:#0e151d;color:#738398;text-align:center;font-size:10px;font-weight:850}
.tier-column-1>header{background:linear-gradient(110deg,#463815,#4c3b18);border-bottom-color:#c99216}.tier-column-1>header strong{color:#ffc13b}.tier-column-1>header img{filter:sepia(1) saturate(5) hue-rotate(350deg)}
.tier-column-2>header{background:linear-gradient(110deg,#323943,#3a404b);border-bottom-color:#8c9ba9}.tier-column-2>header strong{color:#bcc7d1}.tier-column-3>header{background:linear-gradient(110deg,#38261f,#432b22);border-bottom-color:#a95b2d}.tier-column-3>header strong{color:#dd824b}
.tier-column-players{display:flex;flex-direction:column}.tier-player{height:43px;padding:0 8px 0 7px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:8px;background:#182331;border-bottom:1px solid #0e151d;border-left:2px solid #56667a;transition:background .16s ease,transform .16s ease,border-color .16s ease}.tier-player:last-child{border-bottom:0}.tier-player:hover{position:relative;z-index:1;background:#233247;transform:translateX(3px);border-left-color:#e9f0f7}.tier-player:active{transform:translateX(1px) scale(.985)}.tier-player.tier-high{border-left-color:#ef506d}.tier-player.tier-low{border-left-color:#54e58a}
.tier-player>img{width:30px;height:30px;border-radius:5px;image-rendering:pixelated}.tier-player>strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e9eef5;font-size:13px}.tier-player>b{padding:3px 5px;border-radius:5px;background:#0e161f;color:#aab8c8;font-size:10px}.tier-high>b{color:#ff7189}.tier-low>b{color:#65e996}.tier-column-empty{padding:24px 10px;text-align:center;color:#506074;font-size:11px}

@media(max-width:1050px){.mode-tier-grid{grid-template-columns:repeat(5,220px)}}
@media(max-width:650px){.mode-tier-grid{margin-left:-2px;margin-right:-2px;grid-template-columns:repeat(5,205px)}.tier-column>header strong{font-size:17px}.tier-player{height:41px}}

/* Smooth page entrance sequence */
.site-header{animation:topbarEnter .55s cubic-bezier(.2,.8,.2,1) backwards}
.mode-tab{opacity:1;animation:modeTabEnter .48s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:calc(.12s + (var(--tab-index) * .045s))}
.leaderboard-head{opacity:1;animation:contentEnter .42s ease-out .3s backwards}
.overall-row,.overall-row:nth-of-type(1),.overall-row:nth-of-type(2),.overall-row:nth-of-type(3){opacity:1;animation:leaderboardRowEnter .48s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:calc(.3s + (var(--row-index) * .055s))}
.tier-column{opacity:1;animation:tierColumnEnter .55s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:calc(.28s + (var(--tier-index) * .075s))}
@keyframes topbarEnter{from{opacity:0;transform:translateY(-16px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes modeTabEnter{from{opacity:0;transform:translateY(15px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes contentEnter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes leaderboardRowEnter{from{opacity:0;transform:translateY(15px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes tierColumnEnter{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.site-header,.mode-tab,.leaderboard-head,.overall-row,.tier-column{opacity:1;animation:none}}

/* Points and combat classes */
.identity .player-class{color:#d5dde7;font-weight:800}
.identity .player-class span{color:#f6c334;font-weight:900}
.search-stats{display:grid;grid-template-columns:1fr 120px;gap:10px;margin:0 0 24px}
.search-stats>div{min-height:64px;padding:11px 14px;display:flex;flex-direction:column;justify-content:center;background:#0e161f;border:2px solid #2a394b;border-radius:11px}
.search-stats span{color:#718196;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.8px}
.search-stats strong{margin-top:4px;color:#eef3f8;font-size:16px}
.search-stats>div:last-child strong{color:#f6c334;font-size:22px}
.profile-rank-summary{display:flex;gap:10px;margin-top:14px}
.profile-rank-summary>span{min-width:120px;padding:9px 12px;display:flex;flex-direction:column;background:#111a23;border:1px solid #273441;border-radius:9px}
.profile-rank-summary small{color:#6f7e8d;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.8px}
.profile-rank-summary strong{margin-top:3px;color:#eef3f8;font-size:13px}
.profile-rank-summary>span:last-child strong{color:#f6c334;font-size:17px}
@media(max-width:540px){.search-stats{grid-template-columns:1fr}.profile-rank-summary{flex-wrap:wrap}.profile-rank-summary>span{min-width:105px}}

/* Reference-style player search/profile cards */
.combat-class-badge{width:max-content;max-width:calc(100% - 24px);margin:16px auto 12px;padding:9px 18px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #695a1e;border-radius:999px;background:linear-gradient(180deg,#4a4323,#343019);color:#ffd92f;font-size:17px;font-weight:900;box-shadow:inset 0 1px #ffffff0d}.combat-class-badge span{font-size:23px;color:#ffc31e}.search-player-region{margin:14px 0 30px!important;color:#334154!important;font-size:16px!important;text-transform:none!important;letter-spacing:0!important}.search-position{height:48px}.search-position strong{display:flex;align-items:center;gap:7px}.search-position strong em{color:#91afd1;font-size:15px;font-style:normal;font-weight:650;text-transform:none}.search-position-rank{background:linear-gradient(110deg,#39485a 0 82%,transparent 83%)}.search-position.podium-1{border-color:#b98a16}.search-position.podium-1 .search-position-rank{background:linear-gradient(110deg,#e5aa15 0%,#ffd65a 82%,transparent 83%)}.search-position.podium-2{border-color:#7e8c9a}.search-position.podium-2 .search-position-rank{background:linear-gradient(110deg,#778794 0%,#c3cdd5 82%,transparent 83%);color:#fff}.search-position.podium-3{border-color:#9e5e30}.search-position.podium-3 .search-position-rank{background:linear-gradient(110deg,#9d5829 0%,#d99155 82%,transparent 83%);color:#fff}.search-position.podium-regular .search-position-rank{background:linear-gradient(110deg,#334253 0%,#526275 82%,transparent 83%);color:#e8eef5}
.showcase-profile{max-width:520px;margin:0 auto 28px;padding:42px 30px 30px;display:flex;flex-direction:column;align-items:center;background:#111923;border:1px solid #263442;border-radius:26px;box-shadow:0 28px 80px #0008}.showcase-profile .profile-avatar-ring{width:120px;height:120px;border:2px solid #efb91e;border-radius:50%;background:#182431;overflow:hidden;position:relative}.showcase-profile .profile-avatar-ring>img{position:absolute;width:116px;height:142px;object-fit:contain;left:50%;bottom:-27px;transform:translateX(-50%);filter:drop-shadow(0 4px 3px #0008);border:0;border-radius:0}.showcase-profile h1{margin:8px 0 0;font-size:34px;text-align:center}.showcase-region{margin:8px 0 18px;color:#334154;font-weight:800;font-size:16px}.showcase-block{width:100%;margin-top:12px}.showcase-block>h3{margin:0 0 9px;color:#9fb0c4;font-size:16px;text-transform:uppercase;letter-spacing:.7px}.profile-tier-strip{width:100%;box-sizing:border-box}.showcase-profile .combat-class-badge{margin-top:14px}
@media(max-width:540px){.showcase-profile{padding:34px 18px 22px;border-radius:21px}.showcase-profile h1{font-size:29px}.combat-class-badge{font-size:15px;padding:8px 14px}.search-position strong{font-size:15px}.search-position strong em{font-size:12px}.showcase-profile .profile-avatar-ring{width:104px;height:104px}.showcase-profile .profile-avatar-ring>img{width:101px;height:126px}}


/* Green combat rank badges + supplied diamond rank icon */
.combat-class-badge{border-color:#2f7147!important;background:linear-gradient(180deg,#183d28,#102c1d)!important;color:#71e596!important;box-shadow:inset 0 1px #ffffff12,0 0 18px #1f8f4b18!important}
.combat-class-badge span{display:none!important}
.combat-class-badge img{width:25px;height:25px;object-fit:contain;display:block;filter:drop-shadow(0 0 5px #fff4)}
.identity .player-class{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:5px}
.identity .player-class .class-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid #2f7147;border-radius:999px;background:linear-gradient(180deg,#183d28,#102c1d);color:#71e596;font-weight:900;line-height:1}
.identity .player-class .class-pill img{width:17px;height:17px;object-fit:contain;display:block;filter:drop-shadow(0 0 4px #fff3)}
.identity .player-class .player-points{color:#9eabb8;font-weight:800}


.overall-trophy-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  flex: 0 0 auto;
}

.overall-position-trophy{width:22px;height:22px;object-fit:contain;vertical-align:-5px;margin-right:6px;display:inline-block}
