/* ─── keyframes (충돌 방지를 위해 mc- 접두사) ─── */
@keyframes mc-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
@keyframes mc-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}
@keyframes mc-ping {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

#maintenance-card-container {
    display: none;
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 1);
    z-index: 99998;
}
#maintenance-card-container .maintenance-card-bg {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAUCAIAAADUTlA/AAAACXBIWXMAAAsTAAALEwEAmpwYAAACRklEQVR4nHXLW0iTcRzG8acuyjKSLhLNEiRboNtUSmueLd2kAxmhKBaWhqRohXRhkYmaLHdwc+poHY2V2eLNsqgWKtgBTVlgB3NqptOivXud8yVz6tw/JpUFCZ+LH/y+D1BpXpRsHlT0fyjNC1BNL1D9df+Bmt8/1WLFJSPqxnCFgYaG2vJr8E/RZEQLizu9aLRAx+C2Fbesrs1lCy7SqLUAQ3Z0DQXWN+LNd3RMQt+Nu+2getH0DY02aN4CwwPJlEb04AbsTgyMlugVO9r16GXw8iM6x6Hvx/7Whp4c7/TnWnwxgRnAp3dZOampmaLYlLQDL2SJnU9hKOZZ5ai7f8q/5zVmf4SZurI3b9yyeoVfRLRPSMRBdQnGymGQBDzO4yqM9/JmRpeQucIGSTHHkx8XsG5X0OnjiWCvgz6PZylupZvcqAsZVP/VCcqjPmkNByvjd3IOSXnQyRP8vSKPxoTL9nCUgcv60jH9imufSBlpiyrievPgiVCfACABEAo3bOsWehj8UBPk8eGhkLC7vzYFS2PccC465GZWxOHg4PXwDXX31Ce5L8XaolgvR5/o8zU+qwXGTRWGR4VU6bH8xISMSH5L/tYCAXdYHD7ZtnesIoQ+uQqEqAmpmacmpHaakRBzGTGVmJtzR7Vp77OjYG3OJ2wFcSiZwfIRYxlxVDldqgmptU+qWtW5OMsPqxYJOjSZfU/OiI8kt+gKZm3SOZuMTFWSKaWdlWO7r2Dfcu6J+DjiUDltMmZQ7LDJCSt1FTMK4qj6CZ9tVH+5oG0FAAAAAElFTkSuQmCC);
    filter: blur(10px);
    background-size: cover;
    background-position: center;
}

/* ─── 루트 카드 ─── */
#maintenance-card {
    position: absolute;
    z-index: 99999;
    width: 70%;
    max-width: 440px;
    background: #1a1d27;
    border: 1px solid #2a2d3a;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(251, 146, 60, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.35);
    font-family:
        'Segoe UI',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    margin-left: 50%;
    margin-top: 100px;
    transform: translateX(-50%);
}

/* ─── 상단 진행 바 ─── */
#maintenance-card .progress-bar {
    height: 3px;
    background: #2a2d3a;
    overflow: hidden;
}
#maintenance-card .progress-bar__fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #fb923c, #fdba74, #fb923c);
    background-size: 200% 100%;
    border-radius: 0 999px 999px 0;
    animation: mc-shimmer 2s linear infinite;
}

/* ─── 카드 본문 ─── */
#maintenance-card .card__body {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ─── 아이콘 원형 래퍼 ─── */
#maintenance-card .icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #1e2130, #252838);
    border: 1px solid #2f3345;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
#maintenance-card .icon-wrap svg {
    width: 34px;
    height: 34px;
    color: #fb923c;
    animation: mc-bounce 2.4s ease-in-out infinite;
}

/* ─── 핑핑핑 상태 점 ─── */
#maintenance-card .status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #fb923c;
    border: 3px solid #1a1d27;
    border-radius: 50%;
}
#maintenance-card .status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(251, 146, 60, 0.35);
    animation: mc-ping 1.8s ease-out infinite;
}

/* ─── 제목 ─── */
#maintenance-card .card__title {
    font-size: 22px;
    font-weight: 700;
    color: #f0f0f3;
    letter-spacing: -0.3px;
    margin: 0 0 8px;
}

/* ─── 설명 ─── */
#maintenance-card .card__desc {
    font-size: 14px;
    color: #8a8d9a;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 0 28px;
}

/* ─── 시간 블록 ─── */
#maintenance-card .time-block {
    width: 100%;
    background: #141620;
    border: 1px solid #252838;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}
#maintenance-card .time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 12px;
}
#maintenance-card .time-row + .time-row {
    border-top: 1px solid #252838;
}
#maintenance-card .time-label {
    display: flex;
    align-items: center;
    gap: 10px;
}
#maintenance-card .time-label__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
#maintenance-card .time-label__badge--kst {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
}
#maintenance-card .time-label__badge--utc {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}
#maintenance-card .time-label__text {
    font-size: 13px;
    color: #6b6e7c;
}
#maintenance-card .time-value {
    font-size: 15px;
    font-weight: 600;
    color: #e2e2e8;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}

/* ─── 구분선 ─── */
#maintenance-card .divider {
    width: 100%;
    height: 1px;
    background: #252838;
    margin-bottom: 20px;
}

/* ─── 하단 안내 ─── */
#maintenance-card .card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(251, 146, 60, 0.06);
    border: 1px solid rgba(251, 146, 60, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
}
#maintenance-card .footer-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(251, 146, 60, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#maintenance-card .footer-icon svg {
    width: 15px;
    height: 15px;
    color: #fb923c;
}
#maintenance-card .footer-text {
    font-size: 13px;
    color: #c4a265;
    line-height: 1.45;
}
#maintenance-card .footer-text strong {
    color: #fdba74;
    font-weight: 600;
}
