/* Scoped profile dashboard. The existing portal navigation and routes are preserved. */
body.profile-view{min-height:100vh;background:#020c19 url('assets/profile-duel.png') center top/cover scroll no-repeat}
body.profile-view:before{content:none}
body.profile-view main{max-width:1270px;padding:26px 24px 30px;width:100%}
.profile-view .topbar{background:#020d1bf5}.profile-view .account-chip{border-color:#00cfff;box-shadow:0 0 18px #00b9ff18}
.pf-dashboard{--pf-cyan:#19d4ff;position:relative;padding:20px;background:linear-gradient(130deg,#031223ed,#020c19f5);border:1px solid #1381b0;box-shadow:0 18px 80px #000c,inset 0 0 60px #00172b;clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px)}
.pf-dashboard:before{content:"";position:absolute;inset:0 28px auto;height:2px;background:linear-gradient(90deg,#00c8ff,transparent 35%,transparent 65%,#00c8ff)}
.pf-dashboard svg{width:24px;height:24px;flex-shrink:0}.pf-dashboard small{font-size:12px;color:#a0bbd0}
.pf-heading{position:relative;isolation:isolate;padding:12px 14px 22px;margin-bottom:16px;border-bottom:1px solid #13a9e0;overflow:hidden}
.pf-heading:before{content:"";position:absolute;z-index:-1;inset:-20px -20px 0;background:linear-gradient(90deg,#111216 25%,#11121680 70%,#11121640),url('assets/profile-duel.png') 75% 35%/cover;opacity:.65}
.pf-heading:after{content:"";position:absolute;bottom:0;right:10px;width:32%;height:7px;transform:skewX(45deg);background:linear-gradient(90deg,transparent,#00bdff)}
.pf-breadcrumb{font:600 11px Oxanium,'Segoe UI',sans-serif;letter-spacing:1.6px;color:#a9cce5}.pf-breadcrumb span{margin:0 13px;color:var(--pf-cyan)}
.pf-heading h1{font:800 clamp(30px,3vw,42px)/1.2 Oxanium,'Segoe UI',sans-serif;letter-spacing:1px;margin-top:10px}.pf-heading h1 span{color:#c6efff}
.pf-heading p{font-size:16px;color:#b8d3e9;margin-top:5px}
.pf-back{position:absolute;right:12px;top:9px;background:#03162bb0;border:1px solid #235477;border-radius:3px;padding:8px 13px;color:#b5ddf7;font:600 11px Oxanium,'Segoe UI',sans-serif;min-height:34px}.pf-back:hover{border-color:var(--pf-cyan);color:white}
.pf-heading-tag{position:absolute;right:14px;bottom:23px;font-size:11px;letter-spacing:2px;color:#9bc3de}.pf-heading-tag b{margin-left:12px;color:var(--pf-cyan)}
.pf-identity{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pf-player,.pf-progression{position:relative;display:flex;align-items:center;gap:20px;min-width:0;min-height:180px;padding:22px;background:linear-gradient(120deg,#07263eaa,#031022e6);border:1px solid #15547b}
.pf-player:after{content:"";position:absolute;right:0;top:0;width:48px;height:3px;background:var(--pf-cyan)}
.pf-player-info{min-width:0;flex:1}.pf-eyebrow{display:block;font:600 10px Oxanium,'Segoe UI',sans-serif;color:#81aac8;letter-spacing:1.5px}
.pf-player h2{font:700 clamp(23px,2.4vw,30px)/1.2 Oxanium,'Segoe UI',sans-serif;overflow-wrap:anywhere;margin:7px 0}
.pf-avatar{position:relative;width:102px;height:102px;padding:7px;border:2px solid #03caff;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 18px #00bbff38,inset 0 0 0 4px #021022;flex-shrink:0;color:#83c6f2}
.pf-avatar:after{content:"";position:absolute;inset:-8px;border:1px solid #0886c1;border-radius:50%;border-left-color:transparent;border-right-color:transparent;transform:rotate(-30deg)}
.pf-avatar img{width:100%;height:100%;border-radius:50%;object-fit:contain}.pf-avatar svg{width:55px;height:55px}
.pf-auth{font-size:14px;color:#35e5a0;display:flex;align-items:center;gap:6px}.pf-auth span{height:6px;width:6px;flex-shrink:0;border-radius:50%;background:#35e5a0;box-shadow:0 0 8px #35e5a055}
.pf-player dl{display:flex;gap:20px;border-top:1px solid #493426;padding-top:10px;margin:12px 0 0}.pf-player dl>div{min-width:0}.pf-player dt{font-size:10px;color:#9a9da3;letter-spacing:.5px}.pf-player dd{margin:2px 0 0;font-size:13px;color:#d5d1cc;overflow-wrap:anywhere}
.pf-progression{gap:20px;padding:18px}.pf-level{width:125px;flex-shrink:0;text-align:center}
.pf-hex{width:76px;height:86px;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:linear-gradient(#ff8500,#a34b1d);position:relative;display:flex;flex-direction:column;justify-content:center;margin:0 auto 10px}.pf-hex:before{position:absolute;inset:2px;content:"";background:radial-gradient(ellipse,#3d2513,#111216);clip-path:inherit}.pf-hex span,.pf-hex strong{position:relative}.pf-hex span{font:600 10px Oxanium,'Segoe UI',sans-serif}.pf-hex strong{font:800 30px Oxanium,'Segoe UI',sans-serif}
.pf-dashboard progress{display:block;appearance:none;width:100%;height:5px;margin:8px 0;border:0;border-radius:5px;background:#0b3553;overflow:hidden}.pf-dashboard progress::-webkit-progress-bar{background:#0b3553}.pf-dashboard progress::-webkit-progress-value{background:linear-gradient(90deg,#0094ed,#49edff);border-radius:5px}.pf-dashboard progress::-moz-progress-bar{background:#19d4ff}
.pf-subtle{display:block;font-size:9px;letter-spacing:1px;color:#91b2ca;margin-top:3px}
.pf-rank{display:flex;align-items:center;gap:10px;min-width:0;flex:1;border-left:1px solid #1878a0;padding-left:14px}.pf-rank>div{min-width:0;flex:1}.pf-rank-emblem{object-fit:contain;width:98px;height:114px;flex-shrink:0;filter:drop-shadow(0 3px 10px #00b6ff25)}
.pf-rank strong{display:block;font:700 18px/1.3 Oxanium,'Segoe UI',sans-serif;margin:7px 0;color:#edf7ff;overflow-wrap:anywhere}.pf-rank small{font-size:11px}
.pf-career-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 2px 10px;font:600 11px Oxanium,'Segoe UI',sans-serif;letter-spacing:1px;color:#a1bfd5}.pf-career-heading b{color:#00bfff;margin-left:10px}
.pf-wallet{display:flex;align-items:center;gap:8px;letter-spacing:0;font-size:10px}.pf-wallet svg{color:#4dcfff;width:18px;height:18px}.pf-wallet strong{font-size:16px;color:#edf8ff}
.pf-general,.pf-performance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pf-stat{position:relative;display:flex;align-items:center;gap:16px;min-width:0;min-height:111px;padding:17px;background:linear-gradient(120deg,#062139,#020e1c);border:1px solid #155a82;border-radius:2px 14px 2px 2px;transition:border-color .18s,background .18s,transform .18s}
.pf-stat:after{content:"";position:absolute;left:17px;bottom:-1px;width:34px;height:2px;background:#00beff;box-shadow:0 0 10px #00bfff66}.pf-stat:hover{border-color:#18b8ed;transform:translateY(-2px);background:#072b43}
.pf-icon{display:grid;place-items:center;width:50px;height:50px;border:1px solid #09699a;border-radius:14px;background:radial-gradient(ellipse,#03457460,#01162a);color:#17d2ff;flex-shrink:0}.pf-icon svg{width:29px;height:29px}.pf-stat>div{min-width:0}.pf-stat strong{display:block;font:800 30px/1.2 Oxanium,'Segoe UI',sans-serif;letter-spacing:-1px;overflow-wrap:anywhere}.pf-stat div>span{display:block;font-size:12px;font-weight:700;color:#afcfe6;letter-spacing:.4px;margin-bottom:2px}.pf-stat small{font-size:11px;color:#88acc5;margin-top:3px}
.pf-stat.positive .pf-icon,.pf-stat.positive div>span{color:#36eba1}.pf-stat.positive:after{background:#2fea9b}.pf-stat.negative .pf-icon,.pf-stat.negative div>span{color:#ff708b}.pf-stat.negative:after{background:#ff708b}
.pf-section{border:1px solid #155a80;background:#021426d9;padding:16px;margin-top:16px;border-radius:3px}
.pf-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.pf-section-heading h2{display:flex;align-items:center;gap:10px;font:700 16px Oxanium,'Segoe UI',sans-serif}.pf-section-heading h2 svg{color:#8cceef;width:20px;height:20px}.pf-section-heading i{font-size:22px;color:#00aff0;margin-left:5px}.pf-section-heading>span{font-size:10px;letter-spacing:1px;color:#80a6c2}
.pf-performance .pf-stat{min-height:96px;padding:13px;gap:12px;background:#031a2e;border-color:#12486b}.pf-performance .pf-icon{width:43px;height:43px;border-radius:50%}.pf-performance .pf-icon svg{width:24px;height:24px}.pf-performance .pf-stat strong{font-size:28px}
.pf-ratios{display:flex;align-items:center;gap:32px;margin-top:16px;padding-top:10px;border-top:1px solid #12364f;font-size:12px;color:#a6c3d9}.pf-ratios b{margin-left:10px;color:#edf7ff}.pf-winrate{width:38%;max-width:340px}.pf-winrate>span{display:flex;justify-content:space-between}.pf-winrate progress{height:4px}.pf-winrate progress::-webkit-progress-value{background:#2ddd9a}
.pf-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.pf-filters{display:flex;gap:4px}.pf-filters button{border:1px solid transparent;background:none;padding:7px 12px;min-height:32px;color:#9ebbd2;font:600 10px Oxanium,'Segoe UI',sans-serif;border-radius:3px}.pf-filters button[aria-pressed=true]{border-color:#1679a4;background:#04304a;color:#64deff}.pf-filters button:hover{color:white}
.pf-table-wrap{overflow:auto;max-width:100%;border:1px solid #124363;scrollbar-color:#14658f #021325}
.pf-history table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}.pf-history th{font:600 10px Oxanium,'Segoe UI',sans-serif;letter-spacing:.5px;color:#92c2e4;padding:11px 12px;background:#04263f;text-align:center;border-bottom:1px solid #14618a}
.pf-history td{padding:10px 12px;text-align:center;border-bottom:1px solid #102e44;font-variant-numeric:tabular-nums}.pf-history th:first-child,.pf-history td:first-child,.pf-history td:nth-child(2),.pf-history th:nth-child(2){text-align:left}.pf-history tr:nth-child(even){background:#07203766}.pf-history tbody tr:hover{background:#09314a80}.pf-history tr:last-child td{border-bottom:0}.pf-history td.pf-kills{color:#d2efff;font-weight:700}
.pf-result{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:105px;padding:4px 9px;border:1px solid #28506e;border-radius:4px;font:700 10px Oxanium,'Segoe UI',sans-serif;letter-spacing:.3px}.pf-result svg{width:15px;height:15px}.pf-result.win{background:#043c2d;color:#40efa9;border-color:#0a6347}.pf-result.loss{background:#39182a;color:#ff7c92;border-color:#6c3045}.pf-result.draw{background:#112b40;color:#adcce2}
.pf-map{display:flex;align-items:center;gap:9px}.pf-map>svg{width:19px;height:19px;color:#47bde9}.pf-map b{font-weight:600;font-size:14px}.pf-map small{font-size:11px;color:#8bb7d6;margin-top:2px}.pf-history time small{font-size:11px;color:#86abc7}
.pf-unavailable{font-size:12px;color:#91afc5}.pf-history-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;margin-top:9px}.pf-history-bottom .button{padding:8px 13px;font-size:10px;min-height:32px;gap:4px;background:#05223a}
.pf-note{font-size:12px;color:#91b0c8;padding-top:8px;border-top:1px solid #12354d}
.pf-actions{display:flex;justify-content:center;align-items:center;gap:14px;border:0;padding:20px 0 0;margin:0}.pf-actions .button{min-width:220px;min-height:42px;gap:12px;font-size:11px;background:#06243d}.pf-actions .button:first-child{border-color:#09b7f5;box-shadow:inset 0 0 16px #008dff22}.pf-actions .button:last-child{background:#111216}.pf-actions svg{width:18px;height:18px}
.pf-empty,.pf-loading{padding:40px 20px;text-align:center;color:#bdd5e7}.pf-empty small{margin-top:6px}.pf-loading span{display:block;width:25px;height:25px;margin:0 auto 15px;border:2px solid #164967;border-top-color:#0ed5ff;border-radius:50%;animation:pfSpin .9s linear infinite}
@keyframes pfSpin{to{transform:rotate(360deg)}}@keyframes pfAppear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}#fpsProfile[aria-busy=false]{animation:pfAppear .3s ease-out}
@media(min-width:1800px){body.profile-view main{max-width:1330px}}
@media(max-width:1100px){.pf-rank-emblem{width:73px;height:96px}.pf-player,.pf-progression{padding:18px;gap:14px}.pf-level{width:95px}.pf-avatar{width:82px;height:82px}.pf-player dl{gap:12px}.pf-stat{gap:11px;padding:13px}.pf-icon{width:42px;height:42px}.pf-stat strong{font-size:27px}.pf-player h2{font-size:24px}}
@media(max-width:900px){body.profile-view main{padding:18px 16px}.pf-identity{grid-template-columns:1fr}.pf-player{min-height:160px}.pf-progression{min-height:155px;justify-content:center}.pf-level{width:32%;max-width:180px}.pf-rank{flex:0 1 330px;padding-left:24px}.pf-rank-emblem{width:100px;height:110px}.pf-general,.pf-performance{grid-template-columns:repeat(2,minmax(0,1fr))}.pf-stat{min-height:100px;padding:16px;gap:18px}.pf-section-heading>span{display:none}.pf-history-toolbar>small{font-size:10px}.pf-heading-tag{display:none}}
@media(max-width:540px){body.profile-view{background-position:54% top;background-attachment:scroll}body.profile-view main{padding:12px 8px}.pf-dashboard{padding:12px}.pf-heading{padding:10px 4px 18px}.pf-heading h1{font-size:30px;margin-top:18px}.pf-heading p{font-size:14px}.pf-breadcrumb{font-size:9px;letter-spacing:1px}.pf-back{right:0;top:4px;padding:5px 8px;font-size:9px;min-height:30px}.pf-player{padding:18px 12px;gap:15px}.pf-player h2{font-size:22px}.pf-avatar{width:68px;height:68px}.pf-player dl{flex-wrap:wrap;gap:8px 20px}.pf-eyebrow{font-size:10px}.pf-auth{font-size:12px}.pf-player dd{font-size:12px}.pf-progression{padding:14px 8px;gap:12px}.pf-level{width:80px}.pf-rank{gap:6px;padding-left:10px}.pf-rank-emblem{width:70px;height:95px}.pf-rank strong{font-size:14px}.pf-rank small{font-size:10px}.pf-career-heading{font-size:9px;gap:8px;margin-top:16px}.pf-career-heading b{display:none}.pf-wallet{font-size:8px;gap:5px}.pf-wallet strong{font-size:13px}.pf-general,.pf-performance{gap:8px}.pf-stat,.pf-performance .pf-stat{min-height:100px;padding:12px 9px;gap:8px}.pf-stat strong,.pf-performance .pf-stat strong{font-size:25px}.pf-stat div>span{font-size:10px;letter-spacing:0}.pf-stat small{font-size:11px;line-height:1.25}.pf-icon,.pf-performance .pf-icon{width:32px;height:36px;border-radius:9px}.pf-icon svg{width:22px;height:22px}.pf-section{padding:10px;margin-top:12px}.pf-section-heading{margin-bottom:12px}.pf-section-heading h2{font-size:12px;gap:7px}.pf-section-heading i{font-size:16px;margin:0}.pf-section-heading h2 svg{width:17px;height:17px}.pf-ratios{gap:8px 18px;flex-wrap:wrap}.pf-winrate{width:100%;max-width:none}.pf-history-toolbar{flex-wrap:wrap;gap:5px}.pf-filters button{padding:7px 11px}.pf-history td{padding:9px 10px}.pf-actions{flex-direction:column;padding-top:16px;gap:9px}.pf-actions .button{width:100%;min-width:0}.pf-note{font-size:11px;line-height:1.4}}
@media(prefers-reduced-motion:reduce){.pf-dashboard *{animation:none!important;transition:none!important}.pf-stat:hover{transform:none}}

/* Shared, allowlisted identity artwork. The nickname is always live text. */
.identity-badges{display:inline-flex;align-items:center;gap:5px;flex:none;vertical-align:middle}
.identity-badges img{display:block;object-fit:contain;max-width:none}
.identity-nameplate{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle}
.identity-caption{display:flex;align-items:center;gap:8px;min-width:0}
.identity-nick{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.identity-nameplate.has-ribbon{position:relative;width:512px;max-width:100%;aspect-ratio:4/1}
.identity-ribbon{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.has-ribbon .identity-caption{position:relative;margin-left:26%;width:64%;padding:3px 6px;background:rgba(2,10,20,.86);border-radius:4px;font-size:clamp(14px,1.5vw,24px);text-shadow:0 1px 3px #000}
.pf-player-name{width:100%;margin:0!important}.pf-player-info{min-width:0}
#rankingResults .identity-nameplate.has-ribbon{width:340px;min-width:260px}
#rankingResults .identity-caption{font-size:17px}
@media(max-width:600px){.identity-badges img{width:21px;height:21px}.has-ribbon .identity-caption{gap:3px;padding:2px 4px;font-size:14px}}
