.player-profile-header{display:flex;align-items:center;gap:24px;max-width:1000px;margin-left:auto;margin-right:auto}
.player-profile-header>.profile-avatar{width:112px;height:112px;flex:0 0 112px;border:1px solid rgba(255,255,255,.16)}
.player-profile-header h2{font-size:30px;margin-bottom:8px;overflow-wrap:anywhere}
.player-profile-header p{margin-bottom:15px}
.player-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:1000px;margin:auto}
.player-profile-stats .panel{display:flex;flex-direction:column;gap:7px;text-align:center;padding:22px 10px}
.player-profile-stats strong{font-size:27px;color:var(--accent)}
.player-profile-stats span{font-size:12px;color:var(--muted)}
.profile-badges,.profile-players{max-width:1000px;margin-left:auto;margin-right:auto}
.profile-badges-empty{display:flex;gap:18px;align-items:center;border:1px dashed var(--border);padding:22px;border-radius:12px}
.profile-badges-empty>.nav-icon{width:36px;height:36px;color:var(--accent);flex-shrink:0}
.profile-badges-empty p{margin:0;line-height:1.6;font-size:13px}
.profile-slider-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:16px}
.profile-slider-heading h2{margin-bottom:0}
.profile-player-slider{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:none;scroll-behavior:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:4px 4px 14px;scrollbar-width:thin;scrollbar-color:var(--accent) transparent}
.profile-player-tile{flex:0 0 156px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 12px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.09);border-radius:14px;scroll-snap-align:none;color:#e5efe8;text-align:center}
.profile-player-tile .profile-avatar{width:70px;height:70px;flex-basis:70px}
.profile-player-tile strong,.profile-player-tile small{width:100%;overflow-wrap:anywhere}
.profile-player-tile small{font-size:11px;color:var(--muted)}
.profile-player-tile:hover,.profile-player-tile.is-current{border-color:rgba(255,255,255,.23);background:rgba(255,255,255,.055)}
.topbar a.topbar-user:hover .profile-avatar{outline:1px solid rgba(255,255,255,.35)}
@media(max-width:600px){.player-profile-header{gap:16px;padding:20px}.player-profile-header>.profile-avatar{width:80px;height:80px;flex-basis:80px}.player-profile-header h2{font-size:23px}.player-profile-stats{gap:8px}.player-profile-stats strong{font-size:23px}.profile-player-tile{flex-basis:140px}}

/* Keep the profile reachable alongside the active power on small screens. */
.topbar a.topbar-user{display:flex!important;flex:0 0 32px;width:32px;min-width:32px;margin-left:0;justify-content:center}
.topbar .topbar-username{display:none}
.topbar .topbar-user .profile-avatar{width:30px;height:30px;flex:0 0 30px;border-color:rgba(255,255,255,.16)}
@media(max-width:600px){
 .topbar{gap:7px;padding-left:10px;padding-right:10px}
 .topbar .topbar-title{flex:0 1 auto;min-width:0}
 .topbar .menu-toggle,.topbar .notification-center,.topbar .topbar-wallet{flex-shrink:0}
 .topbar .slot-power-badge{font-size:11px;gap:3px;padding:4px 6px}
 .topbar .topbar-wallet{font-size:10px;gap:3px;padding:4px 5px}
 .topbar .topbar-wallet .nav-icon{width:15px;height:15px}
}
@media(max-width:380px){
 .topbar{gap:5px;padding-left:8px;padding-right:8px}
 .topbar:has(.slot-power-badge:not([hidden])) .topbar-title{display:none}
}
.profile-economy{max-width:1000px;margin-left:auto;margin-right:auto;min-width:0}.profile-economy-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.profile-economy-heading h2{margin-bottom:8px}.profile-periods{display:flex;gap:6px}.profile-periods button{font-size:12px!important;padding:8px 12px!important}.profile-periods button[aria-pressed=true]{background:#8ef0be!important;color:#08150e!important;border-color:#8ef0be!important}.profile-money-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0}.profile-money-stats>div{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);border-radius:10px;padding:14px 10px;display:flex;flex-direction:column;gap:8px;min-width:0}.profile-money-stats span{font-size:11px;color:var(--muted)}.profile-money-stats strong{font-size:clamp(15px,2vw,22px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.profile-money-stats [data-coins-gained]{color:#8ef0be}.profile-money-stats [data-coins-spent]{color:#ff8dcc}.profile-chart-wrap{width:100%;min-height:260px}.profile-chart-wrap svg{display:block;width:100%;height:auto;touch-action:pan-y}.coins-grid{stroke:#ffffff12;stroke-width:1}.coins-axis{fill:#a0b5a9;font:11px Arial,sans-serif}.coins-line{stroke:#8ef0be;stroke-width:2;fill:none;stroke-linejoin:round}.coins-area{fill:#8ef0be0c}.coins-cursor{stroke:#ffffff45;stroke-width:1;stroke-dasharray:3 4}.coins-dot{fill:#ff8dcc;stroke:#111b15;stroke-width:2}.profile-chart-detail{font-size:12px;color:#d1e5d9;min-height:18px;font-variant-numeric:tabular-nums}.profile-coins-data{margin-top:16px}.profile-coins-data summary{font-size:12px;color:var(--muted);cursor:pointer}.profile-coins-data>div{max-height:300px;overflow:auto;margin-top:12px}.profile-coins-data table{width:100%;font-size:12px}.profile-coins-data td,.profile-coins-data th{text-align:left;padding:6px}.profile-coins-data caption{text-align:left;color:var(--muted);padding-bottom:10px}.profile-economy[aria-busy=true] .profile-chart-wrap{opacity:.55}@media(max-width:600px){.profile-money-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-periods{width:100%}.profile-periods button{flex:1}.profile-economy{padding:18px 12px}}

/* V1.89: free native momentum scrolling; no forced settling between player tiles. */
.profile-players{min-width:0}
.profile-player-slider{min-width:0;max-width:100%;touch-action:auto}
