/* Extend the member's existing gift rank from the avatar onto their profile frame. */
.canonical-profile{--profile-rank:#b49af0;--profile-rank-glow:#b49af055}
.gift-profile--starter{--profile-rank:#b49af0;--profile-rank-glow:#b49af055}
.gift-profile--bronze{--profile-rank:#c98758;--profile-rank-glow:#c9875855}
.gift-profile--silver{--profile-rank:#b9c7d8;--profile-rank-glow:#b9c7d855}
.gift-profile--gold{--profile-rank:#e4b94f;--profile-rank-glow:#e4b94f55}
.gift-profile--elite{--profile-rank:#63c8a5;--profile-rank-glow:#63c8a555}
.gift-profile--legendary{--profile-rank:#d49aff;--profile-rank-glow:#c084fc66}
.gift-profile--emperor{--profile-rank:#ffcf68;--profile-rank-glow:#ffcf6877}
.canonical-profile[class*="gift-profile--"] .social-cover{border:2px solid color-mix(in srgb,var(--profile-rank) 78%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--profile-rank) 20%,transparent),0 12px 28px var(--profile-rank-glow)}
.canonical-profile[class*="gift-profile--"] .social-profile-heading{border:1px solid color-mix(in srgb,var(--profile-rank) 62%,var(--line));background:linear-gradient(140deg,color-mix(in srgb,var(--profile-rank) 11%,var(--surface)),var(--surface) 65%);box-shadow:inset 0 3px 0 color-mix(in srgb,var(--profile-rank) 75%,transparent),0 12px 34px color-mix(in srgb,var(--profile-rank) 12%,transparent)}
.canonical-profile[class*="gift-profile--"] .profile-sections{border-bottom-color:color-mix(in srgb,var(--profile-rank) 55%,var(--line))}
@media(max-width:640px){.canonical-profile[class*="gift-profile--"] .social-cover{box-shadow:0 0 0 2px color-mix(in srgb,var(--profile-rank) 20%,transparent),0 8px 20px var(--profile-rank-glow)}}
.canonical-profile[class*="gift-profile--"] .social-profile-heading{border-color:color-mix(in srgb,var(--profile-rank) 62%,var(--line))!important;box-shadow:inset 0 3px 0 color-mix(in srgb,var(--profile-rank) 75%,transparent),0 12px 34px color-mix(in srgb,var(--profile-rank) 12%,transparent)!important}
