html.auth-pending body > *:not(#gam-auth-gate) {
    display: none !important;
}

#gam-auth-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #0f172a;
    font-family: 'Source Serif 4', Georgia, serif;
    color: #f1f5f9;
}

#gam-auth-gate .auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem 2.25rem;
    border: 1px solid #334155;
    background: #1e293b;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

#gam-auth-gate .auth-eyebrow {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #14b8a6;
    margin-bottom: 0.75rem;
}

#gam-auth-gate h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

#gam-auth-gate p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

#gam-auth-gate label {
    display: block;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

#gam-auth-gate input[type="password"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #334155;
    background: #0f172a;
    color: #f1f5f9;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    margin-bottom: 1rem;
}

#gam-auth-gate input[type="password"]:focus {
    outline: none;
    border-color: #14b8a6;
}

#gam-auth-gate button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: #14b8a6;
    color: #0f172a;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

#gam-auth-gate button:hover {
    background: #0d9488;
}

#gam-auth-gate .auth-error {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #f87171;
    min-height: 1.25rem;
}

#gam-auth-gate .auth-back {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #14b8a6;
    text-decoration: none;
}

#gam-auth-gate .auth-back:hover {
    color: #5eead4;
}
