/* assets/css/modals/modal-gameover.css */

/* Acto 1: Foco de Victoria */
#budi-victory-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 10%, rgba(0,0,0,0.8) 50%);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}
#budi-victory-spotlight.is-active {
    opacity: 1;
}

/* Acto 3: Modal de Victoria */
.modal--gameover .modal__content {
    flex-direction: row;
    max-width: 85vw;
    max-height: 90vh;
    width: auto;
    background: #1a202c;
    color: white;
    border: 2px solid #ecc94b;
    box-shadow: 0 0 30px rgba(236, 201, 75, 0.6);
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.modal--gameover .gameover-visual-col {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #422d03, #1a1502);
}

/* ===== INICIO DE LA MODIFICACIÓN ===== */
#budi-gameover-pet-image {
    width: 80%;
    object-fit: contain;
    z-index: 2;
    /* La propiedad 'filter' ahora es controlada por la animación */
    animation: gameover-pulsing-glow 2s ease-in-out infinite;
}

@keyframes gameover-pulsing-glow {
    0%, 100% {
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4)) drop-shadow(0 0 15px rgba(236, 201, 75, 0.5));
    }
    50% {
        filter: drop-shadow(0 5px 25px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(236, 201, 75, 1));
    }
}
/* ===== FIN DE LA MODIFICACIÓN ===== */

.modal--gameover .gameover-text-col {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: clamp(20px, 4vh, 40px);
}

.modal--gameover .modal__title {
    color: #ecc94b;
    font-size: clamp(2rem, 8vh, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #ecc94b, 0 0 20px #000;
}

.modal--gameover .modal__text {
    font-size: clamp(0.9rem, 2.5vh, 1.1rem);
    opacity: 0.9;
    max-width: 450px;
    margin: 2vh auto;
}

.modal--gameover .modal__footer {
    margin-top: 2vh;
}

#budi-gameover-claim-btn {
    width: auto;
    padding: clamp(12px, 2.5vh, 20px) clamp(20px, 4vw, 35px);
    font-size: clamp(0.9rem, 2.8vh, 1.2rem);
    background: linear-gradient(145deg, #f0c540, #d4a11a);
    color: #422d03;
    border: 2px solid #fff8e1;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    animation: button-pulse 2s infinite ease-in-out;
}

@keyframes button-pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(236, 201, 75, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(236, 201, 75, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(236, 201, 75, 0.4); }
}

/* Las reglas .gameover-rays-container, .ray y @keyframes rotate-ray han sido eliminadas */