@charset "utf-8";
/* ==========================================================
   B-SIDE · 알림센터 로그인 위젯(ncenter_login) 리스킨
   오른쪽 아래 회색 바 → 떠 있는 글래스 알약(pill)
   위젯 원본 CSS보다 우선하도록 html body #nc_container 로 지정
   ========================================================== */
html body #nc_container {
    right: 20px;
    bottom: 20px;
    width: auto;
    max-width: calc(100vw - 40px);
    height: auto;
    padding: 5px;
    border: 1px solid var(--bs-line-2, rgba(255, 255, 255, .14));
    border-radius: 999px;
    background-color: rgba(23, 23, 44, .82);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    opacity: 1;
    font-family: var(--bs-f-ko, "Pretendard Variable", Pretendard, sans-serif);
    font-size: 12px;
    color: var(--bs-tx-2, #a6a6c4);
    box-sizing: border-box;
}
html body #nc_container.nc_login { height: auto; }
/* 새 알림이 있을 때(두 줄)는 카드 모양 */
html body #nc_container:not(.nc_login) { border-radius: 20px; }

html body #nc_container a {
    font-size: 12px;
    color: var(--bs-tx-2, #a6a6c4);
    transition: color .15s, background-color .15s;
}
html body #nc_container a:hover { color: #fff; }
html body #nc_container strong { color: #fff; font-weight: 700; }

/* ---------- 내 정보 줄 (ipno · 로그아웃 · 최근 로그인 · 관리) ---------- */
html body #nc_container ul.me_menu {
    display: flex;
    align-items: center;
    border: 0;
    line-height: 1;
}
html body #nc_container ul.me_menu:after { display: none; }
html body #nc_container ul.me_menu li {
    float: none;
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 0;
    white-space: nowrap;
}
html body #nc_container ul.me_menu li + li {
    border-left: 1px solid var(--bs-line, rgba(255, 255, 255, .08));
}
/* 프로필 */
html body #nc_container ul.me_menu li.nc_profile {
    gap: 8px;
    padding-left: 3px;
}
html body #nc_container .nc_profile img {
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 1.5px;
    border-radius: 50%;
    background: var(--bs-grad, linear-gradient(90deg, #818cf8, #38bdf8));
    object-fit: cover;
    box-sizing: border-box;
    vertical-align: middle;
}
/* 기본 회색 프로필(p.png)은 숨기고 그라데이션 음표 아바타로 */
html body #nc_container .nc_profile img[src*="ncenterlite/skins/default/img/p.png"] { display: none; }
html body #nc_container .nc_profile:not(:has(img:not([src*="p.png"]))) strong:before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--bs-grad, linear-gradient(90deg, #818cf8, #38bdf8));
    font-size: 12px;
    color: #111122;
    vertical-align: middle;
    content: '♪';
}
html body #nc_container ul.me_menu li.nc_profile strong {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}
/* 최근 로그인: 모노 라벨 */
html body #nc_container ul.me_menu li:nth-child(3) {
    font-family: var(--bs-f-mono, "JetBrains Mono", monospace);
    font-size: 10.5px;
    letter-spacing: .02em;
    color: var(--bs-tx-3, #6d6d8f);
}
/* 로그아웃 */
html body #nc_container ul.me_menu li:nth-child(2) a:hover { color: #fda4af; }
/* 관리 칩 */
html body #nc_container ul.me_menu a.admin {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(129, 140, 248, .16);
    font-weight: 600;
    line-height: 1;
    color: var(--bs-acc, #818cf8);
}
html body #nc_container ul.me_menu a.admin:hover {
    background: var(--bs-grad, linear-gradient(90deg, #818cf8, #38bdf8));
    color: #111122;
}
html body #nc_container ul.me_menu li:last-child { padding-right: 4px; }

/* ---------- 새 알림 줄 ---------- */
html body #nc_container ul.nc_memu {
    display: flex;
    align-items: center;
    padding: 6px 8px 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--bs-line, rgba(255, 255, 255, .08));
    line-height: 1.4;
}
html body #nc_container ul.nc_memu:after { display: none; }
html body #nc_container ul.nc_memu li { float: none; height: auto; padding: 0 6px; }
html body #nc_container ul.nc_memu li.nc_profile { display: none; }
html body #nc_container ul.nc_memu li.fRight { margin-left: auto; }
html body #nc_container a.notify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--bs-acc-2, #38bdf8);
}
html body #nc_container a.notify:before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-rec, #f43f5e);
    box-shadow: 0 0 8px var(--bs-rec, #f43f5e);
    content: '';
}
html body #nc_container a.notify .num {
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--bs-rec, #f43f5e);
    font-family: var(--bs-f-mono, monospace);
    font-size: 11px;
    color: #fff;
}
html body #nc_container a.readall { color: #fda4af; font-weight: 600; }
html body #nc_container a.close { color: var(--bs-tx-3, #6d6d8f); font-size: 11px; }

/* ---------- 알림 목록 팝업 ---------- */
html body #nc_container .list,
html body #nc_container.nc_login .list {
    left: auto;
    right: 0;
    bottom: calc(100% + 10px);
    width: 340px;
    max-width: calc(100vw - 40px);
    padding: 6px;
    border: 1px solid var(--bs-line-2, rgba(255, 255, 255, .14));
    border-radius: 18px;
    background: rgba(23, 23, 44, .97);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
    opacity: 1;
    font-family: inherit;
}
html body #nc_container .list ul { margin: 0 !important; }
html body #nc_container .list li {
    margin: 0;
    border: 0;
}
html body #nc_container .list li a {
    padding: 10px 12px !important;
    border-radius: 12px;
    line-height: 1.45;
    color: var(--bs-tx, #ececf7);
}
html body #nc_container .list li a:hover { background-color: var(--bs-raised, #1f1f3a); }
html body #nc_container .list li img {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    border-radius: 50%;
}
html body #nc_container .list span.ago {
    margin-top: 2px;
    font-family: var(--bs-f-mono, monospace);
    font-size: 10px;
    color: var(--bs-tx-3, #6d6d8f);
}
html body #nc_container .list .more {
    margin-top: 4px;
    border-radius: 12px;
    background: var(--bs-raised, #1f1f3a);
    color: var(--bs-tx-2, #a6a6c4);
}

/* =========================================================
   🫧 플로팅 독: 평소엔 아바타 동그라미 → 마우스 올리면 펼쳐짐
   (새 알림이 있을 때는 접지 않고 항상 펼쳐 둠)
   ========================================================= */
@media only screen and (min-width: 481px) {
    html body #nc_container.nc_login ul.me_menu li {
        transition: max-width .35s cubic-bezier(.2, .9, .3, 1), opacity .25s ease, padding .35s ease;
    }
    html body #nc_container.nc_login ul.me_menu li:not(.nc_profile) {
        max-width: 240px;
        overflow: hidden;
    }
    /* 접힌 상태 */
    html body #nc_container.nc_login:not(:hover):not(:focus-within) {
        padding: 4px;
        cursor: pointer;
    }
    html body #nc_container.nc_login:not(:hover):not(:focus-within) ul.me_menu li:not(.nc_profile) {
        max-width: 0;
        padding: 0;
        border-left-color: transparent;
        opacity: 0;
    }
    html body #nc_container.nc_login:not(:hover):not(:focus-within) ul.me_menu li.nc_profile {
        padding: 0;
    }
    html body #nc_container.nc_login:not(:hover):not(:focus-within) ul.me_menu li.nc_profile strong {
        font-size: 0;
    }
    html body #nc_container.nc_login:not(:hover):not(:focus-within) .nc_profile strong:before {
        margin-right: 0;
    }
    /* 접혔을 때 아바타를 조금 크게 + 온라인 점 */
    html body #nc_container.nc_login:not(:hover):not(:focus-within) .nc_profile img,
    html body #nc_container.nc_login:not(:hover):not(:focus-within) .nc_profile strong:before {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    html body #nc_container.nc_login:not(:hover):not(:focus-within) .nc_profile {
        position: relative;
    }
    html body #nc_container.nc_login:not(:hover):not(:focus-within) .nc_profile:after {
        position: absolute;
        right: -1px;
        bottom: 0;
        width: 9px;
        height: 9px;
        border: 2px solid #17172c;
        border-radius: 50%;
        background: #34d399;
        content: '';
    }
    html body #nc_container.nc_login:hover,
    html body #nc_container.nc_login:focus-within {
        box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 4px rgba(129, 140, 248, .12);
    }
    html body #nc_container:focus { outline: 0; }
}

/* 맨 위로 버튼이 알약과 겹치지 않게 */
.btn_top { bottom: 84px; }

@media only screen and (max-width: 480px) {
    html body #nc_container {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: none;
        border-radius: 0;
        border-width: 1px 0 0;
    }
    html body #nc_container ul.me_menu { flex-wrap: wrap; }
}
