@charset "UTF-8";
:root{color-scheme:dark;--bg:#0e1622;--panel:#182534;--line:#2a3b50;--text:#eef2f8;--muted:#9aaec6;--coral:#ff5367;--green:#34d4b1;--amber:#efbc54}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 20%,#17233722,transparent 65%),var(--bg);color:var(--text);font:15px/1.5 "Segoe UI","Microsoft YaHei",Arial,sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button{transition:background .15s,border-color .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.35;letter-spacing:.5px}h2{font-size:22px}h3{font-size:16px}input,textarea,select{font-size:16px;background:#1c2b3d;border:1px solid #3a5069;color:var(--text);border-radius:6px;padding:9px 15px;outline:none;min-width:0}input:focus,textarea:focus,select:focus{border-color:#8b9fb8;box-shadow:0 0 0 2px #7791ac20}input::placeholder,textarea::placeholder{color:#8194ad}button:focus-visible,a:focus-visible{outline:2px solid #99bfff;outline-offset:3px}[hidden]{display:none!important}.muted,.quiet{color:var(--muted)}.small{font-size:13px}.topbar{height:56px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(32px,calc((100vw - 1390px)/2));background:#17233199}.brand{display:flex;align-items:center;gap:13px;font-size:24px;font-weight:700;letter-spacing:.3px}.brandmark{width:30px;height:32px;fill:var(--coral)}nav{height:100%;display:flex;align-items:center;gap:40px;font-size:14px}.nav-active{height:100%;display:flex;align-items:center;border-bottom:2px solid var(--coral);padding:0 4px}.primary{border:1px solid var(--coral);background:linear-gradient(110deg,#ff5369,#fc626d);color:#fff;border-radius:6px;font-weight:600;padding:11px 24px;min-height:44px}.primary:hover{background:#ff6d7d}.outline,.page-button{border:1px solid #586c84;background:#182536;color:#eef2f8;border-radius:5px;padding:10px 21px;min-height:40px}.outline:hover,.page-button:hover{background:#283b52;border-color:#a5b8cb}.text-button,.icon-button,.clear-button{border:0;color:#c2d0e0;background:transparent;padding:5px;font-size:inherit}.icon-button,.clear-button{font-size:26px;line-height:1;width:32px;height:32px}.searchbox{display:flex;align-items:center;gap:12px;background:#1c2b3d;border:1px solid #3a5069;border-radius:6px;padding-left:16px;min-width:0}.searchbox:focus-within{border-color:#8b9fb8}.searchbox svg{width:20px;height:20px;fill:none;stroke:#b7c5d9;stroke-width:1.6;flex-shrink:0}.searchbox input{border:0;box-shadow:none;background:transparent;width:100%;padding-left:0}.searchbox .clear-button{margin-right:8px}.panel{background:linear-gradient(110deg,#1a2839,#172332);border:1px solid var(--line);border-radius:7px}.notice{padding:14px 15px;border:1px solid #44586e;border-radius:6px;background:#26384b66;font-size:14px}.amber{color:var(--amber);border-color:#6b5632;background:#9d702215}.public-main{max-width:1454px;margin:auto;padding:0 32px}.hero{text-align:center;padding:20px 0 8px}.hero h1{font-size:36px;font-weight:750;line-height:1.2}.hero>p{color:var(--muted);margin-top:4px;font-size:15px}.hero form{display:flex;gap:14px;max-width:670px;margin:16px auto 0}.hero form .searchbox{flex:1}.hero form input{height:44px;font-size:16px}.hero form>.primary{min-width:116px}.public-error{color:#ffacb4;font-size:14px;margin-top:12px;line-height:1.6}.public-error button{margin-left:12px;color:#fff}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:4px 0 15px}.results-heading h2{font-size:24px;letter-spacing:.2px}.results-heading h2 span{font-size:20px}.results-heading>.muted{font-size:14px}.match-list{display:flex;flex-direction:column;gap:9px}.match{border:1px solid transparent;border-radius:7px;background:linear-gradient(105deg,#203044,#192637);overflow:hidden}.match.open{border-color:#58728d}.match-summary{border:0;border-radius:0;width:100%;color:var(--text);background:transparent;display:grid;grid-template-columns:182px 1.2fr .75fr .9fr .7fr 1.1fr 1fr 25px;align-items:center;gap:25px;text-align:left;padding:7px 17px;min-height:70px}.match-summary:hover{background:#ffffff05}.map-thumb{width:182px;height:56px;object-fit:cover;border-radius:4px}.outcome strong{display:block;font-size:18px}.outcome small{display:block;color:#c0cde0;font-size:14px;margin-top:2px}.win{color:var(--green)}.loss{color:#ff626e}.neutral{color:var(--muted)}.mode{color:#c0ccdd;font-size:15px}.match-score{font-size:21px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:1px}.score-colon{color:#73879e;margin:0 8px}.agent-img{width:48px;height:48px;border-radius:4px;background:#263749;object-fit:cover}.kda{font-size:17px;letter-spacing:.5px;white-space:nowrap}.kda small{font-size:11px;display:block;color:#9caec2;letter-spacing:2px;margin-top:1px}.match-time{font-size:14px;text-align:right;color:#b2c1d5}.chevron{color:#b0c2d9;font-size:21px;justify-self:end;transform:rotate(90deg)}.match.open .chevron{transform:rotate(-90deg)}.match-detail{border-top:1px solid var(--line);background:#111d2a70;padding:12px 18px 14px}.match-detail h3{margin-bottom:8px}.teams{display:grid;grid-template-columns:1fr 1fr;gap:24px}.team-heading{font-size:14px;line-height:32px;height:32px;font-weight:600;padding:0 13px;background:#20d5b11b;border-radius:3px}.team-heading.loss{background:#ff536721}.team-table{border-collapse:collapse;width:100%;font-size:14px;table-layout:fixed}.team-table th{font-size:12px;color:#afbdd0;font-weight:400;height:31px}.team-table th,.team-table td{padding:5px 10px;text-align:center;border-bottom:1px solid #30415666;height:38px}.team-table th:first-child,.team-table td:first-child{text-align:left;width:37%}.team-table th:nth-child(2){width:13%}.team-table th:nth-child(3){width:24%}.team-table th:nth-child(4){width:12%}.team-table th:last-child{width:14%}.team-table .agent-img{width:30px;height:30px;vertical-align:middle}.player-cell{display:flex;align-items:center;gap:8px;min-width:0}.player-cell span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-cell small{color:#9aabc1}.team-table .target-row{background:#25cabd20}.party-tag{display:inline-block;border:1px solid #36aa9a80;color:#65e1cc;background:#25958630;border-radius:4px;font-size:11px;white-space:nowrap;padding:2px 6px}.team.loss-team .party-tag{border-color:#d7687870;color:#ff9ea9;background:#d7687820}.more-wrap{text-align:center;padding:18px 0 0}.more-wrap .outline{width:172px;height:37px;min-height:37px;padding:6px}.public-footer{text-align:center;color:#8192a8;font-size:12px;padding:15px 0 22px}.empty-state{text-align:center;min-height:420px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;color:#a6b7cc}.empty-state h2{color:#dde5ef;font-size:21px}.empty-emblem{width:72px;height:72px;border:1px solid #2a3d54;border-radius:18px;display:grid;place-items:center;margin-bottom:5px;background:#1a293b}.empty-emblem svg{width:35px;height:35px;fill:#ff6477}.input-tip{margin-top:12px;font-size:13px;color:#788da5}.loading-state{padding-top:25px;text-align:center}.skeleton{height:82px;background:linear-gradient(90deg,#1b293b,#24374b,#1b293b);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:6px;margin-bottom:12px}.detail-loading{padding:35px;text-align:center;color:#b1c2d6}.team-empty{padding:15px;color:var(--muted)}@keyframes shimmer{to{background-position:-200% 0}}.brand-divider{color:#6b8099;font-weight:400;margin:0 3px}.brand-sub{font-size:22px;font-weight:500}.admin-topbar{padding:0 30px;height:56px}.admin-topbar nav{gap:30px}.admin-layout{display:flex;align-items:stretch;min-height:calc(100vh - 56px)}.admin-main{padding:20px 30px 0;min-width:0;flex:1}.admin-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}.admin-heading h1{font-size:32px;margin-bottom:5px}.admin-heading .muted{font-size:15px}.actions{display:flex;gap:15px}.admin-heading .primary,.admin-heading .outline{min-width:125px}.admin-filters{display:flex;gap:15px;margin-bottom:20px}.admin-filters .searchbox{flex:1}.admin-filters input{height:44px}.admin-filters select{width:190px;height:44px;padding-top:8px;padding-bottom:8px;cursor:pointer}.account-table-wrap{overflow-x:auto}.account-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}.account-table th{text-align:left;height:48px;background:#293a4c70;color:#b8c7db;font-weight:500;padding:12px 16px}.account-table td{height:74px;padding:13px 16px;border-top:1px solid #2d3e535e}.account-table td:first-child{min-width:150px}.account-name{font-weight:650;color:#f3f5f8;font-size:16px}.account-qq{font-size:13px;color:#b3c1d4;margin-top:3px}.account-table tr.selected td{background:#ff53670b;border-top:1px solid #fa657a;border-bottom:1px solid #fa657a}.account-table tr.selected td:first-child{border-left:1px solid #fa657a}.account-table tr.selected td:last-child{border-right:1px solid #fa657a}.status-badge{display:inline-flex;gap:8px;align-items:center;padding:6px 10px;border-radius:25px;font-size:13px;white-space:nowrap;background:#66758b22;color:#b1c0d3}.dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:currentColor;flex-shrink:0}.green{color:var(--green)}.status-valid{color:#51e8c6;background:#16cda51a}.status-expiring{color:#ffd378;background:#d99c2826}.status-expired,.status-invalid{color:#ff7b88;background:#fc52652b}.row-actions{display:flex;gap:8px}.row-actions button{padding:6px 11px;min-height:36px;font-size:13px}.account-table .latest{font-size:13px;color:#b8c5d6}.account-table .latest small{display:block;color:#8ca0b9;margin-top:2px}.toggle{border:0;background:#5a6d84;border-radius:20px;width:42px;height:24px;padding:3px;display:flex;align-items:center}.toggle:after{content:"";display:block;width:18px;height:18px;background:#ebf0f8;border-radius:50%;box-shadow:0 1px 3px #0003}.toggle.on{background:#1ccbaa;justify-content:flex-end}.toggle:hover{filter:brightness(1.15)}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 0 25px;color:#a8b9cf;font-size:13px}.table-footer>div{display:flex;align-items:center;gap:10px}.page-button,.page-current{min-height:32px;height:32px;min-width:34px;padding:0 8px;display:inline-grid;place-items:center;font-size:20px;background:#1d2d40;border:1px solid #30435b}.page-current{background:var(--coral);border:0;border-radius:4px;font-size:14px;color:white}.activity-panel{overflow:hidden;margin-top:4px}.activity-panel h3{padding:15px 18px;border-bottom:1px solid #2c3d51;background:#28394b50}.activity-scroll{overflow:auto}.activity-panel table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:13px}.activity-panel th{text-align:left;color:#a7bad1;font-size:12px;font-weight:400;padding:10px 18px}.activity-panel td{padding:13px 18px;border-top:1px solid #30415666;color:#c6d2e3}.activity-panel td .dot{margin-right:7px}.activity-panel>p{padding:30px 18px;text-align:center}.admin-footer{margin:26px -30px 0;padding:17px 30px;border-top:1px solid var(--line);display:flex;align-items:center;gap:14px;font-size:13px;background:#18273888;min-height:60px}.updated-at{margin-left:auto;font-size:12px}.drawer{width:435px;flex-shrink:0;background:linear-gradient(125deg,#1d2c3e,#182434);border-left:1px solid #31445b;padding:22px 25px;min-height:calc(100vh - 56px)}.drawer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.drawer-heading h2{font-size:22px}.drawer label:not(.upload-zone){display:block;margin:20px 0 9px;color:#c4d0e1;font-size:15px}.drawer input:not([type=file]){width:100%;height:44px;background:#162332}.readonly-field{background:#293b50;color:#a5b8cd;padding:12px 14px;border:1px solid #3c506a;border-radius:5px;height:46px}.drawer-status{display:grid;grid-template-columns:1fr 1fr;margin-top:26px}.drawer-status>div+div{border-left:1px solid #3a4c62;padding-left:20px}.drawer-status label{margin:0 0 7px!important}.drawer-status .status-badge{padding:5px 10px}.section-divider{height:1px;background:#3a4b61;margin:28px 0 24px}.drawer h3{margin-bottom:15px}.upload-zone{display:flex;align-items:center;gap:12px;border:1px dashed #6b809c;border-radius:6px;min-height:100px;padding:17px 15px;position:relative;cursor:pointer;background:#ffffff02}.upload-zone>svg{width:26px;height:32px;fill:none;stroke:#b4c2d5;stroke-width:1.5;flex-shrink:0}.upload-zone strong{font-size:15px;font-weight:600;display:block}.upload-zone small{display:block;font-size:12px;color:#a8bad1;margin-top:5px;max-width:176px;overflow:hidden;text-overflow:ellipsis}.upload-zone input{position:absolute;width:1px;height:1px;opacity:0}.upload-label{margin-left:auto;white-space:nowrap;padding:9px 10px;font-size:13px}.upload-zone:focus-within{outline:2px solid #acbddd}.drawer p.small{margin:10px 0 14px}.full-width{width:100%;margin-top:1px}.drawer-actions{display:flex;gap:12px;margin-top:14px}.drawer-actions button{flex:1;padding:10px 5px}.drawer .notice{font-size:13px;line-height:1.7}.notice.error{border-color:#9e526355;color:#ffb0b9;background:#e64c6510}.notice.success{border-color:#32c9a033;color:#9cc7bf}.admin-empty{padding:60px 20px;text-align:center;color:var(--muted)}.admin-empty h3{font-size:20px;color:#e0e8f2;margin-bottom:10px}.admin-empty .primary{margin-top:20px}.login-page{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:90px 24px}.login-panel{width:420px;max-width:100%;padding:36px}.login-panel h1{font-size:28px;margin:12px 0 8px}.eyebrow{font-size:11px;letter-spacing:2px;color:#ff8190}.login-panel label{display:block;margin:28px 0 10px;color:#bdcde1}.login-panel input{width:100%;height:44px}.login-panel .primary{width:100%;margin-top:22px}.login-hint{font-size:12px;line-height:1.9;color:#8196af;margin-top:23px}.login-hint code{color:#a4b4c8}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 24px;border-radius:7px;background:#283b50;border:1px solid #6c829d;color:#f0f5ff;box-shadow:0 8px 35px #0005;z-index:50;max-width:90vw;text-align:center}.notice#device-warning{margin:-12px 0 20px}.spinner{display:inline-block;width:13px;height:13px;border:2px solid #8ca3bd55;border-top-color:#d4e3f5;border-radius:50%;animation:spin .8s linear infinite;margin-right:7px;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1700px){.admin-main{padding-left:45px;padding-right:45px}.drawer{width:460px}.account-table td{height:91px}.public-main{padding-top:8px}}
@media(max-width:1350px){.drawer{width:365px;padding:22px 20px}.admin-main{padding:24px 22px 0}.admin-footer{margin-left:-22px;margin-right:-22px;padding:16px 22px}.account-table th,.account-table td{padding-left:12px;padding-right:12px}.row-actions{gap:5px}.row-actions button{padding:6px 8px}.admin-heading .actions{gap:8px}.admin-heading .primary,.admin-heading .outline{min-width:0;padding:10px 15px}.account-table{font-size:13px}.admin-heading h1{font-size:29px}.match-summary{grid-template-columns:150px 1fr .7fr .85fr .55fr 1fr 1fr 20px;gap:17px}.map-thumb{width:150px}.team-table{font-size:12px}.team-table td,.team-table th{padding:5px}.player-cell .agent-img{display:none}.upload-zone{gap:8px;padding:13px 10px}.upload-zone strong{font-size:14px}.upload-label{font-size:12px;padding:8px}.admin-footer .updated-at{display:none}}
@media(max-width:1100px){.drawer{position:fixed;right:0;top:56px;bottom:0;overflow:auto;z-index:20;width:410px;box-shadow:-30px 0 80px #030b1666}.teams{gap:14px}.match-summary{grid-template-columns:110px 1fr .8fr 45px 1fr 20px;gap:14px}.map-thumb{width:110px}.mode{display:none}.match-time{display:none}.public-main{padding:0 24px}.team-table th:first-child{width:34%}.team-table th:nth-child(3){width:26%}.team-table th:last-child{width:16%}.public-main .party-tag{padding:2px 4px}}
@media(max-width:700px){body{font-size:14px}.topbar{height:56px;padding:0 18px}.brand{font-size:20px;gap:9px}.brandmark{width:24px}nav{gap:18px;font-size:12px}nav>.quiet{display:none}.public-main{padding:0 14px}.hero{padding:30px 0 23px}.hero h1{font-size:26px}.hero>p{font-size:13px;margin-top:8px}.hero form{gap:8px;margin-top:22px}.hero form input{font-size:16px;height:44px}.hero form>.primary{min-width:72px;padding:9px 15px}.searchbox{padding-left:12px;gap:9px}.hero .searchbox svg{width:16px}.results-heading{margin:0 0 12px;align-items:flex-end}.results-heading h2{font-size:18px}.results-heading h2 span{font-size:15px}.results-heading>.muted{font-size:11px;max-width:125px;text-align:right}.match-list{gap:9px}.match-summary{grid-template-columns:68px 1fr 62px 20px;gap:10px;padding:10px;min-height:84px;position:relative}.map-thumb{width:68px;height:58px;grid-row:1}.outcome strong{font-size:16px}.outcome small{font-size:12px}.match-summary>.agent-img{display:none}.match-score{font-size:15px;align-self:start;margin-top:5px}.score-colon{margin:0 3px}.match-summary>.kda{position:absolute;right:39px;bottom:13px;font-size:12px;letter-spacing:0}.kda small{display:none}.match-summary .chevron{font-size:20px}.match-detail{padding:12px 10px}.teams{grid-template-columns:1fr;gap:18px}.team-table{font-size:12px}.team-table .agent-img{width:27px;height:27px}.team-table th:first-child,.team-table td:first-child{width:35%;padding-left:3px}.team-table th:nth-child(2){width:12%}.team-table th:nth-child(3){width:24%}.team-table th:nth-child(4){width:13%}.team-table th:last-child{width:16%}.team-table .player-cell small{font-size:10px}.team-table td{height:42px}.more-wrap{padding-top:17px}.empty-state{min-height:360px}.empty-state p{font-size:13px}.public-footer{padding-bottom:24px}.brand-sub{font-size:16px}.admin-topbar nav{gap:12px}.admin-topbar .quiet{display:none}.admin-topbar .brand{font-size:18px}.admin-main{padding:22px 14px 0}.admin-heading{gap:15px;flex-wrap:wrap;margin-bottom:22px}.admin-heading h1{font-size:26px}.admin-heading p{font-size:13px!important}.admin-heading .actions{width:100%;justify-content:flex-end}.admin-filters{gap:8px;margin-bottom:18px}.admin-filters select{width:115px;padding:8px 6px;font-size:16px}.admin-filters input{font-size:16px;height:44px}.account-table{min-width:750px}.account-table td{height:78px}.table-footer{font-size:11px;flex-wrap:wrap}.table-footer>div{margin-left:auto}.activity-panel table{min-width:640px}.activity-panel h3{padding:12px 14px}.admin-footer{margin:22px -14px 0;padding:15px 14px;gap:9px;font-size:11px}.drawer{width:100%;top:56px;padding:20px 22px;box-shadow:none}.drawer-heading{margin-bottom:22px}.drawer input:not([type=file]){height:44px}.drawer .upload-zone{padding:20px 15px}.drawer .upload-label{padding:10px}.login-page{padding-top:55px}.login-panel{padding:28px}.login-panel h1{font-size:25px}.toast{font-size:13px;padding:11px 17px}.match-score:not(.win):not(.loss){font-size:13px}}
@media(min-width:1101px){body:not(.admin-body)>.topbar{height:48px}.hero{padding-bottom:2px}.team-table td{padding-top:4px;padding-bottom:4px}.drawer{width:464px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Authenticated QR flow; public query layout is unchanged. */
.admin-heading .actions{flex-wrap:wrap;justify-content:flex-end}
#drawer-qr{margin-top:10px}
.qr-dialog{width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;color:var(--text)}
.qr-dialog::backdrop{background:#070d17bb}
.qr-dialog .drawer-heading{margin-bottom:20px}
.qr-dialog h2{font-size:21px}
.qr-dialog label{display:block;margin-bottom:8px;color:#c4d0e1}
.qr-dialog input{width:100%;height:44px}
.qr-dialog .notice{margin-top:18px}
.qr-image-wrap{width:244px;max-width:100%;margin:18px auto 12px;padding:12px;background:#fff;border-radius:8px}
.qr-image-wrap img{display:block;width:220px;height:220px;max-width:100%;object-fit:contain}
.qr-dialog #qr-expiry{text-align:center}
.qr-actions{display:flex;gap:12px;margin-top:20px}
.qr-actions button{flex:1;padding-left:10px;padding-right:10px}
@media(max-width:700px){.qr-dialog{padding:20px}.qr-dialog .drawer-heading{margin-bottom:18px}}

/* Public player summary and browser-local query history. */
.public-main .hero{padding:24px 0 20px}
.public-main .hero h1{font-size:26px;letter-spacing:0}
.public-main .hero>p{font-size:13px;margin-top:6px}
.public-main .hero form{max-width:790px;gap:10px;margin-top:18px;align-items:center}
.public-main .hero form input{height:44px;font-size:16px}
.public-main .hero form>.primary{min-width:80px;min-height:44px;padding:9px 20px}
.history-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 9px;border:0;background:transparent;color:#b3c4d8;white-space:nowrap;border-radius:5px;font-size:13px}
.history-button:hover{background:#223247;color:#f0f4fa}
.history-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.history-count{min-width:18px;padding:0 4px;font-size:11px;line-height:18px;border-radius:5px;background:#2b3c51;color:#c1cfe0}
.public-main .results-heading{margin:0 0 12px}
.public-main .results-heading h2{font-size:20px;overflow-wrap:anywhere}
.public-main .results-heading h2 span{font-size:16px;color:#92a7c0;font-weight:500}
.public-main .results-heading>.muted{font-size:12px;flex-shrink:0}
.rank-panel{border:1px solid #304358;border-radius:8px;background:linear-gradient(110deg,#1c2c3e,#152232);overflow:hidden;margin-bottom:22px}
.rank-overview{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(0,1.8fr);gap:26px;padding:18px 21px 15px;align-items:center}
.rank-eyebrow{display:block;font-size:11px;color:#9bb0c9;letter-spacing:.3px;margin-bottom:7px}
.rank-title-row{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
.rank-title-row h3{font-size:23px;font-weight:650;line-height:1.25}
.rank-rating{font-size:20px;font-weight:600;color:#e7b96b;font-variant-numeric:tabular-nums;white-space:nowrap}
.rank-rating small{font-size:11px;font-weight:500;color:#ad9a7d}
.rank-identity>p{font-size:11px;color:#8fa4bd;margin-top:6px}
.rank-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:16px}
.rank-stats>div{border-left:1px solid #324458;padding-left:20px}
.rank-stats dt{font-size:12px;color:#a9bad0;white-space:nowrap;margin-bottom:6px}
.rank-stats dd{font-size:23px;font-weight:600;line-height:1.3;margin:0;font-variant-numeric:tabular-nums}
.rank-stats dd small{display:block;font-size:11px;font-weight:400;line-height:1.5;color:#92a8c0;margin-top:3px}
.rank-footnote{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 20px;border-top:1px solid #2b3d51;background:#0d19251f;font-size:11px;color:#90a5bd}
.rank-footnote>.text-button{font-size:11px;min-height:28px;padding:4px 0;white-space:nowrap;color:#acbfd6}
.rank-placement{margin-left:12px;color:#c1ae87}
.rank-state{display:flex;align-items:center;min-height:100px;padding:20px;font-size:13px;color:#a4b9d1}
.rank-state-error{justify-content:space-between;gap:16px}
.rank-state strong{font-size:14px;color:#cad7e7;font-weight:600}
.rank-state p{font-size:12px;color:#94abc4;margin-top:5px}
.rank-state .outline{font-size:12px;padding:6px 10px;min-height:32px;white-space:nowrap}
.match-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.match-section-heading h3{font-size:14px;font-weight:600}
.match-section-heading>span{font-size:11px}
.matches-empty,.matches-loading{padding:35px 16px;text-align:center;border:1px solid #2b3d52;border-radius:7px;background:#162333;color:#a4b6cc}
.matches-empty h3{font-size:15px;color:#d3deec}
.matches-empty p{font-size:12px;margin-top:6px}
.matches-empty .outline{font-size:12px;min-height:34px;padding:6px 12px;margin-top:14px}
.matches-loading{font-size:13px}
.history-dialog{width:470px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);padding:0;border:1px solid #3d526b;border-radius:11px;background:#172536;color:var(--text);box-shadow:0 20px 100px #030a16a6}
.history-dialog::backdrop{background:#050c17b8;backdrop-filter:blur(3px)}
.history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:20px 20px 15px}
.history-heading h2{font-size:18px;font-weight:650}
.history-heading p{font-size:11px;color:#8fa6c0;margin-top:5px}
.history-heading>.icon-button{width:30px;height:30px;font-size:23px;color:#b4c6db;margin:-2px -4px 0 0}
.history-list{overflow-y:auto;max-height:min(450px,calc(100dvh - 220px));padding:0 12px 10px}
.history-row{display:flex;gap:8px;align-items:center;border-radius:6px;padding:0 4px;margin-top:3px}
.history-row:hover{background:#22354b}
.history-select{display:flex;flex:1;min-width:0;align-items:center;justify-content:space-between;gap:14px;padding:13px 8px;border:0;border-radius:4px;background:transparent;color:#e0e8f3;text-align:left;font-size:13px}
.history-select>span{overflow-wrap:anywhere;min-width:0}
.history-select>small{font-size:11px;color:#8ea5bf;flex-shrink:0;white-space:nowrap}
.history-remove{background:transparent;border:0;border-radius:4px;width:32px;height:32px;flex-shrink:0;font-size:20px;color:#8da3bc}
.history-remove:hover{color:#ff91a0;background:#ff536714}
.history-empty{padding:35px 12px 45px;text-align:center}
.history-empty strong{font-size:14px;font-weight:500;color:#c0cfe0}
.history-empty p{font-size:12px;margin-top:6px;color:#8fa6c0}
.history-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #2e4158;padding:10px 20px;font-size:11px;color:#879eb9}
.history-footer>.text-button{font-size:12px;padding:5px 0;min-height:32px}
.history-storage-notice{font-size:11px;color:#e1bd7d;background:#9d702212;padding:10px 18px;border-top:1px solid #65533444}
@media(max-width:850px){.rank-overview{grid-template-columns:1fr;gap:16px;padding:16px}.rank-stats{padding-top:14px;border-top:1px solid #304358;gap:12px}.rank-stats>div{padding-left:15px}.rank-stats>div:first-child{padding-left:0;border-left:0}.rank-stats dd{font-size:21px}.rank-footnote{padding:7px 16px}}
@media(max-width:700px){.public-main .hero{padding:23px 0 18px}.public-main .hero h1{font-size:22px}.public-main .hero>p{font-size:12px}.public-main .hero form{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:8px;margin-top:16px}.public-main .hero form .searchbox{grid-column:1}.public-main .hero form>.primary{min-width:72px;padding:9px 13px}.history-button{grid-column:1/-1;justify-self:end;min-height:30px;padding:2px 0;font-size:12px;gap:5px}.history-button svg{width:15px;height:15px}.public-main .results-heading h2{font-size:17px}.public-main .results-heading h2 span{font-size:13px}.public-main .results-heading>.muted{font-size:10px;max-width:none}.rank-panel{margin-bottom:18px}.rank-title-row h3{font-size:21px}.rank-rating{font-size:18px}.rank-title-row{gap:12px}.rank-eyebrow{font-size:10px}.rank-identity>p{font-size:10px}.rank-stats dt{font-size:11px}.rank-stats dd{font-size:20px}.rank-stats dd small{font-size:10px}.rank-footnote{font-size:10px;align-items:flex-end;gap:8px}.rank-footnote>.text-button{font-size:10px;min-height:26px}.rank-placement{display:block;margin:2px 0 0}.rank-state{min-height:96px;padding:16px}.rank-state p{font-size:11px}.rank-state-error{gap:10px}.match-section-heading>span{font-size:10px}.history-heading{padding:18px 17px 14px}.history-heading h2{font-size:17px}.history-select{font-size:12px;gap:8px}.history-select>small{font-size:10px}.history-footer{padding:8px 17px}.history-dialog{border-radius:10px}.history-heading p{font-size:10px}}

/* Player identities use normal links, including browser Back and new tabs. */
.player-cell .player-link{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;border-radius:2px;text-underline-offset:3px}
.player-cell .player-link:hover{text-decoration:underline;text-decoration-color:#829dbb;color:#fff}
.player-cell .player-link:focus-visible{outline-offset:2px;text-decoration:underline}
