/* ================================================================
   AP.DB — 메인 스타일시트
   구조: Base → Layout → Topbar/Nav → Page Header → Feed →
         Right Panel (Menu) → Wiki → Modals → Tier Maker →
         Dashboard → Utilities → Mobile (@media)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* ════════════════════════════════════════
   BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f1f5f9;
    color: #0f172a;
    margin: 0;
    height: 100dvh;
    overflow: hidden;
}

/* ════════════════════════════════════════
   APP LAYOUT (최상위 컨테이너)
════════════════════════════════════════ */
.app-layout {
    display: flex;
    height: 100dvh;
}

/* ════════════════════════════════════════
   PC 사이드바 (현재 숨김 처리)
════════════════════════════════════════ */
.pc-sidebar { display: none !important; }

.pc-sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.pc-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
.pc-nav-section {
    font-size: 10px;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 14px 12px 6px;
}
.pc-nav-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 12px;
}
.pc-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all .15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.pc-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.pc-nav-item:hover { background: #f8fafc; color: #0f172a; }
.pc-nav-item.active { background: #eff6ff; color: #2563eb; }
.pc-nav-item.active svg { color: #2563eb; }
.pc-nav-item.tier-item:hover { background: #fffbeb; color: #d97706; }
.pc-nav-item.tier-item.active { background: #fffbeb; color: #d97706; }

.pc-sidebar-bottom {
    padding: 12px 10px;
    border-top: 1px solid #f1f5f9;
}
.pc-write-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.pc-write-btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }

/* ════════════════════════════════════════
   PC 탑바
════════════════════════════════════════ */
.pc-topbar {
    display: flex;
    align-items: center;
    justify-content: center;   /* 검색창 센터 정렬 */
    position: relative;        /* 로고 absolute 기준점 */
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.pc-topbar .content-tabs { display: none !important; }

.pc-topbar-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    cursor: pointer;
    letter-spacing: -.5px;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
    position: absolute;        /* 좌측 고정, 검색창 중앙 유지 */
    left: 20px;
}
.pc-search-wrap {
    width: 100%;
    max-width: 560px;
    position: relative;
}
.pc-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    width: 15px;
    height: 15px;
}
.pc-search-input {
    width: 100%;
    padding: 9px 60px 9px 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: #f8fafc;
    transition: all .15s;
}
.pc-search-input:focus { border-color: #2563eb; background: #fff; }

.search-scope-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    white-space: nowrap;
}
.search-scope-btn:active { background: #dbeafe; }

/* ════════════════════════════════════════
   모바일 탑바
════════════════════════════════════════ */
.mob-topbar {
    display: none;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    z-index: 60;
    flex-shrink: 0;
}
.mob-search-wrap { position: relative; flex: 1; }
.mob-search-wrap svg {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #94a3b8;
    pointer-events: none;
}
.mob-search-input {
    flex: 1;
    width: 100%;
    height: 34px;
    padding: 0 58px 0 32px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: #f8fafc;
}
.mob-search-input:focus { border-color: #2563eb; background: #fff; }

/* ════════════════════════════════════════
   모바일 하단 탭바
════════════════════════════════════════ */
.mob-tabbar {
    display: none;
    height: 56px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    align-items: stretch;
    z-index: 60;
    flex-shrink: 0;
}
.mob-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    font-family: inherit;
    transition: all .15s;
    padding: 6px 2px 4px;
}
.mob-tab svg { width: 20px; height: 20px; }
.mob-tab.active { color: #2563eb; }
.mob-tab.tier-tab.active { color: #d97706; }

.mob-tab-write {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 2px 4px;
}
.mob-tab-write-icon {
    width: 34px;
    height: 34px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37,99,235,.4);
}

/* 모바일 플로팅 글쓰기 버튼 */
.mob-fab-write {
    display: none;
    position: fixed;
    bottom: 72px;
    right: 16px;
    z-index: 59;
    width: 48px;
    height: 48px;
    background: #2563eb;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
    transition: transform .15s, opacity .15s;
}
.mob-fab-write:active { transform: scale(.9); }

/* 더보기 오버레이 */
.mob-more-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.25);
}
.mob-more-overlay.open { display: block; }

/* 더보기 메뉴 */
.mob-more-menu {
    display: none;
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 16px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    border-radius: 16px 16px 0 0;
    flex-wrap: wrap;
    gap: 8px;
}
.mob-more-menu.open { display: flex; }
.mob-more-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    width: calc(50% - 4px);
    border: none;
    background: none;
    font-family: inherit;
}
.mob-more-item:active { background: #eff6ff; }
.mob-more-item svg { width: 18px; height: 18px; color: #64748b; }
.mob-nav-btn { display: none; }

/* ════════════════════════════════════════
   메인 콘텐츠 영역
════════════════════════════════════════ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ════════════════════════════════════════
   페이지 레이아웃 (탑바 아래 전체)
════════════════════════════════════════ */
.page-layout {
    flex: 1;
    display: flex;
    flex-direction: column;      /* 세로 스택: page-header → feed-row */
    width: 100%;
    padding: 16px 10px 0;
    min-height: 0;
    overflow: hidden;
}

/* page-main: 헤더 + 피드행을 세로로 담는 컬럼 */
.page-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* feed-row-wrap: 왼쪽 스페이서 + feed-row를 가운데 정렬 */
.feed-row-wrap {
    flex: 1;
    display: flex;
    flex-direction: row;
    min-height: 0;
    overflow: hidden;
    justify-content: center;
}

/* 왼쪽 빈 공간 — 사이드바와 동일 너비, 광고 예정 */
.feed-left-spacer {
    flex: 0 0 auto;
    width: 0;
}
@media (min-width: 1500px) {
    .feed-left-spacer { width: 260px; margin-right: 12px; }
}
.coupang-ad-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    justify-items: center;
}

/* feed-row: 콘텐츠 + 오른쪽 사이드바 (기존 레이아웃 유지) */
.feed-row {
    flex: 0 1 1222px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

/* feed-column: 실제 게시글/위키 스크롤 영역 */
.feed-column {
    flex: 7;
    min-width: 0;
    overflow-y: auto;
}

/* ════════════════════════════════════════
   페이지 헤더 (커뮤니티/위키 탭 카드)
════════════════════════════════════════ */
.page-header {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    padding: 10px 14px 10px;
    margin-bottom: 10px;
    width: 100%;               /* feed-column 너비 그대로 */
    flex-shrink: 0;
}
.page-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.page-header-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 99px;
    padding: 4px;
    width: fit-content;
    margin-bottom: 10px;
}
.page-header-tab {
    padding: 5px 0;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 80px;
    text-align: center;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    letter-spacing: -.01em;
}
.page-header-tab.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* 헤더 글쓰기 버튼 */
.page-header-write-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.page-header-write-btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }

/* ════════════════════════════════════════
   커뮤니티 패널 / 카테고리 탭
════════════════════════════════════════ */
#communityPanel { display: none; }
#communityPanel.active { display: block; }
#wikiPanel { display: none; position: relative; }
#wikiPanel.active { display: block; }

.community-header { padding: 4px 0 0; }

.cat-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0 12px;
    scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex-shrink: 0;
    padding: 5px 13px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.cat-tab.active { background: #0f172a; color: #fff; border-color: #0f172a; }

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 8px;
    gap: 8px;
}
.sort-group { display: flex; gap: 4px; }
.sort-btn {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.sort-btn.sort-period.active { background: #2563eb; color: #fff; }
.sort-btn.sort-metric.active { background: #0f172a; color: #fff; }

/* 탭 전환 버튼 (레거시) */
.content-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    flex-shrink: 0;
}
.content-tab {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
}
.content-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.content-panel { flex: 1; overflow-y: auto; position: relative; }

/* 모바일 커뮤니티 검색 */
.mob-community-search {
    display: none;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
.mob-community-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    background: #f8fafc;
}

/* ════════════════════════════════════════
   피드 카드
════════════════════════════════════════ */
.feed-card {
    margin: 0 0 10px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 14px 16px;
    cursor: pointer;
    transition: box-shadow .15s;
}
.feed-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.fc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fc-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#60a5fa,#818cf8); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: #fff; flex-shrink: 0; }
.fc-title { font-weight: 800; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-meta { font-size: 10px; color: #94a3b8; }
.fc-cat { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; flex-shrink: 0; }
.fc-media { max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; display: block; margin: 0 0 6px; }
.fc-body { position: relative; max-height: 400px; overflow: hidden; font-size: 13px; color: #374151; line-height: 1.7; margin-bottom: 4px; }
.fc-body.has-overflow::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(to top, rgba(255,255,255,1), transparent); pointer-events: none; }
.fc-stats { display: flex; gap: 10px; font-size: 11px; color: #94a3b8; margin-top: 8px; }
.feed-card-img { padding: 14px; }
/* 피드 페이지네이션 (PC) */
.feed-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 18px 0 24px; }
.feed-pg-btn { min-width: 34px; height: 34px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #475569; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }
.feed-pg-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.feed-pg-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.feed-pg-dots { color: #94a3b8; font-size: 14px; padding: 0 2px; }
/* 피드 더보기 (모바일) */
.feed-more-btn { width: 100%; max-width: 320px; padding: 12px 0; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; color: #475569; font-size: 13px; font-weight: 800; cursor: pointer; transition: all .15s; }
.feed-more-btn:active { background: #f1f5f9; transform: scale(.98); }

/* ════════════════════════════════════════
   오른쪽 메뉴 패널 (PC 전용)
════════════════════════════════════════ */
.community-right-panel {
    flex: 3;
    min-width: 0;
    max-width: 300px;
    align-self: stretch;
    overflow-y: auto;
    scrollbar-width: none;     /* Firefox */
}
.community-right-panel::-webkit-scrollbar { display: none; }

.right-panel-box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 12px;
}
.right-panel-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: .07em;
    margin-bottom: 8px;
}
.quick-btn .qimg { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: block; }

/* 다이아몬드 메뉴 */
.diamond-menu {
    padding: 8px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.diamond-row { display: flex; gap: 18px; }
.diamond-row + .diamond-row { margin-top: -24px; }
.diamond-row.shift { margin-left: 0; } /* align-items:center 덕분에 자동 가운데 정렬 */

.diamond-btn {
    width: 82px;
    height: 82px;
    transform: rotate(45deg);
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e8edf4;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.diamond-btn:hover { background: #eff6ff; border-color: #bfdbfe; transform: rotate(45deg) scale(1.06); }
.diamond-inner {
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.diamond-inner .dimg { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; display: block; }
.diamond-inner span { font-size: 9.5px; font-weight: 800; color: #475569; font-family: inherit; white-space: nowrap; }

/* 티어메이커 와이드 버튼 */
.tier-section { border-top: 1.5px solid #f1f5f9; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.tier-wide-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    color: #374151;
    font-family: inherit;
    transition: all .15s;
    text-align: left;
}
.tier-wide-btn:hover { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
.tier-wide-btn .dimg { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

/* 인기 토픽 */
.topic-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; gap: 6px; }
.topic-item:hover { background: #f1f5f9; }
.topic-tag { font-size: 12px; font-weight: 700; color: #2563eb; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-meta { font-size: 10px; color: #94a3b8; white-space: nowrap; }

/* ════════════════════════════════════════
   위키 컴포넌트
════════════════════════════════════════ */
#wikiContent { padding: 12px 0 24px; }

.char-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.char-card  { background: #fff; border-radius: 20px; border: 1px solid #e2e8f0; overflow: hidden; cursor: pointer; transition: transform .3s cubic-bezier(.175,.885,.32,1.275), box-shadow .3s; }
.char-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px -8px rgba(37,99,235,.2); }
.char-img   { height: 200px; background: linear-gradient(160deg,#e0e7ff,#f8fafc); position: relative; overflow: hidden; }
.char-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.char-card:hover .char-img img { transform: scale(1.07); }

.kibo-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.kibo-card  { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: all .2s; text-align: center; }
.kibo-card:hover { background: #eff6ff; border-color: #93c5fd; transform: translateY(-4px); }
.kibo-img   { width: 80px; height: 80px; border-radius: 16px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.kibo-img img { width: 100%; height: 100%; object-fit: cover; }

.item-list  { display: flex; flex-direction: column; gap: 10px; }
.item-row   { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all .15s; }
.item-row:hover { border-color: #93c5fd; }

.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.world-card { background: #fff; border-radius: 20px; border: 1px solid #e2e8f0; overflow: hidden; cursor: pointer; transition: all .2s; }
.world-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }

.news-list  { display: flex; flex-direction: column; gap: 10px; }
.news-row   { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: all .15s; }
.news-row:hover { border-color: #93c5fd; }

/* ═══ 게임 개요 카드 ═══ */
.db-hub-overview {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}
.db-hub-overview-banner {
    position: relative;
    overflow: hidden;
    background: #1e293b;
    max-height: 240px;
}
.db-hub-overview-banner img {
    width: 100%;
    display: block;
    opacity: .9;
}
.db-hub-overview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(15,23,42,.95) 100%);
}
.db-hub-overview-text {
    position: absolute;
    bottom: 12px;
    left: 16px;
}
.db-hub-overview-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.db-hub-overview-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
}
.db-hub-overview-body {
    padding: 14px 16px;
}
.db-hub-overview-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}
.db-hub-overview-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.db-hub-overview-info {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.db-hub-overview-row {
    font-size: 12px;
    color: #334155;
    display: flex;
    gap: 6px;
    align-items: center;
}
.db-hub-overview-key {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    min-width: 32px;
}
.db-hub-overview-status {
    font-size: 10px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 99px;
}

/* 최근 소식 (개요 카드 내) */
.db-hub-overview-recent {
    padding: 10px 16px 12px;
    border-top: 1px solid #f1f5f9;
}

/* 타임라인 (개요 카드 내) */
.db-hub-timeline {
    padding: 10px 16px 12px;
    border-top: 1px solid #f1f5f9;
}
.db-hub-timeline-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.db-hub-tl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    padding: 4px 0;
    border-left: 2px solid #e2e8f0;
    padding-left: 12px;
    margin-left: 4px;
}
.db-hub-tl-item--upcoming {
    opacity: .5;
    border-left-style: dashed;
}
.db-hub-tl-date {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    font-family: 'SF Mono', 'Fira Code', monospace;
    min-width: 52px;
    flex-shrink: 0;
}
.db-hub-tl-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    flex-shrink: 0;
}
.db-hub-tl--announce { background: #eff6ff; color: #1e40af; }
.db-hub-tl--cbt { background: #f0fdf4; color: #14532d; }
.db-hub-tl--event { background: #faf5ff; color: #581c87; }
.db-hub-tl--launch { background: #fff7ed; color: #7c2d12; }

/* ═══ DB 사이드바 ═══ */
.db-layout { display: flex; gap: 0; min-height: 100%; }
.db-layout-content { flex: 1; min-width: 0; }
.db-sidebar {
    width: 130px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    padding: 8px 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
}
.db-sidebar-group { margin-bottom: 12px; }
.db-sidebar-group-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: .5px;
    padding: 4px 12px;
    margin-bottom: 2px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.db-sidebar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    transition: all .1s;
    border-left: 2px solid transparent;
}
.db-sidebar-item:hover { background: #f8fafc; color: #0f172a; }
.db-sidebar-item.active {
    background: #eff6ff;
    color: #2563eb;
    border-left-color: #2563eb;
    font-weight: 700;
}
.db-sidebar-label { flex: 1; }
.db-sidebar-count {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.db-sidebar-item.active .db-sidebar-count { color: #2563eb; }
.db-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.db-sidebar-toggle-btn {
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.db-sidebar-toggle-btn.active {
    background: #2563eb;
    color: #fff;
}
.db-sidebar-toggle-btn:not(.active):hover {
    background: #f1f5f9;
}
.nav-update-n {
    position: absolute; top: 5px; left: 5px;
    font-size: 7px; font-weight: 900; color: #fff; background: #ef4444;
    width: 13px; height: 13px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; pointer-events: none; z-index: 1;
}
.mob-tab .nav-update-n { left: 15px; }
.db-sidebar-new-dot {
    font-size: 9px; font-weight: 800; color: #fff; background: #ef4444;
    padding: 1px 5px; border-radius: 3px; letter-spacing: .3px;
    animation: newPulse 2s infinite; margin-left: auto;
}
.db-sidebar-item--disabled { opacity: .45; cursor: default; }
.db-sidebar-item--disabled:hover { background: transparent; color: #334155; }
.db-sidebar-soon {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 99px;
}

/* 모바일 DB 탭 바 */
.db-mobile-tabs { display: none; }

@media (max-width: 768px) {
    .db-sidebar { display: none; }
    .db-layout { display: block; }
    .db-mobile-tabs {
        display: flex;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 1px solid #e2e8f0;
        margin: -12px -12px 0 -12px;
        padding: 0;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 5;
    }
    .db-mobile-tabs::-webkit-scrollbar { display: none; }
    .db-mobile-tab {
        padding: 8px 14px;
        font-size: 12px;
        font-weight: 600;
        color: #94a3b8;
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .db-mobile-tab.active {
        color: #2563eb;
        border-bottom-color: #2563eb;
        font-weight: 700;
    }
}

/* ═══ Phase 02.1: 컴팩트 뷰 컴포넌트 ═══ */

/* 1. View Toggle */
.view-toggle {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.view-toggle-btn {
    padding: 0 12px;
    height: 32px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: #fff;
    color: #64748b;
    transition: all .15s;
    white-space: nowrap;
}
.view-toggle-btn.active {
    background: #2563eb;
    color: #fff;
}
.view-toggle-btn:not(.active):hover {
    background: #f8fafc;
}

/* 2. Compact Character Card */
.char-grid.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.char-card-compact {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    min-width: 140px;
    position: relative;
}
.char-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px -4px rgba(37,99,235,.15);
    border-color: #93c5fd;
}
.char-card-compact .char-img {
    height: 100px;
    overflow: hidden;
    position: relative;
}
.char-card-compact .char-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.char-card-compact .char-info {
    padding: 8px;
}
.char-card-compact .char-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.char-card-compact .char-sub {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Compact Kibo Card */
.kibo-card-compact {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    min-width: 100px;
    position: relative;
}
.kibo-card-compact:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-4px);
}
.kibo-card-compact .kibo-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kibo-card-compact .kibo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.kibo-card-compact .kibo-name {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.kibo-card-compact .kibo-sub {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

/* 아이템/무기 컴팩트 카드 — kibo-card-compact와 동일 패턴 */
.item-card-compact,
.equip-card-compact {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    min-width: 100px;
    position: relative;
}
.item-card-compact:hover,
.equip-card-compact:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-4px);
}
.item-card-compact .item-thumb,
.equip-card-compact .item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-card-compact .item-thumb img,
.equip-card-compact .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. Table View */
.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.db-table-head th {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    padding: 8px 12px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}
.db-table-row td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    text-align: center;
}
.db-table-row:last-child td { border-bottom: none; }
.db-table-row:hover { background: #f8fafc; cursor: pointer; }
.db-table-row { transition: background .1s; }

/* 5. Detail Back Button */
.detail-back-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}
.detail-back-btn:hover { color: #2563eb; }

/* 6. Archives Grid */
.db-hub-archives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

/* Mobile responsive for table */
@media (max-width: 768px) {
    .db-table { font-size: 11px; }
    .db-table-head th, .db-table-row td { padding: 5px 4px; white-space: nowrap; }
    /* 모바일: 캐릭터 테이블 6번째 컬럼 숨김 */
    .db-table-head th:nth-child(6),
    .db-table-row td:nth-child(6) { display: none; }
    /* 썸네일 축소 */
    .db-table-row td:nth-child(2) img { width: 32px !important; height: 32px !important; }
    .db-table-row td:nth-child(2) { width: 32px !important; padding: 4px !important; }
    .char-unconfirmed-badge { display: none; }
}

/* ════════════════════════════════════════
   배지
════════════════════════════════════════ */
.nbadge { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 99px; margin-bottom: 6px; }
.nb-공지   { background: #fee2e2; color: #dc2626; }
.nb-업데이트 { background: #dbeafe; color: #2563eb; }
.nb-이벤트 { background: #fef9c3; color: #ca8a04; }
.nb-기록   { background: #f0fdf4; color: #16a34a; }
.nb-기타   { background: #f1f5f9; color: #64748b; }

.mbadge    { font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 99px; color: #fff; }
.mb-first  { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.mb-second { background: linear-gradient(135deg, #d97706, #dc2626); }

/* ════════════════════════════════════════
   모달 (공통)
════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    touch-action: manipulation;
}
.modal-overlay.open { display: flex; }
#tierMakerModal { z-index: 300; }

.modal-box {
    background: #fff;
    width: 100%;
    max-width: 680px;
    border-radius: 28px;
    max-height: 90dvh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 32px 64px -16px rgba(0,0,0,.3);
    overscroll-behavior: contain;
    touch-action: pan-y;
}
#detailBox { max-width: 520px; }
#detailBox.detail-wide { max-width: 800px; }

/* ════════════════════════════════════════
   티어메이커 모달
════════════════════════════════════════ */
#tierMakerModal .modal-box {
    max-width: 900px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 24px;
    max-height: 94dvh;
    overflow-x: hidden;
}
.tm-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 14px; border-bottom: 1px solid #1e293b; position: sticky; top: 0; background: #0f172a; z-index: 10; border-radius: 24px 24px 0 0; }
.tm-header-left { display: flex; align-items: center; gap: 10px; }
.tm-header h2 { font-size: 16px; font-weight: 900; color: #f8fafc; margin: 0; }
.tm-header-desc { font-size: 11px; color: #64748b; font-weight: 600; }
.tm-header-badge { font-size: 9px; font-weight: 800; background: linear-gradient(135deg,#2563eb,#7c3aed); color: #fff; padding: 2px 7px; border-radius: 99px; }
.tm-close { border: none; background: #1e293b; color: #94a3b8; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.tm-close:hover { background: #334155; color: #f8fafc; }

.tm-wrapper { padding: 14px 18px 20px; }
.tm-tiers { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.tm-tier-row { display: flex; align-items: stretch; min-height: 72px; border-radius: 10px; overflow: hidden; background: #1e293b; }
.tm-tier-label { width: 62px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: #fff; cursor: grab; transition: filter .15s; text-shadow: 0 1px 4px rgba(0,0,0,.4); text-align: center; padding: 4px 2px; line-height: 1.2; word-break: keep-all; user-select: none; -webkit-user-select: none; }
.tm-tier-label:hover { filter: brightness(1.2); }
/* 티어 순서 드래그 중 */
.tm-tier-dragging { opacity: 0.75; box-shadow: 0 8px 28px rgba(0,0,0,.55); position: relative; z-index: 20; outline: 2px solid #60a5fa; border-radius: 10px; }
.tm-tier-items { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 8px; min-height: 72px; align-items: flex-start; align-content: flex-start; border-left: 2px solid #0f172a; transition: background .1s; }
.tm-tier-items.drag-over { background: #1e3a5f; }
.tm-tier-actions { display: flex; align-items: center; padding: 0 7px; border-left: 2px solid #0f172a; }
.tm-btn-del { background: none; border: none; color: #475569; cursor: pointer; font-size: 13px; padding: 4px; border-radius: 6px; transition: all .15s; }
.tm-btn-del:hover { color: #ef4444; background: rgba(239,68,68,.15); }
.tm-item { width: 62px; cursor: grab; border-radius: 9px; overflow: hidden; background: #1e293b; transition: transform .15s, box-shadow .15s, opacity .15s; user-select: none; -webkit-user-select: none; flex-shrink: 0; }
.tm-item:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.tm-item.dragging { opacity: 0.3; transform: scale(0.9); cursor: grabbing; }
.tm-item img { width: 62px; height: 62px; object-fit: cover; display: block; pointer-events: none; }
.tm-item-name { font-size: 9px; font-weight: 700; text-align: center; padding: 3px 2px; background: #0f172a; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tm-add-tier { margin-bottom: 12px; }
.tm-btn-add { width: 100%; padding: 9px; background: #1e293b; border: 1.5px dashed #2d3f55; border-radius: 10px; color: #475569; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; font-family: inherit; }
.tm-btn-add:hover { border-color: #2563eb; color: #60a5fa; background: #172039; }

.tm-pool-section { background: #1e293b; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.tm-pool-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #0f172a; flex-wrap: wrap; gap: 8px; }
.tm-pool-title { font-size: 11px; font-weight: 800; color: #64748b; }
.tm-filter-btns { display: flex; gap: 5px; }
.tm-filter { padding: 3px 10px; border-radius: 99px; border: 1.5px solid #2d3f55; background: transparent; color: #475569; font-size: 10px; font-weight: 700; cursor: pointer; transition: all .15s; font-family: inherit; }
.tm-filter.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.tm-filter:hover:not(.active) { border-color: #475569; color: #94a3b8; }
.tm-pool { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px; min-height: 90px; align-content: flex-start; }
.tm-pool-empty { width: 100%; text-align: center; padding: 20px; color: #334155; font-size: 12px; font-weight: 600; }

.tm-footer { display: flex; gap: 8px; justify-content: flex-end; }
.tm-btn-reset { padding: 10px 18px; border-radius: 10px; border: 1.5px solid #2d3f55; background: transparent; color: #475569; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; font-family: inherit; }
.tm-btn-reset:hover { border-color: #ef4444; color: #ef4444; }
.tm-btn-save { padding: 10px 20px; border-radius: 10px; border: none; background: linear-gradient(135deg,#2563eb,#7c3aed); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; transition: all .15s; font-family: inherit; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.tm-btn-save:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,.45); }
.tm-btn-save:disabled { opacity: .55; transform: none; cursor: wait; }

/* 티어메이커 2단 레이아웃 (PC) */
.tm-two-col { display: flex; gap: 12px; align-items: flex-start; }
.tm-col-left { flex: 1; min-width: 0; }
.tm-col-right { width: 220px; flex-shrink: 0; }
.tm-pool-fill { display: flex; flex-direction: column; }
.tm-pool-scrollable { max-height: calc(94dvh - 140px); overflow-y: auto; align-content: flex-start; }

/* 공유 패널 */
.tm-share-panel { background: #1e293b; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.tm-share-title { font-size: 11px; font-weight: 800; color: #64748b; margin-bottom: 10px; }
.tm-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-share-tw   { display:flex;align-items:center;gap:6px;padding:9px 16px;border-radius:10px;border:none;background:#1d9bf0;color:#fff;font-size:12px;font-weight:800;cursor:pointer;font-family:inherit;transition:all .15s; }
.tm-share-tw:hover { background:#1a8cd8;transform:translateY(-1px); }
.tm-share-fb   { display:flex;align-items:center;gap:6px;padding:9px 16px;border-radius:10px;border:none;background:#1877f2;color:#fff;font-size:12px;font-weight:800;cursor:pointer;font-family:inherit;transition:all .15s; }
.tm-share-fb:hover { background:#1464d8;transform:translateY(-1px); }
.tm-share-copy { display:flex;align-items:center;gap:6px;padding:9px 16px;border-radius:10px;border:1.5px solid #2d3f55;background:transparent;color:#94a3b8;font-size:12px;font-weight:800;cursor:pointer;font-family:inherit;transition:all .15s; }
.tm-share-copy:hover { border-color:#475569;color:#e2e8f0; }

/* 글쓰기 내 티어 버튼 (컴팩트) */
.tm-selector { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-selector-btn { flex:1 1 calc(50% - 4px); min-width:0; padding:7px 4px; border-radius:10px; border:1.5px solid #e2e8f0; background:#f8fafc; cursor:pointer; text-align:center; transition:all .2s; font-family:inherit; display:flex; align-items:center; justify-content:center; gap:4px; }
.tm-selector-btn:hover { border-color:#2563eb; background:#eff6ff; }
.tm-sel-icon  { font-size:13px; line-height:1; flex-shrink:0; }
.tm-sel-label { font-size:11px; font-weight:800; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ════════════════════════════════════════
   대시보드
════════════════════════════════════════ */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; margin-bottom: 20px; }
.dash-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:20px; cursor:pointer; transition:all .2s; }
.dash-card:hover { border-color:#93c5fd; box-shadow:0 4px 16px rgba(37,99,235,.1); transform:translateY(-2px); }
.info-bar { padding:14px 18px; background:#fff; border:1px solid #e2e8f0; border-radius:14px; font-size:12px; color:#64748b; line-height:1.8; }

/* ═══ DB 허브 페이지 (학술 아카이브 스타일) ═══ */
.db-hub { max-width: 100%; margin: 0 auto; }

/* 헤더 */
.db-hub-header { text-align: center; margin-bottom: 16px; padding-bottom: 24px; border-bottom: 2px solid #0f172a; }
.db-hub-emblem {
    display: inline-block; font-family: 'Plus Jakarta Sans', monospace; font-size: 13px; font-weight: 900;
    letter-spacing: 3px; color: #fff; background: #0f172a; padding: 5px 14px; border-radius: 3px; margin-bottom: 12px;
}
.db-hub-title { font-size: 20px; font-weight: 800; letter-spacing: -.3px; margin: 0; color: #0f172a; }
.db-hub-sub { font-size: 11px; color: #64748b; font-weight: 500; margin-top: 4px; font-style: italic; }
.db-hub-meta { display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 14px; flex-wrap: wrap; }
.db-hub-meta-item { font-size: 10px; color: #64748b; font-weight: 600; padding: 0 10px; }
.db-hub-meta-key { font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 800; color: #0f172a; margin-right: 4px; letter-spacing: .5px; }
.db-hub-meta-sep { width: 1px; height: 10px; background: #cbd5e1; }

/* 섹션 */
.db-hub-section { margin-bottom: 28px; }
.db-hub-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.db-hub-section-label {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 10px; font-weight: 800;
    color: #64748b; letter-spacing: 2px; flex-shrink: 0;
}
.db-hub-section-line { flex: 1; height: 1px; background: #e2e8f0; }

/* 아카이브 카드 (기본) */
.db-hub-grid { display: flex; flex-direction: column; gap: 8px; }
.db-hub-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 14px 16px; cursor: pointer; transition: all .12s;
}
.db-hub-card:hover { background: #f8fafc; border-color: #94a3b8; }
.db-hub-card:active { transform: scale(.99); }
.db-hub-card-code {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 10px; font-weight: 800;
    color: #fff; background: #0f172a; padding: 3px 7px; border-radius: 3px;
    letter-spacing: 1px; flex-shrink: 0;
}
.db-hub-card-body { flex: 1; min-width: 0; }
.db-hub-card-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.db-hub-card-desc { font-size: 10px; color: #94a3b8; font-weight: 500; margin-top: 1px; }
.db-hub-card-arrow { flex-shrink: 0; }

/* 아카이브 카드 (썸네일 포함) */
.db-hub-archive-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 8px 16px; cursor: pointer; transition: all .12s;
}
.db-hub-archive-card:hover { border-color: #94a3b8; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.db-hub-archive-card:active { transform: scale(.99); }
.db-hub-archive-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.db-hub-archive-title { font-size: 14px; font-weight: 700; color: #0f172a; flex: 1; }
.db-hub-archive-count {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; font-weight: 800;
    color: #64748b; background: #f1f5f9; padding: 2px 8px; border-radius: 4px;
}
.db-hub-thumbs { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; overflow-x: auto; }
.db-hub-thumb {
    width: 48px; height: 48px; border-radius: 8px; object-fit: cover;
    border: 1.5px solid #e2e8f0; flex-shrink: 0; background: #f8fafc;
}
.db-hub-thumb-more {
    width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; border: 1.5px dashed #cbd5e1;
    font-size: 12px; font-weight: 800; color: #94a3b8;
}
.db-hub-archive-names { font-size: 11px; color: #94a3b8; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 최근 소식 */
.db-hub-recent { display: flex; flex-direction: column; gap: 0; }
.db-hub-recent-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 4px;
    border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background .1s;
}
.db-hub-recent-item:last-child { border-bottom: none; }
.db-hub-recent-item:hover { background: #f8fafc; }
.db-hub-recent-dot { width: 5px; height: 5px; border-radius: 50%; background: #2563eb; flex-shrink: 0; }
.db-hub-recent-title { font-size: 13px; font-weight: 600; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══ DB 업데이트 배너 ══ */
.db-update-banner {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe; border-radius: 10px; margin: 0 0 6px;
    cursor: pointer; transition: all .15s;
}
.db-update-banner:first-child { margin-top: 6px; }
@media (max-width: 768px) {
    .db-update-banner:first-child { margin-top: 10px; }
}
.db-update-banner:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37,99,235,.1); }
.db-update-banner-badge {
    font-size: 9px; font-weight: 800; color: #fff; background: #2563eb;
    padding: 2px 7px; border-radius: 4px; letter-spacing: .5px; flex-shrink: 0;
}
.db-update-banner-text { font-size: 12px; font-weight: 600; color: #1e40af; flex: 1; }
.db-update-banner-arrow { font-size: 12px; color: #93c5fd; }

/* ══ DB 업데이트 로그 페이지 ══ */
.db-update-log { padding: 0; }
.db-update-log-header {
    font-size: 16px; font-weight: 800; color: #0f172a; padding: 0 0 16px 0;
    border-bottom: 2px solid #e2e8f0; margin-bottom: 16px;
}
.db-update-new-badge {
    font-size: 9px; font-weight: 800; color: #fff; background: #ef4444;
    padding: 1px 6px; border-radius: 3px; letter-spacing: .5px; animation: newPulse 2s infinite;
    vertical-align: middle; margin-left: 4px;
}
@keyframes newPulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
.db-update-cat-label {
    font-size: 10px; font-weight: 800; color: #2563eb; background: #eff6ff;
    padding: 2px 8px; border-radius: 99px; white-space: nowrap;
}
.db-update-table-wrap { overflow-x: auto; }
.db-update-table {
    width: 100%; border-collapse: collapse; font-size: 12px;
}
.db-update-table thead th {
    font-size: 10px; font-weight: 800; color: #94a3b8; letter-spacing: .5px;
    text-align: left; padding: 8px 10px; border-bottom: 2px solid #e2e8f0;
    position: sticky; top: 0; background: #fff;
}
.db-update-table tbody td {
    padding: 6px 10px; border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.db-update-table tbody tr:hover { background: #f8fafc; }
.db-update-row--new { background: #fefce8; }
.db-update-row--new:hover { background: #fef9c3; }
.db-update-td-date {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 11px;
    font-weight: 700; color: #0f172a; white-space: nowrap; min-width: 80px;
}
.db-update-td-name { font-weight: 600; color: #334155; }
.db-update-td-count {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 11px;
    font-weight: 700; color: #2563eb; text-align: center; white-space: nowrap;
}
.db-update-td-cats { white-space: nowrap; }
.db-update-td-cats .db-update-cat-label { margin-right: 3px; }
.db-update-td-source {
    font-size: 10px; font-weight: 600; color: #94a3b8; white-space: nowrap;
}
@media (max-width: 768px) {
    .db-update-table { font-size: 11px; }
    .db-update-table thead th { padding: 6px 8px; }
    .db-update-table tbody td { padding: 5px 8px; }
    .db-update-td-date { font-size: 10px; min-width: 70px; }
    .db-update-td-count, .db-update-td-source,
    .db-update-table thead th:nth-child(4),
    .db-update-table thead th:nth-child(5) { display: none; }
    .db-update-td-name { font-size: 11px; min-width: 160px; }
    .db-update-table { min-width: 420px; }
}

/* 예정 항목 */
.db-hub-upcoming { display: flex; flex-direction: column; gap: 0; }
.db-hub-upcoming-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 4px;
    border-bottom: 1px solid #f1f5f9; font-size: 13px; font-weight: 600; color: #64748b;
}
.db-hub-upcoming-item:last-child { border-bottom: none; }
.db-hub-upcoming-item span:nth-child(2) { flex: 1; }

/* 상태 뱃지 */
.db-hub-status {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 9px; font-weight: 700;
    padding: 3px 8px; border-radius: 3px; flex-shrink: 0; letter-spacing: .5px;
}
.db-hub-status--wip { background: #fef3c7; color: #92400e; }
.db-hub-status--locked { background: #f1f5f9; color: #94a3b8; }

/* 푸터 */
.db-hub-footer {
    margin-top: 28px; padding-top: 16px; border-top: 1px solid #e2e8f0;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.db-hub-footer-label {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 9px; font-weight: 800;
    color: #94a3b8; letter-spacing: 1px;
}
.db-hub-footer-link { font-size: 11px; color: #2563eb; font-weight: 600; text-decoration: none; }
.db-hub-footer-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.db-hub-rel {
    font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 2px;
}
.db-hub-rel--official { background: #dcfce7; color: #166534; }
.db-hub-rel--cbt { background: #dbeafe; color: #1e40af; }
.db-hub-rel--community { background: #ede9fe; color: #5b21b6; }

/* 연구소 실험 카드 */
.db-hub-lab-grid { display: flex; flex-direction: column; gap: 6px; }
.db-hub-exp {
    background: #fff; border: 1px solid #e2e8f0; border-left: 3px solid #6366f1;
    border-radius: 6px; padding: 12px 16px; display: flex; flex-wrap: wrap;
    align-items: center; gap: 6px 10px; cursor: default;
}
.db-hub-exp--locked { opacity: .4; }
.db-hub-exp-id {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 10px; font-weight: 800;
    color: #6366f1; letter-spacing: .5px; flex-shrink: 0;
}
.db-hub-exp-title { font-size: 13px; font-weight: 700; color: #0f172a; flex: 1; min-width: 100px; }
.db-hub-exp-desc { font-size: 10px; color: #94a3b8; font-weight: 500; width: 100%; }
.db-hub-card--pending { opacity: .55; cursor: default; }
.db-hub-card--pending:hover { background: #fff; border-color: #e2e8f0; }
.db-hub-card--locked { opacity: .35; cursor: default; }
.db-hub-card--locked:hover { background: #fff; border-color: #e2e8f0; }

/* ═══ PC 대시보드 레이아웃 ═══ */
@media (min-width: 769px) {
    .db-hub { max-width: 100%; box-sizing: border-box; overflow: hidden; }

    /* 썸네일 더 크게 */
    .db-hub-thumb { width: 56px; height: 56px; border-radius: 10px; }
    .db-hub-thumb-more { width: 56px; height: 56px; border-radius: 10px; }
}
.wiki-title { font-size:22px; font-weight:900; margin:0 0 4px; }
.wiki-sub   { font-size:13px; color:#94a3b8; font-weight:600; margin:0 0 20px; }

/* ═══ 용어집 ═══ */
.glossary-search { margin-bottom:8px; }
.glossary-search-input { width:100%; padding:8px 12px; border:1.5px solid #e2e8f0; border-radius:10px; font-size:13px; font-family:inherit; outline:none; transition:border-color .15s; }
.glossary-search-input:focus { border-color:#2563eb; }
.glossary-filter { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:6px; }
.glossary-filter-btn { padding:4px 10px; border-radius:99px; font-size:10px; font-weight:700; border:1.5px solid #e2e8f0; background:#fff; color:#64748b; cursor:pointer; transition:all .15s; }
.glossary-filter-btn.active { background:#0f172a; color:#fff; border-color:#0f172a; }
.glossary-filter-btn:hover { border-color:#94a3b8; }
.glossary-filter-count { font-size:9px; opacity:.6; margin-left:2px; }
.glossary-index { display:flex; gap:3px; flex-wrap:wrap; margin-bottom:6px; padding:6px 0; border-top:1px solid #f1f5f9; border-bottom:1px solid #f1f5f9; }
.glossary-index-btn { width:26px; height:26px; display:flex; align-items:center; justify-content:center; border-radius:5px; font-size:11px; font-weight:800; color:#64748b; background:#f8fafc; text-decoration:none; transition:all .15s; }
.glossary-index-btn:hover { background:#e2e8f0; color:#0f172a; }
.glossary-group { margin-bottom:16px; }
.glossary-group-letter { font-size:18px; font-weight:900; color:#0f172a; padding:4px 0 4px 6px; border-bottom:2px solid #e2e8f0; margin-bottom:4px; position:sticky; top:40px; background:#fff; z-index:3; }
@media (min-width: 769px) { .glossary-group-letter { top:0; } }
.glossary-entry { padding:12px 0 12px 6px; border-bottom:1px solid #f1f5f9; }
.glossary-entry:last-child { border-bottom:none; }
.glossary-entry-header { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-bottom:4px; }
.glossary-term { font-size:15px; font-weight:800; color:#0f172a; }
.glossary-term-en { font-size:12px; font-weight:600; color:#94a3b8; }
.glossary-desc { font-size:13px; color:#475569; line-height:1.7; margin-bottom:6px; }
.glossary-meta { display:flex; gap:4px; flex-wrap:wrap; }
.glossary-cat-badge { font-size:10px; font-weight:700; padding:2px 8px; border-radius:99px; }
.glossary-tag { font-size:10px; font-weight:600; padding:2px 7px; border-radius:99px; background:#f1f5f9; color:#64748b; }
.filter-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn { padding: 6px 14px; border-radius: 99px; font-size: 11px; font-weight: 700; border: 1.5px solid #e2e8f0; background: #fff; color: #64748b; cursor: pointer; transition: all .15s; }
.filter-btn.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.empty-state { text-align: center; padding: 80px 20px; color: #94a3b8; }

/* ════════════════════════════════════════
   유틸리티
════════════════════════════════════════ */
[contenteditable][placeholder]:empty:before { content: attr(placeholder); color: #94a3b8; pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }
.loading-block { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0; gap: 12px; color: #94a3b8; font-size: 13px; font-weight: 600; }

/* ════════════════════════════════════════
   SNS 패널
════════════════════════════════════════ */
#snsPanel { display: none; }
#snsPanel.active { display: block; }

.sns-filter-bar {
    display: flex;
    gap: 6px;
    padding: 8px 4px 12px;
}
.sns-filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.sns-filter-btn.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.sns-filter-btn svg { flex-shrink: 0; }

.sns-card {
    display: flex;
    flex-direction: row;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
    transition: all .15s;
    cursor: pointer;
}
.sns-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-1px); }

.sns-card-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f1f5f9;
}

.sns-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.sns-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sns-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sns-card-meta {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sns-card-time {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.sns-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: .02em;
    flex-shrink: 0;
}
.sns-badge-yt { background: #fee2e2; color: #dc2626; }
.sns-badge-rd { background: #fff7ed; color: #ea580c; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ════════════════════════════════════════
   모바일 (768px 이하)
════════════════════════════════════════ */
@media (max-width: 768px) {
    /* 레이아웃 전환 */
    .pc-topbar  { display: none; }
    .mob-topbar { display: flex; }
    .mob-tabbar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 100;
    }
    .mob-community-search { display: block; }
    .page-header-top { display: none; }

    /* 페이지 레이아웃 */
    .page-layout {
        padding: 0 0 56px 0;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .page-main {
        flex: none;
        min-height: 0;
        width: 100%;
        overflow: visible;
    }

    /* 피드 행: 모바일에서는 세로 스택 */
    .feed-row-wrap {
        overflow: visible;
        display: block;
    }
    .feed-row {
        flex-direction: column;
        overflow: visible;
    }
    .feed-column { overflow: visible; }

    /* 사이드 패널 숨김 (모바일) */
    .feed-left-spacer { display: none !important; }
    .community-right-panel { display: none !important; }

    /* SNS 카드 모바일 */
    .sns-card { padding: 10px; gap: 10px; border-radius: 12px; margin-bottom: 6px; }
    .sns-card-thumb { width: 90px; height: 64px; border-radius: 8px; }
    .sns-card-title { font-size: 12px; }
    .sns-filter-bar { padding: 6px 4px 8px; }
    .sns-filter-btn { padding: 4px 10px; font-size: 10px; }

    /* 헤더 카드 → 플랫 스타일 */
    .page-header {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 8px 12px 0;
        margin-bottom: 0;
        max-width: 100%;
    }

    /* 모바일 전체 UI 밀도 높이기 */
    .feed-card { padding: 10px 12px; margin: 0 0 6px; border-radius: 12px; }
    .fc-header { gap: 6px; margin-bottom: 6px; }
    .fc-avatar { width: 24px; height: 24px; font-size: 9px; }
    .fc-title { font-size: 12px; }
    .fc-meta { font-size: 9px; }
    .fc-cat { font-size: 9px; padding: 2px 6px; }
    .fc-media { max-height: 200px; border-radius: 6px; margin: 0 0 4px; }
    .fc-body { max-height: 280px; font-size: 12px; line-height: 1.6; }
    .fc-stats { gap: 8px; font-size: 10px; margin-top: 6px; }
    .cat-tabs { padding: 6px 0 8px; gap: 4px; }
    .cat-tab { padding: 4px 10px; font-size: 10px; }
    .sort-bar { padding: 0 0 6px; }
    .sort-btn { padding: 2px 8px; font-size: 10px; }
    .feed-pagination { padding: 12px 0 18px; }
    .feed-pg-btn { min-width: 28px; height: 28px; font-size: 11px; padding: 0 7px; }
    .feed-more-btn { padding: 10px 0; font-size: 12px; border-radius: 10px; }
    .community-header { padding: 2px 0 0; }

    /* 위키 */
    #wikiContent { padding: 0 12px 12px; }
    .char-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .kibo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .content-tabs { display: none; }
    .content-panel { padding-bottom: 0; }
}

@media (max-width: 480px) {
    /* 티어메이커 2단 → 1단 */
    .tm-two-col { flex-direction: column; }
    .tm-two-col > * { width: 100% !important; flex-shrink: unset !important; }
    .tm-col-right { width: 100%; }
    .tm-pool-scrollable { max-height: 220px; }
    #tierMakerModal .modal-box { max-height: 92dvh; }

    /* 티어메이커 아이템 크기 */
    .tm-tier-label { width: 48px; font-size: 13px; }
    .tm-item { width: 54px; }
    .tm-item img { width: 54px; height: 54px; }

    /* 딜미터 슬롯 모바일 축소 */
    .deal-slot { width: 72px !important; height: 72px !important; border-radius: 12px !important; }

    .site-footer { padding-bottom: 72px; } /* 모바일 탭바 높이만큼 */

    /* Phase 2: 모바일 반응형 */
    .detail-hero { padding: 24px 16px; }
    .detail-info-row dt { width: 60px; }
}

/* ════════════════════════════════════════
   SITE FOOTER
════════════════════════════════════════ */
.site-footer {
    background: transparent;
    padding: 24px 16px;
    text-align: center;
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a {
    color: #64748b; text-decoration: none; font-size: 12px; font-weight: 600;
    transition: color .2s;
}
.footer-links a:hover { color: #94a3b8; }
.footer-copy { font-size: 11px; color: #475569; margin-bottom: 4px; }
.footer-contact { font-size: 11px; color: #475569; }

/* ══ 공지 카드 (커뮤니티 상단) ══ */
.notice-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all .15s;
}
/* 카페 배너 반짝임 */
.cafe-banner-shine::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%);
    animation: bannerShine 1.5s ease-in-out 0.5s 1 forwards;
    transform: translateX(-120%);
    pointer-events: none;
}
@keyframes bannerShine {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.notice-card:hover { border-color: #d97706; box-shadow: 0 2px 8px rgba(245,158,11,.15); }
.notice-card.open .notice-arrow { transform: rotate(180deg); }
.notice-card .notice-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.7;
    transition: max-height .3s ease, padding .3s ease;
}
.notice-card.open .notice-body {
    max-height: 2000px;
    padding: 0 14px 14px;
    overflow: visible;
}
/* ══ 이모티콘 ══ */
.emoticon { display: inline-block; width: 3.6em; height: 3.6em; vertical-align: middle; margin: 0 2px; object-fit: contain; }
.emo-picker-wrap { display: flex; gap: 4px; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; flex-wrap: wrap; }
.emo-picker-wrap::-webkit-scrollbar { display: none; }
.emo-picker-btn { background: none; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 2px; cursor: pointer; line-height: 0; transition: all .15s; flex-shrink: 0; display: none; }
.emo-picker-btn img { width: 20px; height: 20px; object-fit: contain; }
.emo-picker-btn:hover { border-color: #2563eb; background: #eff6ff; }
.emo-picker-btn.active { border-color: #2563eb; background: #eff6ff; }
.emo-picker {
    display: none;
    background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px;
    margin-top: 4px; width: 100%;
}
.emo-picker.open { display: block; }
.emo-picker-row { display: flex; gap: 3px; padding: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.emo-picker-row::-webkit-scrollbar { display: none; }
.emo-picker-item { width: 40px; height: 40px; flex-shrink: 0; border: 1.5px solid transparent; border-radius: 8px; cursor: pointer; padding: 3px; display: flex; align-items: center; justify-content: center; transition: all .1s; background: #f8fafc; }
.emo-picker-item:hover { border-color: #2563eb; background: #eff6ff; transform: scale(1.1); }
.emo-picker-item:active { transform: scale(0.95); }
.emo-picker-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
[contenteditable][data-placeholder]:empty::before { content: attr(data-placeholder); color: #94a3b8; pointer-events: none; }

/* ══════════════════════════════════════
   InfoStatus 배지 (Phase 1)
   ══════════════════════════════════════ */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
}
.info-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.info-badge--official  { background: #f0fdf4; color: #14532d; }
.info-badge--official .info-badge__dot  { background: #22c55e; }
.info-badge--cbt       { background: #eff6ff; color: #1e3a8a; }
.info-badge--cbt .info-badge__dot       { background: #3b82f6; }
.info-badge--community { background: #faf5ff; color: #581c87; }
.info-badge--community .info-badge__dot { background: #a855f7; }
.info-badge--rumor     { background: #fff7ed; color: #7c2d12; }
.info-badge--rumor .info-badge__dot     { background: #f97316; }
.info-badge--unknown   { background: #f9fafb; color: #374151; }
.info-badge--unknown .info-badge__dot   { background: #6b7280; }

/* ══════════════════════════════════════
   점선 카드 — 미확인 필드 (Phase 1)
   ══════════════════════════════════════ */
.field-unknown {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    padding: 16px;
    min-height: 48px;
    opacity: 0.5;
}
.field-unknown__label {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}

/* ══ Phase 2: Character & Kibo DB ══ */

/* 필터 바 */
.db-filter-toggle {
    width: 32px;
    height: 32px;
    border: 2px solid #2563eb;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    margin-right: 8px;
}
.db-filter-toggle:hover { background: #2563eb; color: #fff; }
.db-filter-toggle.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.db-filter-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
    line-height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.db-filter-close:hover { background: #e2e8f0; color: #0f172a; }

.db-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
}
/* 테이블 모드에서는 오버레이 */
.db-filter-bar.overlay {
    position: absolute;
    top: 0;
    left: 40px;
    min-width: 280px;
    width: fit-content;
    padding-right: 40px;
    z-index: 10;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.db-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.db-filter-label {
    font-size: 11px;
    font-weight: 800;
    color: #334155;
    min-width: 30px;
    flex-shrink: 0;
}

/* 필터 칩 */
.db-filter-chip {
    padding: 4px 10px;
    border-radius: 99px;
    border: 1.5px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    line-height: 1;
}
.db-filter-chip:hover {
    border-color: #93c5fd;
    color: #2563eb;
    background: #f0f7ff;
}
.db-filter-chip.active {
    border-color: #2563eb;
    color: #fff;
    background: #2563eb;
}

/* ═══ 캐릭터 상세뷰 (Figma 매칭) ═══ */
.char-detail-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-top: 1px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    margin: 0 -16px 16px;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 5;
}
.char-detail-tabs::-webkit-scrollbar { display: none; }
.char-detail-tab {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}
.char-detail-tab:hover { color: #334155; }
.char-detail-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 700;
}
.char-detail-content { padding: 0; }
.char-detail-hero {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.char-detail-img {
    width: 280px;
    max-height: 360px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f1f5f9;
}
.char-detail-info { flex: 1; min-width: 0; }
.char-detail-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.char-detail-sub {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}
.char-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}
.char-detail-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    padding-right: 16px;
}
.detail-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
    margin-bottom: 4px;
}
.detail-badge-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}
.char-detail-subtabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}
.char-detail-subtab {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
.char-detail-subtab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.char-detail-section {
    margin-bottom: 20px;
}
.char-detail-section-label {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}
.char-related-group { margin-bottom: 12px; }
.char-related-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 6px;
}
.char-related-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
}
.char-related-item:hover { color: #2563eb; }
.char-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.char-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: transform .15s, box-shadow .15s;
}
.char-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.char-gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}
.char-gallery-caption {
    font-size: 10px;
    color: #94a3b8;
    padding: 4px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gallery-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}
.gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.char-detail-skills { margin-bottom: 16px; }
.char-skill-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fff;
}
.char-skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f1f5f9;
}
.char-skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.char-skill-body { flex: 1; min-width: 0; }
.char-skill-name { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.char-skill-desc { font-size: 12px; color: #64748b; line-height: 1.6; }
.skill-stats-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.skill-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
}
.skill-stat-label {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
}
.skill-stat-value {
    font-size: 11px;
    font-weight: 800;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.char-skill-meta { font-size: 10px; color: #94a3b8; margin-top: 4px; }
.item-source-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 10px;
    flex-wrap: wrap;
}
.item-src-label {
    font-weight: 700;
    color: #94a3b8;
    margin-left: 2px;
}
.item-src-sep {
    width: 1px;
    height: 10px;
    background: #e2e8f0;
    margin: 0 4px;
}
.item-source-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.item-source-link:hover { text-decoration: underline; }
.item-source-name { color: #64748b; font-weight: 600; }
.item-source-date { color: #cbd5e1; }
.char-story-block {
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}
.char-story-block:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .char-detail-hero { flex-direction: column; gap: 12px; }
    .char-detail-img { width: 100%; max-height: 300px; height: auto; }
}

/* 상세 히어로 섹션 */
.detail-hero {
    background: linear-gradient(160deg, #e0e7ff, #f8fafc);
    padding: 32px 24px;
    border-radius: 28px 28px 0 0;
    position: relative;
}

/* 기본 정보 테이블 (dl/dt/dd) */
.detail-info-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.detail-info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.detail-info-row:last-child {
    border-bottom: none;
}
.detail-info-row dt {
    width: 80px;
    flex-shrink: 0;
    font-weight: 700;
    color: #64748b;
}
.detail-info-row dd {
    flex: 1;
    margin: 0;
    color: #0f172a;
}

/* 상세 섹션 카드 */
.detail-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px 16px;
    margin-top: 16px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

/* ═══ 캐릭터 타입 뱃지 ═══ */
.char-player-badge { font-size:9px; font-weight:700; padding:1px 5px; border-radius:4px; background:#fae8ff; color:#a21caf; vertical-align:middle; }
.char-playable-badge { font-size:9px; font-weight:700; padding:1px 5px; border-radius:4px; background:#dbeafe; color:#1d4ed8; vertical-align:middle; }
.char-npc-badge { font-size:9px; font-weight:700; padding:1px 5px; border-radius:4px; background:#fef3c7; color:#92400e; vertical-align:middle; }
.char-unconfirmed-badge { font-size:9px; font-weight:700; padding:1px 5px; border-radius:4px; background:#f1f5f9; color:#94a3b8; vertical-align:middle; }

/* ═══ 월드맵 ═══ */
.wmap-hero { border-radius:16px; overflow:hidden; margin-bottom:20px; background:#1a1a2e; text-align:center; }
.wmap-hero-map { position:relative; cursor:pointer; display:inline-block; max-width:100%; line-height:0; }
.wmap-hero-img { max-width:100%; max-height:500px; display:block; }
.wmap-hero-caption { font-size:12px; color:#94a3b8; padding:8px 0 10px; }
.wmap-pin { position:absolute; background:none; border:none; cursor:pointer; display:flex; align-items:center; gap:4px; z-index:2; padding:0; }
.wmap-pin-dot { width:10px; height:10px; border-radius:50%; background:#2563eb; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.3); flex-shrink:0; transition:transform .2s; }
.wmap-pin:hover .wmap-pin-dot { transform:scale(1.3); background:#1d4ed8; }
.wmap-pin-label { font-size:9px; font-weight:700; color:#fff; background:rgba(0,0,0,.55); padding:1px 5px; border-radius:3px; white-space:nowrap; backdrop-filter:blur(4px); }
.wmap-pin:hover .wmap-pin-label { background:rgba(37,99,235,.85); }
@media (max-width:768px) {
    .wmap-pin-label { font-size:8px; padding:1px 4px; }
    .wmap-pin-dot { width:8px; height:8px; }
}
.wmap-section-title { font-size:15px; font-weight:800; color:#0f172a; margin-bottom:14px; letter-spacing:-.01em; }
.wmap-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; }
.wmap-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; overflow:hidden; cursor:pointer; transition:all .2s; }
.wmap-card:hover { border-color:#93c5fd; transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.08); }
.wmap-card-img { height:160px; background:#f8fafc; display:flex; align-items:center; justify-content:center; padding:16px; }
.wmap-card-img img { max-width:100%; max-height:100%; object-fit:contain; }
.wmap-mystery { background:#f8fafc; }
.wmap-mystery img { mask-image:radial-gradient(circle, #000 40%, transparent 70%); -webkit-mask-image:radial-gradient(circle, #000 40%, transparent 70%); }
.wmap-card-body { padding:14px 16px 16px; }
.wmap-card-name { font-size:15px; font-weight:700; color:#0f172a; }
.wmap-card-en { font-size:11px; color:#94a3b8; margin-bottom:6px; }
.wmap-card-desc { font-size:12px; color:#64748b; line-height:1.5; margin-bottom:8px; }
.wmap-card-badge { font-size:10px; font-weight:600; padding:2px 8px; border-radius:6px; }
@media (max-width:768px) {
    .wmap-grid { grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:10px; }
    .wmap-card-img { height:120px; padding:12px; }
}

/* ═══ 세계관 안내서 ═══ */
.world-hero { position:relative; height:220px; border-radius:16px; overflow:hidden; margin-bottom:24px; }
.world-hero-img { width:100%; height:100%; object-fit:cover; }
.world-hero-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 50%, transparent); }
.world-hero-text { position:absolute; bottom:20px; left:24px; color:#fff; }
.world-hero-title { font-size:28px; font-weight:900; letter-spacing:-.02em; }
.world-hero-sub { font-size:13px; font-weight:600; opacity:.85; margin-top:4px; }
.world-hero-sub2 { font-size:11px; font-weight:500; opacity:.5; margin-top:2px; font-style:italic; }

.world-intro { padding:16px 0; margin-bottom:20px; border-bottom:1px solid #f1f5f9; }
.world-intro p { font-size:13px; color:#64748b; line-height:1.8; margin:0; }
.world-intro p + p { margin-top:4px; }

.world-section { margin-bottom:28px; }
.world-section-header { display:flex; align-items:center; gap:8px; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid #e2e8f0; }
.world-section-header h3 { font-size:17px; font-weight:900; color:#0f172a; margin:0; }
.world-section-body { font-size:13px; color:#334155; line-height:1.7; }
.world-section-body p { margin:0 0 8px; }
.world-section-img { margin-bottom:14px; border-radius:12px; overflow:hidden; }
.world-section-img img { width:100%; height:auto; display:block; }

.world-note { font-size:11px; color:#94a3b8; margin-top:10px; line-height:1.6; }
.world-lore-quote { font-size:14px; color:#334155; font-style:italic; line-height:1.8; margin:0 0 10px; padding:10px 16px; border-left:3px solid #2563eb; background:#f8fafc; border-radius:0 8px 8px 0; }
.world-element-lore { margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.world-element-lore-block { padding:12px 16px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; }
.world-element-lore-block p { font-size:13px; color:#475569; line-height:1.7; margin:0 0 4px; }
.world-element-lore-block p:last-child { margin-bottom:0; }
.world-element-lore-label { font-size:12px; font-weight:800; color:#0f172a; margin-bottom:6px; }
.world-sub-label { font-size:11px; font-weight:800; color:#64748b; text-transform:uppercase; letter-spacing:.05em; margin:14px 0 6px; }
.world-lore-list { padding-left:20px; margin:8px 0 12px; }
.world-lore-list li { font-size:13px; color:#334155; line-height:1.7; margin-bottom:6px; }
.world-starborn-facts { background:#0f172a; border-radius:12px; padding:16px 20px; margin:8px 0; }
.world-starborn-facts ol { padding-left:20px; margin:0; }
.world-starborn-facts li { font-size:12px; color:#cbd5e1; line-height:1.8; margin-bottom:4px; }

.world-element-grid { display:grid; grid-template-columns:repeat(5, 1fr); gap:6px; margin:10px 0; }
.world-elem { padding:8px 10px; border-radius:8px; display:flex; flex-direction:column; gap:2px; }

.world-role-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; }
.world-race-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:10px; }
.world-race-card { background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:12px 14px; }
.world-race-name { font-size:14px; font-weight:800; color:#0f172a; margin-bottom:4px; }
.world-race-en { font-size:11px; font-weight:600; color:#94a3b8; }
.world-race-desc { font-size:12px; color:#475569; line-height:1.6; margin-bottom:6px; }
.world-race-chars { font-size:11px; color:#2563eb; font-weight:600; }

.world-kibo-roles { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin:10px 0; }
.world-kibo-role { background:#f0fdf4; border:1px solid #dcfce7; border-radius:8px; padding:10px; text-align:center; }
.world-kibo-role strong { display:block; font-size:13px; color:#166534; margin-bottom:2px; }
.world-kibo-role span { font-size:11px; color:#64748b; }

.world-growth { display:flex; align-items:center; gap:8px; margin:8px 0; flex-wrap:wrap; }
.world-growth-stage { padding:6px 14px; border-radius:8px; background:#eff6ff; color:#2563eb; font-size:12px; font-weight:700; }
.world-growth-arrow { color:#cbd5e1; font-weight:700; }
.world-growth-special { background:#fef3c7; color:#d97706; }

.world-kibo-class { display:flex; flex-direction:column; gap:4px; margin:6px 0; }
.world-kibo-class span { font-size:12px; color:#475569; line-height:1.6; }

.world-region-map { margin-bottom:14px; border-radius:12px; overflow:hidden; }
.world-region-map img { width:100%; height:auto; display:block; }
.world-region-list { display:flex; flex-direction:column; gap:8px; }
.world-region-item { padding:10px 14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; }
.world-region-name { font-size:13px; font-weight:800; color:#0f172a; }
.world-region-en { font-size:11px; font-weight:600; color:#94a3b8; }
.world-region-desc { font-size:12px; color:#64748b; margin-top:3px; line-height:1.5; }

.world-timeline-list { display:flex; flex-direction:column; gap:6px; }
.world-tl-item { display:flex; gap:12px; padding:8px 0; border-bottom:1px solid #f1f5f9; }
.world-tl-date { flex-shrink:0; width:64px; font-size:12px; font-weight:800; color:#2563eb; }
.world-tl-text { font-size:12px; color:#334155; line-height:1.5; }

.world-references { margin-top:32px; padding:16px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; }
.world-ref-title { font-size:11px; font-weight:800; color:#94a3b8; text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px; }
.world-ref-item { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid #f1f5f9; text-decoration:none; color:#334155; transition:color .15s; }
.world-ref-item:hover { color:#2563eb; }
.world-ref-item:last-child { border-bottom:none; }
.world-ref-name { font-size:12px; font-weight:600; }
.world-ref-type { font-size:10px; color:#94a3b8; background:#f1f5f9; padding:2px 6px; border-radius:4px; }

@media (max-width: 768px) {
    .world-hero { height:160px; }
    .world-hero-title { font-size:22px; }
    .world-element-grid { grid-template-columns:repeat(3, 1fr); }
    .world-race-grid { grid-template-columns:1fr; }
    .world-kibo-roles { grid-template-columns:repeat(2, 1fr); }
}

/* 비활성 사이드바 항목 */
.pc-nav-item[disabled] {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}
