/* 19.4: the signed-in user's avatar in the top navigation. */
.fox-profile-drop .fox-profile-button--avatar {
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.fox-profile-drop .fox-profile-button--avatar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--fox-rgb-ts4l14, 214, 111, 255), .55), rgba(var(--fox-rgb-ts3l12, 119, 72, 238), .2) 58%, transparent 74%);
    filter: blur(8px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.8);
    transition: opacity .38s ease, transform .48s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.fox-profile-drop .fox-profile-button--avatar img {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 36px;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(var(--fox-rgb-as4l16, 202, 152, 255), .68);
    border-radius: 50%;
    background: var(--fox-tone-as1l3, #21172d);
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(var(--fox-rgb-gs2l3, 31, 16, 51), clamp(0, calc(.8 * var(--fox-glow-strength, 1)), 1)), 0 3px 12px rgba(0, 0, 0, .35);
    transform: scale(1);
    transition: transform .48s cubic-bezier(.2, .8, .2, 1),
                border-color .38s ease,
                box-shadow .48s ease,
                filter .38s ease;
    pointer-events: none;
}

.fox-profile-drop:hover,
.fox-profile-drop:focus-within {
    z-index: 110;
}

@media (hover: hover) {
    .fox-profile-drop .fox-profile-button--avatar:hover::before {
        opacity: 1;
        transform: translate(-50%, -50%) scale(2.1);
    }

    .fox-profile-drop .fox-profile-button--avatar:hover img {
        border-color: var(--fox-tone-as4l18, #efc5ff);
        box-shadow: 0 0 0 3px rgba(var(--fox-rgb-gs4l14, 175, 95, 250), clamp(0, calc(.35 * var(--fox-glow-strength, 1)), 1)),
                    0 0 18px rgba(var(--fox-rgb-gs4l14, 195, 103, 255), clamp(0, calc(.75 * var(--fox-glow-strength, 1)), 1)),
                    0 0 34px rgba(var(--fox-rgb-gs4l13, 130, 72, 248), clamp(0, calc(.44 * var(--fox-glow-strength, 1)), 1));
        filter: brightness(1.12) saturate(1.12);
        transform: scale(1.4);
    }
}

.fox-profile-drop .fox-profile-button--avatar:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2.1);
}

.fox-profile-drop .fox-profile-button--avatar:focus-visible img {
    border-color: var(--fox-tone-as4l18, #efc5ff);
    box-shadow: 0 0 0 3px rgba(var(--fox-rgb-gs4l14, 175, 95, 250), clamp(0, calc(.35 * var(--fox-glow-strength, 1)), 1)), 0 0 24px rgba(var(--fox-rgb-gs4l14, 195, 103, 255), clamp(0, calc(.7 * var(--fox-glow-strength, 1)), 1));
    transform: scale(1.4);
}

@media (max-width: 767px) {
    .fox-profile-drop .fox-profile-button--avatar img {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fox-profile-drop .fox-profile-button--avatar::before,
    .fox-profile-drop .fox-profile-button--avatar img {
        transition: none;
    }

    .fox-profile-drop .fox-profile-button--avatar:hover img,
    .fox-profile-drop .fox-profile-button--avatar:focus-visible img {
        transform: none;
    }
}
