/*
 * Leeftijdspopup. Gebruikt de theme-variabelen van Webstart (global.css + theme.css),
 * met fallbacks zodat de popup ook zonder theme leesbaar blijft.
 */

.agegate {
    position: fixed;
    inset: 0;
    z-index: 99000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow-y: auto;

    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.agegate[hidden] {
    display: none;
}

body.has-agegate {
    overflow: hidden;
}

.agegate__card {
    width: 100%;
    max-width: 520px;
    margin: auto;
    padding: clamp(28px, 6vw, 50px);
    text-align: center;

    background: var(--defaultBackground, #fff);
    color: var(--primaryTextColor, #535658);
    font-family: var(--primaryTextFont, sans-serif);
    font-weight: var(--primaryTextWeight, 400);
    border-radius: var(--borderRadius, 4px);
    box-shadow: 0 0 90px 0 rgba(3, 34, 71, .08);

    animation: agegate-in .25s ease-out;
}

.agegate__title {
    margin: 0 0 .5em;
}

.agegate__text {
    margin: 0 0 1.75em;
    line-height: 1.5;
}

.agegate__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.agegate__buttons > * {
    flex: 1 1 200px;
}

/* Beide knoppen komen uit global.css: .button (knop A) en .button--ghost (outline). */

.agegate__yes:focus-visible,
.agegate__no:focus-visible {
    outline: 2px solid var(--primaryColor, #0071ff);
    outline-offset: 3px;
}

@keyframes agegate-in {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .agegate__card { animation: none; }
}
