/*!
 * Quiz login/signup popup — panel visibility.
 *
 * Each quiz page server-renders BOTH the "sign up to unlock" panel
 * (class quiz-auth-gate-guest) and the real, signed-in panel
 * (class quiz-auth-gate-user), matching the initial isLoggedIn state
 * via the correct pair of classes below. After a successful popup
 * login/signup, quiz-auth-popup.js adds "quiz-auth-logged-in" to
 * <body>, and these rules swap which panel is visible — no page
 * reload, so no quiz data is lost.
 *
 * These rules only ever HIDE the "wrong" panel; they never force the
 * "right" one to display, so they stay compatible with each page's
 * own step-by-step (data-side-panel) show/hide logic.
 */

body:not(.quiz-auth-logged-in) .quiz-auth-gate-user {
    display: none !important;
}

body.quiz-auth-logged-in .quiz-auth-gate-guest {
    display: none !important;
}
