/* --- ESTILOS DORADOS V1.0 --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: transparent;
    margin: 0;
    padding: 20px;
    overflow: hidden;
}

/* --- Contenedor Principal de Alerta --- */
.cool-alert-container {
    position: fixed;
    top: 50px; /* Valor por defecto. Se actualiza vía JS */
    left: 50%;
    width: 600px;
    max-width: 90%;
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    border: 2px solid #d4af37; /* Borde dorado */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.5);
    color: #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50px) translateX(-50%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0.5s;
    z-index: 1000;
}

.cool-alert-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

.cool-alert-content {
    display: flex;
    align-items: center;
    padding: 20px;
}

/* --- Icono de la Alerta --- */
.cool-alert-icon {
    font-size: 48px;
    margin-right: 20px;
    text-shadow: 0 0 10px rgba(255, 223, 0, 0.8);
}

/* --- Texto de la Alerta --- */
.cool-alert-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cool-alert-text p {
    margin: 0;
    padding: 2px 0;
}

.cool-main-message {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffd700; /* Dorado */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.cool-follower-name {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 5px 0 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

.cool-sub-message {
    font-size: 16px;
    color: #cccccc;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    transition-delay: 0.2s; /* Pequeño retraso para aparecer después del nombre */
}

.cool-sub-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilos para el efecto de escritura --- */
.typing::after {
    content: '_';
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Variaciones por tipo de alerta --- */
.subscriber-alert {
    border-color: #c0c0c0; /* Plata para subs */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(192, 192, 192, 0.5);
}
.subscriber-alert .cool-main-message { color: #e0e0e0; }
.subscriber-alert .cool-follower-name { text-shadow: 0 0 8px rgba(192, 192, 192, 0.7); }

.cheer-alert {
    border-color: #8a2be2; /* Azul-violeta para bits */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(138, 43, 226, 0.5);
}
.cheer-alert .cool-main-message { color: #b388ff; }
.cheer-alert .cool-follower-name { text-shadow: 0 0 8px rgba(138, 43, 226, 0.7); }
.cheer-alert .cheer-amount-message { font-weight: bold; color: #ffffff; }

.raid-alert {
    border-color: #b22222; /* Rojo fuego para raids */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(178, 34, 34, 0.5);
}
.raid-alert .cool-main-message { color: #ff6b6b; }
.raid-alert .cool-follower-name { text-shadow: 0 0 8px rgba(178, 34, 34, 0.7); }