/* === overlay.css === */
/* Style pour Overlay - Palette Judge Anderson / Mega-City One */

#access-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 8, 0.88);
    z-index: 9998;
}

#access-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Courier New', monospace;
    background: #1C1A18;
    color: #C8B97A;
    border: 2px solid #E8732A;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 9999;
    box-shadow: 0 0 25px rgba(217, 22, 111, 0.5), 0 0 60px rgba(232, 115, 42, 0.2);
    text-align: left;
}

#access-modal button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: #2C1A10;
    color: #E8732A;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease;
}

#access-modal button:hover {
    background: #D9166F;
    color: #1C1A18;
}

#access-modal a {
    color: #E8732A;
    padding: 0 2px;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

#access-modal a:hover {
    color: #C8B97A;
    background-color: #2C1208;
    text-decoration: underline;
}

/* === Petits mobiles (< 480px) === */
@media (max-width: 480px) {
    #access-modal {
        padding: 16px;
        font-size: 14px;
    }

    #access-modal button {
        font-size: 14px;
        padding: 10px 16px;
        max-width: 100%;
    }
}

/* === Tablettes (481px – 768px) === */
@media (min-width: 481px) and (max-width: 768px) {
    #access-modal {
        padding: 20px;
        font-size: 15px;
    }
}

/* === Grands écrans (> 1200px) === */
@media (min-width: 1200px) {
    #access-modal {
        max-width: 680px;
    }
}
