.center_popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    background: url(../images/bg.avif) center center;
    background-size: cover;
    border: 2px solid color-mix(in srgb, var(--color-accent) 50%, transparent);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    display: block;
    z-index: 40;
    overflow: hidden;
    height: min(450px, 85vh);

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

.center_popup .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #FFF;
    cursor: pointer;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.center_popup .close-btn:hover {
    color: var(--color-accent-2);
}

.center_popup-content {
    padding: 40px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;

    @media (max-width: 767px) {
        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;
}

/* Gold gradient text — stroke layer (shared) */
.center_popup-content p.big span,
.center_popup-content p.mid [data-text] {
    position: relative;
    background: linear-gradient(180deg, #C23222 0%, #570100 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;
}

/* Gold gradient text — fill overlay */
.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, #FEFA47 0%, #FFF83D 44.23%, #F9D821 60.58%, #FBA109 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0px transparent;
    text-shadow: none;
}

.center_popup-content p.big {
    font: 700 32px/38px 'Font-Base', Arial, Helvetica, sans-serif;
    color: #FFF;
    margin-bottom: auto;
    -webkit-text-stroke: 3px #000;
    paint-order: stroke fill;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);

    @media (max-width: 767px) {
        font: 700 18px/22px 'Font-Base', Arial, Helvetica, sans-serif;
    }
}

.center_popup-content p.big span {
    display: block;
    font: 900 52px/56px 'Font-Base', Arial, Helvetica, sans-serif;

    @media (max-width: 767px) {
        font: 900 28px/32px 'Font-Base', Arial, Helvetica, sans-serif;
    }
}

.center_popup-content p.mid {
    font: 600 20px/28px 'Font-Base', Arial, Helvetica, sans-serif;
    color: #FFF;
    -webkit-text-stroke: 3px #000;
    paint-order: stroke fill;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
    margin: 0 0 20px 0;
    text-transform: none;

    @media (max-width: 767px) {
        font: 600 14px/18px 'Font-Base', Arial, Helvetica, sans-serif;
    }
}

.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) {
        font-size: 22px;
    }
}

.center_popup-content p.mid .extra {
    font: 900 48px/52px 'Font-Base', Arial, Helvetica, sans-serif;
    margin-top: 4px;

    @media (max-width: 767px) {
        font: 900 32px/36px 'Font-Base', Arial, Helvetica, sans-serif;
    }
}

.center_popup-content p.small {
    font: 400 14px/18px 'Font-Base', Arial, Helvetica, sans-serif;
    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,0.5);
    opacity: 1;

    @media (max-width: 767px) {
        font: 600 12px/16px 'Font-Base', Arial, Helvetica, sans-serif;
    }
}

.center_popup-content .button--site-style {
    filter: drop-shadow(0 0 6px #FFF83D) drop-shadow(0 0 14px #FFF83D) drop-shadow(0 0 28px rgba(255, 248, 61, 0.45));
    font-size: 22px;
    min-width: 280px;

    @media (max-width: 767px) {
        font-size: 16px;
    }
}

.center_popup-content .button--site-style:hover {
    filter: drop-shadow(0 0 8px #FFF83D) drop-shadow(0 0 18px #FFF83D) drop-shadow(0 0 36px rgba(255, 248, 61, 0.55));
}

#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-color: rgba(0, 0, 0, 0.75);
    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;
}
