/* ===================================
   구룡쟁패 - 공통 스타일 (base.css)
   =================================== */

/* CSS Variables */
:root {
    /* Layout */
    --container-width: 1920px;
    --content-width: 1280px;
    --header-height: 90px;
    /* 고정 헤더 아래 외부 GNB 등 (masang=0, 온게이트는 master에서 60px) */
    --site-top-offset: 0px;
    /* GNB 1뎁스 li = 드롭다운 열 너비 (동일해야 1·2뎁스 정렬 유지). 드롭다운 14px 기준 「캐릭터 이전 내역」한 줄 */
    --gnb-column-width: 112px;

    /* Primary Colors */
    --primary: #c9a227;
    --primary-dark: #9e7d1c;
    --primary-light: #e8c547;
    --secondary: #8b0000;
    --accent: #ff4444;

    /* Background Colors */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --bg-card-light: #2a2a2a;

    /* Text Colors */
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-muted: #888888;
    --text-dark: #333333;

    /* Border Colors */
    --border-color: #222222;
    --border-light: #333333;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #c9a227 0%, #e8c547 50%, #c9a227 100%);
    --gradient-dark: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    --gradient-hero: linear-gradient(135deg, #1a0a0a 0%, #0a0a0a 50%, #0a1a1a 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 30px rgba(201, 162, 39, 0.3);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Accent Colors */
    --accent-red: #e74c3c;
    --accent-blue: #3498db;
    --accent-green: #27ae60;
    --accent-orange: #f39c12;
    --accent-purple: #9b59b6;
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: var(--site-top-offset);
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.header-inner {
    position: static;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 0 0 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* GNB li(z-index 1000)보다 위에 두어, 좁은 뷰포트에서 겹칠 때도 로고 클릭이 홈으로 동작하도록 */
.logo {
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    margin-left: 36px;
}

/* Navigation */
.main-nav > .nav-list {
    display: flex;
    gap: 40px;
}

.main-nav li.active a {
    color: var(--primary);
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.main-nav a::after {
    display: none;
}

.main-nav .nav-list > li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
    z-index: 1001;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav .nav-list > li:hover::after,
.main-nav .nav-list > li.active::after {
    width: 100%;
}

/* Main Nav - 뷰포트 가로 중앙(좌 20px 보정은 1025px 이상에서만 — 모바일·태블릿 ≤1024 미적용) */
.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
}

/* Desktop: hide mobile-only elements */
.mobile-auth {
    display: none;
}

/* 햄버거 패널 하단 전용 — DOM은 공통이나 PC에서는 비표시 */
.main-nav .mobile-home-link {
    display: none;
}

@media (min-width: 769px) {
    #headerCharacterPanelMobile {
        display: none !important;
    }

    .header-char-panel-overlay {
        display: none !important;
    }
}

.mobile-sub-menu {
    display: none;
}

.mobile-arrow {
    display: none;
}

/* 데스크톱: 모바일 아코디언 + 아이콘 숨김 (모바일 미디어쿼리에서만 표시) */
.nav-list__acc-icon {
    display: none;
}

.nav-overlay {
    display: none;
}

.main-nav .nav-list {
    display: flex;
    gap: 40px;
}

.main-nav .nav-list > li {
    text-align: center;
    width: var(--gnb-column-width);
    flex-shrink: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1000;
}

/* 외부 링크 (줄바꿈 방지) */
.main-nav .external-link {
    white-space: nowrap;
    padding-top: 4px;
    padding-bottom: 4px;
}

.main-nav .external-link svg {
    vertical-align: middle;
    margin-left: 4px;
    margin-top: -2px;
}

/* Nav Dropdown Bar - .header 기준 헤더 바로 아래 */
.nav-dropdown-bar {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    padding: 20px 0 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.9);
}

.nav-dropdown-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* 메인 네비(.main-nav) 또는 드롭다운 바 hover 시에만 드롭다운 표시 (형제 요소라 ~ 사용) */
.main-nav:hover ~ .nav-dropdown-bar,
.nav-dropdown-bar:hover {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    /* 좌 보정은 1025px 이상에서만(.main-nav와 동일) */
    transform: translateX(0);
}

/* 예전: 로고/우측 액션 폭을 맞추던 고정 스페이서 — 1280px 박스 안에서 GNB와 기준축이 달라져 정렬 붕괴. 데스크톱에선 숨김 */
.dropdown-logo-space,
.dropdown-actions-space {
    display: none;
}

.dropdown-groups {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    /* 상단 GNB(.main-nav .nav-list gap: 40px)와 동일 — 1·2뎁스 열 정렬 (--gnb-column-width) */
    gap: 40px;
}

.dropdown-group {
    flex: 0 0 var(--gnb-column-width);
    width: var(--gnb-column-width);
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.dropdown-group.empty {
    visibility: hidden;
}

.dropdown-group a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-group a::after {
    display: none;
}

.dropdown-group a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* 1025px 이상: GNB 가로 보정 + 좁은 PC(~1600 미만) 열 폭 축소(모바일·≤1024 미적용) */
@media (min-width: 1025px) {
    .main-nav {
        margin-left: -20px;
    }

    .nav-dropdown-inner {
        transform: translateX(-20px);
    }
}

/* 좁은 PC(~1600 미만): 중앙 GNB·드롭다운 열 폭을 줄여 우측 게임시작(260px) 영역과 겹침 완화. 1600px+·모바일 규칙은 그대로 */
@media (min-width: 1025px) and (max-width: 1599px) {
    :root {
        /* 100px×5 + 26px×4 = 604 → 94px×5 + 20px×4 = 550 (게임시작 쪽 여유) */
        --gnb-column-width: 94px;
    }

    .main-nav > .nav-list,
    .main-nav .nav-list {
        gap: 20px;
    }

    .dropdown-groups {
        gap: 20px;
    }

    .dropdown-group a {
        font-size: 12px;
    }
}

@media (max-width: 1279px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        padding: 0 16px;
        box-sizing: border-box;
    }

    .logo img {
        margin-left: 0;
    }

    .header-actions .btn-login {
        margin-right: 0;
    }
}

/* 1280px 이상: .header-inner 좌우 패딩 없음 — 로그인/로그아웃 버튼 우측 10px 여백 */
@media (min-width: 1280px) {
    .header-actions .btn-login {
        margin-right: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --gnb-column-width: 104px;
    }

    .main-nav .nav-list {
        gap: 24px;
    }

    .dropdown-groups {
        gap: 24px;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* .header-inner 우측 16px 패딩 상쇄 — 반드시 위 .header-actions 기본값보다 뒤에 둠(캐스케이드) */
@media (max-width: 1279px) {
    .header .header-inner > .header-actions {
        margin-right: -16px;
    }
}

/* 로그인 상태 프로필 원형 버튼 */
.btn-header-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-header-avatar-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #1a1a1a;
}

.btn-header-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.btn-header-avatar-icon {
    width: 22px;
    height: 22px;
    color: #888;
    flex-shrink: 0;
}

.header-actions form {
    margin: 0;
    display: flex;
}

.btn-logout {
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-logout:hover {
    color: var(--text-light);
    border-color: var(--text-muted);
}

.btn-login {
    padding: 0;
    margin-right: 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Noto Serif KR', serif;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(247, 244, 238, 1) 0%, rgba(212, 205, 191, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: none;
    border-radius: 0;
    transition: var(--transition);
}

.btn-login:hover {
    background: linear-gradient(135deg, rgba(255, 252, 246, 1) 0%, rgba(222, 215, 201, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary);
}

.btn-start {
    padding: 0;
    height: 100%;
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--bg-dark);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-start img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-start:hover img {
    filter: brightness(1.15);
}

.btn-start:hover {
    box-shadow: var(--shadow-gold);
}

.js-header-character-panel.is-collapsed {
    display: none !important;
}

/* ===================================
   Header Character Panel (MY 프로필)
   =================================== */
.header-character-panel {
    position: absolute;
    top: 100%;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 400px;
    overflow: visible;
    background: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    z-index: 1002;
}

/* 상단 툴바 */
.header-character-panel-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 40px;
    padding: 24px 16px 6px;
    border-bottom: none;
}

.header-character-panel-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-character-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #c8aa6e;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
}

.header-character-action-btn:hover {
    color: #e0c87e;
}

.header-character-action-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: block;
}

.header-character-action-btn--mailbox {
    position: relative;
}

/* ─── 캐릭터 선택 드롭다운 ─────────────────────── */

.char-select-dropdown-wrap {
    position: relative;
}

.char-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 9999;
    width: 260px;
    background: #f5f4f2;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.char-select-dropdown-header {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.char-select-dropdown-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.char-select-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.char-select-label {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

.char-select-select {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.char-select-select:focus {
    border-color: rgba(0, 0, 0, 0.3);
}

.char-select-loading {
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 4px 0;
}

.char-select-save-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    background: #333;
    color: #f5f4f2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.char-select-save-btn:hover {
    opacity: 0.85;
}

.char-select-save-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}

.header-character-mail-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    color: #0c0c0c;
    background: var(--primary);
    border-radius: 999px;
    border: 1.5px solid #0c0c0c;
    box-sizing: border-box;
    pointer-events: none;
}

.header-character-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #888;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
}

.header-character-close:hover {
    color: #ccc;
}

/* ─── 캐릭터 패널 프로필 블록 ─────────────────────────────── */

/*
 * 패널 440px / 아바타 140×140 정방형 / 메타 상하 2구역
 * 메타 가용 너비: 440 - 140 = 300px (내부 패딩 24px 좌우)
 * 스탯: 2열 2행 배치 (서버·문파 / 직책·성취)
 */
.header-character-main {
    display: flex;
    align-items: center;
    padding: 10px 30px 30px;
    gap: 24px;
}

/* 아바타 컬럼: 정방형 박스, 이미지 꽉 채움 */
.header-character-avatar {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    margin: 0;
    background: #d0ccc8;
    overflow: hidden;
    flex-shrink: 0;
}

/* 이미지 래퍼: 박스 전체 채움 */
.header-character-avatar-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #d0ccc8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%;
    display: block;
}

.header-character-initials {
    font-size: 36px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    color: #dfcb96;
}

.header-character-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
}

.header-character-avatar-placeholder::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    background-color: #333;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

/* 메타: 아바타 우측, 상/하 두 구역 */
.header-character-meta {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 상단: 닉네임 + select */
.header-character-meta-top {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    border-bottom: none;
}

/* 하단: 스탯 */
.header-character-meta-bottom {
    padding: 12px 0 0;
}

/* 닉네임 행: 닉네임 + 캐릭터 변경 버튼 */
.header-character-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* 닉네임 */
.header-character-name {
    font-size: 18px;
    font-weight: 500;
    font-family: inherit;
    color: #e8e0d4;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 0;
    min-width: 0;
}

/*
 * 스탯: 2행 2열 배치
 *   1행: 서버 | 문파
 *   2행: 직책 | 성취
 *   각 셀: [라벨 + 값] 쌍
 */
.header-character-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 18px;
}

.hdr-stat-cell {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.hdr-stat-key {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.hdr-stat-val {
    font-size: 14px;
    font-weight: 400;
    color: #d0ccc8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

/* 캐릭터 전환 select */
.header-character-picker {
    margin: 0;
}

.header-character-select {
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    color: #484848;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    box-sizing: border-box;
    appearance: auto;
    line-height: 1.4;
    max-width: 100%;
}

.header-character-select:focus {
    outline: none;
    color: #777;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

/* 모바일 전용 우측 계정 아이콘 (데스크톱에서는 숨김) */
.header-mobile-account {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.88);
    flex-shrink: 0;
    text-decoration: none;
}

.header-mobile-account:hover,
.header-mobile-account:focus-visible {
    color: #ffffff;
}

.header-mobile-account__icon {
    display: block;
}

/* ===================================
   Download Button (Common)
   =================================== */
.download-card {
    padding: 0;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: var(--gradient-gold);
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
}

.download-btn:hover {
    box-shadow: var(--shadow-gold);
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 30px 0 30px;
    overflow-x: hidden;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    margin-bottom: 30px;
    position: relative;
}

.footer-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: var(--border-color);
}

.footer-logo img {
    height: 30px;
    filter: grayscale(100%) brightness(0.7);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-links .privacy {
    font-weight: 700;
    color: var(--text-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-info p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-info .divider {
    margin: 0 10px;
    color: var(--border-color);
}

.footer-rating img {
    height: 50px;
}

/* ===================================
   Common Card Styles
   =================================== */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===================================
   Responsive - Common
   =================================== */
@media (max-width: 1024px) {
    .header-actions .btn-start {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .header {
        top: var(--site-top-offset);
    }

    .header-inner {
        position: relative;
        height: 60px;
        padding: 0 12px;
        gap: 8px;
    }

    /* 좌: 햄버거 / 중: 로고 / 우: 계정 — 햄버거는 패널보다 위(닫기) */
    .nav-toggle-label {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        width: 26px;
        height: 26px;
        z-index: 1006;
        flex-shrink: 0;
        margin: 0;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        /* 데스크톱(1002)과 달리 모바일에선 메뉴·오버레이(998+) 아래로 — 열린 패널에 가려짐 */
        z-index: 1;
        max-width: calc(100vw - 120px);
        margin: 0;
        text-align: center;
    }

    .logo img {
        height: 40px;
        width: auto;
        margin-left: 0;
        margin-right: 0;
        vertical-align: middle;
    }

    .header-mobile-account {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        z-index: 1003;
    }

    /* 내 정보 버튼: <a>와 동일하게 보이도록 */
    button.header-mobile-account {
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
        font: inherit;
    }

    /* Mobile Overlay - Full Screen (로고 z-index보다 위에서 전체 딤) */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1004;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-toggle:checked ~ .nav-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* 내 정보 패널 딤 (햄버거 메뉴 오버레이와 동일 톤) */
    .header-char-panel-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1004;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
    }

    body.header-char-panel-open .header-char-panel-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        width: min(280px, 88vw);
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        background: var(--bg-card);
        /* 가로 패딩 없음 → ul.nav-list가 패널 너비(300px) 전체 사용, 가로 스크롤 방지 */
        padding: calc(var(--site-top-offset, 0px) + var(--header-height, 60px) + 12px) 0 24px;
        transition: var(--transition);
        border-right: 1px solid var(--border-color);
        transform: none;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 1005;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .nav-toggle:checked ~ .main-nav {
        left: 0;
    }

    .main-nav .nav-list {
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        gap: 0;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .main-nav .nav-list > li::after {
        display: none;
    }

    .main-nav .nav-list > li {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        flex: none;
        flex-shrink: 0;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        box-sizing: border-box;
    }

    .main-nav .nav-list > li:last-child {
        border-bottom: none;
    }

    .main-nav .nav-list > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-light);
        box-sizing: border-box;
    }

    .main-nav .nav-list > li > a:hover {
        color: var(--primary);
    }

    .main-nav .nav-list .nav-list__label {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    .main-nav .external-link .nav-list__ext-svg {
        flex-shrink: 0;
        margin-left: 8px;
        vertical-align: middle;
    }

    /* 데스크톱용 nowrap — 좁은 사이드 패널에서는 줄바꿈 허용 */
    .main-nav .nav-list > li > a.external-link,
    .main-nav .mobile-sub-menu a.external-link {
        white-space: normal;
    }

    /* 1뎁스 자식 있음: 우측 + / 펼침 시 − */
    .main-nav .has-sub .nav-list__acc-icon {
        display: inline-flex;
        position: relative;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        color: var(--text-muted);
    }

    .main-nav .has-sub .nav-list__acc-icon::before,
    .main-nav .has-sub .nav-list__acc-icon::after {
        content: '';
        position: absolute;
        background: currentColor;
        border-radius: 1px;
    }

    .main-nav .has-sub .nav-list__acc-icon::before {
        width: 11px;
        height: 2px;
    }

    .main-nav .has-sub .nav-list__acc-icon::after {
        width: 2px;
        height: 11px;
        transition: opacity 0.2s ease, transform 0.15s ease;
    }

    .main-nav .nav-list > li.sub-open > a .nav-list__acc-icon::after {
        opacity: 0;
        transform: scaleY(0);
    }

    .main-nav .nav-list > li.sub-open > a .nav-list__acc-icon {
        color: var(--text-light);
    }

    .main-nav .nav-list > li.sub-open {
        background: rgba(255, 255, 255, 0.03);
    }

    .main-nav a::after {
        display: none;
    }

    /* 2뎁스: 접힘, 펼침 시 구역 배경 (다크 시스템 톤) — 부모 너비 초과 금지 */
    .main-nav .nav-list > li > .mobile-sub-menu {
        display: none;
        list-style: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        padding: 6px 16px 14px 20px;
        background: var(--bg-darker);
        border-top: 1px solid var(--border-color);
    }

    .main-nav .nav-list > li.sub-open > .mobile-sub-menu {
        display: block;
    }

    .main-nav .mobile-sub-menu li {
        border: none;
    }

    .main-nav .mobile-sub-menu .nav-list__sublink {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px 4px 10px 4px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-muted);
        box-sizing: border-box;
    }

    .main-nav .mobile-sub-menu .nav-list__sublink .nav-list__label {
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    .main-nav .mobile-sub-menu .nav-list__sublink:hover {
        color: var(--primary);
    }

    /* Hide Desktop Dropdown Bar on Mobile */
    .nav-dropdown-bar {
        display: none;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .header-actions {
        display: none;
    }

    .header-character-panel {
        display: none;
    }

    .mobile-header-character-panel {
        position: relative;
        display: flex;
        flex-direction: column;
        margin: 12px 0 0;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        background: #0d0d0d;
        border: 1px solid rgba(201, 162, 39, 0.18);
        border-top: 2px solid var(--primary);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        box-sizing: border-box;
    }

    .mobile-header-character-panel .header-character-inline-stats {
        white-space: normal;
    }

    /* 모바일 내 정보: 우측 아이콘 기준 — 우측 풀높이 드로어(햄버거와 대칭) */
    #headerCharacterPanelMobile.js-header-character-panel.is-collapsed {
        display: flex !important;
        transform: translateX(100%);
        pointer-events: none;
    }

    #headerCharacterPanelMobile.js-header-character-panel:not(.is-collapsed) {
        transform: translateX(0);
        pointer-events: auto;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock {
        position: fixed;
        top: 0;
        left: auto;
        right: 0;
        width: min(300px, 88vw);
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-width: 0;
        margin: 0;
        max-height: none;
        /* header-inner(모바일)과 동일한 좌우 12px — 닫기 버튼 inset을 햄버거와 대칭 맞추기 위함 */
        padding: 0 12px 0;
        z-index: 1005;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: hidden;
        background: var(--bg-card);
        border: none;
        border-left: 1px solid var(--border-color);
        border-radius: 0;
        box-shadow: none;
        transition: transform 0.3s ease;
        box-sizing: border-box;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-panel-top {
        position: relative;
        display: block;
        height: 60px;
        padding: 0;
        border-bottom: none;
        /* 드로어 좌우 패딩을 상단 행에서 상쇄 → 닫기 right:12px 가 뷰포트(드로어) 우측 기준과 동일 */
        margin-left: -12px;
        margin-right: -12px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-main {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 0 8px;
        gap: 16px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-bottom {
        flex-shrink: 0;
        width: 100%;
        margin-top: auto;
        padding-bottom: 24px;
        box-sizing: border-box;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-avatar {
        align-self: center;
        margin-bottom: 10px;
        border-radius: 50%;
        overflow: hidden;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-avatar-inner {
        border-radius: 50%;
        overflow: hidden;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-meta {
        padding: 0 20px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-name {
        font-size: 18px;
        line-height: 1.45;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-stats-grid {
        gap: 12px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .hdr-stat-cell {
        gap: 12px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .hdr-stat-key {
        font-size: 16px;
        line-height: 1.55;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .hdr-stat-val {
        font-size: 16px;
        line-height: 1.55;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-name-row {
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-name-settings {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        color: var(--text-muted);
        background: transparent;
        border: 0;
        border-radius: 0;
        flex-shrink: 0;
        opacity: 0.9;
        transition: color 0.15s ease, opacity 0.15s ease;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-name-settings > svg {
        transform: translateY(1px);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-name-settings:hover {
        color: var(--text-light);
        opacity: 1;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-dropdown-wrap {
        display: none;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline {
        width: 100%;
        min-height: 50px;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        color: var(--text-light);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        box-sizing: border-box;
        border-radius: 8px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline .header-character-action-icon {
        display: inline-flex;
        color: #c8aa6e;
        flex-shrink: 0;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline .header-character-action-text {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
        font-size: 14px;
        font-weight: 500;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline .nav-list__acc-icon {
        display: inline-flex;
        position: relative;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline .nav-list__acc-icon::before,
    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline .nav-list__acc-icon::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        top: 50%;
        transition: transform 0.2s ease;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline .nav-list__acc-icon::before {
        left: 2px;
        transform: translateY(-50%) rotate(45deg);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline .nav-list__acc-icon::after {
        right: 2px;
        transform: translateY(-50%) rotate(-45deg);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-dropdown-wrap.is-open .header-character-action-btn--inline .nav-list__acc-icon::before {
        transform: translateY(-50%) rotate(-45deg);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-dropdown-wrap.is-open .header-character-action-btn--inline .nav-list__acc-icon::after {
        transform: translateY(-50%) rotate(45deg);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-dropdown-wrap.is-open .header-character-action-btn--inline .nav-list__acc-icon {
        color: var(--text-light);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline .header-character-action-icon,
    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline .nav-list__acc-icon {
        display: none;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-action-btn--inline:hover {
        color: var(--text-light);
        border-color: var(--border-light);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-dropdown {
        position: static;
        width: 100%;
        margin: 8px 0 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        z-index: 1008;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-dropdown-header {
        display: none;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-dropdown-body {
        padding: 0;
        gap: 12px;
        display: flex;
        flex-direction: column;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-field {
        gap: 6px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-label {
        font-size: 12px;
        color: var(--text-muted);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-select {
        min-height: 44px;
        padding: 10px 12px;
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid var(--border-light);
        border-radius: 8px;
        color: var(--text-light);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-select:focus {
        border-color: var(--primary);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-loading {
        color: var(--text-muted);
        text-align: left;
        padding: 2px 0;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-save-btn {
        min-height: 44px;
        padding: 11px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-light);
        border: 1px solid var(--border-light);
        border-radius: 8px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .char-select-save-btn:hover {
        color: var(--primary);
        border-color: var(--primary-dark);
        opacity: 1;
    }

    /* 우측 패널 닫기: 햄버거 열림(X) 상태와 동일한 3-bar 형태 */
    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-close--mobile {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 26px;
        height: 26px;
        padding: 0;
        margin: 0;
        z-index: 1006;
        flex-shrink: 0;
        color: var(--text-light);
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-close__bar {
        display: block;
        width: 100%;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-close__bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-close__bar:nth-child(2) {
        opacity: 0;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .header-character-close__bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Mobile Bottom Link (마상소프트 홈페이지) */
    .main-nav .mobile-home-link {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: auto;
        padding: 20px 16px 0;
        border-top: 1px solid var(--border-color);
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .main-nav .mobile-home-link__anchor {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 46px;
        padding: 12px;
        color: var(--text-light);
        border: 1px solid var(--border-light);
        border-radius: 6px;
        text-align: center;
    }

    .main-nav .mobile-home-link__anchor:hover {
        color: var(--primary);
        border-color: var(--primary-dark);
    }

    .main-nav .mobile-home-link__icon {
        flex-shrink: 0;
    }

    .main-nav .mobile-home-link__text {
        font-size: 14px;
        font-weight: 500;
    }

    /* 모바일 내정보 패널: 보유 캐시(로그아웃 바로 위) */
    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-cash {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        margin-top: 0;
        margin-bottom: 10px;
        padding: 12px 20px;
        box-sizing: border-box;
        flex-shrink: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-cash__icon {
        display: inline-flex;
        flex-shrink: 0;
        color: #c8aa6e;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-cash__svg {
        display: block;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-cash__amount-wrap {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
        min-width: 0;
        font-family: inherit;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-cash__amount {
        font-size: 16px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        color: var(--text-light);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-cash__unit {
        font-size: 16px;
        font-weight: 500;
        color: var(--text-muted);
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-cash__recharge {
        margin-left: auto;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 0 12px;
        border-radius: 8px;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        color: #1a1410;
        background: #c8aa6e;
        border: 1px solid rgba(200, 170, 110, 0.85);
        box-sizing: border-box;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-cash__recharge:hover {
        filter: brightness(1.06);
        color: #1a1410;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-cash__recharge:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    /* 모바일 내정보 패널 하단 로그아웃 */
    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-logout {
        display: block;
        width: 100%;
        padding: 0 20px 20px;
        margin-top: 0;
        border-top: none;
        box-sizing: border-box;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-logout__btn {
        width: 100%;
        min-height: 44px;
        padding: 11px 12px;
        color: var(--text-light);
        background: transparent;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }

    #headerCharacterPanelMobile.mobile-header-character-panel--dock .mobile-header-panel-logout__btn:hover {
        color: var(--primary);
        border-color: var(--primary-dark);
    }

    /* Footer Mobile */
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
