.victory-overlay {
    position: fixed;
    padding: 2rem;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(20px);
}

.victory-overlay-show {
    opacity: 1;
}

.victory-popup {
    position: relative;
    z-index: 2;
    background: #fff8d7;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8) translateY(-30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.victory-popup-show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.victory-title {
    margin-top: -4rem;
    margin-bottom: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    height: 4rem;
    line-height: 4rem;
    padding: 0 1rem;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff !important;
    border-radius: 1rem;
}

.victory-image {
    margin: 2rem 0;
}

.victory-image img {
    max-width: 70%;
    display: block;
    margin: 0 auto;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.victory-stats-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.victory-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1;
}

.victory-stat-row.bonus {
    color: #4caf50;
}

.victory-stat-row.perfect {
    color: #ff9800;
}

.victory-divider {
    margin: 0.75rem 0;
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.victory-total-score {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 3px solid #e91e63;
}

.victory-simple-msg {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    color: #333;
}

.victory-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}