/* =========================================================
   AUTH SCREEN
   ========================================================= */

#auth-card {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 24px 28px;
    width: 100%; max-width: 380px;
}

#auth-logo { font-size: 48px; text-align: center; margin-bottom: 10px; }

#auth-title {
    font-size: 22px; font-weight: bold; color: white;
    text-align: center; margin-bottom: 4px;
}

#auth-subtitle {
    font-size: 13px; color: rgba(255,255,255,0.4);
    text-align: center; margin-bottom: 24px;
}

#google-btn {
    width: 100%; padding: 12px;
    background: white; color: #333;
    border: none; border-radius: 12px;
    font-size: 14px; font-weight: bold;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 16px;
    transition: background 0.15s;
}
#google-btn:hover { background: #f0f0f0; }

.auth-divider {
    display: flex; align-items: center;
    gap: 10px; margin-bottom: 16px;
}
.auth-divider::before,
.auth-divider::after {
    content: ""; flex: 1;
    height: 1px; background: rgba(255,255,255,0.1);
}
.auth-divider span { font-size: 12px; color: rgba(255,255,255,0.3); }

#auth-error {
    font-size: 12px; color: #ff6666;
    text-align: center; margin-bottom: 10px;
    min-height: 16px;
}

#auth-toggle-row {
    text-align: center; margin-top: 16px;
    font-size: 13px; color: rgba(255,255,255,0.4);
}
#auth-toggle-link {
    color: gold; cursor: pointer; margin-left: 6px;
    font-weight: bold;
}
#auth-toggle-link:hover { text-decoration: underline; }

/* =========================================================
   DASHBOARD
   ========================================================= */
#dashboard-screen {
    min-height: 100vh; background: #0d0d0d;
    padding: 0 0 40px; display: flex;
    flex-direction: column; max-width: 480px;
    margin: 0 auto; width: 100%;
}

/* =========================================================
   SUB-SCREENS (Quick Play, Matchmaking, Lobby, Room Preview)
   ========================================================= */
#quick-play-screen, #matchmaking-screen,
#lobby-screen, #room-preview-screen {
    min-height: 100vh; background: #0d0d0d;
    padding: 0 0 40px; display: flex;
    flex-direction: column; max-width: 480px;
    margin: 0 auto; width: 100%;
}

.sub-screen-header {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.back-btn {
    background: transparent; border: none;
    color: rgba(255,255,255,0.5); font-size: 14px;
    cursor: pointer; padding: 0;
}
.back-btn:hover { color: white; }
.sub-screen-title {
    font-size: 16px; font-weight: bold; color: white;
}
.sub-card {
    background: #1a1a2e;
    margin: 16px 20px; border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.07);
}

/* Matchmaking */
#mm-spinner { font-size: 48px; margin: 20px 0 10px; animation: spin 2s linear infinite; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
#mm-status { font-size: 16px; font-weight: bold; color: white; margin-bottom: 8px; }
#mm-stake-display { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
#mm-players-found { margin-bottom: 12px; }
#mm-timer { font-size: 13px; color: rgba(255,255,255,0.4); }

/* Room preview */
.rp-player-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; background: rgba(255,255,255,0.05);
    border-radius: 10px; margin-bottom: 6px; font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* =========================================================
   MODALS
   ========================================================= */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex; align-items: center;
    justify-content: center; z-index: 500; padding: 20px;
}
.modal-card {
    background: #1a1a2e;
    border-radius: 20px; padding: 24px;
    width: 100%; max-width: 360px;
    border: 1px solid rgba(255,255,255,0.1);
}
.modal-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 20px;
    font-size: 18px; font-weight: bold; color: white;
}
.modal-close {
    background: rgba(255,255,255,0.1); border: none;
    color: white; width: 30px; height: 30px;
    border-radius: 50%; font-size: 14px; cursor: pointer;
}

