/* Shared academy frame, with a scrollable list and a persistent personal placement. */
.wizard-page-tabs{display:flex;gap:8px;margin:8px 0 12px}.wizard-page-tabs button{flex:1;padding:10px;border:1px solid #a88cba;border-radius:12px;background:#30253f;color:#e5d8f1;font-weight:800}.wizard-page-tabs button[aria-pressed=true]{background:linear-gradient(#f3dfaa,#ba995d);color:#30223e;border-color:#ffe6a0;box-shadow:0 3px #705733}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard[open]{display:flex!important;flex-direction:column!important;margin:auto!important;border:1px solid #ad936d!important;border-radius:20px!important;width:min(1000px,96vw)!important;height:min(800px,94dvh)!important;max-height:94dvh!important;overflow:hidden!important;gap:0!important;box-sizing:border-box}.show-leaderboard .chronicle-heading{flex:none!important}.show-leaderboard .wizard-page-tabs{flex:none}.academy-leaderboard{display:flex;flex-direction:column;min-height:0;flex:1;color:#fff0c5;gap:10px}.leaderboard-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.leaderboard-filters label{display:flex;flex-direction:column;gap:3px;font:700 10px system-ui;letter-spacing:.03em;color:#d8c5e9;flex:1;min-width:90px}.leaderboard-filters select,.leaderboard-filters button{border:1px solid #a38aaf;border-radius:9px;padding:8px;background:#31253f;color:#fff0c5;font:700 12px system-ui;min-height:36px}.leaderboard-filters option{background:#30243e}.leaderboard-body{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain;border:1px solid #c7aa6b55;border-radius:14px;background:linear-gradient(120deg,#382b48,#211c31)}.leaderboard-summary{font:700 11px system-ui;color:#c9b8d8;margin:10px 14px}.leaderboard-row{display:grid;grid-template-columns:55px minmax(100px,1fr) 90px 120px;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #ac8cc428;min-height:52px;box-sizing:border-box}.leaderboard-row small{display:block;color:#c8b7d7;font:11px system-ui}.leaderboard-row strong{font:700 16px Georgia}.leaderboard-row>div{min-width:0}.leaderboard-row>div>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leaderboard-score{text-align:right}.leaderboard-record{text-align:right}.leaderboard-place{color:#c6acd9}.podium-place .leaderboard-place{color:#ffe197;text-shadow:0 0 12px #e8bd5844}.podium-place{background:linear-gradient(90deg,#a9863426,transparent 70%)}.leaderboard-row.is-you{background:#62503d66;box-shadow:inset 3px 0 #edd9a4}.leaderboard-columns{position:sticky;top:0;z-index:1;background:#271f36;font:700 10px system-ui;color:#c7b58f;min-height:30px;padding-block:7px}.leaderboard-columns span:nth-child(n+3){text-align:right}.leaderboard-self{flex:none;border:1px solid #d8c28d66;border-radius:12px;overflow:hidden;background:#2e253d}.leaderboard-self>small{display:block;text-align:center;padding:5px;font:10px system-ui;color:#bfaccd}.leaderboard-self>p,.leaderboard-status{padding:14px;text-align:center;font:14px/1.5 system-ui;margin:0}.leaderboard-self .leaderboard-row{padding-block:7px;min-height:40px}
@media(max-height:500px){body.hex-screen-ui .profile-stats-dialog.show-leaderboard[open]{padding:10px 16px!important;height:96dvh!important;max-height:96dvh!important}.show-leaderboard .chronicle-heading h2{font-size:21px!important;margin:0!important}.show-leaderboard .chronicle-heading small{display:none}.show-leaderboard .wizard-page-tabs{margin:5px 0 8px}.wizard-page-tabs button{padding:6px}.academy-leaderboard{gap:6px}.leaderboard-filters select,.leaderboard-filters button{padding:5px;min-height:30px}.leaderboard-row{padding:7px 12px;min-height:42px}.leaderboard-summary{margin:6px 12px}}
@media(max-width:600px){.leaderboard-row{grid-template-columns:36px minmax(75px,1fr) 62px 80px;gap:7px;padding-inline:9px}.leaderboard-row strong{font-size:13px}.leaderboard-row small{font-size:9px}.leaderboard-filters{gap:5px}.leaderboard-filters label{min-width:75px}.leaderboard-filters select{max-width:100%}}

/* Tabs share the existing heading row, preserving the stats grid below it. */
body.hex-screen-ui .profile-stats-dialog .chronicle-heading .wizard-page-tabs{flex:1;max-width:340px;margin:0 8px 0 auto;gap:6px}
body.hex-screen-ui .profile-stats-dialog .chronicle-heading .wizard-page-tabs button{min-width:0!important;width:auto!important;flex:1;height:36px!important;min-height:36px!important;padding:5px 10px!important;font-size:13px!important;white-space:nowrap}
body.hex-screen-ui .profile-stats-dialog .chronicle-heading .wizard-page-tabs button[aria-pressed=true]{background:linear-gradient(#f3dfaa,#ba995d)!important;color:#30223e!important;border-color:#ffe6a0!important}
@media(max-width:650px){body.hex-screen-ui .profile-stats-dialog .chronicle-heading h2{font-size:17px!important}body.hex-screen-ui .profile-stats-dialog .chronicle-heading{gap:5px}body.hex-screen-ui .profile-stats-dialog .chronicle-heading .wizard-page-tabs{margin-inline:2px}body.hex-screen-ui .profile-stats-dialog .chronicle-heading .wizard-page-tabs button{font-size:11px!important;padding-inline:6px!important}}

/* Direct leaderboard choices, with no hidden options menu. */
.leaderboard-filters{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:none;position:relative;z-index:3}
.leaderboard-boards{display:flex;gap:10px}.leaderboard-boards>button{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;border:1px solid #a58db5;border-bottom:4px solid #21172f;border-radius:14px;background:linear-gradient(145deg,#4e395f,#2b223a);color:#eadff2;cursor:pointer}.leaderboard-boards>button[aria-pressed=true]{background:linear-gradient(145deg,#f1daa2,#b9985f);border-color:#ffeab0;color:#32233c;box-shadow:0 2px 0 #765c3d}.leaderboard-seal{font:32px Georgia;display:grid;place-items:center;width:36px;height:36px;border:1px solid currentColor;border-radius:50%}.leaderboard-boards strong{display:block;font:700 17px Georgia}.leaderboard-boards small{display:block;font:11px system-ui;margin-top:2px}.leaderboard-tools{display:flex;align-items:center;gap:8px}.leaderboard-people{display:flex;gap:4px;padding:3px;background:#1e182c;border-radius:11px}.leaderboard-people button{border:0;background:transparent;min-height:36px;padding:6px 16px;color:#c9b9d6;cursor:pointer}.leaderboard-people button[aria-pressed=true]{background:#604974;color:#fff0bf;box-shadow:inset 0 -2px #d4be85}.leaderboard-refresh{min-width:38px;font-size:20px!important;cursor:pointer}.leaderboard-row{grid-template-columns:50px minmax(0,1fr) 100px;gap:10px}.leaderboard-wizard{display:block;text-align:left;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 0;border:0;background:none;box-shadow:none;color:#fff0c5;font:700 15px Georgia;cursor:pointer;min-height:30px}.leaderboard-wizard:after{content:' →';font:11px system-ui;color:#b8a6c9}.leaderboard-extra:not([hidden]){display:block;white-space:normal;line-height:1.5;margin:2px 0 4px}.leaderboard-extra[hidden]{display:none!important}.leaderboard-row.podium-place .leaderboard-place{border:1px solid #cbaa6566;border-radius:50%;width:33px;height:33px;display:grid;place-items:center;font-size:14px}.leaderboard-body .leaderboard-summary{color:#c7b7d3}.leaderboard-self>small{padding:4px 12px 0;text-align:left;font-size:9px;letter-spacing:.08em;color:#e7d394}.leaderboard-self .leaderboard-row{border-bottom:0}.leaderboard-self>p{padding:10px}.academy-leaderboard button:focus-visible,.academy-leaderboard summary:focus-visible,.academy-leaderboard select:focus-visible{outline:3px solid #f3dfa8;outline-offset:2px}
@media(max-height:500px){.leaderboard-boards>button{min-height:45px;padding:4px}.leaderboard-seal{width:29px;height:29px;font-size:25px}.leaderboard-boards strong{font-size:15px}.leaderboard-boards small{font-size:10px}.leaderboard-filters{gap:5px}.leaderboard-people button{min-height:30px;padding:4px 14px}.leaderboard-row{min-height:39px;padding-block:4px}.leaderboard-wizard{font-size:14px}.leaderboard-self .leaderboard-row{min-height:32px}.leaderboard-self>small{padding-top:3px}}
@media(max-width:600px){.leaderboard-row{grid-template-columns:37px minmax(0,1fr) 70px;gap:7px}.leaderboard-tools{gap:5px}.leaderboard-people button{padding-inline:10px}.leaderboard-wizard{font-size:13px}}

/* Roomier academy rank cards, with distinct podium metalwork. */
.leaderboard-table{padding:0 10px 10px}.leaderboard-table>.leaderboard-row:not(.leaderboard-columns){position:relative;min-height:88px;margin:8px 0;border:1px solid #9c83b04d;border-radius:14px;background:linear-gradient(110deg,#4734518a,#292237);padding:12px 16px;box-shadow:0 3px 0 #171121;isolation:isolate;overflow:hidden}.leaderboard-identity{display:flex;align-items:center;gap:13px;min-width:0}.leaderboard-name-copy{min-width:0;flex:1}.leaderboard-rank-badge{display:block;width:58px;height:64px;object-fit:contain;flex:none;filter:drop-shadow(0 3px 4px #10092099)}.leaderboard-wizard{font-size:18px;min-height:32px}.leaderboard-tier{font-size:11px!important;color:#d5c3df!important;letter-spacing:.03em;margin-top:2px}.leaderboard-table .leaderboard-score{font-size:22px}.leaderboard-table>.leaderboard-row.is-you{border-left:3px solid #ecd8a3}.leaderboard-table>.leaderboard-row[data-place]{border-color:var(--podium-edge);background:linear-gradient(115deg,var(--podium-wash),#292237 75%);box-shadow:inset 0 1px #fff2,0 3px #171121,0 0 12px var(--podium-wash)}.leaderboard-row[data-place="1"]{--podium-edge:#e8c76b;--podium-wash:#aa7d333d;--podium-light:#ffe19c}.leaderboard-row[data-place="2"]{--podium-edge:#b9c7e3;--podium-wash:#7796b83d;--podium-light:#deecff}.leaderboard-row[data-place="3"]{--podium-edge:#cc926c;--podium-wash:#a164423d;--podium-light:#f3bf97}.leaderboard-table>.leaderboard-row[data-place] .leaderboard-place{width:36px;height:42px;border-radius:10px 10px 16px 16px;border-color:var(--podium-edge);color:var(--podium-light);background:#211a2f88;box-shadow:0 0 10px var(--podium-wash)}.leaderboard-table>.leaderboard-row[data-place] .leaderboard-score{color:var(--podium-light)}.leaderboard-table>.leaderboard-row[data-place="1"] .leaderboard-place:before{content:'♛';position:absolute;font:17px Georgia;top:5px;color:#ffe19c}.leaderboard-table>.leaderboard-row[data-place]:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(110deg,transparent 30%,var(--podium-light) 48%,transparent 65%);opacity:0;transform:translateX(-120%);animation:leaderboard-sheen 9s ease-in-out infinite}.leaderboard-table>.leaderboard-row[data-place="2"]:after{animation-delay:1.5s}.leaderboard-table>.leaderboard-row[data-place="3"]:after{animation-delay:3s}@keyframes leaderboard-sheen{0%,65%{opacity:0;transform:translateX(-120%)}72%{opacity:.09}85%,100%{opacity:0;transform:translateX(120%)}}
.leaderboard-self .leaderboard-rank-badge{width:32px;height:36px}.leaderboard-self .leaderboard-identity{gap:8px}.leaderboard-self .leaderboard-tier{display:none}.leaderboard-self .leaderboard-wizard{font-size:14px}.leaderboard-self .leaderboard-row{padding-block:4px}
@media(max-height:500px){.leaderboard-table>.leaderboard-row:not(.leaderboard-columns){min-height:72px;padding:8px 12px;margin:6px 0}.leaderboard-rank-badge{width:46px;height:52px}.leaderboard-wizard{font-size:16px}.leaderboard-table .leaderboard-score{font-size:19px}.leaderboard-identity{gap:10px}.leaderboard-table>.leaderboard-row[data-place="1"] .leaderboard-place:before{top:2px;font-size:14px}}
@media(max-width:600px){.leaderboard-rank-badge{width:42px;height:48px}.leaderboard-identity{gap:7px}.leaderboard-wizard{font-size:14px}.leaderboard-tier{font-size:10px!important}.leaderboard-table{padding-inline:5px}.leaderboard-table>.leaderboard-row:not(.leaderboard-columns){padding-inline:8px}.leaderboard-table .leaderboard-score{font-size:17px}}
@media(prefers-reduced-motion:reduce){.leaderboard-table>.leaderboard-row[data-place]:after{animation:none;display:none}}

.leaderboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.leaderboard-metrics button{cursor:pointer;min-height:40px;border:1px solid #a58db5;border-bottom:3px solid #21172f;border-radius:11px;background:linear-gradient(145deg,#4e395f,#2b223a);color:#eadff2;font:700 14px system-ui}
.leaderboard-metrics button[aria-pressed=true]{background:linear-gradient(145deg,#e9d59d,#baa16a);color:#302039;border-color:#ffeab0;box-shadow:0 0 12px #dfc89120}
.leaderboard-context{display:flex;gap:4px;margin-left:auto;padding:3px;border-radius:11px;background:#1e182c}
.leaderboard-context button{cursor:pointer;min-height:36px;padding:6px 12px;border:0;background:transparent;color:#c9b9d6}
.leaderboard-context button[aria-pressed=true]{background:#604974;color:#fff0bf;box-shadow:inset 0 -2px #d4be85}
@media(max-height:500px){.leaderboard-metrics{gap:6px}.leaderboard-metrics button{min-height:32px;padding:5px;font-size:12px}.leaderboard-context button{min-height:30px;padding:4px 10px}}
@media(max-width:480px){.leaderboard-tools{flex-wrap:wrap;gap:4px}.leaderboard-people button{padding-inline:8px}.leaderboard-context button{padding-inline:7px}.leaderboard-metrics{gap:5px}.leaderboard-metrics button{font-size:12px}}

.academy-leaderboard>[hidden]{display:none!important}.leaderboard-profile{min-width:0;overflow:auto;max-height:65vh}.rank-keepsake-icon{width:74px;height:84px;object-fit:contain;flex:none}
/* Short phone screens reserve space for standings instead of stacking every filter. */
@media (max-height:500px) and (min-width:560px){
 .show-leaderboard .leaderboard-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px}
 .show-leaderboard .leaderboard-tools{grid-column:1/-1}
 .show-leaderboard .leaderboard-boards{gap:6px}
 .show-leaderboard .leaderboard-metrics{align-items:stretch}
 .show-leaderboard .leaderboard-metrics button{min-width:0;padding-inline:4px}
 .show-leaderboard .leaderboard-self>small{display:none}
 .show-leaderboard .leaderboard-self .leaderboard-row{min-height:38px;padding:2px 10px}
 .show-leaderboard .leaderboard-self .leaderboard-rank-badge{width:26px;height:30px}
 .show-leaderboard .leaderboard-table>.leaderboard-row:not(.leaderboard-columns){min-height:58px;padding:4px 10px}
 .show-leaderboard .leaderboard-rank-badge{width:36px;height:42px}
}
/* Generic dialog button styling must not turn each player name into a tall menu button. */
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .leaderboard-wizard{height:auto!important;min-height:30px!important;min-width:0!important;width:100%!important;padding:2px 0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;text-align:left!important}
@media(max-width:559px){
 body.hex-screen-ui .profile-stats-dialog.show-leaderboard .chronicle-heading{flex-wrap:wrap;height:auto!important;min-height:0!important;gap:6px}
 body.hex-screen-ui .profile-stats-dialog.show-leaderboard .chronicle-heading>div:first-child{flex:1}
 body.hex-screen-ui .profile-stats-dialog.show-leaderboard .chronicle-heading .wizard-page-tabs{order:3;flex:0 0 100%;max-width:none;margin:0 0 6px}
}

/* Prominent Stats navigation, followed by board / format / optional sorting. */
body.hex-screen-ui .profile-stats-dialog .chronicle-heading{flex-wrap:wrap!important;gap:8px!important}
body.hex-screen-ui .profile-stats-dialog .chronicle-heading .wizard-page-tabs{order:3;flex:0 0 100%!important;max-width:none!important;margin:2px 0 10px!important;display:flex!important;gap:8px!important}
body.hex-screen-ui .profile-stats-dialog .wizard-page-tabs button{font-size:16px!important;min-height:44px!important;padding:8px 14px!important}
body.hex-screen-ui .profile-stats-dialog .wizard-page-tabs [data-wizard-page=leaderboard]{border-color:#e1c080!important}
.academy-leaderboard .leaderboard-filters{display:grid;grid-template-columns:1fr;gap:8px}
.academy-leaderboard .leaderboard-context{display:flex;gap:6px;width:100%}
.academy-leaderboard .leaderboard-context button{flex:1;font-size:14px;min-height:38px}
.academy-leaderboard .leaderboard-context button[aria-pressed=true]{background:linear-gradient(#e9d099,#b59a66);color:#30213a;border-color:#ffdf9c;box-shadow:0 2px #66502d}
.academy-leaderboard .leaderboard-tools{display:flex;gap:8px;align-items:center}
.academy-leaderboard .leaderboard-sort{margin-left:auto;min-width:105px;font-size:14px}
.academy-leaderboard .leaderboard-breakdown{font-size:13px!important;line-height:1.4;color:#d8c7e2;margin-top:3px}
.academy-leaderboard .leaderboard-summary{font-size:13px}
.academy-leaderboard .leaderboard-self:has(.leaderboard-breakdown)>small{display:none}
@media(max-height:500px) and (min-width:560px){
body.hex-screen-ui .profile-stats-dialog .chronicle-heading .wizard-page-tabs{margin:0 0 4px!important}
body.hex-screen-ui .profile-stats-dialog .wizard-page-tabs button{min-height:34px!important;font-size:14px!important;padding:5px 10px!important}
.academy-leaderboard .leaderboard-filters{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:5px 8px}
.academy-leaderboard .leaderboard-context{align-items:stretch}
.academy-leaderboard .leaderboard-context button{min-height:34px;padding:4px;font-size:13px}
.academy-leaderboard .leaderboard-tools{grid-column:1/-1}
.academy-leaderboard .leaderboard-boards button{min-height:34px;padding:4px 8px}
.academy-leaderboard .leaderboard-boards small{display:none}
.academy-leaderboard .leaderboard-self .leaderboard-breakdown{font-size:12px!important}
}

@media(max-height:500px) and (min-width:560px){
body.hex-screen-ui .show-leaderboard .leaderboard-filters>.leaderboard-boards{grid-area:1 / 1 / 2 / 2!important;min-width:0}
body.hex-screen-ui .show-leaderboard .leaderboard-filters>.leaderboard-context{grid-area:1 / 2 / 2 / 3!important;min-width:0;width:auto;margin:0}
body.hex-screen-ui .show-leaderboard .leaderboard-filters>.leaderboard-tools{grid-area:2 / 1 / 3 / 3!important}
body.hex-screen-ui .show-leaderboard .leaderboard-boards .leaderboard-seal{display:none}
body.hex-screen-ui .show-leaderboard .leaderboard-boards strong{font-size:14px}
}

@media(max-height:500px) and (min-width:560px){
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .chronicle-heading>div:first-child{display:none!important}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .chronicle-heading .wizard-page-tabs{order:0!important;flex:1!important;margin:0!important}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .chronicle-heading>[aria-label="Close profile stats"]{order:1!important}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .leaderboard-summary{display:none}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .leaderboard-self .leaderboard-breakdown{display:none}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .leaderboard-columns{min-height:30px!important;padding:5px 10px!important}
}

/* Stats gallery: independent rows prevent navigation from overlapping content. */
body.hex-screen-ui .profile-stats-dialog .wizard-page-tabs button img{width:28px;height:28px;object-fit:contain}
body.hex-screen-ui .profile-stats-dialog .wizard-page-tabs button{display:flex;align-items:center;justify-content:center;gap:10px}
body.hex-screen-ui.hex-screen-ui .profile-stats-dialog.stats-overview[open]{display:grid!important;grid-template-columns:minmax(200px,.65fr) minmax(0,1.65fr)!important;grid-template-rows:124px 52px minmax(110px,1fr) minmax(110px,1fr) 20px!important;gap:16px!important;padding:20px 28px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading{display:grid!important;grid-template-columns:1fr auto;grid-template-rows:48px 60px;gap:12px!important;grid-row:1!important;grid-column:1/-1!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading>div{grid-column:1;grid-row:1}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading>button[aria-label]{grid-column:2;grid-row:1}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading .wizard-page-tabs{grid-column:1/-1;grid-row:2;display:grid!important;grid-template-columns:repeat(3,1fr);width:100%;gap:12px;margin:0!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading .wizard-page-tabs button{width:100%!important;height:60px!important;min-height:60px!important;font-size:19px!important;border-radius:16px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading .wizard-page-tabs button[aria-pressed=true]{background:linear-gradient(135deg,#ffe5a0,#bd995d)!important;color:#2d213e!important;border-color:#ffe5a0!important;box-shadow:0 4px #735938,0 0 22px #edc97125!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-hero{grid-row:2/5!important;background:radial-gradient(ellipse at 50% 25%,#70528e88,transparent 65%),linear-gradient(145deg,#392746,#211c36)!important;border:1px solid #c1a0d6!important;box-shadow:inset 0 0 0 5px #ffffff06,0 5px #130e22!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-tabs{grid-row:2!important;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-tabs button{height:48px!important;min-height:48px!important;font-size:17px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills{grid-row:3!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills article{background:radial-gradient(ellipse at 20% 50%,#9472d644,transparent 70%),#292039!important;position:relative;border-color:#9479b0!important;padding:20px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills article.bot-elims{background:radial-gradient(ellipse at 20% 50%,#66b2d444,transparent 70%),#292039!important;border-color:#6594b2!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills img{width:80px!important;height:80px!important;filter:drop-shadow(0 5px 8px #0b081e99)}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills small{font-size:17px!important;letter-spacing:0!important;text-transform:none}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills strong{font-size:48px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies{grid-row:4!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies article{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:8px!important;padding:12px 6px!important;background:radial-gradient(ellipse at 50% 0,#a386c43b,transparent 80%),#292039!important;box-shadow:inset 0 1px #e5c99055,0 5px #160f24!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies :is(img,svg){width:52px!important;height:52px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies i{height:52px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies strong{font-size:32px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies span{font-size:15px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .healing-caption{display:none}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-note{grid-row:5!important;font-size:12px!important}
@media(max-height:550px){
body.hex-screen-ui.hex-screen-ui .profile-stats-dialog.stats-overview[open]{grid-template-columns:180px minmax(0,1fr)!important;grid-template-rows:52px 44px minmax(70px,1fr) minmax(82px,1fr) 16px!important;gap:8px 12px!important;padding:8px 12px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading{display:flex!important;gap:10px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading>div{display:none}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading .wizard-page-tabs{flex:1;order:0;gap:8px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading>button[aria-label]{order:1}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading .wizard-page-tabs button{height:48px!important;min-height:48px!important;font-size:15px!important;padding:6px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading .wizard-page-tabs img{width:24px;height:24px}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-tabs button{height:42px!important;min-height:42px!important;font-size:14px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills article{padding:8px!important;gap:10px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills img{width:46px!important;height:46px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills small{font-size:13px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-kills strong{font-size:30px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies article{gap:3px!important;padding:6px 3px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies :is(img,svg){width:32px!important;height:32px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies i{height:32px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies strong{font-size:23px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-trophies span{font-size:11px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-hero h3{font-size:18px!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-emblem.stats-wizard-emblem{height:80px!important;min-height:54px!important}
}

body.hex-screen-ui .profile-stats-dialog.show-leaderboard .chronicle-heading .wizard-page-tabs button{height:48px!important;min-height:48px!important;font-size:16px!important}
@media(max-height:550px){
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading{flex-wrap:nowrap!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading .wizard-page-tabs{flex:1 1 0%!important;min-width:0!important;order:0!important;margin:0!important}
body.hex-screen-ui .profile-stats-dialog.stats-overview .chronicle-heading>button[aria-label]{flex:0 0 70px!important;min-width:70px!important;order:1!important}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .chronicle-heading .wizard-page-tabs button{height:44px!important;min-height:44px!important;font-size:14px!important}
}

/* Standalone leaderboard screen, with no lobby painted underneath. */
body.in-leaderboard-page #lobby,body.in-leaderboard-page [data-menu-background-scene]{display:none!important}
body.in-leaderboard-page #lobby *,body.in-leaderboard-page #lobby *::before,body.in-leaderboard-page #lobby *::after{animation-play-state:paused!important}
body.hex-screen-ui.hex-desktop-screens .profile-stats-dialog.show-leaderboard[open],body.hex-screen-ui .profile-stats-dialog.show-leaderboard[open]{position:fixed!important;inset:0!important;transform:none!important;margin:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:max(16px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:radial-gradient(ellipse at 20% 0,#48305f,transparent 60%),#1d162d!important}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard::backdrop{background:#1d162d!important;backdrop-filter:none!important}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .academy-leaderboard{width:100%;max-width:1440px;margin:0 auto}
@media(max-height:550px){body.hex-screen-ui.hex-desktop-screens .profile-stats-dialog.show-leaderboard[open],body.hex-screen-ui .profile-stats-dialog.show-leaderboard[open]{padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important}}

.leaderboard-name-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.academy-leaderboard .leaderboard-guest-name{cursor:default;text-decoration:none;pointer-events:none}
.academy-leaderboard .leaderboard-guest-label{display:inline-block;margin:0;padding:2px 7px;border:1px solid #b6a0ce55;border-radius:999px;background:#9c7cbb18;color:#c9b7dc;font:600 10px/1.4 system-ui;letter-spacing:.035em;white-space:nowrap}
.academy-leaderboard .leaderboard-guest-name::after{content:none}
.academy-leaderboard .leaderboard-anonymous-name{cursor:default;text-decoration:none;pointer-events:none;font-style:italic;color:#c9b7dc}
.academy-leaderboard .leaderboard-anonymous-name::before{content:'';display:inline-block;width:.95em;height:.95em;margin-right:6px;vertical-align:-.12em;border-radius:50%;background:radial-gradient(circle at 50% 38%,#c9b7dc 0 28%,transparent 30%),radial-gradient(ellipse at 50% 100%,#c9b7dc 0 46%,transparent 48%);opacity:.75}
.academy-leaderboard .leaderboard-anonymous-name::after{content:none}
.academy-leaderboard .leaderboard-anonymous-label{display:inline-block;margin:0;padding:2px 7px;border:1px solid #e6c46a66;border-radius:999px;background:#e6c46a14;color:#ecd18a;font:600 10px/1.4 system-ui;letter-spacing:.035em;white-space:nowrap}
body.hex-screen-ui .profile-stats-dialog.show-leaderboard .leaderboard-name-line>.leaderboard-wizard,.academy-leaderboard .leaderboard-name-line>.leaderboard-wizard{width:auto!important;max-width:100%;min-width:0;flex:0 1 auto}
/* Keep five arena choices readable, with one bounded scrolling score list. */
.academy-leaderboard .leaderboard-context{box-sizing:border-box;min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:4px}
.academy-leaderboard[data-board=online] .leaderboard-context{grid-template-columns:repeat(2,minmax(0,1fr))}
.academy-leaderboard .leaderboard-context button{min-width:0;white-space:nowrap;min-height:40px;border-radius:8px;font-size:13px}
.academy-leaderboard[data-format="4"] .leaderboard-body{border-color:#e3d09d88;background:radial-gradient(ellipse at 90% 0,#68804b25,transparent 55%),linear-gradient(120deg,#382b48,#211c31)}
.academy-leaderboard[data-format="4"] .leaderboard-summary{color:#f1e1b5}
.academy-leaderboard .leaderboard-tools{min-width:0;flex-wrap:wrap}
.academy-leaderboard .leaderboard-sort{min-width:0;max-width:135px;flex:0 1 125px}
.academy-leaderboard .leaderboard-breakdown{overflow-wrap:anywhere}
@media(min-width:900px) and (min-height:501px){
 .academy-leaderboard .leaderboard-filters{grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);align-items:center}
 .academy-leaderboard .leaderboard-tools{grid-column:1/-1}
}
@media(max-width:559px){
 body.hex-screen-ui .profile-stats-dialog.show-leaderboard[open]{padding-inline:max(10px,env(safe-area-inset-left))!important}
 .academy-leaderboard .leaderboard-context{gap:3px}
 .academy-leaderboard .leaderboard-context button{font-size:12px;padding:5px 2px}
 .academy-leaderboard .leaderboard-boards>button{min-height:48px}
 .academy-leaderboard .leaderboard-rank-badge{width:36px;height:42px}
 .academy-leaderboard .leaderboard-table{padding-inline:5px}
 .academy-leaderboard .leaderboard-identity{gap:7px}
 .academy-leaderboard .leaderboard-table>.leaderboard-row:not(.leaderboard-columns){padding:8px;min-height:64px}
 .academy-leaderboard .leaderboard-table .leaderboard-score{font-size:17px}
}
@media(max-height:500px) and (min-width:560px){
 .academy-leaderboard .leaderboard-context button{min-height:34px;font-size:12px}
 .academy-leaderboard .leaderboard-filters{grid-template-columns:minmax(150px,.65fr) minmax(0,1.35fr)}
 .academy-leaderboard .leaderboard-tools{flex-wrap:nowrap}
}

/* Back goes top-left on the Leaderboard page too, matching Your Stats. */
html body.hex-screen-ui dialog.profile-stats-dialog.show-leaderboard .chronicle-heading>[aria-label="Close profile stats"]{order:-1!important}

/* Apex Laureate crest beside the first wizard to reach the Mastery cap in this Solo mode. */
.leaderboard-name-line>.leaderboard-apex{flex:0 0 auto;width:24px;height:27px;object-fit:contain;filter:drop-shadow(0 0 4px #f4cf7aa8);animation:hex-apex-glow 2.8s ease-in-out infinite}
@keyframes hex-apex-glow{50%{filter:drop-shadow(0 0 8px #ffe3a0e0)}}
html[data-motion=gentle] .leaderboard-name-line>.leaderboard-apex{animation:none}
@media(prefers-reduced-motion:reduce){.leaderboard-name-line>.leaderboard-apex{animation:none}}
/* The first wizard to the cap gets a gold-lit row and a "First to reach 14,000" line on that mode's board. */
.leaderboard-row.is-apex{position:relative;background:linear-gradient(90deg,#f0c86a38,#7a4fa833 55%,transparent);box-shadow:inset 3px 0 #f3d17f,inset 0 0 0 1px #f3d17f55}
.leaderboard-row.is-apex .leaderboard-wizard{color:#ffe7a8!important;text-shadow:0 0 10px #f2c96a70}
.leaderboard-name-line>.leaderboard-apex{width:30px;height:34px}
.leaderboard-row small.leaderboard-apex-title{display:inline-block;margin-top:3px;padding:1px 8px;border:1px solid #f3d17f99;border-radius:999px;background:linear-gradient(90deg,#f3d17f33,#f3d17f11);color:#ffe29a;font:700 10px/1.5 system-ui;letter-spacing:.06em;white-space:nowrap}
.leaderboard-self .leaderboard-row small.leaderboard-apex-title{display:none}
/* Silver and Bronze Laureates (second and third to the cap) share the podium styling in their own metal. */
.leaderboard-row.is-apex-2{background:linear-gradient(90deg,#d9e1f238,#7a4fa833 55%,transparent);box-shadow:inset 3px 0 #dfe6f5,inset 0 0 0 1px #dfe6f555}
.leaderboard-row.is-apex-2 .leaderboard-wizard{color:#eef3ff!important;text-shadow:0 0 10px #c9d4ec70}
.leaderboard-row.is-apex-2 small.leaderboard-apex-title{border-color:#dfe6f599;background:linear-gradient(90deg,#dfe6f533,#dfe6f511);color:#eef3ff}
.leaderboard-row.is-apex-2 .leaderboard-name-line>.leaderboard-apex{filter:drop-shadow(0 0 4px #dfe6f5a8)}
.leaderboard-row.is-apex-3{background:linear-gradient(90deg,#e0965238,#7a4fa833 55%,transparent);box-shadow:inset 3px 0 #e8a66a,inset 0 0 0 1px #e8a66a55}
.leaderboard-row.is-apex-3 .leaderboard-wizard{color:#ffd9b3!important;text-shadow:0 0 10px #e0965270}
.leaderboard-row.is-apex-3 small.leaderboard-apex-title{border-color:#e8a66a99;background:linear-gradient(90deg,#e8a66a33,#e8a66a11);color:#ffd2a6}
.leaderboard-row.is-apex-3 .leaderboard-name-line>.leaderboard-apex{filter:drop-shadow(0 0 4px #e8a66aa8)}
/* Runner-up Laureate (fourth to the cap): kept plain on purpose, just a small still crest and a quiet label, no row highlight. */
.leaderboard-row.is-runner-up .leaderboard-name-line>.leaderboard-apex{width:22px;height:24px;filter:none;animation:none;opacity:.9}
.leaderboard-row.is-runner-up small.leaderboard-apex-title{display:inline-block;margin-top:3px;padding:0;border:0;background:none;color:#cbbfe0;font:600 10px/1.5 system-ui;letter-spacing:.04em}
