/* ===================== Login (LenormandX API) ===================== */

button {
    padding: 9px 9px;
    background: #d4af37;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

/* Gate: bloqueia o jogo ate o login ser validado (invisivel ao usuario) */
#lx-login-gate {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500; /* abaixo de .popup (2000), acima do jogo/menu/footer */
    background: transparent;
}

#lx-login-gate.ativo {
    display: block;
}

.popup.login-popup {
    max-width: 340px;
    width: calc(100% - 48px);
    gap: 6px;
}

.popup.login-popup h3 {
    margin: 0 0 8px;
    color: #d4af37;
}

.popup.login-popup .lx-label {
    align-self: flex-start;
    font-size: 13px;
    color: #c87d4a;
    margin-top: 4px;
}

.popup.login-popup input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(26, 15, 46, 0.85);
    color: #F3F1ED;
    font-family: 'Inter', 'Arial', sans-serif;
    font-size: 14px;
    outline: none;
}

.popup.login-popup input:focus {
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.popup.login-popup .login-status {
    min-height: 18px;
    font-size: 13px;
    color: #a8d5a2;
    margin-top: 6px;
    white-space: normal;
    text-align: center;
}

.popup.login-popup .login-status.erro {
    color: #f28c5f;
}

.popup.login-popup .login-botoes {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.popup.login-popup .lx-cadastro {
    display: none;
    width: 100%;
    flex-direction: column;
}

.popup.login-popup .lx-cadastro.aberto {
    display: flex;
}

.lx-login-fab {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1600;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(12, 10, 16, 0.85);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.lx-login-fab:hover { border-color: #d4af37; }
/* lx-popup-base */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(12, 10, 16, 0.92);
    padding: 24px;
    padding-top: 40px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    z-index: 2000;
    color: #F3F1ED;
    text-align: center;
    max-width: min(80vw, 420px);
    box-sizing: border-box;
    border: 1px solid rgba(212, 175, 55, 0.35);
    white-space: pre-line;
    max-height: 80vh;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', Arial, sans-serif;
}
.popup.show { display: flex; animation: lxFadeIn 0.25s ease-out; }
.close-popup { position:absolute; top:8px; right:10px; background:none; border:none; color:#fff; font-size:22px; cursor:pointer; }
@keyframes lxFadeIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}