.center_popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    background: linear-gradient(160deg, #1d4268 0%, #0f1e32 50%, #1a3050 100%);
    background-position: center center;
    background-size: cover;
    border: 2px solid var(--color-1xbet-green, #7eac2f);
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(126, 172, 47, .2),
                0 8px 40px rgba(0, 0, 0, .6),
                0 0 60px rgba(126, 172, 47, .15);
    display: block;
    z-index: 40;
    font-weight: 500;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -.03em;
    overflow: hidden;
    height: min(480px, 88vh);
}

.center_popup__ribbon {
    position: absolute;
    top: 18px;
    left: -32px;
    background: var(--color-1xbet-green, #7eac2f);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 5px 40px;
    transform: rotate(-35deg);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.center_popup__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 16px;
    padding: 10px 0;
}

.center_popup__icon {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4));
    animation: popupIconBounce 2s ease-in-out infinite;
}

@keyframes popupIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.center_popup__text {
    width: 100%;
}

.center_popup__action {
    width: 100%;
    max-width: 360px;
}

.center_popup__note {
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: rgba(255, 255, 255, .6);
    margin: 0;
    text-transform: none;
}

@media (max-width: 767px) {
    .center_popup:not(.center_popup--fullscreen) {
        width: calc(100% - 40px);
        height: min(350px, 80vh);
    }
}

.center_popup .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #FFF;
    cursor: pointer;
    z-index: 4;
    line-height: 1;
    transition: background .2s, border-color .2s;
}

.center_popup .close-btn:hover {
    background: rgba(208, 94, 14, .6);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.center_popup-content {
    padding: 48px 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.center_popup-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-1xbet-green, #7eac2f) 0%, #ff0 50%, var(--color-1xbet-green, #7eac2f) 100%);
}

@media (max-width: 767px) {
    .center_popup-content {
        padding: 30px 16px 20px
    }
}

.center_popup-content > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1
}

.center_popup-content p {
    text-transform: uppercase
}

.center_popup-content .button-primary {
    margin-inline: 20px;
    width: calc(100% - 40px);
}

.center_popup-content p.big span,
.center_popup-content p.mid [data-text] {
    position: relative;
    background: linear-gradient(180deg, #7eac2f 0%, #4a7a15 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3px transparent;
    paint-order: stroke fill;
    text-shadow: none
}

.center_popup-content p.big span::after,
.center_popup-content p.mid [data-text]::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #FFF83D 0%, #F9D821 50%, #FBA109 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0 transparent;
    text-shadow: none
}

.center_popup-content p.big {
    font-weight: 700;
    font-size: 32px;
    line-height: 38px;
    color: #FFF;
    margin-bottom: auto;
    -webkit-text-stroke: 3px #000;
    paint-order: stroke fill;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

@media (max-width: 767px) {
    .center_popup-content p.big {
        font-size: 18px;
        line-height: 22px;
    }
}

.center_popup-content p.big span {
    display: block;
    font-weight: 900;
    font-size: 52px;
    line-height: 56px;
}

@media (max-width: 767px) {
    .center_popup-content p.big span {
        font-size: 28px;
        line-height: 32px;
    }
}

.center_popup-content p.mid {
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #FFF;
    -webkit-text-stroke: 3px #000;
    paint-order: stroke fill;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
    margin: 0 0 20px 0;
    text-transform: none;
}

@media (max-width: 767px) {
    .center_popup-content p.mid {
        font-size: 14px;
        line-height: 18px;
    }
}

.center_popup-content p.mid .mid-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap
}

.center_popup-content p.mid [data-text] {
    margin: 0 4px 0 4px;
    font-weight: 900;
    font-size: 28px;
}

@media (max-width: 767px) {
    .center_popup-content p.mid [data-text] {
        font-size: 22px
    }
}

.center_popup-content p.mid .extra {
    font-weight: 900;
    font-size: 48px;
    line-height: 52px;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .center_popup-content p.mid .extra {
        font-size: 32px;
        line-height: 36px;
    }
}

.center_popup-content p.small {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #FFF;
    margin: 12px 0;
    text-transform: none;
    -webkit-text-stroke: 1px #000;
    paint-order: stroke fill;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    opacity: 1;
}

@media (max-width: 767px) {
    .center_popup-content p.small {
        font-weight: 600;
        font-size: 12px;
        line-height: 16px;
    }
}

.center_popup-content .button--site-style {
    filter: drop-shadow(0 0 6px rgba(126, 172, 47, .6)) drop-shadow(0 0 14px rgba(126, 172, 47, .3));
    font-size: 20px;
    min-width: 280px;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .center_popup-content .button--site-style {
        font-size: 16px;
        min-width: 220px;
    }
}

.center_popup-content .button--site-style:hover {
    filter: drop-shadow(0 0 8px rgba(126, 172, 47, .8)) drop-shadow(0 0 20px rgba(126, 172, 47, .4))
}

#center_popup-trigger {
    display: none
}

#center_popup-trigger:not(:checked) ~ .center_popup {
    display: none
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 30, 50, .85) 0%, rgba(0, 0, 0, .8) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 36;
    transition: opacity 0.3s ease, visibility 0.3s ease
}

#center_popup-trigger:checked ~ .overlay {
    opacity: 1;
    visibility: visible
}

.center_popup.center_popup--fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: none;
    background-color: #000;
    z-index: 50
}

.center_popup--fullscreen .close-btn {
    opacity: .12;
    color: #fff;
    font-size: 40px;
    top: 12px;
    right: 12px;
    text-shadow: none;
    z-index: 3
}

.center_popup--fullscreen .close-btn:hover {
    opacity: .35;
    color: #fff
}

.center_popup--fullscreen .center_popup-content {
    padding: 0;
    justify-content: center;
    gap: 0;
    position: relative
}

.center_popup--fullscreen .center_popup-banner-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer
}

.center_popup--fullscreen .popup-banner-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0
}

.center_popup--fullscreen .popup-banner-media p {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0
}

.center_popup--fullscreen .popup-banner-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block
}

@media (min-width: 768px) {
    .center_popup--fullscreen .popup-banner-media.popup-banner-mobile:not(.popup-banner-desktop) {
        display: none
    }
}

@media (max-width: 767px) {
    .center_popup.center_popup--fullscreen {
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        max-height: none
    }

    .center_popup--fullscreen .center_popup-content {
        height: 100%;
        min-height: 100dvh
    }

    .center_popup--fullscreen .popup-banner-media {
        width: 100%;
        height: 100%;
        min-height: 100%
    }

    .center_popup--fullscreen .popup-banner-media.popup-banner-desktop:not(.popup-banner-mobile) {
        display: none
    }

    .center_popup--fullscreen .popup-banner-media.popup-banner-mobile:not(.popup-banner-desktop) {
        display: block
    }

    .center_popup--fullscreen .center_popup-banner-action {
        bottom: 20px;
        width: calc(100% - 40px)
    }
}

.center_popup--fullscreen .center_popup-banner-action {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 2
}

body.center-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    touch-action: none
}

body.center-popup-open .overlay {
    touch-action: none
}
