/* assets/css/modals/modal-loss.css */

.modal--loss .modal__content {
    flex-direction: column;
    max-width: 500px;
    width: 90vw;
    background: #2d3748;
    color: white;
    border: 2px solid #818cf8;
    box-shadow: 0 0 25px rgba(129, 140, 248, 0.5);
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.modal--loss .loss-visual-col {
    background: radial-gradient(ellipse at center, #422d03, #1a1502);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(15px, 3vh, 25px);
    box-sizing: border-box;
}

.modal--loss .loss-visual-col img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    animation: prize-found-glow 3s ease-in-out infinite;
}

.modal--loss .loss-text-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: clamp(15px, 3vh, 30px);
    gap: clamp(10px, 1.5vh, 15px);
    flex-grow: 1;
}

.modal--loss .modal__title {
    color: #fde047;
    font-size: clamp(1.4rem, 4vh, 2rem);
}

.modal--loss .loss-reason {
    font-size: clamp(0.9rem, 2.4vh, 1.1rem);
    font-weight: bold;
    color: #fca5a5;
    background-color: rgba(0,0,0,0.2);
    padding: 0.5em;
    border-radius: 6px;
    margin: 0;
}

.modal--loss .modal__text {
    font-size: clamp(0.75rem, 1.9vh, 0.9rem);
    line-height: 1.6;
    opacity: 0.9;
    overflow-y: auto;
    flex-grow: 1;
}

.modal--loss .modal__footer {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    margin-top: auto;
    padding-top: 1.5vh;
}

.modal--loss .modal__footer .btn {
    flex: 1;
    font-size: clamp(0.8rem, 2.2vh, 1rem);
    padding: clamp(10px, 2vh, 15px);
}

@keyframes prize-found-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(253, 224, 71, 0.8));
    }
}

@media (orientation: landscape) {
    .modal--loss .modal__content {
        flex-direction: row;
        width: 90vw; 
        max-width: 850px; 
        height: 80vh; 
        max-height: 550px; 
        margin: auto;
        align-items: center;
    }

    .modal--loss .loss-visual-col {
        /* ===== INICIO DE LA MODIFICACIÓN ===== */
        flex: 0 0 45%; /* Ajustado de 40% a 45% */
        /* ===== FIN DE LA MODIFICACIÓN ===== */
        align-self: stretch;
        padding: 2vh;
        position: relative;
    }

    .modal--loss .loss-visual-col .loss-reason {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        z-index: 2;
        text-align: center;
    }

    .modal--loss .loss-visual-col img {
        max-width: 90%;
        max-height: 50vh;
    }

    .modal--loss .loss-text-col {
        /* ===== INICIO DE LA MODIFICACIÓN ===== */
        flex: 1 1 55%; /* Ajustado de 60% a 55% */
        /* ===== FIN DE LA MODIFICACIÓN ===== */
        flex-grow: 0;
    }

    .modal--loss .loss-text-col .loss-reason {
        display: none;
    }
}