:root {
    color-scheme: light;
    --overlay: rgba(26, 20, 15, 0.5);
    --panel: rgba(255, 248, 240, 0.9);
    --panel-border: rgba(255, 255, 255, 0.45);
    --text-main: #2a1f18;
    --text-muted: rgba(42, 31, 24, 0.82);
    --shadow: 0 22px 70px rgba(25, 18, 12, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    color: var(--text-main);
    background: #f3ece4;
}

.background-container,
.background-container picture,
.background-image,
.overlay {
    position: fixed;
    inset: 0;
}

.background-container {
    z-index: 0;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.02);
}

.overlay {
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 36%),
        linear-gradient(180deg, rgba(36, 24, 17, 0.18), var(--overlay));
}

.popup {
    width: min(100%, 480px);
    padding: 32px 28px;
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    text-align: center;
    backdrop-filter: blur(12px);
}

.popup h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.popup p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.popup p + p {
    margin-top: 14px;
}

.terms {
    font-weight: 600;
}

.buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
}

.buttons button {
    min-width: 132px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    color: #102333;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    box-shadow: 0 12px 30px rgba(44, 34, 27, 0.16);
}

.buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(44, 34, 27, 0.2);
}

.buttons button:focus-visible {
    outline: 3px solid rgba(16, 35, 51, 0.45);
    outline-offset: 3px;
}

.buttons button:active {
    transform: translateY(0);
    opacity: 0.96;
}

@media (max-width: 768px) {
    .overlay {
        padding: 18px;
    }

    .popup {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .popup h2 {
        font-size: 1.85rem;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons button {
        width: 100%;
    }
}
