@font-face{font-family:Ranked;src:url('/web/assets/font.ttf') format('truetype');font-display:swap}
:root{color-scheme:dark;--panel:rgba(13,18,23,.91);--muted:#c6c8ca;--yellow:#ffe247;--green:#84c24c;font-family:Ranked,monospace;font-size:19px}
.head3d{--head:64px;--head-yaw:-22deg;--head-pitch:12deg;width:var(--head);height:var(--head);perspective:calc(var(--head)*6);display:inline-block;flex:none}.head-cube{position:relative;width:100%;height:100%;transform-style:preserve-3d;transform:rotateX(var(--head-pitch)) rotateY(var(--head-yaw))}.head-face{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden}.head-front{transform:translateZ(calc(var(--head)/2))}.head-back{transform:rotateY(180deg) translateZ(calc(var(--head)/2))}.head-right{transform:rotateY(-90deg) translateZ(calc(var(--head)/2))}.head-left{transform:rotateY(90deg) translateZ(calc(var(--head)/2))}.head-top{transform:rotateX(90deg) translateZ(calc(var(--head)/2))}.head-bottom{transform:rotateX(-90deg) translateZ(calc(var(--head)/2))}.profile-name-stack .head3d{--head:72px;margin:6px 0 12px}
.head-card{display:flex;align-items:center;gap:14px;margin:12px 0;padding:10px;background:rgba(255,255,255,.04)}.head-card h3{margin:0}.head-card p{margin:4px 0 8px}.head-card label,.head-card .button{display:inline-block;width:auto;margin:0 8px 0 0;cursor:pointer}.head-empty{width:64px;height:64px;display:grid;place-items:center;background:rgba(255,255,255,.08);color:var(--muted);font-size:1.6rem;flex:none}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:#12232d url('/web/assets/background.webp') center/cover fixed no-repeat;color:#fff;text-shadow:2px 2px #111}body:before{content:'';position:fixed;inset:0;background:rgba(0,0,0,.16);z-index:-1}button,input,textarea,select{font:inherit}a{color:inherit;text-decoration:none}a:not(.button):hover{text-decoration:underline}button,a,input,select,textarea{touch-action:manipulation}:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}header{min-height:235px;padding:34px 28px 12px;position:relative}.logo{display:block;width:min(560px,70vw);margin:auto}.logo img{display:block;width:100%;height:auto}#identity{position:absolute;right:24px;top:22px;display:flex;gap:12px;align-items:center;font-size:17px}main{max-width:1240px;margin:0 auto;padding:28px 28px 110px;min-height:calc(100dvh - 285px)}footer{display:flex;gap:30px;justify-content:space-between;align-items:center;position:fixed;bottom:0;width:100%;padding:18px 28px;background:linear-gradient(transparent,rgba(0,0,0,.75));font-size:17px}footer span{font-size:15px;color:#ddd}.menu{width:min(100%,590px);margin:40px auto 0;display:flex;flex-direction:column;gap:14px}.button{display:flex;align-items:center;justify-content:center;min-height:76px;padding:15px 22px;text-align:center;color:#3e3e3e;background:#c6c6c6;border:4px solid #000;box-shadow:inset 3px 3px #fff,inset -3px -3px #555;text-shadow:none;font-size:27px;line-height:1.2}.button:hover:not(:disabled){background:#559f35;color:#fff;box-shadow:inset 3px 3px #91cd6c,inset -3px -3px #255b14;text-decoration:none}.button:active:not(:disabled){transform:translateY(2px)}.menu>.button{min-height:96px;font-size:34px}.button.small{min-height:48px;font-size:19px;padding:10px 17px;border-width:3px}.button.danger:hover{background:#a23f38;box-shadow:inset 3px 3px #d67b73,inset -3px -3px #5a1915}.button.selected{background:#3c7d26;color:#fff;text-shadow:2px 2px #1c3d12}.row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.row>*{flex:1}.row>.fit{flex:0 0 auto}.page-top{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 22px}.page-top h1{margin:0;font-size:29px;font-weight:normal}.card{background:var(--panel);border:3px solid #000;box-shadow:inset 1px 1px #6b6e70;padding:26px;margin-bottom:18px}.card h2,.card h3{font-weight:normal;margin-top:0}.card h2{font-size:26px}.card p{line-height:1.55}.narrow{max-width:650px;margin:10px auto}.muted{color:var(--muted)}.yellow{color:var(--yellow)}.good{color:#b3ec82}.error{color:#ffafa7}input,textarea,select{display:block;width:100%;border:3px solid #000;background:#242424;box-shadow:inset 2px 2px #777;color:#fff;padding:15px;min-height:55px;text-shadow:none}textarea{resize:vertical;min-height:130px}label{display:block;margin:18px 0 8px;font-size:18px}form:not(.search)>.button{width:100%;margin-top:20px}form .row{margin-top:16px}.tabs{display:flex;gap:8px;margin-bottom:22px}.tabs .button{flex:1;font-size:18px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stat{padding:20px;text-align:center;background:#23282b;border:2px solid #000}.stat strong{display:block;font-size:35px;margin:8px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}td,th{padding:17px 14px;text-align:left;font-weight:normal;border-bottom:2px solid #45494c;white-space:nowrap}thead{color:#d1d4d6}tbody tr:hover{background:#ffffff0b}td .button{min-height:40px;font-size:17px;padding:7px 12px}td:first-child{max-width:300px;overflow:hidden;text-overflow:ellipsis}.squares{display:flex;justify-content:center;gap:25px;margin:35px auto}.squares>.button{width:230px;min-height:230px;font-size:39px}.progress{height:21px;border:3px solid #000;background:#282828;overflow:hidden}.progress span{display:block;width:32%;height:100%;background:#83c554;animation:queue-progress 1.4s ease-in-out infinite alternate}@keyframes queue-progress{from{transform:translateX(-100%)}to{transform:translateX(310%)}}.countdown{font-size:50px;text-align:center;margin:20px 0}.chat{max-height:340px;min-height:100px;overflow:auto;padding-right:10px;line-height:1.5}.chat p{margin:9px 0;overflow-wrap:anywhere}.chat time{font-size:14px;color:#b2b6b8;margin-right:8px}.chat strong{color:var(--yellow);font-weight:normal}.badge{display:inline-block;background:#313b41;border:2px solid #111;padding:4px 9px;font-size:14px}.split{color:var(--yellow)}.code{background:#191d20;border:2px solid #000;padding:17px;overflow-wrap:anywhere;user-select:all;text-shadow:none}.empty{text-align:center;padding:35px;color:#d3d5d6}.search{display:flex;gap:12px;margin-bottom:18px}.search input{flex:1}.search .button{flex:0 0 auto}dialog{color:#fff;background:#24282c;border:5px solid #000;width:min(92vw,670px);max-height:90dvh;padding:26px;text-shadow:2px 2px #111}dialog::backdrop{background:#0009}dialog .button{width:100%;margin-top:18px}#notice{position:fixed;right:24px;bottom:70px;max-width:min(90vw,600px);background:#20272b;border:3px solid #000;padding:18px 24px;z-index:10;box-shadow:inset 1px 1px #888;white-space:pre-wrap}details{background:#171c20;border:2px solid #000;padding:18px;margin:12px 0}summary{cursor:pointer;color:var(--yellow)}pre{white-space:pre-wrap;overflow-wrap:anywhere;text-shadow:none;font-size:15px}.admin-nav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.admin-nav .button{flex:1}.review-note{margin-bottom:10px}.player-name{color:var(--yellow)}.loading{text-align:center;padding:65px}small{font-size:15px}hr{border:0;border-top:2px solid #45494c;margin:24px 0}.result-banner{text-align:center;font-size:32px;margin-bottom:20px}.mobile-label{display:none}
@media(max-width:720px){:root{font-size:17px}header{min-height:205px;padding-top:70px}.logo{width:min(500px,100%)}#identity{top:12px;right:15px;left:15px;justify-content:flex-end;font-size:14px}main{padding:16px 14px 100px}.menu{margin-top:20px}.menu>.button{min-height:82px;font-size:29px}.grid{grid-template-columns:1fr}.card{padding:19px}.page-top h1{font-size:24px}.row>.button{font-size:19px}.squares{gap:15px}.squares>.button{min-height:160px;width:160px;font-size:30px}.stats{grid-template-columns:repeat(3,1fr)}.stat{padding:14px 6px;font-size:15px}.stat strong{font-size:28px}.tabs{flex-wrap:wrap}footer{padding:17px 16px;gap:15px;font-size:15px}footer span{font-size:12px}.search{flex-wrap:wrap}.search input{min-width:180px}td,th{padding:13px 10px}.button{font-size:23px}.countdown{font-size:37px}}

/* Shared navigation and form geometry. Footers stay in document flow. */
[hidden]{display:none!important}
body{display:flex;flex-direction:column}
header{flex-shrink:0}
main{width:100%;flex:1;min-height:0;padding-bottom:28px}
footer{position:static;flex-shrink:0;justify-content:flex-end;padding:18px 28px;background:none}
.support-link{font-size:16px;padding:8px 14px;border:2px solid #000;background:#20272bd9}
#identity{display:none}
.page-top{display:grid;grid-template-columns:minmax(75px,1fr) auto minmax(75px,1fr);align-items:center}
.page-top h1{text-align:center;overflow-wrap:anywhere}
.back-link,.help-link{font-size:20px;color:#fff;padding:10px 0}
.back-link{justify-self:start}.help-link{justify-self:end;padding:8px 12px}
.home-menu{margin:12px auto 0;gap:12px}
.home-menu>.button{min-height:clamp(58px,8vh,82px);font-size:29px}
.search{display:flex;align-items:stretch;flex-wrap:nowrap;gap:12px}
.search input{flex:1 1 0;min-width:0;width:auto}
.search>.button{flex:0 0 auto;width:auto;margin:0;min-width:115px}
.auth-discord{width:100%;margin-top:16px}
.solo-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.solo-modes .menu{width:100%;margin:0;gap:12px}.solo-modes .button{min-height:70px;font-size:25px}
@media(max-width:720px){header{padding-top:25px;min-height:165px}.logo{width:min(420px,100%)}.home-menu{margin-top:0}.home-menu>.button{min-height:64px;font-size:27px}.solo-modes{grid-template-columns:1fr}.page-top{grid-template-columns:65px minmax(0,1fr) 35px}.page-top h1{font-size:23px}.back-link{font-size:17px}.search{gap:8px}.search>.button{min-width:85px;padding:10px;font-size:17px}footer{padding:16px}}

/* Home links retain their original corners; other pages use standard buttons. */
.footer-home{display:flex;justify-content:space-between}
.footer-page{display:grid;grid-template-columns:minmax(100px,1fr) auto minmax(100px,1fr);gap:14px;align-items:center}
.footer-page>.button:first-child{justify-self:start;min-width:100px}
.footer-page .support-link{justify-self:center;min-width:160px;background:#c6c6c6;color:#3e3e3e}
.footer-page .support-link:hover{background:#559f35;color:#fff}
.page-top{grid-template-columns:minmax(50px,1fr) auto minmax(50px,1fr)}
.page-top .help-link{justify-self:end;min-width:48px;padding:10px 14px;color:#3e3e3e}
.page-top .help-link:hover{color:#fff}
.home-menu{margin:24px auto 0;gap:14px}.home-menu>.button{min-height:96px;font-size:34px}
@media(max-width:720px){.home-menu{margin-top:10px}.home-menu>.button{min-height:82px;font-size:29px}.footer-page{grid-template-columns:minmax(76px,1fr) auto minmax(76px,1fr);gap:6px}.footer-page>.button:first-child{min-width:76px;padding:10px;font-size:17px}.footer-page .support-link{min-width:110px;padding:10px;font-size:17px}.page-top{grid-template-columns:48px minmax(0,1fr) 48px}}

/* Keep page controls close to the content rather than the viewport edges. */
body:not(.home-page) main{flex:0 0 auto;padding-bottom:0}
body:not(.home-page) main>:last-child{margin-bottom:0}
.footer-page{display:flex;justify-content:center;gap:14px;width:calc(100% - 56px);max-width:1184px;margin:14px auto 28px;padding:0}
.footer-page>.button:first-child,.footer-page .support-link,.footer-page .help-link{flex:0 1 180px;width:180px;min-width:0;min-height:60px;padding:14px 20px;font-size:23px}
.profile-name{text-align:center;font-size:30px;margin:0 0 22px}
@media(max-width:720px){.footer-page{width:calc(100% - 28px);gap:12px;margin-top:14px}.footer-page>.button:first-child,.footer-page .support-link,.footer-page .help-link{flex:1 1 0;width:auto;font-size:21px;padding:12px}.footer-page .support-link{flex:0 0 auto}.profile-name{font-size:27px}}
.footer-page .help-link{color:#3e3e3e}.footer-page .help-link:hover{color:#fff}

.footer-home{justify-content:center;gap:14px}.footer-home>.button{width:180px;min-height:60px;padding:14px 20px;font-size:23px}
@media(max-width:720px){.footer-home{gap:12px}.footer-home>.button{width:160px;font-size:21px;padding:12px}}

.home-page main{flex:0 0 auto;padding-bottom:0}.home-page .footer-home{margin:14px auto 28px;padding:0;width:calc(100% - 56px)}@media(max-width:720px){.home-page .footer-home{width:calc(100% - 28px)}}

.home-menu{width:min(100%,550px)}

/* Keep download first in the centered menu on every screen size. */
.home-layout{display:flex;flex-direction:column;gap:14px;width:min(100%,550px);margin:4px auto 0}
.home-layout .home-menu{width:100%;margin:0;gap:14px}
.home-layout .home-menu>.button{min-height:96px;font-size:32px}
.client-download{width:100%;text-align:center;min-width:0}
.download-primary{min-height:96px;font-size:32px;padding:15px 20px;background:#5db3e9;color:#102e45;box-shadow:inset 3px 3px #afe0ff,inset -3px -3px #30799f}
.download-primary:hover:not(:disabled){background:#7bc5f2;color:#102e45;box-shadow:inset 3px 3px #c9ecff,inset -3px -3px #438bad}
.download-primary[aria-disabled=true]{opacity:.6;pointer-events:none}
.home-page .footer-home{flex-wrap:wrap;max-width:980px;margin-top:24px}
.home-page .footer-home>.button{width:170px}
@media(min-width:900px) and (max-height:850px){.home-page header{min-height:0;padding:22px 28px 8px}.home-page .logo{width:420px}.home-page main{padding-top:18px}.home-layout .home-menu>.button,.download-primary{min-height:82px;font-size:29px}}
@media(max-width:899px){.home-page{padding-bottom:0}.home-layout{display:flex;flex-direction:column;gap:14px;margin:0 auto}.client-download{position:static;width:100%}.home-layout .home-menu>.button,.download-primary{min-height:82px;font-size:29px}.home-page .footer-home{max-width:550px;margin-top:14px;gap:12px}.home-page .footer-home>.button{flex:1 1 140px;max-width:180px;width:auto}.home-page header{min-height:0;padding:24px 20px 8px}.home-page .logo{width:min(420px,100%)}}

/* Shared leaderboard columns and signed recent Elo. */
.leaderboard-table th,.leaderboard-table td{font-variant-numeric:tabular-nums}
.leaderboard-table td:not(:nth-child(2)),.leaderboard-table th:not(:nth-child(2)){text-align:right}
.leaderboard-table td:first-child,.leaderboard-table th:first-child{text-align:center;width:60px}
.leaderboard-table th:last-child{min-width:105px}
.elo-change.positive{color:#84d674}.elo-change.negative{color:#ff7979}.elo-change.neutral{color:#b4b4b4}

:focus-visible{outline:2px solid #bbb;outline-offset:2px}
.profile-charts{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:28px;align-items:center}
.elo-graph{width:100%;height:auto;display:block}.elo-graph text{fill:#ccc;font-size:14px;text-shadow:none}.graph-dates{display:flex;justify-content:space-between;color:#bbb;font-size:14px;padding:0 30px}
.ranked-results{text-align:center}.result-pie{width:160px;height:160px;border-radius:50%;margin:15px auto;display:grid;place-items:center}.result-pie:has(span){background:transparent!important;border:10px solid #828c82}.result-pie span{font-size:17px}.ranked-results p{margin:10px 0}
.profile-actions{margin:20px 0;flex-wrap:nowrap}.profile-report{margin:20px auto}.pagination{display:flex;align-items:center;justify-content:center;gap:25px;margin:22px 0}.mode-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mode-values div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #45494c}.mode-values dd{margin:0}
@media(max-width:720px){.profile-charts,.mode-stats{grid-template-columns:1fr}.profile-actions>.button{font-size:20px;padding:12px}.pagination{gap:12px}}

.result-pie svg{display:block;width:100%;height:100%;overflow:visible}.win-rate{margin-top:18px;padding-top:14px;border-top:1px solid #45494c;font-size:18px}.win-rate strong{font-size:26px}.leaderboard-position{display:flex;justify-content:flex-end;margin:0 0 16px}.own-position{background:#ffffff0b}

/* Title images have different aspect ratios; content follows their actual height. */
body.page-title header{min-height:0;padding-bottom:0}body.page-title main{padding-top:24px}body.page-title main>.menu{margin-top:0}
@media(max-width:720px){body.page-title main{padding-top:20px}}

.download-options{max-width:1000px;margin:0 auto 24px;display:grid;grid-template-columns:1fr 1fr;gap:28px}.download-options .button{min-height:110px;font-size:32px}.download-option p{margin:12px 0 0;padding:12px 16px;background:var(--panel);font-size:17px;line-height:1.45}.download-trust{max-width:1000px;margin:0 auto}.download-trust p{font-size:17px}.download-check{margin-top:24px}.download-check h3{margin-bottom:12px}.download-check .row{max-width:650px}.download-check .button{font-size:17px}@media(max-width:720px){.download-options{grid-template-columns:1fr;gap:20px}.download-options .button{min-height:90px;font-size:28px}.download-check .row{flex-direction:column;align-items:stretch}}

.download-technical code{display:block;overflow-wrap:anywhere;font-size:14px}.download-compact p{margin:10px 0;line-height:1.45}.download-compact h2{margin:20px 0 12px}.download-compact .download-requirements{margin-top:0;color:var(--muted)}.download-compact .download-links{margin-bottom:0;font-size:15px}.download-compact details{margin:16px 0}.download-compact summary{cursor:pointer;font-size:16px;color:var(--muted)}.download-compact details section+section{border-top:1px solid #45494c;margin-top:18px;padding-top:6px}.download-options>.button{min-width:0}
.download-technical pre{margin:12px 0;padding:14px;background:#101010b3;border:1px solid #555;white-space:pre-wrap;overflow-wrap:anywhere}.download-alternative{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:28px}.download-alternative .button{width:min(100%,620px);min-height:76px;text-align:center;font-size:28px}.download-website{font-size:19px;text-align:center}

.info-copy{white-space:pre-line;line-height:1.55}
.download-trust .download-text-link{color:#8dccff}.download-trust .download-text-link:hover{color:#319bff}

.admin-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.review-card{padding:18px;margin:16px 0;border-left:4px solid #e4bf4a;background:var(--panel,rgba(10,22,25,.9))}.review-green{border-color:#65db83}.review-red{border-color:#f08080}.review-yellow{border-color:#e4bf4a}.review-score{font-size:2rem}.review-values>div{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:14px;padding:8px 0;border-bottom:1px solid #ffffff19}.review-values dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.review-values dt{color:#b7c9ce}.admin-search{margin:18px 0}.admin-level{align-items:end}.admin-level label{flex:1}.level-green{color:#65db83}.level-orange{color:#ffb05c}.level-red{color:#f08080}.level-normal{color:#b7c9ce}.admin-nav{flex-wrap:wrap}.green{color:#65db83}.red{color:#f08080}

/* Compact, aligned season/search controls on stats and leaderboard pages. */
.stats-toolbar{display:flex;align-items:stretch;gap:12px;margin:0 0 18px}
.season-control{flex:0 0 170px;width:170px;max-width:100%}
.season-control select{width:100%;height:55px;min-height:55px;padding:10px 12px;font-size:18px}
.stats-toolbar .search{flex:1 1 0;min-width:0;margin:0}
.stats-toolbar .search input{min-height:55px;height:55px;font-size:18px;padding:10px 14px}
.stats-toolbar>.button,.stats-toolbar .search>.button{min-height:55px;height:55px;white-space:nowrap;font-size:18px}
.stats-toolbar>.button{flex:0 0 auto}

.season-bar{display:flex;justify-content:flex-end;margin-bottom:18px}
@media(max-width:720px){.stats-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.stats-toolbar .season-control{width:160px;max-width:100%}.stats-toolbar .search{grid-column:1/-1;grid-row:2}.stats-toolbar>.button{grid-column:2;grid-row:1}.stats-toolbar .search>.button{min-width:85px}.season-control select,.stats-toolbar .search input,.stats-toolbar>.button,.stats-toolbar .search>.button{font-size:17px}.season-bar{justify-content:flex-start}}

.support-us h1{font-size:28px;font-weight:normal;margin:0 0 20px}.support-us p{line-height:1.6}.contribution-links{display:grid;gap:12px}.contribution-links .button{white-space:normal;line-height:1.4;padding:14px}

/* Keep the renamed footer label on one line without increasing button height. */
.footer-home>.button[href="/support"],.footer-page .support-link{white-space:nowrap;padding-left:8px;padding-right:8px}
.owner-match-controls>.row{align-items:stretch}.owner-match-controls>.row>.button{min-height:72px}

.owner-match-controls>form+.row{margin-top:18px}
.squares{display:grid;grid-template-columns:repeat(2,minmax(0,230px));width:min(100%,485px);gap:18px 25px}
.squares>.button{width:100%;min-width:0}.squares>.button:nth-child(n+3){grid-column:1/-1;min-height:62px;font-size:27px}
.room-card{max-width:800px;margin:0 auto;background:#151a1de8;border:3px solid #000;padding:24px;display:grid;gap:14px}
.room-card>p{margin:0;line-height:1.5}.room-card small{display:block;color:#ddd}.room-card label{margin:0;line-height:1.5}.room-card input,.room-card select{margin-top:6px}
.room-card .button{font-size:22px;min-height:52px;padding:10px 16px}.room-code{font-size:32px;letter-spacing:2px}.room-roster{display:grid;gap:8px}
.room-member{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#ffffff0c;padding:10px}.room-member>span:first-child{flex:1;min-width:130px}.room-member select{width:150px;margin:0}.room-member .button{font-size:18px}
.room-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.room-settings details,.room-settings>button{grid-column:1/-1}.room-settings details>label{display:block;margin:12px 0}.room-results{line-height:1.7}
.room-roster{max-height:300px;overflow:auto}
@media(max-width:720px){.squares{grid-template-columns:repeat(2,minmax(0,160px));width:min(100%,335px);column-gap:15px}.room-card{padding:16px}.room-settings{grid-template-columns:1fr}.room-card .button{font-size:19px}}

.download-option>.download-primary{width:100%}.download-version{display:block;text-align:center;color:#c0c8c6;font-size:14px;line-height:1.3;margin-top:8px;text-shadow:1px 1px #111}

.queue-start{width:min(100%,851px);margin:30px auto;display:grid;gap:14px}
.queue-button{width:74%;justify-self:center;min-height:132px;font-size:44px;background:#5db3e9;color:#102e45;border:6px solid #08283c;box-shadow:inset 0 -12px #156597,inset 0 -18px #197cbb,inset -6px 0 #197cbb,inset 6px 6px #1e92db;transform:translateY(-6px);padding-bottom:18px}
.button.queue-button:hover:not(:disabled),.button.queue-button:focus,.button.queue-button:focus-visible{background:#7bc5f2;color:#102e45;outline:none;box-shadow:inset 0 -12px #156597,inset 0 -18px #197cbb,inset -6px 0 #197cbb,inset 6px 6px #1e92db}.button.queue-button:active:not(:disabled){color:#102e45;outline:none;background:#7bc5f2;transform:translateY(6px);box-shadow:inset 0 -6px #197cbb,inset -6px 0 #197cbb,inset 6px 6px #1e92db;padding-bottom:6px}
.queue-preference{display:grid;gap:4px;padding:0 30px}
.queue-preference-ends{display:flex;justify-content:space-between;align-items:end;font-size:22px}.queue-preference-ends span:nth-child(2){color:#c8d2c8;font-size:18px}
.queue-slider{--thumb:28px;position:relative;height:48px}
.queue-slider input[type=range]{-webkit-appearance:none;appearance:none;position:relative;z-index:1;width:100%;height:48px;min-height:0;margin:0;padding:0;border:0;box-shadow:none;outline:none;background:transparent;cursor:pointer}
.queue-slider input[type=range]::-webkit-slider-runnable-track{height:8px;background:#6e6e6e;border:3px solid #000}
.queue-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--thumb);height:48px;margin-top:-23px;background:#c6c6c6;border:3px solid #000;box-shadow:inset 0 4px #f3f3f3,inset 0 -4px #575757}
.queue-slider input[type=range]:hover::-webkit-slider-thumb,.queue-slider input[type=range]:active::-webkit-slider-thumb{background:#3c8b1e;box-shadow:inset 0 4px #75b853,inset 0 -4px #215811}
.queue-slider input[type=range]::-moz-range-track{height:8px;background:#6e6e6e;border:3px solid #000}
.queue-slider input[type=range]::-moz-range-thumb{width:var(--thumb);height:42px;border-radius:0;background:#c6c6c6;border:3px solid #000}
.queue-preference-ticks{position:absolute;left:calc(var(--thumb) / 2 - 4px);right:calc(var(--thumb) / 2 - 4px);top:8px;height:32px;display:flex;justify-content:space-between;pointer-events:none}
.queue-preference-ticks i{width:4px;height:28px;background:#c6c6c6;border:2px solid #000}
.queue-preference-info{margin:8px 0 0;text-align:center;padding:18px 24px}.queue-preference-info h3{margin:0 0 10px;color:#ffff78;font-size:26px;font-weight:normal}.queue-preference-info.only h3{color:#ffbe5a}.queue-preference-info.none h3{color:#80ff60}
.queue-preference-info p{margin:6px 0;font-size:19px;line-height:1.4}.queue-warning{color:#ff966e}
@media(max-width:600px){.queue-button{width:80%;min-height:104px;font-size:34px}.queue-preference{padding:0 8px}.queue-preference-info{padding:14px}.queue-preference-info p{font-size:16px}}
/* Same look as the client: its panel, its frame, its row height and its menu. */
:root{--panel:rgba(20,24,22,.88)}
.card{border:2px solid #828c82;box-shadow:none;padding:20px}
.stat{background:rgba(34,42,46,.92);border:1px solid #48535a}
td,th{padding:12px 14px;border-bottom:1px solid #464b4b}thead{color:#bec4c4}
input,select,textarea{border-color:#828c82}
.has-web-flairs .web-player-identity>.web-equipment:empty{display:none}.has-web-flairs .web-player-heading{padding-left:14px}.has-web-flairs .web-player-cell{min-width:0}
.home-menu{margin-top:14px;gap:10px}.home-menu>.button,.client-download .button{min-height:64px;font-size:27px;padding:10px 22px}
.card .web-match-identity{justify-content:flex-start}
.head-right,.head-left{filter:brightness(.82)}.head-back{filter:brightness(.72)}.head-bottom{filter:brightness(.6)}
/* Stats: three panels, as in the client. */
.profile-grid{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,1.8fr) minmax(200px,.9fr);gap:12px;margin-bottom:14px}.profile-grid .card{margin:0;min-width:0}
.profile-summary{display:grid;justify-items:center;align-content:start;gap:8px}.profile-summary .head3d{--head:72px;margin:8px 0 12px}
.profile-summary dl{display:grid;grid-template-columns:1fr auto;gap:7px 12px;width:100%;margin:0}.profile-summary dd{margin:0;text-align:right}
.profile-title{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 12px;min-height:34px}.profile-title .profile-name{margin:0;font-size:26px}
.profile-results .ranked-results{display:grid;justify-items:center;gap:4px}.profile-results h2{font-size:21px;margin:0 0 8px}.profile-results p{margin:4px 0}.profile-results .result-pie{width:min(120px,100%)}
@media(max-width:900px){.profile-grid{grid-template-columns:1fr 1fr}.profile-graph{grid-column:1 / -1;grid-row:2}}
@media(max-width:640px){.profile-grid{grid-template-columns:1fr}.profile-graph{grid-row:auto}}
/* Live has no title art yet: the word, in the game's font, as in the client. */
.live-page .logo{text-align:center}.live-page .logo img{display:none}.live-page .logo:after{content:'Live';font-size:66px;line-height:1.1}
.leaderboard-table .web-player-heading{text-align:left}.profile-results .result-win-rate{display:none}

/* Dropdowns beside buttons look like the buttons. Green stays for true tabs. */
.season-control select,.record-toolbar select,.board-filters select,.trophy-controls select,.mode-stats select{appearance:none;-webkit-appearance:none;cursor:pointer;color:#3e3e3e;border:3px solid #000;border-radius:0;background-color:#c6c6c6;background-image:linear-gradient(45deg,transparent 50%,#3e3e3e 50%),linear-gradient(135deg,#3e3e3e 50%,transparent 50%);background-position:right 20px center,right 12px center;background-size:8px 8px;background-repeat:no-repeat;box-shadow:inset 3px 3px #fff,inset -3px -3px #555;text-shadow:none;padding:0 36px 0 14px;font-size:18px}
.season-control select:hover,.record-toolbar select:hover,.board-filters select:hover,.trophy-controls select:hover,.mode-stats select:hover{background-color:#d8d8d8}
.season-control select:focus-visible,.record-toolbar select:focus-visible,.board-filters select:focus-visible,.trophy-controls select:focus-visible,.mode-stats select:focus-visible{outline:3px solid #fff;outline-offset:1px}
.season-control option,.record-toolbar option,.board-filters option,.trophy-controls option,.mode-stats option{background:#c6c6c6;color:#3e3e3e}
.season-control select{border-width:4px}.record-toolbar select,.board-filters select{height:55px;min-height:55px}
/* Queue count before joining, and the small Live link on the home page. */
.queue-status{display:grid;justify-items:center;gap:10px;text-align:center}.queue-status p{margin:0}.queue-status small{color:#ddd}
.footer-home .button.live-link{position:fixed;left:18px;bottom:18px;z-index:2;flex:none;width:auto;margin:0;gap:7px;padding:5px 11px;min-height:36px;font-size:16px}.live-dot{flex:none;width:10px;height:10px;background:#db2929}
@media(max-width:900px){.footer-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}.footer-home .button{width:auto;margin:0}.footer-home .button.live-link{position:static;grid-column:1;grid-row:2;justify-self:start}}
@media(max-width:720px){.record-toolbar select{max-width:100%;min-width:0}}

/* Account: who you are, two columns, then Delete alone at the bottom, like the Windows page. */
.account-page{display:grid;gap:12px;width:min(100%,900px);margin:0 auto}.account-page .card{margin:0;min-width:0}
.account-page .account-card .stats{gap:8px;margin:0}.account-page .account-card .stat{padding:6px 8px;min-height:0;font-size:17px}.account-page .account-card .stat strong{font-size:24px;line-height:1.2}.account-page #account-name{margin-top:10px}
.account-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:12px;align-items:stretch}
.account-column h2{margin:0 0 10px;text-align:center;font-size:24px}.account-column p{margin:0 0 10px;text-align:center;overflow-wrap:anywhere;font-size:16px;line-height:1.35}.account-column>.button{width:100%;margin:0 0 8px}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.account-grid .button{width:100%;min-width:0;margin:0;padding:10px 8px}.account-grid>:last-child:nth-child(odd){grid-column:1/-1}
.account-name-row{display:flex;gap:8px;align-items:stretch}.account-name-row input{flex:1 1 0;min-width:0;width:auto}.account-name-row .button{flex:none;width:auto;margin:0}
.account-danger{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.account-danger p{margin:0}.account-danger .button{flex:none;width:auto;margin:0;background:#a23f38;color:#fff;box-shadow:inset 3px 3px #d67b73,inset -3px -3px #5a1915;text-shadow:2px 2px #5a1915}.account-danger .button:hover:not(:disabled){background:#b84a42;color:#fff;box-shadow:inset 3px 3px #e0908a,inset -3px -3px #5a1915}
@media(max-width:720px){.account-columns{grid-template-columns:minmax(0,1fr)}.account-danger{justify-content:center;text-align:center}.account-page .web-account-identity{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 0}.account-page .web-account-identity>h2,.account-page .identity-name-stack{grid-column:1/-1;grid-row:1;min-width:0}.account-page .web-account-identity h2,.account-page .web-account-identity h2 button{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:24px;max-width:100%}}
/* Download is the site's hero button: the game's Play Ranked look, and it sinks when pressed. */
.button.download-primary{background:#5db3e9;color:#102e45;border:4px solid #08283c;box-shadow:inset 0 -8px #156597,inset 0 -12px #197cbb,inset -4px 0 #197cbb,inset 4px 4px #1e92db;padding-bottom:20px}
.button.download-primary:hover:not(:disabled),.button.download-primary:focus-visible{background:#7bc5f2;color:#102e45;outline:none;box-shadow:inset 0 -8px #156597,inset 0 -12px #197cbb,inset -4px 0 #197cbb,inset 4px 4px #1e92db}
.button.download-primary:active:not(:disabled){background:#7bc5f2;color:#102e45;outline:none;transform:translateY(4px);box-shadow:inset 0 -4px #197cbb,inset -4px 0 #197cbb,inset 4px 4px #1e92db;padding-bottom:15px}
.home-layout .button.download-primary{min-height:96px;font-size:32px}@media(min-width:900px) and (max-height:850px),(max-width:899px){.home-layout .button.download-primary{min-height:82px;font-size:29px}}

/* Public Stats mirrors the client: summary, Elo history and ranked results. */
.profile-grid{grid-template-columns:minmax(240px,1fr) minmax(0,1.6fr) minmax(230px,1fr);align-items:stretch}
.profile-grid .card{padding:18px 16px;background:rgba(15,24,22,.78);border:2px solid #828c82;box-shadow:none}
.profile-summary{gap:6px}.profile-summary .head3d{--head:64px;margin:0 0 10px}
.profile-summary dl{gap:8px 12px;font-size:20px}.profile-summary dt{white-space:nowrap}
.profile-graph{display:flex;flex-direction:column;justify-content:space-between}.profile-title{margin:0 0 12px}
.profile-results .result-pie{width:150px;height:150px;max-width:100%;aspect-ratio:1;margin:8px auto}
.profile-results .result-pie svg{display:block;width:100%;height:100%}
.profile-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-actions .button{font-size:23px;min-height:62px;padding:12px}
.profile-actions .season-recap{grid-column:auto;justify-self:stretch;min-width:0}
.profile-report{display:flex;margin:12px auto 28px}.profile-grid .graph-dates{justify-content:center;font-size:15px}
@media(max-width:1000px){.profile-grid{grid-template-columns:minmax(190px,1fr) minmax(0,1.4fr) minmax(180px,1fr)}.profile-summary dl{font-size:17px}}
@media(max-width:760px){.profile-grid{grid-template-columns:1fr 1fr}.profile-graph{grid-column:1/-1;grid-row:2}.profile-actions{grid-template-columns:1fr 1fr}.profile-actions .button{font-size:19px}}
@media(max-width:480px){.profile-grid{grid-template-columns:1fr}.profile-graph{grid-column:auto;grid-row:auto}.profile-actions{grid-template-columns:1fr}.profile-actions .season-recap{grid-column:auto;width:100%}}
.download-linux{margin-bottom:24px}.download-linux code{display:block;margin:8px 0 14px;padding:12px 14px;background:#1e2022;font-size:16px;overflow-wrap:anywhere;user-select:all}.download-linux code.download-inline{display:inline;padding:2px 6px;margin:0;font-size:15px}

.download-options-three{max-width:1200px;grid-template-columns:repeat(3,1fr);gap:24px}.download-options-three .button{font-size:26px;padding-left:10px;padding-right:10px}@media(max-width:1100px){.download-options-three .button{font-size:22px}}@media(max-width:900px){.download-options-three{grid-template-columns:1fr;max-width:640px;gap:20px}.download-options-three .button{font-size:28px}}

/* Admin: dark panels in the site's Minecraft style, compact rows, little text. */
body.admin-page {
  color-scheme: dark;
  background: linear-gradient(#101418e6, #101418f2), url('/web/assets/background.webp') center / cover fixed;
  color: #e7e9ec;
  font: 15px/1.45 Arial, Helvetica, sans-serif;
  text-shadow: none;
}
body.admin-page::before { display: none; }
body.admin-page > header { min-height: 0; padding: 12px 24px; border-bottom: 3px solid #080a0c; background: #222529e8; box-shadow: inset 0 -1px #62666b; }
body.admin-page .logo { width: auto; max-width: none; margin: 0; color: #e7e9ec; }
body.admin-page .logo img { display: block; width: 150px; max-width: 60vw; image-rendering: pixelated; }
body.admin-page .logo::after { content: none; }
body.admin-page main { max-width: 1240px; width: 100%; padding: 20px 24px; margin: 0 auto; }
body.admin-page .footer-page { max-width: 1192px; width: calc(100% - 48px); margin: 16px auto; justify-content: flex-start; }
body.admin-page #notice { color: #e7e9ec; background: #222529; border: 2px solid #719cc7; box-shadow: none; font: inherit; }
body.admin-page #dialog { color: #e7e9ec; background: #222529; border: 3px solid #080a0c; width: min(94vw, 620px); max-height: 90dvh; padding: 20px; text-shadow: none; font: inherit; }
body.admin-page #close-dialog { margin-top: 16px; }

.admin-console { color: #e7e9ec; font: 15px/1.45 Arial, Helvetica, sans-serif; text-shadow: none; }
.admin-console *, body.admin-page > header *, body.admin-page footer * { text-shadow: none; letter-spacing: normal; }
.admin-console h1, .admin-console h2, .admin-console h3 { color: #e7e9ec; font-family: Ranked, monospace; font-weight: normal; line-height: 1.25; text-align: left; overflow-wrap: anywhere; }
.admin-console h1 { font-size: 26px; margin: 0; }
.admin-console h2 { font-size: 19px; margin: 22px 0 10px; }
.admin-console .card h2 { margin-top: 0; }
.admin-console p { margin: 6px 0 10px; }
.admin-console .muted, .admin-console time { color: #9aa4af; }
.admin-console a { color: #8fc2ff; text-underline-offset: 2px; }
.admin-console a:hover { color: #bddcff; }
.admin-console .green { color: #a7d9b6; }
.admin-console .yellow { color: #f0c36b; }
.admin-console .red { color: #ffb0b0; }
.admin-console .empty { color: #9aa4af; padding: 12px 0; text-align: left; }
.admin-console code, .admin-console pre { color: #e7e9ec; background: #191c20; font: 13px/1.4 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Panels */
.admin-console .card { background: #25282cf5; border: 3px solid #080a0c; box-shadow: inset 1px 1px #666b70; border-radius: 0; padding: 14px 16px; margin: 0 0 14px; }
.admin-console details { margin: 12px 0; }
.admin-console details > summary { cursor: pointer; color: #8fc2ff; font-weight: bold; }
.admin-console details[open] > summary { margin-bottom: 8px; }

/* Controls */
.admin-console .button, .admin-console .adm-filter > *, body.admin-page #close-dialog, body.admin-page .footer-page > .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-width: 0; min-height: 34px; padding: 4px 12px;
  font: 16px/1.2 Ranked, monospace; text-align: center; text-decoration: none; color: #fff; cursor: pointer;
  background: #41474d; border: 3px solid #080a0c; border-radius: 0; box-shadow: inset 2px 2px #788087, inset -2px -2px #171a1d;
}
.admin-console .button:hover:not(:disabled), .admin-console .adm-filter > *:hover:not(:disabled), body.admin-page #close-dialog:hover, body.admin-page .footer-page > .button:hover { color: #fff; background: #4c673e; box-shadow: inset 2px 2px #8fab7d, inset -2px -2px #23361a; }
.admin-console .button:active:not(:disabled) { transform: none; }
.admin-console button:disabled { opacity: .6; cursor: not-allowed; }
.admin-console .button.adm-bad, .admin-console .button.danger { background: #8a332d; box-shadow: inset 2px 2px #bd736d, inset -2px -2px #481a16; }
.admin-console .button.adm-bad:hover:not(:disabled), .admin-console .button.danger:hover:not(:disabled) { background: #a03c35; box-shadow: inset 2px 2px #cf8a84, inset -2px -2px #561f1a; }
.admin-console .button.adm-good { background: #3f6b2e; box-shadow: inset 2px 2px #83a871, inset -2px -2px #1d3214; }
.admin-console input, .admin-console select, .admin-console textarea {
  min-height: 34px; padding: 4px 10px; color: #e7e9ec; background: #191c20; border: 2px solid #5b6570; border-radius: 0; box-shadow: none; font: 15px Arial, Helvetica, sans-serif; width: auto; margin: 0;
}
.admin-console input::placeholder, .admin-console textarea::placeholder { color: #8a94a0; opacity: 1; }
.admin-console textarea { display: block; width: 100%; min-height: 80px; resize: vertical; }
.admin-console label { display: block; margin: 10px 0 4px; font-weight: bold; }
.admin-console form { margin: 8px 0 0; }
.admin-console :focus-visible, body.admin-page #close-dialog:focus-visible { outline: 3px solid #91c5ff; outline-offset: 2px; }

/* Layout: menu on the left, page on the right */
.adm { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; }
.adm-nav { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.adm-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px; min-height: 38px; text-decoration: none; color: #fff; font: 17px Ranked, monospace;
  background: #41474d; border: 3px solid #080a0c; box-shadow: inset 2px 2px #788087, inset -2px -2px #171a1d; }
.adm-nav a:hover { color: #fff; background: #4c673e; }
.adm-nav a[aria-current=page] { background: #385c29; box-shadow: inset 2px 2px #83a871, inset -2px -2px #1d3214; }
.adm-nav a b, .adm-filter b, .adm-todo b, .adm-count { min-width: 22px; padding: 0 6px; text-align: center; font: bold 13px/20px Arial, sans-serif; color: #fff; background: #a42525; }
.adm-count { display: inline-block; margin-left: 6px; vertical-align: middle; background: #4a525b; }
.adm-nav hr { width: 100%; border: 0; border-top: 2px solid #3a4148; margin: 6px 0; }
.adm-main { min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }

/* Home */
.adm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.adm-tile { display: flex; flex-direction: column; padding: 10px 14px; background: #25282cf5; border: 3px solid #080a0c; box-shadow: inset 1px 1px #666b70; }
.adm-tile span { color: #b8c0ca; font-size: 14px; }
.adm-tile strong { font: 28px/1.2 Ranked, monospace; color: #c4ed9e; font-variant-numeric: tabular-nums; }
.adm-todo { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-todo a, .adm-filter > * { text-decoration: none; }
.adm-todo a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; color: #fff; background: #3a2d22; border: 3px solid #080a0c; box-shadow: inset 1px 1px #8a6a4a; font: 17px Ranked, monospace; }
.adm-todo a:hover { background: #4d3a2a; color: #fff; }

/* Lists */
.adm-rows { display: flex; flex-direction: column; border: 3px solid #080a0c; background: #25282cf5; }
.adm-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto auto; gap: 12px; align-items: center; padding: 8px 12px; color: #e7e9ec; text-decoration: none; border-top: 1px solid #3a4148; }
.adm-row:first-child { border-top: 0; }
a.adm-row:hover { background: #303943; color: #e7e9ec; }
.adm-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-row span { color: #b8c0ca; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-row time { font-size: 13px; text-align: right; }
.adm-list { margin: 0; padding-left: 18px; }
.adm-list li { margin: 4px 0; }
.adm-pill { display: inline-block; padding: 1px 8px; font: bold 13px/1.5 Arial, sans-serif; color: #d2dae4; background: #30353c; border: 1px solid #626e7b; white-space: nowrap; }
.adm-pill.adm-red { color: #ffc1c1; background: #4a292d; border-color: #b7757a; }
.adm-pill.adm-yellow { color: #f0cd83; background: #493b22; border-color: #a18447; }
.adm-pill.adm-green { color: #b3e0bf; background: #253f30; border-color: #6d9e7c; }

/* Reports and review */
.adm-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.admin-console .adm-filter > [aria-current=page] { background: #385c29; box-shadow: inset 2px 2px #83a871, inset -2px -2px #1d3214; opacity: 1; cursor: default; }
.adm-filter b { background: #4a525b; }
.adm-report { padding: 10px 14px; margin: 0 0 8px; background: #25282cf5; border: 3px solid #080a0c; box-shadow: inset 1px 1px #666b70; }
.adm-report-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-report-top time { margin-left: auto; font-size: 13px; }
.adm-name { font: 18px Ranked, monospace; color: #fff !important; text-decoration: none; }
.adm-name:hover { text-decoration: underline; }
.adm-text { margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.adm-report-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.adm-report-foot > .muted:first-child { margin-right: auto; }
.adm-reasons { margin: 6px 0; padding-left: 18px; }
.adm-reasons li { margin: 2px 0; }
.adm-packs { list-style: none; margin: 6px 0 8px; padding: 0; }
.adm-packs li { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; }
.adm-packs img, .adm-pack-blank { width: 40px; height: 40px; flex: none; border-radius: 4px; image-rendering: pixelated; background: rgba(127,127,127,.15); }
.adm-pack-blank { display: inline-block; }
.adm-packs p { margin: 2px 0; }
.adm-packs code { font-size: 11px; opacity: .7; overflow-wrap: anywhere; }

/* Players */
.adm-search { display: flex; gap: 8px; margin: 0 0 12px; }
.adm-search input { flex: 1 1 auto; }
.admin-console .table-wrap { max-width: 100%; overflow-x: auto; }
.admin-console table { width: 100%; border-collapse: collapse; background: #25282cf5; border: 3px solid #080a0c; }
.admin-console th, .admin-console td { padding: 7px 12px; border-top: 1px solid #3a4148; text-align: left; vertical-align: middle; color: #e7e9ec; }
.admin-console th { background: #30353c; font-weight: bold; color: #b8c0ca; font-size: 13px; }
.admin-console tbody tr:hover { background: #303943; }
.adm-pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.adm-player-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.adm-cards { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.adm-cards .card { margin: 0; }
.adm-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-inline input[name=reason] { flex: 1 1 180px; }
.adm-inline input[type=number] { width: 110px; }
.adm-inline input[name=days] { width: 170px; }

@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; gap: 12px; }
  .adm-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .adm-nav a { flex: 1 1 auto; }
  .adm-nav hr { display: none; }
  .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.admin-page > header { padding: 10px 16px; }
  body.admin-page main { padding: 14px 16px; }
  body.admin-page .footer-page { width: calc(100% - 32px); }
  .adm-row { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-row span { grid-column: 1; }
}
.admin-console .adm-inline > .button, .admin-console .adm-search > .button { flex: 0 0 auto; width: auto; margin: 0; }

/* Mod log */
.adm-row.adm-log { grid-template-columns: 70px minmax(90px, 140px) minmax(0, 3fr) minmax(0, 1.2fr); }
.adm-row.adm-log span { white-space: normal; color: #e7e9ec; }
.adm-row.adm-log span:last-child { color: #b8c0ca; text-align: right; }
.adm-row.adm-log time { text-align: left; }

/* Reject dialog */
.admin-console .adm-choice { border: 1px solid #505963; padding: 8px 12px; margin: 12px 0; }
.admin-console .adm-choice legend { padding: 0 6px; font-weight: bold; }
.admin-console .adm-choice label { display: flex; align-items: center; gap: 8px; font-weight: normal; margin: 6px 0; }
.admin-console .adm-choice input[type=radio] { min-height: 0; width: 18px; height: 18px; }
.admin-console .adm-choice input[type=number] { width: 150px; }

/* Overview charts (owner only) */
.adm-chart { display: block; width: 100%; height: auto; }
.adm-chart .adm-axis { fill: #9aa4af; font: 11px Arial, sans-serif; }
.adm-chart .adm-hit { fill: transparent; }
.adm-chart .adm-hit:hover { fill: #ffffff10; }
.adm-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.adm-chart-grid .card { margin: 0; }
.adm-legend { display: flex; gap: 16px; margin: -4px 0 6px; color: #b8c0ca; font-size: 13px; }
.adm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.adm-chart .adm-label { fill: #b8c0ca; font: 13px Arial, sans-serif; }
.adm-chart .adm-value { fill: #e7e9ec; font: 13px Arial, sans-serif; }
.adm-chart .adm-barrow:hover path { fill: #5b9ff0; }
.adm-sw-ranked { background: #3987e5; }
.adm-sw-solo { background: #d95926; }
#adm-tip { position: fixed; z-index: 50; pointer-events: none; padding: 4px 8px; color: #e7e9ec; background: #111417; border: 1px solid #505963; font: 13px Arial, sans-serif; }
@media (max-width: 900px) { .adm-chart-grid { grid-template-columns: 1fr; } }

.admin-console .adm-danger { border-color: #4a1d1a; box-shadow: inset 1px 1px #8a3a34; }
.admin-console .adm-danger input[name=label] { width: 220px; }
#dialog #adm-season-start input { width: 220px; }
#dialog #adm-season-start { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#dialog #adm-season-start .button { width: auto; margin: 0; }
.admin-console .adm-season-ban { display: flex; align-items: center; gap: 8px; font-weight: normal; margin: 0; white-space: nowrap; }
.admin-console .adm-season-ban input { display: inline-block; width: auto; min-height: 0; margin: 0; }

/* Compact room layout shared by web and Android. */
#private-room-root .room-heading{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
#private-room-root .room-count{white-space:nowrap;color:#c6d4db;font-size:14px}
#private-room-root .room-top-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
#private-room-root .room-top-actions .button{font-size:14px;min-height:34px;height:34px;padding:4px 9px}
#private-room-root .room-top-actions .button[data-room-action=start],#private-room-root .room-top-actions .button[data-room-action=rematch]{background:#559f35;color:#fff;box-shadow:inset 2px 2px #91cd6c,inset -2px -2px #255b14}
#private-room-root .room-top-actions .button[data-room-action=close],#private-room-root .room-top-actions .button[data-room-action=leave]{background:#9b9b9b}
#private-room-root{font-size:18px;text-shadow:1px 1px #111;height:100%}
#private-room-root *{box-sizing:border-box}
#private-room-root .room-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:min(640px,calc(100dvh - 240px));max-width:1000px;margin:auto;background:#171d20f2;border:3px solid #090c0d;box-shadow:inset 1px 1px #596064;padding:0;overflow:hidden}
#private-room-root .room-top{position:static;min-height:0;padding:14px 20px;display:flex;gap:20px;align-items:center;background:#0e1316;border:0;font-size:16px}
#private-room-root .room-code{font-size:23px;letter-spacing:2px;margin:0;white-space:nowrap}
#private-room-root .room-code-line,#private-room-root .room-code-label{display:flex;align-items:center;gap:8px}
#private-room-root .button[data-room-code-toggle]{font-size:12px;min-height:24px;height:24px;padding:2px 8px;flex:none}
#private-room-root .room-state{flex:1;color:#c6d4db}
#private-room-root .room-tabs,#private-room-root .room-subtabs{display:flex;gap:0;margin:0;padding:0;background:#222a2e;border-bottom:2px solid #090c0d}
#private-room-root .room-tabs>button,#private-room-root .room-subtabs>button{height:42px;min-height:0;flex:1;width:auto;border:0;border-right:1px solid #0e1316;background:transparent;box-shadow:none;color:#d2d8db;font:inherit;font-size:18px;padding:6px 12px;cursor:pointer;text-shadow:none}
#private-room-root .room-tabs>button[aria-selected=true],#private-room-root .room-subtabs>button[aria-selected=true]{background:#3d484e;color:#fff;box-shadow:inset 0 -3px #91c767}
#private-room-root .room-content{overflow:auto;min-height:0;padding:18px 20px;scrollbar-width:thin}
#private-room-root h2,#private-room-root h3{font-weight:normal;margin:0 0 12px;line-height:1.2;font-size:20px}
#private-room-root p{margin:0;line-height:1.45}
#private-room-root .room-lobby{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;min-height:0}
#private-room-root .room-player-panel,#private-room-root .room-summary{min-width:0}
#private-room-root .room-summary{background:#232c31;padding:14px;border:1px solid #414b51}
#private-room-root .room-roster{display:grid;align-content:start;gap:6px;max-height:270px;overflow:auto}
#private-room-root .room-member{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;padding:9px 10px;background:#232c31;min-height:46px;font-size:17px}
#private-room-root .room-member>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
#private-room-root .room-member small{display:block;color:#b6c1c8;font-size:12px;line-height:1.25}
#private-room-root .room-player-status{color:#c0d3b2;font-size:14px}
#private-room-root .button{display:flex;justify-content:center;align-items:center;width:auto;height:42px;min-height:42px;margin:0;padding:7px 14px;border:3px solid #080a0b;background:#c6c6c6;color:#363636;box-shadow:inset 2px 2px #fff,inset -2px -2px #606060;font:inherit;font-size:17px;line-height:1.1;text-align:center;text-shadow:none;text-decoration:none;white-space:nowrap;cursor:pointer}
#private-room-root .button:hover:not(:disabled){background:#559f35;color:white;box-shadow:inset 2px 2px #91cd6c,inset -2px -2px #255b14}
#private-room-root .room-member .button{height:32px;min-height:32px;font-size:13px;padding:3px 7px}
#private-room-root input,#private-room-root select{display:block;width:100%;height:41px;min-height:41px;margin:5px 0 0;padding:7px 10px;background:#111619;border:2px solid #606a70;box-shadow:inset 1px 1px #000;color:#fff;font:inherit;font-size:17px;text-shadow:none}
#private-room-root .room-member select{width:108px;min-height:32px;height:32px;margin:0;font-size:14px;padding:4px}
#private-room-root label{display:block;margin:0;font-size:17px;line-height:1.3}
#private-room-root small{display:block;font-size:12px;color:#b7c3ca;line-height:1.35;letter-spacing:0;margin-top:5px}
#private-room-root dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 14px;font-size:16px;margin:0}
#private-room-root dt{color:#bdc8cd}#private-room-root dd{margin:0;text-align:right;overflow-wrap:anywhere}
#private-room-root .room-rule-note{font-size:14px;line-height:1.45;color:#c6d1d7;border-top:1px solid #4b565d;margin-top:14px;padding-top:12px}
#private-room-root .room-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
#private-room-root .room-fields>.room-rule-note{grid-column:1/-1;margin:0;padding-top:10px}
#private-room-root fieldset{padding:0;border:0;margin:16px 0 0;min-width:0}#private-room-root fieldset:disabled{opacity:.8}
#private-room-root form{display:block;margin:0}
#private-room-root .room-subtabs{border:1px solid #48535a;background:#222a2e}
#private-room-root .room-subtabs>button{font-size:16px;height:36px}
#private-room-root .room-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;position:static;transform:none;width:100%;min-height:0;max-width:none;margin:0;padding:12px 20px;background:#0e1316;border-top:2px solid #090c0d;font-size:16px}
#private-room-root .room-bottom>span{font-size:14px}
#private-room-root .room-bottom>.button{flex:0 0 auto;min-width:140px}
#private-room-root .room-bottom>.button:last-child:not(:first-child){background:#559f35;color:white;box-shadow:inset 2px 2px #91cd6c,inset -2px -2px #255b14}
#private-room-root .room-invite-code{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#232c31;border:1px solid #414b51;margin-bottom:18px}
#private-room-root .room-invite-code strong{font-size:26px;font-weight:normal;letter-spacing:2px}
#private-room-root .room-search{display:flex;align-items:end;gap:12px}#private-room-root .room-search>label{flex:1}#private-room-root .room-search>.button{flex:0 0 auto}
#private-room-root .room-search-results{margin-top:14px;display:grid;gap:6px}
#private-room-root .room-muted{color:#b7c3ca;font-size:15px}
#private-room-root .room-results{display:grid;gap:10px;max-height:240px;overflow:auto}#private-room-root .room-results>div{display:flex;justify-content:space-between;gap:12px}#private-room-root .room-results strong{font-weight:normal;color:#d4e8bd}
#private-room-root .room-race-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}#private-room-root .room-race-actions form{display:flex;gap:8px;flex:1}#private-room-root .room-race-actions input{margin:0;min-width:100px}
#private-room-root .room-vote{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:10px 12px;background:#27352b;font-size:15px}#private-room-root .room-vote .button{font-size:15px}
#private-room-root .room-open-match{margin-top:14px;width:100%}
#private-room-root .room-entry{height:auto;max-width:620px;padding:24px;gap:24px;display:grid}
#private-room-root .room-entry{grid-template-rows:none;grid-auto-rows:max-content;align-content:start}
#private-room-root .room-entry form>.button{width:100%;margin-top:14px}
body.rooms-page header:has(.logo){min-height:0;height:140px;padding:18px 20px}
body.rooms-page .logo{width:min(560px,70vw)}
body.rooms-page main{max-width:1050px;padding:6px 20px 90px;min-height:0}
body.rooms-page{display:grid;grid-template-rows:140px minmax(0,1fr) 80px;height:100dvh;max-height:100dvh;overflow:hidden}
body.rooms-page #app{width:100%;height:100%;padding:6px 20px 12px;min-height:0;flex:none}
body.rooms-page #private-room-root .room-shell{height:100%;max-height:640px}
body.rooms-page #site-footer{position:static;width:100%;height:80px;max-width:none;margin:0;padding:10px 0;align-self:end}
body[data-page=privateRoom] main{top:18%;width:94vw;max-width:1000px;height:68%;max-height:none;display:block;overflow:visible;padding:0}
body[data-page=privateRoom] #logo{height:14%;top:2%;max-width:75%}
body[data-page=privateRoom] #private-room-root{font-size:16px}
body[data-page=privateRoom] #private-room-root .room-shell{height:100%}
body[data-page=privateRoom] #private-room-root .room-top{padding:7px 12px;font-size:13px}
body[data-page=privateRoom] #private-room-root .room-code{font-size:20px}
body[data-page=privateRoom] #private-room-root .room-tabs>button{height:30px;font-size:15px}
body[data-page=privateRoom] #private-room-root .room-content{padding:9px 12px}
body[data-page=privateRoom] #private-room-root .room-bottom{padding:7px 12px}
body[data-page=privateRoom] #private-room-root .room-roster{max-height:215px}
body[data-page=privateRoom] #private-room-root .room-fields{gap:9px 16px}
body[data-page=privateRoom] #private-room-root h3{font-size:18px}
body[data-page=privateRoom] #private-room-root label{font-size:14px}
body[data-page=privateRoom] #private-room-root input,body[data-page=privateRoom] #private-room-root select{height:32px;min-height:32px;font-size:14px;padding:5px 7px;margin-top:3px}
body[data-page=privateRoom] #private-room-root small{font-size:10px;margin-top:3px}
body[data-page=privateRoom] #private-room-root fieldset{margin-top:10px}
body[data-page=privateRoom] #private-room-root .room-subtabs>button{height:28px;font-size:14px}
body[data-page=privateRoom] #private-room-root .room-member{font-size:15px}
body[data-page=privateRoom] #private-room-root .room-rule-note{font-size:13px}
body[data-page=privateRoom] #private-room-root .room-fields>.room-rule-note{display:none}
body[data-page=privateRoom] #private-room-root .button{height:32px;min-height:32px;font-size:14px}
@media(min-width:650px){body[data-page=privateRoom] #private-room-root .room-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
 #private-room-root .room-shell{height:calc(100dvh - 200px)}
 #private-room-root .room-top{padding:10px 12px;gap:8px;flex-wrap:wrap;font-size:13px}
 #private-room-root .room-code{font-size:20px}#private-room-root .room-state{flex:1;text-align:right}#private-room-root .room-top>span:last-child{width:100%;font-size:12px}
 #private-room-root .room-content{padding:12px}#private-room-root .room-lobby{grid-template-columns:1fr;gap:14px}
 #private-room-root .room-roster{max-height:160px}#private-room-root .room-fields{grid-template-columns:1fr;gap:12px}
 #private-room-root .room-bottom{padding:10px 12px}#private-room-root .room-bottom>.button{min-width:0;flex:1}
 #private-room-root .room-vote{flex-wrap:wrap}#private-room-root .room-search{gap:8px}
 body.rooms-page header:has(.logo){height:110px;padding-top:20px}body.rooms-page main{padding:0 12px 80px}
 body.rooms-page{grid-template-rows:110px minmax(0,1fr) 72px}body.rooms-page #app{padding:0 12px 8px}body.rooms-page #site-footer{height:72px}
}
/* Keep room actions and forms readable at phone WebView density. */
body[data-page=privateRoom] #private-room-root .room-top{gap:10px;align-items:center}
body[data-page=privateRoom] #private-room-root .room-state{font-size:12px;line-height:1.25}
body[data-page=privateRoom] #private-room-root .room-count{font-size:12px}
body[data-page=privateRoom] #private-room-root .room-top-actions .button{font-size:12px;height:30px;min-height:30px;padding:4px 8px}
#private-room-root .room-bottom:empty{display:none}
@media(max-width:600px){#private-room-root .room-top{flex-wrap:wrap}#private-room-root .room-heading{flex:1}#private-room-root .room-top-actions{width:100%;justify-content:flex-start}#private-room-root .room-count{width:auto!important}#private-room-root .room-top-actions .button{flex:1}#private-room-root .room-state{text-align:left}}
@media(max-height:550px) and (min-width:601px){body[data-page=privateRoom] #private-room-root .room-top{padding:5px 9px;gap:8px}body[data-page=privateRoom] #private-room-root .room-code{font-size:17px}body[data-page=privateRoom] #private-room-root .room-top-actions .button{height:28px;min-height:28px;font-size:11px;padding:3px 6px}body[data-page=privateRoom] #private-room-root .room-state{font-size:11px}body[data-page=privateRoom] #private-room-root .room-count{font-size:11px}}

.room-chat{margin-top:16px;padding-top:12px;border-top:1px solid #748078}.room-chat-messages{max-height:150px;overflow:auto;overflow-wrap:anywhere}.room-chat-messages p{margin:6px 0}.room-chat form{display:flex;gap:10px}.room-chat input{flex:1;min-width:0}.room-chat form button{width:auto}

.room-seed{text-align:center;margin:14px 0 6px}.room-seed .code{display:inline-block;padding:3px 10px;margin-left:6px;background:#191d20;border:1px solid #000;user-select:all}

/* Tournaments (0.7.0), shared by the Android menu and the website. Same panel, bevels and colours as the private room. */
.t-shell{box-sizing:border-box;display:flex;flex-direction:column;max-width:1100px;margin:auto;height:min(720px,calc(100dvh - 230px));background:#171d20f2;border:3px solid #090c0d;box-shadow:inset 1px 1px #596064;font-size:17px;text-shadow:1px 1px #111;color:#fff;overflow:hidden;text-align:left}
.t-shell *{box-sizing:border-box}
.t-shell h3{margin:14px 0 8px;padding-bottom:4px;font-size:19px;font-weight:normal;border-bottom:2px solid #559f35}
.t-shell label{display:block;margin:10px 0 5px;color:#e6eaec}
.t-shell input,.t-shell select{font:inherit;font-size:16px;color:#fff;background:#111619;border:2px solid #606a70;padding:6px 9px;width:100%;min-height:38px;border-radius:0}
.t-shell input:focus,.t-shell select:focus{outline:none;border-color:#91c767}
.t-shell .t-btn{min-height:38px;height:auto;padding:5px 12px;font-size:16px;margin:0;border:3px solid #000;box-shadow:inset 2px 2px #fff,inset -2px -2px #555;background:#c6c6c6;color:#3c3c3c;cursor:pointer;white-space:nowrap;width:auto}
.t-shell .t-btn:hover:not(:disabled),.t-shell .t-btn.green{background:#559f35;color:#fff;box-shadow:inset 2px 2px #91cd6c,inset -2px -2px #255b14;text-shadow:1px 1px #1a3d0e}
.t-shell .t-btn:disabled{background:#787878;color:#c8c8c8;cursor:default;box-shadow:inset 2px 2px #999,inset -2px -2px #555}
.t-shell .t-btn.big{min-height:46px;font-size:18px;padding:6px 22px}
.t-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;background:#0e1316;flex-wrap:wrap}
.t-title{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.t-title b{font-size:24px;font-weight:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-title small,.t-help,.t-muted{color:#aab6bd;font-size:14px}
.t-help{display:block;margin:5px 0}
.t-code{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.t-code span{font-size:18px;letter-spacing:1px;margin-right:6px}
.t-list-top form{display:flex;align-items:flex-end;gap:8px;flex:1;min-width:260px}
.t-list-top form label{margin:0;flex:1;display:flex;align-items:center;gap:10px;white-space:nowrap}
.t-list-top form input{max-width:260px}
.t-scroll{flex:1;min-height:0;overflow:auto;padding:12px 18px}
.t-shell .t-row{display:flex;box-shadow:none;width:100%;justify-content:space-between;align-items:center;gap:12px;text-align:left;font:inherit;color:#fff;text-shadow:1px 1px #111;background:#232c31;border:2px solid #414b51;border-left:6px solid #5ea0db;padding:12px 16px;margin:0 0 8px;cursor:pointer;min-height:70px;height:auto}
.t-shell .t-row:hover{background:#2f3a40}
.t-row.t-running{border-left-color:#73cd4c}.t-row.t-finished{border-left-color:#e6b422}.t-row.t-cancelled{border-left-color:#787878}
.t-row-main{display:flex;flex-direction:column;gap:5px;min-width:0}
.t-row-main b{font-size:20px;font-weight:normal}
.t-row-main small{color:#aab6bd;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-row-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;white-space:nowrap;font-size:16px}
.t-chip{background:#559f35;padding:3px 8px;font-size:14px}
.t-empty{text-align:center;margin:40px 10px;color:#d0d8dc}
.t-error{color:#ffaa96;margin:8px 18px}
.t-summary{padding:16px 18px;background:#0e1316;color:#a0dc78;text-align:center;font-size:18px}
.t-columns{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.t-formats{display:flex;flex-direction:column;gap:5px;margin-top:10px}
.t-formats .t-btn{width:100%}
.t-chips{display:flex;flex-wrap:wrap;gap:6px}
.t-chips .t-btn{font-size:14px;min-height:34px;padding:3px 10px}
.t-stepper{display:flex;gap:8px}
.t-stepper .t-btn{width:46px;flex:none}
.t-stepper input{text-align:left}
.t-seg{display:flex;gap:6px}
.t-seg .t-btn{flex:1}
.t-points{display:flex;flex-wrap:wrap;gap:8px}
.t-points label{margin:0;width:78px;font-size:14px}
.t-tiebreaks{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.t-tiebreaks label{margin:0;font-size:14px}
.t-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 18px;flex-wrap:wrap}
.t-foot div{display:flex;gap:8px;flex-wrap:wrap}
.t-foot .t-error{margin:0}
.t-banner{margin:10px 16px 0;padding:8px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.t-banner div{display:flex;flex-direction:column;gap:3px;min-width:0}
.t-banner b{font-weight:normal;font-size:18px}
.t-banner small{color:#bee1aa;font-size:14px}
.t-banner.green{background:#24461e;border:2px solid #73cd4c}
.t-banner.gold{background:#5c4812;border:2px solid #e6b422;justify-content:center;color:#ffe278;font-size:22px}
.t-tabs{display:flex;margin:10px 16px 0;background:#222a2e}
.t-shell .t-tab{flex:1;box-shadow:none;width:auto;margin:0;font:inherit;font-size:17px;color:#d2d8db;background:#222a2e;border:0;border-right:1px solid #0e1316;padding:9px;cursor:pointer;min-height:0;height:auto;text-shadow:1px 1px #111}
.t-shell .t-tab.on,.t-shell .t-tab:hover{background:#3d484e;color:#fff}
.t-shell .t-tab.on{box-shadow:inset 0 -3px #91c767}
.t-body{padding:10px 16px}
.t-body-bracket{padding:0;margin:0 16px;border:2px solid #414b51;background:#111619;display:flex}
.t-bracket{flex:1;overflow:auto;touch-action:none;cursor:grab;display:flex;scrollbar-width:auto;scrollbar-color:#7d8a91 #1b2226}
.t-bracket::-webkit-scrollbar{width:12px;height:12px;background:#1b2226}
.t-bracket::-webkit-scrollbar-thumb{background:#7d8a91;border:2px solid #1b2226}
.t-bracket::-webkit-scrollbar-corner{background:#1b2226}
.t-body-bracket{position:relative}
.t-fade{position:absolute;top:0;bottom:14px;width:46px;pointer-events:none;opacity:0;transition:opacity .2s}
.t-fade.l{left:0;background:linear-gradient(90deg,#111619,#11161900)}
.t-fade.r{right:14px;background:linear-gradient(270deg,#111619,#11161900)}
.more-left>.t-fade.l,.more-right>.t-fade.r{opacity:1}
.t-pan-hint{position:absolute;right:22px;bottom:20px;pointer-events:none;background:#000a;border:1px solid #465056;color:#d0d8dc;font-size:13px;padding:3px 8px;display:none}
.pannable:not(.moved)>.t-pan-hint{display:block}
.t-canvas{position:relative;margin:auto;flex:none}
.t-canvas svg{position:absolute;left:0;top:0;pointer-events:none}
.t-canvas path{fill:none;stroke:#465056;stroke-width:2}
.t-canvas path.done{stroke:#6e8c64}
.t-canvas path.mine{stroke:#e6b422;stroke-width:3}
.t-round-label{position:absolute;text-align:center;color:#a0dc78;font-size:14px}
.t-band-label{position:absolute;left:14px;color:#96a2a9;font-size:13px}
.t-band-line{position:absolute;left:14px;height:2px;background:#3c464c}
.t-box{position:absolute;background:#262f34;border:2px solid #465056;padding:1px;font-size:14px}
.t-box.t-pending{background:#1c2226}
.t-box.t-ready{border-color:#8c989e}
.t-box.mine{border:3px solid #e6b422}
.t-box.editable{cursor:pointer}
.t-box.editable:hover{filter:brightness(1.2)}
.t-slot{height:26px;display:flex;justify-content:space-between;align-items:center;padding:0 8px;border-top:1px solid #171d20;color:#ebeef0}
.t-slot:first-of-type{border-top:0}
.t-slot span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-slot.win{background:#2e5426}
.t-slot.lost{color:#969ea3}
.t-slot.empty{color:#6e767b}
.t-slot.me span{color:#ffd864}
.t-live{position:absolute;right:6px;top:-18px;font-style:normal;font-size:11px;padding:1px 5px;background:#3c6eaa;color:#fff}
.t-live.racing{background:#c83232}
.t-table{width:100%;border-collapse:collapse;font-size:16px}
.t-table th{text-align:left;color:#d8dee1;font-weight:normal;padding:7px 10px;background:#2b353a}
.t-table td{padding:8px 10px;background:#232c31;border-top:2px solid #171d20}
.t-table tr:nth-child(odd) td{background:#1e262a}
.t-table tr.me td.t-name{color:#ffd864}
.t-table .t-name{width:100%}
/* Long names shrink with ... instead of pushing the numbers off screen. */
.t-table td.t-name{max-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}.t-table td,.t-table th{white-space:nowrap}
@media (max-width:600px){.t-table{font-size:14px}.t-table th,.t-table td{padding:6px 5px}}
.t-table .t-points-cell{color:#a0dc78}
.t-actions{display:flex;gap:6px;white-space:nowrap}
.t-actions .t-btn{font-size:14px;min-height:32px;padding:2px 8px}
.t-match-row{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#232c31;border:2px solid transparent;padding:9px 14px;margin-bottom:6px}
.t-match-row.mine{border-color:#e6b422}
.t-match-row.editable{cursor:pointer}
.t-match-row.editable:hover{background:#2f3a40}
.t-match-row .me{color:#ffd864}
.t-match-row em{font-style:normal;color:#aab6bd;margin:0 6px}
.t-match-row b{font-weight:normal;color:#cfd6da}
.t-tag{color:#aab6bd;font-size:14px;white-space:nowrap}
.t-match-row.t-done .t-tag{color:#a0dc78}
.t-modal-back{position:fixed;inset:0;background:#000a;display:flex;align-items:center;justify-content:center;z-index:50}
.t-modal{background:#171d20;border:3px solid #090c0d;box-shadow:inset 1px 1px #596064;padding:16px;display:flex;flex-direction:column;gap:7px;min-width:300px;max-width:92vw;max-height:86vh;overflow:auto}
.t-modal h3{margin-top:0}
.t-modal hr{border:0;border-top:2px solid #2b353a;width:100%;margin:4px 0}
.t-modal .t-btn{width:100%}
@media (max-width:720px){.t-columns{grid-template-columns:1fr}.t-tiebreaks{grid-template-columns:1fr}.t-shell{height:calc(100dvh - 200px)}.t-top{padding:10px 12px}.t-title b{font-size:20px}}
/* Android menu: the tournament pages use the whole screen above the footer (no logo). */
body[data-page=tournaments] #logo,body[data-page=tournament] #logo{display:none}
body[data-page=tournaments] main,body[data-page=tournament] main{top:2.5%;width:96vw;max-width:1200px;height:calc(97.5% - var(--footer-height,64px) - 14px);max-height:none;display:block;overflow:visible;padding:0}
body[data-page=tournaments] .t-shell,body[data-page=tournament] .t-shell{height:100%;max-width:none;font-size:15px}
body[data-page=tournament] .t-top{padding:6px 12px;gap:10px;flex-wrap:nowrap}
body[data-page=tournament] .t-title b{font-size:19px}
body[data-page=tournament] .t-title small{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-page=tournament] .t-code span{font-size:15px}
body[data-page=tournaments] .t-btn,body[data-page=tournament] .t-btn{min-height:32px;font-size:14px;padding:3px 10px}
body[data-page=tournament] .t-tabs{margin:6px 12px 0}
body[data-page=tournament] .t-tab{padding:5px;font-size:15px}
body[data-page=tournament] .t-body-bracket{margin:0 12px}
body[data-page=tournament] .t-banner{margin:6px 12px 0;padding:5px 10px}
body[data-page=tournament] .t-banner b{font-size:15px}
body[data-page=tournament] .t-foot,body[data-page=tournaments] .t-foot{padding:6px 12px}
body[data-page=tournaments] .t-summary{padding:8px 12px;font-size:15px}
body[data-page=tournaments] .t-scroll,body[data-page=tournament] .t-scroll{padding:8px 12px}
body[data-page=tournaments] .t-shell h3{margin:8px 0 5px;font-size:16px}
body[data-page=tournaments] .t-shell label{margin:6px 0 3px;font-size:14px}
body[data-page=tournaments] .t-shell input,body[data-page=tournaments] .t-shell select{min-height:32px;padding:4px 8px;font-size:14px}
body[data-page=tournaments] .t-row{min-height:56px;padding:7px 12px}
body[data-page=tournaments] .t-row-main b{font-size:17px}
body[data-page=tournaments] .t-list-top{padding:8px 12px}
#tournament-root{height:100%}
/* Lobby seeding buttons stay on one short line per player. */
.t-table td.t-actions{white-space:nowrap;width:1%}
.t-shell .t-table .t-actions .t-btn,body[data-page=tournament] .t-table .t-actions .t-btn{min-height:26px;height:auto;padding:1px 8px;font-size:13px;margin:0 0 0 4px;width:auto}
/* Android phones (landscape 915x412, 780x360): Make a Tournament is one scrolling column; the summary and Create stay outside the scroll. */
@media (max-width:1000px),(max-height:520px){
body[data-page=tournaments] .t-columns{grid-template-columns:1fr;gap:0}
body[data-page=tournaments] .t-formats{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:5px}
body[data-page=tournaments] .t-formats .t-btn{white-space:normal;line-height:1.1;height:auto;min-height:32px}
body[data-page=tournaments] .t-tiebreaks{grid-template-columns:repeat(3,1fr)}
body[data-page=tournaments] .t-form{padding-bottom:28px;-webkit-mask-image:linear-gradient(#000 calc(100% - 26px),#0000);mask-image:linear-gradient(#000 calc(100% - 26px),#0000)}
body[data-page=tournaments] .t-summary{padding:5px 10px;font-size:14px}
body[data-page=tournaments] .t-foot,body[data-page=tournament] .t-foot{padding:4px 10px}
body[data-page=tournaments] .t-foot .t-btn.big{min-height:34px;font-size:16px}
}
/* Short phone screens: a smaller bracket and tighter header so the bracket area keeps most of the height. */
@media (max-height:520px){
body[data-page=tournament] .t-canvas{zoom:.72}
body[data-page=tournament] .t-top{padding:3px 10px}
body[data-page=tournament] .t-title b{font-size:16px}
body[data-page=tournament] .t-title small{font-size:11px}
body[data-page=tournament] .t-tabs{margin-top:3px}
body[data-page=tournament] .t-tab{padding:3px;font-size:14px}
body[data-page=tournament] .t-foot small,body[data-page=tournament] .t-foot .t-help{font-size:12px}
.t-pan-hint{font-size:11px;right:18px;bottom:16px}
body[data-page=tournament] .t-table td{padding:3px 8px}
body[data-page=tournament] .t-table th{padding:3px 8px}
body[data-page=tournament] .t-body>p{margin:2px 0}
}
.t-web-note{text-align:center;color:#d0d8dc;margin:12px auto;max-width:1100px;font-size:16px}
.web-tournament .t-shell{margin-top:8px;max-width:min(1600px,96vw)}
/* Phone-width website: smaller bracket so two rounds fit; it still scrolls both ways. */
@media (max-width:600px){.web-tournament .t-canvas{zoom:.75}.web-tournament .t-top{flex-wrap:wrap}.web-tournament .t-title small{white-space:normal}}
/* Android walkthrough (AW-L1..L5): format labels wrap everywhere, the match panel stays above the footer, the drag hint sits
   at the top and fades out, and the lobby keeps room for its player rows on short screens. */
.t-create .t-formats .t-btn{white-space:normal;line-height:1.15;height:auto}
body[data-page=tournament] .t-modal-back{bottom:calc(var(--footer-height,64px) + 8px)}
body[data-page=tournament] .t-modal{max-height:calc(100vh - var(--footer-height,64px) - 24px);overflow:auto}
.t-pan-hint{top:8px;bottom:auto;animation:t-hint-fade 7s forwards}
@keyframes t-hint-fade{0%,75%{opacity:1}100%{opacity:0}}
@media (max-height:520px){body[data-page=tournament] .t-body-players .t-help{font-size:11px;line-height:1.2}body[data-page=tournament] .t-body-players{min-height:110px}}

.t-slot b.t-ff{font-size:.78em;color:#f6a07a}
/* The pan hint has its own strip above the bracket: round labels never sit under its text. */
.t-pan-hint{top:2px;bottom:auto}
.pannable:not(.moved)>.t-bracket{margin-top:26px}

/* One look for every owner lab screen: flat dark panels, one yellow accent, square blocks. */
.an-card h2{margin:0 0 12px}
.an-headline{margin:0 0 14px;color:var(--yellow);font-size:1rem}
.an-note{font-size:.8rem;margin:0 0 12px}
.an-foot{margin:14px 0 0;font-size:.9rem}
.an-good{color:var(--green)}.an-bad{color:#ef8a7f}
.an-swatch{display:block;flex:none}

.an-legend,.an-key{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 12px;font-size:.8rem;color:var(--muted)}
.an-legend span,.an-key span{display:inline-flex;align-items:center;gap:6px}

.an-lane{margin:0 0 10px}
.an-lane-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:4px}
.an-route{display:block;width:100%;height:auto}
.an-route text{font-size:15px;font-family:inherit;text-shadow:none}
.an-axis text,.an-trend text{text-shadow:none}
.an-axis{display:block;width:100%;height:auto;margin:-4px 0 12px}
.an-axis text{font-size:13px;fill:var(--muted);font-family:inherit}

.an-table{width:100%;border-collapse:collapse;font-size:.9rem}
.an-table th,.an-table td{padding:8px;text-align:right;border-bottom:1px solid rgba(255,255,255,.12);font-weight:normal}
.an-table th:first-child{text-align:left}
.an-table thead th{color:var(--muted);font-size:.8rem}
.an-table tbody th{display:flex;align-items:center;gap:8px}
.an-table .an-gap{text-align:center}
.an-table tbody tr:last-child th,.an-table tbody tr:last-child td{border-bottom:0}

.an-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.an-tabs button{font:inherit;font-size:.85rem;color:#fff;text-shadow:inherit;background:var(--panel);border:2px solid rgba(255,255,255,.2);padding:7px 12px;cursor:pointer}
.an-tabs button span{color:var(--muted);margin-left:4px}
.an-tabs button:hover{border-color:rgba(255,255,255,.5)}
.an-tabs button[aria-pressed=true]{border-color:var(--yellow);color:var(--yellow)}
.an-tabs button:focus-visible,.an-row:focus-visible{outline:2px solid var(--yellow);outline-offset:1px}

.an-compare-table{display:grid;gap:2px}
.an-row{display:grid;grid-template-columns:150px minmax(0,1fr) 78px 104px 104px;gap:12px;align-items:center;width:100%;padding:8px 10px;font:inherit;font-size:.9rem;color:#fff;text-shadow:inherit;text-align:left;background:transparent;border:2px solid transparent}
.no-next .an-row{grid-template-columns:150px minmax(0,1fr) 78px 104px}
button.an-row{cursor:pointer}
button.an-row:hover{background:rgba(255,255,255,.05)}
button.an-row.on{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.05)}
.an-row-head{padding-block:0 4px;color:var(--muted);font-size:.72rem}
.an-row-head span:nth-child(n+3){text-align:right}
.an-name{display:flex;align-items:center;gap:8px;min-width:0}
.an-compare{display:block;width:100%;height:20px}
.an-you,.an-peer,.an-next{display:block;text-align:right;font-variant-numeric:tabular-nums;line-height:1.2}
.an-you small{display:block;font-size:.75rem}
.an-peer{color:var(--muted)}.an-next{color:var(--yellow)}

.an-trend{display:block;width:100%;height:auto}
.an-grid{stroke:rgba(255,255,255,.1);stroke-width:1}
.an-tick{font-size:13px;fill:var(--muted);font-family:inherit}
.an-time{font-size:13px;font-family:inherit}
.an-ref{font-size:13px;font-family:inherit}

.an-card .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.an-card .stat{min-width:0;margin:0;padding:10px 8px;font-size:.8rem}
.an-card .stat strong{font-size:1.3rem}
.an-card .stat .muted{display:block;font-size:.7rem;margin-top:2px}

.an-chart-head,.an-full-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.an-chart-head h2,.an-full-head h2{margin:0}
.an-chart-head .button,.an-full-head .button{flex:0 0 auto;width:auto;margin:0;padding:8px 16px}
.an-full{position:fixed;inset:0;z-index:50;overflow:auto;padding:20px max(24px,env(safe-area-inset-right,0px));background:#0d1217}
.share-row{margin-top:12px}

@media(max-width:720px){
 .an-table{font-size:.8rem}
 .an-table th,.an-table td{padding:6px 4px}
 .an-row,.no-next .an-row{grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,62px));gap:8px;padding:6px}
 .no-next .an-row{grid-template-columns:minmax(0,1fr) repeat(2,minmax(0,62px))}
 .an-row .an-compare{grid-row:2;grid-column:1/-1}
 .an-row-head span:nth-child(2){display:none}
}

.share-row{margin-top:14px}.share-preview img{display:block;width:100%;height:auto;max-width:900px;margin:0 auto}

/* Trainer panel (0.7.0), opened from the Analysis page. */
.tr-open-row{display:flex;justify-content:flex-end;margin:14px 0 0}
.tr-open-row .button.tr-open{width:auto;min-width:200px;margin:0;background:#3c8b1e;color:#fff;box-shadow:inset 3px 3px #75b853,inset -3px -3px #1f5a0e}
.tr-full{background:rgba(9,14,12,.94)}
.tr-wrap{max-width:980px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;animation:tr-in .35s ease-out}
.tr-body{min-width:0}.tr-coach>div,.tr-tile>div{min-width:0}.tr-body p,.tr-body li{overflow-wrap:anywhere}
.tr-body{display:grid;gap:14px}
.tr-coach{display:flex;gap:20px;align-items:flex-start;padding:18px 20px;background:#1a1f1c;border:3px solid #000;border-top:5px solid #ffe247}
.tr-coach h3{margin:0 0 6px;color:#ffe247;font-size:1.5em;font-weight:normal}
.tr-coach p{margin:0 0 8px;line-height:1.45}
.tr-block{flex:none;display:block}
.tr-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:14px}
.tr-tile{display:grid;grid-template-columns:auto 1fr auto;gap:6px 14px;align-items:center;padding:14px 16px;background:#1a1f1c;border:3px solid #000;border-top:5px solid #dc6050}
.tr-tile.good{border-top-color:#60c850}
.tr-tile>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.tr-tile small{text-transform:uppercase;font-size:.75em;color:#ff968c}.tr-tile.good small{color:#96f07d}
.tr-tile strong{font-weight:normal;font-size:1.3em}.tr-tile .muted{font-size:.85em}
.tr-tile b{font-weight:normal;font-size:1.9em;color:#ff968c}.tr-tile.good b{color:#96f07d}
.tr-tile p{grid-column:1/-1;margin:2px 0 0;font-size:.88em;color:#cde8c4}.tr-tile.weak p{color:#f0d2c8}
.tr-seed{margin:0;padding:10px;text-align:center;background:rgba(0,0,0,.45)}
.tr-todo{padding:16px 20px;background:#1a1f1c;border:3px solid #000}
.tr-todo h3{margin:0 0 8px;font-weight:normal}
.tr-todo ol{margin:0 0 10px;padding-left:1.4em;display:grid;gap:6px}
.tr-todo li.primary{color:#96f07d}
.tr-open-game{margin:0;color:#ffe247}
@keyframes tr-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(max-width:720px){.tr-coach{flex-direction:column;padding:14px}.tr-tile{padding:12px}.tr-tile b{font-size:1.4em}.tr-todo{padding:14px}}


.trophy-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}.trophy-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}.trophy-tile{background:#172321b0;border:2px solid transparent;cursor:pointer;min-height:92px;padding:2px;color:white}.trophy-tile:hover,.trophy-tile:focus-visible{border-color:#ddd}.trophy-tile.selected{border-color:#e4c85a}.web-flair{display:inline-block;width:88px;height:88px;background-image:url('/web/assets/flairs.png');background-size:1408px 880px;image-rendering:pixelated;vertical-align:middle}.trophy-tile.locked .web-flair{filter:grayscale(1);opacity:.3}.trophy-detail{text-align:center;position:sticky;top:20px;align-self:start}.trophy-detail .web-flair{transform:scale(1.6);margin:30px}.trophy-detail p{overflow-wrap:anywhere}.trophy-controls{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.trophy-controls select{max-width:100%}.trophy-slots{display:flex;flex-wrap:wrap;gap:6px}.trophy-slot{width:76px;height:80px;padding:0}.trophy-slot .web-flair{transform:scale(.78);transform-origin:top left}.trophy-slot.active{outline:2px solid #e4c85a}.trophy-detail .button{width:100%;margin:8px 0}.trophy-toggle{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.trophy-toggle input{width:auto}.trophy-toggle .web-flair{transform:scale(.7);margin:-12px}.trophy-title{max-width:min(80vw,680px);display:block;margin:0 auto 22px}@media(max-width:700px){.trophy-layout{grid-template-columns:1fr}.trophy-detail{position:static}.trophy-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr))}.trophy-tile{min-height:80px}.trophy-tile .web-flair{transform:scale(.82);margin:-6px}}
.sprite-0{background-position:0px 0px}
.sprite-1{background-position:-88px 0px}
.sprite-2{background-position:-176px 0px}
.sprite-3{background-position:-264px 0px}
.sprite-4{background-position:-352px 0px}
.sprite-5{background-position:-440px 0px}
.sprite-6{background-position:-528px 0px}
.sprite-7{background-position:-616px 0px}
.sprite-8{background-position:-704px 0px}
.sprite-9{background-position:-792px 0px}
.sprite-10{background-position:-880px 0px}
.sprite-11{background-position:-968px 0px}
.sprite-12{background-position:-1056px 0px}
.sprite-13{background-position:-1144px 0px}
.sprite-14{background-position:-1232px 0px}
.sprite-15{background-position:-1320px 0px}
.sprite-16{background-position:0px -88px}
.sprite-17{background-position:-88px -88px}
.sprite-18{background-position:-176px -88px}
.sprite-19{background-position:-264px -88px}
.sprite-20{background-position:-352px -88px}
.sprite-21{background-position:-440px -88px}
.sprite-22{background-position:-528px -88px}
.sprite-23{background-position:-616px -88px}
.sprite-24{background-position:-704px -88px}
.sprite-25{background-position:-792px -88px}
.sprite-26{background-position:-880px -88px}
.sprite-27{background-position:-968px -88px}
.sprite-28{background-position:-1056px -88px}
.sprite-29{background-position:-1144px -88px}
.sprite-30{background-position:-1232px -88px}
.sprite-31{background-position:-1320px -88px}
.sprite-32{background-position:0px -176px}
.sprite-33{background-position:-88px -176px}
.sprite-34{background-position:-176px -176px}
.sprite-35{background-position:-264px -176px}
.sprite-36{background-position:-352px -176px}
.sprite-37{background-position:-440px -176px}
.sprite-38{background-position:-528px -176px}
.sprite-39{background-position:-616px -176px}
.sprite-40{background-position:-704px -176px}
.sprite-41{background-position:-792px -176px}
.sprite-42{background-position:-880px -176px}
.sprite-43{background-position:-968px -176px}
.sprite-44{background-position:-1056px -176px}
.sprite-45{background-position:-1144px -176px}
.sprite-46{background-position:-1232px -176px}
.sprite-47{background-position:-1320px -176px}
.sprite-48{background-position:0px -264px}
.sprite-49{background-position:-88px -264px}
.sprite-50{background-position:-176px -264px}
.sprite-51{background-position:-264px -264px}
.sprite-52{background-position:-352px -264px}
.sprite-53{background-position:-440px -264px}
.sprite-54{background-position:-528px -264px}
.sprite-55{background-position:-616px -264px}
.sprite-56{background-position:-704px -264px}
.sprite-57{background-position:-792px -264px}
.sprite-58{background-position:-880px -264px}
.sprite-59{background-position:-968px -264px}
.sprite-60{background-position:-1056px -264px}
.sprite-61{background-position:-1144px -264px}
.sprite-62{background-position:-1232px -264px}
.sprite-63{background-position:-1320px -264px}
.sprite-64{background-position:0px -352px}
.sprite-65{background-position:-88px -352px}
.sprite-66{background-position:-176px -352px}
.sprite-67{background-position:-264px -352px}
.sprite-68{background-position:-352px -352px}
.sprite-69{background-position:-440px -352px}
.sprite-70{background-position:-528px -352px}
.sprite-71{background-position:-616px -352px}
.sprite-72{background-position:-704px -352px}
.sprite-73{background-position:-792px -352px}
.sprite-74{background-position:-880px -352px}
.sprite-75{background-position:-968px -352px}
.sprite-76{background-position:-1056px -352px}
.sprite-77{background-position:-1144px -352px}
.sprite-78{background-position:-1232px -352px}
.sprite-79{background-position:-1320px -352px}
.sprite-80{background-position:0px -440px}
.sprite-81{background-position:-88px -440px}
.sprite-82{background-position:-176px -440px}
.sprite-83{background-position:-264px -440px}
.sprite-84{background-position:-352px -440px}
.sprite-85{background-position:-440px -440px}
.sprite-86{background-position:-528px -440px}
.sprite-87{background-position:-616px -440px}
.sprite-88{background-position:-704px -440px}
.sprite-89{background-position:-792px -440px}
.sprite-90{background-position:-880px -440px}
.sprite-91{background-position:-968px -440px}
.sprite-92{background-position:-1056px -440px}
.sprite-93{background-position:-1144px -440px}
.sprite-94{background-position:-1232px -440px}
.sprite-95{background-position:-1320px -440px}
.sprite-96{background-position:0px -528px}
.sprite-97{background-position:-88px -528px}
.sprite-98{background-position:-176px -528px}
.sprite-99{background-position:-264px -528px}
.sprite-100{background-position:-352px -528px}
.sprite-101{background-position:-440px -528px}
.sprite-102{background-position:-528px -528px}
.sprite-103{background-position:-616px -528px}
.sprite-104{background-position:-704px -528px}
.sprite-105{background-position:-792px -528px}
.sprite-106{background-position:-880px -528px}
.sprite-107{background-position:-968px -528px}
.sprite-108{background-position:-1056px -528px}
.sprite-109{background-position:-1144px -528px}
.sprite-110{background-position:-1232px -528px}
.sprite-111{background-position:-1320px -528px}
.sprite-112{background-position:0px -616px}
.sprite-113{background-position:-88px -616px}
.sprite-114{background-position:-176px -616px}
.sprite-115{background-position:-264px -616px}
.sprite-116{background-position:-352px -616px}
.sprite-117{background-position:-440px -616px}
.sprite-118{background-position:-528px -616px}
.sprite-119{background-position:-616px -616px}
.sprite-120{background-position:-704px -616px}
.sprite-121{background-position:-792px -616px}
.sprite-122{background-position:-880px -616px}
.sprite-123{background-position:-968px -616px}
.sprite-124{background-position:-1056px -616px}
.sprite-125{background-position:-1144px -616px}
.sprite-126{background-position:-1232px -616px}
.sprite-127{background-position:-1320px -616px}
.sprite-128{background-position:0px -704px}
.sprite-129{background-position:-88px -704px}
.sprite-130{background-position:-176px -704px}
.sprite-131{background-position:-264px -704px}
.sprite-132{background-position:-352px -704px}
.sprite-133{background-position:-440px -704px}
.sprite-134{background-position:-528px -704px}
.sprite-135{background-position:-616px -704px}
.sprite-136{background-position:-704px -704px}
.sprite-137{background-position:-792px -704px}
.sprite-138{background-position:-880px -704px}
.sprite-139{background-position:-968px -704px}
.sprite-140{background-position:-1056px -704px}
.sprite-141{background-position:-1144px -704px}
.sprite-142{background-position:-1232px -704px}
.sprite-143{background-position:-1320px -704px}
.sprite-144{background-position:0px -792px}
.sprite-145{background-position:-88px -792px}

.web-flair{flex-shrink:0}.trophy-slot{position:relative;overflow:hidden}.trophy-slot .web-flair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.78);transform-origin:center}.trophy-toggle{border:0;padding:0;box-shadow:none}.trophy-controls select{flex:1;min-width:200px}

/* Keep the native checkbox independent of global text-input styles. */
.trophy-toggle{gap:10px;flex-wrap:nowrap;position:relative;max-width:100%}.trophy-toggle label{margin:0;font-size:17px;line-height:1.4;cursor:pointer}.trophy-toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;display:block;flex:0 0 22px;width:22px;height:22px;min-height:0;margin:0;padding:0;border:2px solid #111;background:#b9b9b9;box-shadow:inset 2px 2px #fff,inset -2px -2px #555;cursor:pointer}.trophy-toggle input:checked{background:#589c36;box-shadow:inset 0 0 0 4px #b9b9b9}.trophy-info-wrap{position:relative;display:inline-flex;flex:none}.trophy-info{font:inherit;font-size:20px;line-height:1;min-width:28px;min-height:28px;padding:1px 6px;color:#fff;background:#202a28;border:2px solid #a9b1a9;box-shadow:inset 2px 2px #465048;text-shadow:2px 2px #111}.trophy-info-popup{display:none;position:absolute;z-index:20;top:calc(100% + 10px);right:-45px;width:min(300px,75vw);background:#151c1c;border:2px solid #a9b1a9;padding:12px;box-shadow:4px 4px #000a;font-size:16px;line-height:1.5;text-align:left;white-space:normal}.trophy-info-wrap:hover .trophy-info-popup,.trophy-info:focus-visible+.trophy-info-popup,.trophy-info[aria-expanded=true]+.trophy-info-popup{display:block}.trophy-controls{align-items:center}.account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px}.account-actions>.button{margin:0;min-height:58px;white-space:nowrap;padding:10px 8px;font-size:19px}
.web-flair-cell{display:inline-flex;position:relative;width:60px;height:68px;flex:0 0 60px;align-items:center;justify-content:center;overflow:visible}.web-flair-cell>.web-flair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.82);margin:0;transform-origin:center}.web-equipment{display:flex;align-items:center;justify-content:flex-end;gap:0;min-width:0}.web-player-identity{display:flex;align-items:center;gap:8px;min-width:0}.web-player-identity>.web-equipment{width:240px;flex:0 0 240px}.web-name-group{display:flex;align-items:center;gap:0;min-width:0}.web-name-group .player-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px;min-width:0}.web-player-cell{min-width:480px}.has-web-flairs .web-player-heading{padding-left:268px}.profile-name .web-player-identity{justify-content:center}.profile-name .web-player-identity>.web-equipment{width:auto;flex:0 1 auto}.web-account-identity{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:4px;min-height:90px;margin-bottom:16px}.web-account-identity>.web-equipment{justify-content:flex-start;flex-wrap:nowrap}.web-account-identity h2{text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:24px}.web-account-streak{justify-self:end}.account-card{container-type:inline-size}.web-account-identity .web-flair-cell{width:min(60px,calc(29cqw / var(--equipment-count,4)));flex-basis:min(60px,calc(29cqw / var(--equipment-count,4)));height:70px}.web-account-identity .web-flair-cell>.web-flair{transform:translate(-50%,-50%) scale(.68)}
@media(max-width:700px){.trophy-controls{gap:16px}.trophy-toggle label{font-size:15px}.trophy-toggle .web-flair{transform:scale(.6);margin:-18px}.web-account-identity h2{font-size:19px}.web-account-identity .web-flair-cell>.web-flair{transform:translate(-50%,-50%) scale(.48)}.profile-name .web-player-identity{flex-wrap:wrap}.profile-name .web-player-identity>.web-equipment{justify-content:center}.account-actions>.button{font-size:17px}}

.web-flair{background-size:1600% 1000%}
.sprite-0{background-position:0.0% 0.0%}
.sprite-1{background-position:6.666666666666667% 0.0%}
.sprite-2{background-position:13.333333333333334% 0.0%}
.sprite-3{background-position:20.0% 0.0%}
.sprite-4{background-position:26.666666666666668% 0.0%}
.sprite-5{background-position:33.33333333333333% 0.0%}
.sprite-6{background-position:40.0% 0.0%}
.sprite-7{background-position:46.666666666666664% 0.0%}
.sprite-8{background-position:53.333333333333336% 0.0%}
.sprite-9{background-position:60.0% 0.0%}
.sprite-10{background-position:66.66666666666666% 0.0%}
.sprite-11{background-position:73.33333333333333% 0.0%}
.sprite-12{background-position:80.0% 0.0%}
.sprite-13{background-position:86.66666666666667% 0.0%}
.sprite-14{background-position:93.33333333333333% 0.0%}
.sprite-15{background-position:100.0% 0.0%}
.sprite-16{background-position:0.0% 11.11111111111111%}
.sprite-17{background-position:6.666666666666667% 11.11111111111111%}
.sprite-18{background-position:13.333333333333334% 11.11111111111111%}
.sprite-19{background-position:20.0% 11.11111111111111%}
.sprite-20{background-position:26.666666666666668% 11.11111111111111%}
.sprite-21{background-position:33.33333333333333% 11.11111111111111%}
.sprite-22{background-position:40.0% 11.11111111111111%}
.sprite-23{background-position:46.666666666666664% 11.11111111111111%}
.sprite-24{background-position:53.333333333333336% 11.11111111111111%}
.sprite-25{background-position:60.0% 11.11111111111111%}
.sprite-26{background-position:66.66666666666666% 11.11111111111111%}
.sprite-27{background-position:73.33333333333333% 11.11111111111111%}
.sprite-28{background-position:80.0% 11.11111111111111%}
.sprite-29{background-position:86.66666666666667% 11.11111111111111%}
.sprite-30{background-position:93.33333333333333% 11.11111111111111%}
.sprite-31{background-position:100.0% 11.11111111111111%}
.sprite-32{background-position:0.0% 22.22222222222222%}
.sprite-33{background-position:6.666666666666667% 22.22222222222222%}
.sprite-34{background-position:13.333333333333334% 22.22222222222222%}
.sprite-35{background-position:20.0% 22.22222222222222%}
.sprite-36{background-position:26.666666666666668% 22.22222222222222%}
.sprite-37{background-position:33.33333333333333% 22.22222222222222%}
.sprite-38{background-position:40.0% 22.22222222222222%}
.sprite-39{background-position:46.666666666666664% 22.22222222222222%}
.sprite-40{background-position:53.333333333333336% 22.22222222222222%}
.sprite-41{background-position:60.0% 22.22222222222222%}
.sprite-42{background-position:66.66666666666666% 22.22222222222222%}
.sprite-43{background-position:73.33333333333333% 22.22222222222222%}
.sprite-44{background-position:80.0% 22.22222222222222%}
.sprite-45{background-position:86.66666666666667% 22.22222222222222%}
.sprite-46{background-position:93.33333333333333% 22.22222222222222%}
.sprite-47{background-position:100.0% 22.22222222222222%}
.sprite-48{background-position:0.0% 33.33333333333333%}
.sprite-49{background-position:6.666666666666667% 33.33333333333333%}
.sprite-50{background-position:13.333333333333334% 33.33333333333333%}
.sprite-51{background-position:20.0% 33.33333333333333%}
.sprite-52{background-position:26.666666666666668% 33.33333333333333%}
.sprite-53{background-position:33.33333333333333% 33.33333333333333%}
.sprite-54{background-position:40.0% 33.33333333333333%}
.sprite-55{background-position:46.666666666666664% 33.33333333333333%}
.sprite-56{background-position:53.333333333333336% 33.33333333333333%}
.sprite-57{background-position:60.0% 33.33333333333333%}
.sprite-58{background-position:66.66666666666666% 33.33333333333333%}
.sprite-59{background-position:73.33333333333333% 33.33333333333333%}
.sprite-60{background-position:80.0% 33.33333333333333%}
.sprite-61{background-position:86.66666666666667% 33.33333333333333%}
.sprite-62{background-position:93.33333333333333% 33.33333333333333%}
.sprite-63{background-position:100.0% 33.33333333333333%}
.sprite-64{background-position:0.0% 44.44444444444444%}
.sprite-65{background-position:6.666666666666667% 44.44444444444444%}
.sprite-66{background-position:13.333333333333334% 44.44444444444444%}
.sprite-67{background-position:20.0% 44.44444444444444%}
.sprite-68{background-position:26.666666666666668% 44.44444444444444%}
.sprite-69{background-position:33.33333333333333% 44.44444444444444%}
.sprite-70{background-position:40.0% 44.44444444444444%}
.sprite-71{background-position:46.666666666666664% 44.44444444444444%}
.sprite-72{background-position:53.333333333333336% 44.44444444444444%}
.sprite-73{background-position:60.0% 44.44444444444444%}
.sprite-74{background-position:66.66666666666666% 44.44444444444444%}
.sprite-75{background-position:73.33333333333333% 44.44444444444444%}
.sprite-76{background-position:80.0% 44.44444444444444%}
.sprite-77{background-position:86.66666666666667% 44.44444444444444%}
.sprite-78{background-position:93.33333333333333% 44.44444444444444%}
.sprite-79{background-position:100.0% 44.44444444444444%}
.sprite-80{background-position:0.0% 55.55555555555556%}
.sprite-81{background-position:6.666666666666667% 55.55555555555556%}
.sprite-82{background-position:13.333333333333334% 55.55555555555556%}
.sprite-83{background-position:20.0% 55.55555555555556%}
.sprite-84{background-position:26.666666666666668% 55.55555555555556%}
.sprite-85{background-position:33.33333333333333% 55.55555555555556%}
.sprite-86{background-position:40.0% 55.55555555555556%}
.sprite-87{background-position:46.666666666666664% 55.55555555555556%}
.sprite-88{background-position:53.333333333333336% 55.55555555555556%}
.sprite-89{background-position:60.0% 55.55555555555556%}
.sprite-90{background-position:66.66666666666666% 55.55555555555556%}
.sprite-91{background-position:73.33333333333333% 55.55555555555556%}
.sprite-92{background-position:80.0% 55.55555555555556%}
.sprite-93{background-position:86.66666666666667% 55.55555555555556%}
.sprite-94{background-position:93.33333333333333% 55.55555555555556%}
.sprite-95{background-position:100.0% 55.55555555555556%}
.sprite-96{background-position:0.0% 66.66666666666666%}
.sprite-97{background-position:6.666666666666667% 66.66666666666666%}
.sprite-98{background-position:13.333333333333334% 66.66666666666666%}
.sprite-99{background-position:20.0% 66.66666666666666%}
.sprite-100{background-position:26.666666666666668% 66.66666666666666%}
.sprite-101{background-position:33.33333333333333% 66.66666666666666%}
.sprite-102{background-position:40.0% 66.66666666666666%}
.sprite-103{background-position:46.666666666666664% 66.66666666666666%}
.sprite-104{background-position:53.333333333333336% 66.66666666666666%}
.sprite-105{background-position:60.0% 66.66666666666666%}
.sprite-106{background-position:66.66666666666666% 66.66666666666666%}
.sprite-107{background-position:73.33333333333333% 66.66666666666666%}
.sprite-108{background-position:80.0% 66.66666666666666%}
.sprite-109{background-position:86.66666666666667% 66.66666666666666%}
.sprite-110{background-position:93.33333333333333% 66.66666666666666%}
.sprite-111{background-position:100.0% 66.66666666666666%}
.sprite-112{background-position:0.0% 77.77777777777779%}
.sprite-113{background-position:6.666666666666667% 77.77777777777779%}
.sprite-114{background-position:13.333333333333334% 77.77777777777779%}
.sprite-115{background-position:20.0% 77.77777777777779%}
.sprite-116{background-position:26.666666666666668% 77.77777777777779%}
.sprite-117{background-position:33.33333333333333% 77.77777777777779%}
.sprite-118{background-position:40.0% 77.77777777777779%}
.sprite-119{background-position:46.666666666666664% 77.77777777777779%}
.sprite-120{background-position:53.333333333333336% 77.77777777777779%}
.sprite-121{background-position:60.0% 77.77777777777779%}
.sprite-122{background-position:66.66666666666666% 77.77777777777779%}
.sprite-123{background-position:73.33333333333333% 77.77777777777779%}
.sprite-124{background-position:80.0% 77.77777777777779%}
.sprite-125{background-position:86.66666666666667% 77.77777777777779%}
.sprite-126{background-position:93.33333333333333% 77.77777777777779%}
.sprite-127{background-position:100.0% 77.77777777777779%}
.sprite-128{background-position:0.0% 88.88888888888889%}
.sprite-129{background-position:6.666666666666667% 88.88888888888889%}
.sprite-130{background-position:13.333333333333334% 88.88888888888889%}
.sprite-131{background-position:20.0% 88.88888888888889%}
.sprite-132{background-position:26.666666666666668% 88.88888888888889%}
.sprite-133{background-position:33.33333333333333% 88.88888888888889%}
.sprite-134{background-position:40.0% 88.88888888888889%}
.sprite-135{background-position:46.666666666666664% 88.88888888888889%}
.sprite-136{background-position:53.333333333333336% 88.88888888888889%}
.sprite-137{background-position:60.0% 88.88888888888889%}
.sprite-138{background-position:66.66666666666666% 88.88888888888889%}
.sprite-139{background-position:73.33333333333333% 88.88888888888889%}
.sprite-140{background-position:80.0% 88.88888888888889%}
.sprite-141{background-position:86.66666666666667% 88.88888888888889%}
.sprite-142{background-position:93.33333333333333% 88.88888888888889%}
.sprite-143{background-position:100.0% 88.88888888888889%}
.sprite-144{background-position:0.0% 100.0%}
.sprite-145{background-position:6.666666666666667% 100.0%}
.sprite-146{background-position:13.333333333333334% 100.0%}
.sprite-147{background-position:20.0% 100.0%}
.sprite-148{background-position:26.666666666666668% 100.0%}
.sprite-149{background-position:33.33333333333333% 100.0%}
.sprite-150{background-position:40.0% 100.0%}
.sprite-151{background-position:46.666666666666664% 100.0%}
.sprite-152{background-position:53.333333333333336% 100.0%}
.sprite-153{background-position:60.0% 100.0%}
.sprite-154{background-position:66.66666666666666% 100.0%}
.sprite-155{background-position:73.33333333333333% 100.0%}
.sprite-156{background-position:80.0% 100.0%}
.sprite-157{background-position:86.66666666666667% 100.0%}
.sprite-158{background-position:93.33333333333333% 100.0%}
.sprite-159{background-position:100.0% 100.0%}
.web-account-identity .web-flair-cell>.web-flair{width:100%;height:auto;aspect-ratio:1;transform:translate(-50%,-50%)}

.web-profile-flairs{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:0;min-height:68px}.web-profile-flairs:empty{min-height:0}

.has-web-flairs .web-player-identity{min-height:68px}

/* Smaller leaderboard badges; account identity remains independently sized. */
.has-web-flairs .web-player-identity{min-height:40px;gap:6px}.has-web-flairs .web-flair-cell{width:36px;height:40px;flex-basis:36px}.has-web-flairs .web-flair-cell>.web-flair{transform:translate(-50%,-50%) scale(.48)}.has-web-flairs .web-player-identity>.web-equipment{width:144px;flex-basis:144px}.has-web-flairs .web-player-heading{padding-left:170px}.has-web-flairs .web-player-cell{min-width:380px}
.account-card{padding-top:12px}.web-account-identity{grid-template-columns:35% 30% 35%;min-height:62px;margin-bottom:12px;gap:0}.web-account-identity h2{font-size:32px}.web-account-identity .web-flair-cell{width:min(64px,calc(35cqw / var(--equipment-count,4)));flex-basis:min(64px,calc(35cqw / var(--equipment-count,4)));height:62px}.web-account-streak .web-flair-cell{width:64px}.profile-elo-stat .web-profile-flairs{min-height:0;margin:-8px -12px 8px;flex-wrap:nowrap}.profile-elo-stat .web-flair-cell{width:48px;height:52px;flex:0 1 48px}.profile-elo-stat .web-flair-cell>.web-flair{transform:translate(-50%,-50%) scale(.63)}
@media(max-width:700px){.web-account-identity h2{font-size:26px}.account-card{padding-top:8px}.web-account-identity{min-height:58px;margin-bottom:8px}.profile-elo-stat .web-profile-flairs{flex-wrap:wrap;margin:-4px -4px 8px}.profile-elo-stat .web-flair-cell{width:30px;height:32px;flex-basis:30px}.profile-elo-stat .web-flair-cell>.web-flair{transform:translate(-50%,-50%) scale(.38)}}

@media(max-width:700px){.web-account-identity{grid-template-columns:30% 40% 30%}.web-account-identity .web-equipment .web-flair-cell{width:min(64px,calc(30cqw / var(--equipment-count,4)));flex-basis:min(64px,calc(30cqw / var(--equipment-count,4)))}}

.web-equipment{gap:6px}.web-profile-flairs{gap:6px}.has-web-flairs .web-player-identity>.web-equipment{width:162px;flex-basis:162px}.has-web-flairs .web-player-heading{padding-left:188px}.has-web-flairs .web-player-cell{min-width:398px}.web-account-identity .web-equipment .web-flair-cell{width:min(64px,calc((35cqw - 6px * (var(--equipment-count,4) - 1)) / var(--equipment-count,4)));flex-basis:min(64px,calc((35cqw - 6px * (var(--equipment-count,4) - 1)) / var(--equipment-count,4)))}
.stats-profile-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px;margin-bottom:18px;min-height:58px}.stats-profile-header .profile-name{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stats-profile-header .web-profile-flairs{justify-content:flex-start;flex-wrap:nowrap;min-height:0}.stats-profile-header .web-flair-cell{width:44px;height:52px;flex:0 1 44px}.stats-profile-header .web-flair-cell>.web-flair{width:100%;height:auto;aspect-ratio:1;transform:translate(-50%,-50%)}
@media(max-width:700px){.web-account-identity .web-equipment{gap:5px}.web-account-identity .web-equipment .web-flair-cell{width:min(64px,calc((30cqw - 5px * (var(--equipment-count,4) - 1)) / var(--equipment-count,4)));flex-basis:min(64px,calc((30cqw - 5px * (var(--equipment-count,4) - 1)) / var(--equipment-count,4)))}.stats-profile-header{gap:8px;margin-bottom:14px}.stats-profile-header .profile-name{font-size:23px}.stats-profile-header .web-profile-flairs{gap:4px}.stats-profile-header .web-flair-cell{width:25px;height:34px;flex-basis:25px}}

/* Owner identity preview follows the compact mobile client proportions. */
.profile-charts:has(.profile-detail-header){align-items:start}
.profile-charts .profile-detail-header{min-height:28px;align-items:center;gap:10px;margin:0 0 14px}
.profile-charts .profile-detail-header>.identity-pronouns{font-size:15px;transform:none}
.profile-charts .profile-detail-header>.identity-stats-name{font-size:22px}
.profile-charts .profile-flag{width:33px;height:22px}
.profile-actions>.button{display:flex;align-items:center;justify-content:center;line-height:1.1;text-align:center}
@media(max-width:720px){
 .web-account-identity.identity-preview-account .identity-account-flairs .web-flair-cell{flex-basis:32px;width:32px;height:36px}
 .web-account-identity.identity-preview-account .profile-flag{width:27px;height:18px}
 .web-account-identity.identity-preview-account .profile-flag-empty{width:25px;height:17px}
 .web-account-identity.identity-preview-account .profile-flags{gap:4px}
 .web-account-identity.identity-preview-account .identity-name-stack h2{font-size:22px}
 .profile-charts .profile-detail-header{min-height:24px;gap:6px;margin-bottom:8px}
 .profile-charts .profile-detail-header>.identity-pronouns{font-size:12px}
 .profile-charts .profile-detail-header>.identity-stats-name{font-size:17px}
 .profile-charts .profile-flag{width:27px;height:18px}
}
.web-match-identity{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}
.web-match-intro{position:fixed;top:6vh;left:50%;transform:translateX(-50%);width:min(1100px,94vw);display:grid;grid-template-columns:minmax(0,1fr) 50px minmax(0,1fr);align-items:center;gap:10px;z-index:100;pointer-events:none;animation:identity-intro-fade 4.3s both}
.web-match-intro article{background:#10191af5;border:2px solid #849f9e;padding:14px;min-width:0;animation:identity-intro-left .7s both}
.web-match-intro article:last-child{animation-name:identity-intro-right}
.web-match-intro .intro-heading{display:flex;gap:8px;align-items:center;min-width:0}.web-match-intro .intro-name{font-size:24px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-match-intro .intro-flairs{display:flex;gap:4px}.web-match-intro .web-flair-cell{width:32px;height:36px;flex:0 0 32px}.web-match-intro .web-flair-cell>.web-flair{width:32px;height:32px;transform:translate(-50%,-50%)}
.web-match-intro .identity-pronouns{font-size:15px}.web-match-intro .intro-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px}.intro-rating{color:#ebd273}.web-match-intro .profile-flag{width:30px;height:20px}.intro-vs{text-align:center;font-size:24px}
@keyframes identity-intro-left{from{transform:translateX(-70vw)}to{transform:translateX(0)}}@keyframes identity-intro-right{from{transform:translateX(70vw)}to{transform:translateX(0)}}@keyframes identity-intro-fade{0%{opacity:0}16%,86%{opacity:1}100%{opacity:0}}
@media(max-width:720px){.web-match-intro{top:12px;grid-template-columns:minmax(0,1fr);gap:5px}.web-match-intro article{padding:10px}.intro-vs{font-size:16px}.web-match-intro .intro-name{font-size:20px}.web-match-intro .intro-bottom{margin-top:6px}.web-match-intro .identity-pronouns{font-size:13px}}
@media(prefers-reduced-motion:reduce){.web-match-intro article{animation:none}.web-match-intro{animation:identity-intro-fade 4.3s both}}

.web-account-identity.identity-preview-account .identity-account-flairs .web-flair-cell>.web-flair{width:88px;height:88px;aspect-ratio:auto;transform:translate(-50%,-50%) scale(.55)}
.stats-profile-header .web-flair-cell>.web-flair{width:88px;height:88px;aspect-ratio:auto;transform:translate(-50%,-50%) scale(.48)}
.web-match-intro .web-flair-cell>.web-flair{width:88px;height:88px;transform:translate(-50%,-50%) scale(.36)}
@media(max-width:720px){.web-account-identity.identity-preview-account .identity-account-flairs .web-flair-cell>.web-flair{transform:translate(-50%,-50%) scale(.34)}.stats-profile-header .web-flair-cell>.web-flair{transform:translate(-50%,-50%) scale(.28)}}

@media(max-width:720px){.stats-profile-header{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr)}}

/* Website profile identity belongs to the summary above the history graph. */
.stats-profile-header>.profile-name-stack{min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.stats-profile-header .profile-name-stack>.profile-name{width:100%;font-size:26px}
.stats-profile-header .profile-name-stack>.identity-pronouns{font-size:15px;line-height:1.2}
.stats-profile-header>.profile-flags{justify-self:end;gap:6px}
.stats-profile-header>.profile-flags>.profile-flag{width:33px;height:22px}
@media(max-width:720px){.stats-profile-header .profile-name-stack>.profile-name{font-size:22px}.stats-profile-header .profile-name-stack>.identity-pronouns{font-size:12px}.stats-profile-header>.profile-flags{gap:4px}.stats-profile-header>.profile-flags>.profile-flag{width:27px;height:18px}}
@media(max-width:700px){.has-web-flairs .web-player-identity>.web-equipment:empty{display:none}.has-web-flairs .web-player-heading{padding-left:12px}.has-web-flairs .web-player-cell{min-width:0}}
/* The site's security policy blocks style="" attributes: the equipment count (at most 4 shown) comes from a class. */
.web-equipment.eq-1{--equipment-count:1}.web-equipment.eq-2{--equipment-count:2}.web-equipment.eq-3{--equipment-count:3}.web-equipment.eq-4{--equipment-count:4}

.identity-tap{font:inherit;color:inherit;background:transparent;border:0;box-shadow:none;padding:2px 4px;cursor:pointer;min-height:0;width:auto;text-shadow:inherit}.identity-tap:hover,.identity-tap:focus-visible{outline:2px solid #c8d59d;background:#ffffff12}.identity-pronouns{font-size:18px;color:#c9d2d0}.profile-flags{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0}.profile-flag{display:inline-block;width:48px;height:32px;background-image:url(profile-flags.png);background-size:1600% 2000%;background-repeat:no-repeat;vertical-align:middle;flex-shrink:0}.profile-flag-empty{display:inline-flex;align-items:center;justify-content:center;width:44px;height:28px;border:1px dashed #a4adac;color:#c1c9c6}.flag-edit{padding:0}.profile-detail-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin-bottom:12px}.identity-name-stack{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.identity-name-stack h2{margin:0}.identity-name-stack .identity-tap{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity-modal{position:fixed;inset:0;background:#000b;z-index:10000;display:flex;align-items:center;justify-content:center;padding:18px}.identity-editor-card{width:min(620px,94vw);max-height:90dvh;display:flex;flex-direction:column;margin:0;box-sizing:border-box;overflow:hidden;background:#152020;border:3px solid #a6b4b1;padding:22px;color:#fff}.identity-editor-card h2{margin:0 0 16px}.identity-editor-card input{width:100%;box-sizing:border-box;min-width:0;font:inherit;background:#11191a;color:white;border:2px solid #9aaba8;padding:10px}.identity-editor-card label{display:flex;flex-direction:column;gap:6px}.pronoun-pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:12px}.pronoun-pair>span{padding-bottom:10px}.identity-editor-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:12px;flex-shrink:0}.identity-editor-actions>button{flex:1;width:auto}.identity-flag-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:auto;max-height:48dvh;margin-top:12px;padding:3px}.identity-flag-choice{font:inherit;font-size:14px;color:white;background:#202d2c;border:2px solid #61736c;min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px;cursor:pointer;overflow-wrap:anywhere;min-width:0}.identity-flag-choice.chosen{border-color:#f4dd8e;background:#354033}.identity-flag-choice:hover{background:#344642}#identity-error{color:#ffacac;min-height:1em;margin:6px 0}.identity-preview-account{grid-template-columns:.8fr minmax(0,2.4fr) .8fr!important;align-items:start!important}.identity-preview-account .profile-flags{justify-self:end;margin-top:6px}.identity-preview-account .account-equipment,.identity-preview-account .web-equipment{justify-self:start}.identity-preview-account .account-name,.identity-preview-account h2{font-size:30px}.identity-preview-account .identity-pronouns{font-size:18px}@media(max-width:700px){.profile-flag{width:36px;height:24px}.profile-flags{gap:4px}.identity-preview-account .account-name,.identity-preview-account h2{font-size:24px}.identity-pronouns,.identity-preview-account .identity-pronouns{font-size:15px}.identity-editor-card{padding:14px}.identity-flag-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.profile-flag-0{background-position:0.0% 0.0%}
.profile-flag-1{background-position:6.666666666666667% 0.0%}
.profile-flag-2{background-position:13.333333333333334% 0.0%}
.profile-flag-3{background-position:20.0% 0.0%}
.profile-flag-4{background-position:26.666666666666668% 0.0%}
.profile-flag-5{background-position:33.33333333333333% 0.0%}
.profile-flag-6{background-position:40.0% 0.0%}
.profile-flag-7{background-position:46.666666666666664% 0.0%}
.profile-flag-8{background-position:53.333333333333336% 0.0%}
.profile-flag-9{background-position:60.0% 0.0%}
.profile-flag-10{background-position:66.66666666666666% 0.0%}
.profile-flag-11{background-position:73.33333333333333% 0.0%}
.profile-flag-12{background-position:80.0% 0.0%}
.profile-flag-13{background-position:86.66666666666667% 0.0%}
.profile-flag-14{background-position:93.33333333333333% 0.0%}
.profile-flag-15{background-position:100.0% 0.0%}
.profile-flag-16{background-position:0.0% 5.263157894736842%}
.profile-flag-17{background-position:6.666666666666667% 5.263157894736842%}
.profile-flag-18{background-position:13.333333333333334% 5.263157894736842%}
.profile-flag-19{background-position:20.0% 5.263157894736842%}
.profile-flag-20{background-position:26.666666666666668% 5.263157894736842%}
.profile-flag-21{background-position:33.33333333333333% 5.263157894736842%}
.profile-flag-22{background-position:40.0% 5.263157894736842%}
.profile-flag-23{background-position:46.666666666666664% 5.263157894736842%}
.profile-flag-24{background-position:53.333333333333336% 5.263157894736842%}
.profile-flag-25{background-position:60.0% 5.263157894736842%}
.profile-flag-26{background-position:66.66666666666666% 5.263157894736842%}
.profile-flag-27{background-position:73.33333333333333% 5.263157894736842%}
.profile-flag-28{background-position:80.0% 5.263157894736842%}
.profile-flag-29{background-position:86.66666666666667% 5.263157894736842%}
.profile-flag-30{background-position:93.33333333333333% 5.263157894736842%}
.profile-flag-31{background-position:100.0% 5.263157894736842%}
.profile-flag-32{background-position:0.0% 10.526315789473683%}
.profile-flag-33{background-position:6.666666666666667% 10.526315789473683%}
.profile-flag-34{background-position:13.333333333333334% 10.526315789473683%}
.profile-flag-35{background-position:20.0% 10.526315789473683%}
.profile-flag-36{background-position:26.666666666666668% 10.526315789473683%}
.profile-flag-37{background-position:33.33333333333333% 10.526315789473683%}
.profile-flag-38{background-position:40.0% 10.526315789473683%}
.profile-flag-39{background-position:46.666666666666664% 10.526315789473683%}
.profile-flag-40{background-position:53.333333333333336% 10.526315789473683%}
.profile-flag-41{background-position:60.0% 10.526315789473683%}
.profile-flag-42{background-position:66.66666666666666% 10.526315789473683%}
.profile-flag-43{background-position:73.33333333333333% 10.526315789473683%}
.profile-flag-44{background-position:80.0% 10.526315789473683%}
.profile-flag-45{background-position:86.66666666666667% 10.526315789473683%}
.profile-flag-46{background-position:93.33333333333333% 10.526315789473683%}
.profile-flag-47{background-position:100.0% 10.526315789473683%}
.profile-flag-48{background-position:0.0% 15.789473684210526%}
.profile-flag-49{background-position:6.666666666666667% 15.789473684210526%}
.profile-flag-50{background-position:13.333333333333334% 15.789473684210526%}
.profile-flag-51{background-position:20.0% 15.789473684210526%}
.profile-flag-52{background-position:26.666666666666668% 15.789473684210526%}
.profile-flag-53{background-position:33.33333333333333% 15.789473684210526%}
.profile-flag-54{background-position:40.0% 15.789473684210526%}
.profile-flag-55{background-position:46.666666666666664% 15.789473684210526%}
.profile-flag-56{background-position:53.333333333333336% 15.789473684210526%}
.profile-flag-57{background-position:60.0% 15.789473684210526%}
.profile-flag-58{background-position:66.66666666666666% 15.789473684210526%}
.profile-flag-59{background-position:73.33333333333333% 15.789473684210526%}
.profile-flag-60{background-position:80.0% 15.789473684210526%}
.profile-flag-61{background-position:86.66666666666667% 15.789473684210526%}
.profile-flag-62{background-position:93.33333333333333% 15.789473684210526%}
.profile-flag-63{background-position:100.0% 15.789473684210526%}
.profile-flag-64{background-position:0.0% 21.052631578947366%}
.profile-flag-65{background-position:6.666666666666667% 21.052631578947366%}
.profile-flag-66{background-position:13.333333333333334% 21.052631578947366%}
.profile-flag-67{background-position:20.0% 21.052631578947366%}
.profile-flag-68{background-position:26.666666666666668% 21.052631578947366%}
.profile-flag-69{background-position:33.33333333333333% 21.052631578947366%}
.profile-flag-70{background-position:40.0% 21.052631578947366%}
.profile-flag-71{background-position:46.666666666666664% 21.052631578947366%}
.profile-flag-72{background-position:53.333333333333336% 21.052631578947366%}
.profile-flag-73{background-position:60.0% 21.052631578947366%}
.profile-flag-74{background-position:66.66666666666666% 21.052631578947366%}
.profile-flag-75{background-position:73.33333333333333% 21.052631578947366%}
.profile-flag-76{background-position:80.0% 21.052631578947366%}
.profile-flag-77{background-position:86.66666666666667% 21.052631578947366%}
.profile-flag-78{background-position:93.33333333333333% 21.052631578947366%}
.profile-flag-79{background-position:100.0% 21.052631578947366%}
.profile-flag-80{background-position:0.0% 26.31578947368421%}
.profile-flag-81{background-position:6.666666666666667% 26.31578947368421%}
.profile-flag-82{background-position:13.333333333333334% 26.31578947368421%}
.profile-flag-83{background-position:20.0% 26.31578947368421%}
.profile-flag-84{background-position:26.666666666666668% 26.31578947368421%}
.profile-flag-85{background-position:33.33333333333333% 26.31578947368421%}
.profile-flag-86{background-position:40.0% 26.31578947368421%}
.profile-flag-87{background-position:46.666666666666664% 26.31578947368421%}
.profile-flag-88{background-position:53.333333333333336% 26.31578947368421%}
.profile-flag-89{background-position:60.0% 26.31578947368421%}
.profile-flag-90{background-position:66.66666666666666% 26.31578947368421%}
.profile-flag-91{background-position:73.33333333333333% 26.31578947368421%}
.profile-flag-92{background-position:80.0% 26.31578947368421%}
.profile-flag-93{background-position:86.66666666666667% 26.31578947368421%}
.profile-flag-94{background-position:93.33333333333333% 26.31578947368421%}
.profile-flag-95{background-position:100.0% 26.31578947368421%}
.profile-flag-96{background-position:0.0% 31.57894736842105%}
.profile-flag-97{background-position:6.666666666666667% 31.57894736842105%}
.profile-flag-98{background-position:13.333333333333334% 31.57894736842105%}
.profile-flag-99{background-position:20.0% 31.57894736842105%}
.profile-flag-100{background-position:26.666666666666668% 31.57894736842105%}
.profile-flag-101{background-position:33.33333333333333% 31.57894736842105%}
.profile-flag-102{background-position:40.0% 31.57894736842105%}
.profile-flag-103{background-position:46.666666666666664% 31.57894736842105%}
.profile-flag-104{background-position:53.333333333333336% 31.57894736842105%}
.profile-flag-105{background-position:60.0% 31.57894736842105%}
.profile-flag-106{background-position:66.66666666666666% 31.57894736842105%}
.profile-flag-107{background-position:73.33333333333333% 31.57894736842105%}
.profile-flag-108{background-position:80.0% 31.57894736842105%}
.profile-flag-109{background-position:86.66666666666667% 31.57894736842105%}
.profile-flag-110{background-position:93.33333333333333% 31.57894736842105%}
.profile-flag-111{background-position:100.0% 31.57894736842105%}
.profile-flag-112{background-position:0.0% 36.84210526315789%}
.profile-flag-113{background-position:6.666666666666667% 36.84210526315789%}
.profile-flag-114{background-position:13.333333333333334% 36.84210526315789%}
.profile-flag-115{background-position:20.0% 36.84210526315789%}
.profile-flag-116{background-position:26.666666666666668% 36.84210526315789%}
.profile-flag-117{background-position:33.33333333333333% 36.84210526315789%}
.profile-flag-118{background-position:40.0% 36.84210526315789%}
.profile-flag-119{background-position:46.666666666666664% 36.84210526315789%}
.profile-flag-120{background-position:53.333333333333336% 36.84210526315789%}
.profile-flag-121{background-position:60.0% 36.84210526315789%}
.profile-flag-122{background-position:66.66666666666666% 36.84210526315789%}
.profile-flag-123{background-position:73.33333333333333% 36.84210526315789%}
.profile-flag-124{background-position:80.0% 36.84210526315789%}
.profile-flag-125{background-position:86.66666666666667% 36.84210526315789%}
.profile-flag-126{background-position:93.33333333333333% 36.84210526315789%}
.profile-flag-127{background-position:100.0% 36.84210526315789%}
.profile-flag-128{background-position:0.0% 42.10526315789473%}
.profile-flag-129{background-position:6.666666666666667% 42.10526315789473%}
.profile-flag-130{background-position:13.333333333333334% 42.10526315789473%}
.profile-flag-131{background-position:20.0% 42.10526315789473%}
.profile-flag-132{background-position:26.666666666666668% 42.10526315789473%}
.profile-flag-133{background-position:33.33333333333333% 42.10526315789473%}
.profile-flag-134{background-position:40.0% 42.10526315789473%}
.profile-flag-135{background-position:46.666666666666664% 42.10526315789473%}
.profile-flag-136{background-position:53.333333333333336% 42.10526315789473%}
.profile-flag-137{background-position:60.0% 42.10526315789473%}
.profile-flag-138{background-position:66.66666666666666% 42.10526315789473%}
.profile-flag-139{background-position:73.33333333333333% 42.10526315789473%}
.profile-flag-140{background-position:80.0% 42.10526315789473%}
.profile-flag-141{background-position:86.66666666666667% 42.10526315789473%}
.profile-flag-142{background-position:93.33333333333333% 42.10526315789473%}
.profile-flag-143{background-position:100.0% 42.10526315789473%}
.profile-flag-144{background-position:0.0% 47.368421052631575%}
.profile-flag-145{background-position:6.666666666666667% 47.368421052631575%}
.profile-flag-146{background-position:13.333333333333334% 47.368421052631575%}
.profile-flag-147{background-position:20.0% 47.368421052631575%}
.profile-flag-148{background-position:26.666666666666668% 47.368421052631575%}
.profile-flag-149{background-position:33.33333333333333% 47.368421052631575%}
.profile-flag-150{background-position:40.0% 47.368421052631575%}
.profile-flag-151{background-position:46.666666666666664% 47.368421052631575%}
.profile-flag-152{background-position:53.333333333333336% 47.368421052631575%}
.profile-flag-153{background-position:60.0% 47.368421052631575%}
.profile-flag-154{background-position:66.66666666666666% 47.368421052631575%}
.profile-flag-155{background-position:73.33333333333333% 47.368421052631575%}
.profile-flag-156{background-position:80.0% 47.368421052631575%}
.profile-flag-157{background-position:86.66666666666667% 47.368421052631575%}
.profile-flag-158{background-position:93.33333333333333% 47.368421052631575%}
.profile-flag-159{background-position:100.0% 47.368421052631575%}
.profile-flag-160{background-position:0.0% 52.63157894736842%}
.profile-flag-161{background-position:6.666666666666667% 52.63157894736842%}
.profile-flag-162{background-position:13.333333333333334% 52.63157894736842%}
.profile-flag-163{background-position:20.0% 52.63157894736842%}
.profile-flag-164{background-position:26.666666666666668% 52.63157894736842%}
.profile-flag-165{background-position:33.33333333333333% 52.63157894736842%}
.profile-flag-166{background-position:40.0% 52.63157894736842%}
.profile-flag-167{background-position:46.666666666666664% 52.63157894736842%}
.profile-flag-168{background-position:53.333333333333336% 52.63157894736842%}
.profile-flag-169{background-position:60.0% 52.63157894736842%}
.profile-flag-170{background-position:66.66666666666666% 52.63157894736842%}
.profile-flag-171{background-position:73.33333333333333% 52.63157894736842%}
.profile-flag-172{background-position:80.0% 52.63157894736842%}
.profile-flag-173{background-position:86.66666666666667% 52.63157894736842%}
.profile-flag-174{background-position:93.33333333333333% 52.63157894736842%}
.profile-flag-175{background-position:100.0% 52.63157894736842%}
.profile-flag-176{background-position:0.0% 57.89473684210527%}
.profile-flag-177{background-position:6.666666666666667% 57.89473684210527%}
.profile-flag-178{background-position:13.333333333333334% 57.89473684210527%}
.profile-flag-179{background-position:20.0% 57.89473684210527%}
.profile-flag-180{background-position:26.666666666666668% 57.89473684210527%}
.profile-flag-181{background-position:33.33333333333333% 57.89473684210527%}
.profile-flag-182{background-position:40.0% 57.89473684210527%}
.profile-flag-183{background-position:46.666666666666664% 57.89473684210527%}
.profile-flag-184{background-position:53.333333333333336% 57.89473684210527%}
.profile-flag-185{background-position:60.0% 57.89473684210527%}
.profile-flag-186{background-position:66.66666666666666% 57.89473684210527%}
.profile-flag-187{background-position:73.33333333333333% 57.89473684210527%}
.profile-flag-188{background-position:80.0% 57.89473684210527%}
.profile-flag-189{background-position:86.66666666666667% 57.89473684210527%}
.profile-flag-190{background-position:93.33333333333333% 57.89473684210527%}
.profile-flag-191{background-position:100.0% 57.89473684210527%}
.profile-flag-192{background-position:0.0% 63.1578947368421%}
.profile-flag-193{background-position:6.666666666666667% 63.1578947368421%}
.profile-flag-194{background-position:13.333333333333334% 63.1578947368421%}
.profile-flag-195{background-position:20.0% 63.1578947368421%}
.profile-flag-196{background-position:26.666666666666668% 63.1578947368421%}
.profile-flag-197{background-position:33.33333333333333% 63.1578947368421%}
.profile-flag-198{background-position:40.0% 63.1578947368421%}
.profile-flag-199{background-position:46.666666666666664% 63.1578947368421%}
.profile-flag-200{background-position:53.333333333333336% 63.1578947368421%}
.profile-flag-201{background-position:60.0% 63.1578947368421%}
.profile-flag-202{background-position:66.66666666666666% 63.1578947368421%}
.profile-flag-203{background-position:73.33333333333333% 63.1578947368421%}
.profile-flag-204{background-position:80.0% 63.1578947368421%}
.profile-flag-205{background-position:86.66666666666667% 63.1578947368421%}
.profile-flag-206{background-position:93.33333333333333% 63.1578947368421%}
.profile-flag-207{background-position:100.0% 63.1578947368421%}
.profile-flag-208{background-position:0.0% 68.42105263157895%}
.profile-flag-209{background-position:6.666666666666667% 68.42105263157895%}
.profile-flag-210{background-position:13.333333333333334% 68.42105263157895%}
.profile-flag-211{background-position:20.0% 68.42105263157895%}
.profile-flag-212{background-position:26.666666666666668% 68.42105263157895%}
.profile-flag-213{background-position:33.33333333333333% 68.42105263157895%}
.profile-flag-214{background-position:40.0% 68.42105263157895%}
.profile-flag-215{background-position:46.666666666666664% 68.42105263157895%}
.profile-flag-216{background-position:53.333333333333336% 68.42105263157895%}
.profile-flag-217{background-position:60.0% 68.42105263157895%}
.profile-flag-218{background-position:66.66666666666666% 68.42105263157895%}
.profile-flag-219{background-position:73.33333333333333% 68.42105263157895%}
.profile-flag-220{background-position:80.0% 68.42105263157895%}
.profile-flag-221{background-position:86.66666666666667% 68.42105263157895%}
.profile-flag-222{background-position:93.33333333333333% 68.42105263157895%}
.profile-flag-223{background-position:100.0% 68.42105263157895%}
.profile-flag-224{background-position:0.0% 73.68421052631578%}
.profile-flag-225{background-position:6.666666666666667% 73.68421052631578%}
.profile-flag-226{background-position:13.333333333333334% 73.68421052631578%}
.profile-flag-227{background-position:20.0% 73.68421052631578%}
.profile-flag-228{background-position:26.666666666666668% 73.68421052631578%}
.profile-flag-229{background-position:33.33333333333333% 73.68421052631578%}
.profile-flag-230{background-position:40.0% 73.68421052631578%}
.profile-flag-231{background-position:46.666666666666664% 73.68421052631578%}
.profile-flag-232{background-position:53.333333333333336% 73.68421052631578%}
.profile-flag-233{background-position:60.0% 73.68421052631578%}
.profile-flag-234{background-position:66.66666666666666% 73.68421052631578%}
.profile-flag-235{background-position:73.33333333333333% 73.68421052631578%}
.profile-flag-236{background-position:80.0% 73.68421052631578%}
.profile-flag-237{background-position:86.66666666666667% 73.68421052631578%}
.profile-flag-238{background-position:93.33333333333333% 73.68421052631578%}
.profile-flag-239{background-position:100.0% 73.68421052631578%}
.profile-flag-240{background-position:0.0% 78.94736842105263%}
.profile-flag-241{background-position:6.666666666666667% 78.94736842105263%}
.profile-flag-242{background-position:13.333333333333334% 78.94736842105263%}
.profile-flag-243{background-position:20.0% 78.94736842105263%}
.profile-flag-244{background-position:26.666666666666668% 78.94736842105263%}
.profile-flag-245{background-position:33.33333333333333% 78.94736842105263%}
.profile-flag-246{background-position:40.0% 78.94736842105263%}
.profile-flag-247{background-position:46.666666666666664% 78.94736842105263%}
.profile-flag-248{background-position:53.333333333333336% 78.94736842105263%}
.profile-flag-249{background-position:60.0% 78.94736842105263%}
.profile-flag-250{background-position:66.66666666666666% 78.94736842105263%}
.profile-flag-251{background-position:73.33333333333333% 78.94736842105263%}
.profile-flag-252{background-position:80.0% 78.94736842105263%}
.profile-flag-253{background-position:86.66666666666667% 78.94736842105263%}
.profile-flag-254{background-position:93.33333333333333% 78.94736842105263%}
.profile-flag-255{background-position:100.0% 78.94736842105263%}
.profile-flag-256{background-position:0.0% 84.21052631578947%}
.profile-flag-257{background-position:6.666666666666667% 84.21052631578947%}
.profile-flag-258{background-position:13.333333333333334% 84.21052631578947%}
.profile-flag-259{background-position:20.0% 84.21052631578947%}
.profile-flag-260{background-position:26.666666666666668% 84.21052631578947%}
.profile-flag-261{background-position:33.33333333333333% 84.21052631578947%}
.profile-flag-262{background-position:40.0% 84.21052631578947%}
.profile-flag-263{background-position:46.666666666666664% 84.21052631578947%}
.profile-flag-264{background-position:53.333333333333336% 84.21052631578947%}
.profile-flag-265{background-position:60.0% 84.21052631578947%}
.profile-flag-266{background-position:66.66666666666666% 84.21052631578947%}
.profile-flag-267{background-position:73.33333333333333% 84.21052631578947%}
.profile-flag-268{background-position:80.0% 84.21052631578947%}
.profile-flag-269{background-position:86.66666666666667% 84.21052631578947%}
.profile-flag-270{background-position:93.33333333333333% 84.21052631578947%}
.profile-flag-271{background-position:100.0% 84.21052631578947%}
.profile-flag-272{background-position:0.0% 89.47368421052632%}
.profile-flag-273{background-position:6.666666666666667% 89.47368421052632%}
.profile-flag-274{background-position:13.333333333333334% 89.47368421052632%}
.profile-flag-275{background-position:20.0% 89.47368421052632%}
.profile-flag-276{background-position:26.666666666666668% 89.47368421052632%}
.profile-flag-277{background-position:33.33333333333333% 89.47368421052632%}
.profile-flag-278{background-position:40.0% 89.47368421052632%}
.profile-flag-279{background-position:46.666666666666664% 89.47368421052632%}
.profile-flag-280{background-position:53.333333333333336% 89.47368421052632%}
.profile-flag-281{background-position:60.0% 89.47368421052632%}
.profile-flag-282{background-position:66.66666666666666% 89.47368421052632%}
.profile-flag-283{background-position:73.33333333333333% 89.47368421052632%}
.profile-flag-284{background-position:80.0% 89.47368421052632%}
.profile-flag-285{background-position:86.66666666666667% 89.47368421052632%}
.profile-flag-286{background-position:93.33333333333333% 89.47368421052632%}
.profile-flag-287{background-position:100.0% 89.47368421052632%}
.profile-flag-288{background-position:0.0% 94.73684210526315%}
.profile-flag-289{background-position:6.666666666666667% 94.73684210526315%}
.profile-flag-290{background-position:13.333333333333334% 94.73684210526315%}
.profile-flag-291{background-position:20.0% 94.73684210526315%}
.profile-flag-292{background-position:26.666666666666668% 94.73684210526315%}
.profile-flag-293{background-position:33.33333333333333% 94.73684210526315%}
.profile-flag-294{background-position:40.0% 94.73684210526315%}
.profile-flag-295{background-position:46.666666666666664% 94.73684210526315%}
.profile-flag-296{background-position:53.333333333333336% 94.73684210526315%}
.profile-flag-297{background-position:60.0% 94.73684210526315%}
.profile-flag-298{background-position:66.66666666666666% 94.73684210526315%}
.profile-flag-299{background-position:73.33333333333333% 94.73684210526315%}
.profile-flag-300{background-position:80.0% 94.73684210526315%}
.profile-flag-301{background-position:86.66666666666667% 94.73684210526315%}
.profile-flag-302{background-position:93.33333333333333% 94.73684210526315%}
.profile-flag-303{background-position:100.0% 94.73684210526315%}
.profile-flag-304{background-position:0.0% 100.0%}
.profile-flag-305{background-position:6.666666666666667% 100.0%}
.profile-flag-306{background-position:13.333333333333334% 100.0%}
.profile-flag-307{background-position:20.0% 100.0%}
.profile-flag-308{background-position:26.666666666666668% 100.0%}
.profile-flag-309{background-position:33.33333333333333% 100.0%}
.profile-flag-310{background-position:40.0% 100.0%}
.profile-flag-311{background-position:46.666666666666664% 100.0%}

.identity-preview-account .identity-name-stack h2{width:100%;min-width:0}.identity-preview-account .identity-name-stack h2>.identity-tap{display:block;width:100%;box-sizing:border-box}.identity-account-flairs{display:flex;align-items:center;justify-content:flex-start;min-width:0;width:100%;gap:4px}.identity-account-flairs .web-equipment{display:contents}.identity-preview-account .identity-account-flairs .web-flair-cell{flex:0 1 52px;width:52px;min-width:0;height:58px}.identity-preview-account .identity-account-flairs .web-flair-cell>.web-flair{width:100%;aspect-ratio:1;height:auto;transform:translate(-50%,-50%)}@media(max-width:700px){.identity-preview-account{grid-template-columns:minmax(0,28fr) minmax(0,44fr) minmax(0,28fr)!important}.identity-preview-account .identity-name-stack h2{font-size:24px}}

.identity-tap{height:auto!important;line-height:1.2}.identity-preview-account .identity-name-stack{gap:3px}.identity-preview-account .account-equipment{justify-self:stretch;width:100%}.identity-preview-account .account-equipment .flair-row{min-width:0;width:100%}

.profile-flags-edit{flex-direction:row-reverse}

.profile-detail-header>.identity-pronouns{transform:translateY(-4px)}

.profile-detail-header>.identity-stats-name{flex:1;min-width:0;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:22px}.profile-detail-header>.identity-pronouns{flex-shrink:0}

/* Same tabs as the private room screen in the client. */
.board-tabs{display:flex;margin:0 0 14px;background:#222a2e;border-bottom:2px solid #090c0d}
.board-tabs a{flex:1;padding:12px 8px;text-align:center;color:#c9d1d1;text-decoration:none;border-right:1px solid #0e1316}
.board-tabs a:last-child{border-right:0}.board-tabs a:hover{background:#2e383d;color:#fff}
.board-tabs a[aria-current=page]{background:#3d484e;color:#fff;box-shadow:inset 0 -3px #91c767}
.record-toolbar{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px}.record-toolbar select{flex:none;min-width:200px;width:auto}.record-toolbar #record-period{min-width:0}.record-toolbar #record-section{margin-left:auto}
.record-table td:nth-child(2),.record-table th:nth-child(2){text-align:left}
.record-time{color:var(--yellow);font-variant-numeric:tabular-nums}
.record-table tr.own-outside td{border-top:3px solid #91c767}
/* Matchup: two players' head-to-head. */
.matchup-form{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) 180px;align-items:center;gap:10px;margin:0 0 14px}.matchup-form input{width:100%;min-width:0;margin:0}.matchup-form .button{width:100%;margin:0}.matchup-vs{color:var(--muted)}
.matchup-field{position:relative;min-width:0}.matchup-suggest{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);display:grid;background:var(--panel,#16201f);border:2px solid #000;box-shadow:0 6px 16px #0008}.matchup-suggest[hidden]{display:none}.matchup-option{all:unset;box-sizing:border-box;padding:8px 10px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matchup-option:hover,.matchup-option:focus-visible{background:#ffffff1f;color:var(--yellow)}
.matchup-card{margin:0 0 14px}.matchup-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin-bottom:12px}
.matchup-player{display:grid;justify-items:center;gap:6px;min-width:0;text-align:center;overflow-wrap:anywhere}.matchup-player .head-empty{width:64px;height:64px;display:grid;place-items:center}
.matchup-record{display:grid;justify-items:center;gap:4px;text-align:center}.matchup-record strong{font-size:44px;color:var(--yellow);line-height:1}.matchup-record span{color:var(--muted);font-size:16px}
.matchup-table{width:100%}.matchup-table th{color:var(--muted);font-weight:normal;text-align:center}.matchup-table td{width:30%;font-variant-numeric:tabular-nums}.matchup-left{text-align:left}.matchup-right{text-align:right}
.matchup-view{margin:0 0 12px}.matchup-modes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.matchup-modes .button{flex:0 1 auto;min-height:40px;font-size:16px;padding:6px 12px}
.matchup-group th{color:var(--yellow)!important;padding-top:22px;border-bottom-color:#6b6e70}.cmp-runs{margin:0 6px;color:var(--muted);font-size:.75em}.matchup-note{margin:12px 0 0;font-size:15px;text-align:center}
@media(max-width:720px){.matchup-table .cmp-runs{display:block;margin:2px 0 0}}
.matchup-heading{margin:0 0 10px;text-align:center}.matchup-recent td:nth-child(2),.matchup-recent th:nth-child(2){text-align:left}
@media(max-width:640px){.matchup-form{grid-template-columns:minmax(0,1fr)}.matchup-vs{display:none}.matchup-record strong{font-size:34px}.matchup-card table,.matchup-recent table{min-width:0;font-size:15px}.matchup-table td{width:32%;padding:8px 2px}.matchup-table th{padding:8px 2px;white-space:normal}.matchup-recent .matchup-date,.matchup-recent .matchup-winner{display:none}.matchup-recent th,.matchup-recent td{padding:8px 4px;white-space:normal;overflow-wrap:anywhere}}
.board-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:0 0 14px}
.board-filters[hidden]{display:none}.board-filters label{display:flex;align-items:center;gap:10px}.board-filters select{width:auto;min-width:200px}.board-active input{width:auto}
@media(max-width:640px){.record-table th:nth-child(3),.record-table td:nth-child(3){display:none}.record-table th.record-watch,.record-table td.record-watch{display:table-cell}.record-table th.record-date,.record-table td.record-date{display:none}}
/* The leaderboard filter. */
.modal-back{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.66)}
.modal{width:min(100%,780px);max-height:100%;overflow:auto;margin:0;display:grid;gap:10px;background:#141816f7}
.modal h2{margin:0;text-align:center}.modal h3{margin:6px 0 0;color:var(--muted);font-size:17px}
.modal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));grid-auto-rows:42px;gap:2px;min-height:130px;max-height:230px;overflow:auto}
.modal-row{display:grid;grid-template-columns:repeat(4,1fr);gap:2px}
.modal-grid a,.modal-row a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 8px;text-align:center;background:#222a2e;color:#c9d1d1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal-grid a:hover,.modal-row a:hover{background:#2e383d;text-decoration:none}
.modal-grid a.on,.modal-row a.on{background:#3d484e;color:#fff;box-shadow:inset 0 -3px #91c767}
.modal-actions{display:grid;grid-template-columns:1fr 1.7fr;gap:10px;margin-top:6px}
@media(max-width:640px){.modal-row{grid-template-columns:1fr 1fr}.modal-grid{grid-template-columns:1fr 1fr}}

/* Compare: the turned 3D head (with its hat layer) draws about 1.5x its box. Reserve that room so it stays inside
   the card and off the name, and use a smaller head on phones (report 9 Nov, 360-420 px). */
.matchup-player .head3d{--head:64px;margin:calc(var(--head)*.24) calc(var(--head)*.26) calc(var(--head)*.3)}
@media(max-width:480px){.matchup-score{gap:6px}.matchup-player .head3d{--head:46px}.matchup-record strong{font-size:30px}.matchup-record span{font-size:13px}}

.activity-map{display:block;width:100%;max-width:760px;margin:10px auto 0}.activity-map text{fill:var(--muted);font-size:11px;font-family:Ranked,monospace}.activity-legend{display:flex;align-items:center;gap:4px;font-size:.8rem;color:var(--muted);justify-content:flex-end;max-width:760px;margin:6px auto 0}.activity-legend span{margin:0 6px}
.analysis-table{width:100%;border-collapse:collapse;margin-top:14px;font-size:.9rem}.analysis-table th,.analysis-table td{padding:7px 8px;text-align:right;border-bottom:1px solid rgba(255,255,255,.14);font-weight:normal}.analysis-table th:first-child{text-align:left}
.match-rows{display:grid;gap:4px;margin-top:12px}
.match-row{display:grid;grid-template-columns:minmax(150px,1.1fr) 1fr 28px 1fr 96px;align-items:center;gap:10px;padding:8px 12px;background:rgba(255,255,255,.03)}
.match-row:hover{background:rgba(255,255,255,.07)}.match-row a{color:inherit;text-decoration:none}.match-row a:hover{color:var(--yellow)}
.match-mode small,.match-side small{display:block;color:var(--muted);font-size:.74em}.match-side{min-width:0}.match-row>.match-side:nth-child(2){text-align:right}.match-side a{display:block;overflow-wrap:anywhere}.match-side.won a{color:var(--green)}
.match-vs{text-align:center;color:var(--muted);font-size:.8em}.activity-versus{display:flex;justify-content:center;align-items:flex-start;gap:12px}.activity-racer{min-width:0;overflow-wrap:anywhere}.activity-racer:first-child{text-align:right}.activity-vs{flex:none;color:var(--muted);font-size:.8em}.match-time{text-align:right;color:var(--yellow)!important;font-variant-numeric:tabular-nums}
@media(max-width:640px){.live-table,.live-table tbody{display:block}.live-table tr{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.14)}.live-table th,.live-table td{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}.live-table th{text-align:left}.live-table td{text-align:right}.live-table td:last-child{grid-column:1/-1}.live-table .activity-racer{text-align:left}.live-table .activity-racer:first-child{text-align:right}.match-row{grid-template-columns:1fr auto 1fr;grid-template-areas:'mode mode time' 'a vs b'}.match-mode{grid-area:mode}.match-time{grid-area:time}.match-row>.match-side:nth-child(2){grid-area:a}.match-row>.match-side:nth-child(4){grid-area:b}.match-vs{grid-area:vs}}

/* Screen review round 1: the result sits around "vs"; the three Right Now tiles line up on phones. */
.match-row{grid-template-columns:minmax(150px,1.1fr) 1fr 92px 1fr 96px}.match-vs{display:flex;align-items:center;justify-content:center;gap:10px}.match-vs>span{font-size:.8em}.match-score{font-weight:normal;color:#fff;font-size:1.15em;min-width:14px;text-align:center}.match-score.won{color:var(--green)}
@media(max-width:640px){.match-row{grid-template-columns:1fr auto 1fr}.match-vs{gap:6px}}
.stats .stat{display:flex;flex-direction:column;justify-content:space-between;align-items:center}
@media(max-width:720px){.stats .stat{font-size:15px;line-height:1.15;min-height:0}.stats .stat strong{margin-top:auto}}
#live-dims button[aria-pressed=true]{border-color:var(--yellow);color:var(--yellow)}
#live-map{display:block;border:2px solid #000;margin-top:4px}
#live-players{margin-top:12px}
.live-p0{color:#f5d33b}.live-p1{color:#4fd1ff}

/* The connect notice covers the whole page and sits above the header and footer. */
.link-gate{position:fixed;inset:0;z-index:1000;display:flex;overflow:auto;padding:24px 16px;background:#10222c;color:#fff}
.link-gate-body{width:min(860px,100%);margin:auto;text-align:center}
.link-gate h1{margin:0 0 24px;font-size:clamp(40px,7vw,76px);line-height:1.1;color:#ffff55}
.link-gate p{margin:0 0 18px;font-size:clamp(20px,2.6vw,28px);line-height:1.4}
.link-gate-actions{display:grid;gap:12px;margin-top:28px}
.link-gate-actions .button{width:100%;margin:0;box-sizing:border-box}
.admin-ban,.admin-link-waiver{margin-top:12px}
#notice{z-index:1001}

/* Screen review round 1 (Nov 8): fixes that apply across pages. Loaded last on purpose. */

/* Tables: a fixed flair column, so every name starts under "Player" even with no flairs. */
.has-web-flairs .web-player-identity>.web-equipment:empty{display:flex}
.elo-cell{white-space:nowrap}.elo-cell>span{display:inline-block;vertical-align:middle}

/* Home: a slightly bigger Live button. */
.footer-home .button.live-link{min-height:44px;padding:8px 16px;font-size:19px;gap:9px}.footer-home .live-dot{width:12px;height:12px}

/* Phones, stats toolbar (leaderboard, profile): Season | Filter or Compare | Search on one row, the name field full width under it. */
@media(max-width:720px){
 .stats-toolbar{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr)}
 .stats-toolbar .season-control{width:auto;grid-column:1;grid-row:1}.stats-toolbar .season-control select{width:100%}
 .stats-toolbar .search{display:contents}
 .stats-toolbar .search input{grid-column:1/-1;grid-row:2;width:100%;margin:0}
 .stats-toolbar .search>.button{grid-column:3;grid-row:1;min-width:0;width:100%;padding-left:6px;padding-right:6px}
 .stats-toolbar>.button{grid-column:2;grid-row:1;width:100%;min-width:0;padding-left:6px;padding-right:6px}
 .stats-toolbar>a.button~a.button{grid-column:1/-1;grid-row:3}
}

/* Phones, home: Stats, Info and Support Us as big as Account and Leaderboard, one under the other; Live stays bottom left. */
@media(max-width:720px){
 .home-page .footer-home{display:flex;flex-direction:column;align-items:stretch;gap:14px;max-width:550px;width:calc(100% - 28px);margin:14px auto 80px}
 .home-page .footer-home>.button{flex:none;width:100%;max-width:none;min-height:82px;font-size:29px}
 .home-page .footer-home .button.live-link{position:fixed;left:14px;bottom:14px;width:auto;min-height:44px;font-size:19px;padding:8px 16px}
}

/* Phones, tables: no empty flair column (too narrow), the Time leaderboard drops Date so Time fits, and its buttons sit on a 2 x 2 grid. */
@media(max-width:720px){
 .has-web-flairs .web-player-identity>.web-equipment:empty{display:none}
 .has-web-flairs .web-player-heading{padding-left:8px}.has-web-flairs .web-player-cell{min-width:0}
 .record-table .record-date{display:none}
 .record-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .record-toolbar>*{width:100%;min-width:0!important;margin:0!important}
}

/* Match page: each player on one line (name, client, flag; then time and Elo), report under it, the seed centred. */
.match-meta{text-align:center}
.match-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:14px 0}
.match-player{display:grid;justify-items:center;gap:8px;padding:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);text-align:center;min-width:0}
.match-player.won{border-color:#91c767}
.match-player-head{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;min-width:0}.match-player-head .player-name{overflow-wrap:anywhere}
.match-player-head .web-match-identity{display:inline-flex;align-items:center;gap:6px}
.match-player-line{display:flex;align-items:baseline;justify-content:center;gap:14px;flex-wrap:wrap}
.match-player-time{font-size:1.15em;font-variant-numeric:tabular-nums}
.match-player-elo{color:var(--muted)}.match-player-elo.positive{color:#84d674}.match-player-elo.negative{color:#ff7979}
.match-report{margin:2px 0 0}
.match-seed{text-align:center;margin:6px 0 12px}
.share-row{justify-content:center}
@media(max-width:720px){
 .match-players{grid-template-columns:1fr;gap:8px}
 .match-player{grid-template-columns:minmax(0,1fr) auto;justify-items:stretch;align-items:center;text-align:left;padding:8px 10px;gap:4px 10px;font-size:15px}
 .match-player-head{justify-content:flex-start;flex-wrap:nowrap}.match-player-head .player-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .match-player-line{flex-direction:column;align-items:flex-end;gap:0}.match-player-time{font-size:1em}
 .match-report{grid-column:1/-1;justify-self:start;padding:6px 10px;font-size:14px;min-height:0}
}

/* Section splits: the difference sits in the middle, between the two players' times. */
.an-split{table-layout:fixed}.an-split th,.an-split td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.an-split.an-two th:nth-child(1){width:34%}.an-split.an-two th:nth-child(2),.an-split.an-two th:nth-child(4){width:24%}.an-split.an-two th:nth-child(3){width:18%}
.an-split.an-two td,.an-split.an-two thead th:not(:first-child){text-align:center}
@media(max-width:720px){.an-split.an-two th:nth-child(1){width:31%}.an-split.an-two th:nth-child(3){width:21%}.an-split th,.an-split td{padding:6px 2px}}

/* Season recap: the facts as label / value rows. */
.recap-facts{display:grid;gap:0;margin:14px 0}.recap-facts>div{display:flex;justify-content:space-between;gap:12px;padding:9px 4px;border-bottom:1px solid rgba(255,255,255,.12)}.recap-facts>div:last-child{border-bottom:0}.recap-facts dt{color:var(--muted)}.recap-facts dd{margin:0;text-align:right}

/* The admin correction box used the browser font. */
details.card.admin-console>summary{font:17px/1.4 Ranked,monospace;color:var(--yellow);cursor:pointer}

/* Compare: the difference beside each value (+24 green on the better side, -24 red on the other). Phones: only the colour. */
.matchup-table .cmp-diff{display:inline-block;min-width:84px;font-size:.85em}
.matchup-left .cmp-diff{text-align:left;margin-left:14px}.matchup-right .cmp-diff{text-align:right;margin-right:14px}
.cmp-diff.cmp-good{color:#84d674}.cmp-diff.cmp-bad{color:#ff7979}
@media(max-width:720px){.matchup-table .cmp-diff{display:none}.matchup-table td.cmp-good .cmp-value{color:#84d674}.matchup-table td.cmp-bad .cmp-value{color:#ff7979}}

/* Run History: the client's row. */
.run-history .profile-name{text-align:center;margin-bottom:12px}
.run-list{display:grid;gap:4px}
.run-row{display:grid;grid-template-columns:92px minmax(0,1.5fr) minmax(0,1.2fr) 120px 120px 56px 86px;align-items:center;gap:12px;padding:8px 12px 8px 16px;background:rgba(255,255,255,.035);border-left:6px solid #787e7e}
.run-row:nth-child(odd){background:rgba(255,255,255,.06)}
.run-win{border-left-color:#56b937}.run-loss{border-left-color:#cf4c43}.run-solo{border-left-color:#48aad7}.run-draw{border-left-color:var(--yellow)}
.run-tag{display:block;text-align:center;padding:3px 0;font-size:15px;text-shadow:none}.run-tag.ranked{background:#ffe247;color:#1e1a08}.run-tag.solo{background:#2c4a5c;color:#bee2f5}
.run-mode,.run-result{display:flex;flex-direction:column;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.run-mode small,.run-result small{color:var(--muted);font-size:12px}
.run-vs{color:var(--yellow);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.run-vs .player-name{color:var(--yellow)}
.run-result{text-align:center;align-items:center}.run-win .run-result{color:#56b937}.run-loss .run-result{color:#cf4c43}.run-solo .run-result{color:#48aad7}.run-draw .run-result{color:var(--yellow)}.run-muted .run-result{color:var(--muted)}
.run-result small{color:var(--muted)!important}
.run-time{text-align:right;font-variant-numeric:tabular-nums}.run-elo{text-align:right}.run-elo.positive{color:#84d674}.run-elo.negative{color:#ff7979}
.run-row>.button{margin:0;min-height:0;padding:6px 10px}
@media(max-width:900px){
 .run-row{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:'mode mode result' 'vs elo time' 'tag . button';gap:4px 10px;padding:8px 10px 8px 12px;font-size:15px}
 .run-tag{grid-area:tag;font-size:13px;justify-self:start;padding:3px 12px}.run-mode{grid-area:mode}.run-vs{grid-area:vs}.run-result{grid-area:result;align-items:flex-end;text-align:right}.run-time{grid-area:time}.run-elo{grid-area:elo}.run-row>.button{grid-area:button;justify-self:end;font-size:14px;padding:4px 14px}
}

/* Stats per Mode: the client's table. */
.mode-tabs{display:flex;justify-content:center;gap:8px;margin:0 0 12px}.mode-tabs .button{min-width:120px;margin:0}.mode-tabs .button.selected{background:#3c7d26;color:#fff;text-shadow:1px 1px #000}
.mode-stats-card .profile-name{text-align:center;margin-bottom:10px}
.mode-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.mode-table th,.mode-table td{padding:10px 8px;border-bottom:1px solid rgba(255,255,255,.1);text-align:right;font-weight:normal;white-space:nowrap}
.mode-table thead th{color:var(--muted);font-size:.85em}.mode-table th:first-child{text-align:left}.mode-table tbody tr:nth-child(odd){background:rgba(255,255,255,.04)}
.mode-table td.mode-wins{text-align:left}.mode-wins>*{vertical-align:middle}
.mode-bar{display:inline-block;width:150px;height:14px;background:#cf4c43;margin-right:10px}.mode-bar>svg{display:block;width:100%;height:100%}
.mode-wl{display:inline-block;min-width:44px}.mode-rate{display:inline-block;min-width:44px;margin-left:8px;color:var(--muted)}
@media(max-width:720px){.mode-tabs .button{min-width:0;flex:1}.mode-table{font-size:14px}.mode-table th,.mode-table td{padding:8px 4px;white-space:normal}.mode-bar{width:54px;height:10px;margin-right:4px}.mode-rate{display:none}.mode-table th:nth-child(5),.mode-table td:nth-child(5){display:none}}

/* Phones, account: the flag buttons sit in the card's top right corner, as on Android and on desktop. */
@media(max-width:720px){
 .account-card{position:relative}
 .web-account-identity.identity-preview-account>.profile-flags{position:absolute;top:10px;right:10px;margin:0}
}

/* Trophies: a shorter filter, so filter, slots and the winstreak switch share one row. Phones: the selected trophy and its Equip button come first. */
.trophy-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.trophy-controls>select{flex:0 0 260px;width:260px;min-width:0}
.trophy-controls>.trophy-slots{display:flex;gap:8px;margin:0}
.trophy-controls>.trophy-toggle{margin-left:auto}
@media(max-width:720px){
 .trophy-controls>select{flex:1 1 100%;width:100%}.trophy-controls>.trophy-toggle{margin-left:0}
 .trophy-layout{display:flex;flex-direction:column}.trophy-layout>.trophy-detail{order:-1}
}

/* Analysis mode tabs: an even grid instead of a ragged wrap (all screen sizes); the count sits right. */
.an-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px}
.an-tabs button{display:flex;justify-content:space-between;align-items:center;text-align:left;min-width:0;white-space:nowrap;overflow:hidden}
@media(max-width:720px){.an-tabs{grid-template-columns:1fr 1fr}.an-tabs button{font-size:13px;padding:7px 8px}}
.an-split tbody th{display:table-cell;vertical-align:middle}.an-split tbody th>*{vertical-align:middle;margin-right:8px}
@media(max-width:720px){
 .match-player-head .badge{display:none}.match-player-head .player-name{overflow:visible;text-overflow:clip}
 .an-split.an-two th:nth-child(1){width:38%}.an-split.an-two th:nth-child(2),.an-split.an-two th:nth-child(4){width:22%}.an-split.an-two th:nth-child(3){width:18%}.an-split{font-size:13px}
}
.trophy-controls{margin:0!important}.mode-table thead th:nth-child(3){text-align:left}

/* Round 2 */
/* Match page: the seed is a plain line, not a big box. */
.match-seed .code{display:inline-block;padding:3px 10px;border-width:1px;margin-left:6px;vertical-align:baseline}
/* Section splits: swatch and name on one line. */
.an-split tbody th{white-space:nowrap}.an-split tbody th>*{display:inline-block}
/* Phones, rank trophy never next to the Elo (the table would overflow). */
/* Phones, Stats per Mode: the win-loss column keeps clear of Games; bar and score on one line. */
@media(max-width:720px){.mode-table td.mode-wins{padding-left:16px;white-space:nowrap}.mode-table thead th:nth-child(3){padding-left:16px}.mode-bar{width:44px}}
/* Season recap: label and value close together, not at the two ends of the card. */
.recap-facts{max-width:520px;margin:14px auto}.recap-facts>div{display:grid;grid-template-columns:1fr 1fr;gap:16px}.recap-facts dt{text-align:right}.recap-facts dd{text-align:left}
/* Rank item before the Elo: a 16x16 picture drawn at 2x, crisp. */
.matchup-left .cmp-value,.matchup-right .cmp-value{display:inline-block;min-width:100px}.matchup-right .cmp-value{text-align:right}
/* Hat (second skin) layer: a cube 9/8 the size of the head, like Minecraft's; clear pixels show the head under it. */
.head-face.head-hat{inset:-6.25%;width:112.5%;height:112.5%}
.head-hat.head-front{transform:translateZ(calc(var(--head)*.5625))}.head-hat.head-back{transform:rotateY(180deg) translateZ(calc(var(--head)*.5625))}
.head-hat.head-right{transform:rotateY(-90deg) translateZ(calc(var(--head)*.5625))}.head-hat.head-left{transform:rotateY(90deg) translateZ(calc(var(--head)*.5625))}
.head-hat.head-top{transform:rotateX(90deg) translateZ(calc(var(--head)*.5625))}.head-hat.head-bottom{transform:rotateX(-90deg) translateZ(calc(var(--head)*.5625))}

.matchup-table .cmp-diff:not(.cmp-good):not(.cmp-bad){color:#b4b4b4}
/* Phones: no trophies or streak in the Elo and Time tables, they do not fit (the owner's call); PCs keep them. */
@media(max-width:720px){.leaderboard-table .web-player-identity>.web-equipment,.leaderboard-table .web-player-identity .web-live-streak{display:none!important}.leaderboard-table.has-web-flairs .web-player-identity{min-height:0}.leaderboard-table.has-web-flairs .web-player-heading{padding-left:0}}
/* One-time notice: re-upload a skin saved before the hat layer. */
.skin-notice{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 auto 14px;max-width:960px}.skin-notice p{margin:0;flex:1 1 260px}
