/* Animation de Fin - Style Pastel Abstrait Manga */

.ending-modal {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px; /* Contrainte PC */
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    animation: fadeIn 0.5s ease-out;
}

.ending-content {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5, #e8f5e9);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 95%; /* Contrainte contenu */
    width: 100%;
}

#endingCanvas {
    display: block;
    border-radius: 15px;
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Canvas adaptatif */
    height: auto;
    width: 100%;
}

.ending-skip {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6b9d, #ba68c8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.ending-skip:hover {
    background: linear-gradient(135deg, #ff8cb1, #ce7de0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
