/* ============================================================
   PIXFORGE PROFILE COSMETICS
   Avatar Borders & Profile Page Effects (9 Themed Sets)
   ============================================================ */

@property --pf-border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes pfBorderAngleSpin {
    to { --pf-border-angle: 360deg; }
}

/* ---------- Avatar Border Wrapper ---------- */
.avatar-border-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-border-wrap > img {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 !important;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(8, 10, 18, 0.72);
}

/* ---------- Shared Avatar Border Keyframes ---------- */
@keyframes cherryBlossomAuraPulse {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(255, 224, 238, 0.9),
            0 0 14px rgba(255, 138, 186, 0.72),
            0 0 28px rgba(244, 114, 182, 0.35);
    }
    50% {
        box-shadow:
            0 0 0 2.5px rgba(255, 240, 247, 0.98),
            0 0 20px rgba(255, 158, 202, 0.88),
            0 0 36px rgba(244, 114, 182, 0.5);
    }
}

@keyframes cherryBlossomAvatarPetalsFall {
    0% { transform: translate3d(-4px, -22%, 0); opacity: 0; }
    20% { opacity: 0.78; }
    80% { opacity: 0.58; }
    100% { transform: translate3d(10px, 34%, 0); opacity: 0; }
}

@keyframes borderParticlesRise {
    0% { transform: translate3d(0, 24%, 0); opacity: 0; }
    22% { opacity: 0.82; }
    80% { opacity: 0.55; }
    100% { transform: translate3d(6px, -30%, 0); opacity: 0; }
}

@keyframes borderSparklePulse {
    0%, 100% { opacity: 0.45; transform: scale(0.97); }
    50% { opacity: 0.95; transform: scale(1.03); }
}

/* ============================================================
   1. CHERRY BLOSSOM AVATAR BORDER
   ============================================================ */
.avatar-border-cherry-blossom {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #ffe4f0, #ff9ec7, #f472b6, #fff1f7, #fbcfe8, #ec4899, #ffb7d5, #ffe4f0);
    box-shadow: 0 0 0 2px rgba(255, 224, 238, 0.9), 0 0 16px rgba(255, 138, 186, 0.75), 0 0 30px rgba(244, 114, 182, 0.38);
    animation: pfBorderAngleSpin 8s linear infinite;
    isolation: isolate;
}

.avatar-border-cherry-blossom::before {
    content: "";
    position: absolute;
    inset: -9%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23fff2f8'/%3E%3Cstop offset='100%25' stop-color='%23ff9ec7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M22 28C32 13 52 7 72 11c13 2.5 23 9 30 20' fill='none' stroke='%236d3142' stroke-width='2.4' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M96 92c-10 13-27 20-44 18-13-1.5-24-8-32-18' fill='none' stroke='%236d3142' stroke-width='2.1' stroke-linecap='round' opacity='.78'/%3E%3Cg transform='translate(92 25) scale(.62)'%3E%3Cg fill='url(%23p)' stroke='%23f472b6' stroke-width='1'%3E%3Cpath d='M0-14c3 3 4 7 2 10L0 0l-2-4c-2-3-1-7 2-10z'/%3E%3Cpath d='M13-4c-2 4-5 6-9 5L0 0l3-3c3-3 6-3 10-1z'/%3E%3Cpath d='M8 11c-4-.5-7-3-8-6L0 0l4 2c3 1.5 4 5 4 9z'/%3E%3Cpath d='M-8 11c0-4 1-7.5 4-9L0 0l0 5c-1 3-4 5.5-8 6z'/%3E%3Cpath d='M-13-4c4-2 7-2 10 1L0 0l-4 1c-4 1-7-1-9-5z'/%3E%3C/g%3E%3Ccircle r='3' fill='%23fff5fa'/%3E%3Ccircle r='1.5' fill='%23fb7185'/%3E%3C/g%3E%3Cg transform='translate(75 13) scale(.42) rotate(24)'%3E%3Cg fill='url(%23p)' stroke='%23f472b6' stroke-width='1.1'%3E%3Cpath d='M0-14c3 3 4 7 2 10L0 0l-2-4c-2-3-1-7 2-10z'/%3E%3Cpath d='M13-4c-2 4-5 6-9 5L0 0l3-3c3-3 6-3 10-1z'/%3E%3Cpath d='M8 11c-4-.5-7-3-8-6L0 0l4 2c3 1.5 4 5 4 9z'/%3E%3Cpath d='M-8 11c0-4 1-7.5 4-9L0 0l0 5c-1 3-4 5.5-8 6z'/%3E%3Cpath d='M-13-4c4-2 7-2 10 1L0 0l-4 1c-4 1-7-1-9-5z'/%3E%3C/g%3E%3Ccircle r='2.6' fill='%23fff5fa'/%3E%3C/g%3E%3Cg transform='translate(26 95) scale(.54) rotate(-18)'%3E%3Cg fill='url(%23p)' stroke='%23f472b6' stroke-width='1'%3E%3Cpath d='M0-14c3 3 4 7 2 10L0 0l-2-4c-2-3-1-7 2-10z'/%3E%3Cpath d='M13-4c-2 4-5 6-9 5L0 0l3-3c3-3 6-3 10-1z'/%3E%3Cpath d='M8 11c-4-.5-7-3-8-6L0 0l4 2c3 1.5 4 5 4 9z'/%3E%3Cpath d='M-8 11c0-4 1-7.5 4-9L0 0l0 5c-1 3-4 5.5-8 6z'/%3E%3Cpath d='M-13-4c4-2 7-2 10 1L0 0l-4 1c-4 1-7-1-9-5z'/%3E%3C/g%3E%3Ccircle r='3' fill='%23fff5fa'/%3E%3Ccircle r='1.4' fill='%23fb7185'/%3E%3C/g%3E%3Ccircle cx='34' cy='18' r='2.8' fill='%23ffb7d5' stroke='%23f472b6' stroke-width='.9'/%3E%3Ccircle cx='103' cy='40' r='2.3' fill='%23ffd6e8' stroke='%23f472b6' stroke-width='.8'/%3E%3Ccircle cx='88' cy='101' r='2.5' fill='%23ffb7d5' stroke='%23f472b6' stroke-width='.8'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(244, 114, 182, 0.7));
}

.avatar-border-cherry-blossom::after {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M24 14c-2.6 1.8-4.5 4.6-4.2 7.4.3 2.3 2.1 3.7 4.2 4 2.1-.3 3.9-1.7 4.2-4 .3-2.8-1.6-5.6-4.2-7.4z' fill='%23ffd6e8' opacity='.85' transform='rotate(20 24 20)'/%3E%3Cpath d='M96 34c-2 1.4-3.5 3.6-3.2 5.8.2 1.8 1.6 2.9 3.2 3.1 1.6-.2 3-1.3 3.2-3.1.3-2.2-1.2-4.4-3.2-5.8z' fill='%23ffb7d5' opacity='.78' transform='rotate(-24 96 39)'/%3E%3Cpath d='M42 84c-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='%23ffe4f0' opacity='.72' transform='rotate(16 42 88)'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: cherryBlossomAvatarPetalsFall 5.2s linear infinite;
}

img.avatar-border-cherry-blossom {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff9ec7, #fff0f7, #f472b6, #fbcfe8) !important;
    border: 2px solid rgba(255, 224, 238, 0.92) !important;
    box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.45), 0 0 10px rgba(255, 138, 186, 0.8), 0 0 20px rgba(244, 114, 182, 0.45) !important;
    animation: cherryBlossomAuraPulse 4.2s ease-in-out infinite;
}

/* ============================================================
   2. CYBERPUNK NEON AVATAR BORDER
   ============================================================ */
@keyframes cyberpunkBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.88), 0 0 14px rgba(0, 240, 255, 0.72), 0 0 26px rgba(255, 43, 214, 0.45); }
    50% { box-shadow: 0 0 0 2.5px rgba(255, 43, 214, 0.92), 0 0 18px rgba(255, 43, 214, 0.75), 0 0 32px rgba(0, 240, 255, 0.55); }
}

.avatar-border-cyberpunk {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #00f0ff, #0ea5e9, #ff2bd6, #7c3aed, #00f0ff);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.88), 0 0 16px rgba(0, 240, 255, 0.74), 0 0 30px rgba(255, 43, 214, 0.48);
    animation: pfBorderAngleSpin 6s linear infinite;
    isolation: isolate;
}

.avatar-border-cyberpunk::before {
    content: "";
    position: absolute;
    inset: -11%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='55' fill='none' stroke='%2300f0ff' stroke-width='2.2' stroke-dasharray='22 8 6 8' opacity='.92'/%3E%3Ccircle cx='60' cy='60' r='49' fill='none' stroke='%23ff2bd6' stroke-width='1.4' stroke-dasharray='12 18' opacity='.85'/%3E%3Cpath d='M16 28L28 16M104 28L92 16M16 92L28 104M104 92L92 104' stroke='%2300f0ff' stroke-width='2.6' stroke-linecap='square'/%3E%3Cpath d='M60 1v9M60 110v9M1 60h9M110 60h9' stroke='%23ff2bd6' stroke-width='2.2' stroke-linecap='square'/%3E%3Cpolygon points='97,18 103,24 97,30 91,24' fill='%23ff2bd6'/%3E%3Cpolygon points='23,90 29,96 23,102 17,96' fill='%2300f0ff'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.85));
}

.avatar-border-cyberpunk::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect x='18' y='24' width='2.5' height='10' rx='1' fill='%2300f0ff'/%3E%3Crect x='98' y='72' width='2.5' height='10' rx='1' fill='%23ff2bd6'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderParticlesRise 3.6s linear infinite;
}

img.avatar-border-cyberpunk {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00f0ff, #ff2bd6, #00f0ff) !important;
    border: 2px solid rgba(0, 240, 255, 0.9) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.82), 0 0 20px rgba(255, 43, 214, 0.5) !important;
    animation: cyberpunkBorderPulse 3.2s ease-in-out infinite;
}

/* ============================================================
   3. STARLIGHT GALAXY AVATAR BORDER
   ============================================================ */
@keyframes starlightBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.88), 0 0 16px rgba(139, 92, 246, 0.72), 0 0 28px rgba(99, 102, 241, 0.42); }
    50% { box-shadow: 0 0 0 2.5px rgba(224, 231, 255, 0.96), 0 0 22px rgba(167, 139, 250, 0.85), 0 0 36px rgba(139, 92, 246, 0.52); }
}

.avatar-border-starlight {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #312e81, #818cf8, #e0e7ff, #a78bfa, #4f46e5, #c4b5fd, #312e81);
    box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.9), 0 0 18px rgba(139, 92, 246, 0.78), 0 0 32px rgba(99, 102, 241, 0.48);
    animation: pfBorderAngleSpin 9s linear infinite;
    isolation: isolate;
}

.avatar-border-starlight::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='53' fill='none' stroke='%23c4b5fd' stroke-width='1.3' stroke-dasharray='4 6' opacity='.72'/%3E%3Cpath d='M95 16c-5 1-8 6-7 11 1 5 6 8 11 7-4 3-10 2-13-2-3-4-2-10 2-13 2-2 5-3 7-3z' fill='%23fde68a'/%3E%3Cpath d='M24 92l2.5 6.5L33 101l-6.5 2.5L24 110l-2.5-6.5L15 101l6.5-2.5z' fill='%23e0e7ff'/%3E%3Cpath d='M22 18l1.6 4.4L28 24l-4.4 1.6L22 30l-1.6-4.4L16 24l4.4-1.6z' fill='%23c4b5fd'/%3E%3Cpath d='M98 90l1.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='%23fde68a'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.85));
}

.avatar-border-starlight::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='18' cy='46' r='2' fill='%23fff'/%3E%3Ccircle cx='104' cy='64' r='2.2' fill='%23fde68a'/%3E%3Ccircle cx='58' cy='8' r='1.8' fill='%23e0e7ff'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderSparklePulse 3s ease-in-out infinite;
}

img.avatar-border-starlight {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #6366f1, #e0e7ff, #a78bfa, #4f46e5) !important;
    border: 2px solid rgba(224, 231, 255, 0.9) !important;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.85), 0 0 20px rgba(99, 102, 241, 0.5) !important;
    animation: starlightBorderPulse 4.4s ease-in-out infinite;
}

/* ============================================================
   4. EMBER PHOENIX AVATAR BORDER
   ============================================================ */
@keyframes emberBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.9), 0 0 16px rgba(249, 115, 22, 0.82), 0 0 28px rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 0 2.5px rgba(254, 240, 138, 0.96), 0 0 22px rgba(251, 146, 60, 0.92), 0 0 38px rgba(239, 68, 68, 0.62); }
}

.avatar-border-ember-phoenix {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #dc2626, #f97316, #fde047, #fb923c, #b91c1c, #facc15, #dc2626);
    box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.92), 0 0 18px rgba(249, 115, 22, 0.85), 0 0 32px rgba(220, 38, 38, 0.55);
    animation: pfBorderAngleSpin 6.5s linear infinite;
    isolation: isolate;
}

.avatar-border-ember-phoenix::before {
    content: "";
    position: absolute;
    inset: -11%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3ClinearGradient id='fl' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23ef4444'/%3E%3Cstop offset='55%25' stop-color='%23f97316'/%3E%3Cstop offset='100%25' stop-color='%23fef08a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M86 16c10 4 16 14 14 24-4-7-10-10-16-9 6-5 6-10 2-15z' fill='url(%23fl)'/%3E%3Cpath d='M34 104c-10-4-16-14-14-24 4 7 10 10 16 9-6 5-6 10-2 15z' fill='url(%23fl)'/%3E%3Cpath d='M18 38c2-11 10-20 21-22-6 5-9 11-8 17-5-4-9-2-13 5z' fill='url(%23fl)' opacity='.9'/%3E%3Cpath d='M102 82c-2 11-10 20-21 22 6-5 9-11 8-17 5 4 9 2 13-5z' fill='url(%23fl)' opacity='.9'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.85));
}

.avatar-border-ember-phoenix::after {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='24' cy='74' r='2.4' fill='%23fde047'/%3E%3Ccircle cx='96' cy='46' r='2.2' fill='%23fb923c'/%3E%3Ccircle cx='66' cy='96' r='2' fill='%23ef4444'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderParticlesRise 3.8s linear infinite;
}

img.avatar-border-ember-phoenix {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #dc2626, #fde047, #f97316, #b91c1c) !important;
    border: 2px solid rgba(254, 215, 170, 0.92) !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.85), 0 0 20px rgba(220, 38, 38, 0.55) !important;
    animation: emberBorderPulse 3.4s ease-in-out infinite;
}

/* ============================================================
   5. AURORA FROST AVATAR BORDER
   ============================================================ */
@keyframes auroraBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(186, 230, 253, 0.9), 0 0 16px rgba(56, 189, 248, 0.78), 0 0 28px rgba(45, 212, 191, 0.45); }
    50% { box-shadow: 0 0 0 2.5px rgba(204, 251, 241, 0.96), 0 0 22px rgba(45, 212, 191, 0.85), 0 0 36px rgba(129, 140, 248, 0.5); }
}

.avatar-border-aurora-frost {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #38bdf8, #99f6e4, #818cf8, #e0f2fe, #2dd4bf, #38bdf8);
    box-shadow: 0 0 0 2px rgba(186, 230, 253, 0.92), 0 0 18px rgba(56, 189, 248, 0.8), 0 0 32px rgba(45, 212, 191, 0.48);
    animation: pfBorderAngleSpin 8.5s linear infinite;
    isolation: isolate;
}

.avatar-border-aurora-frost::before {
    content: "";
    position: absolute;
    inset: -11%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='54' fill='none' stroke='%2399f6e4' stroke-width='1.3' stroke-dasharray='10 6' opacity='.7'/%3E%3Cg transform='translate(94 22)' stroke='%23e0f2fe' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M0-10v20M-8.6-5l17.2 10M8.6-5l-17.2 10'/%3E%3Cpolygon points='0,-4.5 3.9,-2.2 3.9,2.2 0,4.5 -3.9,2.2 -3.9,-2.2' fill='%2399f6e4'/%3E%3C/g%3E%3Cg transform='translate(24 96) scale(.86)' stroke='%23e0f2fe' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M0-10v20M-8.6-5l17.2 10M8.6-5l-17.2 10'/%3E%3Cpolygon points='0,-4.5 3.9,-2.2 3.9,2.2 0,4.5 -3.9,2.2 -3.9,-2.2' fill='%23bae6fd'/%3E%3C/g%3E%3Cpolygon points='22,18 27,25 22,32 17,25' fill='%2399f6e4' stroke='%23e0f2fe' stroke-width='1'/%3E%3Cpolygon points='98,88 103,94 98,100 93,94' fill='%23bae6fd' stroke='%23e0f2fe' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.85));
}

.avatar-border-aurora-frost::after {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='28' cy='18' r='2.2' fill='%23e0f2fe'/%3E%3Ccircle cx='98' cy='42' r='2' fill='%2399f6e4'/%3E%3Ccircle cx='44' cy='88' r='1.8' fill='%23bae6fd'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: cherryBlossomAvatarPetalsFall 5.6s linear infinite;
}

img.avatar-border-aurora-frost {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #38bdf8, #e0f2fe, #2dd4bf, #818cf8) !important;
    border: 2px solid rgba(224, 242, 254, 0.92) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.85), 0 0 20px rgba(45, 212, 191, 0.5) !important;
    animation: auroraBorderPulse 4.6s ease-in-out infinite;
}

/* ============================================================
   6. GOLDEN LANTERNS AVATAR BORDER
   ============================================================ */
@keyframes lanternBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(254, 240, 138, 0.9), 0 0 16px rgba(245, 158, 11, 0.8), 0 0 28px rgba(220, 38, 38, 0.45); }
    50% { box-shadow: 0 0 0 2.5px rgba(254, 249, 195, 0.96), 0 0 22px rgba(251, 191, 36, 0.9), 0 0 36px rgba(245, 158, 11, 0.58); }
}

.avatar-border-golden-lanterns {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #b45309, #fbbf24, #fef08a, #dc2626, #f59e0b, #fef08a, #b45309);
    box-shadow: 0 0 0 2px rgba(254, 240, 138, 0.92), 0 0 18px rgba(245, 158, 11, 0.84), 0 0 32px rgba(220, 38, 38, 0.48);
    animation: pfBorderAngleSpin 8s linear infinite;
    isolation: isolate;
}

.avatar-border-golden-lanterns::before {
    content: "";
    position: absolute;
    inset: -11%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3CradialGradient id='gl' cx='50%25' cy='45%25' r='55%25'%3E%3Cstop offset='0%25' stop-color='%23fef08a'/%3E%3Cstop offset='55%25' stop-color='%23ef4444'/%3E%3Cstop offset='100%25' stop-color='%23991b1b'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='60' cy='60' r='54' fill='none' stroke='%23fde047' stroke-width='1.5' stroke-dasharray='18 7 4 7' opacity='.85'/%3E%3Cg transform='translate(94 23)'%3E%3Crect x='-4.5' y='-11' width='9' height='2.4' rx='1' fill='%23fbbf24'/%3E%3Cellipse cx='0' cy='0' rx='7.8' ry='9.5' fill='url(%23gl)' stroke='%23fde047' stroke-width='1.3'/%3E%3Cpath d='M-3.5-8.5Q-5.5 0-3.5 8.5M3.5-8.5Q5.5 0 3.5 8.5' fill='none' stroke='%23fde047' stroke-width='.85' opacity='.75'/%3E%3Crect x='-4' y='8.5' width='8' height='2.2' rx='1' fill='%23fbbf24'/%3E%3Cpath d='M0 11v7M-2 13l-1.5 5M2 13l1.5 5' stroke='%23fde047' stroke-width='1.1' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(24 94) scale(.86)'%3E%3Crect x='-4.5' y='-11' width='9' height='2.4' rx='1' fill='%23fbbf24'/%3E%3Cellipse cx='0' cy='0' rx='7.8' ry='9.5' fill='url(%23gl)' stroke='%23fde047' stroke-width='1.3'/%3E%3Crect x='-4' y='8.5' width='8' height='2.2' rx='1' fill='%23fbbf24'/%3E%3Cpath d='M0 11v7M-2 13l-1.5 5M2 13l1.5 5' stroke='%23fde047' stroke-width='1.1' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.85));
}

.avatar-border-golden-lanterns::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='28' cy='72' r='2.3' fill='%23fef08a'/%3E%3Ccircle cx='96' cy='62' r='2' fill='%23fbbf24'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderParticlesRise 4.8s linear infinite;
}

img.avatar-border-golden-lanterns {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f59e0b, #fef08a, #dc2626, #fbbf24) !important;
    border: 2px solid rgba(254, 240, 138, 0.92) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.85), 0 0 20px rgba(220, 38, 38, 0.45) !important;
    animation: lanternBorderPulse 4.2s ease-in-out infinite;
}

/* ============================================================
   7. VOID ECLIPSE AVATAR BORDER
   ============================================================ */
@keyframes voidBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(216, 180, 254, 0.85), 0 0 16px rgba(147, 51, 234, 0.82), 0 0 30px rgba(88, 28, 135, 0.6); }
    50% { box-shadow: 0 0 0 2.5px rgba(243, 232, 255, 0.95), 0 0 24px rgba(192, 132, 252, 0.9), 0 0 40px rgba(126, 34, 206, 0.7); }
}

.avatar-border-void-eclipse {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #140624, #7e22ce, #e9d5ff, #9333ea, #140624, #c084fc, #140624);
    box-shadow: 0 0 0 2px rgba(216, 180, 254, 0.88), 0 0 18px rgba(147, 51, 234, 0.86), 0 0 34px rgba(88, 28, 135, 0.65);
    animation: pfBorderAngleSpin 7.5s linear infinite;
    isolation: isolate;
}

.avatar-border-void-eclipse::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M20 26A46 46 0 0 1 94 20' fill='none' stroke='%23e9d5ff' stroke-width='2.2' stroke-linecap='round' opacity='.88'/%3E%3Cpath d='M100 94A46 46 0 0 1 26 100' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' opacity='.82'/%3E%3Ccircle cx='96' cy='24' r='8' fill='%23120720' stroke='%23e9d5ff' stroke-width='1.6'/%3E%3Ccircle cx='98.5' cy='23' r='6.5' fill='%23120720'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.85));
}

.avatar-border-void-eclipse::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='20' cy='86' r='2.4' fill='%23c084fc'/%3E%3Ccircle cx='100' cy='78' r='2' fill='%23e9d5ff'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderSparklePulse 3.6s ease-in-out infinite;
}

img.avatar-border-void-eclipse {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2e1065, #e9d5ff, #9333ea, #140624) !important;
    border: 2px solid rgba(233, 213, 255, 0.88) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.85), 0 0 22px rgba(88, 28, 135, 0.65) !important;
    animation: voidBorderPulse 4.4s ease-in-out infinite;
}

/* ============================================================
   8. VAPORWAVE SUNSET AVATAR BORDER
   ============================================================ */
@keyframes vaporBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.88), 0 0 16px rgba(244, 114, 182, 0.78), 0 0 28px rgba(34, 211, 238, 0.42); }
    50% { box-shadow: 0 0 0 2.5px rgba(244, 114, 182, 0.95), 0 0 22px rgba(251, 146, 60, 0.85), 0 0 36px rgba(168, 85, 247, 0.55); }
}

.avatar-border-vaporwave {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #fde047, #fb7185, #f472b6, #a855f7, #22d3ee, #fb923c, #fde047);
    box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.9), 0 0 18px rgba(244, 114, 182, 0.82), 0 0 32px rgba(34, 211, 238, 0.46);
    animation: pfBorderAngleSpin 7s linear infinite;
    isolation: isolate;
}

.avatar-border-vaporwave::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3ClinearGradient id='vp' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23fde047'/%3E%3Cstop offset='55%25' stop-color='%23fb7185'/%3E%3Cstop offset='100%25' stop-color='%23a855f7'/%3E%3C/linearGradient%3E%3Cmask id='vm'%3E%3Crect width='120' height='120' fill='white'/%3E%3Crect x='82' y='24.5' width='24' height='1.6' fill='black'/%3E%3Crect x='82' y='28.2' width='24' height='2.1' fill='black'/%3E%3Crect x='82' y='32.4' width='24' height='2.4' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Ccircle cx='94' cy='24' r='10' fill='url(%23vp)' mask='url(%23vm)'/%3E%3Cpath d='M24 92l2.2 5.2 5.2 2.2-5.2 2.2-2.2 5.2-2.2-5.2-5.2-2.2 5.2-2.2z' fill='%2322d3ee'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.85));
}

.avatar-border-vaporwave::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='22' cy='26' r='2.2' fill='%23fde047'/%3E%3Ccircle cx='98' cy='86' r='2.2' fill='%2322d3ee'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderSparklePulse 3.2s ease-in-out infinite;
}

img.avatar-border-vaporwave {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #fde047, #f472b6, #a855f7, #22d3ee) !important;
    border: 2px solid rgba(254, 215, 170, 0.92) !important;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.82), 0 0 20px rgba(34, 211, 238, 0.45) !important;
    animation: vaporBorderPulse 4s ease-in-out infinite;
}

/* ============================================================
   9. FOREST FIREFLIES AVATAR BORDER
   ============================================================ */
@keyframes forestBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(187, 247, 208, 0.88), 0 0 16px rgba(74, 222, 128, 0.76), 0 0 28px rgba(163, 230, 53, 0.4); }
    50% { box-shadow: 0 0 0 2.5px rgba(217, 249, 157, 0.95), 0 0 22px rgba(163, 230, 53, 0.85), 0 0 36px rgba(34, 197, 94, 0.52); }
}

.avatar-border-forest-fireflies {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #166534, #4ade80, #d9f99d, #22c55e, #15803d, #bef264, #166534);
    box-shadow: 0 0 0 2px rgba(187, 247, 208, 0.9), 0 0 18px rgba(74, 222, 128, 0.8), 0 0 32px rgba(163, 230, 53, 0.44);
    animation: pfBorderAngleSpin 9s linear infinite;
    isolation: isolate;
}

.avatar-border-forest-fireflies::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M22 28C32 13 52 7 72 11c13 2.5 23 9 30 20' fill='none' stroke='%2322c55e' stroke-width='2.6' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M96 92c-10 13-27 20-44 18-13-1.5-24-8-32-18' fill='none' stroke='%2322c55e' stroke-width='2.4' stroke-linecap='round' opacity='.86'/%3E%3Cpath d='M84 18c8-6 18-4 21 4-8 6-17 4-21-4z' fill='%234ade80' stroke='%23bbf7d0' stroke-width='.7'/%3E%3Cpath d='M16 92c6-8 16-8 21-1-6 8-15 8-21 1z' fill='%234ade80' stroke='%23bbf7d0' stroke-width='.7'/%3E%3Ccircle cx='34' cy='18' r='3.4' fill='%23fef08a'/%3E%3Ccircle cx='90' cy='100' r='3.2' fill='%23d9f99d'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.85));
}

.avatar-border-forest-fireflies::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='24' cy='58' r='2.5' fill='%23d9f99d'/%3E%3Ccircle cx='98' cy='46' r='2.4' fill='%23fef08a'/%3E%3Ccircle cx='66' cy='104' r='2.1' fill='%23bef264'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderParticlesRise 4.6s ease-in-out infinite;
}

img.avatar-border-forest-fireflies {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #166534, #d9f99d, #4ade80, #22c55e) !important;
    border: 2px solid rgba(217, 249, 157, 0.9) !important;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.85), 0 0 20px rgba(163, 230, 53, 0.45) !important;
    animation: forestBorderPulse 4.5s ease-in-out infinite;
}

/* Compact variant for small avatars inside wrappers */
.avatar-border--sm {
    padding: 3px !important;
}

.avatar-border--sm::before {
    inset: -14% !important;
}

.avatar-border--sm::after {
    inset: -18% !important;
}

/* ============================================================
   PROFILE PAGE EFFECTS (ALL 9 SETS)
   ============================================================ */
.profile-effect-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    contain: layout style paint;
}

.profile-effect-layer--paused,
.profile-effect-layer--paused * {
    animation-play-state: paused !important;
}

.pf-effect-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Disable infinite per-card box-shadow animations inside dense repeated grids/lists */
.abovePost img[class*="avatar-border-"],
.booruPost img[class*="avatar-border-"],
.commentInfo img[class*="avatar-border-"],
.connection-meta img[class*="avatar-border-"] {
    animation: none !important;
}

.profile-effect-layer--contained {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}

/* Atmospheric background washes per effect */
.profile-effect-cherry-blossom {
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 182, 213, 0.22) 0%, transparent 46%),
        radial-gradient(circle at 86% 18%, rgba(244, 114, 182, 0.16) 0%, transparent 44%),
        radial-gradient(circle at 50% 100%, rgba(255, 209, 230, 0.14) 0%, transparent 50%);
}

.profile-effect-cyberpunk {
    background:
        linear-gradient(180deg, rgba(0, 240, 255, 0.08) 0%, transparent 45%, rgba(255, 43, 214, 0.14) 100%),
        repeating-linear-gradient(90deg, rgba(0, 240, 255, 0.04) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(0deg, rgba(255, 43, 214, 0.035) 0 1px, transparent 1px 44px);
}

.profile-effect-starlight {
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.22) 0%, transparent 48%),
        radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.18) 0%, transparent 46%),
        radial-gradient(circle at 50% 90%, rgba(167, 139, 250, 0.12) 0%, transparent 50%);
}

.profile-effect-ember-phoenix {
    background:
        radial-gradient(ellipse at 50% 105%, rgba(249, 115, 22, 0.28) 0%, rgba(220, 38, 38, 0.14) 38%, transparent 72%),
        radial-gradient(circle at 85% 15%, rgba(253, 224, 71, 0.08) 0%, transparent 40%);
}

@keyframes auroraRibbonDrift {
    0%, 100% { transform: translate3d(-2%, 0, 0) scaleY(1); opacity: 0.78; }
    50% { transform: translate3d(2%, 1.5%, 0) scaleY(1.06); opacity: 0.98; }
}

.profile-effect-aurora-frost {
    background:
        radial-gradient(ellipse 68% 36% at 24% 0%, rgba(45, 212, 191, 0.28) 0%, transparent 62%),
        radial-gradient(ellipse 72% 38% at 76% 4%, rgba(56, 189, 248, 0.26) 0%, transparent 64%),
        radial-gradient(ellipse 56% 32% at 50% 16%, rgba(129, 140, 248, 0.2) 0%, transparent 58%);
}

.profile-effect-aurora-frost::before {
    content: "";
    position: absolute;
    inset: -12% -8% 45%;
    pointer-events: none;
    background: linear-gradient(108deg, transparent 10%, rgba(45, 212, 191, 0.24) 28%, rgba(56, 189, 248, 0.28) 52%, rgba(167, 139, 250, 0.22) 74%, transparent 92%);
    filter: blur(26px);
    animation: auroraRibbonDrift 11s ease-in-out infinite;
}

.profile-effect-golden-lanterns {
    background:
        radial-gradient(ellipse at 50% 102%, rgba(245, 158, 11, 0.26) 0%, rgba(220, 38, 38, 0.1) 42%, transparent 64%),
        radial-gradient(circle at 20% 24%, rgba(254, 240, 138, 0.12) 0%, transparent 45%);
}

.profile-effect-void-eclipse {
    background:
        radial-gradient(circle at 78% 22%, rgba(12, 3, 24, 0.7) 0%, rgba(168, 85, 247, 0.3) 14%, rgba(88, 28, 135, 0.14) 36%, transparent 64%),
        radial-gradient(circle at 18% 82%, rgba(126, 34, 206, 0.2) 0%, transparent 52%);
}

.profile-effect-vaporwave {
    background:
        radial-gradient(circle at 50% 42%, rgba(253, 224, 71, 0.2) 0%, rgba(251, 113, 133, 0.18) 28%, transparent 54%),
        linear-gradient(180deg, rgba(88, 28, 135, 0.22) 0%, rgba(244, 114, 182, 0.16) 54%, rgba(34, 211, 238, 0.18) 100%);
}

.profile-effect-vaporwave::after {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -4%;
    height: 44%;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.22) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(0deg, rgba(244, 114, 182, 0.22) 0 1px, transparent 1px 26px);
    transform: perspective(360px) rotateX(62deg);
    transform-origin: center bottom;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 45%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 45%, #000 100%);
}

.profile-effect-forest-fireflies {
    background:
        radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.2) 0%, transparent 48%),
        radial-gradient(circle at 82% 85%, rgba(163, 230, 53, 0.14) 0%, transparent 50%);
}

/* Moonlight (account-locked). The moon and its light stay in the effect
   layer under the page; profile-effects.js draws the lighting on the canvas. */
.profile-effect-moonlight {
    --pf-moon-size: clamp(64px, 7.5vw, 124px);
    --pf-moon-right: clamp(22px, 5.5vw, 104px);
    --pf-moon-top: 128px;
    --pf-moon-cx: calc(100% - var(--pf-moon-right) - var(--pf-moon-size) / 2);
    --pf-moon-cy: calc(var(--pf-moon-top) + var(--pf-moon-size) / 2);
    background: radial-gradient(circle at var(--pf-moon-cx) var(--pf-moon-cy),
        rgba(196, 240, 255, 0.14) 0%,
        rgba(140, 220, 255, 0.05) 24%,
        transparent 50%);
}

.profile-effect-moonlight.profile-effect-layer--contained {
    --pf-moon-size: 46px;
    --pf-moon-right: 18px;
    --pf-moon-top: 16px;
}

.pf-moonlight-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.pf-moon {
    position: absolute;
    top: var(--pf-moon-top);
    right: var(--pf-moon-right);
    width: var(--pf-moon-size);
    height: var(--pf-moon-size);
    border-radius: 50%;
    box-shadow:
        0 0 18px 3px rgba(214, 245, 255, 0.5),
        0 0 64px 16px rgba(150, 222, 255, 0.2);
    pointer-events: none;
}

.pf-moon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Static light for previews and browsers without usable WebGL: rays all
   the way round the moon, gently twinkling. */
@keyframes pfMoonBeamTwinkle {
    0%, 100% { opacity: 0.7; }
    35% { opacity: 1; }
    60% { opacity: 0.82; }
}

.pf-moonlight-beams {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-conic-gradient(from 0deg at var(--pf-moon-cx) var(--pf-moon-cy),
        rgba(205, 242, 255, 0.08) 0deg 2.5deg,
        transparent 2.5deg 8deg);
    -webkit-mask-image: radial-gradient(circle at var(--pf-moon-cx) var(--pf-moon-cy), #000 0%, rgba(0, 0, 0, 0.6) 35%, transparent 85%);
    mask-image: radial-gradient(circle at var(--pf-moon-cx) var(--pf-moon-cy), #000 0%, rgba(0, 0, 0, 0.6) 35%, transparent 85%);
    animation: pfMoonBeamTwinkle 4.5s ease-in-out infinite;
}

.pf-moonlight--static .pf-moonlight-beams {
    display: block;
}

.pf-moonlight--static .pf-moonlight-canvas {
    display: none;
}

/* Static page content would otherwise paint under the effect layer (and get
   lit). Lift it while Moonlight is mounted so the light stays underneath. */
body.pf-moonlight-on > .page-content,
body.pf-moonlight-on > .center-fully-no-flex,
body.pf-moonlight-on > #footerBar {
    position: relative;
    z-index: 1;
}

/* Particle Motion Keyframes (compositor-only transform + opacity; no layout-triggering properties) */
@keyframes sakuraFall {
    0% { transform: translate3d(0, -12%, 0) rotate(0deg); opacity: 0; }
    10% { opacity: var(--petal-opacity, 0.85); }
    35% { transform: translate3d(calc(var(--petal-drift, 80px) * 0.35 + var(--petal-sway, 20px)), 36vh, 0) rotate(calc(var(--petal-spin, 320deg) * 0.35)); }
    65% { transform: translate3d(calc(var(--petal-drift, 80px) * 0.65 - var(--petal-sway, 20px)), 74vh, 0) rotate(calc(var(--petal-spin, 320deg) * 0.65)); }
    88% { opacity: var(--petal-opacity, 0.85); }
    100% { transform: translate3d(var(--petal-drift, 80px), 115vh, 0) rotate(var(--petal-spin, 320deg)); opacity: 0; }
}

@keyframes sakuraFallContained {
    0% { transform: translate3d(0, -24px, 0) rotate(0deg); opacity: 0; }
    12% { opacity: var(--petal-opacity, 0.9); }
    50% { transform: translate3d(calc(var(--petal-drift, 44px) * 0.5 + var(--petal-sway, 12px)), 110px, 0) rotate(calc(var(--petal-spin, 260deg) * 0.5)); }
    85% { opacity: var(--petal-opacity, 0.85); }
    100% { transform: translate3d(var(--petal-drift, 44px), 240px, 0) rotate(var(--petal-spin, 260deg)); opacity: 0; }
}

@keyframes particleRise {
    0% { transform: translate3d(0, 112vh, 0) scale(0.85); opacity: 0; }
    14% { opacity: var(--petal-opacity, 0.88); }
    50% { transform: translate3d(calc(var(--petal-drift, 40px) * 0.5 + var(--petal-sway, 12px)), 48vh, 0) scale(0.95); }
    84% { opacity: var(--petal-opacity, 0.78); }
    100% { transform: translate3d(var(--petal-drift, 40px), -14vh, 0) scale(1.05); opacity: 0; }
}

@keyframes particleRiseContained {
    0% { transform: translate3d(0, 220px, 0) scale(0.85); opacity: 0; }
    16% { opacity: var(--petal-opacity, 0.9); }
    50% { transform: translate3d(calc(var(--petal-drift, 24px) * 0.5 + var(--petal-sway, 8px)), 96px, 0) scale(0.95); }
    84% { opacity: var(--petal-opacity, 0.78); }
    100% { transform: translate3d(var(--petal-drift, 24px), -28px, 0) scale(1.05); opacity: 0; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.75); }
    50% { opacity: var(--petal-opacity, 0.95); transform: scale(1.18); }
}

@keyframes shootingStar {
    0%, 72% { transform: translate3d(0, 0, 0) rotate(-32deg) scaleX(0.3); opacity: 0; }
    78% { opacity: 0.95; }
    92% { transform: translate3d(-260px, 165px, 0) rotate(-32deg) scaleX(1.2); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes fireflyFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0.25; }
    25% { transform: translate3d(var(--petal-sway, 18px), -18px, 0) scale(1.15); opacity: var(--petal-opacity, 0.95); }
    55% { transform: translate3d(calc(var(--petal-sway, 18px) * -0.6), -32px, 0) scale(0.95); opacity: 0.5; }
    80% { transform: translate3d(var(--petal-sway, 18px), -10px, 0) scale(1.12); opacity: var(--petal-opacity, 0.9); }
}

.sakura-petal,
.pf-effect-particle {
    position: absolute;
    left: var(--petal-left, 50%);
    width: var(--petal-size, 18px);
    height: var(--petal-size, 18px);
    pointer-events: none;
}

.sakura-petal,
.pf-effect-particle--fall {
    top: -8%;
    animation: sakuraFall var(--petal-duration, 12s) linear var(--petal-delay, 0s) infinite;
}

.profile-effect-layer--contained .sakura-petal,
.profile-effect-layer--contained .pf-effect-particle--fall {
    top: -12px;
    animation: sakuraFallContained var(--petal-duration, 7.5s) linear var(--petal-delay, 0s) infinite;
}

.pf-effect-particle--rise {
    top: 0;
    animation: particleRise var(--petal-duration, 11s) linear var(--petal-delay, 0s) infinite;
}

.profile-effect-layer--contained .pf-effect-particle--rise {
    animation: particleRiseContained var(--petal-duration, 6.8s) linear var(--petal-delay, 0s) infinite;
}

.pf-effect-particle--twinkle {
    top: var(--petal-top, 30%);
    animation: starTwinkle var(--petal-duration, 3.6s) ease-in-out var(--petal-delay, 0s) infinite;
}

.pf-effect-particle--float {
    top: var(--petal-top, 40%);
    animation: fireflyFloat var(--petal-duration, 6.5s) ease-in-out var(--petal-delay, 0s) infinite;
}

.pf-effect-shooting-star {
    position: absolute;
    top: var(--petal-top, 18%);
    left: var(--petal-left, 75%);
    width: 90px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(167, 139, 250, 0.4), transparent);
    box-shadow: 0 0 8px rgba(224, 231, 255, 0.85);
    pointer-events: none;
    animation: shootingStar var(--petal-duration, 9s) ease-in var(--petal-delay, 0s) infinite;
}

.sakura-petal svg,
.pf-effect-particle svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================================
   LIMITED-TIME CHRISTMAS WONDERLAND AVATAR BORDER & EFFECT
   ============================================================ */
@keyframes winterBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(254, 240, 138, 0.92), 0 0 18px rgba(239, 68, 68, 0.8), 0 0 32px rgba(34, 197, 94, 0.48); }
    50% { box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.96), 0 0 24px rgba(253, 224, 71, 0.9), 0 0 38px rgba(239, 68, 68, 0.6); }
}

.avatar-border-winter-wonderland {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from var(--pf-border-angle), #ef4444, #ffffff, #22c55e, #fde047, #dc2626, #ffffff, #16a34a, #ef4444);
    box-shadow: 0 0 0 2px rgba(254, 240, 138, 0.92), 0 0 18px rgba(239, 68, 68, 0.8), 0 0 32px rgba(34, 197, 94, 0.48);
    animation: pfBorderAngleSpin 7.5s linear infinite;
    isolation: isolate;
}

.avatar-border-winter-wonderland::before {
    content: "";
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='54' fill='none' stroke='%23fde047' stroke-width='1.4' stroke-dasharray='12 6 3 6' opacity='.85'/%3E%3Cg transform='translate(94 22)'%3E%3Cpath d='M0-9v18M-7.8-4.5l15.6 9M7.8-4.5l-15.6 9' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23fde047'/%3E%3C/g%3E%3Cg transform='translate(24 94)'%3E%3Ccircle cx='-4' cy='2' r='4.2' fill='%23ef4444' stroke='%23fef08a' stroke-width='1'/%3E%3Ccircle cx='4' cy='3' r='3.8' fill='%23dc2626' stroke='%23fef08a' stroke-width='1'/%3E%3Cpath d='M0-3C-5-10-12-8-10-2C-5-2-2-1 0-3ZM0-3C5-10 12-8 10-2C5-2 2-1 0-3Z' fill='%2322c55e'/%3E%3C/g%3E%3Ccircle cx='22' cy='22' r='3.5' fill='%23fde047' opacity='.9'/%3E%3Ccircle cx='98' cy='92' r='3.5' fill='%234ade80' opacity='.9'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.85));
}

.avatar-border-winter-wonderland::after {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='28' cy='18' r='2.4' fill='%23ffffff'/%3E%3Ccircle cx='98' cy='46' r='2.2' fill='%23fde047'/%3E%3Ccircle cx='42' cy='92' r='2' fill='%23fca5a5'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: cherryBlossomAvatarPetalsFall 5.2s linear infinite;
}

img.avatar-border-winter-wonderland {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ef4444, #ffffff, #22c55e, #fde047) !important;
    border: 2px solid rgba(254, 240, 138, 0.95) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.85), 0 0 20px rgba(34, 197, 94, 0.5) !important;
    animation: winterBorderPulse 4.2s ease-in-out infinite;
}

.profile-effect-winter-wonderland {
    background:
        radial-gradient(ellipse 68% 36% at 20% 0%, rgba(239, 68, 68, 0.24) 0%, transparent 62%),
        radial-gradient(ellipse 72% 38% at 80% 4%, rgba(34, 197, 94, 0.24) 0%, transparent 64%),
        radial-gradient(ellipse 58% 34% at 50% 14%, rgba(253, 224, 71, 0.16) 0%, transparent 60%);
}

@media (prefers-reduced-motion: reduce) {
    .avatar-border-wrap,
    .avatar-border-wrap::before,
    .avatar-border-wrap::after,
    img[class*="avatar-border-"],
    .profile-effect-aurora-frost {
        animation: none !important;
    }

    .pf-moonlight-beams {
        animation: none !important;
    }

    .sakura-petal,
    .pf-effect-particle,
    .pf-effect-shooting-star {
        animation: none !important;
        opacity: 0.45 !important;
        top: var(--petal-static-top, 20%) !important;
    }
}
