/* 콘텐츠 페이지 — 인증 확인 전 본문 숨김(하얀 화면 깜빡임 방지) */
html.oddlab-pending:not(.oddlab-ready) body {
    visibility: hidden;
}

html.oddlab-pending:not(.oddlab-ready)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #f8fafc;
}

html.oddlab-login-wall:not(.oddlab-ready)::after {
    content: none;
}

html.oddlab-pending:not(.oddlab-ready):not(.oddlab-login-wall)::after {
    content: '접속 확인 중…';
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: -0.02em;
}

html.oddlab-ready body {
    visibility: visible;
}

/* 콘텐츠 미로그인 로그인 모달 (html 직속 — body visibility 영향 없음) */
#oddlabLoginModal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

#oddlabLoginModal .oddlab-login-card {
    width: min(420px, 92vw);
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

#oddlabLoginModal .oddlab-login-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

#oddlabLoginModal .oddlab-login-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 22px;
    white-space: pre-wrap;
}

#oddlabLoginModal .oddlab-login-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#oddlabLoginModal .oddlab-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

#oddlabLoginModal .oddlab-login-btn:hover {
    filter: brightness(1.04);
}

#oddlabLoginModal .oddlab-login-btn:active {
    transform: scale(0.98);
}

#oddlabLoginModal .oddlab-login-btn-teacher {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

#oddlabLoginModal .oddlab-login-btn-student {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

#oddlabLoginModal .oddlab-login-footer {
    margin-top: 16px;
    text-align: center;
}

#oddlabLoginModal .oddlab-login-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px 8px;
}

#oddlabLoginModal .oddlab-login-link:hover {
    color: #3b82f6;
}
