/* One frame and selector family for onboarding, HUD, profile and editing. */
.player-avatar-art { width:100%; height:100%; display:block; object-fit:cover; border-radius:inherit; }
.player-avatar-initial { display:grid; place-items:center; width:100%; height:100%; min-height:0; background:#19352f; border-radius:inherit; font:800 clamp(18px,5vw,34px) 'Space Grotesk',Arial,sans-serif; color:#d2ff5a; }
.profile-avatar-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:12px; }
.profile-avatar-grid button { position:relative; min-width:0; min-height:44px; padding:3px; aspect-ratio:1; border:1px solid #47625a; border-radius:12px; background:#152c2b; cursor:pointer; overflow:visible; }
.profile-avatar-grid button > img,.profile-avatar-grid button > .player-avatar-initial { border-radius:8px; }
.profile-avatar-grid button[aria-pressed=true] { border:2px solid #d2ff5a; padding:2px; }
.profile-avatar-grid button:focus-visible { outline:2px solid #eef2dc; outline-offset:3px; }
.avatar-selected-mark { display:none; position:absolute; right:3px; bottom:3px; width:20px; height:20px; place-items:center; background:#d2ff5a; color:#14221c; border-radius:5px; font:bold 14px Arial; }
.profile-avatar-grid [aria-pressed=true] .avatar-selected-mark { display:grid; }
.profile-preview { border:1px solid #47625a; border-radius:16px; overflow:hidden; box-sizing:border-box; }
.profile-hero #profileAvatar { border-radius:16px; padding:0; overflow:hidden; background:#152c2b; border:1px solid #47625a; }
.hud-identity .hud-player { display:flex; align-items:center; gap:7px; }
.hud-identity .hud-player #hudAvatar { display:block; width:32px; height:32px; flex:0 0 32px; border:1px solid #47625a; border-radius:8px; overflow:hidden; margin:0; }
.hud-identity .hud-player .hud-player-copy { margin:0; min-width:0; }
.friend-avatar .player-avatar-art { border-radius:10px; }
.avatar-edit-action { min-height:44px; border:1px solid #47625a; background:#19352f; color:#d2ff5a; border-radius:10px; padding:10px 16px; font:700 12px 'Space Grotesk',Arial,sans-serif; cursor:pointer; margin:8px 0 16px; }
.avatar-edit-action:focus-visible { outline:2px solid #d2ff5a; outline-offset:3px; }
.avatar-editor[hidden] { display:none; }
.avatar-editor { position:fixed; inset:0; z-index:2000; display:grid; place-items:center; background:rgba(8,19,18,.96); overflow:auto; padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); color:#eef2dc; }
.avatar-editor-panel { box-sizing:border-box; width:min(100%,440px); padding:24px; background:#142b29; border:1px solid #47625a; border-radius:20px; margin:auto; }
.avatar-editor h1 { margin:0 0 16px; font:32px/1.1 Impact,'Arial Narrow',sans-serif; }
.avatar-editor .profile-preview { width:96px; height:96px; margin:0 auto 20px; }
.avatar-editor p { color:#becdc6; font:14px/1.5 Arial,sans-serif; }
.avatar-editor .avatar-editor-actions { display:flex; gap:12px; margin-top:20px; }
.avatar-editor-actions button { flex:1; min-height:48px; border:1px solid #47625a; border-radius:10px; background:#1e3831; color:#eef2dc; cursor:pointer; font:700 13px Arial,sans-serif; }
.avatar-editor-actions [data-avatar-action=save] { background:#d2ff5a; color:#14221c; }
.avatar-editor button:focus-visible { outline:2px solid #eef2dc; outline-offset:3px; }
.avatar-editor button:disabled { opacity:.55; cursor:wait; }
.avatar-editor-error { min-height:21px; }
@media(max-width:350px) { .avatar-editor-panel { padding:16px; } .profile-avatar-grid { gap:7px; } }
@media(prefers-reduced-motion:reduce) { .avatar-editor * { scroll-behavior:auto; } }
