/* Эффекты ников — только по буквам, без прямоугольных подложек */
#chat .author .nick-effect,
.nick-effect {
    position: relative;
    display: inline;
    vertical-align: baseline;
    overflow: visible;
    background: none !important;
    animation: none !important;
    filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    font-weight: 700;
}

#chat .author .nick-effect-text,
.nick-effect-text {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: auto;
    line-height: 1.1;
    background-repeat: no-repeat;
}

#chat .author {
    background: none !important;
    box-shadow: none !important;
}

/* Без пустых подложек */
.nick-effect::after,
#chat .author::after,
#chat .author .nick-effect::after {
    content: none !important;
    display: none !important;
}

/* Звёзды */
.nick-effect-sparkle .nick-effect-text,
#chat .author .nick-effect-sparkle .nick-effect-text {
    color: #c084fc !important;
    -webkit-text-fill-color: #c084fc !important;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.55);
}

.nick-effect-sparkle::before,
#chat .author .nick-effect-sparkle::before {
    content: '✦';
    position: absolute;
    top: -6px;
    left: -8px;
    font-size: 9px;
    line-height: 1;
    color: #e9d5ff;
    pointer-events: none;
    z-index: 2;
    animation: bt-nick-sparkle-float 2.4s ease-in-out infinite;
}

.nick-effect-sparkle .nick-effect-text::after,
#chat .author .nick-effect-sparkle .nick-effect-text::after {
    content: '✦';
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    font-size: 8px;
    color: #d8b4fe;
    animation: bt-nick-sparkle-float 2s ease-in-out infinite reverse;
}

/* Золото */
.nick-effect-gold .nick-effect-text,
#chat .author .nick-effect-gold .nick-effect-text {
    color: #ffd700 !important;
    -webkit-text-fill-color: #ffd700 !important;
    text-shadow: 0 0 6px #ffd700, 0 0 12px #ffb347, 0 0 22px rgba(255, 165, 0, 0.75);
    animation: bt-nick-gold-pulse 2.2s ease-in-out infinite alternate;
}

/* Блик */
.nick-effect-flare .nick-effect-text,
#chat .author .nick-effect-flare .nick-effect-text {
    color: #ff4da6 !important;
    -webkit-text-fill-color: #ff4da6 !important;
}

.nick-effect-flare .nick-effect-text::after,
#chat .author .nick-effect-flare .nick-effect-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), #ff6ec7, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.85;
    z-index: 0;
    animation: bt-nick-flare-shine 2.6s ease-in-out infinite;
    pointer-events: none;
}

/* Сердечки */
.nick-effect-hearts .nick-effect-text,
#chat .author .nick-effect-hearts .nick-effect-text {
    color: #ff6b9d !important;
    -webkit-text-fill-color: #ff6b9d !important;
}

.nick-effect-hearts::before,
#chat .author .nick-effect-hearts::before {
    content: '♥';
    position: absolute;
    top: -7px;
    left: -6px;
    font-size: 9px;
    color: #ff8fab;
    pointer-events: none;
    z-index: 2;
    animation: bt-nick-heart-float 2.5s ease-in-out infinite;
}

.nick-effect-hearts .nick-effect-text::after,
#chat .author .nick-effect-hearts .nick-effect-text::after {
    content: '♥';
    position: absolute;
    top: -2px;
    right: -10px;
    font-size: 8px;
    color: #ffb3c7;
    animation: bt-nick-heart-float 2s ease-in-out infinite reverse;
}

/* Радуга */
.nick-effect-rainbow .nick-effect-text,
#chat .author .nick-effect-rainbow .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(90deg, #ff0040, #ff7a00, #ffe600, #00e676, #00e5ff, #2979ff, #d500f9, #ff0040);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bt-nick-rainbow 2.5s linear infinite;
    text-shadow: none;
}

/* Огонь */
.nick-effect-fire .nick-effect-text,
#chat .author .nick-effect-fire .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(180deg, #fff9c4 0%, #ffeb3b 20%, #ff9800 45%, #ff5722 70%, #ff1744 100%);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bt-nick-fire 1.2s ease-in-out infinite alternate;
}

.nick-effect-fire::before,
#chat .author .nick-effect-fire::before {
    content: '🔥';
    position: absolute;
    left: -12px;
    top: -2px;
    font-size: 10px;
    opacity: 0.75;
    animation: bt-nick-fire-flicker 1s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Лёд */
.nick-effect-ice .nick-effect-text,
#chat .author .nick-effect-ice .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(180deg, #ffffff 0%, #e0f7fa 25%, #4fc3f7 55%, #0288d1 80%, #b3e5fc 100%);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bt-nick-ice 2.5s ease-in-out infinite alternate;
}

.nick-effect-ice::before,
#chat .author .nick-effect-ice::before {
    content: '❄';
    position: absolute;
    right: -10px;
    top: -6px;
    font-size: 9px;
    opacity: 0.85;
    animation: bt-nick-sparkle-float 2.2s ease-in-out infinite reverse;
    pointer-events: none;
}

/* Неон */
.nick-effect-neon .nick-effect-text,
#chat .author .nick-effect-neon .nick-effect-text {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    animation: bt-nick-neon 1.5s ease-in-out infinite alternate;
}

/* Глитч */
.nick-effect-glitch .nick-effect-text,
#chat .author .nick-effect-glitch .nick-effect-text {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    animation: bt-nick-glitch 0.5s infinite;
}

/* Градиент */
.nick-effect-gradient .nick-effect-text,
#chat .author .nick-effect-gradient .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1, #5f27cd, #ff9ff3, #54a0ff, #ff6b6b);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bt-nick-gradient 3s ease infinite;
}

/* Демонические */
.nick-effect-demon_blood .nick-effect-text,
#chat .author .nick-effect-demon_blood .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(90deg, #450a0a, #991b1b, #ef4444, #7f1d1d, #dc2626, #450a0a);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bt-demon-flow 2.6s linear infinite;
}

.nick-effect-demon_blood::before,
#chat .author .nick-effect-demon_blood::before {
    content: '†';
    position: absolute;
    left: -10px;
    top: -6px;
    font-size: 10px;
    color: #7f1d1d;
    opacity: 0.8;
    animation: bt-demon-float 2.2s ease-in-out infinite;
    pointer-events: none;
}

.nick-effect-demon_abyss .nick-effect-text,
#chat .author .nick-effect-demon_abyss .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(90deg, #1e1b4b, #4c1d95, #7c3aed, #312e81, #6d28d9, #1e1b4b);
    background-size: 320% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bt-demon-flow 3.4s linear infinite;
}

.nick-effect-demon_abyss::before,
#chat .author .nick-effect-demon_abyss::before {
    content: '◆';
    position: absolute;
    right: -9px;
    top: -5px;
    font-size: 8px;
    color: #7c3aed;
    animation: bt-demon-float 2.8s ease-in-out infinite reverse;
    pointer-events: none;
}

.nick-effect-demon_hell .nick-effect-text,
#chat .author .nick-effect-demon_hell .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(180deg, #1c1917, #7f1d1d, #ea580c, #fbbf24, #450a0a);
    background-size: 100% 240%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bt-demon-hell-rise 1.5s ease-in-out infinite alternate;
}

.nick-effect-demon_hell::before,
#chat .author .nick-effect-demon_hell::before {
    content: '▲';
    position: absolute;
    left: -8px;
    bottom: -2px;
    font-size: 7px;
    color: #ea580c;
    animation: bt-demon-ember 1.2s ease-in-out infinite alternate;
    pointer-events: none;
}

.nick-effect-demon_void .nick-effect-text,
#chat .author .nick-effect-demon_void .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(90deg, #0f172a, #14532d, #22c55e, #064e3b, #4ade80, #0f172a);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bt-demon-flow 3.8s linear infinite;
}

.nick-effect-demon_void::before,
#chat .author .nick-effect-demon_void::before {
    content: '◎';
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #4ade80;
    opacity: 0.65;
    animation: bt-demon-void-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.nick-effect-demon_curse .nick-effect-text,
#chat .author .nick-effect-demon_curse .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(45deg, #581c87, #dc2626, #0f0f0f, #7e22ce, #b91c1c, #581c87);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bt-demon-curse-shift 2.2s ease-in-out infinite;
}

.nick-effect-demon_curse::before,
#chat .author .nick-effect-demon_curse::before {
    content: '☠';
    position: absolute;
    left: -12px;
    top: -4px;
    font-size: 9px;
    opacity: 0.7;
    animation: bt-demon-float 2.5s ease-in-out infinite;
    pointer-events: none;
}

/* Hover в чате */
#chat .author:hover .nick-effect-sparkle .nick-effect-text { color: #c084fc !important; -webkit-text-fill-color: #c084fc !important; }
#chat .author:hover .nick-effect-gold .nick-effect-text { color: #ffd700 !important; -webkit-text-fill-color: #ffd700 !important; }
#chat .author:hover .nick-effect-flare .nick-effect-text { color: #ff4da6 !important; -webkit-text-fill-color: #ff4da6 !important; }
#chat .author:hover .nick-effect-hearts .nick-effect-text { color: #ff6b9d !important; -webkit-text-fill-color: #ff6b9d !important; }
#chat .author:hover .nick-effect-neon .nick-effect-text { color: #fff !important; -webkit-text-fill-color: #fff !important; }
#chat .author:hover .nick-effect-glitch .nick-effect-text { color: #fff !important; -webkit-text-fill-color: #fff !important; }

#chat .author:hover .nick-effect-rainbow .nick-effect-text,
#chat .author:hover .nick-effect-fire .nick-effect-text,
#chat .author:hover .nick-effect-ice .nick-effect-text,
#chat .author:hover .nick-effect-gradient .nick-effect-text,
#chat .author:hover .nick-effect-demon_blood .nick-effect-text,
#chat .author:hover .nick-effect-demon_abyss .nick-effect-text,
#chat .author:hover .nick-effect-demon_hell .nick-effect-text,
#chat .author:hover .nick-effect-demon_void .nick-effect-text,
#chat .author:hover .nick-effect-demon_curse .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.top_donators__login { overflow: visible !important; }
.top_donators__login .nick-effect { max-width: 100%; }

/* Демонические эффекты текста сообщений в чате */
#chat .chat-message-text {
    position: relative;
    display: inline;
    vertical-align: baseline;
    overflow: visible;
    word-break: break-word;
}

#chat .with_code .chat-message-text.nick-effect {
    background: none !important;
    box-shadow: none !important;
    animation: none !important;
    filter: none !important;
}

#chat .with_code .chat-message-text .nick-effect-text {
    position: relative;
    z-index: 1;
    display: inline;
    line-height: 1.35;
    word-break: break-word;
    white-space: pre-wrap;
}

#chat .with_code .chat-message-text.nick-effect-demon_blood .nick-effect-text,
#chat .with_code .chat-message-text.nick-effect-demon_abyss .nick-effect-text,
#chat .with_code .chat-message-text.nick-effect-demon_hell .nick-effect-text,
#chat .with_code .chat-message-text.nick-effect-demon_void .nick-effect-text,
#chat .with_code .chat-message-text.nick-effect-demon_curse .nick-effect-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

@keyframes bt-nick-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@keyframes bt-nick-fire {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}
@keyframes bt-nick-fire-flicker {
    from { opacity: 0.45; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}
@keyframes bt-nick-ice {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}
@keyframes bt-nick-neon {
    from { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ff00ff; }
    to { text-shadow: 0 0 10px #fff, 0 0 15px #ff00ff, 0 0 25px #ff00ff; }
}
@keyframes bt-nick-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}
@keyframes bt-nick-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes bt-nick-sparkle-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.45; }
    50% { transform: translateY(-4px) scale(1.15); opacity: 1; }
}
@keyframes bt-nick-gold-pulse {
    from { text-shadow: 0 0 6px #ffd700, 0 0 12px #ffb347; }
    to { text-shadow: 0 0 10px #ffe066, 0 0 18px #ffb347, 0 0 28px rgba(255, 165, 0, 0.85); }
}
@keyframes bt-nick-flare-shine {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}
@keyframes bt-nick-heart-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
    50% { transform: translateY(-5px) scale(1.1); opacity: 1; }
}
@keyframes bt-demon-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@keyframes bt-demon-hell-rise {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}
@keyframes bt-demon-curse-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes bt-demon-float {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-4px); opacity: 1; }
}
@keyframes bt-demon-ember {
    from { opacity: 0.4; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(-3px); }
}
@keyframes bt-demon-void-pulse {
    0%, 100% { opacity: 0.35; transform: translateY(-50%) scale(0.9); }
    50% { opacity: 0.85; transform: translateY(-50%) scale(1.1); }
}
