
.custom-modal-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.visible {
    display: flex !important;
    opacity: 1;
}

.custom-modal-window {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    border-radius: 24px;
    background: #1a1d29;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid #2b3040;
}

.custom-modal-overlay.visible .custom-modal-window {
    transform: scale(1);
}

.custom-modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.custom-modal-icon-wrapper.success {
    background: rgb(39 116 174 / 14%);
}

.custom-modal-title {
    margin-bottom: 15px;
    font-size: 24px;
    color: #fff;
    font-weight: 700;
}

.custom-modal-text {
    margin-bottom: 35px;
    color: #aab2c8;
    line-height: 1.6;
    font-size: 16px;
}


.success-game-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.success-game-image {
    width: 120px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.success-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-bottom: 25px;
}

.success-info-item {
    background: #0c2437;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.success-info-label {
    font-size: 12px;
    color: #7d859b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-info-value {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}


.custom-btn {
    width: 140px;
    height: 50px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-btn:hover {
    transform: translateY(-2px);
}

.custom-btn.secondary {
    background: #2b3040;
    color: #fff;
}

.custom-btn.primary {
    background-image: linear-gradient(180deg, #41c6ff, #1a64fc), linear-gradient(180deg, #79cdfd, #1a64fc);
    color: #fff;
    box-shadow: 0 4px 20px rgba(26, 100, 252, 0.4);
}

.custom-btn.success {
    background-image: linear-gradient(180deg, #41c6ff, #1a64fc), linear-gradient(180deg, #79cdfd, #1a64fc);

    color: #fff;
    box-shadow: 0 4px 20px rgb(39 116 174 / 40%);
    width: 100%;
}