@font-face{font-family:'Special Elite';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/profile-models/special-elite-400.ttf') format('truetype')}
@font-face{font-family:'Rajdhani';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/profile-models/rajdhani-700.ttf') format('truetype')}
body.refined-profile{font-family:'Special Elite',ui-monospace,monospace!important;background:#f3f4f6}.refined-profile .fpl-page{background:#f3f4f6}.refined-hero{padding:13px 13px 12px;background-color:#080a0d;background-size:cover;background-position:center;color:#fff}.refined-identity-row{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:13px}.refined-avatar-group{position:relative;width:86px;padding-bottom:12px}.refined-avatar-frame{width:86px;height:96px;background:linear-gradient(140deg,#ffe39a,#ba8129,#ead087);padding:3px;-webkit-clip-path:polygon(50% 0,98% 25%,98% 75%,50% 100%,2% 75%,2% 25%);clip-path:polygon(50% 0,98% 25%,98% 75%,50% 100%,2% 75%,2% 25%)}.refined-avatar{width:100%;height:100%;-webkit-clip-path:polygon(50% 0,98% 25%,98% 75%,50% 100%,2% 75%,2% 25%);clip-path:polygon(50% 0,98% 25%,98% 75%,50% 100%,2% 75%,2% 25%);background:#101b2a;display:grid;place-items:center;font-size:30px}.refined-avatar img{width:100%;height:100%;object-fit:cover}.refined-affiliation{position:absolute;bottom:0;right:-6px;display:flex;flex-direction:column;align-items:center;gap:0;max-width:90px;padding:0!important;border:0;background:transparent;color:white;cursor:pointer;z-index:1}.refined-club-crest{width:31px;height:33px;padding:3px;border:1px solid #e8c772;background:#081828;border-radius:8px;display:grid;place-items:center}.refined-club-crest img{width:100%;height:100%;object-fit:contain}.refined-club-name{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;padding:3px 6px;border:1px solid #bfa252;background:#081828;border-radius:999px;font-size:8px;line-height:1.3}.refined-identity{min-width:0}.refined-identity h1{font:400 19px/1.3 'Special Elite',monospace;color:#fff;margin:0 0 5px;overflow-wrap:anywhere;text-shadow:0 2px 7px #000}.refined-verified{width:17px;height:17px;display:inline-block;vertical-align:middle;margin-left:3px}.refined-tags{display:flex;align-items:center;gap:4px;min-width:0}.refined-username{font-size:10px;padding:4px 7px;border:1px solid #7893b166;border-radius:999px;background:#1e3a5fcc;overflow-wrap:anywhere;min-width:0}.refined-kind{font-size:9px;color:#e2eaf3;margin-top:5px;line-height:1.4}.refined-form{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.refined-form span{display:grid;place-items:center;width:19px;height:19px;font-size:10px;background:#8792a4;color:#fff;border-radius:50%}.refined-form .win{background:#18966e}.refined-form .loss{background:#dd2939}.refined-form .absence{background:#cb7a17}.refined-offers{display:inline-block;font-size:8px;color:#a8f3cb;margin-top:4px}.refined-actions{display:flex;justify-content:center;gap:7px;margin-top:9px}.refined-actions a,.refined-actions button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:5px 11px;border:1px solid #d7e2f3;border-radius:999px;background:#03071255;color:#fff;font-size:10px;text-decoration:none}.refined-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.refined-actions a:focus-visible,.refined-actions button:focus-visible,.refined-affiliation:focus-visible{outline:2px solid #f8d377;outline-offset:3px}
.refined-profile .fpl-follow-card{padding:10px!important;margin-bottom:9px!important}.refined-profile .fpl-follow-card h2{font-size:13px!important;margin-bottom:6px!important}.refined-profile .fpl-follow-row{min-height:51px!important;padding:6px!important}.refined-profile .fpl-follow-row img,.refined-profile .fpl-follow-row>div:first-child{width:34px!important;height:34px!important}.refined-profile .fpl-follow-name{font-size:11px!important}.refined-profile .fpl-follow-count{font-size:9px!important}.refined-profile .fpl-profile-tabs button{font-size:11px!important;min-height:42px!important;height:42px!important;padding:8px 4px!important}.refined-profile .fpl-career-panel{padding:9px 10px 12px!important}.refined-profile .fpl-medal-bar{min-height:40px!important;padding:5px 9px!important}.refined-profile .fpl-medal-bar button{width:28px!important;height:28px!important;font-size:10px!important}.refined-profile #panel-carreira>div.flex.justify-center{margin-bottom:8px!important}
.refined-career-summary{display:grid;grid-template-columns:23% 1fr;column-gap:6px;row-gap:4px;padding:10px 16px 9px;background:linear-gradient(115deg,#0b2038,#1e3a5f);border:1px solid #3d5b7c;-webkit-clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%);clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%);color:#fff;min-height:94px;margin-top:8px!important;margin-bottom:8px!important}.refined-game-count{grid-row:1/3;align-self:center;text-align:center;padding-right:6px;border-right:1px solid #ffffff33}.refined-game-count strong{display:block;font:700 39px/1 'Rajdhani',sans-serif;letter-spacing:-1px}.refined-game-count span{font-size:10px}.refined-outcomes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;text-align:center;gap:3px}.refined-outcomes div+div{border-left:1px solid #ffffff1c}.refined-outcomes span{font-size:11px;line-height:1}.refined-outcomes b{display:block;font:700 24px/1.2 'Rajdhani',sans-serif}.refined-outcomes .win span{color:#34d399}.refined-outcomes .draw span{color:#bbc8d9}.refined-outcomes .loss span{color:#fb6672}.refined-outcomes .absence span{color:#ffb66b}.refined-goals{display:flex;gap:6px;align-items:center;border-top:1px solid #ffffff22;padding-top:5px;min-width:0}.refined-goals>div{display:flex;gap:4px;align-items:center;flex:1;min-width:0}.refined-goals svg{width:17px;height:17px;flex-shrink:0}.refined-goals span{font-size:8px;line-height:1.4}.refined-goals b{font:700 15px/1 'Rajdhani';margin-left:2px;color:white}.refined-goals .goals-for{color:#32cf89}.refined-goals .goals-against{color:#ff6477}.refined-goals>div>span{color:#e5edf7}
.refined-profile .fpl-stat-tile{min-height:57px!important;padding:8px 6px!important;border-radius:10px!important}.refined-profile .fpl-stat-tile>div:first-child{font-size:9px!important;line-height:1.35!important}.refined-profile .fpl-stat-tile>div:last-child{font:700 22px/1.2 'Rajdhani',sans-serif!important;margin-top:3px}.refined-profile .fpl-rival-card{min-height:0!important;padding:8px!important;border-radius:10px!important}.refined-profile .fpl-rival-card>div:first-child{display:flex;align-items:center;gap:4px;font-size:9px!important;text-transform:none!important;letter-spacing:0!important;line-height:1.3}.refined-rival-art{width:23px;height:23px;flex-shrink:0}.refined-profile .fpl-rival-card:first-child .refined-rival-art{color:#078d83}.refined-profile .fpl-rival-card:last-child .refined-rival-art{color:#314861}.refined-profile .fpl-rival-card img{width:32px!important;height:32px!important}.refined-profile .fpl-rival-card .mt-2{margin-top:5px!important}.refined-profile .fpl-rival-card a.block{font-size:10px!important;text-decoration:none!important}.refined-profile .fpl-rival-card .text-gray-600,.refined-profile .fpl-rival-card .text-gray-500{font-size:9px!important;line-height:1.4}.refined-profile .fpl-game-card{padding:8px!important}.refined-profile .fpl-game-score{font:700 22px 'Rajdhani',sans-serif!important}.refined-profile .fpl-game-meta{font-size:9px!important}
.refined-affiliation-modal[hidden]{display:none!important}.refined-affiliation-modal{position:fixed;inset:0;z-index:10040;display:grid;place-items:center;padding:14px}.refined-affiliation-backdrop{position:absolute;inset:0;background:#081426a8;border:0}.refined-affiliation-sheet{position:relative;width:min(100%,420px);max-height:calc(100svh - 36px);overflow:auto;border-radius:15px;background:#fff;box-shadow:0 20px 70px #0005;color:#1d334d;overscroll-behavior:contain;font-family:'Special Elite',monospace}.refined-affiliation-sheet header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;border-bottom:1px solid #e5e7eb;background:#142c49;color:white}.refined-affiliation-sheet h2{font-size:16px;margin:0}.refined-affiliation-sheet header button{background:transparent;border:0;color:white;font-size:26px;min-width:34px;min-height:34px}.refined-affiliation-content{padding:10px}.refined-affiliation-row{display:flex;align-items:center;gap:9px;padding:11px 8px;text-decoration:none;color:inherit;font-size:12px;border-bottom:1px solid #edf1f5}.refined-affiliation-row img{width:37px;height:37px;object-fit:contain;flex-shrink:0}.refined-affiliation-row>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.refined-affiliation-row small{display:block;font-size:10px;line-height:1.5;color:#667689;margin-top:4px}
@media(max-width:360px){.refined-identity-row{grid-template-columns:73px minmax(0,1fr);gap:10px}.refined-avatar-group{width:72px}.refined-avatar-frame{width:72px;height:82px}.refined-identity h1{font-size:16px}.refined-hero{padding:11px 10px}.refined-kind{font-size:8px}.refined-username{font-size:9px}.refined-career-summary{padding:10px 11px;grid-template-columns:21% 1fr;gap:3px}.refined-goals{gap:3px}.refined-goals span{font-size:7px}.refined-game-count strong{font-size:35px}.refined-outcomes b{font-size:23px}.refined-rival-art{width:20px;height:20px}.refined-profile .fpl-profile-tabs button{font-size:10px!important}}

.refined-goals span{font-size:9px!important}.refined-game-count{min-width:0}.refined-game-count strong[data-count-digits="4"]{font-size:28px}.refined-game-count strong[data-count-digits="5"]{font-size:22px}.refined-game-count strong[data-count-digits="6"],.refined-game-count strong[data-count-digits="7"]{font-size:18px}.refined-outcomes b[data-count-digits="4"],.refined-outcomes b[data-count-digits="5"]{font-size:17px}

/* R20: integrated identity, compact lists and frozen ranking columns. */
.refined-profile #fpl-player-ranking-chip{margin:8px 0 0!important;text-align:right!important}.refined-profile #fpl-player-ranking-chip button{background:rgba(8,22,39,.88)!importantcolor:#f5d78e!importantborder-color:#b69246!importantpadding:7px 10px!important;font-size:10px!important;min-height:32px!important}
.refined-profile .refined-kind{display:inline-flex!important;align-items:center!important;gap:5px!important;background:#1e3a5f!important;color:#fff!important;border:1px solid #526d8d!important;border-radius:999px!important;padding:5px 8px!important;margin-top:5px!important;font-size:10px!important;line-height:1.3!important}
.refined-profile .fpl-champ-card{position:relative!important;padding:9px 10px!important;margin-bottom:8px!important;border-radius:12px!important}.refined-profile .fpl-champ-main{padding:0!important;gap:9px!important}.refined-profile .fpl-champ-logo{width:36px!important;height:40px!important}.refined-profile .fpl-champ-name{font-size:13px!important}.refined-profile .fpl-champ-meta{font-size:10px!important}.refined-profile .fpl-champ-team{margin:5px 0 0 45px!important;padding:0!important;font-size:11px!important;min-height:22px!important}.refined-profile .fpl-champ-team img{width:21px!important;height:21px!important}.refined-profile .fpl-champ-withdraw{border:0!important;padding:3px 0 0!important;margin:0!important;text-align:right!important}.refined-profile .fpl-champ-withdraw button{font-size:10px!important;min-height:32px!important;padding:4px 7px!important}.refined-profile .fpl-finished-label{padding:4px 0 0 45px!important;font-size:10px!important}
.refined-profile #panel-mvps{padding:12px!important}.refined-profile .fpl-mvp-heading{font-size:13px!important;margin-bottom:5px!important;color:#1e3a5f!important}.refined-profile #panel-mvps section{margin-bottom:12px!important}.refined-profile #panel-mvps .fpl-mvp-row{padding:8px 0!important;gap:8px!important;font-size:11px!important}.refined-profile #panel-mvps .fpl-mvp-avatar{width:32px!important;height:32px!important}.refined-profile #panel-mvps .award-meta{font-size:9px!important;white-space:normal!important}.refined-profile .fpl-mvp-score{font-size:11px!important;white-space:nowrap!important}
.refined-profile #panel-ranking-xclan{padding:12px!important;min-width:0!important}.refined-profile #panel-ranking-xclan h2{font-size:14px!important}.refined-profile #fpl-xclan-rank-list{display:block!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;max-width:100%!important;border:1px solid #dce4ec!important;border-radius:10px!important}
.refined-ranking-table{border-collapse:separate!important;border-spacing:0!important;table-layout:fixed!important;width:630px!important;font-size:11px!important;font-variant-numeric:tabular-nums!important}.refined-ranking-table th,.refined-ranking-table td{padding:8px 4px!important;width:48px!important;text-align:center!important;border-bottom:1px solid #e5eaf0!important;background:#fff!important}.refined-ranking-table thead th{background:#1e3a5f!important;color:#fff!important;font-weight:700!important}.refined-ranking-table th:first-child,.refined-ranking-table td:first-child{position:sticky!important;left:0!important;width:30px!important;z-index:2!important}.refined-ranking-table th:nth-child(2){position:sticky!important;left:30px!important;width:168px!important;z-index:2!important;text-align:left!important;border-right:1px solid #dce4ec!important}.refined-ranking-table thead th:first-child,.refined-ranking-table thead th:nth-child(2){z-index:3!important}.refined-ranking-table .is-current-player>*{background:#e6f5f2!important}.refined-ranking-table .rank-identity{display:flex!important;gap:6px!important;align-items:center!important;min-width:0!important;text-decoration:none!important;color:#182032!important}.rank-identity img,.rank-initial{width:26px!important;height:26px!important;border-radius:50%!important;object-fit:cover!important;flex:none!important}.rank-initial{display:grid!important;place-items:center!important;background:#dbe4ee!important}.rank-name{min-width:0!important}.rank-name b,.rank-name small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:124px!important}.rank-name b{font-size:10px!important}.rank-name small{font-size:9px!important;font-weight:400!important;color:#64748b!important}.rank-points{font-weight:700!important;color:#0f766e!important}

.refined-profile #panel-mvps .fpl-mvp-row{min-height:54px!important}.refined-profile #panel-mvps .fpl-mvp-row b{font-size:12px!important}
.refined-profile .fpl-champ-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:7px!important;row-gap:4px!important}.refined-profile .fpl-champ-main{grid-column:1/-1!important}.refined-profile .fpl-champ-team{margin:0 0 0 45px!important;min-width:0!important}.refined-profile .fpl-champ-team span{overflow-wrap:anywhere!important}.refined-profile .fpl-champ-withdraw{padding:0!important;align-self:center!important}.refined-profile .fpl-champ-withdraw form{margin:0!important;display:flex!important}.refined-profile .fpl-champ-withdraw button{height:32px!important;min-height:32px!important;line-height:1!important;display:flex!important;align-items:center!important;gap:3px!important}.refined-profile .fpl-champ-withdraw .material-symbols-rounded{font-size:14px!important;line-height:1!important}.refined-profile .fpl-finished-label{grid-column:1/-1!important}
.refined-profile .fpl-champ-card{grid-template-columns:minmax(0,1fr) 76px!important}.refined-profile .fpl-champ-withdraw,.refined-profile .fpl-champ-withdraw form,.refined-profile .fpl-champ-withdraw button{width:auto!important;max-width:76px!important;min-width:0!important}.refined-profile .fpl-champ-main .min-w-0{min-width:0!important}.refined-profile .fpl-champ-name{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.3!important}
