:root{--profile-avatar-radius:50%;--profile-avatar-card-radius:16px;--profile-avatar-photo-inset:1px;--profile-avatar-frame-size:132%;--profile-avatar-frame-shadow:none}
.profile-avatar-img{display:block!important;position:absolute!important;inset:var(--profile-avatar-photo-inset)!important;width:calc(100% - (var(--profile-avatar-photo-inset) * 2))!important;height:calc(100% - (var(--profile-avatar-photo-inset) * 2))!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border:0!important;border-radius:50%!important;transform:none!important;pointer-events:none!important;z-index:1!important}
.avatar,.home-profile-avatar,.profile-page-avatar,.entry-avatar-choice,.avatar-option,.profile-avatar-choice{position:relative;overflow:visible!important;isolation:isolate}
.avatar,.ranking-row .avatar,.found-player .avatar,.profile-pill .avatar,.player-info .avatar,.player-badge .avatar,.player-avatar-wrap>.avatar,.action-player-avatar{border-radius:50%!important}
.home-profile-avatar{border-radius:50%!important}
.profile-page-avatar{border-radius:50%!important}
.ranking-row .avatar{border-radius:50%!important;border:1px solid rgba(255,231,160,.42)!important;overflow:visible!important;isolation:isolate}
.ranking-row .avatar .profile-avatar-img{border-radius:inherit!important}
.entry-profile-picker,.profile-avatar-picker{display:grid;gap:10px}
.avatar-gender-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px;border:1px solid rgba(238,196,104,.16);border-radius:13px;background:rgba(0,0,0,.18)}
.avatar-gender-tab{min-height:38px;border:1px solid transparent;border-radius:10px;color:#d8cdaF;background:transparent;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.avatar-gender-tab.active{border-color:rgba(255,235,176,.75);color:#1c1204;background:linear-gradient(180deg,#ffe8a7,#c58c2e);box-shadow:0 6px 16px rgba(0,0,0,.2)}
.entry-avatar-choices,.profile-avatar-list,.avatars{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
.entry-avatar-choice,.profile-avatar-choice,.avatar-option{position:relative;aspect-ratio:1!important;height:auto!important;min-width:0;padding:3px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:var(--profile-avatar-card-radius)!important;color:#f3d787;background:rgba(0,0,0,.22)!important;box-shadow:none;cursor:pointer;overflow:hidden!important}
.entry-avatar-choice .profile-avatar-img,.profile-avatar-choice .profile-avatar-img,.avatar-option .profile-avatar-img{--profile-avatar-photo-inset:8px;border-radius:50%!important}
.entry-avatar-choice.active,.profile-avatar-choice.active,.avatar-option.active{border-color:#ffe49c!important;box-shadow:0 0 0 3px rgba(238,196,104,.18),0 8px 18px rgba(0,0,0,.22)!important;background:rgba(238,196,104,.12)!important}
.entry-avatar-choice:disabled,.profile-avatar-choice:disabled,.avatar-option:disabled{cursor:not-allowed;filter:grayscale(.88) brightness(.5);opacity:.72}
.avatar-choice-lock{position:absolute;z-index:4;inset:auto 4px 4px 4px;min-height:22px;display:flex;align-items:center;justify-content:center;gap:3px;padding:2px 4px;border:1px solid rgba(255,232,169,.28);border-radius:8px;color:#fff0c3;background:rgba(12,8,4,.88);font-size:9px;font-weight:900;line-height:1.2;pointer-events:none}
.avatar-choice-check{position:absolute;z-index:5;top:5px;right:5px;width:20px;height:20px;display:grid;place-items:center;border:1px solid rgba(255,248,214,.7);border-radius:50%;color:#171005;background:#eec468;font-size:12px;font-weight:1000;box-shadow:0 3px 8px rgba(0,0,0,.3)}
.profile-avatar-help{margin:0;color:#b9c6c1;font-size:11px;line-height:1.8}
.profile-avatar-help strong{color:#f3c86a}
.profile-avatar-panel .profile-section-head{margin-bottom:2px}
.profile-avatar-choice{display:grid;grid-template-rows:1fr auto;gap:5px;padding:4px!important}
.profile-avatar-choice .profile-avatar-img{min-height:0}
.profile-avatar-choice-label{display:block;padding:0 2px 3px;overflow:hidden;color:#fff2cc;font-size:9px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.profile-avatar-choice:disabled .profile-avatar-choice-label{color:#d8d0bd}
.profile-avatar-choice.unlocked:not(.active){border-color:rgba(126,214,175,.34)!important;background:rgba(20,76,58,.18)!important}
.profile-avatar-choice.active{border-color:#ffe49c!important;background:rgba(238,196,104,.16)!important;box-shadow:0 0 0 3px rgba(238,196,104,.2),0 9px 22px rgba(0,0,0,.24)!important}
.avatar-choice-state{position:absolute;z-index:6;top:5px;left:5px;min-height:21px;padding:3px 6px;display:flex;align-items:center;justify-content:center;border-radius:999px;font-size:8px;font-weight:1000;line-height:1;pointer-events:none;white-space:nowrap;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.avatar-choice-state.unlocked{border:1px solid rgba(144,235,193,.5);color:#c9ffe6;background:rgba(7,64,45,.72)}
.avatar-choice-state.selected{border:1px solid rgba(255,239,190,.72);color:#211504;background:linear-gradient(180deg,rgba(255,235,174,.96),rgba(205,145,46,.96));box-shadow:0 4px 10px rgba(0,0,0,.28)}

@media(max-width:360px){.entry-avatar-choices,.profile-avatar-list,.avatars{gap:6px!important}.entry-avatar-choice,.profile-avatar-choice,.avatar-option{border-radius:13px!important}.avatar-choice-lock{font-size:8px}}
.profile-avatar-choice{aspect-ratio:auto!important;min-height:112px!important}
.profile-avatar-choice .profile-avatar-img{height:auto!important;aspect-ratio:1/1;min-height:0!important}


/* Keep the registration avatar picker usable on short desktop/mobile viewports. */
.entry-auth-card{
  max-height:calc(100dvh - 24px);
  overflow-y:auto!important;
  scrollbar-width:none;
}
.entry-auth-card::-webkit-scrollbar{display:none}


.avatar,.home-profile-avatar,.profile-page-avatar,.player-action-profile .avatar,.ranking-row .avatar,.found-player .avatar,.profile-pill .avatar,.player-info .avatar,.player-badge .avatar,.player-avatar-wrap>.avatar,.action-player-avatar{background:rgba(7,17,14,.42)}
.avatar.frame-none::after,.home-profile-avatar.frame-none::after,.profile-page-avatar.frame-none::after,.player-action-profile .avatar.frame-none::after,.ranking-row .avatar.frame-none::after,.found-player .avatar.frame-none::after,.profile-pill .avatar.frame-none::after,.player-info .avatar.frame-none::after,.player-badge .avatar.frame-none::after,.player-avatar-wrap>.avatar.frame-none::after,.action-player-avatar.frame-none::after{content:none!important}
.avatar.frame-bronze,.home-profile-avatar.frame-bronze,.profile-page-avatar.frame-bronze,.player-action-profile .avatar.frame-bronze,.ranking-row .avatar.frame-bronze,.found-player .avatar.frame-bronze,.profile-pill .avatar.frame-bronze,.player-info .avatar.frame-bronze,.player-badge .avatar.frame-bronze,.player-avatar-wrap>.avatar.frame-bronze,.action-player-avatar.frame-bronze{--profile-avatar-frame-size:132%;--profile-avatar-frame-shadow:drop-shadow(0 4px 10px rgba(0,0,0,.2))}
.avatar.frame-silver,.home-profile-avatar.frame-silver,.profile-page-avatar.frame-silver,.player-action-profile .avatar.frame-silver,.ranking-row .avatar.frame-silver,.found-player .avatar.frame-silver,.profile-pill .avatar.frame-silver,.player-info .avatar.frame-silver,.player-badge .avatar.frame-silver,.player-avatar-wrap>.avatar.frame-silver,.action-player-avatar.frame-silver{--profile-avatar-frame-size:132%;--profile-avatar-frame-shadow:drop-shadow(0 4px 10px rgba(0,0,0,.2))}
.avatar.frame-gold,.home-profile-avatar.frame-gold,.profile-page-avatar.frame-gold,.player-action-profile .avatar.frame-gold,.ranking-row .avatar.frame-gold,.found-player .avatar.frame-gold,.profile-pill .avatar.frame-gold,.player-info .avatar.frame-gold,.player-badge .avatar.frame-gold,.player-avatar-wrap>.avatar.frame-gold,.action-player-avatar.frame-gold{--profile-avatar-frame-size:134%;--profile-avatar-frame-shadow:drop-shadow(0 4px 10px rgba(0,0,0,.24))}
.avatar.frame-royal,.home-profile-avatar.frame-royal,.profile-page-avatar.frame-royal,.player-action-profile .avatar.frame-royal,.ranking-row .avatar.frame-royal,.found-player .avatar.frame-royal,.profile-pill .avatar.frame-royal,.player-info .avatar.frame-royal,.player-badge .avatar.frame-royal,.player-avatar-wrap>.avatar.frame-royal,.action-player-avatar.frame-royal{--profile-avatar-frame-size:138%;--profile-avatar-frame-shadow:drop-shadow(0 0 12px rgba(243,200,106,.32)) drop-shadow(0 5px 12px rgba(0,0,0,.22))}
.avatar.frame-bronze::after,.home-profile-avatar.frame-bronze::after,.profile-page-avatar.frame-bronze::after,.player-action-profile .avatar.frame-bronze::after,.ranking-row .avatar.frame-bronze::after,.found-player .avatar.frame-bronze::after,.profile-pill .avatar.frame-bronze::after,.player-info .avatar.frame-bronze::after,.player-badge .avatar.frame-bronze::after,.player-avatar-wrap>.avatar.frame-bronze::after,.action-player-avatar.frame-bronze::after,
.avatar.frame-silver::after,.home-profile-avatar.frame-silver::after,.profile-page-avatar.frame-silver::after,.player-action-profile .avatar.frame-silver::after,.ranking-row .avatar.frame-silver::after,.found-player .avatar.frame-silver::after,.profile-pill .avatar.frame-silver::after,.player-info .avatar.frame-silver::after,.player-badge .avatar.frame-silver::after,.player-avatar-wrap>.avatar.frame-silver::after,.action-player-avatar.frame-silver::after,
.avatar.frame-gold::after,.home-profile-avatar.frame-gold::after,.profile-page-avatar.frame-gold::after,.player-action-profile .avatar.frame-gold::after,.ranking-row .avatar.frame-gold::after,.found-player .avatar.frame-gold::after,.profile-pill .avatar.frame-gold::after,.player-info .avatar.frame-gold::after,.player-badge .avatar.frame-gold::after,.player-avatar-wrap>.avatar.frame-gold::after,.action-player-avatar.frame-gold::after,
.avatar.frame-royal::after,.home-profile-avatar.frame-royal::after,.profile-page-avatar.frame-royal::after,.player-action-profile .avatar.frame-royal::after,.ranking-row .avatar.frame-royal::after,.found-player .avatar.frame-royal::after,.profile-pill .avatar.frame-royal::after,.player-info .avatar.frame-royal::after,.player-badge .avatar.frame-royal::after,.player-avatar-wrap>.avatar.frame-royal::after,.action-player-avatar.frame-royal::after{content:"";position:absolute;left:50%;top:50%;width:var(--profile-avatar-frame-size);height:var(--profile-avatar-frame-size);border-radius:50%;background-position:center;background-repeat:no-repeat;background-size:100% 100%;pointer-events:none;z-index:3;filter:var(--profile-avatar-frame-shadow);transform:translate(-50%,-50%)}
.avatar.frame-bronze::after,.home-profile-avatar.frame-bronze::after,.profile-page-avatar.frame-bronze::after,.player-action-profile .avatar.frame-bronze::after,.ranking-row .avatar.frame-bronze::after,.found-player .avatar.frame-bronze::after,.profile-pill .avatar.frame-bronze::after,.player-info .avatar.frame-bronze::after,.player-badge .avatar.frame-bronze::after,.player-avatar-wrap>.avatar.frame-bronze::after,.action-player-avatar.frame-bronze::after{background-image:url('./profile-frames/bronze.webp')}
.avatar.frame-silver::after,.home-profile-avatar.frame-silver::after,.profile-page-avatar.frame-silver::after,.player-action-profile .avatar.frame-silver::after,.ranking-row .avatar.frame-silver::after,.found-player .avatar.frame-silver::after,.profile-pill .avatar.frame-silver::after,.player-info .avatar.frame-silver::after,.player-badge .avatar.frame-silver::after,.player-avatar-wrap>.avatar.frame-silver::after,.action-player-avatar.frame-silver::after{background-image:url('./profile-frames/silver.webp')}
.avatar.frame-gold::after,.home-profile-avatar.frame-gold::after,.profile-page-avatar.frame-gold::after,.player-action-profile .avatar.frame-gold::after,.ranking-row .avatar.frame-gold::after,.found-player .avatar.frame-gold::after,.profile-pill .avatar.frame-gold::after,.player-info .avatar.frame-gold::after,.player-badge .avatar.frame-gold::after,.player-avatar-wrap>.avatar.frame-gold::after,.action-player-avatar.frame-gold::after{background-image:url('./profile-frames/gold.webp')}
.avatar.frame-royal::after,.home-profile-avatar.frame-royal::after,.profile-page-avatar.frame-royal::after,.player-action-profile .avatar.frame-royal::after,.ranking-row .avatar.frame-royal::after,.found-player .avatar.frame-royal::after,.profile-pill .avatar.frame-royal::after,.player-info .avatar.frame-royal::after,.player-badge .avatar.frame-royal::after,.player-avatar-wrap>.avatar.frame-royal::after,.action-player-avatar.frame-royal::after{background-image:url('./profile-frames/royal.webp')}

.profile-pill,.player-info,.found-player,.ranking-row,.player-action-profile,.profile-page-hero,.profile-frame-btn{overflow:visible!important}
