/* ============================================
   BIGTICKDAN - 통합 스타일시트 v1
   레이드 전광판 + 캐릭터 상세 페이지
   ============================================ */

:root {
    /* Base Dark Theme - Lost Ark Style */
    --bg-color: #1a1d23;
    --neon-blue: #d4a44c;
    --neon-purple: #c9952c;
    --neon-pink: #e8b954;
    --glass-bg: rgba(30, 33, 40, 0.6);
    --glass-border: rgba(212, 164, 76, 0.15);

    /* Character Detail (Dark Glass Theme) */
    --card-bg: rgba(26, 29, 35, 0.9);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e8e6e3;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --accent-purple: #c9952c;
    --accent-blue: #d4a44c;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-green: #22c55e;
    --accent-teal: #14b8a6;
    --accent-yellow: #eab308;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 5px;
    --font-main: 'Noto Sans KR', 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: #fff;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
    height: 100vh;
}

#pixi-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* UI 방해 방지 */
}

/* Sidebar styles removed */

/* =====================
   GLOBAL NAVBAR (KLOA Style)
   ===================== */
.global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(22, 25, 30, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 164, 76, 0.1);
    z-index: 2000;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}



.nav-logo span {
    font-size: 1.1rem;
    font-weight: 950;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #e8d5a3, #d4a44c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
}

.nav-menu li:hover {
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2px 10px;
    align-items: center;
}

.nav-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
    padding: 6px;
    width: 180px;
}

.nav-search-bar button {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
}

/* =====================
   MAIN CONTENT WRAPPER
   ===================== */
.main-content {
    margin-top: 0;
    padding-top: 64px;
    min-height: 100vh;
    box-sizing: border-box;
}

.view-panel {
    display: none;
    position: relative;
    z-index: 10;
    padding: 2rem;
    min-height: calc(100vh - 64px);
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

.view-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   HOME LANDING (KLOA Hero Style)
   ===================== */
#landing-view {
    padding: 0 !important;
    min-height: calc(100vh - 64px);
    position: relative;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Landing stays transparent for stars background */
}

#landing-view.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.hero-section {
    padding: 3.5rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

/* ============================
   NEON SCROLLING BANNER
   ============================ */
.neon-banner {
    width: 100%;
    max-width: 800px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    position: relative;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: linear-gradient(135deg, rgba(22, 25, 30, 0.95), rgba(32, 36, 42, 0.8));
    box-shadow:
        0 0 20px rgba(56, 189, 248, 0.12),
        0 0 60px rgba(37, 99, 235, 0.08),
        inset 0 0 40px rgba(37, 99, 235, 0.05);
    animation: neonBorderPulse 3s ease-in-out infinite alternate;
}

/* 좌우 페이드 마스크 */
.neon-banner::before,
.neon-banner::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.neon-banner::before {
    left: 0;
    background: linear-gradient(to right, rgba(22, 25, 30, 1), transparent);
}

.neon-banner::after {
    right: 0;
    background: linear-gradient(to left, rgba(22, 25, 30, 1), transparent);
}

.neon-slide-track {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 40px;
    white-space: nowrap;
    will-change: transform;
    animation: neonScroll 16s linear infinite;
}

.neon-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #7dd3fc;
    text-shadow:
        0 0 6px #38bdf8,
        0 0 18px rgba(37, 99, 235, 0.6),
        0 0 40px rgba(56, 189, 248, 0.3);
    flex-shrink: 0;
    animation: neonTextGlow 2.5s ease-in-out infinite alternate;
}

.neon-divider {
    font-size: 10px;
    color: #d4a44c;
    text-shadow: 0 0 8px rgba(212, 164, 76, 0.5);
    flex-shrink: 0;
    opacity: 0.6;
}

.neon-name {
    color: #c4b5fd !important;
    text-shadow:
        0 0 6px #a78bfa,
        0 0 18px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(167, 139, 250, 0.3) !important;
    letter-spacing: 1px;
}

@keyframes neonScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes neonBorderPulse {
    0% {
        border-color: rgba(56, 189, 248, 0.2);
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.08), 0 0 60px rgba(37, 99, 235, 0.05);
    }

    100% {
        border-color: rgba(56, 189, 248, 0.45);
        box-shadow: 0 0 30px rgba(56, 189, 248, 0.2), 0 0 80px rgba(37, 99, 235, 0.12);
    }
}

@keyframes neonTextGlow {
    0% {
        text-shadow: 0 0 6px #38bdf8, 0 0 18px rgba(37, 99, 235, 0.6), 0 0 40px rgba(56, 189, 248, 0.3);
    }

    100% {
        text-shadow: 0 0 10px #7dd3fc, 0 0 28px rgba(59, 130, 246, 0.8), 0 0 60px rgba(56, 189, 248, 0.5), 0 0 90px rgba(37, 99, 235, 0.2);
    }
}

.hero-logo {
    text-align: center;
    margin-bottom: 3rem;
}



.hero-logo h1 {
    font-size: 4rem;
    font-weight: 1000;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.beta-badge {
    font-size: 0.3em;
    font-weight: 700;
    color: #d4a44c;
    background: rgba(212, 164, 76, 0.15);
    border: 1px solid rgba(212, 164, 76, 0.4);
    border-radius: 4px;
    padding: 2px 6px;
    vertical-align: super;
    letter-spacing: 1px;
    -webkit-text-fill-color: #d4a44c;
    margin-left: 2px;
}

.beta-badge.nav-beta {
    font-size: 0.45em;
    padding: 1px 4px;
}

.hero-logo p {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-search-wrapper {
    width: 100%;
    max-width: 800px;
}

.hero-search-box {
    display: flex;
    background: #0f172a;
    border: 2px solid #c9952c;
    border-radius: 50px;
    padding: 6px 8px;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.25);
    transition: 0.3s;
}

.hero-search-box:focus-within {
    transform: scale(1.02);
    box-shadow: 0 0 70px rgba(37, 99, 235, 0.4);
}

.hero-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.4rem;
    padding: 12px 30px;
    font-family: var(--font-main);
    color-scheme: dark;
}

.hero-search-box input:-webkit-autofill,
.hero-search-box input:-webkit-autofill:hover,
.hero-search-box input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0f172a inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}

.hero-search-btn {
    background: #c9952c;
    border: none;
    border-radius: 40px;
    padding: 0 40px;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.hero-search-btn .btn-icon {
    display: none;
}

.hero-search-btn:hover {
    background: #1d4ed8;
}

.hero-tags {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.hero-tags span {
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.hero-tags span:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.2);
    border-color: #c9952c;
}

/* ============================
   LANDING PREVIEW SECTION
============================ */
/* 게임 일정 바 */
.game-schedule-bar {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 0 2rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.schedule-date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    max-width: 68px;
    background: rgba(212, 164, 76, 0.08);
    border: 1px solid rgba(212, 164, 76, 0.25);
    border-radius: 16px;
    padding: 10px 8px;
    text-align: center;
}
.schedule-date-card .date-month {
    font-size: 0.65rem;
    color: #d4a44c;
    font-weight: 600;
    letter-spacing: 1px;
}
.schedule-date-card .date-day {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.schedule-date-card .date-dow {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}
.schedule-card {
    flex: 1;
    min-width: 200px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: default;
    transition: border-color 0.2s;
}
.schedule-card:hover { border-color: rgba(255,255,255,0.18); }
.schedule-card.boss { border-left: 3px solid #ef4444; }
.schedule-card.chaos { border-left: 3px solid #a855f7; }
.schedule-card.rest { opacity: 0.5; }
.schedule-card.rest .schedule-name { color: #64748b; font-style: italic; }
.schedule-card.active { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.05); }
.schedule-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.schedule-icon-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.schedule-info { flex: 1; min-width: 0; }
.schedule-category { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.schedule-name { font-size: 13px; color: #e2e8f0; font-weight: 600; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-timer { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule-timer.upcoming { color: #f59e0b; }
.schedule-timer.soon { color: #ef4444; animation: pulse 1s infinite; }
.schedule-timer.active { color: #22c55e; }
.schedule-loading { color: #475569; font-size: 13px; padding: 12px; text-align: center; width: 100%; }

@media (max-width: 768px) {
    .game-schedule-bar { gap: 8px; padding: 0 1rem; }
    .schedule-card { min-width: 150px; padding: 10px 12px; }
    .schedule-timer { font-size: 15px; }
}

/* 뉴스 섹션 */
.news-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 0 2rem;
}
.news-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.news-tab {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: #64748b;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.news-tab.active, .news-tab:hover {
    background: rgba(186,140,255,0.15);
    border-color: rgba(186,140,255,0.3);
    color: #e2e8f0;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}
.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.news-item:hover { background: rgba(255,255,255,0.05); }
.news-item-thumb {
    width: 52px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.news-item-title {
    flex: 1;
    font-size: 13px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-item-date {
    font-size: 11px;
    color: #475569;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .news-section { padding: 0 1rem; }
    .news-item-thumb { display: none; }
}

.landing-preview {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.landing-stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px 40px;
    width: 100%;
    justify-content: center;
}

.landing-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 40px;
}

.landing-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.landing-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.landing-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    align-self: flex-start;
}

.landing-top5 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.landing-top5-loading {
    text-align: center;
    color: #475569;
    padding: 30px;
    font-size: 14px;
}

.landing-rank-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.landing-rank-card:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.lrc-rank {
    font-size: 1.4rem;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.lrc-info {
    flex: 1;
    min-width: 0;
}

.lrc-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lrc-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 3px;
}

.lrc-cp {
    text-align: right;
    flex-shrink: 0;
}

.lrc-cp-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #c9952c;
}

.lrc-cp-label {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}

.landing-more-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.landing-more-btn:hover {
    border-color: #c9952c;
    color: #fff;
    background: rgba(37, 99, 235, 0.1);
}

@media (max-width: 640px) {
    .landing-stats-row {
        padding: 16px 20px;
        gap: 0;
    }
    .landing-stat-item {
        padding: 0 20px;
    }
    .landing-stat-val {
        font-size: 1.2rem;
    }
}

/* 최근 검색 */
.recent-searches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.recent-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.recent-chip {
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.2s;
}

.recent-chip:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.2);
    border-color: #c9952c;
}

.recent-clear {
    margin-left: auto;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    transition: 0.15s;
}

.recent-clear:hover {
    color: #ef4444;
}

/* 검색 에러 토스트 */
.search-error-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
    white-space: nowrap;
}

.search-error-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 검색창 에러 상태 */
.hero-search-box input.search-error {
    color: #fca5a5;
}

.hero-search-box:has(input.search-error) {
    border-color: #ef4444;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.3);
}

/* Sub View Header */
.sub-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.sub-title h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.mini-rank-item:nth-child(3) .rank-num {
    color: #cd7f32;
}

.rank-char-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rank-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ddd;
}

.rank-class {
    font-size: 0.65rem;
    color: #666;
}

.rank-lv {
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
}

.dash-empty {
    text-align: center;
    padding: 3rem;
    color: #444;
    font-size: 0.9rem;
}

/* Sidebar Toggle Logic */
.sidebar-hidden .sidebar {
    display: none;
}

/* Character Detail Navigation */
.char-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb span {
    cursor: pointer;
    transition: 0.2s;
}

.breadcrumb span:hover {
    color: #fff;
}

.breadcrumb .sep {
    color: #334155 !important;
    cursor: default;
}

#breadcrumb-nick {
    color: #94a3b8;
    font-weight: 700;
}

.char-actions .refresh-btn {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #c9952c;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.char-actions .refresh-btn:hover {
    background: #c9952c;
    color: #fff;
}

/* =====================
   VIEW PANEL SYSTEM
   ===================== */
/* Consolidated above */

/* =====================
   RAID VIEW
   ===================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 10px 0;
}

.sub-page-header {
    position: sticky;
    top: 0;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 1rem 2rem;
    margin-top: -2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-logo span {
    font-weight: 950;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #e8d5a3, #d4a44c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-search {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 2rem;
}

.header-search-box {
    width: 100%;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2px 15px;
    transition: 0.3s;
}

.header-search-box:focus-within {
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.08);
}

.header-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 0;
    font-family: var(--font-main);
}

.header-search-box button {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 950;
    margin-bottom: 0.1rem;
    background: linear-gradient(to right, #fff, #a0a0c0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle {
    font-size: 0.85rem;
    color: #a0a0c0;
}

/* Character view styles follow */


/* =====================
   CHARACTER VIEW
   ===================== */
#character-view {
    background: transparent;
    position: relative;
}

#character-view .loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.95);
    z-index: 9999;
    display: none;
    place-items: center;
}

#character-view .loading-overlay.active {
    display: grid;
}

.loader {
    text-align: center;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.char-back-btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.char-back-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all 0.2s;
}

.char-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-purple);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    white-space: nowrap;
}

.refresh-btn:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.refresh-icon {
    font-size: 16px;
}

/* MAIN LAYOUT */
.page-wrapper {
    display: flex;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    padding: 0 12px;
}

/* PROFILE COLUMN (LEFT) */
.profile-column {
    width: 240px;
    min-width: 240px;
    position: sticky;
    top: 0;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
}

.profile-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1d26 0%, #2d1f4e 100%);
    background-size: cover;
    background-position: center top;
    position: relative;
}

.profile-overlay {
    padding: 12px 14px;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 29, 38, 0.95) 100%);
    margin-top: -80px;
    position: relative;
    z-index: 1;
    color: #fff;
}

.class-level {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: 4px;
}

.char-name {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    color: #fff;
}

.item-level-row,
.combat-power-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-weight: 700;
}

.il-icon {
    font-size: 16px;
    opacity: 0.7;
}

.il-value {
    font-size: 22px;
    color: #fff;
}

.cp-icon {
    font-size: 14px;
}

.cp-value {
    font-size: 20px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-meta {
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.meta-label {
    min-width: 44px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xs);
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 11px;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Ranking */
.ranking-section {
    padding: 8px 14px 10px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.rank-scope {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.rank-val {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
}

/* Benchmark Section */
.benchmark-section {
    padding: 10px 14px 12px;
    border-top: 1px solid var(--card-border);
}
.benchmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.benchmark-level {
    font-size: 11px;
    font-weight: 700;
    color: #d4a44c;
    background: rgba(212,164,76,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}
.benchmark-sample {
    font-size: 10px;
    color: #64748b;
}
.benchmark-bar-wrap {
    margin-bottom: 8px;
}
.benchmark-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: visible;
}
.benchmark-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    transition: width 0.5s ease;
}
.benchmark-marker {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 12px;
    background: #fff;
    border-radius: 1px;
    transform: translateX(-50%);
    box-shadow: 0 0 4px rgba(255,255,255,0.5);
    transition: left 0.5s ease;
}
.benchmark-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.bm-label {
    font-size: 10px;
    color: #64748b;
}
.bm-value {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    margin-left: 4px;
}
.benchmark-verdict {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Core Summary */
.core-summary {
    margin-top: 14px;
    padding: 16px;
}

.core-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.core-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.core-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 72px;
}

.core-node img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
}

.core-node .core-pts {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(34, 197, 94, 0.1);
    padding: 1px 5px;
    border-radius: 10px;
}

.core-node .core-name {
    font-size: 8px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.15;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* SPEC COLUMN (RIGHT) */
.spec-column {
    flex: 1;
    min-width: 0;
}

/* TABS */
.tab-bar {
    display: flex;
    gap: 4px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 5px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    margin-bottom: 14px;
    overflow-x: auto;
}

.tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-family: var(--font-main);
    white-space: nowrap;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab.active {
    background: var(--accent-purple);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =====================
   RAID & RANKING VIEWS (Light Theme Panels)
   ===================== */
#raid-view,
#ranking-view {
    background: transparent;
    color: var(--text-primary);
}

/* SECTION CARD */
.section-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.badge-yellow {
    background: var(--accent-yellow);
}

.badge-purple {
    background: var(--accent-purple);
}

.badge-red {
    background: var(--accent-red);
}

.badge-orange {
    background: var(--accent-orange);
}

.badge-blue {
    background: var(--accent-blue);
}

.badge-teal {
    background: var(--accent-teal);
}

.badge-green {
    background: var(--accent-green);
}

.badge-gold {
    background: linear-gradient(135deg, #b8860b, #ffd700);
}

/* CONTENT ROW */
.content-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.content-row .section-card {
    flex: 1;
    min-width: 0;
}

.content-row .section-card.half {
    flex: 1;
}

/* 4-column row */
.content-row.quad-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.content-row.quad-row .section-card.quarter {
    min-width: 0;
}

/* EQUIPMENT STYLES */
.equip-section,
.accessory-section {
    flex: 1;
}

.equip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
    transition: background 0.15s;
}

.equip-item:hover {
    background: rgba(255, 255, 255, 0.03);
    margin: 0 -18px;
    padding: 8px 18px;
}

.equip-item:last-child {
    border-bottom: none;
}

.equip-icon-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    overflow: visible;
}

.equip-icon-fallback {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.equip-icon-wrap img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.equip-icon-wrap.grade-ancient img {
    border-color: #c4903a;
}

.equip-icon-wrap.grade-t4-ancient img {
    border-color: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.equip-icon-wrap.grade-relic img {
    border-color: #ff6e00;
}

.equip-icon-wrap.grade-legend img {
    border-color: #f5a623;
}

.equip-icon-wrap.grade-hero img {
    border-color: #a855f7;
}

.equip-icon-wrap.grade-rare img {
    border-color: #d4a44c;
}

.equip-tier-tag {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #1f2937;
    border: 1px solid #374151;
    color: #e5e7eb;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1.2;
    z-index: 2;
}

.equip-details {
    flex: 1;
    min-width: 0;
}

.equip-name-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equip-name-text.grade-ancient-text {
    color: #c4903a;
}

.equip-name-text.grade-t4-ancient-text {
    color: #a855f7;
    text-shadow: 0 0 4px rgba(168, 85, 247, 0.2);
}

.equip-name-text.grade-relic-text {
    color: #ff6e00;
}

.equip-name-text.grade-legend-text {
    color: #f5a623;
}

.equip-name-text.grade-hero-text {
    color: #a855f7;
}

.equip-quality-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 16px;
    padding: 0 4px;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.equip-level-text {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Accessory specific */
.acc-effect-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.acc-effect {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.acc-effect .effect-icon {
    font-size: 10px;
    opacity: 0.5;
}

.acc-effect .effect-value {
    color: var(--accent-green);
    font-weight: 600;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.stats-grid.combat {
    grid-template-columns: 1fr;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.stat-item .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.stat-item .stat-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item .stat-value.highlight {
    color: var(--accent-purple);
    font-size: 14px;
}

.stats-total {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: auto;
}

/* ENGRAVINGS */
.engraving-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.engraving-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.engraving-row img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}


.engraving-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.engraving-level {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
}

/* GEMS */
.gem-header {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.gem-group-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.gem-group-label span {
    font-weight: 700;
    color: var(--text-primary);
}

.gem-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gem-node {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.15s;
}

.gem-node:hover {
    transform: scale(1.1);
}

.gem-node img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-xs);
    border: 2px solid #d1d5db;
}

.gem-node.grade-ancient img {
    border-color: #c4903a;
}

.gem-node.grade-relic img {
    border-color: #ff6e00;
}

.gem-node.grade-legend img {
    border-color: #f5a623;
}

.gem-node.grade-hero img {
    border-color: #a855f7;
}

.gem-lv-tag {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--accent-purple);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid var(--card-bg);
}

/* GEM EFFECTS (Grid Layout) */
.gem-effects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.gem-effect-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.gem-effect-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.gem-effect-desc .effect-positive {
    color: var(--accent-green);
    font-weight: 600;
}

/* ARK PASSIVE */
.ark-passive-section {
    overflow: hidden;
}

.ark-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.ark-type-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.ark-type-badge.evo {
    background: #ef4444;
}

.ark-type-badge.enl {
    background: #d4a44c;
}

.ark-type-badge.leap {
    background: #22c55e;
}

.ark-points {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-purple);
    margin-right: 4px;
}

.ark-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-right: 14px;
}

.ark-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.ark-col {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ark-col:not(:last-child) {
    border-right: 1px solid var(--card-border);
}

.ark-node-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ark-node-row img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
}

.ark-node-tier {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.ark-node-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* CARDS */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.card-node {
    width: 90px;
    text-align: center;
}

.card-node img {
    width: 72px;
    height: 90px;
    border-radius: var(--radius-xs);
    border: 2px solid var(--card-border);
    object-fit: cover;
}

.card-node .card-awake {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-top: 3px;
}

.card-node .card-awake .awake-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fbbf24;
    border: 1.5px solid #d97706;
}

.card-node .card-awake .awake-dot.empty {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.card-node .card-char-name {

    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 3px;
    font-weight: 500;
}

.card-effect-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-left: auto;
}

/* SIBLINGS */
.siblings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.sibling-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    transition: all 0.15s;
    cursor: pointer;
}

.sibling-card:hover {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.03);
    transform: translateY(-1px);
}

.sibling-card.current {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.05);
}

.sibling-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    font-size: 16px;
}

.sibling-info {
    flex: 1;
}

.sibling-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.sibling-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

.sibling-ilvl {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-purple);
}

/* =====================
   ABILITY STONE (어빌리티 스톤)
   ===================== */
.ability-stone-section {
    overflow: hidden;
}

.stone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border);
}

.stone-info {
    flex: 1;
}

.stone-stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
}

.stone-stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stone-stat-value {
    color: var(--accent-green);
    font-weight: 700;
}

.stone-engravings {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stone-engraving-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stone-eng-name {
    min-width: 60px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stone-engraving-row.negative .stone-eng-name {
    color: #ef4444;
}

.stone-engraving-row.high .stone-eng-name {
    color: var(--accent-purple);
}

.stone-eng-dots {
    display: flex;
    gap: 2px;
    flex: 1;
}

.stone-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    transition: all 0.15s;
}

.stone-dot.filled {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.3);
}

.stone-engraving-row.negative .stone-dot.filled {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
}

.stone-engraving-row.high .stone-dot.filled {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 4px rgba(124, 58, 237, 0.3);
}

.stone-eng-lv {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue);
    min-width: 32px;
    text-align: right;
}

.stone-engraving-row.negative .stone-eng-lv {
    color: #ef4444;
}

.stone-engraving-row.high .stone-eng-lv {
    color: var(--accent-purple);
}

/* =====================
   BOJU (보주)
   ===================== */
.boju-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.boju-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.boju-info-text {
    flex: 1;
}

.boju-effect {
    padding: 6px 8px;
    background: rgba(124, 58, 237, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-sm);
}

.boju-effect-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-purple);
    margin-bottom: 3px;
}

.boju-effect-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.boju-rakn {
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 600;
}

.boju-rakn strong {
    color: var(--accent-orange);
    font-size: 14px;
}

/* =====================
   BRACELET (팔찌 개선)
   ===================== */
.bracelet-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bracelet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.bracelet-info-text {
    flex: 1;
}

.bracelet-pct {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--accent-green);
    padding: 2px 8px;
    border-radius: 999px;
}

.bracelet-stats {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bracelet-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 6px;
    background: #f9fafb;
    border-radius: var(--radius-xs);
}

.bracelet-stat-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.bracelet-stat-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
}

.bracelet-special {
    font-size: 11px;
    color: var(--accent-blue);
    font-weight: 500;
    padding: 2px 0;
    line-height: 1.3;
}

.bracelet-passive {
    margin-top: 4px;
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
    padding: 3px 6px;
    background: rgba(34, 197, 94, 0.06);
    border-radius: var(--radius-xs);
}

/* GEM EFFECTS CARD (젬 효과 합산 / 박스형 디자인) */
.gem-effect-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.gem-effect-row:hover {
    background: rgba(124, 58, 237, 0.05);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.gem-agg-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
}

.gem-agg-lv {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-purple);
}

.gem-effect-icon-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.gem-effect-icon-wrap img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    border: 2px solid var(--card-border);
}

.gem-effect-body {
    flex: 1;
    min-width: 0;
}

.gem-effect-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.gem-effect-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.gem-effect-detail .effect-positive {
    color: var(--accent-green);
    font-weight: 700;
}

.gem-effect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.gem-effect-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.gem-tag-dmg {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.gem-tag-cd {
    background: rgba(59, 130, 246, 0.08);
    color: #d4a44c;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.gem-tag-other {
    background: rgba(107, 114, 128, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.15);
}

.gem-effect-option {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 500;
    margin-top: 3px;
}

/* GEM SUMMARY (보석 합산 효과) */
.gem-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-sm);
}

.gem-summary-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
    white-space: nowrap;
}

.gem-summary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* GEM NODE TYPE INDICATOR */
.gem-node.gem-dmg .gem-lv-tag {
    background: #ef4444;
}

.gem-node.gem-cd .gem-lv-tag {
    background: #d4a44c;
}

/* =====================
   CORE NODE COLORS (질서/혼돈)
   ===================== */
.core-node.core-order img {
    border-color: #c4903a;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.core-node.core-chaos img {
    border-color: #c9952c;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.core-node.core-order .core-pts {
    color: #c4903a;
    background: rgba(196, 144, 58, 0.1);
}

.core-node.core-chaos .core-pts {
    color: #c9952c;
    background: rgba(124, 58, 237, 0.1);
}

.core-node.core-evo img {
    border-color: #ef4444;
}

.core-node.core-enl img {
    border-color: #d4a44c;
}

.core-node.core-leap img {
    border-color: #22c55e;
}

.core-node.core-evo .core-pts {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.core-node.core-enl .core-pts {
    color: #d4a44c;
    background: rgba(59, 130, 246, 0.1);
}

.core-node.core-leap .core-pts {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

/* TOOLTIP */
.game-tooltip {
    position: fixed;
    z-index: 10000;
    background: #1a1d26;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 16px;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    border: 1px solid #374151;
    display: none;
}

.game-tooltip.active {
    opacity: 1;
    display: block;
    pointer-events: auto;
}

.tooltip-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #374151;
}

.tooltip-icon {
    width: 44px;
    height: 44px;
    background-size: cover;
    border-radius: var(--radius-xs);
    border: 2px solid #555;
    flex-shrink: 0;
}

.tooltip-title {
    font-size: 14px;
    font-weight: 700;
}

.tooltip-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.tooltip-body {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.6;
}

.tooltip-body .level-text {
    display: block;
    margin-bottom: 6px;
    color: #fbbf24;
    font-weight: 600;
}

.tooltip-body .effect-text {
    display: block;
    margin-top: 8px;
    color: #a78bfa;
    font-weight: 500;
}

/* QUALITY COLORS */
.quality-100 {
    background: #f59e0b;
}

.quality-90 {
    background: #ef4444;
}

.quality-70 {
    background: #a855f7;
}

.quality-30 {
    background: #d4a44c;
}

.quality-0 {
    background: #22c55e;
}

/* Grade Colors (used in raid modals) */
.grade-ancient {
    background: linear-gradient(135deg, #3d3325 0%, #d59e33 100%) !important;
}

.grade-relic {
    background: linear-gradient(135deg, #341a02 0%, #a83e06 100%) !important;
}

.grade-legend {
    background: linear-gradient(135deg, #2b1f06 0%, #d49400 100%) !important;
}

.grade-hero {
    background: linear-gradient(135deg, #1b0c36 0%, #8138f5 100%) !important;
}

.grade-rare {
    background: linear-gradient(135deg, #0b1a36 0%, #1e78ff 100%) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    .profile-column {
        width: 100%;
        min-width: unset;
        position: static;
    }

    .ark-columns {
        grid-template-columns: 1fr;
    }

    .ark-col:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }

    .content-row {
        flex-direction: column;
    }

    .content-row.quad-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 200px;
        min-width: 200px;
        padding: 1rem;
    }

    .page-wrapper {
        padding: 0 8px;
        margin: 12px auto;
    }

    .stats-grid.combat {
        grid-template-columns: 1fr;
    }
}

/* =====================
   EQUIPMENT & GRADE STYLES (KLOA Style)
   ===================== */
.equip-icon-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
    /* 기본 테두리 */
}

.equip-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    z-index: 10;
}

/* KLOA 장비 뒷배경 + 테두리 등급 색상 
   (기존 .grade-ancient 덮어쓰기 위해 !important 사용) */
.grade-advanced.equip-icon-wrap {
    background: linear-gradient(135deg, #1c2718, #2a3a23) !important;
    border-color: #55b232 !important;
}

.grade-rare.equip-icon-wrap {
    background: linear-gradient(135deg, #182234, #1f2e46) !important;
    border-color: #0077ff !important;
}

.grade-hero.equip-icon-wrap {
    background: linear-gradient(135deg, #27142b, #3c1e42) !important;
    border-color: #b018e6 !important;
}

.grade-legend.equip-icon-wrap {
    background: linear-gradient(135deg, #2a1f10, #3e2e17) !important;
    border-color: #fca700 !important;
}

.grade-relic.equip-icon-wrap {
    background: linear-gradient(135deg, #2e1713, #46221d) !important;
    border-color: #ff3b00 !important;
}

.grade-ancient.equip-icon-wrap {
    background: linear-gradient(135deg, #2b251f, #3d342b) !important;
    border-color: #e3c180 !important;
}

/* 세르카 장비 (ifm_item) - 게임 느낌 파란 electric glow 프레임 */
.grade-native-frame.equip-icon-wrap {
    background: linear-gradient(135deg, #03080f, #071428) !important;
    border: 2px solid #3b9eff !important;
    border-radius: 4px !important;
    box-shadow:
        0 0 0 1px rgba(59, 158, 255, 0.3),
        0 0 8px rgba(59, 158, 255, 0.8),
        0 0 16px rgba(59, 158, 255, 0.4),
        inset 0 0 10px rgba(59, 158, 255, 0.15) !important;
}

.equip-icon-wrap.grade-native-frame img {
    border: none !important;
    box-shadow: none !important;
}

/* 코너 장식 효과 */
.grade-native-frame.equip-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(59,158,255,0.4) 0%, transparent 40%, transparent 60%, rgba(59,158,255,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 에스더 / T4 계승 특수 보라/주황 */
.grade-t4-ancient {
    background: linear-gradient(135deg, #1f1430, #2d184a) !important;
    border-color: #a164ff !important;
}

/* 에스더 등급 - 최고위 등급 (세르카 등 에스더 무기) */
.grade-esther.equip-icon-wrap {
    background: linear-gradient(135deg, #1a0a2e, #2d1060) !important;
    border-color: #e8b954 !important;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.5) !important;
}

.equip-icon-wrap.grade-esther img {
    border-color: #e8b954;
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}

/* 에스더 장비 뱃지 */
.equip-grade-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 2;
}

.badge-esther {
    background: linear-gradient(135deg, #c9952c, #e8b954);
    color: #fff;
}

/* 텍스트 색상 우선순위 */
.grade-advanced-text {
    color: #55b232 !important;
    font-weight: 700;
}

.grade-rare-text {
    color: #4b9fff !important;
    font-weight: 700;
}

.grade-hero-text {
    color: #d06bff !important;
    font-weight: 700;
}

.grade-legend-text {
    color: #fca700 !important;
    font-weight: 700;
}

.grade-relic-text {
    color: #ff5e33 !important;
    font-weight: 700;
}

.grade-ancient-text {
    color: #e3c180 !important;
    font-weight: 700;
}

.grade-t4-ancient-text {
    color: #ba8cff !important;
    font-weight: 700;
}

.grade-esther-text {
    color: #e8b954 !important;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.4);
}

/* Empty Slots (Premium Placeholder) */
.equip-item.empty {
    opacity: 0.6;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    min-height: 50px;
}

.equip-item.empty .equip-icon-wrap {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.equip-item.empty .equip-icon-wrap::after {
    content: '?';
    color: rgba(255, 255, 255, 0.1);
    font-size: 20px;
    font-weight: 900;
}

.equip-item.empty .equip-name-text {
    color: var(--text-muted) !important;
    font-size: 13px;
    font-weight: 500;
}

.gem-node.empty {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.4;
}

.gem-node.empty::after {
    content: '';
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

/* 제련(강화) 수치 뱃지 */
.equip-reinforce {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #0d0d12;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 품질 게이지 바 */
.quality-bar-wrap {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-right: 6px;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.quality-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.quality-number {
    font-size: 12px;
    font-weight: 900;
    width: 24px;
    text-align: center;
}

/* 장신구 연마 배지 */
.polish-tag {
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 0 4px rgba(186, 140, 255, 0.6);
}

/* T4 등급 뱃지 (좌측 위 상단 고정 & 덮어쓰기) */
.equip-tier-tag {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-family: Arial, sans-serif;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =====================
   RANKING VIEW STYLES (KLOA Deluxe)
   ===================== */
.ranking-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.filter-group {
    display: flex;
    gap: 8px;
}

.ranking-filters select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    min-width: 100px;
}

/* Ensure dropdown options are visible on dark theme */
.ranking-filters select option {
    background-color: #0f172a;
    color: #fff;
}

.power-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.power-slider-wrap input[type="number"] {
    width: 65px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--neon-blue);
    text-align: center;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px;
    font-family: var(--font-main);
}

.slider-container {
    width: 180px;
    display: flex;
    align-items: center;
}

.slider-container input[type="range"] {
    width: 100%;
    accent-color: var(--neon-blue);
    cursor: pointer;
}

/* Podium Enhanced */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px 0 60px;
}

.podium-item {
    background: rgba(26, 29, 35, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.podium-image-bg {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center top;
    background-color: #0f172a;
    position: relative;
    transition: transform 0.3s;
}

.podium-image-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(26, 29, 35, 0.95));
}

.podium-content {
    padding: 10px 20px 25px;
    background: transparent;
    flex: 1;
    position: relative;
    z-index: 5;
}

.podium-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.podium-item:hover .podium-image-bg {
    transform: scale(1.05);
}

.podium-item.first {
    height: 460px;
    order: 2;
    border: 3px solid #fbbf24;
}

.first .podium-image-bg {
    height: 280px;
}

.podium-item.second {
    height: 400px;
    order: 1;
    border: 1px solid #94a3b8;
}

.podium-item.third {
    height: 360px;
    order: 3;
    border: 1px solid #b45309;
}

.podium-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.6rem;
    color: #fff;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.podium-item.first .podium-rank {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.podium-item.second .podium-rank {
    background: linear-gradient(135deg, #94a3b8, #475569);
}

.podium-item.third .podium-rank {
    background: linear-gradient(135deg, #b45309, #78350f);
}

.podium-char-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-top: 10px;
}

.podium-class-server {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.podium-level {
    font-size: 2rem;
    font-weight: 950;
    color: var(--accent-purple);
}

.podium-power {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ff9f1c;
    margin-bottom: 5px;
}

.podium-special {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.first .podium-special {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

/* Table Deluxe Rows */
.ranking-table th {
    background: rgba(26, 29, 35, 0.9);
    padding: 16px 15px;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    text-align: center;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* 정확한 100% 배분을 위해 고정 레이아웃 사용 */
}

.ranking-table th.col-power {
    color: #ffa500 !important;
}

.ranking-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

/* 7개 컬럼 합계 100% 맞춤 (5+28+12+15+12+18+10 = 100) */
.col-rank {
    width: 5%;
    text-align: center !important;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.col-char {
    width: 28%;
    font-weight: 850;
    font-size: 16px;
    color: #fff;
    text-align: center;
}

.col-level {
    width: 12%;
    font-weight: 900;
    color: var(--accent-purple);
    font-size: 15px;
    text-align: center;
}

.col-power {
    width: 15%;
    font-weight: 900;
    color: #ffa500;
    font-size: 15px;
    text-align: center;
}

.col-class {
    width: 12%;
    font-weight: 700;
    color: #cbd5e1;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.rank-subclass {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}

.col-build {
    width: 18%;
    text-align: center;
}

.col-server {
    width: 10%;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

/* flex 제거하여 테이블 레이아웃 안정화 */
.col-rank,
.col-char,
.col-level,
.col-power,
.col-class,
.col-build,
.col-server {
    vertical-align: middle;
}

.gear-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gear-badge.trans {
    color: #d97706;
    border-left: 3px solid #fbbf24;
}

.gear-badge.elixir {
    color: #c9952c;
    border-left: 3px solid #60a5fa;
}

.build-badge {
    background: #eff6ff;
    color: #1e40af;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 850;
    border: 1px solid #dbeafe;
}

.gear-badge.adv {
    color: #059669;
    border-left: 3px solid #34d399;
}

.ark-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.ranking-more-box {
    display: flex;
    justify-content: center;
    padding: 20px 0 80px;
    background: transparent;
}

#btn-rank-more {
    padding: 14px 60px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50px;
    background: linear-gradient(135deg, #c9952c, #b8860b);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

#btn-rank-more:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4);
}

.ranking-inline-loading {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
}

/* =====================
   EXCHANGE (MARKET)
   ===================== */
.exchange-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.exchange-gems-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gem-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e293b;
    border-radius: 10px;
    padding: 14px 20px;
}

.gem-type-label {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    width: 60px;
    flex-shrink: 0;
}

.gem-card {
    flex: 1;
    background: #0f172a;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
}

.gem-icon {
    width: 36px;
    height: 36px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin: 0 auto 6px;
}

.gem-lv {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.gem-price {
    font-size: 15px;
    font-weight: 700;
    color: #e9b53e;
}

.exchange-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.exchange-item-card:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.ex-rank {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 24px;
}

.exchange-item-card:nth-child(1) .ex-rank {
    color: #f59e0b;
}

.exchange-item-card:nth-child(2) .ex-rank {
    color: #d97706;
}

.exchange-item-card:nth-child(3) .ex-rank {
    color: #b45309;
}

.ex-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    background-size: cover;
    background-position: center;
    background-color: #111;
    border: 2px solid var(--card-border);
    flex-shrink: 0;
}

.ex-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ex-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ex-name.grade-전설 {
    color: #f5a623;
}

.ex-name.grade-유물 {
    color: #ff6e00;
}

.ex-name.grade-고대 {
    color: #c4903a;
}

.ex-name.grade-영웅 {
    color: #a855f7;
}

.ex-name.grade-희귀 {
    color: #d4a44c;
}

.ex-name.grade-고급 {
    color: #22c55e;
}

.ex-price {
    font-size: 15px;
    display: flex;
    align-items: center;
}

/* ============================================
   MOBILE RESPONSIVE (iOS / Android)
   ============================================ */

/* --- TABLET (max 1024px) --- */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column !important;
    }

    .profile-column {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        position: relative !important;
        top: auto !important;
    }

    .detail-column {
        width: 100% !important;
    }

    .ark-columns {
        grid-template-columns: 1fr !important;
    }

    .ark-col:not(:last-child) {
        border-right: none !important;
        border-bottom: 1px solid var(--card-border);
    }

    .content-row.quad-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .podium-item {
        width: 100% !important;
        max-width: 400px;
    }

    .equipment-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- MOBILE (max 768px) --- */
@media (max-width: 768px) {

    /* 전역 오버플로우 방지 */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* 네비바 모바일: 최소화 */
    .global-navbar {
        position: relative !important;
        height: auto !important;
    }

    .nav-container {
        padding: 8px 12px !important;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem !important;
    }

    .nav-logo span {
        font-size: 0.9rem !important;
    }

    .nav-menu {
        gap: 8px !important;
    }

    .nav-menu li {
        font-size: 12px !important;
    }

    /* 모바일에서 상단 검색바 숨김 (홈 검색으로 대체) */
    .nav-right {
        display: none !important;
    }

    /* 메인 콘텐츠 */
    .main-content {
        padding-top: 0 !important;
    }

    .view-panel {
        padding: 10px !important;
        min-height: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* ===== 히어로 (구글 스타일) ===== */
    .hero-section {
        padding: 6vh 12px 0 !important;
        min-height: 0 !important;
        background: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .hero-logo {
        margin-bottom: 1.5rem !important;
    }

    .hero-logo h1 {
        font-size: 1.8rem !important;
        letter-spacing: -1px !important;
    }

    .hero-search-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    /* 검색창: 가로 한줄, 화면에 딱 맞게 */
    .hero-search-box {
        flex-direction: row !important;
        border-radius: 24px !important;
        padding: 4px 4px 4px 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        border-width: 1px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .hero-search-box input {
        font-size: 0.9rem !important;
        padding: 10px 0 !important;
        text-align: left !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    .hero-search-btn {
        border-radius: 50% !important;
        padding: 10px !important;
        font-size: 1.1rem !important;
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-search-btn .btn-text {
        display: none;
    }

    .hero-search-btn .btn-icon {
        display: inline;
    }

    /* 태그 작게 */
    .hero-tags {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px !important;
        margin-top: 1.2rem !important;
    }

    .hero-tags span {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }

    /* 네온 배너: 모바일에서 좀 더 작게 */
    .neon-banner {
        max-width: 100% !important;
        height: 32px !important;
        margin-bottom: 1rem !important;
        border-radius: 8px !important;
    }

    .neon-text {
        font-size: 10px !important;
        letter-spacing: 0.3px !important;
    }

    .neon-slide-track {
        gap: 16px !important;
    }

    /* 최근 검색: 모바일에서 숨기기 (해시태그로 충분) */
    .recent-searches {
        display: none !important;
    }

    .recent-chip {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    .recent-label {
        font-size: 10px !important;
    }

    /* 서브뷰 (랭킹/거래소) 헤더 */
    .sub-view-header {
        flex-direction: column;
        gap: 10px;
        padding: 0.5rem 0 !important;
    }

    .sub-title h2 {
        font-size: 1.4rem !important;
    }

    /* 캐릭터 상세 전체 */
    .char-back-btn-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-wrapper {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .profile-column {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        position: relative !important;
        top: auto !important;
    }

    .detail-column {
        width: 100% !important;
    }

    .profile-card {
        padding: 14px !important;
    }

    .profile-image-frame {
        height: 160px !important;
    }

    .profile-name {
        font-size: 20px !important;
    }

    /* 탭 바 스크롤 */
    .tab-bar {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tab-bar::-webkit-scrollbar {
        display: none;
    }

    .tab-bar button {
        font-size: 11px !important;
        padding: 8px 10px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 섹션 카드 */
    .section-card {
        padding: 12px !important;
        border-radius: 10px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* content-row 세로 배치 */
    .content-row {
        flex-direction: column !important;
    }

    /* 4분할 → 1열 */
    .content-row.quad-row {
        grid-template-columns: 1fr !important;
    }

    /* 장비 */
    .equipment-grid {
        grid-template-columns: 1fr !important;
    }

    .equip-pair {
        flex-direction: column !important;
    }

    .equip-slot {
        padding: 8px !important;
    }

    /* 젬 */
    .gem-grid {
        gap: 5px !important;
    }

    .gem-node {
        width: 40px !important;
        height: 40px !important;
    }

    .gem-node img {
        width: 40px !important;
        height: 40px !important;
    }

    .gem-effects-list {
        grid-template-columns: 1fr !important;
    }

    /* 스탯 */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid.combat {
        grid-template-columns: 1fr !important;
    }

    /* 형제 캐릭터 */
    .siblings-grid {
        grid-template-columns: 1fr !important;
    }

    /* 아크 패시브 */
    .ark-columns {
        grid-template-columns: 1fr !important;
    }

    .ark-col:not(:last-child) {
        border-right: none !important;
        border-bottom: 1px solid var(--card-border);
    }

    /* 카드 */
    .card-grid {
        gap: 5px !important;
    }

    .card-node {
        width: 65px !important;
    }

    .card-node img {
        width: 52px !important;
        height: 65px !important;
    }

    /* ===== 랭킹 ===== */
    .podium-container {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 10px !important;
    }

    .podium-item {
        width: 100% !important;
        height: auto !important;
        min-height: 70px !important;
        order: 0 !important;
    }

    .ranking-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ranking-table {
        min-width: 580px;
    }

    .ranking-filters {
        flex-direction: column;
        gap: 8px;
    }

    .filter-group {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-group select {
        min-width: 0 !important;
        flex: 1;
    }

    /* ===== 거래소 ===== */
    .exchange-grid {
        grid-template-columns: 1fr !important;
    }

    #exchange-content {
        padding: 0 8px !important;
    }

    /* 에러 토스트 */
    .search-error-toast {
        font-size: 13px !important;
        padding: 10px 16px !important;
        max-width: 90vw;
        white-space: normal !important;
        text-align: center;
        bottom: 20px !important;
    }

    /* 랭크 뱃지 */
    .rank-badge-row {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* --- SMALL PHONE (max 480px) --- */
@media (max-width: 480px) {
    .hero-logo h1 {
        font-size: 1.6rem !important;
    }

    .neon-text {
        font-size: 9px !important;
    }

    .neon-banner {
        height: 32px !important;
    }

    .sub-title h2 {
        font-size: 1.2rem !important;
    }

    .section-card {
        padding: 10px !important;
    }

    .profile-card {
        padding: 10px !important;
    }

    .profile-image-frame {
        height: 140px !important;
    }

    .ranking-table {
        font-size: 11px;
        min-width: 500px;
    }

    .tab-bar button {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }

    .equip-icon-wrap img {
        width: 36px !important;
        height: 36px !important;
    }
}

/* =====================
   PREMIUM SIMULATOR STYLES
   ===================== */
.sim-layout {
    animation: fadeIn 0.5s ease;
}

.sim-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.sim-select:hover {
    border-color: #ba8cff;
    background: rgba(186, 140, 255, 0.1);
}

.sim-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 20px;
    background: transparent;
    border-radius: 5px;
    outline: none;
    overflow: visible;
    padding: 4px 0;
}

.sim-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 3px;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: -1000px 0 0 1000px var(--accent-blue);
    margin-top: -3px;
    /* Align with 6px track */
    transition: 0.2s;
}

.sim-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.sim-val-tag {
    min-width: 45px;
    text-align: center;
    background: rgba(186, 140, 255, 0.2);
    color: #ba8cff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.sim-gear-row {
    transition: transform 0.2s, background 0.2s;
}

.sim-gear-row:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(5px);
}

.acc-option-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =====================
   SIMULATOR VIEW STYLES
   ===================== */
.sim-container {
    animation: fadeIn 0.4s ease-out;
}

.sim-btn {
    background: rgba(186, 140, 255, 0.1);
    border: 1px solid rgba(186, 140, 255, 0.3);
    color: #ba8cff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-btn:hover {
    background: #ba8cff;
    color: #fff;
    transform: scale(1.1);
}

.alt-eng-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.eng-grade-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
}

.eng-grade-btn {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: 0.2s;
}

.eng-grade-btn.active.legend {
    background: #d97706;
    color: #fff;
}

.eng-grade-btn.active.relic {
    background: #c9952c;
    color: #fff;
}

.sim-display-card {
    box-shadow: 0 0 40px rgba(186, 140, 255, 0.1);
    backdrop-filter: blur(20px);
}

/* =====================
   SIMULATOR CONTROLS (Fix #3: Readability)
   ===================== */
.sim-select {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    min-width: 90px;
    transition: all 0.2s;
}

.sim-select:hover {
    border-color: #ba8cff;
    box-shadow: 0 0 0 2px rgba(186, 140, 255, 0.2);
}

.sim-select option {
    background: #f1f5f9;
    color: #1e293b;
}

.sim-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    flex: 1;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ba8cff;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(186, 140, 255, 0.5);
    transition: all 0.2s;
}

.sim-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(186, 140, 255, 0.8);
}

.sim-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ba8cff;
    cursor: pointer;
    border: 2px solid #fff;
}

.sim-val-tag {
    display: inline-block;
    min-width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #ba8cff;
    background: rgba(186, 140, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.acc-option-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.acc-option-box:hover {
    border-color: rgba(186, 140, 255, 0.2);
    background: rgba(186, 140, 255, 0.03);
}

/* Simulator mobile responsive */
@media (max-width: 900px) {
    .sim-layout {
        grid-template-columns: 1fr !important;
    }

    .sim-status-column .sim-display-card {
        position: static !important;
    }

    .sim-gear-row {
        grid-template-columns: 40px 1fr !important;
        gap: 8px !important;
    }

    .sim-gear-row>div:nth-child(3),
    .sim-gear-row>select {
        grid-column: 1 / -1;
    }
}

/* =====================================================
   모바일 최적화 (TWA / PWA)
   ===================================================== */

/* 안전 영역 (노치/홈바 대응) */
body {
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: env(safe-area-inset-top);
}

/* 하단 탭바 */
.mobile-bottom-nav {
    display: none;
}

/* 모바일 검색 오버레이 */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(env(safe-area-inset-top) + 60px);
}
.mobile-search-overlay.active {
    display: flex;
}
.mobile-search-inner {
    display: flex;
    gap: 8px;
    width: 90%;
    max-width: 480px;
    align-items: center;
}
.mobile-search-inner input {
    flex: 1;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 16px;
    outline: none;
}
.mobile-search-inner button {
    background: #d4a44c;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.mobile-search-inner .mso-close {
    background: #374151;
    padding: 12px 14px;
}

@media (max-width: 768px) {
    /* 상단 네비 간소화 */
    .nav-menu { display: none; }
    .nav-search-bar { display: none; }
    .nav-container { padding: 0 1rem; }
    .global-navbar { height: 52px; }
    .main-content { padding-top: 52px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .view-panel { padding: 1rem; min-height: calc(100vh - 52px); }

    /* 하단 탭바 표시 */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(22, 25, 30, 0.97);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 3000;
        justify-content: space-around;
        align-items: center;
    }

    .mbn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        color: #64748b;
        cursor: pointer;
        padding: 6px 12px;
        border-radius: 10px;
        transition: 0.2s;
        flex: 1;
    }
    .mbn-item svg {
        width: 22px;
        height: 22px;
    }
    .mbn-item span {
        font-size: 10px;
        font-weight: 600;
    }
    .mbn-item.active {
        color: #d4a44c;
    }
    .mbn-item.active svg {
        filter: drop-shadow(0 0 4px #d4a44c);
    }

    /* 랭킹 테이블 모바일 */
    .col-server { display: none; }
    .col-build { display: none; }
    .ranking-table th, .ranking-table td { font-size: 12px; padding: 10px 6px; }

    /* 히어로 섹션 */
    .hero-section { padding: 20px 16px; }
    .hero-logo h1 { font-size: 2rem; }
    .hero-search-box { width: 100%; }
    .hero-search-box input { font-size: 15px; }

    /* 거래소 */
    #exchange-content { padding: 0 12px !important; }
    .gem-row { flex-wrap: wrap; }

    /* 서브뷰 헤더 */
    .sub-view-header { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 0 16px; }

    /* 캐릭터 뷰 */
    .char-detail-layout { flex-direction: column; }
    .char-detail-left, .char-detail-right { width: 100%; }
}

@media (max-width: 375px) {
    .mbn-item span { display: none; }
    .mbn-item { padding: 8px; }
    .hero-logo h1 { font-size: 1.6rem; }
    .ranking-table th, .ranking-table td { font-size: 11px; padding: 8px 4px; }
}

/* ===== 모바일 추가 최적화 (새 요소들) ===== */
@media (max-width: 768px) {
    /* 날짜 카드 + 스케줄 바: 세로 배치 */
    .game-schedule-bar {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 12px !important;
    }
    .schedule-date-card {
        flex-direction: row !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 8px;
        padding: 8px 16px !important;
    }
    .schedule-date-card .date-month { font-size: 0.7rem; }
    .schedule-date-card .date-day { font-size: 1.2rem; }
    .schedule-date-card .date-dow { font-size: 0.7rem; }
    .schedule-card {
        min-width: 0 !important;
        width: 100% !important;
        padding: 10px 14px !important;
    }

    /* Beta 뱃지 모바일 */
    .beta-badge { font-size: 0.35em !important; padding: 1px 4px !important; }
    .beta-badge.nav-beta { font-size: 0.5em !important; }

    /* 푸터 모바일 - 하단 탭바 겹침 방지 */
    .global-footer {
        padding: 24px 16px calc(70px + env(safe-area-inset-bottom)) !important;
    }
    .footer-disclaimer { font-size: 10px; }

    /* About 페이지 모바일 */
    .about-page {
        padding: 20px 16px calc(80px + env(safe-area-inset-bottom)) !important;
    }
    .about-title { font-size: 20px !important; margin-bottom: 20px !important; }
    .about-section h3 { font-size: 14px !important; }
    .about-section p, .about-section ul li { font-size: 12px !important; }

    /* 시뮬레이터 모바일 개선 */
    .sim-layout { grid-template-columns: 1fr !important; }
    .sim-status-column .sim-display-card { position: static !important; }
    #tab-sim-cp-bar {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }
    .sim-gear-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .sim-gear-row > * { min-width: 0; }
    .sim-select {
        min-width: 0 !important;
        max-width: 120px;
        font-size: 10px !important;
    }
    .acc-option-box {
        padding: 10px !important;
    }
    #tab-simulator, #simulator-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .tab-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .spec-column {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    /* 시뮬 품질 그룹: 모바일에서 줄바꿈 */
    .sim-quality-group {
        margin-left: 0 !important;
        width: 100%;
        flex-wrap: wrap;
    }
    /* 시뮬 2열 그리드 → 1열 */
    .sim-two-col {
        grid-template-columns: 1fr !important;
    }
    /* 장신구 연마 그리드 → 1열 */
    #tab-sim-acc-list {
        grid-template-columns: 1fr !important;
    }

    /* 뉴스 탭 스크롤 */
    .news-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .news-tabs::-webkit-scrollbar { display: none; }
    .news-tab { white-space: nowrap; flex-shrink: 0; font-size: 12px !important; padding: 5px 12px !important; }

    /* 랜딩 TOP5 모바일 */
    .landing-top5 {
        gap: 8px !important;
    }
    .landing-more-btn {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }
}

/* ============================================
   GLOBAL FOOTER
   ============================================ */
.global-footer {
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 32px 20px 40px;
    text-align: center;
    margin-top: auto;
}
.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, #d4a44c, #e8b954);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-links {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 8px;
    align-items: center;
}
.footer-links span:not(.footer-sep):hover {
    color: #d4a44c;
}
.footer-sep { color: #334155; }
.footer-disclaimer {
    font-size: 11px;
    color: #475569;
    line-height: 1.6;
}
.footer-copy {
    font-size: 11px;
    color: #334155;
    margin-top: 4px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.about-title {
    font-size: 24px;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(212,164,76,0.3);
}
.about-section {
    margin-bottom: 28px;
}
.about-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #d4a44c;
    margin-bottom: 10px;
}
.about-section p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 8px;
}
.about-section strong {
    color: #e2e8f0;
}
.about-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-section ul li {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}
.about-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d4a44c;
}
.about-footer-note {
    font-size: 11px;
    color: #475569;
    text-align: right;
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
