/* Membership Badge Username Decorations */
/* Metallic base + angled shine sweep adapted from ibelick technique */

@keyframes membershipShine {
    0% {
        background-position: 140% 50%, 50% 50%;
    }
    100% {
        background-position: -140% 50%, 50% 50%;
    }
}

/* Shared text treatment for metallic membership tiers */
.username-gold,
.username-gold a,
.username-silver,
.username-silver a,
.username-bronze,
.username-bronze a {
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    text-decoration: none;
    letter-spacing: 0.02em;
    display: inline-block;
    width: fit-content;
    background-repeat: no-repeat !important;
    background-size: 240% 240%, 100% 100% !important;
    animation: membershipShine 6.8s linear infinite !important;
}

/* Gold tier - multi-stop metallic gradient + shine stripe */
.username-gold,
.username-gold a {
    background-image:
        linear-gradient(
            30deg,
            transparent 0%,
            transparent 46%,
            rgba(255, 252, 228, 0.95) 49%,
            rgba(255, 252, 228, 0.85) 50%,
            transparent 54%,
            transparent 100%
        ),
        linear-gradient(
            45deg,
            #8f6a0f 5%,
            #d9a72c 15%,
            #f6df95 30%,
            #e4ba4a 50%,
            #c6921f 70%,
            #f8e4a2 85%,
            #8f6a0f 95%
        ) !important;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 18px rgba(255, 170, 0, 0.4)) !important;
    font-weight: 800;
}

/* Silver tier - multi-stop metallic gradient + shine stripe */
.username-silver,
.username-silver a {
    background-image:
        linear-gradient(
            30deg,
            transparent 0%,
            transparent 46%,
            rgba(255, 255, 255, 0.9) 49%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 54%,
            transparent 100%
        ),
        linear-gradient(
            45deg,
            #6f6f6f 5%,
            #a8a8a8 15%,
            #f2f2f2 30%,
            #cfcfcf 50%,
            #9f9f9f 70%,
            #f8f8f8 85%,
            #6f6f6f 95%
        ) !important;
    filter: drop-shadow(0 0 6px rgba(192, 192, 192, 0.65)) drop-shadow(0 0 14px rgba(220, 220, 220, 0.35)) !important;
    font-weight: 700;
}

/* Bronze tier - multi-stop metallic gradient + shine stripe */
.username-bronze,
.username-bronze a {
    background-image:
        linear-gradient(
            30deg,
            transparent 0%,
            transparent 46%,
            rgba(255, 234, 204, 0.9) 49%,
            rgba(255, 234, 204, 0.78) 50%,
            transparent 54%,
            transparent 100%
        ),
        linear-gradient(
            45deg,
            #73421a 5%,
            #a55c26 15%,
            #e7aa63 30%,
            #c27a3a 50%,
            #944f22 70%,
            #f2bf84 85%,
            #73421a 95%
        ) !important;
    filter: drop-shadow(0 0 6px rgba(205, 127, 50, 0.65)) drop-shadow(0 0 14px rgba(205, 127, 50, 0.35)) !important;
    font-weight: 700;
}

/* Enhanced glow in dark mode */
body.dark-mode .username-gold,
body.dark-mode .username-gold a {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 24px rgba(255, 170, 0, 0.5)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.2)) !important;
}

body.dark-mode .username-silver,
body.dark-mode .username-silver a {
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.7)) drop-shadow(0 0 20px rgba(220, 220, 220, 0.4)) drop-shadow(0 0 36px rgba(192, 192, 192, 0.15)) !important;
}

body.dark-mode .username-bronze,
body.dark-mode .username-bronze a {
    filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.7)) drop-shadow(0 0 20px rgba(205, 127, 50, 0.4)) drop-shadow(0 0 36px rgba(205, 127, 50, 0.15)) !important;
}

/* Cherry Blossom username flair - luminous sakura text with branch behind + subtle falling petals */
@keyframes cherryBlossomGlowPulse {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(244, 114, 182, 0.85),
            0 0 14px rgba(255, 183, 213, 0.55),
            0 1px 2px rgba(32, 8, 20, 0.65);
    }
    50% {
        text-shadow:
            0 0 9px rgba(255, 158, 199, 0.95),
            0 0 20px rgba(244, 114, 182, 0.65),
            0 1px 2px rgba(32, 8, 20, 0.65);
    }
}

@keyframes cherryBlossomSubtleFall {
    0% {
        transform: translate3d(-4px, -35%, 0);
        opacity: 0;
    }
    18% {
        opacity: 0.72;
    }
    78% {
        opacity: 0.55;
    }
    100% {
        transform: translate3d(10px, 55%, 0);
        opacity: 0;
    }
}

.username-cherry-blossom {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: inline-block;
    width: fit-content;
    overflow: visible !important;
    line-height: 1.35;
    padding: 0.14em 0.55em 0.14em 0.35em;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-decoration: none;
    color: #ffe6f2 !important;
    -webkit-text-fill-color: #ffe6f2 !important;
    animation: cherryBlossomGlowPulse 4.5s ease-in-out infinite !important;
}

.username-cherry-blossom a {
    color: #ffe6f2 !important;
    -webkit-text-fill-color: #ffe6f2 !important;
    text-decoration: none;
}

/* Straight horizontal cherry blossom tree branch extending from the avatar BEHIND the username */
.username-cherry-blossom::before {
    content: "";
    position: absolute;
    left: -0.9em;
    right: -0.55em;
    top: 52%;
    height: 1.95em;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 56' preserveAspectRatio='xMidYMid meet'%3E%3Cpath d='M2 30 C46 31, 96 27, 144 28 C186 29, 218 26, 248 23' fill='none' stroke='%236d3142' stroke-width='3.6' stroke-linecap='round' opacity='.84'/%3E%3Cpath d='M64 28 C78 18, 92 13, 110 12' fill='none' stroke='%236d3142' stroke-width='2' stroke-linecap='round' opacity='.76'/%3E%3Cpath d='M162 28 C178 36, 192 41, 210 42' fill='none' stroke='%236d3142' stroke-width='1.8' stroke-linecap='round' opacity='.72'/%3E%3Cg transform='translate(26 29) scale(.46)'%3E%3Cg fill='%23ffd6e8' stroke='%23f472b6' stroke-width='1.1'%3E%3Cpath d='M0-13c3 3 4 6.5 2 9.5L0 0l-2-3.5c-2-3-1-6.5 2-9.5z'/%3E%3Cpath d='M12-4c-2 4-5 6-8.5 5L0 0l2.8-2.8c2.8-2.8 5.8-3 9.2-1.2z'/%3E%3Cpath d='M7.5 10.5c-3.8-.5-6.8-2.8-7.5-5.8L0 0l3.5 1.8c3 1.5 4 4.8 4 8.7z'/%3E%3Cpath d='M-7.5 10.5c0-3.9 1-7.2 4-8.7L0 0l0 4.7c-.7 3-3.7 5.3-7.5 5.8z'/%3E%3Cpath d='M-12-4c3.4-1.8 6.4-1.6 9.2 1.2L0 0l-3.5 1c-3.5 1-6.5-1-8.5-5z'/%3E%3C/g%3E%3Ccircle r='2.6' fill='%23fff5fa'/%3E%3Ccircle r='1.2' fill='%23fb7185'/%3E%3C/g%3E%3Cg transform='translate(110 12) scale(.44) rotate(16)'%3E%3Cg fill='%23ffc2dd' stroke='%23f472b6' stroke-width='1.1'%3E%3Cpath d='M0-13c3 3 4 6.5 2 9.5L0 0l-2-3.5c-2-3-1-6.5 2-9.5z'/%3E%3Cpath d='M12-4c-2 4-5 6-8.5 5L0 0l2.8-2.8c2.8-2.8 5.8-3 9.2-1.2z'/%3E%3Cpath d='M7.5 10.5c-3.8-.5-6.8-2.8-7.5-5.8L0 0l3.5 1.8c3 1.5 4 4.8 4 8.7z'/%3E%3Cpath d='M-7.5 10.5c0-3.9 1-7.2 4-8.7L0 0l0 4.7c-.7 3-3.7 5.3-7.5 5.8z'/%3E%3Cpath d='M-12-4c3.4-1.8 6.4-1.6 9.2 1.2L0 0l-3.5 1c-3.5 1-6.5-1-8.5-5z'/%3E%3C/g%3E%3Ccircle r='2.5' fill='%23fff5fa'/%3E%3Ccircle r='1.1' fill='%23fb7185'/%3E%3C/g%3E%3Cg transform='translate(210 42) scale(.42) rotate(-14)'%3E%3Cg fill='%23ffd6e8' stroke='%23f472b6' stroke-width='1.1'%3E%3Cpath d='M0-13c3 3 4 6.5 2 9.5L0 0l-2-3.5c-2-3-1-6.5 2-9.5z'/%3E%3Cpath d='M12-4c-2 4-5 6-8.5 5L0 0l2.8-2.8c2.8-2.8 5.8-3 9.2-1.2z'/%3E%3Cpath d='M7.5 10.5c-3.8-.5-6.8-2.8-7.5-5.8L0 0l3.5 1.8c3 1.5 4 4.8 4 8.7z'/%3E%3Cpath d='M-7.5 10.5c0-3.9 1-7.2 4-8.7L0 0l0 4.7c-.7 3-3.7 5.3-7.5 5.8z'/%3E%3Cpath d='M-12-4c3.4-1.8 6.4-1.6 9.2 1.2L0 0l-3.5 1c-3.5 1-6.5-1-8.5-5z'/%3E%3C/g%3E%3Ccircle r='2.5' fill='%23fff5fa'/%3E%3Ccircle r='1.1' fill='%23fb7185'/%3E%3C/g%3E%3Cg transform='translate(248 23) scale(.38) rotate(22)'%3E%3Cg fill='%23ffe4f0' stroke='%23f472b6' stroke-width='1.1'%3E%3Cpath d='M0-13c3 3 4 6.5 2 9.5L0 0l-2-3.5c-2-3-1-6.5 2-9.5z'/%3E%3Cpath d='M12-4c-2 4-5 6-8.5 5L0 0l2.8-2.8c2.8-2.8 5.8-3 9.2-1.2z'/%3E%3Cpath d='M7.5 10.5c-3.8-.5-6.8-2.8-7.5-5.8L0 0l3.5 1.8c3 1.5 4 4.8 4 8.7z'/%3E%3Cpath d='M-7.5 10.5c0-3.9 1-7.2 4-8.7L0 0l0 4.7c-.7 3-3.7 5.3-7.5 5.8z'/%3E%3Cpath d='M-12-4c3.4-1.8 6.4-1.6 9.2 1.2L0 0l-3.5 1c-3.5 1-6.5-1-8.5-5z'/%3E%3C/g%3E%3Ccircle r='2.4' fill='%23fff5fa'/%3E%3C/g%3E%3Ccircle cx='144' cy='27' r='2.4' fill='%23ffb7d5'/%3E%3C/svg%3E") left center / contain no-repeat;
    filter: drop-shadow(0 0 4px rgba(244, 114, 182, 0.35));
}

/* Subtle falling cherry blossom petals drifting past the username */
.username-cherry-blossom::after {
    content: "";
    position: absolute;
    left: -0.2em;
    right: -0.35em;
    top: -0.25em;
    bottom: -0.35em;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 48'%3E%3Cpath d='M28 6c-2.2 1.6-3.8 4-3.5 6.4.2 2 1.8 3.2 3.5 3.4 1.7-.2 3.3-1.4 3.5-3.4.3-2.4-1.3-4.8-3.5-6.4z' fill='%23ffd6e8' opacity='.85' transform='rotate(18 28 11)'/%3E%3Cpath d='M92 14c-1.8 1.3-3.1 3.2-2.9 5.2.2 1.6 1.5 2.6 2.9 2.8 1.4-.2 2.7-1.2 2.9-2.8.2-2-1.1-3.9-2.9-5.2z' fill='%23ffb7d5' opacity='.78' transform='rotate(-22 92 18)'/%3E%3Cpath d='M148 8c-2 1.4-3.4 3.5-3.2 5.7.2 1.8 1.6 2.9 3.2 3.1 1.6-.2 3-1.3 3.2-3.1.2-2.2-1.2-4.3-3.2-5.7z' fill='%23ffe4f0' opacity='.82' transform='rotate(28 148 13)'/%3E%3Cpath d='M62 28c-1.5 1.1-2.6 2.7-2.4 4.4.2 1.3 1.2 2.2 2.4 2.4 1.2-.2 2.2-1.1 2.4-2.4.2-1.7-.9-3.3-2.4-4.4z' fill='%23fbcfe8' opacity='.65' transform='rotate(-14 62 31)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: cherryBlossomSubtleFall 5.4s linear infinite;
}

body.dark-mode .username-cherry-blossom,
body.dark-mode .username-cherry-blossom a {
    color: #fff0f7 !important;
    -webkit-text-fill-color: #fff0f7 !important;
}

/* Prevent ancestor flex/text containers from clipping bespoke username flair backdrops & glows */
.abovePost .userDetails:has(.username-moon, .username-cherry-blossom, .username-cyberpunk, .username-starlight, .username-ember-phoenix, .username-aurora-frost, .username-golden-lanterns, .username-void-eclipse, .username-vaporwave, .username-forest-fireflies),
.post-author-info:has(.username-moon, .username-cherry-blossom, .username-cyberpunk, .username-starlight, .username-ember-phoenix, .username-aurora-frost, .username-golden-lanterns, .username-void-eclipse, .username-vaporwave, .username-forest-fireflies),
.commentInfo:has(.username-moon, .username-cherry-blossom, .username-cyberpunk, .username-starlight, .username-ember-phoenix, .username-aurora-frost, .username-golden-lanterns, .username-void-eclipse, .username-vaporwave, .username-forest-fireflies),
.connection-meta:has(.username-moon, .username-cherry-blossom, .username-cyberpunk, .username-starlight, .username-ember-phoenix, .username-aurora-frost, .username-golden-lanterns, .username-void-eclipse, .username-vaporwave, .username-forest-fireflies),
.profileProfileInfo:has(.username-moon, .username-cherry-blossom, .username-cyberpunk, .username-starlight, .username-ember-phoenix, .username-aurora-frost, .username-golden-lanterns, .username-void-eclipse, .username-vaporwave, .username-forest-fireflies) {
    overflow: visible !important;
}

/* Shared base for themed Credits Shop username flairs */
.username-cyberpunk,
.username-starlight,
.username-ember-phoenix,
.username-aurora-frost,
.username-golden-lanterns,
.username-void-eclipse,
.username-vaporwave,
.username-forest-fireflies {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: inline-block;
    width: fit-content;
    overflow: visible !important;
    line-height: 1.35;
    padding: 0.14em 0.55em 0.14em 0.35em;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-decoration: none;
}

.username-cyberpunk a,
.username-starlight a,
.username-ember-phoenix a,
.username-aurora-frost a,
.username-golden-lanterns a,
.username-void-eclipse a,
.username-vaporwave a,
.username-forest-fireflies a {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    text-decoration: none;
}

/* Shared rise/float keyframes for themed flair ambient particles */
@keyframes flairRiseSubtle {
    0% { transform: translate3d(0, 35%, 0); opacity: 0; }
    20% { opacity: 0.78; }
    80% { opacity: 0.55; }
    100% { transform: translate3d(6px, -42%, 0); opacity: 0; }
}

@keyframes flairTwinkleSubtle {
    0%, 100% { opacity: 0.45; transform: scale(0.96); }
    50% { opacity: 0.95; transform: scale(1.04); }
}

/* ---- 1. Cyberpunk Neon (Orbitron HUD brackets + neon scan aura) ---- */
@keyframes cyberpunkPulse {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(0, 240, 255, 0.92),
            0 0 16px rgba(255, 43, 214, 0.62),
            -1px 0 0 rgba(255, 43, 214, 0.72),
            1px 0 0 rgba(0, 240, 255, 0.78);
    }
    50% {
        text-shadow:
            0 0 10px rgba(0, 240, 255, 1),
            0 0 22px rgba(255, 43, 214, 0.8),
            -1.5px 0 0 rgba(255, 43, 214, 0.88),
            1.5px 0 0 rgba(0, 240, 255, 0.92);
    }
}

.username-cyberpunk {
    font-family: "Orbitron", system-ui, sans-serif;
    font-weight: 800;
    color: #e6ffff !important;
    -webkit-text-fill-color: #e6ffff !important;
    letter-spacing: 0.06em;
    padding: 0.16em 0.62em;
    animation: cyberpunkPulse 3.4s ease-in-out infinite !important;
}

.username-cyberpunk::before {
    content: "";
    position: absolute;
    inset: -0.08em -0.1em;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.09) 0 1px, transparent 1px 4px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.16), rgba(255, 43, 214, 0.12), rgba(0, 240, 255, 0.16));
    border-left: 2.5px solid #00f0ff;
    border-right: 2.5px solid #ff2bd6;
    border-radius: 4px;
    box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.18), 0 0 10px rgba(255, 43, 214, 0.25);
}

.username-cyberpunk::after {
    content: "";
    position: absolute;
    inset: -0.25em -0.25em;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 48'%3E%3Crect x='22' y='12' width='2.5' height='9' rx='1' fill='%2300f0ff' opacity='.85'/%3E%3Crect x='96' y='26' width='2.5' height='8' rx='1' fill='%23ff2bd6' opacity='.82'/%3E%3Crect x='154' y='10' width='2' height='10' rx='1' fill='%2300f0ff' opacity='.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: flairRiseSubtle 3.8s linear infinite;
}

/* ---- 2. Starlight Galaxy (Cinzel celestial font + soft nebula & stars) ---- */
@keyframes starlightPulse {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(167, 139, 250, 0.92),
            0 0 16px rgba(99, 102, 241, 0.68),
            0 1px 2px rgba(15, 10, 40, 0.8);
    }
    50% {
        text-shadow:
            0 0 10px rgba(224, 231, 255, 0.98),
            0 0 24px rgba(167, 139, 250, 0.82),
            0 1px 2px rgba(15, 10, 40, 0.8);
    }
}

.username-starlight {
    font-family: "Cinzel", Georgia, serif;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #eef2ff !important;
    -webkit-text-fill-color: #eef2ff !important;
    padding: 0.14em 0.55em;
    animation: starlightPulse 4.6s ease-in-out infinite !important;
}

.username-starlight::before {
    content: "";
    position: absolute;
    inset: -0.65em -0.95em;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 50% 50%, rgba(139, 92, 246, 0.42) 0%, rgba(79, 70, 229, 0.16) 55%, transparent 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 64' preserveAspectRatio='xMidYMid meet'%3E%3Cpath d='M26 14l2 5.5L33.5 21.5 28 23.5 26 29l-2-5.5-5.5-2 5.5-2z' fill='%23fde68a'/%3E%3Cpath d='M212 34l2.2 6L220 42l-5.8 2-2.2 6-2.2-6L204 42l5.8-2z' fill='%23e0e7ff'/%3E%3Cpath d='M124 8l1.4 3.6 3.6 1.4-3.6 1.4-1.4 3.6-1.4-3.6-3.6-1.4 3.6-1.4z' fill='%23c4b5fd'/%3E%3Ccircle cx='68' cy='50' r='1.8' fill='%23e0e7ff'/%3E%3Ccircle cx='178' cy='16' r='2' fill='%23fde68a'/%3E%3C/svg%3E") center / contain no-repeat;
}

.username-starlight::after {
    content: "";
    position: absolute;
    inset: -0.28em -0.38em;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 48'%3E%3Ccircle cx='34' cy='10' r='1.6' fill='%23fff'/%3E%3Ccircle cx='88' cy='38' r='1.8' fill='%23c4b5fd'/%3E%3Ccircle cx='146' cy='14' r='1.5' fill='%23fde68a'/%3E%3Ccircle cx='164' cy='34' r='1.3' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: flairTwinkleSubtle 3.2s ease-in-out infinite;
}

/* ---- 3. Ember Phoenix (Cinzel fiery font + organic burning text-shadow fire & rising embers) ---- */
@keyframes emberFireBurn {
    0% {
        text-shadow:
            0 0 4px #fff7cc,
            0 -2px 6px #fde047,
            1px -5px 10px #fb923c,
            -1px -8px 16px #ea580c,
            0 -11px 22px rgba(220, 38, 38, 0.72),
            0 1px 2px rgba(45, 10, 5, 0.9);
    }
    33% {
        text-shadow:
            0 0 5px #fffbeb,
            -1px -3px 7px #facc15,
            1px -6px 12px #f97316,
            -2px -10px 18px #dc2626,
            1px -13px 24px rgba(185, 28, 28, 0.78),
            0 1px 2px rgba(45, 10, 5, 0.9);
    }
    66% {
        text-shadow:
            0 0 4px #fef08a,
            1px -2px 6px #fb923c,
            -1px -6px 11px #ea580c,
            2px -9px 17px #dc2626,
            -1px -12px 22px rgba(220, 38, 38, 0.7),
            0 1px 2px rgba(45, 10, 5, 0.9);
    }
    100% {
        text-shadow:
            0 0 4px #fff7cc,
            0 -2px 6px #fde047,
            1px -5px 10px #fb923c,
            -1px -8px 16px #ea580c,
            0 -11px 22px rgba(220, 38, 38, 0.72),
            0 1px 2px rgba(45, 10, 5, 0.9);
    }
}

.username-ember-phoenix {
    font-family: "Cinzel", Georgia, serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff8e1 !important;
    -webkit-text-fill-color: #fff8e1 !important;
    padding: 0.14em 0.55em;
    animation: emberFireBurn 1.8s ease-in-out infinite !important;
}

.username-ember-phoenix::before {
    content: "";
    position: absolute;
    inset: -0.65em -0.9em -0.45em;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(closest-side at 50% 56%, rgba(234, 88, 12, 0.34) 0%, rgba(185, 28, 28, 0.16) 55%, transparent 100%);
}

.username-ember-phoenix::after {
    content: "";
    position: absolute;
    inset: -0.55em -0.45em -0.15em;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 54'%3E%3Ccircle cx='28' cy='36' r='2' fill='%23fef08a' opacity='.92'/%3E%3Ccircle cx='62' cy='24' r='1.6' fill='%23fb923c' opacity='.88'/%3E%3Ccircle cx='98' cy='18' r='2.2' fill='%23fde047' opacity='.9'/%3E%3Ccircle cx='134' cy='30' r='1.8' fill='%23f97316' opacity='.85'/%3E%3Ccircle cx='158' cy='22' r='1.5' fill='%23fffbeb' opacity='.9'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.9));
    animation: flairRiseSubtle 2.8s linear infinite;
}

/* ---- 4. Aurora Frost (Quicksand icy font + seamless northern-lights glow + ice crystals) ---- */
@keyframes auroraPulse {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(56, 189, 248, 0.92),
            0 0 16px rgba(45, 212, 191, 0.68),
            0 1px 2px rgba(6, 28, 42, 0.78);
    }
    50% {
        text-shadow:
            0 0 10px rgba(153, 246, 228, 0.96),
            0 0 22px rgba(129, 140, 248, 0.66),
            0 1px 2px rgba(6, 28, 42, 0.78);
    }
}

.username-aurora-frost {
    font-family: "Quicksand", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e6fbff !important;
    -webkit-text-fill-color: #e6fbff !important;
    padding: 0.14em 0.6em;
    animation: auroraPulse 4.8s ease-in-out infinite !important;
}

.username-aurora-frost::before {
    content: "";
    position: absolute;
    inset: -0.65em -1.05em;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 34% 48%, rgba(45, 212, 191, 0.38) 0%, rgba(56, 189, 248, 0.14) 55%, transparent 100%),
        radial-gradient(closest-side at 68% 52%, rgba(129, 140, 248, 0.34) 0%, rgba(56, 189, 248, 0.12) 55%, transparent 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60' preserveAspectRatio='xMidYMid meet'%3E%3Cg stroke='%23e0f2fe' stroke-width='1.5' stroke-linecap='round' opacity='.85'%3E%3Cpath d='M28 18v12M22 24h12M24 20l8 8M32 20l-8 8'/%3E%3Cpath d='M212 30v12M206 36h12M208 32l8 8M216 32l-8 8'/%3E%3C/g%3E%3Cpolygon points='190,10 194,16 190,22 186,16' fill='%2399f6e4' opacity='.78'/%3E%3C/svg%3E") center / contain no-repeat;
}

.username-aurora-frost::after {
    content: "";
    position: absolute;
    inset: -0.25em -0.35em;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 48'%3E%3Ccircle cx='34' cy='10' r='2' fill='%23e0f2fe' opacity='.85'/%3E%3Ccircle cx='96' cy='18' r='1.7' fill='%2399f6e4' opacity='.8'/%3E%3Ccircle cx='152' cy='12' r='2.1' fill='%23bae6fd' opacity='.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: cherryBlossomSubtleFall 5.6s linear infinite;
}

/* ---- 5. Golden Lanterns (Playfair Display serif + warm lantern aura) ---- */
@keyframes lanternPulse {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(245, 158, 11, 0.94),
            0 0 16px rgba(220, 38, 38, 0.65),
            0 1px 2px rgba(42, 16, 4, 0.8);
    }
    50% {
        text-shadow:
            0 0 10px rgba(254, 240, 138, 0.98),
            0 0 22px rgba(245, 158, 11, 0.82),
            0 1px 2px rgba(42, 16, 4, 0.8);
    }
}

.username-golden-lanterns {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff7d6 !important;
    -webkit-text-fill-color: #fff7d6 !important;
    padding: 0.14em 0.7em;
    animation: lanternPulse 4.4s ease-in-out infinite !important;
}

.username-golden-lanterns::before {
    content: "";
    position: absolute;
    inset: -0.6em -0.9em;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 50% 50%, rgba(245, 158, 11, 0.36) 0%, rgba(220, 38, 38, 0.14) 55%, transparent 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60' preserveAspectRatio='xMidYMid meet'%3E%3Crect x='14' y='16' width='14' height='20' rx='6' fill='%23dc2626' stroke='%23fde047' stroke-width='1.5'/%3E%3Cpath d='M21 36v7' stroke='%23fde047' stroke-width='1.5'/%3E%3Crect x='212' y='18' width='12' height='18' rx='5' fill='%23dc2626' stroke='%23fde047' stroke-width='1.4'/%3E%3Cpath d='M218 36v6' stroke='%23fde047' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.username-golden-lanterns::after {
    content: "";
    position: absolute;
    inset: -0.25em -0.35em;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 48'%3E%3Ccircle cx='40' cy='34' r='2.2' fill='%23fef08a' opacity='.88'/%3E%3Ccircle cx='110' cy='26' r='2' fill='%23f59e0b' opacity='.82'/%3E%3Ccircle cx='158' cy='32' r='1.8' fill='%23fde047' opacity='.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: flairRiseSubtle 5s linear infinite;
}

/* ---- 6. Void Eclipse (Space Grotesk + black hole & accretion disk behind the name) ---- */
@keyframes voidPulse {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(192, 132, 252, 0.92),
            0 0 18px rgba(126, 34, 206, 0.82),
            0 1px 3px rgba(8, 2, 18, 0.95);
    }
    50% {
        text-shadow:
            0 0 11px rgba(233, 213, 255, 0.98),
            0 0 26px rgba(168, 85, 247, 0.9),
            0 1px 3px rgba(8, 2, 18, 0.95);
    }
}

.username-void-eclipse {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #f3e8ff !important;
    -webkit-text-fill-color: #f3e8ff !important;
    padding: 0.16em 0.62em;
    animation: voidPulse 4.4s ease-in-out infinite !important;
}

/* Swirling black hole singularity + tilted violet accretion disk centered behind the username */
.username-void-eclipse::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 145%;
    min-width: 5.2em;
    height: 2.8em;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90' preserveAspectRatio='xMidYMid meet'%3E%3Cdefs%3E%3CradialGradient id='bhGlow' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%2305010a'/%3E%3Cstop offset='34%25' stop-color='%23090214'/%3E%3Cstop offset='48%25' stop-color='%23a855f7' stop-opacity='.88'/%3E%3Cstop offset='66%25' stop-color='%237e22ce' stop-opacity='.38'/%3E%3Cstop offset='100%25' stop-color='%237e22ce' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='bhRing' x1='0%25' y1='50%25' x2='100%25' y2='50%25'%3E%3Cstop offset='0%25' stop-color='%239333ea' stop-opacity='0'/%3E%3Cstop offset='25%25' stop-color='%23c084fc' stop-opacity='.9'/%3E%3Cstop offset='50%25' stop-color='%23f5d0fe' stop-opacity='.98'/%3E%3Cstop offset='75%25' stop-color='%23a855f7' stop-opacity='.9'/%3E%3Cstop offset='100%25' stop-color='%239333ea' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='110' cy='45' rx='76' ry='40' fill='url(%23bhGlow)'/%3E%3Cellipse cx='110' cy='45' rx='84' ry='14' fill='none' stroke='url(%23bhRing)' stroke-width='3.2' transform='rotate(-10 110 45)'/%3E%3Cellipse cx='110' cy='45' rx='62' ry='9' fill='none' stroke='%23e9d5ff' stroke-width='1.3' opacity='.7' transform='rotate(-10 110 45)'/%3E%3Ccircle cx='110' cy='45' r='22' fill='%2304010a' stroke='%23e9d5ff' stroke-width='1.5' stroke-opacity='.85'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7));
}

.username-void-eclipse::after {
    content: "";
    position: absolute;
    inset: -0.3em -0.35em;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 48'%3E%3Ccircle cx='30' cy='14' r='2' fill='%23c084fc' opacity='.82'/%3E%3Ccircle cx='102' cy='38' r='2.1' fill='%23e9d5ff' opacity='.78'/%3E%3Ccircle cx='152' cy='16' r='1.8' fill='%23a855f7' opacity='.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: flairTwinkleSubtle 3.8s ease-in-out infinite;
}

/* ---- 7. Vaporwave Sunset (Audiowide retro font + big sliced outrun sun behind the name) ---- */
@keyframes vaporPulse {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(244, 114, 182, 0.92),
            0 0 16px rgba(251, 146, 60, 0.74),
            0 1px 2px rgba(34, 8, 42, 0.85);
    }
    50% {
        text-shadow:
            0 0 10px rgba(253, 186, 116, 0.96),
            0 0 22px rgba(232, 121, 249, 0.78),
            0 1px 2px rgba(34, 8, 42, 0.85);
    }
}

.username-vaporwave {
    font-family: "Audiowide", "Orbitron", sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #ffe8f7 !important;
    -webkit-text-fill-color: #ffe8f7 !important;
    padding: 0.14em 0.6em;
    animation: vaporPulse 4.2s ease-in-out infinite !important;
}

.username-vaporwave::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 130%;
    min-width: 4.4em;
    height: 2.5em;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 84' preserveAspectRatio='xMidYMid meet'%3E%3Cdefs%3E%3ClinearGradient id='vs' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23fde047'/%3E%3Cstop offset='52%25' stop-color='%23fb7185'/%3E%3Cstop offset='100%25' stop-color='%23a855f7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='100' cy='42' r='34' fill='url(%23vs)' opacity='.86'/%3E%3Crect x='62' y='44' width='76' height='3' fill='%23160d26' opacity='.78'/%3E%3Crect x='64' y='52' width='72' height='4' fill='%23160d26' opacity='.82'/%3E%3Crect x='68' y='61' width='64' height='5' fill='%23160d26' opacity='.86'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.55));
}

.username-vaporwave::after {
    content: "";
    position: absolute;
    inset: -0.25em -0.35em;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 48'%3E%3Cpath d='M32 8l1.5 4.5L38 14l-4.5 1.5L32 20l-1.5-4.5L26 14l4.5-1.5z' fill='%23fde047' opacity='.88'/%3E%3Cpath d='M148 26l1.3 3.7 3.7 1.3-3.7 1.3-1.3 3.7-1.3-3.7-3.7-1.3 3.7-1.3z' fill='%2322d3ee' opacity='.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: flairTwinkleSubtle 3.4s ease-in-out infinite;
}

/* ---- 8. Forest Fireflies (woodland vine + glowing fireflies) ---- */
@keyframes forestPulse {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(74, 222, 128, 0.88),
            0 0 16px rgba(163, 230, 53, 0.55),
            0 1px 2px rgba(8, 28, 16, 0.8);
    }
    50% {
        text-shadow:
            0 0 10px rgba(190, 242, 100, 0.95),
            0 0 22px rgba(34, 197, 94, 0.7),
            0 1px 2px rgba(8, 28, 16, 0.8);
    }
}

.username-forest-fireflies {
    color: #ecfdf5 !important;
    -webkit-text-fill-color: #ecfdf5 !important;
    animation: forestPulse 4.6s ease-in-out infinite !important;
}

.username-forest-fireflies::before {
    content: "";
    position: absolute;
    left: -0.9em;
    right: -0.55em;
    top: 52%;
    height: 2em;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 56' preserveAspectRatio='xMidYMid meet'%3E%3Cpath d='M2 31 C48 24, 96 36, 146 28 C188 21, 222 32, 252 24' fill='none' stroke='%23166534' stroke-width='3.2' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M44 27 c6-10 16-12 22-6 c-6 7-15 9-22 6z' fill='%234ade80' opacity='.82'/%3E%3Cpath d='M124 31 c8 9 18 10 24 3 c-7-7-16-8-24-3z' fill='%2322c55e' opacity='.82'/%3E%3Cpath d='M214 27 c7-9 16-10 22-4 c-6 7-15 8-22 4z' fill='%2386efac' opacity='.85'/%3E%3Ccircle cx='96' cy='21' r='2.6' fill='%23d9f99d'/%3E%3Ccircle cx='186' cy='34' r='2.4' fill='%23bef264'/%3E%3C/svg%3E") left center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.5));
}

.username-forest-fireflies::after {
    content: "";
    position: absolute;
    inset: -0.25em -0.35em;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 48'%3E%3Ccircle cx='34' cy='28' r='2.4' fill='%23d9f99d' opacity='.9'/%3E%3Ccircle cx='98' cy='14' r='2' fill='%23bef264' opacity='.85'/%3E%3Ccircle cx='152' cy='30' r='2.3' fill='%23fef08a' opacity='.9'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: flairRiseSubtle 4.8s ease-in-out infinite;
}

/* Moon flair (Account #81 exclusive) - Lightweight GPU-composited Hotline Miami 3D neon cyan wave */
/* Only transform and opacity are animated (1 span/char + ::after static 3D bevel, offscreen paused, lite mode in feeds). */
@keyframes moonHotlineWordSway {
    0%, 100% {
        transform: rotate(-1.5deg);
    }
    50% {
        transform: rotate(1.3deg);
    }
}

/* Base character (static electric cyan neon): handles voltage flicker via GPU opacity only */
@keyframes moonBaseFlicker {
    0%, 54% {
        opacity: 1;
    }
    58% {
        opacity: 0.34;
    }
    61% {
        opacity: 1;
    }
    64% {
        opacity: 0.5;
    }
    68%, 100% {
        opacity: 1;
    }
}

/* 3D extruded front face (::after with static cyan 3D bevel shadow): GPU transform + opacity only */
@keyframes moonFrontFaceWave {
    0%, 4% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(1);
    }
    7% {
        opacity: 1;
        transform: translate3d(-0.015em, -0.06em, 0) scale(1.06);
    }
    14%, 24% {
        opacity: 1;
        transform: translate3d(-0.055em, -0.22em, 0) scale(1.22);
    }
    34% {
        opacity: 0.85;
        transform: translate3d(0, 0, 0) scale(1);
    }
    39%, 70% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(1);
    }
    76%, 81% {
        opacity: 0.52;
        transform: translate3d(0, 0, 0) scale(1);
    }
    88%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.username-moon {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    width: fit-content;
    overflow: visible !important;
    contain: style;
    padding: 0.24em 0.22em 0.12em 0.2em;
    font-family: "Russo One", "Orbitron", "Audiowide", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-decoration: none;
    color: #030b10 !important;
    -webkit-text-fill-color: #030b10 !important;
    -webkit-text-stroke: 0.085em #00d9ff;
    paint-order: stroke fill;
    text-shadow:
        0 0 0.14em rgba(0, 217, 255, 0.85),
        0 0 0.30em rgba(0, 150, 200, 0.45);
    transform-origin: center center;
    animation: moonHotlineWordSway 4.4s ease-in-out infinite !important;
}

.username-moon a {
    display: inline-flex;
    align-items: baseline;
    color: #030b10 !important;
    -webkit-text-fill-color: #030b10 !important;
    text-decoration: none;
}

/* Single-node lightweight mode for dense repeated post grids, comments, and badge pills */
.username-moon.moon-lite {
    padding: 0.08em 0.14em;
    animation: none !important;
    transform: skewX(-10deg);
}

.username-moon.moon-paused,
.username-moon.moon-paused .moon-char,
.username-moon.moon-paused .moon-char::after {
    animation-play-state: paused !important;
}

.username-moon .moon-char {
    position: relative;
    display: inline-block;
    overflow: visible !important;
    color: #030b10 !important;
    -webkit-text-fill-color: #030b10 !important;
    -webkit-text-stroke: 0.09em #00d9ff;
    paint-order: stroke fill;
    text-shadow:
        0 0 0.14em rgba(0, 217, 255, 0.85),
        0 0 0.30em rgba(0, 150, 200, 0.45);
    transform-origin: 50% 62%;
    transform: skewX(-12deg);
    animation: moonBaseFlicker 4.4s linear infinite !important;
    animation-delay: calc(var(--moon-i, 0) * 0.14s) !important;
}

/* Cached 3D extruded cyan layer: static bevel text-shadow, GPU transform+opacity animation only */
.username-moon .moon-char::after {
    content: attr(data-char);
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    color: #030b10 !important;
    -webkit-text-fill-color: #030b10 !important;
    -webkit-text-stroke: 0.09em #e6ffff;
    paint-order: stroke fill;
    text-shadow:
        0.02em 0.04em 0 #8cf7ff,
        0.04em 0.08em 0 #33e6ff,
        0.06em 0.12em 0 #00b8e6,
        0.08em 0.16em 0 #007ca8,
        0.10em 0.20em 0 #00527a,
        0 0 0.22em rgba(180, 252, 255, 0.88),
        0 0 0.44em rgba(0, 217, 255, 0.58);
    transform-origin: 50% 62%;
    opacity: 0;
    animation: moonFrontFaceWave 4.4s linear infinite !important;
    animation-delay: calc(var(--moon-i, 0) * 0.14s) !important;
}

.username-moon .moon-space {
    display: inline-block;
    width: 0.32em;
}

/* Lightweight static mode for repeated post cards, comments, and connection lists
   so scrolling dense grids never creates hundreds of animated text-shadow/pseudo-element GPU layers. */
:is(.abovePost, .booruPost, .commentInfo, .connection-meta, .profile-badge-pill) :is(
    .username-cherry-blossom,
    .username-cyberpunk,
    .username-starlight,
    .username-ember-phoenix,
    .username-aurora-frost,
    .username-golden-lanterns,
    .username-void-eclipse,
    .username-vaporwave,
    .username-forest-fireflies
) {
    animation: none !important;
}

:is(.abovePost, .booruPost, .commentInfo, .connection-meta, .profile-badge-pill) :is(
    .username-cherry-blossom,
    .username-cyberpunk,
    .username-starlight,
    .username-ember-phoenix,
    .username-aurora-frost,
    .username-golden-lanterns,
    .username-void-eclipse,
    .username-vaporwave,
    .username-forest-fireflies
)::before {
    animation: none !important;
    filter: none !important;
}

:is(.abovePost, .booruPost, .commentInfo, .connection-meta, .profile-badge-pill) :is(
    .username-cherry-blossom,
    .username-cyberpunk,
    .username-starlight,
    .username-ember-phoenix,
    .username-aurora-frost,
    .username-golden-lanterns,
    .username-void-eclipse,
    .username-vaporwave,
    .username-forest-fireflies
)::after {
    display: none !important;
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .username-gold,
    .username-gold a,
    .username-silver,
    .username-silver a,
    .username-bronze,
    .username-bronze a,
    .username-cherry-blossom,
    .username-cherry-blossom a,
    .username-cherry-blossom::before,
    .username-cherry-blossom::after,
    .username-cyberpunk,
    .username-cyberpunk::after,
    .username-starlight,
    .username-starlight::after,
    .username-ember-phoenix,
    .username-ember-phoenix::before,
    .username-ember-phoenix::after,
    .username-aurora-frost,
    .username-aurora-frost::after,
    .username-golden-lanterns,
    .username-golden-lanterns::after,
    .username-void-eclipse,
    .username-void-eclipse::after,
    .username-vaporwave,
    .username-vaporwave::after,
    .username-forest-fireflies,
    .username-forest-fireflies::after {
        animation: none !important;
    }

    .username-moon,
    .username-moon .moon-char,
    .username-moon .moon-char::after {
        animation: none !important;
    }

    .username-moon {
        transform: none;
    }

    .username-moon .moon-char::after {
        opacity: 0 !important;
    }

    .username-moon .moon-char {
        opacity: 1 !important;
        transform: skewX(-12deg);
        -webkit-text-stroke-color: #33e6ff;
        text-shadow:
            0 0 0.14em rgba(51, 230, 255, 0.85),
            0 0 0.30em rgba(0, 184, 230, 0.48);
    }
}
