/* Desktop identity is a compact stack aligned with the avatar. */
@media(min-width:601px){
 .profile-card .profile-identity{align-self:start;justify-content:flex-start;gap:7px;min-height:0;margin-top:-8px}
 .profile-card .profile-identity>.profile-badges{order:0;display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0}
 .profile-card .profile-identity>.profile-badges .rank-badge,
 .profile-card .profile-identity>.profile-badges .special-badge{font-size:11px;line-height:1.35;min-height:24px;padding:4px 8px;margin:0;font-weight:750}
 .profile-card .profile-identity>.profile-name-row{order:1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 11px;margin:0;min-height:38px}
 .profile-card .profile-name-row h3{font-size:clamp(25px,2vw,34px);line-height:1.15;padding:0;margin:0;min-width:0;overflow-wrap:anywhere}
 .profile-card .profile-name-row .nickname-edit{flex-shrink:0;width:32px;height:32px;min-height:32px;padding:6px}
 .profile-card .profile-name-row .nickname-customize{margin-left:8px;min-height:36px}
 .profile-card .profile-name-row .tg-guide-help{min-height:36px;padding:6px 4px}
 .profile-card .profile-identity>small{order:2;margin:0;font-size:12px;line-height:1.5}
}
/* A closed asymmetric path: left/up, right/down, gently returning to start.
   Overscan prevents exposed edges. Only the canvas transform is animated. */
.topbar .masthead-art.has-wink .masthead-wink-canvas{transform-origin:0 0;animation:tg-masthead-orbit 29s cubic-bezier(.4,0,.6,1) -8s infinite;will-change:transform}
@keyframes tg-masthead-orbit{
 0%,100%{transform:translate3d(-4px,calc(var(--masthead-pan-rest,0px) - 2px),0) scale(1.06)}
 24%{transform:translate3d(-8px,calc(var(--masthead-pan-rest,0px) - 5px),0) scale(1.06)}
 51%{transform:translate3d(-2px,calc(var(--masthead-pan-rest,0px) - 3px),0) scale(1.06)}
 76%{transform:translate3d(-5px,calc(var(--masthead-pan-rest,0px) - 1px),0) scale(1.06)}
}
body.tg-profile-tour .masthead-art.has-wink .masthead-wink-canvas{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.topbar .masthead-art.has-wink .masthead-wink-canvas{animation:none;transform:translate3d(0,var(--masthead-pan-rest,0px),0);will-change:auto}}
