@keyframes popupOddsIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -42%) scale(.94);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupOddsFlash {
    0%, 100% { opacity: .35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

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

.center_popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    background: linear-gradient(165deg, #18263c 0%, #0a1220 100%);
    border: 1px solid rgba(0, 150, 255, .45);
    border-radius: 4px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .6), 0 0 30px rgba(0, 150, 255, .12);
    display: block;
    z-index: 40;
    overflow: hidden;
    height: min(440px, 88vh);
    animation: popupOddsIn .42s cubic-bezier(.22, 1.1, .36, 1) forwards;
}

.center_popup__odds-flash {
    position: absolute;
    top: 14px;
    right: 52px;
    z-index: 3;
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.center_popup__odds-flash span {
    font-size: 12px;
    font-weight: 900;
    color: var(--ol-up, #1ecb7a);
    background: rgba(30, 203, 122, .12);
    border: 1px solid rgba(30, 203, 122, .35);
    padding: 3px 8px;
    border-radius: 2px;
    font-variant-numeric: tabular-nums;
    animation: popupOddsFlash 1.8s ease-in-out infinite;
}

.center_popup__odds-flash span:nth-child(2) { animation-delay: .2s; color: #fff; border-color: rgba(0, 150, 255, .4); background: rgba(0, 150, 255, .12); }
.center_popup__odds-flash span:nth-child(3) { animation-delay: .4s; color: var(--ol-down, #ff5a6a); border-color: rgba(255, 90, 106, .35); background: rgba(255, 90, 106, .1); }

.center_popup__kicker {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    color: #fff;
    background: var(--ol-blue, #0096ff);
    padding: 5px 10px;
    border-radius: 2px;
}

.center_popup__arrow {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: var(--ol-up, #1ecb7a);
    text-shadow: 0 0 18px rgba(30, 203, 122, .5);
    animation: popupArrowBounce 1.6s ease-in-out infinite;
}

.center_popup__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 16px;
    width: 100%;
}

.center_popup__text { width: 100%; }

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

.center_popup__note {
    font-size: 12px;
    color: var(--ol-muted, #8496ad);
    margin: 0;
}

.center_popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 3px;
    color: rgba(255, 255, 255, .8);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: .2s;
}

.center_popup .close-btn:hover {
    background: rgba(0, 150, 255, .35);
    color: #fff;
    border-color: rgba(0, 150, 255, .55);
}

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

@media (max-width: 767px) {
    .center_popup:not(.center_popup--fullscreen) {
        width: calc(100% - 28px);
        height: min(400px, 86vh);
    }
    .center_popup-content { padding: 42px 18px 22px; }
    .center_popup__odds-flash { display: none; }
}

.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: 16px;
    width: calc(100% - 32px);
}

.center_popup-content p.big span,
.center_popup-content p.mid [data-text] {
    position: relative;
    background: linear-gradient(180deg, #33adff 0%, #0070c9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.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, #8fd0ff 0%, #0096ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.center_popup-content p.big {
    font-weight: 700;
    font-size: 28px;
    line-height: 34px;
    color: #fff;
    margin-bottom: auto;
}

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

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

.center_popup-content p.mid {
    font-weight: 600;
    font-size: 17px;
    line-height: 24px;
    color: #fff;
    margin: 0 0 14px;
    text-transform: none;
}

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

.center_popup-content p.mid .extra {
    font-weight: 900;
    font-size: 38px;
    line-height: 42px;
    margin-top: 4px;
    color: var(--ol-blue-bright, #33adff);
}

.center_popup-content p.small {
    font-size: 12px;
    color: var(--ol-muted, #8496ad);
    margin: 8px 0;
    text-transform: none;
}

.center_popup-content .button--site-style {
    filter: drop-shadow(0 0 12px rgba(0, 150, 255, .4));
    font-size: 17px;
    min-width: 240px;
    border-radius: 3px;
}

.center_popup-content .button--site-style:hover {
    filter: drop-shadow(0 0 18px rgba(51, 173, 255, .55));
}

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

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 18, .9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 36;
    transition: opacity .3s ease, visibility .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: #000;
    z-index: 50;
    animation: none;
}

.center_popup--fullscreen .center_popup__odds-flash,
.center_popup--fullscreen .center_popup__kicker { display: none; }

.center_popup--fullscreen .close-btn {
    opacity: .18;
    top: 12px;
    right: 12px;
    z-index: 3;
}
.center_popup--fullscreen .close-btn:hover { opacity: .45; }

.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;
}

.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;
    margin: 0;
}

.center_popup--fullscreen .popup-banner-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    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--fullscreen .popup-banner-media.popup-banner-desktop:not(.popup-banner-mobile) { display: none; }
    .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; }
