/* Compact Hub/Apps avatar cosmetics, without touching game logic. */
#profileAvatarShell.ta-app-avatar-shell,.ta-app-header-avatar.ta-app-avatar-shell{
 display:grid;place-items:center;position:relative;isolation:isolate;box-sizing:border-box;
 width:52px;height:52px;border-radius:50%;padding:3px;flex:0 0 52px;
 overflow:visible;border:2px solid rgba(166,105,255,.45);
}
.ta-app-header-avatar.ta-app-avatar-shell{width:34px;height:34px;flex-basis:34px;padding:2px}
.ta-app-avatar-shell .avatar-fallback,.ta-app-avatar-shell .avatar-fallback>img,
.ta-app-header-avatar img.avatar{display:block!important;width:100%!important;height:100%!important;min-width:0;min-height:0;object-fit:cover!important;border-radius:50%!important;clip-path:circle(49.8% at 50% 50%)}
.ta-app-avatar-shell[data-frame-style]{border-color:#b983ff;box-shadow:0 0 0 2px rgba(156,94,255,.16),0 0 13px rgba(156,94,255,.32)}
.ta-app-avatar-shell[data-effect-style]{filter:drop-shadow(0 0 6px rgba(160,113,255,.6))}
.ta-app-avatar-shell[data-effect-style]::after{content:'✦';position:absolute;right:-7px;top:-8px;font-size:14px;line-height:1;color:#ddb8ff;text-shadow:0 0 8px #bc86ff;pointer-events:none;z-index:5}
#userHeaderContainer .ta-app-header-avatar{margin-right:4px}
#userHeaderContainer .user-badge{min-width:0;max-width:100%;display:flex;align-items:center}
#userHeaderContainer .user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}
.ta-app-avatar-shell[data-frame-style="neon-purple"],.ta-app-avatar-shell[data-frame-style="violet"]{border-color:#b18eff;box-shadow:0 0 0 2px rgba(197,149,255,.22),0 0 16px #995cff99}
.ta-app-avatar-shell[data-frame-style="wordle"],.ta-app-avatar-shell[data-frame-style="cinema_tv"]{border-color:#80d4bc;box-shadow:0 0 0 2px #80d4bc35,0 0 13px #80d4bc77}
.ta-app-avatar-shell[data-frame-style="crown"],.ta-app-avatar-shell[data-frame-style="tournament_champion"]{border-color:#efc879;box-shadow:0 0 0 2px #efc87935,0 0 15px #efc87988}
.ta-app-avatar-shell[data-frame-style="cinema_film"],.ta-app-avatar-shell[data-frame-style="community_heart"]{border-color:#ed84bc;box-shadow:0 0 0 2px #ed84bc35,0 0 15px #ed84bc88}
.ta-app-avatar-shell[data-frame-style="dico_pages"],.ta-app-avatar-shell[data-frame-style="community_voice"]{border-color:#78d5b3;box-shadow:0 0 0 2px #78d5b335,0 0 15px #78d5b388}
[data-name-style="neon-purple"]{color:#d8b2ff!important;text-shadow:0 0 9px rgba(174,104,255,.6)}
[data-name-style="tournament_gold"]{color:#f8d690!important;text-shadow:0 0 9px rgba(242,186,83,.45)}
[data-name-style="community_chat"]{color:#cba4ff!important;text-shadow:0 0 8px rgba(197,129,255,.45)}
@media(max-width:650px){.ta-app-header-avatar.ta-app-avatar-shell{width:30px;height:30px;flex-basis:30px}}
@media(prefers-reduced-motion:reduce){.ta-app-avatar-shell[data-effect-style]::after{animation:none!important}}

.ta-app-avatar-shell[data-frame-style="centurion"]{background:linear-gradient(135deg,#f6d365,#fda085);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="omnijoueur"]{background:conic-gradient(#ff4d6d,#9d5cff,#2fe6ac,#ffd166,#ff4d6d);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="streak30"]{background:linear-gradient(135deg,#ff512f,#dd2476);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="wordle"]{background:linear-gradient(135deg,#10b981,#84cc16);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="quiz"]{background:linear-gradient(135deg,#8b5cf6,#ec4899);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="violet"]{background:linear-gradient(135deg,#77dcac,#ff83ba);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="copper"]{background:linear-gradient(135deg,#f9bc75,#c6a4ff);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="crown"]{background:linear-gradient(135deg,#92b5ff,#6cd8e6);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="galaxy"]{background:linear-gradient(135deg,#ff83ba,#fce56e);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="prism"]{background:linear-gradient(135deg,#c6a4ff,#ef8f73);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="dawn"]{background:linear-gradient(135deg,#6cd8e6,#a4e09a);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="emerald"]{background:linear-gradient(135deg,#fce56e,#c4a5ff);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="speed"]{background:linear-gradient(135deg,#ef8f73,#8bdff4);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="tarot"]{background:linear-gradient(135deg,#a4e09a,#eaaa73);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="scarlet"]{background:linear-gradient(135deg,#c4a5ff,#91f2d0);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="spy"]{background:linear-gradient(135deg,#8bdff4,#f889a3);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="shadow"]{background:linear-gradient(135deg,#eaaa73,#d7baff);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="bull"]{background:linear-gradient(135deg,#91f2d0,#ffa6df);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="rainbow"]{background:linear-gradient(135deg,#f889a3,#77dcac);border-color:transparent}
.ta-app-avatar-shell[data-frame-style="brainwave"]{background:linear-gradient(135deg,#d7baff,#f9bc75);border-color:transparent}


/* TEAMAMOUR COSMETIC NEON REFINEMENT V3 — existing selectors and IDs */
@keyframes taNeonBreathe{0%,100%{filter:drop-shadow(0 0 3px rgba(190,126,255,.25))}50%{filter:drop-shadow(0 0 8px rgba(190,126,255,.54))}}
@keyframes taStarShimmer{0%,100%{opacity:.45;transform:scale(.76) rotate(-12deg)}50%{opacity:1;transform:scale(1.18) rotate(12deg)}}
@keyframes taWinReveal{from{opacity:0;transform:translateY(11px)}to{opacity:1;transform:translateY(0)}}
/* The underlying account avatar always remains a clipped circle. */
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-game-avatar,.ta-identity-visual)[data-frame-style],
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-game-avatar,.ta-identity-visual)[data-frame]{
 isolation:isolate;overflow:visible;border-radius:50%;
 box-shadow:0 0 0 1px rgba(219,167,255,.28),0 0 10px rgba(158,71,241,.24),0 0 27px rgba(158,71,241,.13);
}
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-game-avatar,.ta-identity-visual) img{object-fit:cover;border-radius:50%;}
/* Enrich existing catalog styles without changing equipped cosmetics in the database. */
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-identity-visual)[data-frame-style="violet"],
:where(.community-avatar-shell)[data-frame="violet"], .ta-game-avatar.ta-frame-violet{
 border-color:#bd76ff!important;background:linear-gradient(145deg,#b95cff,#5b31c1)!important;
 box-shadow:0 0 0 2px rgba(229,180,255,.22),0 0 15px rgba(193,86,255,.74),0 0 36px rgba(126,49,228,.32)!important;
}
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-identity-visual)[data-frame-style="wordle"],
:where(.community-avatar-shell)[data-frame="wordle"], .ta-game-avatar.ta-frame-wordle{
 border-color:#b96dff!important;background:conic-gradient(from 25deg,#8b48ec,#f49cff,#6d54ec,#c870ff,#8b48ec)!important;
 box-shadow:0 0 0 2px rgba(223,156,255,.27),0 0 16px rgba(177,76,246,.8),0 0 34px rgba(155,73,255,.26)!important;
}
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-identity-visual)[data-frame-style="crown"],
:where(.community-avatar-shell)[data-frame="crown"], .ta-game-avatar.ta-frame-crown{
 border-color:#ffd47b!important;background:linear-gradient(135deg,#7f4c16,#ffe09a 45%,#c38a31)!important;
 box-shadow:0 0 0 2px rgba(255,207,119,.17),0 0 17px rgba(255,184,69,.64)!important;
}
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-identity-visual)[data-frame-style="galaxy"],
:where(.community-avatar-shell)[data-frame="galaxy"], .ta-game-avatar.ta-frame-galaxy{
 border-color:#df91ff!important;background:conic-gradient(#5a30a9,#d077ff,#5963fa,#f180d2,#5a30a9)!important;
 box-shadow:0 0 0 2px rgba(190,122,255,.25),0 0 22px rgba(179,82,255,.5)!important;
}
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-identity-visual)[data-frame-style="omnijoueur"],
:where(.community-avatar-shell)[data-frame="omnijoueur"], .ta-game-avatar.ta-frame-omnijoueur{
 box-shadow:0 0 0 2px rgba(219,168,255,.21),0 0 18px rgba(177,90,247,.5),0 0 31px rgba(69,139,243,.2)!important;
}
/* Existing effect IDs: spark, dico_letters, tournament_confetti, community_reactions. */
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-identity-visual)[data-effect-style="spark"]::after,
.community-avatar-shell[data-effect="spark"]::after,.ta-game-avatar.ta-effect-spark::after{color:#f9d7ff!important;text-shadow:0 0 6px #fff,0 0 13px #d16bff,0 0 25px #9b3cff!important;animation:taStarShimmer 3.1s ease-in-out infinite;}
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-identity-visual)[data-effect-style="dico_letters"],.community-avatar-shell[data-effect="dico_letters"],.ta-game-avatar.ta-effect-dico_letters{filter:drop-shadow(0 0 7px rgba(81,213,184,.63));}
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-identity-visual)[data-effect-style="tournament_confetti"],.community-avatar-shell[data-effect="tournament_confetti"],.ta-game-avatar.ta-effect-tournament_confetti{filter:drop-shadow(0 0 7px rgba(255,192,80,.63));}
:where(.community-avatar-shell,#profileHero .profile-avatar,.ta-app-avatar-shell,.ta-identity-visual)[data-effect-style="community_reactions"],.community-avatar-shell[data-effect="community_reactions"],.ta-game-avatar.ta-effect-community_reactions{filter:drop-shadow(0 0 8px rgba(198,125,255,.61));}
:where(.ta-name-neon,.ta-cosmetic-name-neon,.ta-name-style-neon){color:#ebc4ff!important;text-shadow:0 0 7px rgba(254,223,255,.42),0 0 16px rgba(197,93,255,.82),0 0 31px rgba(138,50,224,.39)!important;}
/* Reduced motion remains respected, without hiding earned cosmetics. */
@media(prefers-reduced-motion:reduce){.ta-game-avatar::after,.community-avatar-shell::after,[data-effect-style]::after{animation:none!important}}
