/* V3.0 — separate 4:5 profile portrait from the compact community avatar/logo */
.profile-page .profile-hero{overflow:visible}
.profile-identity-visuals{position:relative;flex:0 0 172px;min-width:172px;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;padding-bottom:0}
.profile-portrait-card{position:relative;width:152px;min-width:152px;border:1px solid rgba(239,35,60,.24);border-radius:21px;background:linear-gradient(150deg,#17171d,#0b0b10 72%);box-shadow:0 18px 42px rgba(0,0,0,.28),0 0 28px rgba(239,35,60,.045);padding:7px;overflow:visible}
.profile-portrait-frame{width:100%;aspect-ratio:4/5;border-radius:16px;overflow:hidden;background:radial-gradient(circle at 50% 20%,rgba(239,35,60,.18),rgba(12,12,16,.98) 68%);border:1px solid rgba(255,255,255,.07);display:grid;place-items:center}
.profile-portrait-frame>img{width:100%;height:100%;display:block;object-fit:cover}
.profile-portrait-placeholder{padding:14px 9px;text-align:center;display:grid;justify-items:center;gap:6px;color:#d7d7dd}.profile-portrait-placeholder-mark{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#ef233c,#710817);box-shadow:0 0 24px rgba(239,35,60,.18);font:1000 15px Inter,Arial}.profile-portrait-placeholder strong{font-size:10px}.profile-portrait-placeholder small{font-size:7.5px;line-height:1.6;color:#8d8d98}
.profile-portrait-actions{display:flex;gap:5px;margin-top:7px}.profile-portrait-upload,.profile-portrait-remove{min-height:30px;border-radius:9px;border:1px solid #34343d;background:#111117;color:#fff;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;font:800 8px Cairo,Inter,Arial,sans-serif;cursor:pointer}.profile-portrait-upload{flex:1;border-color:rgba(239,35,60,.35)}.profile-portrait-upload:hover{background:rgba(239,35,60,.09);border-color:#ef233c}.profile-portrait-upload.busy{opacity:.55;pointer-events:none}.profile-portrait-remove{color:#ff9aa7}.profile-portrait-remove[hidden]{display:none!important}.profile-portrait-msg{display:block;min-height:13px;margin-top:5px;text-align:center;color:#858590;font-size:7px;line-height:1.45}.profile-portrait-msg.ok{color:#65dca2}.profile-portrait-msg.err{color:#ff8696}
.profile-identity-visuals>.profile-community-avatar-wrap{position:relative;left:auto;bottom:auto;width:152px!important;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;z-index:4;padding:9px 8px 10px;border:1px solid rgba(239,35,60,.18);border-radius:18px;background:linear-gradient(150deg,#13131a,#0a0a10 74%);box-shadow:0 12px 26px rgba(0,0,0,.24),0 0 20px rgba(239,35,60,.04)}.profile-community-avatar-wrap .profile-avatar{width:66px;height:66px;border-radius:20px;border:3px solid #111116;box-shadow:0 8px 22px rgba(0,0,0,.45),0 0 22px rgba(239,35,60,.15)}.profile-community-avatar-wrap .avatar-upload-btn{width:100%;justify-content:center;font-size:8px;padding:6px 8px;background:#0c0c11}.profile-community-avatar-wrap .avatar-upload-note{display:block;text-align:center;color:#8f8f9c;font-size:7px;line-height:1.55;min-height:0}

/* Public verified page promotes the portrait to the main visual while preserving avatar fallback. */
.public-player-hero{grid-template-columns:170px 1fr!important;gap:24px!important}.public-player-avatar{width:170px!important;height:auto!important;aspect-ratio:4/5;border-radius:25px!important;background:radial-gradient(circle at 50% 20%,rgba(239,35,60,.19),#0d0d12 70%)!important;border:1px solid rgba(239,35,60,.24);box-shadow:0 18px 48px rgba(0,0,0,.32)}.public-player-avatar img{width:100%;height:100%;object-fit:cover}.public-player-avatar.avatar-fallback img{object-fit:cover}

@media(max-width:1180px){.profile-identity-visuals{flex-basis:150px;min-width:150px}.profile-portrait-card,.profile-identity-visuals>.profile-community-avatar-wrap{width:136px!important;min-width:136px}}
@media(max-width:980px){.profile-identity-visuals{order:-2;flex-basis:166px;min-width:166px;align-self:auto}.profile-page .profile-main{min-width:calc(100% - 200px)}.profile-page .profile-hero-side{order:4}.profile-rank-spotlight{order:3}}
@media(max-width:680px){.profile-page .profile-main{min-width:100%;text-align:center}.profile-page .profile-badges,.profile-page .profile-meta{justify-content:center}.profile-identity-visuals{margin-inline:auto}.profile-portrait-card,.profile-identity-visuals>.profile-community-avatar-wrap{width:150px!important;min-width:150px}.public-player-hero{grid-template-columns:1fr!important}.public-player-avatar{width:150px!important;margin:auto}}
