/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-r22b5xs8zl],
.components-reconnect-repeated-attempt-visible[b-r22b5xs8zl],
.components-reconnect-failed-visible[b-r22b5xs8zl],
.components-pause-visible[b-r22b5xs8zl],
.components-resume-failed-visible[b-r22b5xs8zl],
.components-rejoining-animation[b-r22b5xs8zl] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-r22b5xs8zl],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-r22b5xs8zl],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-r22b5xs8zl],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-r22b5xs8zl],
#components-reconnect-modal.components-reconnect-retrying[b-r22b5xs8zl],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-r22b5xs8zl],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-r22b5xs8zl],
#components-reconnect-modal.components-reconnect-failed[b-r22b5xs8zl],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-r22b5xs8zl] {
    display: block;
}


/* [수정 2026-11-24 · IKHPEC 시안 ③ 가] 창 = 카드 19rem · 화면 가운데 · 테두리 1px · 둥근 16 · 큰 그림자 · 색 = IKHPEC 값(--ik-* — 테마 따라 바뀜)
   열림 = 0.3초 기다린 뒤 살짝 떠오름(잠깐 끊겼다 바로 붙으면 안 보이게 — 템플릿의 기다림 그대로) · 닫힘 = 흐려짐 */
#components-reconnect-modal[b-r22b5xs8zl] {
    background-color: var(--ik-canvas);
    color: var(--ik-ink);
    width: 19rem;
    max-width: calc(100vw - 2rem);
    margin: auto;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid var(--ik-hairline);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / .35);
    text-align: center;
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-r22b5xs8zl 0.5s both;
    &[open]
{
    animation: components-reconnect-modal-pop-b-r22b5xs8zl 0.2s ease-out 0.3s both;
}
}

/* 뒤 = 검정 40% + 흐림 3px(IKHPEC) */
#components-reconnect-modal[b-r22b5xs8zl]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: components-reconnect-modal-fadeInOpacity-b-r22b5xs8zl 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-pop-b-r22b5xs8zl {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-r22b5xs8zl {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-r22b5xs8zl {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* [추가 2026-11-24 · 별도 검토] 두 번째 시도부터 blazor.web.js 가 show 를 떼지 않고 retrying 을 더한다(10.0.13 확인)
   → '연결 중' 제목과 '연결하지 못했습니다' 제목이 겹쳐 보이지 않게 retrying 이면 '연결 중' 글은 숨김(돌아가는 표시는 그대로) */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-r22b5xs8zl] {
    display: none;
}

.components-reconnect-container[b-r22b5xs8zl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

#components-reconnect-modal p[b-r22b5xs8zl] {
    margin: 0;
    text-align: center;
}

/* 글 — 제목 = 보통 크기 굵게 · 설명 = 작게 회색 · 다시 시도까지 남은 초 = 고정폭 작게 옅게 */
#components-reconnect-modal .kg-rc-title[b-r22b5xs8zl] {
    font-size: var(--text-base);
    line-height: var(--text-base--line-height);
    font-weight: 600;
    word-break: keep-all;
}

#components-reconnect-modal .kg-rc-desc[b-r22b5xs8zl] {
    margin-top: 0.375rem;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    color: var(--ik-ink-muted);
    word-break: keep-all;
}

#components-reconnect-modal .kg-rc-att[b-r22b5xs8zl] {
    margin-top: 0.25rem;
    font-family: var(--font-mono, ui-monospace, Consolas, monospace);
    font-size: var(--text-xs);
    line-height: var(--text-xs--line-height);
    color: var(--ik-ink-faint);
}

/* 단추 = 노랑(btn-solid — 모양은 tailwind.css) · 카드 폭 가득 · 높이 44 */
#components-reconnect-modal .btn-solid[b-r22b5xs8zl] {
    width: 100%;
    height: 2.75rem;
    margin-top: 0.5rem;
}

/* 표시 — 연결 중 = 돌아가는 고리 / 실패 · 멈춤 = 회색 원 안 아이콘 */
.components-rejoining-animation[b-r22b5xs8zl] {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 3px solid var(--ik-ink-200);
    border-top-color: var(--ik-ink-700);
    animation: components-rejoining-animation-b-r22b5xs8zl 0.8s linear infinite;
}

@keyframes components-rejoining-animation-b-r22b5xs8zl {
    to {
        transform: rotate(360deg);
    }
}

.kg-rc-icon[b-r22b5xs8zl] {
    width: 44px;
    height: 44px;
    padding: 11px;
    line-height: 0;
    border-radius: 9999px;
    background-color: var(--ik-surface-sunken);
    color: var(--ik-ink-700);
}

/* 기기의 '동작 줄이기' = 떠오름 · 돌아감 없음 — 0.3초 기다림은 그대로(잠깐 끊겼다 바로 붙으면 안 보이게) [수정 2026-11-24 · 별도 검토] */
@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[open][b-r22b5xs8zl] {
        animation: components-reconnect-modal-fadeInOpacity-b-r22b5xs8zl 0.01s linear 0.3s both;
    }

    .components-rejoining-animation[b-r22b5xs8zl] {
        animation: none;
    }
}
