/* Victory Overlay */
#victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#victory-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.victory-content {
    text-align: center;
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#victory-overlay.visible .victory-content {
    transform: scale(1);
}

.victory-content h1 {
    font-size: 5em;
    margin: 0;
    color: #f1c40f;
    text-shadow: 0 0 20px #f39c12, 0 0 40px #e67e22;
    animation: pulse 2s infinite;
}

.victory-content p {
    font-size: 1.5em;
    color: #fff;
    margin: 20px 0;
}

.victory-content button {
    display: block;
    margin: 20px auto;
    padding: 15px 40px;
    font-size: 1.5em;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.victory-content button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.6);
    background: linear-gradient(135deg, #f39c12, #d35400);
}

.victory-content button:active {
    transform: translateY(1px);
}

@keyframes pulse {
    0% { transform: scale(1); text-shadow: 0 0 20px #f39c12; }
    50% { transform: scale(1.05); text-shadow: 0 0 40px #f1c40f, 0 0 60px #e67e22; }
    100% { transform: scale(1); text-shadow: 0 0 20px #f39c12; }
}

.hidden {
    display: none !important;
}
