/* Event-specific team emblems. Keep the approved card height and mirrored order. */
/* Shared community/ranking sizes are intentionally smaller than lobby crests. */
.ranking-identity .team-emblem{width:44px;height:44px;flex-basis:44px;border-radius:9px}
#performance-podium .ranking-identity .team-emblem{width:66px;height:66px;flex-basis:66px}
#stats-page .performance-ranking .ranking-identity .team-emblem img,#stats-page #performance-podium .team-emblem img,.duck-predictions .team-emblem img,.duck-prediction-dialog .team-emblem img{width:100%;height:100%;object-fit:contain;border:0;border-radius:0;max-width:none}
#stats-page .team-emblem-fallback{font-size:23px;margin:0;line-height:1}
.community-bp-identity,.community-team-label{display:flex;align-items:center;gap:10px;min-width:0}
.community-bp-identity>div{min-width:0}.community-bp-identity .team-emblem{width:42px;height:42px;flex-basis:42px}
.community-team-label>span:last-child{min-width:0;overflow-wrap:anywhere}
.community-team-label .team-emblem{width:32px;height:32px;flex-basis:32px;border-radius:7px}
.dp-side-labels{gap:12px}.dp-side-labels>.community-team-label{max-width:49%}
.dp-side-labels>.community-team-label:last-child{flex-direction:row-reverse;text-align:right}
.dp-winner .team-emblem,.dp-bet-choice .team-emblem{width:42px;height:42px;flex-basis:42px}
#ratings-page .rating-series-item .community-team-pair{display:flex;align-items:center;gap:5px}
#ratings-page .community-team-pair>span{display:flex;align-items:center;gap:4px;min-width:0;flex:1}
#ratings-page .community-team-pair>span>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ratings-page .community-team-pair .team-emblem{width:25px;height:25px;flex:0 0 25px;border-radius:5px}
#ratings-page .community-team-pair .team-emblem-fallback{font-size:13px}
#ratings-page .community-team-pair i{flex:none;margin:0;font-size:9px}
@media(max-width:760px){.rating-team .team-emblem{width:36px;height:36px;flex-basis:36px}.community-bp-identity{gap:6px}.community-bp-identity .team-emblem,.dp-winner .team-emblem{width:30px;height:30px;flex-basis:30px}.community-team-label{gap:5px}.community-team-label .team-emblem{width:26px;height:26px;flex-basis:26px}.duck-predictions .dp-winner .dp-option{gap:6px}.dp-winner .dp-option b{font-size:13px}.dp-winner .dp-option small{font-size:9px}}
.team-emblem{position:relative;display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border:1px solid #8495b833;border-radius:12px;background:radial-gradient(circle at 40% 20%,#263446,#151a24);overflow:hidden;isolation:isolate}
.team-emblem-fallback{font-size:23px;font-weight:600;color:#d8c9b1;line-height:1}
.team-emblem img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:transparent;z-index:1}
.lobby-team-identity{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.lobby-team-identity:last-child{flex-direction:row-reverse}.lobby-team-identity:last-child .team-emblem{background:radial-gradient(circle at 60% 20%,#42232b,#23171e);border-color:#bd687136}
/* Uploaded crests already carry alpha: show only their silhouette, not a tile.
   Preserve the layout footprint. Removing a failed image restores the fallback. */
.team-emblem:has(>img),.lobby-team-identity:last-child .team-emblem:has(>img){background:transparent;border:0;box-shadow:none;overflow:visible}
.team-emblem:has(>img)>.team-emblem-fallback{visibility:hidden}
.lobby-team-name{display:flex;flex-direction:row-reverse;align-items:center;gap:7px;min-width:0;font-size:18px;font-weight:600;line-height:1.5;color:#e5dce9}
.lobby-team-identity:last-child .lobby-team-name{flex-direction:row;color:#f0d8e2}
.lobby-team-name>span{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lobby-versus .lobby-team-name em{flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:10px;line-height:1.4;margin:0;padding:1px 4px}
.lobby-roster-identity{display:flex;align-items:center;gap:12px;min-width:0}.lobby-roster-identity>div{min-width:0}.lobby-roster-identity .team-emblem{width:42px;height:42px;flex-basis:42px;border-radius:10px}.lobby-roster-identity .team-emblem-fallback{font-size:19px}
#team-avatar-editor{display:flex;align-items:center;gap:20px;padding:18px;margin:14px 0 20px;border:1px solid #76605455;border-radius:9px;background:#111b27}
#team-avatar-editor .team-emblem{width:76px;height:76px;flex-basis:76px;border-radius:14px}#team-avatar-editor>div:last-child{min-width:0}#team-avatar-editor strong{font-size:15px;color:#e6cc94}#team-avatar-editor p{font-size:11px;line-height:1.6;color:#a7b4c2;margin:6px 0}#team-avatar-editor small{font-size:10px;color:#7e92a5}.team-avatar-controls{display:flex;gap:8px;margin-top:10px}.team-avatar-controls button{font-size:11px;padding:7px 10px}.team-avatar-controls button:disabled{opacity:.5;cursor:wait}#team-avatar-editor .team-avatar-message{color:#e3c68e}
@media(max-width:1280px){.lobby-team-identity{gap:7px}.lobby-team-name{font-size:15px}}
@media(max-width:760px){.lobby-team-identity{gap:6px}.lobby-team-name{font-size:12px;gap:4px}.lobby-team-identity .team-emblem{width:42px;height:42px;flex-basis:42px;border-radius:10px}.lobby-team-identity .team-emblem-fallback{font-size:19px}.lobby-versus{gap:6px;grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)}.lobby-versus .lobby-team-name em{font-size:9px;padding:0 3px}#team-avatar-editor{padding:13px;gap:13px}#team-avatar-editor .team-emblem{width:60px;height:60px;flex-basis:60px}}
