/* Public player card — a separate dialog preserves the underlying leaderboard or gang. */
.sf-player-gang{display:flex;align-items:center;gap:10px;width:100%;max-width:310px;margin:15px auto 0;padding:10px 12px;border:1px solid #79763266;border-radius:13px;background:linear-gradient(125deg,#39391966,#141b0d);color:#f1f4d9;text-align:left;min-height:62px}.sf-player-gang>img{width:40px;height:44px;object-fit:contain;flex-shrink:0}.sf-player-gang>span{flex:1;min-width:0}.sf-player-gang small{display:block;font-size:8px;letter-spacing:.035em;color:#abb78d;margin-bottom:5px}.sf-player-gang strong{display:block;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.sf-player-gang>b{font-size:23px;color:#fef200;font-weight:400}.sf-player-gang:hover{border-color:#d5cf43;background-color:#fef2000c}.sf-player-no-gang{font-size:10px;color:#9da885;margin:9px 0 0}
.sf-gang-members .sf-gang-member{padding:0;gap:0;overflow:visible}.sf-member-open{display:flex;align-items:center;gap:11px;flex:1;min-width:0;padding:13px 12px;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:70px}.sf-member-open .sf-avatar{flex-shrink:0}.sf-member-open .sf-grow{flex:1;min-width:0}.sf-member-open strong{display:block;overflow-wrap:anywhere;line-height:1.4}.sf-member-open small{display:block;font-size:10px;color:#929780;font-weight:400;line-height:1.5;margin-top:3px}.sf-member-open>b{text-align:right;font-size:13px;color:#fef200;flex-shrink:0}.sf-member-arrow{color:#b3b784;font-size:22px;font-weight:400}.sf-member-open:hover{background:#fef20009}.sf-member-open:active{background:#fef20014}.sf-gang-member>.sf-icon-btn{margin-right:10px;flex-shrink:0;min-width:44px;min-height:44px}
.sf-player-dialog{padding:0;border:1px solid #a29a35;border-radius:23px;width:calc(100% - 24px);max-width:450px;max-height:calc(100dvh - 28px);margin:auto;background:#0b0e08;color:#f4f5e9;box-shadow:0 24px 100px #000c,0 0 30px #fef20012;overflow:hidden;font-family:Onest,Arial,sans-serif}
.sf-player-dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}
.sf-player-dialog *{box-sizing:border-box}.sf-player-dialog button{font:inherit;cursor:pointer}.sf-player-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 30px)}
.sf-player-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;flex-shrink:0;padding:8px 11px;border-bottom:1px solid #fef20018;background:#13160d}.sf-player-toolbar>span{font-size:9px;letter-spacing:.15em;color:#a1aa82;text-align:center}.sf-player-back,.sf-player-close{background:transparent;color:#fef200;border:0;display:flex;align-items:center;justify-content:center;min-height:42px;min-width:42px;border-radius:10px}.sf-player-back{justify-self:start;gap:5px;font-size:11px!important;line-height:1;padding:0 7px;white-space:nowrap}.sf-player-back-icon{display:block;flex:none;width:16px;height:16px}.sf-player-back>span{font-size:11px;line-height:1;color:#e5e9d0}.sf-player-close{justify-self:end;font-size:25px!important}.sf-player-toolbar button:hover{background:#fef20012}
.sf-player-body{overflow-y:auto;overscroll-behavior:contain;padding:20px 17px 15px;background:radial-gradient(ellipse 90% 230px at 50% 0,#7d702b30,transparent),linear-gradient(145deg,#171c0e,#0b1009 55%);scrollbar-width:thin;scrollbar-color:#807930 #14170e;min-height:260px}
.sf-player-identity{text-align:center;position:relative;padding:0 0 20px}.sf-player-portrait{position:relative;width:98px;margin:0 auto 16px}.sf-player-avatar{width:98px;height:98px;border-radius:29px;border:2px solid #f7ee55;background:linear-gradient(140deg,#616534,#262d19);font-size:34px;color:#fff667;box-shadow:0 0 0 6px #f4e84008,0 5px 36px #f4e84022}.sf-player-identity h1{font-size:24px;font-weight:800;letter-spacing:-.04em;line-height:1.3;margin:0;overflow-wrap:anywhere}
.sf-player-wallet{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid #67692e80;background:linear-gradient(120deg,#3a3e1988,#161e1177);border-radius:15px;padding:15px 0;margin-bottom:12px}.sf-player-wallet>div{text-align:center;min-width:0;padding:0 12px}.sf-player-currency{display:flex;align-items:center;justify-content:center;gap:6px;color:#aeb68d;font-size:9px;font-weight:650;white-space:nowrap}.sf-player-currency svg{width:18px;height:18px;color:#fef200}.sf-player-currency i{font-style:normal;font-size:6px;line-height:14px;border:1px solid #fef20066;border-radius:4px;padding:0 2px;color:#fef200}.sf-player-wallet strong{display:block;font-size:24px;line-height:1.25;color:#fff344;font-weight:850;letter-spacing:-.04em;margin-top:7px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sf-player-progress{height:7px;background:#333b26;border-radius:7px;overflow:hidden;margin:10px 0}.sf-player-progress>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#acb832,#fef200);box-shadow:0 0 9px #fff43b4d}
.sf-player-section-title{display:flex;align-items:center;gap:8px;margin-bottom:13px}.sf-player-section-title>span{color:#fef200;font-size:18px;line-height:1}.sf-player-section-title h2{margin:0;font-size:13px;font-weight:750;color:#f0f3dc}.sf-player-section-title>b{margin-left:auto;font-size:12px;color:#fef200}.sf-player-goal{padding:14px;border:1px solid #7c783766;border-radius:15px;background:linear-gradient(135deg,#2f331640,#10160c);margin-bottom:23px}.sf-player-goal-main{display:flex;gap:12px;align-items:center;min-width:0}.sf-player-goal-art{width:92px;height:92px;border-radius:12px;flex-shrink:0;overflow:hidden;display:grid;place-items:center}.sf-player-goal-art img{width:100%;height:100%;object-fit:contain}.sf-player-goal-main>div:last-child{min-width:0}.sf-player-goal h3{font-size:12px;font-weight:750;line-height:1.5;margin:0 0 6px;overflow-wrap:anywhere}.sf-player-goal-main>div>span{font-size:13px;font-weight:750;color:#f1ee9c}.sf-player-goal small{font-size:9px;font-weight:400;color:#a7b08b}.sf-player-goal-main p{font-size:9px;color:#a7b08b;line-height:1.5;margin:5px 0 0}.sf-player-goal>.sf-player-progress{margin-bottom:0}.sf-player-goal-empty{display:flex;gap:12px;align-items:center;padding:2px 0}.sf-player-goal-empty>span{width:43px;height:46px;display:grid;place-items:center;border:1px dashed #656633;border-radius:12px;color:#aaa857;font-size:23px;flex-shrink:0}.sf-player-goal-empty p{margin:0;font-size:12px;color:#cdd3b4;line-height:1.5}.sf-player-goal-empty small{display:block;margin-top:3px}
.sf-player-record-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.sf-player-record{position:relative;min-width:0;padding:12px 11px;border:1px solid #48512d;border-radius:13px;background:linear-gradient(130deg,#27311b,#12190f);overflow:hidden}.sf-player-record>img{width:45px;height:45px;object-fit:contain;position:absolute;right:4px;top:8px;opacity:.8;filter:drop-shadow(0 3px 4px #0005)}.sf-player-record-name{display:block;position:relative;font-size:8px;font-weight:850;letter-spacing:-.015em;color:#f3eeab;padding-right:27px;line-height:1.7}.sf-player-record-metric{display:block;font-size:9px;color:#95a17c;margin:4px 0 14px}.sf-player-record>strong{display:block;position:relative;color:#f6f69f;font-size:18px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}.sf-player-record>strong>small{font-size:8px;font-weight:500;color:#9da985}.sf-player-record.is-empty{background:#11180e;border-color:#333e28}.sf-player-record.is-empty>img{opacity:.35;filter:saturate(.5)}.sf-player-record>strong.sf-player-no-record{font-size:10px;color:#889475;line-height:24px;font-weight:500}.sf-player-record-note{text-align:center;font-size:8px;color:#7f8d6c;line-height:1.6;margin:14px 0 0}
.sf-player-loading,.sf-player-error{text-align:center;display:grid;place-items:center;gap:15px;padding:55px 12px;color:#aeba8f;font-size:12px}.sf-player-loading i{width:45px;height:45px;border:2px solid #444b29;border-top-color:#fef200;border-radius:50%;animation:sf-player-spin 1s linear infinite}.sf-player-error>span{font-size:37px;color:#fef200}.sf-player-error h2{font-size:16px;color:#f2f4de;margin:0}.sf-player-error p{margin:0}.sf-player-error button{min-height:44px;border:1px solid #7a782d;border-radius:10px;padding:9px 16px;background:#fef200;color:#161a0b;font-weight:750}
.sf-player-dialog button:focus-visible,button[data-player-profile]:focus-visible{outline:2px solid #fef200;outline-offset:3px}
button.sf-top-podium-card,button.sf-top-row,button.sf-top-mine{font-family:inherit;color:inherit;cursor:pointer;text-align:inherit;width:100%;transition:filter .15s,border-color .15s}button.sf-top-podium-card:hover,button.sf-top-row:hover,button.sf-top-mine:hover{filter:brightness(1.1);border-color:#d7d327}button.sf-top-row:active,button.sf-top-podium-card:active{filter:brightness(.9)}.sf-top-list>li{min-width:0}.sf-top-row .sf-top-rank{color:#aeba89}.sf-top-list>li:nth-child(-n+3) .sf-top-rank{color:#fef200}.sf-top-podium:has(>button:only-child){grid-template-columns:minmax(0,1fr);max-width:220px;margin-left:auto;margin-right:auto}.sf-top-podium:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.sf-player-record>img[src^="/local/arcade/record-icons/"]{width:48px;height:48px}.sf-player-record:not(.is-empty)>img[src^="/local/arcade/record-icons/"]{opacity:1}
@keyframes sf-player-spin{to{transform:rotate(360deg)}}
@media(max-width:360px){.sf-player-body{padding:16px 12px 13px}.sf-player-wallet strong{font-size:21px}.sf-player-record{padding:11px 9px}.sf-player-section-title h2{font-size:12px}.sf-player-identity h1{font-size:21px}}
@media(prefers-reduced-motion:reduce){.sf-player-loading i{animation:none}.sf-top-podium-card,.sf-top-row{transition:none!important}}

.sf-player-name-row{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}.sf-player-name-row h1{min-width:0}.sf-player-name-level{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;white-space:nowrap;color:#f5ed51}.sf-player-name-level>b{font-size:12px;font-weight:800;letter-spacing:-.02em}.sf-player-name-level>img{width:30px;height:34px;object-fit:contain;filter:drop-shadow(0 0 6px #edd52b28)}
@media(max-width:360px){.sf-player-name-row{gap:8px}.sf-player-name-level{gap:4px}.sf-player-name-level>b{font-size:11px}.sf-player-name-level>img{width:27px;height:31px}}
