@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css');
@import url('https://fonts.googleapis.com/css2?family=Jersey+15&display=swap');

.chat-preview-box,
.chat-preview-box * {

    font-family: "Jersey 15", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #f8f8f8;
    overflow-y: auto;
    overflow: visible;

    text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 1px 1px 0px #000;
}

/* Desactivar animaciones de entrada y recarga en el simulador */
.chat-preview-box .secondary-container,
.chat-preview-box .message-wrapper,
.chat-preview-box .style-sensu,
.chat-preview-box .ado-rose {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* =========================================================
   CONTENEDORES
   ========================================================= */

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    align-content: flex-start;

    height: 100vh;
    margin-bottom: 0px; padding-bottom: 20px;
    box-sizing: border-box;

    overflow: hidden;
    clip-path: inset(0 0 0 30px);
    padding-left: 30px; padding-right: 30px;
}

.secondary-container {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    animation: messagePop 650ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.message-row {
    flex-shrink: 0;
    width: 100%;
}

.message-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 75%;
    background-color: #1a3d5a;
    padding: 10px;

    border-top: 5px solid #6080f8;
    border-right: 9px solid #6080f8;
    border-bottom: 5px solid #6080f8;
    border-left: 9px solid #6080f8;

    border-radius: 9px;
    max-width: 280px;
    height: fit-content;
    margin: 0;

    position: relative;
    overflow: visible;

    transform-origin: left center;
    animation: messagePop 1000ms cubic-bezier(.22, 1, .36, 1) forwards;
}

/* =========================================================
   SUBSCRIBER
   ========================================================= */

.message-wrapper.subscriber {
    background-color: #204868;

    border-top: 5px solid #6080f8;
    border-right: 9px solid #6080f8;
    border-bottom: 5px solid #6080f8;
    border-left: 9px solid #6080f8;
}

/* =========================================================
   AVATAR
   ========================================================= */

.pokemon-avatar {
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    height: 80px;

    margin-right: 10px;
    margin-left: 5px;

    border: #6080f8 5px solid;
    border-radius: 5px;

    position: relative;
    overflow: hidden;
}

.pokemon-avatar.has-pet {
    overflow: visible !important;
}

.pokemon-avatar > img:not(.chat-avatar-pet) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* El encuadre elegido en la web: el recorte queda dentro del marco aunque la mascota deje ver lo que sobresale */
.chat-avatar-crop {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pokemon-avatar > .sub-spark {
    z-index: 1;
}

.chat-avatar-pet {
    position: absolute;
    bottom: -10px;
    right: -25px;
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
    z-index: 16;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.chat-avatar-pet.pet-sif {
    width: 52px !important;
    height: 52px !important;
    bottom: -12px;
    right: -30px;
}

/* =========================================================
   SUBSCRIBER - BRILLITOS
   ========================================================= */

.pokemon-avatar.subscriber {
    position: relative;
    overflow: visible;
}

.sub-spark {
    position: absolute;
    background: #ffffff;
    width: 5px;
    height: 5px;


    border-radius: 50%;

    pointer-events: none;
    z-index: 20;

    opacity: 0;

    box-shadow:
        0 0 4px #ffffff,
        0 0 8px #52d053,
        0 0 12px rgba(82, 208, 83, 0.8);
}


/* =========================================================
   BRILLOS IZQUIERDOS
   ========================================================= */

.spark-1 {
    left: -2px;
    top: 25%;

    animation: subscriberSparkLeft 1.8s ease-out infinite;
}

.spark-2 {
    left: 2px;
    top: 65%;

    animation: subscriberSparkLeft 2.2s ease-out infinite 0.8s;
}


/* =========================================================
   BRILLOS DERECHOS
   ========================================================= */

.spark-3 {
    right: -2px;
    top: 35%;

    animation: subscriberSparkRight 2s ease-out infinite 0.4s;
}

.spark-4 {
    right: 2px;
    top: 70%;

    animation: subscriberSparkRight 2.4s ease-out infinite 1.2s;
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes subscriberSparkLeft {

    0% {
        transform: translate(0, 0) scale(0.3);
        opacity: 0;
    }

    15% {
        opacity: 1;
        transform: translate(-3px, -2px) scale(1);
    }

    60% {
        opacity: 0.8;
    }

    100% {
        transform: translate(-30px, -8px) scale(0.2);
        opacity: 0;
    }
}


@keyframes subscriberSparkRight {

    0% {
        transform: translate(0, 0) scale(0.3);
        opacity: 0;
    }

    15% {
        opacity: 1;
        transform: translate(3px, -2px) scale(1);
    }

    60% {
        opacity: 0.8;
    }

    100% {
        transform: translate(30px, -8px) scale(0.2);
        opacity: 0;
    }
}

/* =========================================================
   USUARIO
   ========================================================= */

.user-box {

    /* prettier-ignore */
    font-size: 24px;
    font-weight: bold;
    text-overflow: clip;
}

.user-name {
    color: #f8f800;
    margin-right: 1px;
}

.user-name.subscriber {
    color: #ADE1ED;
    animation: moving-glow 2.5s ease-in-out infinite;
}

.user-header {
    position: static;
}


.tittle-user {
    padding-top: 10px;
}

.user-header .badges {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 1px 4px;
    border-radius: 4px;
    z-index: 10;
}

.user-badges {
    display: flex;
    flex-direction: row;
}

.badges {
    gap: 5px;
}

.user-box .badges {
    display: inline-flex;
    align-items: center;
}

.user-box .badge {
    height: 18px;
}

.user-message {
    word-break: break-word;
    display: inline;
    max-width: 100%;
}

/* =========================================================
   EMOTES / ACTION
   ========================================================= */

.emote {
    height: 45px;
    vertical-align: middle;
    background-repeat: no-repeat;
}

.action {
    font-style: italic;
}

/* =========================================================
   ANIMACIONES GENERALES
   ========================================================= */

@keyframes moving-glow {
    0% {
        text-shadow: -3px 0 5px #ADEDB1;
    }

    50% {
        text-shadow: 3px 0 13px #7abd7e;
    }

    100% {
        text-shadow: -3px 0 5px #ADEDB1;
    }
}

@keyframes messagePop {
    0% {
        transform: scale(0.25);
        opacity: 0;
        filter: blur(5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

/* =========================================================
   TÍTULOS
   ========================================================= */

.user-tittle {
    flex-shrink: 0;
    white-space: nowrap;

    display: inline-block;
    position: relative;

    padding: 3px 8px;
    margin-right: 5px;

    border-radius: 6px;

    background: #7650a8;
    background-size: 200% 200%;

    border: 1px solid rgba(255, 255, 255, 0.3);

    font-size: 0.85em;
    font-weight: bold;
    line-height: 1;

    vertical-align: middle;
    overflow: hidden;
}

.user-header .user-tittle {
    position: absolute !important;
    top: -12px !important;
    left: -2px !important;
    width: fit-content !important;
    height: fit-content !important;

    display: flex;
    align-items: center;
    //gap: 3px;
    margin: 0;
    z-index: 10;
}


.user-tittle::after {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 50%;
    height: 100%;



    transform: skewX(-20deg);
}

/* =========================================================
   ANIMACIONES DE TÍTULOS
   ========================================================= */



@keyframes rainbowTitle {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fireTitle {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================================================
   COLORES BÁSICOS
   ========================================================= */

.user-tittle.theme-red {
    background: #d01717;
}

.user-tittle.theme-blue {
    background: #3f6fc4;
}

.user-tittle.theme-green {
    background: #3ab766;
}

.user-tittle.theme-yellow {
    background: #e0bf49;
}

.user-tittle.theme-purple {
    background: #7650a8;
}

.user-tittle.theme-pink {
    background: #e68cb3;
}

.user-tittle.theme-orange {
    background: #c87532;
}

.user-tittle.theme-cyan {
    background: #3b9da8;
}

/* =========================================================
   GLOW
   ========================================================= */

.user-tittle.theme-glow {
    background: #996bab;
}

.user-tittle.theme-glow::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;

    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.9),
            transparent);

    animation: tittleShine 2.5s ease-in-out infinite;
}

@keyframes tittleShine {
    0% {
        left: -100%;
    }

    50% {
        left: 150%;
    }

    100% {
        left: -100%;
    }
}

/* =========================================================
   SHINE
   ========================================================= */

.user-tittle.theme-shine {
    background: #6f65a8;
}

/* =========================================================
   RAINBOW
   ========================================================= */

.user-tittle.theme-rainbow {
    background: linear-gradient(90deg,
            #ff6b6b,
            #ffd93d,
            #6bff95,
            #6bc5ff,
            #b76bff);

    background-size: 300% 100%;
    animation: rainbowTitle 5s ease infinite;
}

/* =========================================================
   FIRE
   ========================================================= */

.user-tittle.theme-fire {
    background: linear-gradient(90deg,
            #762015,
            #a83b20,
            #d96a28,
            #f09a35,
            #d96a28,
            #a83b20,
            #762015);

    background-size: 300% 100%;
    animation: fireTitle 6s ease-in-out infinite;
}

.user-tittle.theme-fire::after {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 190, 80, 0.12),
            transparent);

    animation: fireShine 5s ease-in-out infinite;
}

@keyframes fireShine {
    0% {
        bottom: -100%;
    }

    45% {
        top: 150%;
    }

    100% {
        top: 150%;
    }
}

/* =========================================================
   SAKURA
   ========================================================= */

.user-tittle.theme-sakura {
    background-color: #6e304f;
    color: #ffe6f0;
    border: 2px solid #f7a8c8;

    overflow: hidden;

    text-shadow:
        1px 1px 0 #4a1f35,
        -1px -1px 0 rgba(255, 200, 220, 0.5);
}

.user-tittle.theme-sakura .sakura-petal {
    position: absolute;
    display: block;

    width: 7px;
    height: 9px;

    background: #f7a8c8;

    border-radius: 100% 0 100% 0;

    pointer-events: none;
    z-index: 20;

    animation: sakuraPetal 2s linear infinite;
}

@keyframes sakuraPetal {
    0% {
        transform:
            translateY(-12px) translateX(0) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    40% {
        transform:
            translateY(8px) translateX(3px) rotate(70deg);
    }

    65% {
        transform:
            translateY(20px) translateX(6px) rotate(150deg);
    }

    85% {
        opacity: 1;
    }

    100% {
        transform:
            translateY(35px) translateX(-3px) rotate(230deg);
        opacity: 0;
    }
}

/* =========================================================
   CODE GEASS
   ========================================================= */

.user-tittle.theme-geass {
    background: #171717;

    border: 2px solid #c8102e;

    color: #ffffff;

    position: relative;
    overflow: visible;

    text-shadow:
        2px 2px 0 #5c0000,
        0 0 6px #c8102e;

    isolation: isolate;
}

.user-tittle.theme-geass::before {
    content: "";

    position: absolute;

    width: 60px;
    height: 60px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background-image: url("/assets/tittles/geass.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.8;

    filter:
        drop-shadow(0 0 3px #c8102e) drop-shadow(0 0 7px #c8102e) drop-shadow(0 0 14px rgba(200, 16, 46, 0.8));

    animation: geassGlow 2s ease-in-out infinite;

    z-index: -1;
    pointer-events: none;
}

@keyframes geassGlow {
    0% {
        filter:
            drop-shadow(0 0 3px #c8102e) drop-shadow(0 0 7px #c8102e) drop-shadow(0 0 12px rgba(200, 16, 46, 0.6));
    }

    50% {
        filter:
            drop-shadow(0 0 5px #c8102e) drop-shadow(0 0 12px #c8102e) drop-shadow(0 0 22px rgba(200, 16, 46, 0.95));
    }

    100% {
        filter:
            drop-shadow(0 0 3px #c8102e) drop-shadow(0 0 7px #c8102e) drop-shadow(0 0 12px rgba(200, 16, 46, 0.6));
    }
}

/* =========================================================
   CHINA
   ========================================================= */

.user-tittle.theme-china {
    background-color: #a9152b;
    color: #ffd700;
    border: 2px solid #ffd700;

    overflow: hidden;

    text-shadow:
        1px 1px 0 #8b0000,
        -1px -1px 0 rgba(255, 215, 0, 0.5);
}

.user-tittle.theme-china .china-confetti {
    position: absolute;
    display: block;

    width: 3px;
    height: 6px;

    background: #ffd700;

    pointer-events: none;
    z-index: 20;

    animation: chinaConfetti 1s linear infinite;
}

@keyframes chinaConfetti {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(30px) rotate(180deg);
        opacity: 0;
    }
}

/* =========================================================
   GLITCH
   ========================================================= */

.user-tittle.theme-glitch {
    background: #222;
    border: 1px solid #fff;

    text-shadow:
        2px 0 #ff00ff,
        -1px 0 #00ffff;

    animation: glitchMove 2s infinite steps(1);
}

@keyframes glitchMove {

    0%,
    8%,
    14%,
    35%,
    41%,
    65%,
    71%,
    100% {
        transform: translate(0, 0);
    }

    10%,
    12% {
        transform: translate(-5px, 2px);
    }

    37%,
    39% {
        transform: translate(4px, -3px);
    }

    67%,
    69% {
        transform: translate(-3px, -4px);
    }
}

/* =========================================================
   EVA-01
   ========================================================= */

.user-tittle.theme-eva01 {
    background:
        linear-gradient(135deg,
            #765898 0%,
            #765898 45%,
            #52d053 45%,
            #52d053 55%,
            #765898 55%,
            #765898 100%);

    border: 2px solid #52d053;

    color: #ffffff;

    text-shadow:
        2px 2px 0 #765898,
        0 0 6px #52d053;

    background-size: 250% 250%;

    position: relative;
    //overflow: visible;

    animation: eva01Energy 3s ease-in-out infinite;

    box-shadow:
        0 0 5px rgba(82, 208, 83, 0.45),
        0 0 10px rgba(230, 119, 11, 0.45),
        0 0 20px rgba(230, 119, 11, 0.30),
        0 0 32px rgba(230, 119, 11, 0.15);
}

@keyframes eva01Energy {
    0% {
        background-position: 0% 50%;

        box-shadow:
            0 0 5px rgba(82, 208, 83, 0.4),
            0 0 10px rgba(230, 119, 11, 0.35),
            0 0 20px rgba(230, 119, 11, 0.22),
            0 0 30px rgba(230, 119, 11, 0.10);
    }

    50% {
        background-position: 100% 50%;

        box-shadow:
            0 0 8px rgba(82, 208, 83, 0.75),
            0 0 14px rgba(118, 88, 152, 0.45),
            0 0 14px rgba(230, 119, 11, 0.55),
            0 0 28px rgba(230, 119, 11, 0.30),
            0 0 42px rgba(230, 119, 11, 0.12);
    }

    100% {
        background-position: 0% 50%;

        box-shadow:
            0 0 5px rgba(82, 208, 83, 0.4),
            0 0 10px rgba(230, 119, 11, 0.35),
            0 0 20px rgba(230, 119, 11, 0.22),
            0 0 30px rgba(230, 119, 11, 0.10);
    }
}

/* =========================================================
   DUCK
   ========================================================= */

.user-tittle.theme-duck {
    background-color: #d4bd3a;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 10 Q20 0 40 10 T80 10 V30 H0Z' fill='%233d91a3'/%3E%3C/svg%3E");

    background-repeat: repeat-x;
    background-size: 80px 20px;
    background-position: 0 100%;

    animation: duckWater 2s linear infinite;

    border: none;
}

@keyframes duckWater {
    from {
        background-position: 0 100%;
    }

    to {
        background-position: 80px 100%;
    }
}

/* =========================================================
   TIRAMISU
   ========================================================= */

.user-tittle.theme-tiramisu {
    background-color: #FBDFA2;
    color: #68473C;


    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 7 Q20 3 40 7 T80 7 V0 H0Z' fill='%23783719'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 14 Q20 17 40 14 T80 14 V20 H0Z' fill='%23B78456'/%3E%3C/svg%3E");

    border: none;

    background-repeat: repeat-x;
    background-size: 80px 20px;

    background-position:
        0 0,
        0 100%;

    animation: tiramisuWave 2s linear infinite;
}

@keyframes tiramisuWave {
    from {
        background-position:
            0 0,
            0 100%;
    }

    to {
        background-position:
            80px 0,
            80px 100%;
    }
}

/* =========================================================
   STYLES - COLORES
   ========================================================= */

/* AZUL - DEFAULT */
.secondary-container.style-blue .pokemon-avatar {
    border-color: #6080f8;
}

.secondary-container.style-blue .message-wrapper {
    background-color: #163650;
    border-color: #6080f8;
}


/* VIOLETA */
.secondary-container.style-purple .pokemon-avatar {
    border-color: #7650a8;
}

.secondary-container.style-purple .message-wrapper {
    background-color: #3b2754;
    border-color: #7650a8;
}


/* VERDE */
.secondary-container.style-green .pokemon-avatar {
    border-color: #3ab766;
}

.secondary-container.style-green .message-wrapper {
    background-color: #174d2b;
    border-color: #3ab766;
}


/* AMARILLO */
.secondary-container.style-yellow .pokemon-avatar {
    border-color: #e0bf49;
}

.secondary-container.style-yellow .message-wrapper {
    background-color: #5a4b18;
    border-color: #e0bf49;
}


/* ROJO */
.secondary-container.style-red .pokemon-avatar {
    border-color: #d01717;
}

.secondary-container.style-red .message-wrapper {
    background-color: #5a1010;
    border-color: #d01717;
}


/* ROSA */
.secondary-container.style-pink .pokemon-avatar {
    border-color: #e68cb3;
}

.secondary-container.style-pink .message-wrapper {
    background-color: #5a3042;
    border-color: #e68cb3;
}


/* NARANJA */
.secondary-container.style-orange .pokemon-avatar {
    border-color: #c87532;
}

.secondary-container.style-orange .message-wrapper {
    background-color: #573015;
    border-color: #c87532;
}


/* CELESTE */
.secondary-container.style-cyan .pokemon-avatar {
    border-color: #3b9da8;
}

.secondary-container.style-cyan .message-wrapper {
    background-color: #19484d;
    border-color: #3b9da8;
}

/* =========================================================
   STYLE — CHINA
   ========================================================= */
.secondary-container.style-china .message-wrapper {
    background:
        linear-gradient(135deg,
            #7d101f 0%,
            #a9152b 45%,
            #7d101f 100%);


    border: 2px solid #d4af37;

    box-shadow:
        0 0 6px rgba(212, 175, 55, 0.35),
        inset 0 0 12px rgba(0, 0, 0, 0.35);

    position: relative;
    overflow: visible;
}


/* =========================================================
   CAJA DEL MENSAJE
   ========================================================= */

.secondary-container.style-china .message-wrapper {
    background-color: #5a1018;

    border-top-color: #d4af37;
    border-right-color: #d4af37;
    border-bottom-color: #d4af37;
    border-left-color: #d4af37;
}


/* =========================================================
   AVATAR
   ========================================================= */

.secondary-container.style-china .pokemon-avatar {
    border-color: #d4af37;
}


/* =========================================================
   TEXTURA DEL FONDO
   ========================================================= */

.secondary-container.style-china .message-wrapper::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 12px,
            rgba(255, 215, 0, 0.06) 13px,
            transparent 14px);

    pointer-events: none;
    border-radius: inherit;

    z-index: 1;
}

/* =========================================================
   STYLE — CHINA
   ========================================================= */

.secondary-container.style-china {
    position: relative;
    overflow: visible;
}


/* =========================================================
   TEXTURA DORADA
   ========================================================= */

.secondary-container.style-china .message-wrapper::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 12px,
            rgba(255, 215, 0, 0.06) 13px,
            transparent 14px);

    pointer-events: none;
    border-radius: inherit;

    z-index: 1;
}


/* =========================================================
   LINTERNA CHINA
   ========================================================= */

.china-lantern {
    position: absolute;

    font-size: 22px;

    pointer-events: none;

    z-index: 2;

    opacity: 0;

    filter:
        drop-shadow(0 0 3px rgba(255, 80, 30, 0.7)) drop-shadow(0 0 8px rgba(255, 160, 50, 0.35));

    animation: chinaLanternFloat 12s linear infinite;
}


/* =========================================================
   POSICIONES
   ========================================================= */

.lantern-1 {
    left: 15%;
    bottom: -25px;
    animation-delay: 0s;
}

.lantern-2 {
    left: 55%;
    bottom: -30px;
    animation-delay: 4s;
}

.lantern-3 {
    left: 82%;
    bottom: -20px;
    animation-delay: 8s;
}


/* =========================================================
   ANIMACIÓN
   ========================================================= */

@keyframes chinaLanternFloat {

    0% {
        transform:
            translateY(0) translateX(0) rotate(-3deg);

        opacity: 0;
    }

    10% {
        opacity: 0.75;
    }

    45% {
        transform:
            translateY(-35px) translateX(5px) rotate(3deg);

        opacity: 0.75;
    }

    80% {
        transform:
            translateY(-75px) translateX(-5px) rotate(-3deg);

        opacity: 0.55;
    }

    100% {
        transform:
            translateY(-105px) translateX(5px) rotate(2deg);

        opacity: 0;
    }
}

/* =========================================================
   STYLE — NERV
   ========================================================= */

.secondary-container.style-nerv {
    position: relative;
    overflow: visible;
}

/* =========================================================
   BORDE NERV
   ========================================================= */

.secondary-container.style-nerv .message-wrapper {
    background: #050505;

    border: 4px solid #DC0100;

    box-shadow:
        0 0 4px rgba(220, 1, 0, 0.75),
        0 0 10px rgba(220, 1, 0, 0.35),
        inset 0 0 0 2px #050505,
        inset 0 0 0 3px rgba(220, 1, 0, 0.75),
        inset 0 0 12px rgba(220, 1, 0, 0.12);

    overflow: visible;
}


/* =========================================================
   AVATAR — BORDE NERV
   ========================================================= */

.secondary-container.style-nerv .pokemon-avatar {
    border: 3px solid #DC0100;

    box-shadow:
        0 0 4px rgba(220, 1, 0, 0.7),
        inset 0 0 5px rgba(220, 1, 0, 0.25);
}



.secondary-container.style-nerv .user-message,
.secondary-container.style-nerv .user-name,
.secondary-container.style-nerv .user-badges,
.secondary-container.style-nerv .badge {
    position: relative;
    z-index: 2;
}

/* =========================================================
   LOGO NERV
   ========================================================= */

.secondary-container.style-nerv .message-wrapper::before {
    content: "";

    position: absolute;

    width: 55px;
    height: 55px;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    background-image: url("/assets/styles/nerv.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.52;

    pointer-events: none;

    z-index: 0;

    filter:
        drop-shadow(0 0 3px #DC0100) drop-shadow(0 0 8px rgba(220, 1, 0, 0.55));

    animation: nervPulse 2.5s ease-in-out infinite;
}


/* =========================================================
   TEXTURA NERV
   ========================================================= */

.secondary-container.style-nerv .message-wrapper::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        repeating-linear-gradient(-35deg,
            transparent 0,
            transparent 8px,
            rgba(220, 0, 0, 0.048) 9px,
            rgba(220, 0, 0, 0.041) 11px,
            transparent 12px),
        repeating-linear-gradient(35deg,
            transparent 0,
            transparent 20px,
            rgba(255, 255, 255, 0.025) 21px,
            transparent 23px);

    pointer-events: none;

    border-radius: inherit;

    z-index: 1;
}


/* =========================================================
   ANIMACIÓN DEL LOGO
   ========================================================= */

@keyframes nervPulse {

    0% {
        opacity: 0.45;

        filter:
            drop-shadow(0 0 3px #DC0100) drop-shadow(0 0 7px rgba(220, 1, 0, 0.40));
    }

    50% {
        opacity: 0.52;

        filter:
            drop-shadow(0 0 4px #DC0100) drop-shadow(0 0 10px rgba(220, 1, 0, 0.60));
    }

    100% {
        opacity: 0.45;

        filter:
            drop-shadow(0 0 3px #DC0100) drop-shadow(0 0 7px rgba(220, 1, 0, 0.40));
    }
}

/* =========================================================
   STYLE — DELTARUNE
   ========================================================= */

.secondary-container.style-deltarune {
    position: relative;
    overflow: visible;
}


/* =========================================================
   CAJA DEL MENSAJE
   ========================================================= */

.secondary-container.style-deltarune .message-wrapper {
    position: relative;
    overflow: visible;

    background: #090812;

    border: 3px solid #d8d8e0;

    box-shadow:
        0 0 5px rgba(120, 90, 190, 0.55),
        0 0 12px rgba(90, 60, 150, 0.30),
        inset 0 0 12px rgba(90, 60, 150, 0.18);
}


/* =========================================================
   AVATAR
   ========================================================= */

.secondary-container.style-deltarune .pokemon-avatar {
    border-color: #d8d8e0;

    box-shadow:
        0 0 5px rgba(120, 90, 190, 0.5);
}


/* =========================================================
   FONDO — DOS CUADRÍCULAS REALES
   ========================================================= */

/*
   CUADRÍCULA 1:
   Se mueve hacia arriba / izquierda.

   CUADRÍCULA 2:
   Se mueve hacia abajo / derecha.

   Cada cuadrícula está formada por:
   - una línea vertical
   - una línea horizontal

   Por eso son CUADRADOS y no rombos.
*/

.secondary-container.style-deltarune .message-wrapper::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: 0;

    overflow: hidden;

    background-image:

        /* CUADRÍCULA 1 — MÁS VISIBLE */
        linear-gradient(90deg,
            transparent 0,
            transparent 19px,
            rgba(41, 7, 41, 0.85) 20px,
            rgba(41, 7, 41, 0.85) 21px,
            transparent 22px),

        linear-gradient(0deg,
            transparent 0,
            transparent 19px,
            rgba(41, 7, 41, 0.85) 20px,
            rgba(41, 7, 41, 0.85) 21px,
            transparent 22px),

        /* CUADRÍCULA 2 — MÁS SUTIL */
        linear-gradient(90deg,
            transparent 0,
            transparent 19px,
            rgba(41, 7, 41, 0.28) 20px,
            rgba(41, 7, 41, 0.28) 21px,
            transparent 22px),

        linear-gradient(0deg,
            transparent 0,
            transparent 19px,
            rgba(41, 7, 41, 0.28) 20px,
            rgba(41, 7, 41, 0.28) 21px,
            transparent 22px);

    background-size:
        21px 21px,
        21px 21px,
        21px 21px,
        21px 21px;

    background-position:
        0 0,
        0 0,
        0 0,
        0 0;

    animation:
        deltaruneGridMove 2.3s linear infinite;

    border-radius: inherit;
}


/* =========================================================
   MOVIMIENTO DE LAS CUADRÍCULAS
   ========================================================= */

@keyframes deltaruneGridMove {

    0% {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0;
    }

    100% {
        background-position:
            -21px -21px,
            -21px -21px,
            21px 21px,
            21px 21px;
    }
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.secondary-container.style-deltarune .message-content {
    position: relative;
    z-index: 3;
}


/* =========================================================
   LOGO DELTARUNE
   ========================================================= */

.secondary-container.style-deltarune .message-wrapper::before {
    content: "";

    position: absolute;

    width: 55px;
    height: 55px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background-image:
        url("/assets/styles/deltarune.png");

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.45;

    pointer-events: none;

    z-index: 1;

    filter:
        drop-shadow(0 0 3px #a78bfa) drop-shadow(0 0 8px rgba(167, 139, 250, 0.55));

    animation: deltaruneLogoPulse 3s ease-in-out infinite;
}


@keyframes deltaruneLogoPulse {

    0% {
        opacity: 0.35;

        filter:
            drop-shadow(0 0 3px #a78bfa) drop-shadow(0 0 7px rgba(167, 139, 250, 0.35));
    }

    50% {
        opacity: 0.5;

        filter:
            drop-shadow(0 0 5px #a78bfa) drop-shadow(0 0 12px rgba(167, 139, 250, 0.65));
    }

    100% {
        opacity: 0.35;

        filter:
            drop-shadow(0 0 3px #a78bfa) drop-shadow(0 0 7px rgba(167, 139, 250, 0.35));
    }
}


/* =========================================================
   NOMBRE DE USUARIO
   ========================================================= */

.secondary-container.style-deltarune .user-name {
    color: #ffffff;


    font-weight: bold;

    display: inline-block;

    position: relative;

    margin-right: 8px;

    z-index: 5;
}


/* =========================================================
   ICONO DEL USUARIO
   ========================================================= */

.secondary-container.style-deltarune .user-name::before {
    content: "";

    display: inline-block;

    width: 25px;
    height: 25px;

    margin-right: 5px;

    vertical-align: -8px;



    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    image-rendering: pixelated;
}

.secondary-container.style-deltarune .user-name.kris::before {
    background-image:
        url("/assets/styles/deltarune-kris.png");
}

.secondary-container.style-deltarune .user-name.susie::before {
    background-image:
        url("/assets/styles/deltarune-susie.png");
}

.secondary-container.style-deltarune .user-name.ralsei::before {
    background-image:
        url("/assets/styles/deltarune-ralsei.png");
}



/* =========================================================
   HP
   ========================================================= */

.secondary-container.style-deltarune .deltarune-hp {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-left: 2px;

    vertical-align: middle;

    position: relative;

    z-index: 5;
}


/* =========================================================
   TEXTO "HP"
   ========================================================= */

.secondary-container.style-deltarune .deltarune-hp-label {
    color: #ffffff;

    font-size: 0.9em;

    font-weight: bold;

    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   BARRA DE VIDA
   ========================================================= */

.secondary-container.style-deltarune .deltarune-hp-bar {
    display: block;

    width: 90px;
    height: 7px;

    background: #00FFFE;

    box-shadow:
        0 0 4px rgba(0, 255, 254, 0.65),
        0 0 8px rgba(0, 255, 254, 0.25);

    flex-shrink: 0;
}

.secondary-container.style-deltarune .deltarune-hp-bar.kris {
    background: #00FFFE;

    box-shadow:
        0 0 4px rgba(0, 255, 254, 0.65),
        0 0 8px rgba(0, 255, 254, 0.25);
}

.secondary-container.style-deltarune .deltarune-hp-bar.susie {
    background: #F624F5;

    box-shadow:
        0 0 4px rgba(246, 36, 245, 0.8),
        0 0 8px rgba(246, 36, 245, 0.45),
        0 0 14px rgba(130, 0, 125, 0.35);
}

.secondary-container.style-deltarune .deltarune-hp-bar.ralsei {
    background: #32FB08;

    box-shadow:
        0 0 4px rgba(50, 251, 8, 0.8),
        0 0 8px rgba(50, 251, 8, 0.45),
        0 0 14px rgba(20, 120, 0, 0.35);
}



/* =========================================================
   MENSAJE
   ========================================================= */

.secondary-container.style-deltarune .user-message {
    display: block;

    margin-top: 4px;

    color: #ffffff;

    position: relative;

    z-index: 5;
}


/* =========================================================
   SÍMBOLOS DEL DARK WORLD
   ========================================================= */

.secondary-container.style-deltarune .deltarune-symbol {
    position: absolute;

    font-family: Arial, sans-serif;

    font-size: 13px;
    line-height: 1;

    pointer-events: none;

    z-index: 10;

    opacity: 0;

    font-weight: bold;

    transform-origin: center;

    text-shadow:
        0 0 4px rgba(167, 139, 250, 0.8);
}


/* =========================================================
   SÍMBOLO 1
   ========================================================= */

.secondary-container.style-deltarune .symbol-1 {
    color: #ffffff;

    top: -10px;
    left: 12px;

    animation:
        deltaruneSymbol1 9s linear infinite;
}


/* =========================================================
   SÍMBOLO 2
   ========================================================= */

.secondary-container.style-deltarune .symbol-2 {
    color: #a78bfa;

    top: -9px;
    right: 25px;

    animation:
        deltaruneSymbol2 11s linear infinite;
}


/* =========================================================
   SÍMBOLO 3
   ========================================================= */

.secondary-container.style-deltarune .symbol-3 {
    color: #ffffff;

    right: -8px;
    bottom: 18px;

    animation:
        deltaruneSymbol3 10s linear infinite;
}


/* =========================================================
   SÍMBOLO 4
   ========================================================= */

.secondary-container.style-deltarune .symbol-4 {
    color: #a78bfa;

    bottom: -9px;
    left: 35%;

    animation:
        deltaruneSymbol4 12s linear infinite;
}


/* =========================================================
   ANIMACIONES DE SÍMBOLOS
   ========================================================= */

@keyframes deltaruneSymbol1 {

    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }

    8% {
        opacity: 0.9;
    }

    25% {
        transform: translate(45px, 0) rotate(90deg);
    }

    45% {
        transform: translate(90px, 0) rotate(180deg);
    }

    48% {
        opacity: 0.9;
    }

    52% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


@keyframes deltaruneSymbol2 {

    0% {
        opacity: 0;
        transform: translate(0, 0);
    }

    10% {
        opacity: 0.75;
    }

    30% {
        transform: translate(-55px, 0);
    }

    48% {
        transform: translate(-95px, 18px);
    }

    65% {
        transform: translate(-95px, 55px);
    }

    70% {
        opacity: 0.7;
    }

    75% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


@keyframes deltaruneSymbol3 {

    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(45deg);
    }

    8% {
        opacity: 0.85;
    }

    25% {
        transform: translate(0, -40px) rotate(135deg);
    }

    45% {
        transform: translate(0, -80px) rotate(225deg);
    }

    52% {
        opacity: 0.85;
    }

    58% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


@keyframes deltaruneSymbol4 {

    0% {
        opacity: 0;
        transform: translate(0, 0);
    }

    8% {
        opacity: 0.8;
    }

    25% {
        transform: translate(55px, 0);
    }

    45% {
        transform: translate(105px, 0);
    }

    62% {
        transform: translate(145px, 0);
    }

    68% {
        opacity: 0.8;
    }

    75% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


/* =========================================================
   ICONO DEL USUARIO — TAMAÑO
   ========================================================= */

.secondary-container.style-deltarune .deltarune-user-icon {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    object-fit: contain;

    image-rendering: pixelated;

    margin-right: 5px;
}

/* =========================================================
   DELTARUNE — TÍTULO
   ========================================================= */

.secondary-container.style-deltarune .message-wrapper {
    position: relative !important;
    overflow: visible !important;
}

.secondary-container.style-deltarune .user-tittle, .secondary-container.style-osu .user-tittle { position: absolute !important; top: -20px !important; left: -14px !important;

    display: flex !important;
    align-items: center !important;

    width: fit-content !important;
    height: fit-content !important;

    margin: 0 !important;
    //padding: 3px 8px !important;

    z-index: 99999 !important;
}



.secondary-container.style-nerv .user-tittle {
    left: -2px !important;

}

/* =========================================================

   STYLE — NIKA (DORADO, BLANCO Y SOL)

   ========================================================= */



.secondary-container.style-nika {

    position: relative;

    overflow: visible;

}



/* =========================================================

   CAJA DEL MENSAJE

   ========================================================= */



.secondary-container.style-nika .message-wrapper {

    position: relative;

    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);

    border: 2px solid #eab308;

    box-shadow:

        0 0 8px rgba(234, 179, 8, 0.3),

        inset 0 0 10px rgba(254, 240, 138, 0.5);

    overflow: visible !important;

    z-index: 1;

}



/* =========================================================

   SOL DORADO CENTRAL (FONDO DETRÁS DEL TEXTO)

   ========================================================= */



.secondary-container.style-nika .message-content {

    //position: relative;

    z-index: 2;
    /* Garantiza que el texto esté por encima */

}



/* Círculo dorado (Sol) */

.secondary-container.style-nika .message-content::before {

    content: "";

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);



    width: 36px;

    height: 36px;

    border-radius: 50%;



    background: radial-gradient(circle, #fff176 0%, #ffd700 65%, #f59e0b 100%);

    border: 1.5px solid #fbbf24;

    box-shadow:

        0 0 8px rgba(245, 158, 11, 0.5),

        0 0 12px rgba(253, 224, 71, 0.3);



    pointer-events: none;

    z-index: -1;
    /* Queda detrás del contenido de texto */

    opacity: 0.85;

}



/* Imagen de Nika dentro del Sol */

.secondary-container.style-nika .message-content::after {

    content: "";

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);



    width: 24px;

    height: 24px;

    border-radius: 50%;



    background-image: url("/assets/styles/nika.png");

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;



    pointer-events: none;

    z-index: -1;
    /* Queda detrás del contenido de texto */

    opacity: 0.9;

}



/* =========================================================

   NUBE IZQUIERDA (ESQUINA INFERIOR DE LA CAJA)

   ========================================================= */



.secondary-container.style-nika .message-wrapper::before {

    content: "";

    position: absolute;

    bottom: -12px;

    left: -22%;



    width: 104px;

    height: 104px;



    background-image: url('data:image/svg+xml;base64,PHN2ZyBpZD0iQ2FwYV8yIiBkYXRhLW5hbWU9IkNhcGEgMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNDE1LjYzIDMyMi4xOCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJDYXBhXzItMiIgZGF0YS1uYW1lPSJDYXBhIDIiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTQxMy4wNCwxMDcuMjljLTEyLjQ2LTQwLjg2LTU0LjQtMzMuODUtNTQuNC0zMy44NSwwLDAsMTkuOTEtMjYuMjQtMS44LTQ1LjI0LTQuOTYtNC4zNS05Ljg4LTYuNDItMTQuNTItNy4xOS0xMC45OC0xLjgzLTIxLjM2LDQuODMtMjUuNjUsMTUuMTAtMS45NSw0LjY4LTUuMTIsOC43LTkuOCwxMS4xNS00LjEyLDIuNS0xMC44MiwyLjA0LTEyLjUyLTMuNDQtMi4xMS01LjU5LDIuMjYtMTYuMjgsOS4yOS0xMy4zMSwxLjM4LC43OCwyLjIxLDEuOTMsMi44MiwzLjEyLTEuMTUtLjY4LTIuMzQtMS4yNi0zLjQyLTEuMzMtMy44Ni0uMTctNC41Miw2LjczLTMuMTYsOS4zLC4zOSwuNTksLjU4LC42NSwuODQsLjY0LC41NywuMTIsMi4zNS0uNDQsMy4xMi0uOTgsMS43LS44MSwyLjktMi4wMSw0LjIyLTMuMzIsMi41OS0zLjE1LDQuNDYtNi42Miw2LjAzLTEwLjI4LC42Ny0xLjU3LC43NS0zLjMzLC4yMi00Ljk2bC0uMTEtLjMyYy0uNjItMS45LTEuNy0zLjY2LTMuMjUtNC45MS04Ljk5LTcuMjYtMTcuNzUsMy4yLTE3Ljc1LDMuMiwwLTI3LjQ1LTE5LjYtMTkuNjEtMTkuNjEtMTkuNjEsMCwwLDE2LjI4LDEwLjkxLDcuMjMsMjQuNzMtNC4xLDYuMjYtNS43MiwxMi4xNy02LjI3LDE2Ljc3LS43OCw2LjQ5LC44NiwxMy4xNCw0LjczLDE4LjQyLDEwLjQzLDE0LjIxLDI5Ljg5LDEwLjA2LDI5Ljg5LDEwLjA6LTE1LjM5LDM1LjI5LTYuOTUsNTkuNzItNi45NSw1OS43MiwxOC40LTkuMDUsMjkuNTYtNi42MywyOS41Ni02LjYzLTk3LjQyLDI4Ljk0LTEwMy43LDEwMi43NS0xMDYuOSwxMTEuNDgtNC4zLDExLjczLTkuNDMsMTcuNzEtMjYuMTQsMjkuOTUtMTkuMjYsMTQuMTEtNDUuODUsMjEuNDEtNzguMTIsNy44My0zMi4yNy0xMy41OC02MC4wMi0xNS4zOS04Mi4zNC0xNS4wOS0yMi4zMiwuMy0zOC4zMSwxOC4wOS0zOC4zMSwxOC4wOSw3Ljg0LTMuMDEsMTMuNTctLjYsMTMuNTctLjYsMTYuMjksNi42NCwxMy44OS0uNDYsMjAuNTEsLjMxLDcuODQsLjkxLDEuNSwxOS45MSwxOS42LDE5LjkxczE4LjctMTcuNzksMTguNy0xNy43OWMuNiwyMS40MSwzMC4xNSw0MC4xOCw4MC41Miw0My43NSw1MC4zNywzLjU3LDc4LjQyLTMwLjc1LDc4LjQyLTMwLjc1LDYyLjQzLDE2LjMsNzMuOS0zOC41OSw3My45LTM4LjU5LDYwLjkzLDIuNTUsNjUtNDMuNjYsNjMuNTUtNjUuNDktLjQ0LTYuNjYtNC4xLTEyLjcyLTkuODYtMTYuMDctMy41OC0yLjA4LTcuNS0zLjU0LTExLjczLTQuMTItMjIuNDQtMy4xOS00NC42NiwxOC41My0zOC42LDQxLjAyLDEuMzMsNC44Miw0LjI1LDExLjA1LDkuMzksMTIuMjksOC4xLDEuNDQsMTcuNTctOC40NCwxOC45My0xNi4xOCwuNiw2Ljk0LTMuNjQsMTMuNTQtOC44NCwxNy45OS0xNS42NSwxMi4yNC0yOC43OC03Ljk3LTI4LjUtMjIuNzYsLjAzLTEzLjksOC4xMi0yNy4wNywyMC4wNS0zMy45Myw4LjYtNC45NSwxOS4xNC02Ljg1LDI4Ljc5LTQuNDIsNi4yMSwxLjUyLDExLjc3LDUuMDIsMTYuMjMsOS42MSwzLjg3LDMuOTgsOS40NSw1LjgzLDE0Ljg2LDQuNjIsOC44MS0xLjk4LDIwLjYtNy41NywyOS4wMS0yMi43NSw3LjYxLTEzLjc0LDkuMTAtMzAuMDgsNC41Mi00NS4xWiIvPjwvZz48L3N2Zz4=');
    background-repeat: no-repeat;

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;



    pointer-events: none;

    z-index: 3;
    /* Sobre la caja, debajo de posibles elementos superpuestos */



    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.25));

    animation: cloudFloatLeft 4s ease-in-out infinite alternate;

}



/* =========================================================

   NUBE DERECHA (ESQUINA INFERIOR DE LA CAJA)

   ========================================================= */



.secondary-container.style-nika .message-wrapper::after {

    content: "";

    position: absolute;

    top: 35% !important;
    bottom: auto !important;
    right: -20px !important;
    left: auto !important;

    //transform: translateY(-20%);



    width: 150px;

    height: 150px;


    background-position: center;
    background-size: contain;



    pointer-events: none;

    z-index: 3;



    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.25));

    animation: cloudFloatRight 4s ease-in-out infinite alternate;

}



/* =========================================================

   AVATAR Y TEXTO

   ========================================================= */



.secondary-container.style-nika .pokemon-avatar {

    border-color: #f59e0b;

    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);

    position: relative;

    z-index: 4;

}



.secondary-container.style-nika .user-name,

.secondary-container.style-nika .user-message {

    position: relative;

    color: #451a03;
    /* Texto en tono café/dorado oscuro para legibilidad sobre el sol */

    z-index: 3;

}



/* =========================================================

   ANIMACIONES DE LAS NUBES

   ========================================================= */



@keyframes cloudFloatLeft {

    0% {

        transform: translateY(0) scale(1);

    }

    100% {

        transform: translateY(-3px) scale(1.04);

    }

}



@keyframes cloudFloatRight {

    0% {

        transform: translateY(0) scale(1);

    }

    100% {

        transform: translateY(-4px) scale(1.04);

    }

}

/* =========================================================
   STYLE — SAKURA
   ========================================================= */

/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.secondary-container.style-sakura {
    position: relative;
    overflow: visible !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* =========================================================
   CAJA REAL DEL MENSAJE
   ========================================================= */

.secondary-container.style-sakura .message-wrapper {
    position: relative;

    width: 75%;
    max-width: 280px;

    background:
        linear-gradient(135deg,
            #242331 0%,
            #302a3a 50%,
            #252532 100%) !important;

    padding: 10px !important;

    border-top: 5px solid #d995b3 !important;
    border-right: 9px solid #d995b3 !important;
    border-bottom: 5px solid #d995b3 !important;
    border-left: 9px solid #d995b3 !important;

    border-radius: 9px;

    box-shadow:
        0 0 8px rgba(217, 149, 179, 0.25),
        inset 0 0 15px rgba(0, 0, 0, 0.25);

    /*
       IMPORTANTE:
       La caja NO se recorta para permitir
       que los pétalos salgan por debajo.
    */
    overflow: visible !important;

    box-sizing: border-box;

    z-index: 5;
}


/* =========================================================
   ELIMINAR CAJAS INTERNAS Y AJUSTAR MARGEN
   ========================================================= */

/* Añadir margen izquierdo para que el abanico no choque con el clip-path de .main-container */
/* Se comenta para que el avatar no quede desplazado a la derecha en la sucesión de mensajes */
.secondary-container.style-sakura {
    /* margin-left: 30px; */
}

.secondary-container.style-sakura .user-header,
.secondary-container.style-sakura .message-content,
.secondary-container.style-sakura .user-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* =========================================================
   AVATAR
   ========================================================= */

.secondary-container.style-sakura .pokemon-avatar {
    border: 2px solid #d995b3 !important;
    box-shadow: none !important;

    position: relative;
    z-index: 6;
}


/* =========================================================
   TEXTO
   ========================================================= */

.secondary-container.style-sakura .user-name {
    color: #ffe7ef;

    text-shadow:
        1px 1px 0 #4a3040;
}

.secondary-container.style-sakura .user-message {
    color: #f5f0ed;
}


/* =========================================================
   ABANICO SENSU DINÁMICO (Reemplaza al árbol)
   ========================================================= */

.secondary-container.style-sakura .sakura-tree {
    position: absolute;

    /* Posicionado detrás y más grande que el avatar */
    left: -30px;
    top: -40px;

    width: 150px;
    height: 150px;

    background-image:
        url("/assets/styles/sensu-fan-v3.png");

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    pointer-events: none;

    z-index: 1; /* Detrás del avatar */

    /* Animación del abanico abriéndose */
    transform-origin: 50% 85%; /* El pivote del abanico está abajo al centro */
    animation: openSensu 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s backwards;
}

@keyframes openSensu {
    0% {
        transform: scale(0) rotate(-30deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}


/* =========================================================
   CONTENIDO SOBRE EL ÁRBOL
   ========================================================= */

.secondary-container.style-sakura .message-content,
.secondary-container.style-sakura .user-box {
    position: static;
    z-index: 5;
}


/* =========================================================
   PETALOS
   ========================================================= */

.secondary-container.style-sakura .sakura-petals {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    overflow: visible;

    z-index: 20;
}


/* =========================================================
   PETALO
   ========================================================= */

.secondary-container.style-sakura .style-sakura-petal {
    position: absolute;

    display: block;

    width: 8px;
    height: 10px;

    background: #f7a8c8;

    border-radius: 100% 0 100% 0;

    pointer-events: none;

    opacity: 0;

    will-change: transform, opacity;

    animation-name: styleSakuraFall;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;

    box-shadow:
        0 0 3px rgba(247, 168, 200, 0.35);
}


/* =========================================================
   POSICIONES
   ========================================================= */

.secondary-container.style-sakura .petal-1 {
    left: 5%;
    top: -10px;
    animation-duration: 4.8s;
    animation-delay: -1.2s;
}

.secondary-container.style-sakura .petal-2 {
    left: 15%;
    top: 5%;
    animation-duration: 5.6s;
    animation-delay: -3.4s;
}

.secondary-container.style-sakura .petal-3 {
    left: 27%;
    top: -15px;
    animation-duration: 4.2s;
    animation-delay: -0.8s;
}

.secondary-container.style-sakura .petal-4 {
    left: 39%;
    top: 10%;
    animation-duration: 5.2s;
    animation-delay: -2.7s;
}

.secondary-container.style-sakura .petal-5 {
    left: 51%;
    top: -20px;
    animation-duration: 4.6s;
    animation-delay: -4.1s;
}

.secondary-container.style-sakura .petal-6 {
    left: 63%;
    top: 0;
    animation-duration: 5.8s;
    animation-delay: -1.9s;
}

.secondary-container.style-sakura .petal-7 {
    left: 73%;
    top: -10px;
    animation-duration: 4.4s;
    animation-delay: -3.1s;
}

.secondary-container.style-sakura .petal-8 {
    left: 82%;
    top: 15%;
    animation-duration: 5.4s;
    animation-delay: -2.2s;
}

.secondary-container.style-sakura .petal-9 {
    left: 91%;
    top: -15px;
    animation-duration: 4.9s;
    animation-delay: -4.5s;
}

.secondary-container.style-sakura .petal-10 {
    left: 97%;
    top: 5%;
    animation-duration: 5.7s;
    animation-delay: -0.5s;
}


/* =========================================================
   COLORES DE PETALOS
   ========================================================= */

.secondary-container.style-sakura .petal-3,
.secondary-container.style-sakura .petal-8 {
    background: #ffd6e5;
}

.secondary-container.style-sakura .petal-5,
.secondary-container.style-sakura .petal-9 {
    background: #e88eb1;
}


/* =========================================================
   ANIMACION PETALOS
   ========================================================= */

@keyframes styleSakuraFall {

    0% {
        opacity: 0;

        transform:
            translate3d(0, -15px, 0) rotate(0deg) scale(0.8);
    }

    10% {
        opacity: 0.9;
    }

    30% {
        transform:
            translate3d(12px, 35px, 0) rotate(70deg) scale(0.9);
    }

    50% {
        opacity: 1;

        transform:
            translate3d(-8px, 75px, 0) rotate(150deg) scale(1);
    }

    70% {
        transform:
            translate3d(18px, 115px, 0) rotate(220deg) scale(0.9);
    }

    88% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;

        transform:
            translate3d(-10px, 170px, 0) rotate(300deg) scale(0.7);
    }
}



/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .secondary-container.style-sakura .style-sakura-petal {
        animation: none;
        display: none;
    }
}

/* =========================================================
   STYLE — DVD
   ========================================================= */

.secondary-container.style-dvd {
    position: relative;
    overflow: visible;


}


.secondary-container.style-dvd .message-wrapper {
    /* Fondo base metálico predominante con un reflejo holográfico muy tenue */
    background: 
        linear-gradient(105deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(255, 255, 255, 0) 40%, 
            rgba(255, 255, 255, 0.2) 50%, 
            rgba(255, 255, 255, 0) 60%, 
            rgba(255, 255, 255, 0.1) 100%),
        conic-gradient(from 135deg at 50% 50%, 
            rgba(255, 0, 128, 0.04) 0%, 
            rgba(255, 255, 0, 0.04) 15%, 
            rgba(0, 255, 0, 0.04) 30%, 
            rgba(0, 255, 255, 0.04) 50%, 
            rgba(0, 0, 255, 0.04) 65%, 
            rgba(255, 0, 255, 0.04) 85%, 
            rgba(255, 0, 128, 0.04) 100%),
        radial-gradient(circle at 50% 120%, #6e6e6e 0%, #2a2a2a 100%);
    
    /* Borde plateado con relieve interior */
    border: 3px solid #cccccc;
    border-radius: 12px; /* Curvatura del contenedor */
    
    box-shadow: 
        inset 0 0 12px rgba(0, 0, 0, 0.7), /* Sombra interior para darle profundidad */
        0 4px 8px rgba(0, 0, 0, 0.5); /* Sombra exterior */
}

.secondary-container.style-dvd .pokemon-avatar {
    border: 3px solid #d4d4d4 !important;
    border-radius: 5px !important; /* Cuadrado convencional original */
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        inset 0 0 5px rgba(0, 0, 0, 0.8);
}

/* =========================================================
   DVD
   ========================================================= */

.secondary-container.style-dvd .dvd-logo {
    position: absolute;

    width: 55px;
    height: auto;

    pointer-events: none;

    z-index: 99999;

    opacity: 0.8;
}

/* =========================================================
   CHINA + NERV — POSICIÓN DEL TÍTULO
   ========================================================= */

.secondary-container.style-china .user-tittle,
.secondary-container.style-nerv .user-tittle {
    position: absolute !important;

    top: -12px !important;
    left: -2px !important;

    width: fit-content !important;
    height: fit-content !important;

    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
}

/* =========================================================
   STYLE — SYNTHWAVE / OUTRUN
   ========================================================= */

.secondary-container.style-synthwave {
    position: relative;
    overflow: visible;
}

.secondary-container.style-synthwave .message-wrapper {
    background-color: #1a0b2e;
    
    background-image: 
        /* The sun */
        radial-gradient(circle at 50% 110%, #ffd700 0%, #ff8c00 30%, #f90c71 50%, transparent 52%),
        /* Horizontal grid lines */
        repeating-linear-gradient(to bottom, transparent 0, transparent 8px, rgba(255, 0, 255, 0.4) 8px, rgba(255, 0, 255, 0.4) 9px),
        /* Vertical grid lines */
        repeating-linear-gradient(to right, transparent 0, transparent 20px, rgba(255, 0, 255, 0.4) 20px, rgba(255, 0, 255, 0.4) 21px),
        /* Horizon glow */
        linear-gradient(to top, rgba(255, 0, 255, 0.5) 0%, transparent 50%),
        /* Deep space background */
        linear-gradient(to bottom, #0f0518 0%, #2b0c36 100%);
        
    border: 2px solid #00ffff;
    border-radius: 8px;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        inset 0 0 10px rgba(0, 255, 255, 0.5);
    
    color: #ffffff;
    text-shadow: 0 0 5px #ff00ff;

    /* Configuración y animación del fondo */
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: center bottom, 0 0, 0 0, 0 0, 0 0;
    animation: synthwaveGridMove 1s linear infinite;
}

@keyframes synthwaveGridMove {
    0% {
        background-position: center bottom, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: center bottom, 0 9px, 0 0, 0 0, 0 0;
    }
}

.secondary-container.style-synthwave .user-name {
    color: #ffd700 !important; /* Sun yellow */
    text-shadow: 0 0 5px #ff8c00, 0 0 15px #f90c71 !important;
    font-style: italic;
    letter-spacing: 1px;
}

.secondary-container.style-synthwave .user-message {
    color: #00ffff !important; /* Neon cyan */
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.5) !important;
    font-weight: 500;
}

.secondary-container.style-synthwave .pokemon-avatar {
    border: 2px solid #ff00ff !important;
    border-radius: 4px !important;
    box-shadow: 
        0 0 15px #ff00ff, 
        inset 0 0 10px #ff00ff !important;
    background: #0f0518;
}

.secondary-container.style-synthwave .user-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* =========================================================
   STYLE — OSU!
   ========================================================= */

.secondary-container.style-osu .message-wrapper {
    position: relative !important;
    overflow: visible !important;
    background-color: #ff66aa; /* Classic osu! pink */
    
    /* Fondo con patrón de triángulos separados para animación en direcciones opuestas */
    background-image: 
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><polygon points="50,20 70,60 30,60" fill="rgba(255,255,255,0.15)"/><polygon points="150,110 180,170 120,170" fill="rgba(255,255,255,0.08)"/><polygon points="90,140 100,160 80,160" fill="rgba(255,255,255,0.2)"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><polygon points="150,60 130,20 170,20" fill="rgba(0,0,0,0.1)"/><polygon points="40,160 10,100 70,100" fill="rgba(0,0,0,0.06)"/><polygon points="100,60 90,40 110,40" fill="rgba(0,0,0,0.15)"/></svg>');
        
    background-size: 100% 100%, 200px 200px, 200px 200px;
    background-position: center, 0 0, 0 0;
    
    /* Animación para que los triángulos se muevan */
    animation: osuTrianglesMove 8s linear infinite;
    
    border: 3px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    
    color: #ffffff;
    font-weight: bold;
}

@keyframes osuTrianglesMove {
    0% {
        background-position: center, 0 0, 0 0;
    }
    100% {
        /* Capa 1 (Claros) sube, Capa 2 (Oscuros) baja */
        background-position: center, 0 -200px, 0 200px;
    }
}

.secondary-container.style-osu .user-name {
    color: #ffffff !important;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5) !important;
    font-style: italic;
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.secondary-container.style-osu .user-message {
    color: #ffffff !important;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.secondary-container.style-osu .message-content {
    position: relative;
    z-index: 1; /* Para estar encima del logo de fondo */
}

.secondary-container.style-osu .pokemon-avatar {
    border: 3px solid #ffffff !important;
    border-radius: 5px !important; /* Cuadrado convencional */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
    background-color: #ff66aa;
}

/* El logo de osu! latiendo en la esquina superior derecha */
.secondary-container.style-osu .message-wrapper::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background-image: url("/assets/styles/osu.png");
    background-size: contain;
    background-repeat: no-repeat;
    animation: osuPulse 0.6s ease-out infinite;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    z-index: 10;
    opacity: 1;
}

@keyframes osuPulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.secondary-container.style-osu .user-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* =========================================================
   STYLE — HOLLOW KNIGHT
   ========================================================= */

.secondary-container.style-hollowknight {
    position: relative;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.secondary-container.style-hollowknight .message-wrapper {
    position: relative;
    width: 75%;
    max-width: 280px;

    background: 
        radial-gradient(circle at 50% -20%, rgba(200, 220, 255, 0.5) 0%, transparent 70%),
        linear-gradient(180deg, rgba(60, 80, 100, 0.4) 0%, rgba(5, 10, 15, 0.8) 100%) !important;
    padding: 10px !important;

    border-top: 3px solid #8e9db0 !important;
    border-right: 3px solid #6b7a8f !important;
    border-bottom: 3px solid #4a5768 !important;
    border-left: 3px solid #6b7a8f !important;

    border-radius: 8px;

    box-shadow:
        0 0 15px rgba(142, 157, 176, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);

    overflow: visible !important; 
    box-sizing: border-box;
    z-index: 5;
}

/* Oscuridad moviéndose (Niebla con más forma) */
.secondary-container.style-hollowknight .message-wrapper::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: 
        radial-gradient(circle at 10% 100%, rgba(0,0,0,0.6) 0%, transparent 35%),
        radial-gradient(circle at 90% 100%, rgba(0,0,0,0.6) 0%, transparent 30%),
        radial-gradient(circle at 40% 100%, rgba(0,0,0,0.5) 0%, transparent 25%),
        radial-gradient(circle at 70% 100%, rgba(0,0,0,0.5) 0%, transparent 40%);
    background-size: 150% 100%;
    background-repeat: no-repeat;
    animation: hkFogMove1 12s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: 0;
}

/* El Hollow Knight caminando */
.secondary-container.style-hollowknight .message-wrapper::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0px;
    width: 100%;
    height: 60px;
    background-image: url("/assets/styles/hollowknight.gif");
    background-size: 60px 60px;
    background-repeat: no-repeat;
    animation: hkWalkRight 12s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
    transform: scaleX(-1);
    border-radius: 5px;
}

@keyframes hkFogMove1 {
    0% { background-position: left bottom; }
    100% { background-position: right bottom; }
}

@keyframes hkWalkRight {
    0% { background-position: calc(100% + 45px) bottom; }
    100% { background-position: -45px bottom; }
}

.secondary-container.style-hollowknight .user-header,
.secondary-container.style-hollowknight .message-content,
.secondary-container.style-hollowknight .user-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.secondary-container.style-hollowknight .pokemon-avatar {
    border: 2px solid #8e9db0 !important;
    background-color: #080d14;
    box-shadow: 0 0 10px rgba(142, 157, 176, 0.3) !important;
    position: relative;
    z-index: 6;
}

.secondary-container.style-hollowknight .user-name {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    z-index: 5;
}

.secondary-container.style-hollowknight .user-message {
    color: #cfd8e3;
    position: relative;
    z-index: 5;
}

/* Partículas negras subiendo */
.secondary-container.style-hollowknight .hk-particles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.secondary-container.style-hollowknight .style-hk-particle {
    position: absolute;
    background-color: #000000;
    border-radius: 50%;
    bottom: -10px;
    box-shadow: 0 0 3px rgba(255,255,255,0.3);
    opacity: 0;
    animation: hkParticleRise linear infinite;
}

@keyframes hkParticleRise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-110px) scale(0.5); opacity: 0; }
}

.secondary-container.style-hollowknight .hk-particle-1 { left: 5%; animation-duration: 4.8s; animation-delay: -1.2s; width: 4px; height: 4px; }
.secondary-container.style-hollowknight .hk-particle-2 { left: 15%; animation-duration: 5.6s; animation-delay: -3.4s; width: 6px; height: 6px; }
.secondary-container.style-hollowknight .hk-particle-3 { left: 25%; animation-duration: 4.2s; animation-delay: -0.8s; width: 3px; height: 3px; }
.secondary-container.style-hollowknight .hk-particle-4 { left: 35%; animation-duration: 5.2s; animation-delay: -2.7s; width: 5px; height: 5px; }
.secondary-container.style-hollowknight .hk-particle-5 { left: 45%; animation-duration: 4.6s; animation-delay: -4.1s; width: 4px; height: 4px; }
.secondary-container.style-hollowknight .hk-particle-6 { left: 55%; animation-duration: 5.8s; animation-delay: -1.9s; width: 7px; height: 7px; }
.secondary-container.style-hollowknight .hk-particle-7 { left: 65%; animation-duration: 4.4s; animation-delay: -3.1s; width: 3px; height: 3px; }
.secondary-container.style-hollowknight .hk-particle-8 { left: 75%; animation-duration: 5.4s; animation-delay: -2.2s; width: 5px; height: 5px; }
.secondary-container.style-hollowknight .hk-particle-9 { left: 85%; animation-duration: 4.9s; animation-delay: -4.5s; width: 4px; height: 4px; }
.secondary-container.style-hollowknight .hk-particle-10 { left: 95%; animation-duration: 5.7s; animation-delay: -0.5s; width: 6px; height: 6px; }
.secondary-container.style-hollowknight .hk-particle-11 { left: 10%; animation-duration: 6.1s; animation-delay: -1.5s; width: 3px; height: 3px; }
.secondary-container.style-hollowknight .hk-particle-12 { left: 30%; animation-duration: 4.5s; animation-delay: -2.5s; width: 5px; height: 5px; }
.secondary-container.style-hollowknight .hk-particle-13 { left: 50%; animation-duration: 5.3s; animation-delay: -3.5s; width: 4px; height: 4px; }
.secondary-container.style-hollowknight .hk-particle-14 { left: 70%; animation-duration: 4.7s; animation-delay: -0.2s; width: 6px; height: 6px; }
.secondary-container.style-hollowknight .hk-particle-15 { left: 90%; animation-duration: 5.9s; animation-delay: -4.8s; width: 3px; height: 3px; }

/* =========================================================
   ADO
   ========================================================= */

.user-tittle.theme-ado {
    background-color: #070e20;
    color: #e0e6f5;
    border: 2px solid #1a4b82;
    overflow: hidden;
    text-shadow:
        1px 1px 0 #000000,
        -1px -1px 0 rgba(26, 75, 130, 0.5);
}

/* =========================================================
   PETALOS ADO
   ========================================================= */

/* =========================================================
   PETALOS ADO
   ========================================================= */

.secondary-container.style-ado {
    z-index: 5;
}

.secondary-container.style-ado .ado-petals {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 20;
}

.secondary-container.style-ado .style-ado-petal {
    position: absolute;
    display: block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M 10 0 C 20 0, 20 10, 10 20 C 0 10, 0 0, 10 0' fill='%23004b76' stroke='%23000000' stroke-width='1.5'/%3E%3Cpath d='M 10 2 C 15 2, 15 8, 10 15' fill='none' stroke='%23000000' stroke-width='1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    animation-name: styleAdoFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    filter: drop-shadow(0 0 2px rgba(0, 75, 118, 0.8));
}

@keyframes styleAdoFall {
    0% { opacity: 0; transform: translate3d(0px, -15px, 0) rotate(0deg) scale(0.8); }
    5% { transform: translate3d(12px, -6px, 0) rotate(18deg) scale(0.82); }
    10% { opacity: 0.9; transform: translate3d(19px, 3.5px, 0) rotate(36deg) scale(0.85); }
    15% { transform: translate3d(19px, 13px, 0) rotate(54deg) scale(0.88); }
    20% { transform: translate3d(12px, 22px, 0) rotate(72deg) scale(0.9); }
    25% { transform: translate3d(0px, 31px, 0) rotate(90deg) scale(0.92); }
    30% { transform: translate3d(-12px, 40.5px, 0) rotate(108deg) scale(0.95); }
    35% { transform: translate3d(-19px, 50px, 0) rotate(126deg) scale(0.98); }
    40% { transform: translate3d(-19px, 59px, 0) rotate(144deg) scale(1); }
    45% { transform: translate3d(-12px, 68px, 0) rotate(162deg) scale(1); }
    50% { opacity: 1; transform: translate3d(0px, 77.5px, 0) rotate(180deg) scale(1); }
    55% { transform: translate3d(12px, 87px, 0) rotate(198deg) scale(0.98); }
    60% { transform: translate3d(19px, 96px, 0) rotate(216deg) scale(0.95); }
    65% { transform: translate3d(19px, 105px, 0) rotate(234deg) scale(0.92); }
    70% { transform: translate3d(12px, 114.5px, 0) rotate(252deg) scale(0.9); }
    75% { transform: translate3d(0px, 124px, 0) rotate(270deg) scale(0.88); }
    80% { opacity: 0.9; transform: translate3d(-12px, 133px, 0) rotate(288deg) scale(0.85); }
    85% { transform: translate3d(-19px, 142px, 0) rotate(306deg) scale(0.82); }
    90% { opacity: 0.5; transform: translate3d(-19px, 151.5px, 0) rotate(324deg) scale(0.8); }
    95% { transform: translate3d(-12px, 161px, 0) rotate(342deg) scale(0.75); }
    100% { opacity: 0; transform: translate3d(0px, 170px, 0) rotate(360deg) scale(0.7); }
}

.secondary-container.style-ado .petal-1 { left: 5%; top: -10px; animation-duration: 5.1s; animation-delay: 0.0s; }
.secondary-container.style-ado .petal-2 { left: 15%; top: 5%; animation-duration: 4.6s; animation-delay: 1.2s; }
.secondary-container.style-ado .petal-3 { left: 27%; top: -15px; animation-duration: 5.9s; animation-delay: 2.8s; }
.secondary-container.style-ado .petal-4 { left: 38%; top: 0; animation-duration: 4.8s; animation-delay: 0.5s; }
.secondary-container.style-ado .petal-5 { left: 49%; top: -5px; animation-duration: 6.2s; animation-delay: 4.1s; }
.secondary-container.style-ado .petal-6 { left: 62%; top: 10%; animation-duration: 5.4s; animation-delay: 1.9s; }
.secondary-container.style-ado .petal-7 { left: 75%; top: -20px; animation-duration: 4.7s; animation-delay: 3.4s; }
.secondary-container.style-ado .petal-8 { left: 86%; top: 2%; animation-duration: 5.6s; animation-delay: 0.9s; }
.secondary-container.style-ado .petal-9 { left: 92%; top: -10px; animation-duration: 6.5s; animation-delay: 2.4s; }
.secondary-container.style-ado .petal-10 { left: 98%; top: 5%; animation-duration: 5.0s; animation-delay: 4.8s; }

@keyframes roseFadeIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.secondary-container.style-ado .ado-rose {
    position: absolute;
    top: -2px;
    right: -10px;
    width: 35px;
    height: auto;
    z-index: 50;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(26, 75, 130, 0.6));
    opacity: 0;
    animation: roseFadeIn 0.5s ease-out 0.8s forwards;
}

.secondary-container.style-ado .message-wrapper {
    background: linear-gradient(135deg, #070e20 0%, #111b2e 100%);
    border: 2px solid #1a4b82;
    box-shadow:
        0 0 8px rgba(26, 75, 130, 0.5),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: visible !important;
    z-index: 1;
}

.secondary-container.style-ado .pokemon-avatar {
    border-color: #1a4b82;
    box-shadow: 0 0 6px rgba(26, 75, 130, 0.5);
    position: relative;
    z-index: 4;
}

.secondary-container.style-ado .user-name,
.secondary-container.style-ado .user-message {
    position: relative;
    color: #e0e6f5;
    z-index: 3;
}

/* Background Logo Centrado */
.secondary-container.style-ado .message-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url("/assets/styles/adologo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

/* Enredaderas (Vines) en el borde derecho generadas con CSS/SVG */
.secondary-container.style-ado .message-wrapper::after {
    content: "";
    position: absolute;
    top: -12px;
    bottom: -12px;
    right: -12px; 
    width: 60px; /* Ancho suficiente para superponerse a los bordes derecho, superior e inferior */
    
    background-image: 
        /* Esquina Superior Derecha (Top-Right) con mucha onda */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M 0 11 Q 24 0 48 11 C 58 20, 30 40, 48 60' fill='none' stroke='%231a4b82' stroke-width='2'/%3E%3Cpath d='M 24 5 Q 30 0 35 2 Q 32 8 24 5' fill='%232b7cbe'/%3E%3Cpath d='M 50 15 Q 58 10 55 20 Q 50 22 50 15' fill='%232b7cbe'/%3E%3Cpath d='M 35 35 Q 25 35 25 42 Q 30 45 35 35' fill='%232b7cbe'/%3E%3C/svg%3E"),
        /* Esquina Inferior Derecha (Bottom-Right) con mucha onda */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M 48 0 C 30 20, 58 40, 48 49 Q 24 60 0 49' fill='none' stroke='%231a4b82' stroke-width='2'/%3E%3Cpath d='M 35 15 Q 25 15 25 22 Q 30 25 35 15' fill='%232b7cbe'/%3E%3Cpath d='M 50 45 Q 58 50 55 40 Q 50 38 50 45' fill='%232b7cbe'/%3E%3Cpath d='M 24 55 Q 30 60 35 58 Q 32 52 24 55' fill='%232b7cbe'/%3E%3C/svg%3E"),
        /* Tallo Recto muy ondulado */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M 48 0 C 30 20, 58 40, 48 60' fill='none' stroke='%231a4b82' stroke-width='2'/%3E%3Cpath d='M 38 15 Q 28 15 28 22 Q 33 25 38 15' fill='%232b7cbe'/%3E%3Cpath d='M 54 45 Q 59 50 58 40 Q 56 38 54 45' fill='%232b7cbe'/%3E%3C/svg%3E");
        
    background-repeat: no-repeat, no-repeat, repeat-y;
    background-position: top right, bottom right, right 0 center;
    background-size: 60px 60px, 60px 60px, 60px 60px;
    
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 0 3px rgba(10, 20, 40, 0.9));
}

/* =========================================================
   ESTILO CRASH
   ========================================================= */

.secondary-container.style-crash .message-wrapper {
    background-image: url("/assets/styles/crashbackground.gif");
    background-size: cover;
    background-position: center;
    border: 3px solid #e60000;
    box-shadow: 
        0 0 10px #ffcc00, 
        inset 0 0 15px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    z-index: 1;
}

/* TNT box esquina */
.secondary-container.style-crash .message-wrapper::before {
    content: "";
    position: absolute;
    top: -25px;
    right: -25px;
    width: 40px;
    height: 40px;
    background-image: url("/assets/styles/tnt.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    pointer-events: none;
    z-index: 50;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.8));
    transform: rotate(15deg);
}

.secondary-container.style-crash .user-name {
    color: #ffcc00 !important;
    text-shadow: 
        -2px -2px 0 #000, 0 -2px 0 #000, 2px -2px 0 #000,
        -2px  0   0 #000,                 2px  0   0 #000,
        -2px  2px 0 #000, 0  2px 0 #000, 2px  2px 0 #000,
        0 0 10px rgba(255, 140, 0, 0.9),
        2px 3px 3px rgba(0, 0, 0, 0.9) !important;
    animation: none !important;
    font-weight: bold;
    z-index: 3;
    position: relative;
}

.secondary-container.style-crash .user-message {
    color: #ff9900 !important;
    text-shadow: 
        -2px -2px 0 #000, 0 -2px 0 #000, 2px -2px 0 #000,
        -2px  0   0 #000,                 2px  0   0 #000,
        -2px  2px 0 #000, 0  2px 0 #000, 2px  2px 0 #000,
        0 0 6px rgba(230, 81, 0, 0.7),
        2px 3px 3px rgba(0, 0, 0, 0.9) !important;
    font-weight: bold;
    z-index: 3;
    position: relative;
}

.secondary-container.style-crash .pokemon-avatar {
    border: 3px solid #ffcc00;
    box-shadow: 0 0 8px #cc0000;
    background-color: #0033cc;
    position: relative;
    z-index: 4;
}

.secondary-container.style-crash .badges img {
    filter: drop-shadow(0 0 2px #ffcc00);
}



/* Removed global html, body rule to fix WebReact scroll */

.message-row { margin-bottom: 15px; }


.secondary-container.style-deltarune .user-tittle, .secondary-container.style-osu .user-tittle { left: -14px !important; }



@keyframes perreoBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.perreo-dance { animation: perreoBounce 0.3s ease-in-out infinite !important; }


/* =========================================================
   STYLE - CATS (MADOSHKA)
   ========================================================= */

.secondary-container.style-cat .message-wrapper {
    position: relative !important;
    overflow: visible !important;
    /* Soft dark background with SVG pattern (Paws and hearts) */
    background-color: #2b2126;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff6b81' opacity='0.5'%3E%3Cpath d='M45 45c-2.5-2.5-6.5-2.5-9 0l-1 1-1-1c-2.5-2.5-6.5-2.5-9 0s-2.5 6.5 0 9l10 10 10-10c2.5-2.5 2.5-6.5 0-9z' transform='rotate(-20 40 45)'/%3E%3Cpath d='M45 45c-2.5-2.5-6.5-2.5-9 0l-1 1-1-1c-2.5-2.5-6.5-2.5-9 0s-2.5 6.5 0 9l10 10 10-10c2.5-2.5 2.5-6.5 0-9z' transform='translate(-30, -30) rotate(-20 40 45)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 25px 25px;
    border: 3px solid #ff85a2;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255, 133, 162, 0.3);
    color: #ffd6e0;
}

.secondary-container.style-cat .pokemon-avatar {
    border-color: #ff85a2;
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

/* User Title for Cat */
.secondary-container.style-cat .user-tittle {
    background-color: #ff85a2;
    color: #fff;
    border: 2px solid #ff477e;
    border-radius: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 15;
}

/* Cat 1: Top right */
.secondary-container.style-cat .message-wrapper::before {
    content: "";
    position: absolute;
    top: -25px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-image: url("/assets/styles/cat1.gif");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
    pointer-events: none;
}

/* Cat 2: Bottom right corner accent */
.secondary-container.style-cat .message-wrapper::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: auto;
    right: -40px;
    width: 70px;
    height: 70px;
    background-image: url("/assets/styles/cat2.gif");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    z-index: 5;
    pointer-events: none;
}

/* Cat 5: Bottom center */
.secondary-container.style-cat .user-box::before {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-image: url("/assets/styles/cat5.gif");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
    pointer-events: none;
}

/* Cat 6: User Box After */
.secondary-container.style-cat .user-box::after {
    content: "";
    position: absolute;
    top: -25px;
    left: 100px;
    width: 50px;
    height: 50px;
    background-image: url("/assets/styles/cat6.gif");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
    pointer-events: none;
}

/* La Calabaza: bottom left corner, half outside */
.secondary-container.style-cat .message-content::before {
    content: "";
    position: absolute;
    bottom: -58px;
    left: -50px;
    width: 64px;
    height: 72px;
    background-image: url("/assets/styles/lacalabaza.gif");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    z-index: 5;
    pointer-events: none;
}


/* =========================================================
   STYLE - OMORI
   ========================================================= */

@font-face {
    font-family: 'OMORI_GAME';
    /* Ahora sí buscará exactamente 'OMORI_GAME' localmente */
    src: local('OMORI_GAME'), url('/assets/styles/fonts/OMORI_GAME.ttf') format('truetype');
}

@font-face {
    font-family: 'DotGothic16';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/dotgothic16/v21/v6-QGYjBJFKgyw5nSoDAGE7L.ttf) format('truetype');
    size-adjust: 65%;
}

.secondary-container.style-omori .message-wrapper {
    position: relative !important;
    overflow: visible !important;
    background-color: #ffffff;
    
    /* Efecto de borde dibujado a mano */
    border: 2px solid #000000;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1); 
    
    color: #000000;
    font-family: 'OMORI_GAME', 'DotGothic16', monospace !important;
    font-size: 1.6em;
    text-shadow: 0.5px 0 0 #000 !important;
}

.secondary-container.style-omori .message-content {
    position: relative;
    z-index: 2;
}

/* User name styling */
.secondary-container.style-omori .user-name {
    color: #000000 !important;
    text-shadow: 0.5px 0 0 #000 !important;
    font-family: 'OMORI_GAME', 'DotGothic16', monospace !important;
    z-index: 3;
    position: relative;
    font-weight: normal;
    top: -4px;
}

/* User message styling */
.secondary-container.style-omori .user-message {
    color: #000000 !important;
    text-shadow: 0.5px 0 0 #000 !important;
    font-family: 'OMORI_GAME', 'DotGothic16', monospace !important;
    z-index: 3;
    position: relative;
    top: -4px;
}

/* Título */
.secondary-container.style-omori .user-tittle {
    top: -20px !important;
    left: -14px !important;
}

/* Avatar: Borde negro simple con el efecto hand-drawn */
.secondary-container.style-omori .pokemon-avatar {
    border: 3px solid #000000;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    box-shadow: none;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

/* Quitar filtros raros a medallas */
.secondary-container.style-omori .badges img {
    filter: none !important;
}

/* Decoración 1: Lightbulb */
.secondary-container.style-omori .message-wrapper::before {
    content: "";
    position: absolute;
    top: -12px; 
    right: 25px;
    width: 22px;
    height: 44px;
    background-image: url("/assets/styles/omorilightbulb.gif");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 1; /* Detrás del texto (z-index 3) y delante del fondo */
    pointer-events: none;
    opacity: 0.5; /* Mayor opacidad a pedido */
}

/* Decoración 2: Mewo durmiendo (Movido al avatar para arreglar el z-index) */
.secondary-container.style-omori .pokemon-avatar::after {
    display: none;
}

/* Decoración 2: Mewo durmiendo (Esquina inferior izquierda de la caja del chat) */
.secondary-container.style-omori .message-content::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: -18px;
    width: 40px;
    height: 40px;
    background-image: url("/assets/styles/mewo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    z-index: 12;
    pointer-events: none;
}

/* Decoración 3: Omori Violin (Esquina inferior derecha) */
.secondary-container.style-omori .message-wrapper::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -25px;
    width: 45px;
    height: 45px;
    background-image: url("/assets/styles/omori_avatars/omori_violin.gif");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    z-index: 11;
    pointer-events: none;
}

/* =========================================================
   HALLOWEEN THEMES (Comprados con Caramelos)
   ========================================================= */

/* Título Calabaza - Efecto vela parpadeando y calabacita */
.user-tittle.theme-calabaza {
    background: linear-gradient(135deg, #d35400, #e67e22, #d35400);
    background-size: 200% 200%;
    border: 2px solid #5c2c16;
    color: #ffeba1;
    text-shadow: 1px 1px 0px #000;
    box-shadow: 0 0 8px #e67e22, inset 0 0 10px rgba(0,0,0,0.5);
    animation: pumpkinFlicker 3s infinite alternate, titleGradientMove 3s ease infinite;
    overflow: visible; /* Para que salga la calabacita */
}
.user-tittle.theme-calabaza::before {
    content: "";
    position: absolute;
    top: -20px; left: -25px;
    width: 37px; height: 37px;
    background-image: url("/assets/styles/calabaza_tema.png");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 12;
    transform: rotate(-15deg);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.8));
}
@keyframes pumpkinFlicker {
    0%, 100% { box-shadow: 0 0 8px #e67e22, inset 0 0 10px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 15px #f39c12, inset 0 0 10px rgba(0,0,0,0.5); }
    25%, 75% { box-shadow: 0 0 5px #e67e22, inset 0 0 10px rgba(0,0,0,0.5); }
}
@keyframes titleGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Título Fantasma - Sombra de niebla y levitación */
.user-tittle.theme-fantasma {
    background: linear-gradient(to bottom, #f8f9fa, #bdc3c7);
    border: 2px solid #7f8c8d;
    color: #2c3e50;
    text-shadow: 1px 1px 0 #fff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    animation: ghostFloat 3s ease-in-out infinite;
}
@keyframes ghostFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Título Bruja - Degradado oscuro mágico y sombrerito */
.user-tittle.theme-bruja {
    background: linear-gradient(45deg, #4a235a, #8e44ad, #145a32);
    background-size: 200% 200%;
    border: 2px solid #111;
    color: #f1c40f;
    text-shadow: 1px 1px 2px #000, 0 0 5px #f1c40f;
    animation: titleGradientMove 4s ease infinite;
    overflow: visible; /* Para permitir que el sombrero salga del título */
}
.user-tittle.theme-bruja::before {
    content: "";
    position: absolute;
    top: -20px; left: -25px;
    width: 37px; height: 37px;
    background-image: url("/assets/styles/sombrero_bruja.png");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 12;
    transform: rotate(-25deg);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.8));
}

/* =========================================================
   HALLOWEEN STYLES (Comprados con Caramelos)
   ========================================================= */

@keyframes halloweenBgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes halloweenInnerGlow {
    0%, 100% { border-color: #d35400; box-shadow: inset 0 0 10px rgba(211, 84, 0, 0.4); }
    50% { border-color: #f39c12; box-shadow: inset 0 0 30px rgba(243, 156, 18, 0.9); }
}

/* Estilo: halloween - Llamativo y vibrante con fondo opaco animado */
.secondary-container.style-halloween .message-wrapper {
    background: linear-gradient(90deg, #1c0900, #3a1600, #1c0900);
    background-size: 200% 100%;
    border: 2px solid #e67e22;
    border-radius: 9px;
    color: #fff;
    box-shadow: inset 0 0 15px rgba(230, 126, 34, 0.3);
    animation: halloweenBgMove 4s ease infinite, halloweenInnerGlow 3s infinite alternate;
}
.secondary-container.style-halloween .pokemon-avatar {
    border: 2px solid #e67e22;
    background-color: #1c0900;
    overflow: visible; /* Para que la calabaza salga del borde */
    animation: halloweenInnerGlow 3s infinite alternate;
}
.secondary-container.style-halloween .user-name {
    color: #f39c12;
    text-shadow: 0 0 8px #d35400;
}
.secondary-container.style-halloween .message-wrapper::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -25px;
    width: 50px;
    height: 50px;
    background-image: url("/assets/styles/calabaza.png");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 15;
    pointer-events: none;
}

/* Estilo: cementerio - Tumbas y escala de grises */
.secondary-container.style-cementerio .message-wrapper {
    background: linear-gradient(to right, #111, #2b2b2b);
    border: 3px double #555;
    color: #999;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.secondary-container.style-cementerio .pokemon-avatar {
    border: 3px solid #333;
    filter: grayscale(100%) contrast(1.2) brightness(0.8);
}
.secondary-container.style-cementerio .user-name {
    color: #7f8c8d;
    text-shadow: 0 0 5px #000;
}
.secondary-container.style-cementerio .message-wrapper::after {
    content: "";
    position: absolute;
    bottom: -15px; 
    right: -35px; /* Bien a la derecha para no tapar texto! */
    width: 60px; height: 60px;
    background-image: url("/assets/styles/tumba.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 15;
    /* Se quitó drop-shadow para evitar bug del rectángulo en OBS */
}

/* =========================================================
   🌌 TEMA Y ESTILO NOCHE ETERNA (Pase de Batalla - Nivel 15)
   ========================================================= */

/* Título Noche Eterna - Elegante, nítido y sin tapar letras */
.user-tittle.theme-nocheeterna {
    background: linear-gradient(135deg, #16022e 0%, #2d0752 40%, #50137d 75%, #180132 100%);
    background-size: 200% 200%;
    border: 1.5px solid #c084fc;
    border-radius: 6px;
    padding: 2px 9px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px #d946ef, 0 0 14px #9333ea, 1px 1px 2px #000;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.45), inset 0 0 10px rgba(88, 28, 135, 0.6);
    animation: nocheEternaTitlePulse 4s ease-in-out infinite, titleGradientMove 5s ease infinite;
    position: relative;
    overflow: visible;
}

@keyframes nocheEternaTitlePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.4), inset 0 0 8px rgba(76, 29, 149, 0.5); }
    50% { box-shadow: 0 0 18px rgba(217, 70, 239, 0.65), inset 0 0 14px rgba(112, 26, 117, 0.7); }
}

@keyframes starTwinkle {
    0% { opacity: 0.4; transform: scale(0.85) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.15) rotate(45deg); }
}

/* =========================================================
   ESTILO DE CONTENEDOR NOCHE ETERNA (Nebulosa Cósmica)
   ========================================================= */

.secondary-container.style-nocheeterna {
    position: relative;
    overflow: visible;
}

/* Caja de mensaje: Nebulosa profunda con polvo estelar */
.secondary-container.style-nocheeterna .message-wrapper {
    position: relative;
    overflow: visible;
    background: 
        radial-gradient(ellipse at 85% 15%, rgba(192, 132, 252, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(124, 58, 237, 0.20) 0%, transparent 50%),
        linear-gradient(135deg, #090114 0%, #16042b 40%, #250644 75%, #080010 100%);
    border: 2px solid #a855f7;
    border-radius: 8px;
    box-shadow: 
        0 0 16px rgba(168, 85, 247, 0.4),
        0 0 30px rgba(88, 28, 135, 0.25),
        inset 0 0 20px rgba(76, 29, 149, 0.45);
    color: #f3e8ff;
    padding: 10px 14px;
    animation: neBoxGlow 5s ease-in-out infinite alternate;
}

/* Polvo estelar titilante de fondo */
.secondary-container.style-nocheeterna .message-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: 
        radial-gradient(1px 1px at 20px 25px, rgba(233, 213, 255, 0.7), transparent),
        radial-gradient(1.2px 1.2px at 65px 45px, rgba(240, 171, 252, 0.8), transparent),
        radial-gradient(1px 1px at 120px 20px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 180px 50px, rgba(192, 132, 252, 0.75), transparent),
        radial-gradient(1px 1px at 230px 15px, rgba(244, 114, 182, 0.65), transparent);
    background-size: 260px 70px;
    opacity: 0.45;
    animation: neStardustFloat 18s linear infinite;
    z-index: 1;
}

@keyframes neStardustFloat {
    0% { background-position: 0 0; }
    100% { background-position: 260px 0; }
}

@keyframes neBoxGlow {
    0% { border-color: #a855f7; box-shadow: 0 0 14px rgba(168, 85, 247, 0.35), inset 0 0 18px rgba(76, 29, 149, 0.4); }
    100% { border-color: #d946ef; box-shadow: 0 0 22px rgba(217, 70, 239, 0.55), inset 0 0 24px rgba(112, 26, 117, 0.55); }
}

/* Avatar: Marco amatista con gema superior */
.secondary-container.style-nocheeterna .pokemon-avatar {
    border: 2px solid #c084fc;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.5), inset 0 0 10px rgba(76, 29, 149, 0.5);
    position: relative;
    overflow: visible;
}

.secondary-container.style-nocheeterna .pokemon-avatar::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #e879f9;
    border: 1px solid #ffffff;
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: 0 0 8px #d946ef;
    z-index: 21;
}

/* Nombre de usuario: Magenta cósmico */
.secondary-container.style-nocheeterna .user-name {
    color: #e879f9;
    text-shadow: 0 0 8px rgba(232, 121, 249, 0.8), 1px 1px 2px #000;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

/* Mensaje del usuario: Blanco lavanda nítido */
.secondary-container.style-nocheeterna .user-message {
    color: #f3e8ff;
    text-shadow: 0 0 6px rgba(192, 132, 252, 0.3), 1px 1px 2px #000;
    position: relative;
    z-index: 2;
}

/* =========================================================
   SIGILO WALPURGIS (Esquina superior derecha del mensaje)
   ========================================================= */

.secondary-container.style-nocheeterna .nocheeterna-sigil {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    pointer-events: none;
    z-index: 25;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23f0abfc'/%3E%3Cstop offset='50%25' stop-color='%23c084fc'/%3E%3Cstop offset='100%25' stop-color='%239333ea'/%3E%3C/linearGradient%3E%3Cfilter id='f'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='1.5' flood-color='%23d946ef'/%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='16' fill='none' stroke='rgba(192,132,252,0.35)' stroke-dasharray='2,3' stroke-width='1'/%3E%3Cpath d='M22 6 A14 14 0 1 0 34 22 A11 11 0 1 1 22 6 Z' fill='url(%23g)' filter='url(%23f)'/%3E%3Cpolygon points='25,12 26.5,15.5 30,17 26.5,18.5 25,22 23.5,18.5 20,17 23.5,15.5' fill='%23ffffff'/%3E%3Ccircle cx='25' cy='17' r='1.2' fill='%23fdf4ff'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.65));
    animation: neSigilFloat 4s ease-in-out infinite alternate;
}

@keyframes neSigilFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-3px) rotate(4deg); }
}

/* =========================================================
   PARTÍCULAS CELESTIALES FLOTANTES (Safe Zone de OBS)
   ========================================================= */

.secondary-container.style-nocheeterna .nocheeterna-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 15;
}

.secondary-container.style-nocheeterna .style-ne-star {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffffff 20%, #e879f9 70%, transparent 100%);
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    filter: drop-shadow(0 0 3px #d946ef);
    opacity: 0;
    animation: neStarFloat 4s ease-in-out infinite;
}

@keyframes neStarFloat {
    0% { opacity: 0; transform: translateY(6px) scale(0.6); }
    30% { opacity: 0.85; transform: translateY(0px) scale(1); }
    70% { opacity: 0.65; transform: translateY(-8px) scale(0.9); }
    100% { opacity: 0; transform: translateY(-16px) scale(0.5); }
}

/* Posiciones seguras: siempre dentro del área del mensaje (left >= 20%), nunca a la izquierda del avatar */
.secondary-container.style-nocheeterna .ne-star-1 { left: 24%; top: -8px; animation-duration: 3.8s; animation-delay: 0s; }
.secondary-container.style-nocheeterna .ne-star-2 { left: 38%; top: 80%; animation-duration: 4.5s; animation-delay: 1.2s; }
.secondary-container.style-nocheeterna .ne-star-3 { left: 52%; top: -10px; animation-duration: 3.4s; animation-delay: 2.1s; }
.secondary-container.style-nocheeterna .ne-star-4 { left: 66%; top: 75%; animation-duration: 4.8s; animation-delay: 0.6s; }
.secondary-container.style-nocheeterna .ne-star-5 { left: 78%; top: -6px; animation-duration: 4.2s; animation-delay: 2.8s; }
.secondary-container.style-nocheeterna .ne-star-6 { left: 88%; top: 82%; animation-duration: 3.9s; animation-delay: 1.7s; }
.secondary-container.style-nocheeterna .ne-star-7 { left: 45%; top: 15%; animation-duration: 5.0s; animation-delay: 3.2s; width: 6px; height: 6px; }
.secondary-container.style-nocheeterna .ne-star-8 { left: 93%; top: 25%; animation-duration: 4.3s; animation-delay: 0.9s; width: 6px; height: 6px; }



/* =========================================================
   TARJETA DE PERFIL: FONDO NOCHE ETERNA (PASE DE BATALLA)
   ========================================================= */
.steam-profile-card.card-banner-nocheeterna {
    border: 2px solid #d946ef !important;
    box-shadow:
        0 0 24px rgba(217, 70, 239, 0.42),
        0 0 48px rgba(88, 28, 135, 0.32),
        inset 0 0 28px rgba(147, 51, 234, 0.42) !important;
    animation: neCardBoxGlow 4.5s ease-in-out infinite alternate;
}

.steam-profile-card.card-banner-nocheeterna:not(.has-custom-banner) {
    background:
        radial-gradient(ellipse at 85% 12%, rgba(232, 121, 249, 0.34) 0%, transparent 52%),
        radial-gradient(ellipse at 12% 88%, rgba(56, 189, 248, 0.26) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 45%, rgba(147, 51, 234, 0.28) 0%, transparent 65%),
        linear-gradient(135deg, #070112 0%, #190430 38%, #2e0652 72%, #070110 100%) !important;
}

.steam-profile-card.card-banner-nocheeterna::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        radial-gradient(1.3px 1.3px at 25px 30px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.6px 1.6px at 85px 65px, rgba(240, 171, 252, 0.9), transparent),
        radial-gradient(1.2px 1.2px at 150px 25px, rgba(125, 211, 252, 0.85), transparent),
        radial-gradient(1.8px 1.8px at 220px 80px, rgba(232, 121, 249, 0.85), transparent),
        radial-gradient(1.2px 1.2px at 290px 40px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 340px 95px, rgba(192, 132, 252, 0.85), transparent);
    background-size: 360px 120px;
    opacity: 0.55;
    animation: neStardustFloat 20s linear infinite;
    z-index: 0;
}

@keyframes neCardBoxGlow {
    0% {
        border-color: #a855f7;
        box-shadow: 0 0 18px rgba(168, 85, 247, 0.4), 0 0 38px rgba(56, 189, 248, 0.18), inset 0 0 24px rgba(88, 28, 135, 0.45);
    }
    100% {
        border-color: #e879f9;
        box-shadow: 0 0 28px rgba(232, 121, 249, 0.6), 0 0 52px rgba(147, 51, 234, 0.35), inset 0 0 32px rgba(134, 25, 143, 0.55);
    }
}

.ne-card-sigil {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 44px;
    height: 44px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23f0abfc'/%3E%3Cstop offset='50%25' stop-color='%23c084fc'/%3E%3Cstop offset='100%25' stop-color='%2338bdf8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='16' fill='none' stroke='rgba(232,121,249,0.45)' stroke-dasharray='2,3' stroke-width='1'/%3E%3Cpath d='M22 6 A14 14 0 1 0 34 22 A11 11 0 1 1 22 6 Z' fill='url(%23g)'/%3E%3Cpolygon points='25,12 26.5,15.5 30,17 26.5,18.5 25,22 23.5,18.5 20,17 23.5,15.5' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 10px rgba(232, 121, 249, 0.75));
    animation: neSigilFloat 4s ease-in-out infinite alternate;
}

.ne-card-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
    z-index: 1;
}

.ne-card-stars .ne-cstar {
    position: absolute;
    width: 9px;
    height: 9px;
    background: radial-gradient(circle, #ffffff 25%, #e879f9 70%, transparent 100%);
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    filter: drop-shadow(0 0 4px #d946ef);
    opacity: 0;
    animation: neStarFloat 4.2s ease-in-out infinite;
}
.ne-card-stars .ne-cstar.s1 { left: 18%; top: 18%; animation-delay: 0s; }
.ne-card-stars .ne-cstar.s2 { left: 46%; top: 12%; animation-delay: 1.1s; width: 7px; height: 7px; }
.ne-card-stars .ne-cstar.s3 { left: 74%; top: 22%; animation-delay: 2.3s; }
.ne-card-stars .ne-cstar.s4 { left: 32%; top: 68%; animation-delay: 0.7s; width: 7px; height: 7px; }
.ne-card-stars .ne-cstar.s5 { left: 82%; top: 64%; animation-delay: 1.8s; }

/* =========================================================
   TARJETA DE PERFIL: FONDOS PREMIUM INTERACTIVOS Y CON EFECTOS
   ========================================================= */

/* 1. Ciberespacio Neón */
.steam-profile-card.card-banner-ciberespacio {
    border: 2px solid #06b6d4 !important;
    box-shadow: 0 0 22px rgba(6, 182, 212, 0.4), 0 0 45px rgba(139, 92, 246, 0.2), inset 0 0 24px rgba(6, 182, 212, 0.3) !important;
    animation: cyberCardGlow 4s ease-in-out infinite alternate;
}
.card-fx-cyber-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.65;
    z-index: 1;
}
.card-fx-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #22d3ee, #a855f7, transparent);
    box-shadow: 0 0 12px #06b6d4, 0 0 20px #8b5cf6;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
    animation: scanlineMove 6s linear infinite;
}
.card-fx-cyber-nodes .c-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow: 0 0 8px #06b6d4, 0 0 16px #38bdf8;
    animation: cyberNodeBlink 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.card-fx-cyber-nodes .c-node.n1 { top: 20%; left: 88%; animation-delay: 0s; }
.card-fx-cyber-nodes .c-node.n2 { top: 75%; left: 14%; animation-delay: 1.2s; }
.card-fx-cyber-nodes .c-node.n3 { top: 35%; left: 45%; animation-delay: 0.6s; width: 4px; height: 4px; }
.card-fx-cyber-nodes .c-node.n4 { top: 82%; left: 78%; animation-delay: 2.1s; width: 5px; height: 5px; }

/* 2. Pira Infernal */
.steam-profile-card.card-banner-infierno {
    border: 2px solid #f97316 !important;
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.45), 0 0 50px rgba(239, 68, 68, 0.25), inset 0 0 26px rgba(180, 83, 9, 0.4) !important;
    animation: infernoCardGlow 3.5s ease-in-out infinite alternate;
}
.card-fx-inferno-glow {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 120px;
    background: radial-gradient(ellipse at 50% 100%, rgba(239, 68, 68, 0.35) 0%, rgba(249, 115, 22, 0.2) 50%, transparent 80%);
    pointer-events: none;
    z-index: 1;
    animation: infernoPulse 2.8s ease-in-out infinite alternate;
}
.card-fx-embers .ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #fef08a 20%, #f97316 70%, transparent 100%);
    border-radius: 50%;
    filter: drop-shadow(0 0 5px #ef4444);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: emberRise 4s ease-in infinite;
}
.card-fx-embers .ember.e1 { left: 18%; bottom: 5%; animation-delay: 0.2s; animation-duration: 3.8s; }
.card-fx-embers .ember.e2 { left: 35%; bottom: 8%; animation-delay: 1.5s; animation-duration: 4.2s; width: 5px; height: 5px; }
.card-fx-embers .ember.e3 { left: 52%; bottom: 2%; animation-delay: 0.8s; animation-duration: 3.5s; }
.card-fx-embers .ember.e4 { left: 68%; bottom: 6%; animation-delay: 2.2s; animation-duration: 4.5s; width: 6px; height: 6px; }
.card-fx-embers .ember.e5 { left: 84%; bottom: 4%; animation-delay: 1.1s; animation-duration: 3.7s; }
.card-fx-embers .ember.e6 { left: 26%; bottom: 3%; animation-delay: 2.8s; animation-duration: 4.0s; width: 3px; height: 3px; }

/* 3. Aurora Boreal */
.steam-profile-card.card-banner-aurora {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.42), 0 0 45px rgba(56, 189, 248, 0.22), inset 0 0 24px rgba(16, 185, 129, 0.3) !important;
    animation: auroraCardGlow 4.5s ease-in-out infinite alternate;
}
.card-fx-aurora-wave {
    position: absolute;
    top: -30px;
    left: -20%;
    width: 140%;
    height: 140px;
    background: radial-gradient(ellipse at 50% 30%, rgba(52, 211, 153, 0.35) 0%, rgba(99, 102, 241, 0.25) 45%, transparent 75%);
    filter: blur(14px);
    pointer-events: none;
    z-index: 1;
    animation: auroraWaveMove 8s ease-in-out infinite alternate;
}
.card-fx-aurora-lights .a-light {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #a7f3d0 30%, #10b981 70%, transparent 100%);
    border-radius: 50%;
    filter: drop-shadow(0 0 6px #34d399);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: auroraTwinkle 3.6s ease-in-out infinite;
}
.card-fx-aurora-lights .a-light.l1 { top: 22%; left: 25%; animation-delay: 0.3s; }
.card-fx-aurora-lights .a-light.l2 { top: 15%; left: 62%; animation-delay: 1.8s; width: 7px; height: 7px; }
.card-fx-aurora-lights .a-light.l3 { top: 68%; left: 38%; animation-delay: 1.0s; }
.card-fx-aurora-lights .a-light.l4 { top: 78%; left: 82%; animation-delay: 2.4s; width: 6px; height: 6px; }

/* 4. Resplandor Astral */
.steam-profile-card.card-banner-astral {
    border: 2px solid #eab308 !important;
    box-shadow: 0 0 26px rgba(234, 179, 8, 0.5), 0 0 55px rgba(217, 119, 6, 0.28), inset 0 0 28px rgba(234, 179, 8, 0.35) !important;
    animation: astralCardGlow 4s ease-in-out infinite alternate;
}
.card-fx-astral-sigil {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cdefs%3E%3ClinearGradient id='ag' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23fef08a'/%3E%3Cstop offset='50%25' stop-color='%23eab308'/%3E%3Cstop offset='100%25' stop-color='%23ca8a04'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='url(%23ag)' stroke-width='1.5' stroke-dasharray='3,3'/%3E%3Cpolygon points='25,5 29,18 43,18 32,26 36,39 25,31 14,39 18,26 7,18 21,18' fill='none' stroke='url(%23ag)' stroke-width='1.2'/%3E%3Ccircle cx='25' cy='25' r='3' fill='%23fef08a'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.8));
    animation: astralSigilSpin 18s linear infinite;
}
/* A la izquierda de la caja de nivel, para que no quede tapado */
.card-fx-astral-sigil.inline {
    position: relative;
    top: auto;
    right: auto;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    opacity: 0.75;
}
.card-fx-astral-stars .a-star {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffffff 25%, #fde047 70%, transparent 100%);
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    filter: drop-shadow(0 0 5px #eab308);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: astralStarTwinkle 3.8s ease-in-out infinite;
}
.card-fx-astral-stars .a-star.s1 { left: 16%; top: 16%; animation-delay: 0s; }
.card-fx-astral-stars .a-star.s2 { left: 48%; top: 10%; animation-delay: 1.4s; width: 6px; height: 6px; }
.card-fx-astral-stars .a-star.s3 { left: 76%; top: 24%; animation-delay: 2.2s; }
.card-fx-astral-stars .a-star.s4 { left: 28%; top: 72%; animation-delay: 0.8s; width: 6px; height: 6px; }
.card-fx-astral-stars .a-star.s5 { left: 84%; top: 66%; animation-delay: 2.0s; width: 9px; height: 9px; }
.card-fx-astral-stars .a-star.s6 { left: 60%; top: 80%; animation-delay: 1.1s; }

/* Animaciones de Fondos Premium */
@keyframes cyberCardGlow {
    0% { border-color: #06b6d4; box-shadow: 0 0 16px rgba(6, 182, 212, 0.35); }
    100% { border-color: #38bdf8; box-shadow: 0 0 28px rgba(6, 182, 212, 0.65), 0 0 45px rgba(139, 92, 246, 0.3); }
}
@keyframes scanlineMove {
    0% { top: -10%; opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { top: 105%; opacity: 0; }
}
@keyframes cyberNodeBlink {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}
@keyframes infernoCardGlow {
    0% { border-color: #ea580c; box-shadow: 0 0 16px rgba(234, 88, 12, 0.4); }
    100% { border-color: #f97316; box-shadow: 0 0 28px rgba(249, 115, 22, 0.65), 0 0 45px rgba(239, 68, 68, 0.35); }
}
@keyframes infernoPulse {
    0% { opacity: 0.5; transform: scaleY(0.9); }
    100% { opacity: 0.95; transform: scaleY(1.15); }
}
@keyframes emberRise {
    0% { transform: translateY(0) scale(0.6); opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-110px) translateX(14px) scale(1.1); opacity: 0; }
}
@keyframes auroraCardGlow {
    0% { border-color: #059669; box-shadow: 0 0 16px rgba(5, 150, 105, 0.35); }
    100% { border-color: #34d399; box-shadow: 0 0 28px rgba(52, 211, 153, 0.6), 0 0 45px rgba(99, 102, 241, 0.3); }
}
@keyframes auroraWaveMove {
    0% { transform: translateX(0) scaleY(1); opacity: 0.6; }
    100% { transform: translateX(35px) scaleY(1.25); opacity: 0.9; }
}
@keyframes auroraTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.95; transform: scale(1.25); }
}
@keyframes astralCardGlow {
    0% { border-color: #ca8a04; box-shadow: 0 0 18px rgba(202, 138, 4, 0.4); }
    100% { border-color: #fde047; box-shadow: 0 0 30px rgba(250, 204, 21, 0.65), 0 0 50px rgba(234, 179, 8, 0.35); }
}
@keyframes astralSigilSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes astralStarTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.75) rotate(0deg); }
    50% { opacity: 0.95; transform: scale(1.2) rotate(45deg); }
}

/* 5. Recuerdos de Lord Dominik (#CCE5EA plateado y #F03670 rubí) */
.steam-profile-card.card-banner-lorddominik {
    overflow: visible !important;
    border: 2px solid #CCE5EA !important;
    box-shadow:
        0 0 14px rgba(204, 229, 234, 0.45),
        0 0 24px rgba(240, 54, 112, 0.15),
        inset 0 0 22px rgba(0, 0, 0, 0.70),
        inset 0 0 12px rgba(240, 54, 112, 0.12) !important;
    animation: dominikCardGlow 4s ease-in-out infinite alternate;
}

.steam-profile-card.card-banner-lorddominik::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 95% 5%, rgba(240, 54, 112, 0.14) 0%, transparent 45%),
        radial-gradient(ellipse at 8% 92%, rgba(240, 54, 112, 0.08) 0%, transparent 40%);
    z-index: 1;
}

.steam-profile-card.card-banner-lorddominik:not(.has-custom-banner) {
    background:
        radial-gradient(ellipse at 92% 8%, rgba(240, 54, 112, 0.18) 0%, rgba(240, 54, 112, 0.05) 35%, transparent 60%),
        radial-gradient(ellipse at 12% 88%, rgba(240, 54, 112, 0.10) 0%, transparent 50%),
        linear-gradient(145deg, #050508 0%, #0c0810 40%, #110710 75%, #040406 100%) !important;
}

.card-fx-dominik-gem {
    position: absolute;
    top: -20px;
    right: -16px;
    width: 44px;
    height: 56px;
    pointer-events: none;
    z-index: 30;
    opacity: 0.98;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cdefs%3E%3CradialGradient id='dgGlow' cx='50%25' cy='45%25' r='55%25'%3E%3Cstop offset='0%25' stop-color='%23ff1a53' stop-opacity='0.9'/%3E%3Cstop offset='45%25' stop-color='%23e11d48' stop-opacity='0.5'/%3E%3Cstop offset='75%25' stop-color='%23880826' stop-opacity='0.2'/%3E%3Cstop offset='100%25' stop-color='%23880826' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='dgTopLeft' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffa3b8'/%3E%3Cstop offset='40%25' stop-color='%23ff3366'/%3E%3Cstop offset='100%25' stop-color='%23e11d48'/%3E%3C/linearGradient%3E%3ClinearGradient id='dgTopRight' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ff4d79'/%3E%3Cstop offset='60%25' stop-color='%23be123c'/%3E%3Cstop offset='100%25' stop-color='%23880826'/%3E%3C/linearGradient%3E%3ClinearGradient id='dgCenterTable' x1='20%25' y1='0%25' x2='80%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ff4071'/%3E%3Cstop offset='45%25' stop-color='%23e11d48'/%3E%3Cstop offset='100%25' stop-color='%239f1239'/%3E%3C/linearGradient%3E%3ClinearGradient id='dgMidLeft' x1='0%25' y1='30%25' x2='100%25' y2='70%25'%3E%3Cstop offset='0%25' stop-color='%23ff668a'/%3E%3Cstop offset='70%25' stop-color='%23e11d48'/%3E%3Cstop offset='100%25' stop-color='%23be123c'/%3E%3C/linearGradient%3E%3ClinearGradient id='dgMidRight' x1='0%25' y1='30%25' x2='100%25' y2='70%25'%3E%3Cstop offset='0%25' stop-color='%23be123c'/%3E%3Cstop offset='70%25' stop-color='%23880826'/%3E%3Cstop offset='100%25' stop-color='%234c0519'/%3E%3C/linearGradient%3E%3ClinearGradient id='dgBotLeft' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ff2654'/%3E%3Cstop offset='50%25' stop-color='%23be123c'/%3E%3Cstop offset='100%25' stop-color='%23880826'/%3E%3C/linearGradient%3E%3ClinearGradient id='dgBotRight' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%239f1239'/%3E%3Cstop offset='50%25' stop-color='%23660018'/%3E%3Cstop offset='100%25' stop-color='%2338000d'/%3E%3C/linearGradient%3E%3ClinearGradient id='dgSilverMetal' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='30%25' stop-color='%23CCE5EA'/%3E%3Cstop offset='70%25' stop-color='%238da6ad'/%3E%3Cstop offset='100%25' stop-color='%234a6066'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='54' r='42' fill='url(%23dgGlow)'/%3E%3Cpath d='M50 8 L58 22 L68 18 L58 30 L50 20 L42 30 L32 18 L42 22 Z' fill='url(%23dgSilverMetal)' stroke='%23ffffff' stroke-width='0.75' stroke-linejoin='round'/%3E%3Cpath d='M14 50 L26 44 L24 58 L14 62 Z' fill='url(%23dgSilverMetal)' stroke='%23ffffff' stroke-width='0.75' stroke-linejoin='round'/%3E%3Cpath d='M86 50 L74 44 L76 58 L86 62 Z' fill='url(%23dgSilverMetal)' stroke='%23ffffff' stroke-width='0.75' stroke-linejoin='round'/%3E%3Cpath d='M50 102 L42 88 L50 92 L58 88 Z' fill='url(%23dgSilverMetal)' stroke='%23ffffff' stroke-width='0.75' stroke-linejoin='round'/%3E%3Cpolygon points='50,16 78,52 50,96 22,52' fill='%2320030a' opacity='0.75'/%3E%3Cpolygon points='50,18 36,36 50,38' fill='url(%23dgTopLeft)' stroke='rgba(255,255,255,0.45)' stroke-width='0.6'/%3E%3Cpolygon points='50,18 64,36 50,38' fill='url(%23dgTopRight)' stroke='rgba(255,255,255,0.3)' stroke-width='0.6'/%3E%3Cpolygon points='50,18 24,52 36,36' fill='url(%23dgMidLeft)' stroke='rgba(255,255,255,0.45)' stroke-width='0.6'/%3E%3Cpolygon points='50,18 76,52 64,36' fill='url(%23dgMidRight)' stroke='rgba(255,255,255,0.25)' stroke-width='0.6'/%3E%3Cpolygon points='50,38 64,52 50,72 36,52' fill='url(%23dgCenterTable)' stroke='rgba(255,255,255,0.55)' stroke-width='0.7'/%3E%3Cpolygon points='36,36 24,52 36,52' fill='url(%23dgMidLeft)' stroke='rgba(255,255,255,0.4)' stroke-width='0.6'/%3E%3Cpolygon points='64,36 76,52 64,52' fill='url(%23dgMidRight)' stroke='rgba(255,255,255,0.25)' stroke-width='0.6'/%3E%3Cpolygon points='24,52 50,94 36,52' fill='url(%23dgBotLeft)' stroke='rgba(255,255,255,0.35)' stroke-width='0.6'/%3E%3Cpolygon points='76,52 50,94 64,52' fill='url(%23dgBotRight)' stroke='rgba(255,255,255,0.2)' stroke-width='0.6'/%3E%3Cpolygon points='36,52 50,72 50,94' fill='%23e11d48' stroke='rgba(255,255,255,0.35)' stroke-width='0.6'/%3E%3Cpolygon points='64,52 50,72 50,94' fill='%2373031d' stroke='rgba(255,255,255,0.2)' stroke-width='0.6'/%3E%3Cpolygon points='50,22 40,35 48,36 50,24' fill='%23ffffff' opacity='0.85'/%3E%3Cpolygon points='36,40 46,50 44,52 34,42' fill='%23ffffff' opacity='0.45'/%3E%3Cg transform='translate(36, 36)'%3E%3Cpolygon points='0,-8 2,-2 8,0 2,2 0,8 -2,2 -8,0 -2,-2' fill='%23ffffff' filter='drop-shadow(0 0 3px %23ffffff)'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 10px rgba(255, 26, 83, 0.85)) drop-shadow(0 0 20px rgba(240, 54, 112, 0.45));
    animation: dominikGemPulse 3.5s ease-in-out infinite alternate;
}

@media (max-width: 720px) {
    .card-fx-dominik-gem {
        right: -12px;
        top: -16px;
        width: 36px;
        height: 46px;
    }
}

.card-fx-dominik-shards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
    z-index: 1;
}

.card-fx-dominik-shards .d-shard {
    position: absolute;
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, #ffffff 20%, #F03670 75%, transparent 100%);
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    filter: drop-shadow(0 0 6px #F03670);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: dominikShardTwinkle 3.6s ease-in-out infinite;
}

.card-fx-dominik-shards .d-shard.silver {
    background: radial-gradient(circle, #ffffff 25%, #CCE5EA 75%, transparent 100%);
    filter: drop-shadow(0 0 6px #CCE5EA);
}

.card-fx-dominik-shards .d-shard.s1 { left: 14%; top: 18%; animation-delay: 0s; }
.card-fx-dominik-shards .d-shard.s2 { left: 45%; top: 12%; animation-delay: 1.2s; width: 6px; height: 6px; }
.card-fx-dominik-shards .d-shard.s3 { left: 74%; top: 26%; animation-delay: 2.1s; width: 8px; height: 8px; }
.card-fx-dominik-shards .d-shard.s4 { left: 24%; top: 76%; animation-delay: 0.7s; width: 6px; height: 6px; }
.card-fx-dominik-shards .d-shard.s5 { left: 86%; top: 70%; animation-delay: 1.8s; width: 9px; height: 9px; }
.card-fx-dominik-shards .d-shard.s6 { left: 58%; top: 82%; animation-delay: 2.7s; }

@keyframes dominikCardGlow {
    0% {
        border-color: #CCE5EA;
        box-shadow:
            0 0 12px rgba(204, 229, 234, 0.4),
            0 0 24px rgba(240, 54, 112, 0.12),
            inset 0 0 20px rgba(0, 0, 0, 0.65),
            inset 0 0 10px rgba(240, 54, 112, 0.12);
    }
    50% {
        border-color: #e2f4f7;
        box-shadow:
            0 0 18px rgba(204, 229, 234, 0.6),
            0 0 32px rgba(240, 54, 112, 0.2),
            inset 0 0 24px rgba(0, 0, 0, 0.75),
            inset 0 0 14px rgba(240, 54, 112, 0.18);
    }
    100% {
        border-color: #CCE5EA;
        box-shadow:
            0 0 12px rgba(204, 229, 234, 0.4),
            0 0 24px rgba(240, 54, 112, 0.12),
            inset 0 0 20px rgba(0, 0, 0, 0.65),
            inset 0 0 10px rgba(240, 54, 112, 0.12);
    }
}

@keyframes dominikGemPulse {
    0% {
        transform: scale(0.97);
        filter: drop-shadow(0 0 8px rgba(255, 26, 83, 0.75)) drop-shadow(0 0 16px rgba(240, 54, 112, 0.35));
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 14px rgba(255, 26, 83, 0.95)) drop-shadow(0 0 24px rgba(240, 54, 112, 0.55)) drop-shadow(0 0 26px rgba(204, 229, 234, 0.5));
    }
    100% {
        transform: scale(0.97);
        filter: drop-shadow(0 0 8px rgba(255, 26, 83, 0.75)) drop-shadow(0 0 16px rgba(240, 54, 112, 0.35));
    }
}

@keyframes dominikShardTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.7) rotate(0deg); }
    50% { opacity: 0.95; transform: scale(1.25) rotate(45deg); }
}

/* =========================================================
   🏹 TEMA Y ESTILO LEY DE LOS CICLOS (Pase de Batalla T2)
   ========================================================= */

/* Título: rosa y dorado con un brillo que lo cruza despacio */
.user-tittle.theme-leydeciclos {
    background: linear-gradient(115deg, #6b1546 0%, #be2f6c 32%, #f9a8d4 50%, #be2f6c 68%, #6b1546 100%);
    background-size: 260% 100%;
    border: 1.5px solid #fcd34d;
    border-radius: 6px;
    padding: 2px 9px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(253, 224, 71, 0.5), 1px 1px 2px #3b0a24;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.45), inset 0 0 8px rgba(255, 255, 255, 0.16);
    animation: ldcTituloBrillo 6s linear infinite;
    position: relative;
    overflow: visible;
}

@keyframes ldcTituloBrillo {
    0% { background-position: 100% 0; }
    100% { background-position: -160% 0; }
}

/* Mensaje: luz dorada que baja desde arriba sobre un rosa profundo */
.secondary-container.style-leydeciclos {
    position: relative;
    overflow: visible;
}

.secondary-container.style-leydeciclos .message-wrapper {
    position: relative;
    overflow: visible;
    background:
        radial-gradient(ellipse at 50% -12%, rgba(254, 240, 138, 0.26) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(244, 114, 182, 0.22) 0%, transparent 55%),
        linear-gradient(160deg, #2a0a22 0%, #4a1238 45%, #6d1d4f 80%, #2a0a22 100%);
    border: 2px solid #f9a8d4;
    border-radius: 10px;
    box-shadow:
        0 0 14px rgba(244, 114, 182, 0.4),
        0 0 26px rgba(253, 224, 71, 0.12),
        inset 0 0 18px rgba(255, 228, 240, 0.12);
    color: #fff1f7;
    padding: 10px 14px;
    animation: ldcCajaBrillo 6s ease-in-out infinite alternate;
}

/* Motas de luz que suben */
.secondary-container.style-leydeciclos .message-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        radial-gradient(1.4px 1.4px at 18px 60px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.2px 1.2px at 70px 30px, rgba(253, 230, 138, 0.85), transparent),
        radial-gradient(1.6px 1.6px at 125px 70px, rgba(249, 168, 212, 0.9), transparent),
        radial-gradient(1.1px 1.1px at 185px 20px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 240px 55px, rgba(253, 230, 138, 0.8), transparent);
    background-size: 260px 80px;
    opacity: 0.5;
    animation: ldcMotasSuben 9s linear infinite;
    z-index: 1;
}

/* Emblema: gema rosa atravesada por la flecha, arriba a la derecha */
.secondary-container.style-leydeciclos .message-wrapper::before {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 38px;
    height: 38px;
    pointer-events: none;
    z-index: 25;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fce7f3'/%3E%3Cstop offset='.5' stop-color='%23ec4899'/%3E%3Cstop offset='1' stop-color='%239d174d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='16.5' fill='none' stroke='%23fcd34d' stroke-opacity='.7' stroke-width='1' stroke-dasharray='3,2'/%3E%3Ccircle cx='20' cy='20' r='12.5' fill='none' stroke='%23f9a8d4' stroke-opacity='.45' stroke-width='.8'/%3E%3Cpath d='M20 8.5 C14.5 14 13.5 18.5 20 27.5 C26.5 18.5 25.5 14 20 8.5Z' fill='url(%23g)' stroke='%23fdf2f8' stroke-width='.6'/%3E%3Ccircle cx='18.2' cy='15' r='1.5' fill='%23fff'/%3E%3Cline x1='7' y1='33' x2='31.5' y2='8.5' stroke='%23fde68a' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpolygon points='33,7 26.6,8.6 31.4,13.4' fill='%23fde68a'/%3E%3Cpath d='M7 33 l-1.5 -4.2 M7 33 l4.2 1.5' stroke='%23fde68a' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.7));
    animation: ldcEmblemaFlota 4.5s ease-in-out infinite alternate;
}

@keyframes ldcMotasSuben {
    0% { background-position: 0 0; }
    100% { background-position: 0 -80px; }
}

@keyframes ldcCajaBrillo {
    0% { border-color: #f9a8d4; box-shadow: 0 0 12px rgba(244, 114, 182, 0.35), 0 0 22px rgba(253, 224, 71, 0.08), inset 0 0 16px rgba(255, 228, 240, 0.1); }
    100% { border-color: #fcd34d; box-shadow: 0 0 20px rgba(244, 114, 182, 0.5), 0 0 30px rgba(253, 224, 71, 0.18), inset 0 0 22px rgba(255, 228, 240, 0.16); }
}

@keyframes ldcEmblemaFlota {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-3px) rotate(-5deg); }
}

/* Avatar: marco rosa con un rombo dorado */
.secondary-container.style-leydeciclos .pokemon-avatar {
    border: 2px solid #f9a8d4;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(244, 114, 182, 0.5), inset 0 0 10px rgba(157, 23, 77, 0.4);
    position: relative;
    overflow: visible;
}

.secondary-container.style-leydeciclos .pokemon-avatar::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #fcd34d;
    border: 1px solid #ffffff;
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: 0 0 8px #f472b6;
    z-index: 21;
}

/* Nombre dorado, mensaje rosa muy claro */
.secondary-container.style-leydeciclos .user-name {
    color: #fde68a;
    text-shadow: 0 0 8px rgba(244, 114, 182, 0.7), 1px 1px 2px #000;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.secondary-container.style-leydeciclos .user-message {
    color: #fff1f7;
    text-shadow: 0 0 6px rgba(249, 168, 212, 0.3), 1px 1px 2px #000;
    position: relative;
    z-index: 2;
}

/* =========================================================
   TARJETA DE PERFIL: FONDO LEY DE LOS CICLOS (PASE T2)
   ========================================================= */
.steam-profile-card.card-banner-leydeciclos {
    border: 2px solid #f472b6 !important;
    box-shadow:
        0 0 24px rgba(244, 114, 182, 0.4),
        0 0 46px rgba(253, 224, 71, 0.14),
        inset 0 0 26px rgba(190, 24, 93, 0.35) !important;
    animation: ldcTarjetaBrillo 5s ease-in-out infinite alternate;
}

.steam-profile-card.card-banner-leydeciclos:not(.has-custom-banner) {
    background:
        radial-gradient(ellipse at 50% -8%, rgba(254, 240, 138, 0.30) 0%, transparent 50%),
        radial-gradient(ellipse at 88% 90%, rgba(244, 114, 182, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 70%, rgba(190, 24, 93, 0.25) 0%, transparent 55%),
        linear-gradient(160deg, #22081c 0%, #45103a 42%, #6b1c50 76%, #1f0719 100%) !important;
}

.steam-profile-card.card-banner-leydeciclos::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        radial-gradient(1.4px 1.4px at 30px 90px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.7px 1.7px at 95px 40px, rgba(253, 230, 138, 0.9), transparent),
        radial-gradient(1.3px 1.3px at 160px 100px, rgba(249, 168, 212, 0.9), transparent),
        radial-gradient(1.8px 1.8px at 230px 25px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.3px 1.3px at 300px 75px, rgba(253, 230, 138, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 345px 110px, rgba(249, 168, 212, 0.85), transparent);
    background-size: 360px 120px;
    opacity: 0.55;
    animation: ldcMotasTarjeta 14s linear infinite;
    z-index: 0;
}

/* Rayos de luz que caen desde arriba */
.ldc-card-rayos {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
    background: repeating-conic-gradient(from 160deg at 50% -20%, rgba(254, 240, 138, 0.10) 0deg 4deg, transparent 4deg 12deg);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
    opacity: 0.8;
    animation: ldcRayos 7s ease-in-out infinite alternate;
}

.ldc-card-sigil {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 46px;
    height: 46px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fce7f3'/%3E%3Cstop offset='.5' stop-color='%23ec4899'/%3E%3Cstop offset='1' stop-color='%239d174d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='16.5' fill='none' stroke='%23fcd34d' stroke-opacity='.7' stroke-width='1' stroke-dasharray='3,2'/%3E%3Ccircle cx='20' cy='20' r='12.5' fill='none' stroke='%23f9a8d4' stroke-opacity='.45' stroke-width='.8'/%3E%3Cpath d='M20 8.5 C14.5 14 13.5 18.5 20 27.5 C26.5 18.5 25.5 14 20 8.5Z' fill='url(%23g)' stroke='%23fdf2f8' stroke-width='.6'/%3E%3Ccircle cx='18.2' cy='15' r='1.5' fill='%23fff'/%3E%3Cline x1='7' y1='33' x2='31.5' y2='8.5' stroke='%23fde68a' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpolygon points='33,7 26.6,8.6 31.4,13.4' fill='%23fde68a'/%3E%3Cpath d='M7 33 l-1.5 -4.2 M7 33 l4.2 1.5' stroke='%23fde68a' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.75));
    animation: ldcEmblemaFlota 4.5s ease-in-out infinite alternate;
}

@keyframes ldcMotasTarjeta {
    0% { background-position: 0 0; }
    100% { background-position: 0 -120px; }
}

@keyframes ldcRayos {
    0% { opacity: 0.55; }
    100% { opacity: 0.9; }
}

@keyframes ldcTarjetaBrillo {
    0% { border-color: #f472b6; box-shadow: 0 0 18px rgba(244, 114, 182, 0.35), 0 0 36px rgba(253, 224, 71, 0.1), inset 0 0 22px rgba(190, 24, 93, 0.3); }
    100% { border-color: #fcd34d; box-shadow: 0 0 28px rgba(244, 114, 182, 0.55), 0 0 50px rgba(253, 224, 71, 0.2), inset 0 0 30px rgba(190, 24, 93, 0.42); }
}

/* =========================================================
   🎄 TEMA Y ESTILO NAVIDAD (Set Navideño: Árbol de los Deseos)
   ========================================================= */

/* Título: franjas rojas y verdes que se deslizan, borde dorado y destello de nieve */
.user-tittle.theme-navidad {
    background:
        linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%),
        linear-gradient(90deg, #7f1d1d 0%, #b91c1c 30%, #15803d 70%, #14532d 100%);
    background-size: 280% 100%, 100% 100%;
    border: 1.5px solid #fbbf24;
    border-radius: 6px;
    padding: 2px 9px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(254, 243, 199, 0.6), 1px 1px 2px #1a0505;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4), 0 0 14px rgba(34, 197, 94, 0.25), inset 0 0 8px rgba(255, 255, 255, 0.18);
    animation: navTituloDestello 5s linear infinite;
    position: relative;
    overflow: visible;
}

@keyframes navTituloDestello {
    0% { background-position: 120% 0, 0 0; }
    100% { background-position: -160% 0, 0 0; }
}

/* Mensaje: noche de invierno verde pino con luces de colores en el borde */
.secondary-container.style-navidad {
    position: relative;
    overflow: visible;
}

.secondary-container.style-navidad .message-wrapper {
    position: relative;
    overflow: visible;
    background:
        radial-gradient(ellipse at 50% -15%, rgba(254, 243, 199, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(220, 38, 38, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(22, 163, 74, 0.25) 0%, transparent 50%),
        linear-gradient(165deg, #06201a 0%, #0b3b2c 45%, #14532d 80%, #06201a 100%);
    border: 2px solid #fbbf24;
    border-radius: 10px;
    box-shadow:
        0 0 14px rgba(239, 68, 68, 0.35),
        0 0 24px rgba(34, 197, 94, 0.2),
        inset 0 0 18px rgba(240, 253, 244, 0.1);
    color: #f0fdf4;
    padding: 10px 14px;
    animation: navLucesBorde 2.4s steps(1) infinite;
}

/* Nieve que cae */
.secondary-container.style-navidad .message-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        radial-gradient(1.8px 1.8px at 20px 10px, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(1.4px 1.4px at 75px 45px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 130px 20px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.3px 1.3px at 190px 60px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.7px 1.7px at 245px 35px, rgba(255, 255, 255, 0.85), transparent);
    background-size: 260px 80px;
    opacity: 0.6;
    animation: navNieveCae 7s linear infinite;
    z-index: 1;
}

/* Emblema: arbolito con la estrella dorada, arriba a la derecha */
.secondary-container.style-navidad .message-wrapper::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -14px;
    width: 36px;
    height: 40px;
    pointer-events: none;
    z-index: 25;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 40'%3E%3Cpolygon points='18,9 6,24 12,24 4,34 32,34 24,24 30,24' fill='%2316a34a' stroke='%23052e16' stroke-width='1'/%3E%3Crect x='15.5' y='34' width='5' height='4' fill='%2378350f'/%3E%3Ccircle cx='13' cy='22' r='1.8' fill='%23ef4444'/%3E%3Ccircle cx='22' cy='27' r='1.8' fill='%23fbbf24'/%3E%3Ccircle cx='11' cy='31' r='1.8' fill='%2338bdf8'/%3E%3Ccircle cx='25' cy='31.5' r='1.8' fill='%23ef4444'/%3E%3Ccircle cx='19' cy='17' r='1.5' fill='%23f472b6'/%3E%3Cpolygon points='18,1 20,6 25.5,6.2 21.2,9.4 22.8,14.6 18,11.6 13.2,14.6 14.8,9.4 10.5,6.2 16,6' fill='%23fde047' stroke='%23f59e0b' stroke-width='.6'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.7));
    animation: navArbolFlota 4s ease-in-out infinite alternate;
}

@keyframes navNieveCae {
    0% { background-position: 0 0; }
    100% { background-position: 18px 80px; }
}

@keyframes navLucesBorde {
    0% { border-color: #fbbf24; }
    25% { border-color: #ef4444; }
    50% { border-color: #22c55e; }
    75% { border-color: #38bdf8; }
}

@keyframes navArbolFlota {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-3px) rotate(4deg); }
}

/* Avatar: marco de bastón de caramelo con un gorrito */
.secondary-container.style-navidad .pokemon-avatar {
    border: 2px solid transparent;
    border-radius: 8px;
    background:
        linear-gradient(#0b3b2c, #0b3b2c) padding-box,
        repeating-linear-gradient(45deg, #ef4444 0 6px, #ffffff 6px 12px) border-box;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45), inset 0 0 10px rgba(5, 46, 22, 0.5);
    position: relative;
    overflow: visible;
}

.secondary-container.style-navidad .pokemon-avatar::after {
    content: "";
    position: absolute;
    top: -9px;
    right: -7px;
    width: 18px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M2 13 Q6 2 14 3 Q12 7 13 10 Z' fill='%23dc2626'/%3E%3Crect x='1' y='11.5' width='14' height='3.5' rx='1.7' fill='%23ffffff'/%3E%3Ccircle cx='14.5' cy='3' r='2.2' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: rotate(18deg);
    z-index: 21;
}

/* Nombre dorado, mensaje blanco nieve */
.secondary-container.style-navidad .user-name {
    color: #fde68a;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6), 1px 1px 2px #000;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.secondary-container.style-navidad .user-message {
    color: #f0fdf4;
    text-shadow: 0 0 6px rgba(187, 247, 208, 0.3), 1px 1px 2px #000;
    position: relative;
    z-index: 2;
}

/* =========================================================
   🎁 TEMA Y ESTILO PADORU (Pase de Batalla - Temporada 3)
   ========================================================= */

/* Título: Misma paleta festiva de Padoru (Rojo Santa imperial, oro y destello) */
.user-tittle.theme-padoru {
    background:
        linear-gradient(115deg, transparent 35%, rgba(254, 240, 138, 0.85) 50%, transparent 65%),
        linear-gradient(90deg, #881337 0%, #be123c 40%, #e11d48 70%, #4c0519 100%);
    background-size: 260% 100%, 100% 100%;
    border: 1.5px solid #fbbf24;
    border-radius: 6px;
    padding: 2px 9px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.9), 1px 1px 2px #200408;
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.6), inset 0 0 8px rgba(251, 191, 36, 0.4);
    animation: padoruTituloDestello 4s linear infinite;
    position: relative;
    overflow: visible;
}

@keyframes padoruTituloDestello {
    0% { background-position: 140% 0, 0 0; }
    100% { background-position: -140% 0, 0 0; }
}

/* =========================================================
   ESTILO DE CHAT PADORU
   ========================================================= */

.secondary-container.style-padoru {
    position: relative;
    overflow: visible;
}

.secondary-container.style-padoru .message-wrapper {
    position: relative;
    overflow: visible;
    background:
        radial-gradient(ellipse at 50% -15%, rgba(254, 240, 138, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 90%, rgba(225, 29, 72, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        linear-gradient(160deg, #3f0713 0%, #881337 42%, #be123c 78%, #4c0519 100%);
    border: 2px solid #fbbf24;
    border-radius: 10px;
    box-shadow:
        0 0 16px rgba(225, 29, 72, 0.45),
        0 0 28px rgba(251, 191, 36, 0.3),
        inset 0 0 20px rgba(136, 19, 55, 0.5);
    color: #ffffff;
    padding: 10px 14px;
    animation: padoruBoxGlow 3.5s ease-in-out infinite alternate;
}

@keyframes padoruBoxGlow {
    0% {
        border-color: #fbbf24;
        box-shadow: 0 0 14px rgba(245, 158, 11, 0.4), inset 0 0 16px rgba(153, 27, 27, 0.45);
    }
    100% {
        border-color: #fef08a;
        box-shadow: 0 0 26px rgba(251, 191, 36, 0.7), inset 0 0 24px rgba(190, 18, 60, 0.65);
    }
}

/* GIF de Padoru animado en la esquina del mensaje */
.secondary-container.style-padoru .message-wrapper::before {
    content: "";
    position: absolute;
    top: -22px;
    right: -18px;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 25;
    background: url("/assets/padoru.gif") center / contain no-repeat;
    animation: padoruEsquinaBounce 2s ease-in-out infinite alternate;
}

@keyframes padoruEsquinaBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* Nieve cayendo dentro de la caja */
.secondary-container.style-padoru .message-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        radial-gradient(2px 2px at 20px 15px, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(1.5px 1.5px at 80px 45px, rgba(254, 240, 138, 0.9), transparent),
        radial-gradient(2.2px 2.2px at 145px 25px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.4px 1.4px at 210px 55px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.8px 1.8px at 270px 30px, rgba(254, 240, 138, 0.9), transparent);
    background-size: 280px 80px;
    opacity: 0.7;
    animation: padoruNieveCae 7s linear infinite;
    z-index: 1;
}

@keyframes padoruNieveCae {
    0% { background-position: 0 0; }
    100% { background-position: 25px 80px; }
}

/* Avatar: Marco carmesí con gorrito navideño en la esquina */
.secondary-container.style-padoru .pokemon-avatar {
    border: 2px solid #fbbf24;
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(225, 29, 72, 0.55), inset 0 0 10px rgba(136, 19, 55, 0.6);
    position: relative;
    overflow: visible;
}

.secondary-container.style-padoru .pokemon-avatar::after {
    content: "";
    position: absolute;
    top: -10px;
    right: -8px;
    width: 22px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M6 24 C10 8, 26 10, 26 12 C24 18, 22 22, 22 24 Z' fill='%23e11d48'/%3E%3Crect x='4' y='22' width='22' height='6' rx='3' fill='%23ffffff'/%3E%3Ccircle cx='26' cy='12' r='3.5' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: rotate(15deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    z-index: 21;
}

/* Nombre dorado cálido brillante de Padoru */
.secondary-container.style-padoru .user-name {
    color: #fef08a;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.85), 1px 1px 2px #000;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.secondary-container.style-padoru .user-message {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(254, 205, 211, 0.35), 1px 1px 2px #000;
    position: relative;
    z-index: 2;
}

/* =========================================================
   🎁 TARJETA DE PERFIL PADORU: LLUVIA DE PADORUS GIRANDO
   ========================================================= */

.steam-profile-card.card-banner-padoru {
    border: 2px solid #fbbf24 !important;
    box-shadow:
        0 0 22px rgba(225, 29, 72, 0.5),
        0 0 45px rgba(251, 191, 36, 0.28),
        inset 0 0 32px rgba(136, 19, 55, 0.5) !important;
    animation: padoruCardGlow 3.8s ease-in-out infinite alternate;
}

@keyframes padoruCardGlow {
    0% {
        border-color: #fbbf24;
        box-shadow: 0 0 18px rgba(220, 38, 38, 0.45), 0 0 32px rgba(251, 191, 36, 0.22), inset 0 0 25px rgba(136, 19, 55, 0.45);
    }
    100% {
        border-color: #fef08a;
        box-shadow: 0 0 28px rgba(225, 29, 72, 0.7), 0 0 50px rgba(251, 191, 36, 0.45), inset 0 0 36px rgba(190, 18, 60, 0.65);
    }
}

/* Nieve ambiental cayendo suavemente en la tarjeta de perfil */
.steam-profile-card.card-banner-padoru::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        radial-gradient(2px 2px at 40px 30px, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(2.5px 2.5px at 120px 80px, rgba(254, 240, 138, 0.9), transparent),
        radial-gradient(1.8px 1.8px at 220px 45px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2.2px 2.2px at 340px 95px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 460px 25px, rgba(254, 240, 138, 0.9), transparent),
        radial-gradient(2.8px 2.8px at 580px 70px, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(2px 2px at 700px 35px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.6px 1.6px at 800px 90px, rgba(254, 240, 138, 0.9), transparent);
    background-size: 420px 140px;
    opacity: 0.75;
    animation: padoruNieveCaeCard 8s linear infinite;
    z-index: 1;
}

@keyframes padoruNieveCaeCard {
    0% { background-position: 0 0; }
    100% { background-position: 40px 140px; }
}

.card-fx-padoru-falling {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
    z-index: 1;
}

.card-fx-padoru-falling .padoru-fall {
    position: absolute;
    top: -70px;
    background: url("/assets/padoru.gif") center / contain no-repeat;
    pointer-events: none;
    opacity: 0.9;
    animation: padoruFallingDrift linear infinite;
}

@keyframes padoruFallingDrift {
    0% {
        transform: translateY(0) translateX(0) rotate(-5deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    88% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(620px) translateX(55px) rotate(15deg);
        opacity: 0;
    }
}

.card-fx-padoru-falling .p1 { left: 6%; width: 48px; height: 48px; animation-duration: 5.2s; animation-delay: 0s; }
.card-fx-padoru-falling .p2 { left: 22%; width: 36px; height: 36px; animation-duration: 6.8s; animation-delay: 2.1s; opacity: 0.7; }
.card-fx-padoru-falling .p3 { left: 38%; width: 54px; height: 54px; animation-duration: 4.8s; animation-delay: 1.0s; }
.card-fx-padoru-falling .p4 { left: 54%; width: 38px; height: 38px; animation-duration: 7.0s; animation-delay: 3.4s; opacity: 0.75; }
.card-fx-padoru-falling .p5 { left: 70%; width: 50px; height: 50px; animation-duration: 5.6s; animation-delay: 0.7s; }
.card-fx-padoru-falling .p6 { left: 86%; width: 42px; height: 42px; animation-duration: 6.4s; animation-delay: 2.6s; opacity: 0.8; }
.card-fx-padoru-falling .p7 { left: 30%; width: 30px; height: 30px; animation-duration: 8.2s; animation-delay: 4.2s; opacity: 0.6; }


