/* The photograph clips only inside the face; the independent frame can extend outside. */
.hk-avatar-shell { position:relative; isolation:isolate; overflow:visible; }
.hk-avatar-shell > .hk-avatar-face { display:grid; place-items:center; width:100%; height:100%; min-width:0; min-height:0; overflow:hidden; border-radius:50%; background:linear-gradient(145deg,var(--account-mint,#b9d6cc),var(--account-peach,#edc1a8)); }
body.dark-mode .hk-avatar-shell > .hk-avatar-face { background:linear-gradient(145deg,var(--account-mint,#405e57),var(--account-peach,#66524a)); }
.hk-avatar-initial { display:grid; place-items:center; width:100%; height:100%; color:var(--text-main); font-weight:700; line-height:1; }
.hk-avatar-face > .account-avatar-image { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.hk-avatar-shell > .hk-avatar-decoration { position:absolute; inset:-17%; display:block; pointer-events:none; z-index:2; }
.hk-avatar-shell > .hk-avatar-decoration > svg { display:block; width:100%; height:100%; overflow:visible; }
.hk-avatar-initial > svg { width:58%; height:58%; }
.hk-decoration-turn { transform-origin:50px 50px; animation:hk-decoration-orbit 24s linear infinite; }
.hk-decoration-drift { transform-origin:50px 50px; animation:hk-decoration-breathe 5s ease-in-out infinite; }
@keyframes hk-decoration-orbit { to { transform:rotate(360deg); } }
@keyframes hk-decoration-breathe { 50% { transform:translateY(-1.8px) scale(1.025); opacity:.78; } }
html.reduce-motion .hk-avatar-decoration *,html.lite-mode .hk-avatar-decoration * { animation:none; }
@media (prefers-reduced-motion:reduce) { .hk-avatar-decoration * { animation:none!important; } }
