.ac-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0d0f1a 0%, #05060a 100%);
    z-index: 999;
    transform: scale(1.5);
}

.ac-con {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    font-size: 17px;
    background: #2a2d3a;
    padding: 12px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.ac-overlay,
.ac-con {
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.ac-hidden {
    opacity: 0;
    visibility: hidden;
}

#ac-lang-notice {
    display: none;
    align-items: center;
    gap: 12px;
    background: #1e2030;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #ffffffb0;
    text-align: left;
}

#ac-lang-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

h1#ac-heading {
    color: #fff;
    font-size: 22px;
    font-family: var(--font-head);
}

.ac-con p {
    color: #ffffffb0;
}

.ac-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 12px;
}

/* Buttons */
.ac-enter, .ac-back {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    height: 44px;
}

.ac-enter {
    background: #2d7dd2;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: none;
}

.ac-back {
    background: #ffffff;
    color: #070709;
}

/* Loader */
#ac-loader {
    display: none;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.ac-spinner {
    color: #fff;
    font-size: 7px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    animation: ac-spin 1.3s infinite linear;
    transform: translateZ(0);
}

@keyframes ac-spin {
    0%, 100% {
        box-shadow: 0 -3em 0 0.2em,
        2em -2em 0 0em, 3em 0 0 -1em,
        2em 2em 0 -1em, 0 3em 0 -1em,
        -2em 2em 0 -1em, -3em 0 0 -1em,
        -2em -2em 0 0;
    }
    12.5% {
        box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em,
        3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em,
        -2em 2em 0 -1em, -3em 0 0 -1em,
        -2em -2em 0 -1em;
    }
    25% {
        box-shadow: 0 -3em 0 -0.5em,
        2em -2em 0 0, 3em 0 0 0.2em,
        2em 2em 0 0, 0 3em 0 -1em,
        -2em 2em 0 -1em, -3em 0 0 -1em,
        -2em -2em 0 -1em;
    }
    37.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
        3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em,
        -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }
    50% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
        3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em,
        -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }
    62.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
        3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0,
        -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
    }
    75% {
        box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em,
        3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em,
        -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
    }
    87.5% {
        box-shadow: 0em -3em 0 0, 2em -2em 0 -1em,
        3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em,
        -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
    }
}

.cookie-warning {
    display: none;
    background: #0e1016;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #79ccff;
    color: #79ccff;
}
