/* Responsible gambling warnings — loaded only on pages with the feature enabled.
   --vmg-rg-bg / --vmg-rg-accent are set from the site's secondary / CTA colours (setup.php). */

:root {
    --vmg-rg-bg: #16112b;
    --vmg-rg-accent: #22c55e;
    --vmg-rg-badge: #facc15;
}

.vmg-rg-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

/* ---- Centred banner ---- */
.vmg-rg-banner {
    position: fixed;
    inset: 0;
    /* Above page content and Elementor popups (9999), below the age gate (99999999). */
    z-index: 99999990;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: inherit;
}

.vmg-rg-banner.is-open {
    display: flex !important;
}

.vmg-rg-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 15, 0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: vmgRgFade 0.25s ease-out;
}

.vmg-rg-banner__box {
    position: relative;
    box-sizing: border-box;
    width: min(92vw, 640px);
    /* min 30vh x >=92vw (mobile) / 640px (desktop) keeps the box well above 15% of the viewport. */
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 44px 28px 32px;
    background: var(--vmg-rg-bg);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    color: #ffffff;
    border-radius: 20px;
    border-top: 5px solid var(--vmg-rg-accent);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    animation: vmgRgPop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.vmg-rg-banner__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--vmg-rg-badge);
    color: var(--vmg-rg-badge);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.vmg-rg-banner__title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
}

.vmg-rg-banner__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.vmg-rg-banner__text .vmg-rg-main {
    font-size: clamp(1.3rem, 4.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    max-width: 30ch;
}

.vmg-rg-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.vmg-rg-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.vmg-rg-chip a {
    text-decoration: none;
    color: var(--vmg-rg-badge);
}

.vmg-rg-banner__x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.vmg-rg-banner__x:hover {
    background: rgba(255, 255, 255, 0.22);
}

.vmg-rg-banner__button {
    margin-top: 4px;
    min-width: 200px;
    background: var(--vmg-rg-accent);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.vmg-rg-banner__button:hover {
    transform: translateY(-1px) scale(1.02);
}

.vmg-rg-banner__box {
    overflow: hidden;
}

.vmg-rg-banner__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: var(--vmg-rg-accent);
    opacity: 0.85;
    transform-origin: left center;
    transform: scaleX(1);
}

.vmg-rg-banner__progress.is-running {
    animation-name: vmgRgCountdown;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes vmgRgCountdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

html.vmg-rg-banner-open,
html.vmg-rg-banner-open body {
    overflow: hidden;
}

@keyframes vmgRgFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vmgRgPop {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .vmg-rg-banner__overlay,
    .vmg-rg-banner__box {
        animation: none;
    }
}

/* ---- Signup popup strip ---- */
.vmg-rg-strip {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--vmg-rg-bg);
    border-top: 3px solid var(--vmg-rg-accent);
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
    font-family: inherit;
}

.vmg-rg-strip .vmg-rg-main {
    font-size: 15px;
    font-weight: 800;
}

.vmg-rg-strip .vmg-rg-meta {
    gap: 6px;
}

.vmg-rg-strip .vmg-rg-chip {
    padding: 3px 10px;
    font-size: 11px;
}

/* ---- Under each offer ---- */
.vmg-rg-offer {
    margin-top: 6px;
    padding: 0 16px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .vmg-rg-offer {
        font-size: 13px;
        padding: 0 40px;
    }
}

/* ---- Footer ---- */
.vmg-rg-footer-wrap {
    margin: 16px auto;
}

.vmg-rg-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 0 16px;
}

.vmg-rg-footer-links a {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s;
}

.vmg-rg-footer-links a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.vmg-rg-footer {
    margin: 0 auto;
    padding: 0 16px;
    max-width: 900px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
