@charset "utf-8";
/* =========================================================
 * [site-level] 회원 활동 레벨 배지 · 진행 막대 · 레벨 업 토스트
 * - 배지 : .slv-ico (+ .slv-s 이름 옆 / .slv-m 아바타 / .slv-l 큰 아바타 / .slv-x 관리 미리보기)
 *          이미지가 없으면 CSS 기본 배지 — 5단계마다 색 등급 (.slv-t1 ~ .slv-t6), 운영자 .slv-staff
 * - 올린 아이콘(img.slv-img) 은 같은 크기 정사각형
 * - 함수 : adm/site_admin/site_level.lib.php  slv_badge() / slv_badge_html()
 * ========================================================= */

.slv-ico {
    --slv: 18px;
    --slv-bg: #241a12; --slv-bd: #7a5634; --slv-tx: #d9a774; --slv-tx2: #a78260; --slv-glow: transparent;
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
    box-sizing: border-box; height: var(--slv); min-width: var(--slv); margin: 0; padding: 0 4px;
    border: 1px solid var(--slv-bd); border-radius: 3px; background: var(--slv-bg);
    color: var(--slv-tx); font-family: inherit; font-size: 10px; font-style: normal; line-height: 1; letter-spacing: 0;
    white-space: nowrap; vertical-align: middle; text-decoration: none; text-indent: 0;
    box-shadow: 0 0 0 0 var(--slv-glow), inset 0 1px 0 rgba(255, 255, 255, .06);
    user-select: none; cursor: default;
}
.slv-ico i { font-style: normal; font-weight: 600; font-size: .86em; color: var(--slv-tx2); }
.slv-ico b { font-weight: 800; font-size: 1.1em; color: var(--slv-tx); }
.slv-s { --slv: 18px; margin-right: 4px; }
/* 올린 아이콘 : 원본 크기·비율 그대로 (width/height 는 인라인 style 로 원본 px). 자르거나 늘리지 않음 */
img.slv-ico.slv-img { min-width: 0; max-width: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; object-fit: contain; vertical-align: middle; flex: none; }
img.slv-ico.slv-px { image-rendering: pixelated; } /* 작은 픽셀 아이콘 : 고해상도 화면에서 흐리지 않게 */

/* 아바타 크기 : 원형, 위 Lv. / 아래 숫자 */
.slv-m, .slv-l, .slv-x { width: var(--slv); padding: 0; border-radius: 50%; flex-direction: column; gap: 0; border-width: 1px; }
.slv-m { --slv: 32px; }
.slv-l { --slv: 72px; border-width: 2px; }
.slv-x { --slv: 48px; border-width: 2px; }
.slv-m i, .slv-l i, .slv-x i { font-size: calc(var(--slv) * .25); line-height: 1; margin-bottom: calc(var(--slv) * .02); }
.slv-m b, .slv-l b, .slv-x b { font-size: calc(var(--slv) * .4); line-height: .95; }

/* 색 등급 (5단계마다) */
.slv-t1 { --slv-bg: #241a12; --slv-bd: #7a5634; --slv-tx: #e0ad7a; --slv-tx2: #a78260; }                    /* 1~5   청동 */
.slv-t2 { --slv-bg: #1b1f24; --slv-bd: #8c97a4; --slv-tx: #e3eaf1; --slv-tx2: #9aa6b3; }                    /* 6~10  은 */
.slv-t3 { --slv-bg: #261e0d; --slv-bd: var(--c-gold, #c9a24f); --slv-tx: var(--c-gold-text, #e2c47c); --slv-tx2: var(--c-gold, #c9a24f); }                    /* 11~15 금 */
.slv-t4 { --slv-bg: #0f241d; --slv-bd: #3fa37f; --slv-tx: #8ee8c3; --slv-tx2: #4fb98f; }                    /* 16~20 비취 */
.slv-t5 { --slv-bg: #2a0f15; --slv-bd: #c2414f; --slv-tx: #ff9aa3; --slv-tx2: #d0606b; }                    /* 21~25 홍옥 */
.slv-t6 { --slv-bg: #23123a; --slv-bd: var(--c-gold-text, #e2c47c); --slv-tx: #fff1c9; --slv-tx2: #e0b3ff; --slv-glow: color-mix(in srgb, var(--c-gold-text, #e2c47c) 45%, transparent); } /* 26~30 전설 */
.slv-t6 { background: linear-gradient(135deg, #3b1b5c 0%, #1d0f33 55%, #4a2a12 100%); box-shadow: 0 0 6px var(--slv-glow), inset 0 1px 0 rgba(255, 255, 255, .12); }
.slv-t4.slv-m, .slv-t4.slv-l, .slv-t4.slv-x,
.slv-t5.slv-m, .slv-t5.slv-l, .slv-t5.slv-x { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08); }
.slv-t6.slv-m, .slv-t6.slv-l, .slv-t6.slv-x { box-shadow: 0 0 10px var(--slv-glow), inset 0 0 0 2px rgba(0, 0, 0, .3); }

/* 운영자 */
.slv-staff { --slv-bd: var(--c-gold-text, #e2c47c); --slv-tx: var(--c-on-gold, #1a1206); background: linear-gradient(180deg, var(--c-gold-text, #e2c47c) 0%, var(--c-gold, #c9a24f) 55%, var(--c-gold-dark, #8a6424) 100%); color: var(--c-on-gold, #1a1206); }
.slv-staff b { color: var(--c-on-gold, #1a1206); font-size: 1em; font-weight: 800; letter-spacing: -.02em; }
.slv-m.slv-staff b, .slv-l.slv-staff b, .slv-x.slv-staff b { font-size: calc(var(--slv) * .27); }

/* 이름 줄 정렬 */
.sv_wrap .slv-ico, .sv_member .slv-ico { margin-right: 4px; }
.lcc-name .slv-s, .lc-cmt-name .slv-s, .lc-name .slv-s { margin-right: 0; }
.lc-writer .lc-name > .slv-s, .lc-card-meta .lc-name > .slv-s { margin-right: 4px; }
.sv .slv-sv-item .slv-ico { margin: 0 0 0 4px; }
.td_name .slv-s { margin-right: 4px; }

/* 헤더 아바타 자리 (theme/custom/inc/header_nav.php cs_nav_avatar) */
.gh-avatar.is-slv { border: 0; background: none; overflow: visible; display: inline-flex; align-items: center; justify-content: center; }
.gh-avatar.is-slv::before, .gh-avatar.is-slv::after { display: none; }
.gh-avatar.is-slv .slv-ico { --slv: 32px; }
.gh-pm-user .gh-avatar.is-slv .slv-ico { --slv: 28px; }
.gh-avatar-lg.is-slv .slv-ico { --slv: 90px; border-width: 2px; }
.gh-avatar-lg.is-slv .slv-staff b { font-size: 22px; }
.gh-icon-user.has-slv::before, .gh-icon-user.has-slv::after { display: none; }
.gh-icon-user.has-slv { display: none; align-items: center; justify-content: center; overflow: visible; }
.gh-icon-user.has-slv .slv-ico { --slv: 100%; width: 100%; height: 100%; min-width: 0; border-width: 1px; }
.gh-icon-user.has-slv .slv-ico i { font-size: 7px; }
.gh-icon-user.has-slv .slv-ico b { font-size: 12px; }
.gh-icon-user.has-slv .slv-staff b { font-size: 8px; }
@media (max-width: 1023px) { .gh-icon.gh-icon-user.has-slv { display: flex; outline-color: transparent; background-color: transparent; border-color: transparent; } }

/* 올린 아이콘(img) 이 아바타 자리에 올 때 : 원형 틀 안에 원본 크기로 가운데 */
.gh-avatar.is-slv:has(> img.slv-img) { width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: #1d1813; overflow: hidden; box-sizing: border-box; }
.gh-pm-user .gh-avatar.is-slv:has(> img.slv-img) { width: 28px; height: 28px; }
.gh-avatar-lg.is-slv:has(> img.slv-img) { width: 56px; height: 56px; border-color: rgba(255, 255, 255, .22); }
/* 가로로 긴 아이콘(관리자 로고) : 틀 없이 원본 크기 그대로 */
.gh-avatar.is-slv:has(> img.slv-wide) { width: auto; height: auto; min-height: 32px; border: 0; border-radius: 0; background: none; overflow: visible; }
.gh-avatar-lg.is-slv:has(> img.slv-wide) { min-height: 0; margin-bottom: 12px; }
.gh-user .gh-avatar.is-slv:has(> img.slv-wide), .gh-pm-user .gh-avatar.is-slv:has(> img.slv-wide) { margin-right: 4px; }
@media (max-width: 1023px) {
    .gh-icon.gh-icon-user.has-slv:has(> img.slv-img) { outline-color: rgba(255, 255, 255, .3); background-color: rgba(0, 0, 0, .35); }
    .gh-icon.gh-icon-user.has-slv:has(> img.slv-wide) { width: auto; min-width: 40px; border-radius: 0; outline-color: transparent; background-color: transparent; }
}

/* 내 정보 패널 진행 */
.slv-rp { width: 100%; margin: 12px 0 8px; padding: 0 24px 16px; box-sizing: border-box; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.slv-rp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--c-text-ref-sub, #bbb); }
.slv-rp-top b { color: var(--c-gold-text, #e2c47c); font-weight: 700; }
.slv-rp-top a { color: var(--c-gold-text, #e2c47c); font-size: 12px; text-decoration: none; white-space: nowrap; }
.slv-rp-top a:hover { text-decoration: underline; }
.slv-rp-txt { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--c-text-ref-sub, #aaa); word-break: keep-all; }

/* 진행 막대 */
.slv-bar { position: relative; height: 8px; margin-top: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.slv-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--c-gold, #c9a24f), var(--c-gold-text, #e2c47c)); }

/* 레벨 업 토스트 (고객센터 토스트 모양) — 위쪽 가운데 (오른쪽 아래는 고객센터 위젯·토스트 자리) */
.slv-toast { position: fixed; top: 96px; left: 50%; z-index: 100001; display: flex; align-items: stretch; width: 340px; max-width: calc(100vw - 32px); border: 1px solid color-mix(in srgb, var(--c-gold, #c9a24f) 55%, transparent); border-left: 4px solid var(--c-gold, #c9a24f); border-radius: 10px; background: #1f1f22; color: #eee; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); font-family: var(--font-base, Pretendard, "Malgun Gothic", sans-serif); opacity: 0; transform: translate(-50%, -12px); transition: opacity .22s, transform .22s; box-sizing: border-box; }
.slv-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.slv-toast.is-out { opacity: 0; transform: translate(-50%, -12px); }
.slv-toast-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 14px; color: inherit; text-decoration: none; }
.slv-toast-ico { flex: none; display: flex; }
.slv-toast-ico .slv-ico { --slv: 40px; }
.slv-toast-ico:has(> img.slv-img) { width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: #15120e; }
.slv-toast-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.slv-toast-kind { font-size: 12px; font-weight: 700; color: var(--c-gold-text, #e2c47c); letter-spacing: .02em; }
.slv-toast-subj { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.slv-toast-meta { font-size: 12px; color: #aaa; }
.slv-toast-main:hover .slv-toast-meta { text-decoration: underline; }
.slv-toast-x { flex: none; width: 34px; border: 0; background: transparent; color: #999; font-size: 20px; line-height: 1; cursor: pointer; }
.slv-toast-x:hover { color: #fff; }
.slv-toast-x { padding-bottom: 3px; } /* [btncenter 2026-11-23] × 글자가 1.5px 낮게 보이던 것 가운데로 (상자 크기 그대로) */
@media (max-width: 1023px) { .slv-toast { top: 72px; } }
@media (max-width: 767px) { .slv-toast { top: 64px; width: auto; left: 12px; right: 12px; max-width: none; transform: translateY(-12px); } .slv-toast.is-in { transform: none; } .slv-toast.is-out { transform: translateY(-12px); } }

/* 내 활동 레벨 페이지 (/level/) */
.slv-page { max-width: 1000px; margin: 0 auto; padding: 48px 20px 90px; box-sizing: border-box; color: var(--c-text, #e6dfcc); font-family: var(--font-base, inherit); }
.slv-page *, .slv-page *::before, .slv-page *::after { box-sizing: border-box; }
.slv-page-title { margin: 0 0 24px; font-size: 26px; font-weight: 700; color: var(--c-text-title, #fff1c9); }
.slv-card { display: flex; align-items: center; gap: 24px; padding: 26px 28px; border: 1px solid var(--c-line, color-mix(in srgb, var(--c-gold, #c9a24f) 25%, transparent)); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); }
.slv-card-ico { flex: none; display: flex; }
.slv-card-ico .slv-ico { --slv: 88px; }
.slv-card-ico .slv-staff b { font-size: 22px; }
.slv-card-ico:has(> img.slv-img) { width: 88px; height: 88px; align-items: center; justify-content: center; border: 1px solid var(--c-line, color-mix(in srgb, var(--c-gold, #c9a24f) 25%, transparent)); border-radius: 50%; background: #15120e; }
.slv-card-body { flex: 1; min-width: 0; }
.slv-card-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.slv-card-name strong { font-size: 20px; color: var(--c-text-strong, #fff); word-break: break-all; }
.slv-card-lv { font-size: 16px; font-weight: 700; color: var(--c-gold-text, #e2c47c); }
.slv-card-lv em { font-style: normal; font-weight: 500; color: var(--c-text-muted, #a99a78); }
.slv-card-txt { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--c-text-sub, #cfc6b0); word-break: keep-all; }
.slv-card-txt b { color: var(--c-text-strong, #fff); font-weight: 600; }
.slv-bar-lg { height: 12px; margin-top: 12px; }
.slv-card-pct { margin: 6px 0 0; font-size: 12px; color: var(--c-text-muted, #a99a78); text-align: right; }
.slv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.slv-stats li { min-width: 0; padding: 16px 18px; border: 1px solid var(--c-line-soft, color-mix(in srgb, var(--c-gold, #c9a24f) 16%, transparent)); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.slv-stats li.is-ok { border-color: color-mix(in srgb, #3fa37f 45%, transparent); }
.slv-stat-k { display: block; font-size: 13px; color: var(--c-text-muted, #a99a78); }
.slv-stat-v { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; color: var(--c-text-strong, #fff); }
.slv-stat-v small { margin-left: 2px; font-size: 13px; font-weight: 500; color: var(--c-text-muted, #a99a78); }
.slv-stat-n { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--c-text-sub, #cfc6b0); word-break: keep-all; }
.slv-stats li.is-ok .slv-stat-n { color: #7fd6b0; }
.slv-rules { margin-top: 40px; }
.slv-rules h3 { margin: 0 0 8px; font-size: 18px; color: var(--c-text-title, #fff1c9); }
.slv-help { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--c-text-muted, #a99a78); word-break: keep-all; }
.slv-help b { color: var(--c-text-strong, #fff); }
.slv-rules-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.slv-rules-tbl { width: 100%; min-width: 420px; border-collapse: collapse; border-top: 1px solid var(--c-line-strong, color-mix(in srgb, var(--c-gold, #c9a24f) 55%, transparent)); font-size: 14px; }
.slv-rules-tbl th, .slv-rules-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--c-line-soft, color-mix(in srgb, var(--c-gold, #c9a24f) 16%, transparent)); text-align: center; color: var(--c-text-sub, #cfc6b0); white-space: nowrap; }
.slv-rules-tbl thead th { font-size: 13px; font-weight: 600; color: var(--c-text-muted, #a99a78); background: rgba(255, 255, 255, .02); }
.slv-rules-tbl tbody th { text-align: left; }
.slv-rules-tbl tr.is-done td { color: var(--c-text-faint, #7d7a72); }
.slv-rules-tbl tr.is-cur { background: color-mix(in srgb, var(--c-gold, #c9a24f) 12%, transparent); }
.slv-rules-tbl tr.is-cur td { color: var(--c-text-strong, #fff); }
.slv-me { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: var(--c-gold, #c9a24f); color: var(--c-on-gold, #1a1206); font-size: 11px; font-weight: 700; vertical-align: middle; }
@media (max-width: 767px) {
    .slv-page { padding: 28px 16px 60px; }
    .slv-page-title { font-size: 21px; margin-bottom: 16px; }
    .slv-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 18px; text-align: left; }
    .slv-card-ico { justify-content: center; }
    .slv-card-ico .slv-ico { --slv: 72px; }
    .slv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .slv-stats li { padding: 12px 14px; }
    .slv-stat-v { font-size: 20px; }
    .slv-rules-tbl { font-size: 13px; }
    .slv-rules-tbl th, .slv-rules-tbl td { padding: 8px 6px; }
}

/* 프로필 창 */
.profile_name .my_profile_img .slv-ico { --slv: 72px; }
.profile_name .my_profile_img.is-slv { background: none !important; border: 0 !important; overflow: visible !important; }
.profile_name .my_profile_img.is-slv:has(> img.slv-img) { display: inline-flex !important; align-items: center; justify-content: center; vertical-align: middle; }
.profile_name .my_profile_img.is-slv::before, .profile_name .my_profile_img.is-slv::after { display: none !important; }
