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

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.5), rgba(255, 215, 0, 0.3));
    border-radius: 10px;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.7), rgba(255, 215, 0, 0.5));
}

/* Firefox 스크롤바 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.4) rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(139, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.9));
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
}

/* 사용자 상태 영역 */
.user-status {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#loginStatus {
    color: #ffd700;
    font-weight: bold;
    font-size: 14px;
}

#authButtons, #loggedInButtons {
    display: flex;
    gap: 8px;
}

.btn-auth {
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auth:hover {
    transform: scale(1.05);
}

#authButtons .btn-auth {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
}

.btn-register {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: #fff !important;
}

.btn-logout {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
}

.btn-admin {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: #fff;
}

.btn-mypage {
    background: linear-gradient(135deg, #6a9eff, #4a7edf);
    color: #fff;
}

.btn-test {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

/* 헤더 타이틀 영역 */
.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header-character {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    object-fit: cover;
}

/* 헤더 로고 */
.header-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 15px rgba(255, 215, 0, 0.4));
}

/* 헤더 아이콘 (h1 옆 이미지) */
.header-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 5px;
}

/* 발견자 표시 스타일 */
.boss-finder {
    color: #4fc3f7;
    font-size: 11px;
    font-weight: bold;
    margin-top: 2px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.2),
        0 0 60px rgba(139, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.85;
    margin-bottom: 15px;
    color: #b0b0b0;
    letter-spacing: 1px;
}

.current-time {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffd700;
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.latest-update-time {
    font-size: 0.9em;
    color: #888888;
    margin-top: 8px;
    opacity: 0.85;
}

/* 메인 네비게이션 */
.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(15, 15, 15, 0.8));
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
    filter: brightness(1.1);
}

.nav-item:active {
    transform: translateY(-1px);
}

.nav-icon {
    font-size: 1.2em;
}

.nav-text {
    letter-spacing: 0.5px;
}

.nav-link {
    text-decoration: none;
    border: none;
}

/* 업데이트 안내 박스 */
.update-notice {
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
}

.update-notice p {
    color: #ffd54f;
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
}

.update-notice p strong {
    color: #ffeb3b;
    font-size: 1.15em;
}

.update-notice .notice-detail {
    color: #ffcc80;
    font-size: 0.95em;
    margin-top: 10px;
    opacity: 0.9;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.update-time-section {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 50, 0.6));
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.2);
    backdrop-filter: blur(10px);
}

.update-time-section label {
    color: #c9c9e0;
    font-weight: 600;
    font-size: 1em;
}

.update-time-section input {
    padding: 12px 16px;
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    font-size: 1em;
    background: rgba(15, 15, 25, 0.6);
    color: #e0e0ff;
    transition: all 0.3s ease;
    min-width: 200px;
}

.update-time-section input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
    background: rgba(20, 20, 30, 0.8);
}

.btn-update {
    padding: 12px 30px;
    font-size: 1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    filter: brightness(1.1);
}

.admin-menu-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 50, 0.6));
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.btn-admin-menu {
    padding: 12px 24px;
    font-size: 1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    text-decoration: none;
}

.btn-admin-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    filter: brightness(1.1);
}

.boss-map-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(145deg, rgba(30, 40, 50, 0.8), rgba(20, 30, 40, 0.6));
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(120, 119, 198, 0.3);
}

/* 섹션 헤더 토글 */
.section-header-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-toggle h2 {
    margin-bottom: 0;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.8), rgba(100, 99, 178, 0.8));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-btn:hover {
    background: linear-gradient(135deg, rgba(140, 139, 218, 1), rgba(120, 119, 198, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.toggle-icon {
    font-size: 0.85em;
    transition: transform 0.3s ease;
}

/* 지도 컨테이너 숨김 상태 */
.map-container.hidden {
    display: none;
}

.boss-map-section h2 {
    color: #a8a8ff;
    font-size: 1.8em;
    margin-bottom: 0;
    text-shadow: 0 0 10px rgba(168, 168, 255, 0.5);
}

.map-container {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.boss-map-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    cursor: grab;
    transition: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(120, 119, 198, 0.3);
    transform-origin: center center;
    user-select: none;
}

.boss-map-image:active {
    cursor: grabbing;
}

.zoom-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.9), rgba(100, 99, 178, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.zoom-btn:hover {
    background: linear-gradient(135deg, rgba(140, 139, 218, 1), rgba(120, 119, 198, 1));
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.map-note {
    margin-top: 15px;
    color: #a8a8c0;
    font-size: 0.9em;
    font-style: italic;
}

/* 주기별 필터 섹션 */
/* 보스 검색 섹션 */
.boss-search-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(145deg, rgba(40, 50, 60, 0.8), rgba(30, 40, 50, 0.6));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.boss-search-section h2 {
    color: #64d8ff;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(100, 216, 255, 0.4);
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-container input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(100, 216, 255, 0.3);
    border-radius: 10px;
    font-size: 1em;
    background: rgba(15, 15, 25, 0.8);
    color: #e0e0ff;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #64d8ff;
    box-shadow: 0 0 20px rgba(100, 216, 255, 0.4);
}

.search-container input::placeholder {
    color: #7a7a9a;
}

.search-clear-btn {
    padding: 14px 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-clear-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

.search-results-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-results-container .empty-state-small {
    background: rgba(100, 216, 255, 0.1);
    border: 1px dashed rgba(100, 216, 255, 0.3);
}

.cycle-filter-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(145deg, rgba(40, 50, 60, 0.8), rgba(30, 40, 50, 0.6));
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(100, 180, 255, 0.3);
}

.cycle-filter-section h2 {
    color: #64b5f6;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.4);
}

.cycle-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cycle-filter-btn {
    padding: 12px 20px;
    background: linear-gradient(145deg, rgba(50, 60, 80, 0.9), rgba(40, 50, 70, 0.9));
    color: #b0bec5;
    border: 2px solid rgba(100, 180, 255, 0.2);
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cycle-filter-btn:hover {
    background: linear-gradient(145deg, rgba(60, 80, 120, 0.9), rgba(50, 70, 100, 0.9));
    border-color: rgba(100, 180, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 180, 255, 0.3);
}

.cycle-filter-btn.active {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #ffffff;
    border-color: #64b5f6;
    box-shadow: 0 4px 20px rgba(100, 181, 246, 0.5);
}

.favorites-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(145deg, rgba(50, 40, 20, 0.8), rgba(40, 30, 15, 0.6));
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 200, 100, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.favorites-section h2 {
    color: #fbbf24;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.favorites-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-state-small {
    text-align: center;
    color: #c9c9e0;
    font-size: 1em;
    padding: 30px;
    background: rgba(20, 20, 30, 0.4);
    border-radius: 10px;
}

.boss-card-small {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.95), rgba(20, 20, 35, 0.95));
    border-radius: 12px;
    padding: 15px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: all 0.3s ease;
}

.boss-card-small:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.4);
}

.boss-card-small.spawned {
    border: 2px solid #6ee7b7;
}

.boss-card-small.critical {
    border: 2px solid #ef4444;
}

.boss-card-small.soon {
    border: 2px solid #fbbf24;
}

.boss-card-small.pending-update {
    border: 2px solid #6b7280;
    opacity: 0.85;
}

.boss-header-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.boss-name-small {
    font-size: 1.1em;
    font-weight: bold;
    color: #fbbf24;
}

.favorite-btn-small {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.favorite-btn-small:hover {
    transform: scale(1.2);
}

.boss-info-small {
    font-size: 0.95em;
    color: #a8a8c0;
    margin-bottom: 5px;
}

.boss-info-small strong {
    color: #c9c9e0;
}

.timer-display-small {
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.timer-display-small.spawned {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.timer-display-small.critical {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.timer-display-small.soon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.timer-display-small.waiting {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.timer-display-small.pending-update {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #e5e7eb;
    font-size: 0.85em;
}

.next-spawn-small {
    text-align: center;
    font-size: 0.85em;
    color: #a8a8ff;
}

.all-bosses-section {
    margin: 40px 0;
}

.all-bosses-section h2 {
    color: #e0e0ff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
}

.boss-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.cycle-group {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.6), rgba(30, 30, 45, 0.6));
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.urgent-group {
    background: linear-gradient(145deg, rgba(60, 30, 30, 0.8), rgba(50, 20, 20, 0.8));
    border: 2px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
    animation: urgent-glow 2s ease-in-out infinite;
}

@keyframes urgent-glow {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
        border-color: rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 6px 35px rgba(239, 68, 68, 0.6);
        border-color: rgba(239, 68, 68, 0.7);
    }
}

.cycle-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.cycle-header {
    color: #a8a8ff;
    font-size: 1.4em;
    margin: 0;
    text-shadow: 0 0 10px rgba(168, 168, 255, 0.4);
}

.cycle-update-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.cycle-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.urgent-header {
    color: #ff6b6b;
    font-size: 1.5em;
    border-bottom: 2px solid rgba(239, 68, 68, 0.5);
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.boss-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boss-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 35, 0.9));
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
    gap: 20px;
}

.boss-row:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-color: rgba(120, 119, 198, 0.4);
}

.boss-row.critical {
    border-left: 4px solid #ef4444;
    background: linear-gradient(145deg, rgba(50, 30, 30, 0.9), rgba(40, 20, 20, 0.9));
}

.boss-row.soon {
    border-left: 4px solid #fbbf24;
    background: linear-gradient(145deg, rgba(50, 45, 30, 0.9), rgba(40, 35, 20, 0.9));
}

.boss-row.waiting {
    border-left: 4px solid #3b82f6;
}

.boss-row.pending-update {
    border-left: 4px solid #6b7280;
    background: linear-gradient(145deg, rgba(40, 40, 45, 0.9), rgba(30, 30, 35, 0.9));
    opacity: 0.85;
}

.boss-row-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.favorite-btn-row {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 8px;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    box-sizing: border-box;
    flex-shrink: 0;
}

.favorite-btn-row:hover {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.boss-name-row {
    font-size: 1.2em;
    font-weight: bold;
    color: #e0e0ff;
    min-width: 150px;
}

.boss-location-row {
    font-size: 0.95em;
    color: #a8a8c0;
}

.boss-row-center {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 200px;
}

.boss-detail {
    font-size: 1em;
    color: #c9c9e0;
}

.boss-detail-small {
    font-size: 0.85em;
    color: #a8a8c0;
}

.boss-row-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timer-display-row {
    font-size: 1.3em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 150px;
    text-align: center;
}

.timer-display-row.critical {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    animation: pulse-red 0.8s ease-in-out infinite;
}

.timer-display-row.soon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    animation: pulse-orange 1s ease-in-out infinite;
}

.timer-display-row.waiting {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.timer-display-row.pending-update {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #e5e7eb;
    font-size: 0.85em;
}

.update-btn-row {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.update-btn-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0 10px;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.boss-card {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 35, 0.9));
    border-radius: 15px;
    padding: 25px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.boss-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(120, 119, 198, 0.4);
}

.boss-card.spawned {
    border: 2px solid #6ee7b7;
    background: linear-gradient(145deg, rgba(30, 50, 40, 0.9), rgba(20, 40, 35, 0.9));
    box-shadow:
        0 8px 20px rgba(110, 231, 183, 0.3),
        inset 0 1px 0 rgba(110, 231, 183, 0.1);
}

.boss-card.critical {
    border: 2px solid #ef4444;
    background: linear-gradient(145deg, rgba(50, 30, 30, 0.9), rgba(40, 20, 20, 0.9));
    box-shadow:
        0 8px 20px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(239, 68, 68, 0.1);
}

.boss-card.soon {
    border: 2px solid #fbbf24;
    background: linear-gradient(145deg, rgba(50, 45, 30, 0.9), rgba(40, 35, 20, 0.9));
    box-shadow:
        0 8px 20px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(251, 191, 36, 0.1);
}

.boss-card.pending-update {
    border: 2px solid #6b7280;
    background: linear-gradient(145deg, rgba(40, 40, 45, 0.9), rgba(30, 30, 35, 0.9));
    box-shadow:
        0 8px 20px rgba(107, 114, 128, 0.3),
        inset 0 1px 0 rgba(107, 114, 128, 0.1);
    opacity: 0.85;
}

.boss-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.boss-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #e0e0ff;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
}

.delete-btn {
    background: linear-gradient(135deg, #3a1f1f 0%, #2a1a1a 100%);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #4a2f2f 0%, #3a2a2a 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

.boss-info {
    margin-bottom: 10px;
    color: #a8a8c0;
    font-size: 1.1em;
}

.boss-info strong {
    color: #c9c9e0;
    font-weight: 600;
}

.timer-display {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.timer-display.spawned {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s ease-in-out infinite;
}

.timer-display.critical {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(239, 68, 68, 0.4);
    animation: pulse-red 0.8s ease-in-out infinite;
}

.timer-display.soon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(245, 158, 11, 0.4);
    animation: pulse-orange 1s ease-in-out infinite;
}

.timer-display.waiting {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.3);
}

.timer-display.pending-update {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #e5e7eb;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(107, 114, 128, 0.3);
    font-size: 0.85em;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.6); }
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 35px rgba(245, 158, 11, 0.7); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 40px rgba(239, 68, 68, 0.8); }
}

.update-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin-top: 10px;
}

.update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.boss-last-update {
    text-align: center;
    font-size: 0.85em;
    color: #a8a8c0;
    margin-top: 10px;
    padding: 8px;
    background: rgba(20, 20, 30, 0.4);
    border-radius: 6px;
}

.update-btn-small {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    margin-top: 8px;
}

.update-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.boss-last-update-small {
    text-align: center;
    font-size: 0.75em;
    color: #a8a8c0;
    margin-top: 8px;
    padding: 6px;
    background: rgba(20, 20, 30, 0.4);
    border-radius: 6px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.95), rgba(20, 20, 35, 0.95));
    margin: 5% auto;
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.3);
}

.close {
    color: #a8a8c0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #e0e0ff;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.5);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #e0e0ff;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #c9c9e0;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    font-size: 1em;
    background: rgba(15, 15, 25, 0.6);
    color: #e0e0ff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
    background: rgba(20, 20, 30, 0.8);
}

.form-group input::placeholder {
    color: #6a6a80;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-submit,
.btn-cancel {
    flex: 1;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    filter: brightness(1.1);
}

.btn-cancel {
    background: linear-gradient(135deg, #2d2d3a 0%, #1a1a2e 100%);
    color: #a8a8c0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.empty-state {
    text-align: center;
    color: #c9c9e0;
    font-size: 1.2em;
    padding: 60px 20px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.6), rgba(15, 15, 25, 0.6));
    border-radius: 20px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.boss-table-section {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 50, 0.6));
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.boss-table-section h2 {
    text-align: center;
    color: #e0e0ff;
    font-size: 2em;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
}

.table-wrapper {
    margin-bottom: 40px;
}

.table-wrapper h3 {
    color: #c9c9ff;
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.boss-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 15, 25, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.boss-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.boss-table thead th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 1em;
}

.boss-table tbody tr {
    border-bottom: 1px solid rgba(120, 119, 198, 0.2);
    transition: background 0.3s ease;
}

.boss-table tbody tr:hover {
    background: rgba(120, 119, 198, 0.1);
}

.boss-table tbody tr:last-child {
    border-bottom: none;
}

.boss-table tbody td {
    padding: 12px 15px;
    color: #c9c9e0;
    font-size: 0.95em;
}

.boss-table tbody td:first-child {
    color: #a8a8c0;
}

.boss-table tbody td:nth-child(2) {
    color: #e0e0ff;
    font-weight: 600;
}

.boss-table tbody td:last-child {
    color: #a8a8ff;
    font-weight: 500;
}

.table-note {
    text-align: center;
    color: #fbbf24;
    font-size: 1em;
    margin-top: 20px;
    padding: 15px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 보스 위치 모달 */
.location-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.location-modal-content {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.98), rgba(20, 20, 35, 0.98));
    padding: 30px;
    border-radius: 20px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(120, 119, 198, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #a8a8c0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.location-close:hover {
    color: #e0e0ff;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.5);
    transform: scale(1.1);
}

.location-modal-title {
    color: #e0e0ff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
    text-align: center;
}

.location-modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(120, 119, 198, 0.3);
}

/* 장비옵션 모달 */
.equipment-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.equipment-modal-content {
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.98), rgba(12, 12, 12, 0.98));
    padding: 30px 40px;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.25);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    overflow-y: auto;
}

.equipment-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #a8a8c0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.equipment-close:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.equipment-modal-title {
    color: #ffd700;
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* 영각옵션 우선순위표 */
.priority-table-section {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.priority-table-title {
    color: #ffd700;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.priority-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.priority-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.priority-rank {
    min-width: 50px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    font-size: 0.95em;
}

.priority-high .priority-rank {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
}

.priority-mid .priority-rank {
    background: linear-gradient(135deg, #ffa94d, #ff922b);
    color: #fff;
}

.priority-low .priority-rank {
    background: linear-gradient(135deg, #74c0fc, #4dabf7);
    color: #fff;
}

.priority-items {
    color: #e0e0ff;
    font-size: 0.95em;
}

/* 컴팩트 우선순위 그리드 */
.priority-compact-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.priority-item {
    display: grid;
    grid-template-columns: 55px 90px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.p-rank {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    font-size: 0.9em;
}

.priority-high .p-rank {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
}

.priority-mid .p-rank {
    background: linear-gradient(135deg, #ffa94d, #ff922b);
    color: #fff;
}

.priority-low .p-rank {
    background: linear-gradient(135deg, #74c0fc, #4dabf7);
    color: #fff;
}

.p-equip {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.95em;
}

.p-opt {
    color: #e0e0ff;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .priority-item {
        grid-template-columns: 50px 80px 1fr;
        gap: 8px;
        padding: 8px 12px;
    }

    .p-rank {
        font-size: 0.8em;
        padding: 3px 6px;
    }

    .p-equip, .p-opt {
        font-size: 0.85em;
    }
}

.equipment-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.equip-section {
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.6), rgba(30, 30, 50, 0.6));
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(120, 119, 198, 0.3);
}

.equip-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.equip-title.priority-1 { color: #ff6b6b; }
.equip-title.priority-2 { color: #ffa94d; }
.equip-title.priority-3 { color: #ffd43b; }
.equip-title.priority-4 { color: #69db7c; }
.equip-title.priority-5 { color: #74c0fc; }
.equip-title.priority-6 { color: #b197fc; }
.equip-title.priority-etc { color: #a8a8c0; }
.equip-title.priority-acc { color: #f783ac; }

.priority-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65em;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.equip-options {
    list-style-position: inside;
    padding-left: 5px;
    margin-bottom: 15px;
}

.equip-options li {
    color: #e0e0ff;
    font-size: 1.05em;
    padding: 8px 0;
    border-bottom: 1px solid rgba(120, 119, 198, 0.15);
}

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

.option-value {
    color: #ffd700;
    font-weight: bold;
}

.equip-note {
    color: #a8a8c0;
    font-size: 0.95em;
    line-height: 1.7;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.equip-note strong {
    color: #ffd700;
}

.core-options {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #e0e0ff;
    line-height: 1.8;
}

.core-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    margin-right: 8px;
}

/* 아르카나 모달 */
.arcana-content {
    color: #e0e0ff;
    line-height: 1.8;
}

.arcana-section {
    margin-bottom: 30px;
}

.arcana-section-title {
    color: #ffd700;
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

/* 아르카나 표 */
.arcana-table-wrapper {
    overflow-x: auto;
    margin-bottom: 10px;
}

.arcana-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    min-width: 600px;
    border: 2px solid #2c3e50;
}

.arcana-table th,
.arcana-table td {
    padding: 10px 12px;
    text-align: center;
    border: 2px solid #2c3e50;
}

/* 헤더 스타일 */
.arcana-th-dark {
    background: #2c3e50;
    color: #fff;
    font-weight: bold;
}

.arcana-th-blue {
    background: #2980b9;
    color: #fff;
    font-weight: bold;
}

.arcana-th-blue-sub {
    background: #5dade2;
    color: #fff;
    font-weight: bold;
}

.arcana-th-green {
    background: #27ae60;
    color: #fff;
    font-weight: bold;
}

.arcana-th-green-sub {
    background: #58d68d;
    color: #fff;
    font-weight: bold;
}

/* 셀 스타일 */
.arcana-td-level {
    background: #34495e;
    color: #fff;
    font-weight: bold;
}

.arcana-td-none {
    background: #bdc3c7;
    color: #7f8c8d;
    font-weight: bold;
}

.arcana-td-normal {
    background: #ecf0f1;
    color: #2c3e50;
    font-weight: bold;
}

.arcana-td-rare {
    background: #a8e6cf;
    color: #1e5631;
    font-weight: bold;
}

.arcana-td-legend {
    background: #85c1e9;
    color: #1a5276;
    font-weight: bold;
}

.arcana-td-unique {
    background: #fff3cd;
    color: #856404;
    font-weight: bold;
}

/* 아르카나 스킬 표 추가 스타일 */
.arcana-td-skill {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: bold;
}

.arcana-td-source {
    background: #f8f9fa;
    color: #555;
    font-size: 0.9em;
}

.arcana-td-magic {
    background: #d6eaf8;
    color: #1a5276;
    font-weight: bold;
}

.arcana-td-vitality {
    background: #d5f5e3;
    color: #1e5631;
    font-weight: bold;
}

/* 아르카나 리스트 */
.arcana-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arcana-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #e0e0ff;
}

.arcana-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #ffd700;
}

/* 세트 효과 리스트 */
.arcana-set-list li {
    padding: 10px 0;
    padding-left: 20px;
}

.set-name {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.set-vitality {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.set-magic {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}

@media (max-width: 768px) {
    .equipment-modal-content {
        padding: 20px;
        width: calc(100% - 30px);
        max-height: 85vh;
    }

    .equipment-modal-title {
        font-size: 1.5em;
        margin-top: 20px;
    }

    .equip-title {
        font-size: 1.2em;
    }

    .equip-options li {
        font-size: 0.95em;
    }

    .equip-note {
        font-size: 0.9em;
    }
}

.boss-location-row:hover {
    color: #e0e0ff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .controls {
        flex-direction: column;
    }

    .btn-add,
    .btn-reset {
        width: 100%;
    }

    .boss-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .boss-row-left,
    .boss-row-center {
        width: 100%;
        min-width: auto;
    }

    .boss-row-right {
        width: 100%;
        justify-content: space-between;
    }

    .timer-display-row {
        flex: 1;
        min-width: auto;
    }
}

/* 맨 위로 버튼 */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

/* 개별 업데이트 버튼 */
.btn-individual-update {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 12px;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(118, 75, 162, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-individual-update::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn-individual-update:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.5),
        0 0 30px rgba(118, 75, 162, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-individual-update:hover::before {
    left: 100%;
}

.btn-individual-update:active {
    transform: translateY(-1px) scale(0.98);
}

/* 즐겨찾기 순서 번호 */
.favorite-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1em;
    margin-right: 12px;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 140, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: number-glow 2s ease-in-out infinite;
}

@keyframes number-glow {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(255, 140, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(255, 215, 0, 0.8),
            0 0 30px rgba(255, 140, 0, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
}

/* 즐겨찾기 드래그 스타일 */
.favorites-container .boss-row {
    cursor: grab;
    user-select: none;
    position: relative;
}

.favorites-container .boss-row::before {
    content: '⋮⋮';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 215, 0, 0.6);
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: -3px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.favorites-container .boss-row:hover::before {
    color: #ffd700;
    opacity: 1;
    left: -20px;
}

.favorites-container .boss-row:active {
    cursor: grabbing;
}

.favorites-container .boss-row.dragging {
    opacity: 0.6;
    transform: scale(1.03) rotate(1deg);
    box-shadow:
        0 15px 40px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.2);
    z-index: 1000;
    border: 2px dashed #ffd700;
    background: linear-gradient(145deg, rgba(60, 50, 30, 0.95), rgba(50, 40, 25, 0.95));
}

.favorites-container .boss-row.drag-over {
    border-top: 4px solid #ffd700;
    padding-top: 20px;
    margin-top: -4px;
    box-shadow: 0 -5px 20px rgba(255, 215, 0, 0.4);
}

/* 즐겨찾기 드래그 안내 문구 */
.favorites-drag-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 1px dashed rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    margin-bottom: 15px;
    color: #ffd700;
    font-size: 0.95em;
}

.favorites-drag-hint .drag-icon {
    font-size: 1.3em;
    animation: drag-hint-bounce 1.5s ease-in-out infinite;
}

@keyframes drag-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 모바일에서 개별 업데이트 버튼 */
@media (max-width: 768px) {
    .btn-individual-update {
        padding: 8px 14px;
        font-size: 0.8em;
        margin-right: 8px;
    }

    .favorite-number {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.95em;
        margin-right: 10px;
    }

    .favorites-drag-hint {
        flex-direction: column;
        gap: 5px;
        padding: 10px 15px;
        font-size: 0.85em;
    }

    .favorites-container .boss-row::before {
        left: -18px;
        font-size: 1em;
    }

    .favorites-container .boss-row:hover::before {
        left: -15px;
    }

    .favorite-btn-row {
        padding: 4px 8px;
        font-size: 1.1em;
        min-width: 35px;
    }
}

/* ============================================
   타이틀 모달 스타일
   ============================================ */

.title-content {
    padding: 20px;
}

.title-section {
    margin-bottom: 30px;
}

.title-section-header {
    font-size: 1.3em;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

.title-section-header.title-attack {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(185, 28, 28, 0.2));
    color: #ff6b6b;
    border-left: 4px solid #ef4444;
}

.title-section-header.title-defense {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(29, 78, 216, 0.2));
    color: #60a5fa;
    border-left: 4px solid #3b82f6;
}

.title-section-header.title-etc {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(126, 34, 206, 0.2));
    color: #c084fc;
    border-left: 4px solid #a855f7;
}

.title-item {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.title-item:hover {
    background: rgba(40, 40, 60, 0.8);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

.title-name {
    color: #ffd700;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.title-condition {
    color: #a8a8c0;
    font-size: 0.95em;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 2px solid #6b7280;
}

.title-condition strong {
    color: #9ca3af;
}

.title-effect {
    color: #10b981;
    font-size: 0.95em;
    margin-bottom: 6px;
    padding-left: 10px;
    border-left: 2px solid #10b981;
}

.title-effect strong {
    color: #34d399;
}

.title-effect-own {
    color: #60a5fa;
    font-size: 0.95em;
    padding-left: 10px;
    border-left: 2px solid #3b82f6;
}

.title-effect-own strong {
    color: #93c5fd;
}

/* 추천 우선순위 섹션 */
.title-section-header.title-recommend {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
    border-left: 4px solid #f59e0b;
}

.title-priority-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.title-priority-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 10px;
}

.priority-label {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
}

.priority-label.priority-pvp {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.priority-label.priority-pve {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.priority-label.priority-util {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.priority-titles {
    color: #ffd700;
    font-weight: 500;
}

/* 타이틀 모달 반응형 */
@media (max-width: 768px) {
    .title-section-header {
        font-size: 1.1em;
        padding: 10px 15px;
    }

    .title-item {
        padding: 15px;
    }

    .title-name {
        font-size: 1.1em;
    }

    .title-condition,
    .title-effect,
    .title-effect-own {
        font-size: 0.9em;
    }

    .title-priority-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .priority-titles {
        font-size: 0.95em;
    }
}

/* ============ 시세 모달 스타일 ============ */

/* 네비게이션 시세 버튼 */
.nav-price {
    position: relative;
}

.price-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 35px;
    text-align: center;
}

/* 스텟 모달 */
.stat-modal-content {
    max-width: 600px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.stat-section-title {
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-name {
    color: #fff;
    font-weight: bold;
    font-size: 1em;
}

.stat-server {
    color: #888;
    font-weight: normal;
    font-size: 0.85em;
}

.stat-desc {
    color: #aaa;
    font-size: 0.9em;
}

.stat-grid.basic-stat {
    grid-template-columns: repeat(3, 1fr);
}

.stat-grid.basic-stat .stat-item {
    text-align: center;
}

.stat-grid.basic-stat .stat-name {
    color: #ffd700;
}

@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid.basic-stat {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 시세 모달 콘텐츠 */
.price-modal-content {
    max-width: 480px;
    padding: 25px 30px;
}

.price-modal-content .equipment-modal-title {
    margin-bottom: 20px;
    font-size: 1.6em;
}

.price-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 현재 시세 섹션 */
.price-current-section {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.price-server-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-server-name {
    color: #ffd700;
    font-size: 1.1em;
    font-weight: bold;
}

.price-update-time {
    color: #888;
    font-size: 0.8em;
}

.price-main-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-value-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-label {
    color: #888;
    font-size: 0.8em;
}

.price-value {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
}

.price-unit {
    color: #aaa;
    font-size: 0.85em;
}

.price-change-box {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.price-change-box.up {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.price-change-box.down {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.price-change-icon {
    font-size: 1.2em;
}

.price-change-box.up .price-change-icon {
    color: #4CAF50;
}

.price-change-box.down .price-change-icon {
    color: #f44336;
}

.price-change-value {
    font-size: 1em;
    font-weight: bold;
}

.price-change-box.up .price-change-value {
    color: #4CAF50;
}

.price-change-box.down .price-change-value {
    color: #f44336;
}

.price-avg-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-avg-label {
    color: #888;
    font-size: 0.85em;
}

.price-avg-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 1em;
}

.price-avg-unit {
    color: #888;
    font-size: 0.85em;
}

/* 시세 그래프 섹션 */
.price-chart-section {
    background: rgba(120, 119, 198, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.chart-title {
    color: #fff;
    font-size: 1em;
    margin: 0;
}

.chart-period-select {
    padding: 6px 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.85em;
    cursor: pointer;
}

.chart-period-select:focus {
    outline: none;
    border-color: #ffd700;
}

.chart-container {
    position: relative;
    height: 180px;
}

.chart-notice {
    color: #888;
    font-size: 0.8em;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

/* 환산 계산기 섹션 */
.price-calculator-section {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.calc-title {
    color: #fff;
    font-size: 1em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-main-input {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.95em;
}

.calc-main-input:focus {
    outline: none;
    border-color: #ffd700;
}

.calc-unit-select {
    padding: 10px 8px;
    border: 1px solid #555;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.9em;
    cursor: pointer;
}

.calc-unit-select:focus {
    outline: none;
    border-color: #ffd700;
}

.calc-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd700, #f0c000);
    color: #1a1a2e;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #ffe44d, #ffd700);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.calc-btn:active {
    transform: translateY(0);
}

.calc-result-box {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    text-align: center;
}

.calc-result-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.calc-result-label {
    color: #ccc;
    font-size: 0.95em;
}

.calc-result-value {
    color: #ffd700;
    font-size: 1.5em;
    font-weight: bold;
}

/* 커스텀 시세 입력 */
.calc-custom-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.calc-custom-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-size: 0.85em;
    cursor: pointer;
    white-space: nowrap;
}

.calc-custom-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ffd700;
    cursor: pointer;
}

.calc-custom-input {
    flex: 1;
    min-width: 80px;
    padding: 8px 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 0.9em;
    transition: all 0.2s;
}

.calc-custom-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calc-custom-input:not(:disabled):focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.6);
}

.calc-custom-unit {
    color: #888;
    font-size: 0.8em;
    white-space: nowrap;
}

/* 출처 링크 */
.price-source {
    text-align: center;
}

.price-source a {
    color: #888;
    text-decoration: none;
    font-size: 0.85em;
    transition: color 0.2s;
}

.price-source a:hover {
    color: #ffd700;
}

/* 시세 모달 반응형 */
@media (max-width: 768px) {
    .price-modal-content {
        padding: 20px;
    }

    .price-main-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-value {
        font-size: 1.8em;
    }

    .calc-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .calc-btn {
        width: 100%;
    }
}

/* ============================================
   공지사항/업데이트 섹션
   ============================================ */

.news-section {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.9));
    border-radius: 16px;
    padding: 20px 25px;
    margin-top: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding-bottom: 10px;
}

.news-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #aaa;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.news-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.news-tab.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.15));
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.news-content {
    max-height: 300px;
    overflow-y: auto;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-item:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(3px);
}

.news-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: #222;
    flex-shrink: 0;
}

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

.news-title {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.news-item:hover .news-title {
    color: #ffd700;
}

.news-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #666;
}

.news-date {
    color: #888;
}

.news-views {
    color: #6a9eff;
}

.news-loading {
    text-align: center;
    color: #888;
    padding: 30px;
    font-size: 14px;
}

.news-error {
    text-align: center;
    color: #ff6b6b;
    padding: 20px;
    font-size: 14px;
}

/* ============================================
   캐릭터 검색 섹션
   ============================================ */

.character-search-section {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.9));
    border-radius: 16px;
    padding: 25px 30px;
    margin-top: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.character-search-title {
    color: #ffd700;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.search-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.race-filter {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.race-btn {
    padding: 10px 20px;
    background: rgba(30, 30, 30, 0.9);
    color: #888;
    border: none;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.race-btn:not(:last-child) {
    border-right: 1px solid rgba(255, 215, 0, 0.2);
}

.race-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    color: #ccc;
}

.race-btn.active {
    background: linear-gradient(135deg, #ffd700, #f0c000);
    color: #1a1a1a;
}

.server-filter {
    flex: 1;
    min-width: 200px;
}

.server-select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ccc;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffd700' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.server-select:hover {
    border-color: rgba(255, 215, 0, 0.5);
}

.server-select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.server-select option {
    background: #1a1a1a;
    color: #ccc;
}

.search-input-row {
    display: flex;
    gap: 10px;
}

.character-input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    transition: all 0.2s ease;
}

.character-input::placeholder {
    color: #666;
}

.character-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.search-btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #ffd700, #f0c000);
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ffe44d, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-result {
    margin-top: 20px;
}

.search-result:empty {
    display: none;
}

/* 검색 결과 컨테이너 - 5열 그리드 */
#characterSearchResult {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* 검색 결과 카드 스타일 */
.search-result-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(80, 80, 100, 0.4);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.search-result-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(40, 40, 55, 0.8);
    transform: translateY(-2px);
}

.card-profile-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(50, 50, 60, 0.8);
    border: 2px solid rgba(100, 100, 120, 0.5);
}

.card-profile {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-profile-empty {
    width: 100%;
    height: 100%;
    background: rgba(60, 60, 70, 0.8);
}

.card-name {
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    color: #888;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 검색 중 로딩 */
.search-loading {
    text-align: center;
    padding: 30px;
    color: #888;
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffd700;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

/* 검색 페이지네이션 */
.search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 15px 0;
}

.pagination-info {
    color: #888;
    font-size: 0.85em;
    margin-right: 10px;
}

.pagination-btn {
    background: rgba(50, 50, 60, 0.8);
    border: 1px solid rgba(100, 100, 120, 0.5);
    color: #ccc;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: rgba(70, 70, 85, 0.9);
    border-color: rgba(255, 215, 0, 0.5);
    color: #fff;
}

.pagination-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    font-weight: bold;
}

/* 검색 결과 없음 */
.search-no-result {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1em;
}

/* ============ 캐릭터 상세 모달 ============ */
.character-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.character-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.character-detail-content {
    position: relative;
    background: #1a1a24;
    border: 1px solid rgba(120, 119, 198, 0.4);
    border-radius: 12px;
    width: 95%;
    max-width: 1300px;
    max-height: 92vh;
    overflow-y: auto;
    z-index: 1;
}

.character-detail-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.character-detail-close:hover {
    color: #fff;
}

.character-detail-body {
    padding: 24px;
}

.detail-loading,
.detail-error {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.detail-error {
    color: #f44336;
}

/* ============ 캐릭터 상세 (다크 모던 스타일) ============ */

/* 헤더 프로필 */
.cd-header {
    background: linear-gradient(135deg, rgba(35, 35, 45, 0.98) 0%, rgba(20, 20, 28, 0.99) 100%);
    padding: 28px 36px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.cd-profile-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
}

.cd-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.cd-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 215, 0, 0.4);
}

.cd-level {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 12px;
}

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

.cd-title {
    font-size: 1.1em;
    margin-bottom: 6px;
    color: #ffd700;
}

.cd-name-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cd-name {
    font-size: 2.2em;
    font-weight: bold;
    color: #fff;
}

.cd-meta-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cd-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 1em;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cd-tag.guild {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.2);
}

/* 전투력 강조 */
.cd-power {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-power-label {
    font-size: 1em;
    color: #888;
}

.cd-power-value {
    font-size: 2em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* 펫/날개 헤더 */
.cd-petwing-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.cd-pw-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cd-pw-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.cd-pw-label {
    font-size: 0.95em;
    color: #aaa;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 타이틀 섹션 (전체 너비) */
.cd-title-section {
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 16px 28px 0;
    border-radius: 10px;
    padding: 20px 24px;
}

.cd-title-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-title-label {
    font-size: 1.25em;
    font-weight: bold;
    color: #ddd;
}

.cd-title-total {
    font-size: 1.05em;
    color: #888;
}

.cd-title-categories-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cd-title-category {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-title-cat-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cd-title-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.cd-title-cat-info {
    flex: 1;
    min-width: 0;
}

.cd-title-cat-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cd-title-cat-name {
    font-size: 1.05em;
    color: #aaa;
}

.cd-title-cat-count {
    font-size: 1em;
    color: #ffd700;
    font-weight: bold;
}

.cd-title-equipped {
    font-size: 1.15em;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-title-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cd-title-stat {
    font-size: 0.95em;
    color: #8bc34a;
    line-height: 1.4;
}

.cd-title-stat.empty {
    color: #555;
}

/* 랭킹 섹션 (공홈 스타일) */
.cd-ranking-section {
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 16px 28px 0;
    border-radius: 10px;
    padding: 20px 24px;
}

.cd-ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cd-ranking-label {
    font-size: 1.25em;
    font-weight: bold;
    color: #ffffff;
}

.cd-ranking-legend {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cd-ranking-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1em;
}

.cd-ranking-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.cd-ranking-legend-dot.pvp {
    background: #ff6464;
}

.cd-ranking-legend-dot.pve {
    background: #6496ff;
}

.cd-ranking-legend-text {
    color: #aaa;
}

.cd-ranking-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
}

.cd-ranking-item {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(25, 25, 35, 0.9);
    border: 2px solid rgba(100, 120, 180, 0.4);
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cd-ranking-item.pvp {
    border-color: rgba(255, 100, 100, 0.6);
}

.cd-ranking-item.pve {
    border-color: rgba(100, 150, 255, 0.6);
}

.cd-ranking-content-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cd-ranking-icon {
    font-size: 1.2em;
}

.cd-ranking-content-name {
    font-size: 1em;
    color: #ccc;
    white-space: nowrap;
}

.cd-ranking-rank {
    font-size: 1.7em;
    font-weight: bold;
    color: #ffd700;
}

.cd-ranking-point {
    font-size: 0.95em;
    color: #888;
}

.cd-ranking-grade-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    color: #fff;
}

.cd-ranking-grade-badge.bronze {
    background: linear-gradient(135deg, #8B4513, #CD853F);
}

.cd-ranking-grade-badge.silver {
    background: linear-gradient(135deg, #708090, #C0C0C0);
}

.cd-ranking-grade-badge.gold {
    background: linear-gradient(135deg, #DAA520, #FFD700);
}

.cd-ranking-grade-badge.platinum {
    background: linear-gradient(135deg, #1E90FF, #87CEEB);
}

.cd-ranking-grade-badge.diamond {
    background: linear-gradient(135deg, #9400D3, #DA70D6);
}

.cd-ranking-grade-badge.master {
    background: linear-gradient(135deg, #FF4500, #FF6347);
}

.cd-ranking-grade-badge.grandmaster {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.cd-ranking-grade-badge.challenger {
    background: linear-gradient(135deg, #00CED1, #00FFFF);
}

.cd-ranking-grade-badge.commander {
    background: linear-gradient(135deg, #8B0000, #DC143C);
}

/* 랭킹 없음 스타일 - 테두리 색상 유지 */
.cd-ranking-item.no-rank {
    opacity: 0.5;
}

.cd-ranking-item.no-rank .cd-ranking-rank,
.cd-ranking-item.no-rank .cd-ranking-point {
    color: #555;
}

/* 스탯 섹션 (전체 너비) */
.cd-stat-section {
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 16px 28px 0;
    border-radius: 10px;
    padding: 20px 24px;
}

.cd-stat-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-stat-column {
    display: flex;
    flex-direction: column;
}

.cd-stat-column-title {
    font-size: 1.15em;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 주요 스탯: 한줄 3개씩 2줄 */
.cd-stat-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
    align-items: stretch;
}

/* 주신의 스탯: 한줄 5개씩 2줄 */
.cd-stat-list.god-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: stretch;
}

.cd-stat-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    min-height: 90px;
    box-sizing: border-box;
}

.cd-stat-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-stat-row .cd-stat-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.cd-stat-row .cd-stat-name {
    font-size: 1.1em;
    color: #ccc;
}

.cd-stat-row .cd-stat-value {
    font-size: 1.25em;
    font-weight: bold;
    color: #ffd700;
    margin-left: auto;
}

.cd-stat-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    min-height: 36px;
    align-content: flex-start;
}

.cd-stat-secondary span {
    font-size: 0.9em;
    color: #8bc34a;
    line-height: 1.4;
}

.cd-stat-secondary span.empty {
    visibility: hidden;
    width: 100%;
}

/* 주신의 스탯 */
.god-stats .cd-stat-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 8px;
    padding: 10px 12px;
    min-height: 70px;
}

.god-stats .cd-stat-row .cd-stat-icon {
    width: 26px;
    height: 26px;
}

.god-stats .cd-stat-row .cd-stat-name {
    font-size: 0.9em;
    flex: 1;
}

.god-stats .cd-stat-row .cd-stat-value {
    font-size: 1em;
    margin-left: 0;
}

.god-stats .cd-stat-secondary {
    width: 100%;
    padding-left: 34px;
    margin-top: 0;
    min-height: 18px;
}

.god-stats .cd-stat-secondary span {
    font-size: 0.8em;
    color: #8bc34a;
}

/* 장비 섹션 (전체 너비, 2컬럼) */
.cd-equipment-section {
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-equipment-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cd-equipment-column {
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
}

.cd-equipment-column-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-equipment-section .cd-equipment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 아르카나 섹션 */
.cd-arcana-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 아르카나 카드 그리드 */
.cd-arcana-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.cd-arcana-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cd-arcana-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    border: 2px solid #555;
    margin-bottom: 8px;
}

.cd-arcana-card-info {
    text-align: center;
    margin-bottom: 8px;
}

.cd-arcana-card-name {
    display: block;
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 2px;
}

.cd-arcana-card-level {
    font-size: 0.75em;
    color: #8bc34a;
    font-weight: bold;
}

/* 아르카나 주신의 스탯 */
.cd-arcana-card-stats {
    width: 100%;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    min-height: 28px;
}

.cd-arcana-stat {
    font-size: 0.75em;
    color: #aaa;
    text-align: center;
    line-height: 1.4;
}

.arcana-stat-extra {
    color: #8bc34a;
    margin-left: 2px;
}

/* 아르카나 스킬 */
.cd-arcana-card-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
}

.cd-arcana-skill-item {
    position: relative;
    width: 28px;
    height: 28px;
}

.cd-arcana-skill-item img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.arcana-skill-lv {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: rgba(0, 0, 0, 0.8);
    color: #8bc34a;
    font-size: 0.65em;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
}

/* 아르카나 세트 정보 */
.cd-arcana-set-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-arcana-set-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
}

.cd-arcana-set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-arcana-set-name {
    font-size: 1em;
    font-weight: bold;
}

.cd-arcana-set-count {
    font-size: 0.9em;
    color: #fff;
    font-weight: bold;
}

.cd-arcana-set-bonuses-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-arcana-bonus-item {
    display: flex;
    gap: 12px;
    font-size: 0.85em;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    opacity: 0.5;
}

.cd-arcana-bonus-item.active {
    opacity: 1;
    background: rgba(100, 181, 246, 0.15);
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.cd-arcana-bonus-item .bonus-degree {
    color: #64b5f6;
    font-weight: bold;
    white-space: nowrap;
}

.cd-arcana-bonus-item .bonus-desc {
    color: #aaa;
}

.cd-arcana-bonus-item.active .bonus-desc {
    color: #fff;
}

.cd-equipment-section .cd-equip-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.cd-equipment-section .cd-equip-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 2px solid #555;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.cd-equip-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cd-equipment-section .cd-equip-name {
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-equip-exceed {
    font-size: 0.8em;
    color: #ff9800;
    font-weight: bold;
}

/* 장비 아이템 클릭 가능 */
.cd-equipment-section .cd-equip-item {
    cursor: pointer;
    transition: background 0.2s;
}

.cd-equipment-section .cd-equip-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cd-equipment-section .cd-equip-item.expanded {
    background: rgba(255, 255, 255, 0.05);
}

.cd-equip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.cd-equip-toggle {
    margin-left: auto;
    color: #666;
    font-size: 0.8em;
    transition: transform 0.2s;
}

/* 장비 상세 정보 */
.cd-equip-detail {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-equip-detail-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-equip-detail-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
}

.cd-equip-detail-title {
    font-size: 0.85em;
    font-weight: bold;
    color: #aaa;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cd-equip-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cd-equip-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    padding: 2px 0;
}

.cd-equip-stat .stat-name {
    color: #999;
}

.cd-equip-stat .stat-value {
    color: #fff;
}

.cd-equip-stat .stat-extra {
    color: #8bc34a;
}

.cd-equip-stat.exceed-stat {
    color: #ff9800;
}

.cd-equip-stat.exceed-stat .stat-name,
.cd-equip-stat.exceed-stat .stat-value {
    color: #ff9800;
}

.cd-equip-substats {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.cd-equip-substat-title {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 6px;
}

.cd-equip-stat.sub .stat-name {
    color: #7cb342;
}

.cd-equip-stat.sub .stat-value {
    color: #8bc34a;
}

/* 영혼 각인 */
.cd-equip-soulbind {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.soulbind-label {
    font-size: 0.85em;
    color: #999;
}

.soulbind-rate {
    font-size: 1em;
    font-weight: bold;
    color: #64b5f6;
}

.soulbind-stats {
    margin-top: 4px;
}

/* 영혼 각인 스킬 */
.cd-equip-soulbind-skills {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cd-equip-soulbind-skill {
    font-size: 0.85em;
    color: #ffab91;
    line-height: 1.5;
}

/* 마석 */
.cd-equip-magicstones {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cd-equip-magicstone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.magicstone-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #555;
}

.magicstone-name {
    font-size: 0.85em;
}

/* 신석 */
.cd-equip-godstones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-equip-godstone {
    display: flex;
    gap: 10px;
}

.godstone-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid #555;
    flex-shrink: 0;
}

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

.godstone-name {
    font-size: 0.9em;
    font-weight: bold;
}

.godstone-desc {
    font-size: 0.75em;
    color: #888;
    line-height: 1.4;
}

/* 아르카나 스킬 */
.cd-arcana-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cd-arcana-skill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
}

.arcana-skill-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.arcana-skill-name {
    font-size: 0.85em;
    color: #ddd;
}

.arcana-skill-level {
    font-size: 0.75em;
    color: #8bc34a;
    font-weight: bold;
}

/* 아르카나 세트 */
.cd-arcana-set-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.cd-arcana-set-item {
    font-size: 0.8em;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    opacity: 0.5;
}

.cd-arcana-set-item.equipped {
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cd-arcana-set-bonuses {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cd-arcana-set-bonus {
    display: flex;
    gap: 10px;
    font-size: 0.85em;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    opacity: 0.5;
}

.cd-arcana-set-bonus.active {
    opacity: 1;
    background: rgba(100, 181, 246, 0.15);
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.bonus-degree {
    color: #64b5f6;
    font-weight: bold;
    white-space: nowrap;
}

.bonus-desc {
    color: #ccc;
}

.cd-arcana-set-bonus.active .bonus-desc {
    color: #fff;
}

/* 로딩/에러 */
.cd-equip-loading,
.cd-equip-error {
    text-align: center;
    padding: 12px;
    color: #888;
    font-size: 0.9em;
}

.cd-equip-error {
    color: #f44336;
}

/* 2컬럼 레이아웃 */
.cd-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px 28px;
}

.cd-left, .cd-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 섹션 공통 */
.cd-section {
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 14px;
}

.cd-section-title {
    font-size: 0.85em;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cd-count {
    color: #888;
    font-weight: normal;
    font-size: 0.85em;
}

/* 스탯 그리드 */
.cd-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.cd-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.cd-stat-icon {
    font-size: 1em;
    margin-bottom: 2px;
}

.cd-stat-name {
    color: #888;
    font-size: 0.7em;
}

.cd-stat-value {
    color: #fff;
    font-size: 1em;
    font-weight: bold;
}

/* 타이틀 카테고리 */
.cd-title-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.cd-title-cat {
    text-align: center;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.cd-title-cat-name {
    color: #888;
    font-size: 0.7em;
    margin-bottom: 2px;
}

.cd-title-cat-count {
    color: #fff;
    font-size: 0.85em;
    font-weight: bold;
}

/* 데바니온 섹션 */
.cd-daevanion-section {
    margin-top: 20px;
    padding: 16px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 8px;
}

.cd-daevanion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cd-daevanion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-daevanion-item.complete {
    border-color: rgba(100, 200, 100, 0.4);
    background: rgba(100, 200, 100, 0.08);
}

.cd-daevanion-name {
    color: #ddd;
    font-size: 0.85em;
}

.cd-daevanion-item.complete .cd-daevanion-name {
    color: #90ee90;
}

.cd-daevanion-count {
    color: #ffd700;
    font-size: 0.85em;
    font-weight: bold;
}

.cd-daevanion-item.complete .cd-daevanion-count {
    color: #90ee90;
}

.cd-daevanion-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cd-daevanion-item.active {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* 데바니온 상세 정보 */
.cd-daevanion-detail {
    margin-top: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.cd-daevanion-loading,
.cd-daevanion-error {
    text-align: center;
    color: #888;
    padding: 20px;
}

.cd-daevanion-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

.cd-daevanion-detail-title {
    color: #ffd700;
    font-size: 1em;
    font-weight: bold;
}

.cd-daevanion-detail-progress {
    color: #888;
    font-size: 0.85em;
    flex: 1;
}

/* 데바니온 보드 그리드 */
.cd-daevanion-board-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: auto;
    flex-shrink: 0;
    /* 정사각형 유지 */
    aspect-ratio: 1;
    min-width: 550px;
    min-height: 550px;
}

.cd-daevanion-board {
    display: grid;
    /* 기본값 - JS에서 동적으로 오버라이드됨 (11x11, 13x13, 15x15) */
    grid-template-rows: repeat(11, 48px);
    grid-template-columns: repeat(11, 48px);
    gap: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    justify-items: center;
    align-items: center;
}

.cd-daevanion-node {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.cd-daevanion-node-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.cd-daevanion-node.is-start .cd-daevanion-node-icon {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

/* 데바니온 노드 툴팁 */
.cd-daevanion-node-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: none;
    pointer-events: none;
}

.cd-daevanion-node:hover .cd-daevanion-node-tooltip {
    display: block;
}

.cd-daevanion-node-tooltip .tooltip-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #ffd700;
}

.cd-daevanion-node-tooltip .tooltip-effect {
    color: #aaffaa;
}

.cd-daevanion-node-tooltip .tooltip-closed {
    color: #888;
    font-style: italic;
}

/* 보드 + 효과 좌우 배치 */
.cd-daevanion-detail-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 효과 wrapper - 오른쪽 영역 */
.cd-daevanion-effects-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
    max-height: 550px;
    overflow-y: auto;
}

.cd-daevanion-effects {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 12px;
}

.cd-daevanion-no-effects {
    color: #666;
    font-size: 0.9em;
    padding: 20px;
    text-align: center;
}

.cd-daevanion-effects-title {
    color: #aaa;
    font-size: 0.85em;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cd-daevanion-effects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cd-daevanion-effects-list.skills {
    flex-direction: column;
}

.cd-daevanion-effect-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.8em;
}

.cd-daevanion-effect-item.stat {
    background: rgba(100, 200, 100, 0.1);
    border: 1px solid rgba(100, 200, 100, 0.2);
}

.cd-daevanion-effect-item.skill {
    background: rgba(100, 150, 255, 0.1);
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.cd-daevanion-effect-name {
    color: #ddd;
}

.cd-daevanion-effect-value {
    color: #90ee90;
    font-weight: bold;
}

.cd-daevanion-effect-desc {
    color: #ddd;
}

.cd-daevanion-skill-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* 장비 리스트 */
.cd-equipment-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cd-equip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.cd-equip-icon {
    width: 28px;
    height: 28px;
    border: 1px solid #555;
    border-radius: 3px;
    object-fit: contain;
    background: rgba(20, 20, 30, 0.6);
}

.cd-equip-name {
    font-size: 0.75em;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 스킬 그리드 */
.cd-skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cd-skill-item {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cd-skill-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-skill-level {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    font-size: 0.55em;
    text-align: center;
    padding: 1px 0;
}

.cd-skill-item.stigma {
    border-color: rgba(255, 215, 0, 0.4);
}

/* 스킬/스티그마 섹션 */
.cd-skills-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 8px;
}

.cd-skill-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
}

.cd-skill-row .cd-equipment-column-title {
    margin-bottom: 4px;
}


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

.cd-skills-section .cd-skill-item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.cd-skills-section .cd-skill-item:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 100;
}

.cd-skills-section .cd-skill-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cd-skills-section .cd-skill-level {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    font-size: 0.6em;
    text-align: center;
    padding: 2px 0;
}


.cd-skill-item.passive {
    border-color: rgba(100, 200, 100, 0.4);
}

.cd-skill-item.stigma {
    border-color: rgba(255, 215, 0, 0.4);
}

/* 장착된 스킬 표시 */
.cd-skill-item.equipped {
    border-color: rgba(100, 180, 255, 0.6);
}

.cd-skill-equip {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(100, 180, 255, 0.9);
    color: #fff;
    font-size: 0.55em;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1;
}

/* 잠긴 스킬 */
.cd-skill-item.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.cd-skill-item.locked:hover {
    opacity: 0.6;
}

.cd-skill-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
}

/* 스킬 툴팁 */
.cd-skills-section .cd-skill-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: none;
    pointer-events: none;
}

.cd-skills-section .cd-skill-item:hover .cd-skill-tooltip {
    display: block;
}

/* 모달 크기 조정 - 삭제됨 (위에서 정의) */

/* 반응형 */
@media (max-width: 768px) {
    .cd-content {
        grid-template-columns: 1fr;
    }

    .cd-profile-wrap {
        flex-direction: column;
        text-align: center;
    }

    .cd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cd-title-categories-row {
        grid-template-columns: 1fr;
    }

    .cd-title-category {
        flex-direction: row;
        align-items: flex-start;
    }

    .cd-title-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 12px;
        border-top: none;
        padding-top: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        padding-left: 10px;
        margin-left: auto;
    }

    .cd-daevanion-grid {
        grid-template-columns: 1fr;
    }

    .cd-stat-columns {
        grid-template-columns: 1fr;
    }

    .cd-stat-list.god-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* 검색 섹션 반응형 */
@media (max-width: 768px) {
    .character-search-section {
        padding: 20px;
        margin-top: 20px;
    }

    .search-filters {
        flex-direction: column;
        gap: 10px;
    }

    .race-filter {
        width: 100%;
    }

    .race-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .server-filter {
        width: 100%;
        min-width: unset;
    }

    .search-input-row {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}

/* ============ 랭킹 섹션 ============ */
.ranking-section {
    background: rgba(30, 30, 40, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.ranking-title {
    color: #ffd700;
    font-size: 1.3em;
    margin: 0;
    text-align: center;
    flex: 1;
}

.ranking-toggle-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    color: #ffd700;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.ranking-toggle-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

.ranking-toggle-btn .toggle-icon {
    display: inline-block;
    transition: transform 0.3s;
}

.ranking-section.collapsed .ranking-toggle-btn .toggle-icon {
    transform: rotate(-90deg);
}

.ranking-body {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.ranking-section.collapsed .ranking-body {
    max-height: 0 !important;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.ranking-filters {
    margin-bottom: 15px;
}

.ranking-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ranking-select {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.ranking-select:focus {
    outline: none;
    border-color: #ffd700;
}

.ranking-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ranking-tab {
    flex: 1;
    min-width: 80px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ranking-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.ranking-tab.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: #ffd700;
    color: #ffd700;
}

.ranking-content {
    max-height: 600px;
    overflow-y: auto;
}

.ranking-loading {
    text-align: center;
    padding: 30px;
    color: #888;
}

.ranking-empty {
    text-align: center;
    padding: 30px;
    color: #666;
}

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

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    cursor: pointer;
}

.ranking-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.ranking-item.hidden {
    display: none;
}

.ranking-item.top-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
}

.ranking-item.top-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(150, 150, 150, 0.05));
    border-color: rgba(192, 192, 192, 0.3);
}

.ranking-item.top-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(180, 100, 30, 0.05));
    border-color: rgba(205, 127, 50, 0.3);
}

.ranking-rank {
    width: 35px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #888;
}

.ranking-item.top-1 .ranking-rank { color: #ffd700; }
.ranking-item.top-2 .ranking-rank { color: #c0c0c0; }
.ranking-item.top-3 .ranking-rank { color: #cd7f32; }

.ranking-profile {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #333;
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.ranking-name {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    display: flex;
    gap: 8px;
    margin-top: 3px;
    font-size: 12px;
    color: #888;
}

.ranking-class {
    color: #6a9eff;
}

.ranking-guild {
    color: #aaa;
}

.ranking-stats {
    text-align: right;
    flex-shrink: 0;
}

.ranking-point {
    font-weight: bold;
    color: #ffd700;
    font-size: 14px;
}

.ranking-extra {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.ranking-grade {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.ranking-grade img {
    width: 18px;
    height: 18px;
}

.ranking-grade-name {
    font-size: 11px;
    color: #aaa;
}

.ranking-expand-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.ranking-expand-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
}

.ranking-expand-btn.expanded {
    display: none;
}

@media (max-width: 600px) {
    .ranking-filter-row {
        flex-direction: column;
    }

    .ranking-select {
        width: 100%;
    }

    .ranking-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .ranking-tab {
        min-width: unset;
    }

    .ranking-item {
        padding: 10px 12px;
    }

    .ranking-profile {
        width: 38px;
        height: 38px;
    }

    .ranking-name {
        font-size: 13px;
    }

    .ranking-meta {
        flex-direction: column;
        gap: 2px;
    }
}

/* ============ 스펙 비교 버튼 ============ */
.cd-compare-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffd700, #ff9500);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 12px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cd-compare-btn .compare-icon {
    background: #000;
    color: #ffd700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.cd-compare-btn:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #ffe44d, #ffaa33);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.6);
}

/* ============ 스펙 비교 모달 ============ */
.spec-compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.spec-compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.spec-compare-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 92vh;
    background: linear-gradient(145deg, #1a1a24, #0d0d12);
    border-radius: 16px;
    border: 1px solid rgba(120, 119, 198, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.spec-compare-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.spec-compare-close:hover {
    background: rgba(255, 68, 68, 0.6);
}

.spec-compare-header {
    padding: 20px 28px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-compare-header h2 {
    color: #ffd700;
    font-size: 22px;
    margin: 0;
}

/* 프로필 영역 wrapper - 고정 */
.spec-compare-profiles-wrap {
    flex-shrink: 0;
    padding: 20px 28px;
}

.spec-compare-body {
    padding: 28px;
    padding-top: 20px;
    flex: 1;
    overflow-y: auto;
}

.spec-compare-loading,
.spec-compare-error {
    text-align: center;
    color: #888;
    padding: 40px;
}

/* 프로필 비교 영역 */
.spec-compare-profiles {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
}

.spec-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    position: relative;
}

.spec-profile.my-profile {
    flex-direction: row;
}

.spec-profile.target-profile {
    flex-direction: row-reverse;
    text-align: right;
}

.spec-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #555;
}

.spec-profile.my-profile .spec-profile-avatar {
    border-color: #6a9eff;
}

.spec-profile.target-profile .spec-profile-avatar {
    border-color: #ff6a6a;
}

.spec-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-profile-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.spec-profile-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #888;
}

.spec-profile.target-profile .spec-profile-meta {
    justify-content: flex-end;
}

.spec-profile-power {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
}

.spec-profile-label {
    position: absolute;
    top: -10px;
    left: 0;
    background: #6a9eff;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 12px;
}

.spec-vs {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* 비교 섹션 */
.spec-section {
    margin-bottom: 24px;
}

.spec-section-title {
    font-size: 17px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

/* 비교 행 - 내 값 | 라벨 | 상대 값 */
.spec-compare-row {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 6px;
}

.spec-compare-row.highlight {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.spec-compare-row.ranking-row {
    grid-template-columns: 1fr 120px 1fr;
}

/* 내 값 영역 (값 + 차이) */
.spec-my-value-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spec-diff-container {
    font-size: 13px;
    min-width: 60px;
    text-align: left;
}

.spec-my-value {
    font-size: 17px;
    font-weight: bold;
    color: #6a9eff;
    text-align: right;
}

.spec-target-value {
    font-size: 17px;
    font-weight: bold;
    color: #ff6a6a;
    text-align: left;
}

.spec-label {
    font-size: 15px;
    color: #aaa;
    text-align: center;
}

/* 차이 표시 */
.diff-positive {
    font-size: 14px;
    font-weight: bold;
    color: #4ade80;
    text-align: left;
}

.diff-negative {
    font-size: 14px;
    font-weight: bold;
    color: #f87171;
    text-align: left;
}

.diff-equal {
    font-size: 14px;
    color: #666;
    text-align: left;
}

/* 랭킹 비교 행 */
.spec-my-rank,
.spec-target-rank {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-my-rank {
    text-align: right;
    align-items: flex-end;
}

.spec-target-rank {
    text-align: left;
    align-items: flex-start;
}

.rank-pos {
    font-size: 17px;
    font-weight: bold;
    color: #fff;
}

.spec-my-rank .rank-pos {
    color: #6a9eff;
}

.spec-target-rank .rank-pos {
    color: #ff6a6a;
}

.rank-point {
    font-size: 13px;
    color: #888;
}

/* 탭 버튼 */
.spec-compare-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #888;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.spec-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.spec-tab.active {
    background: linear-gradient(135deg, #6a9eff, #4a7edf);
    border-color: transparent;
    color: #fff;
    font-weight: bold;
}

/* 타이틀 비교 */
.title-category-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.title-category-section .spec-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-cat-icon {
    width: 24px;
    height: 24px;
}

.spec-my-value.title-name,
.spec-target-value.title-name {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.title-stats-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.title-stats-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.title-stats-side.my-stats {
    text-align: center;
}

.title-stats-side.target-stats {
    text-align: center;
}

.title-stat-item {
    font-size: 11px;
    color: #aaa;
    padding: 2px 0;
}

.title-stat-item.empty {
    color: #555;
}

/* 장착 타이틀명 가운데 정렬 */
.spec-my-value.title-name,
.spec-target-value.title-name {
    text-align: center;
    max-width: none;
}

/* 장비 비교 */
.equip-row {
    padding: 10px 18px;
}

.equip-wrap {
    display: flex;
    align-items: center;
}

.spec-my-value-wrap.equip-wrap {
    justify-content: flex-end;
}

.spec-target-value.equip-wrap {
    justify-content: flex-start;
}

.equip-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-my-value-wrap .equip-item-info {
    flex-direction: row-reverse;
}

.equip-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.equip-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.equip-empty {
    color: #555;
    font-size: 14px;
}

/* 아르카나 비교 */
.arcana-row {
    padding: 12px 18px;
}

.arcana-wrap {
    display: flex;
    align-items: center;
}

.spec-my-value-wrap.arcana-wrap {
    justify-content: flex-end;
}

.spec-target-value.arcana-wrap {
    justify-content: flex-start;
}

.arcana-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-my-value-wrap .arcana-item-info {
    flex-direction: row-reverse;
}

.arcana-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.arcana-name {
    font-size: 15px;
    font-weight: 500;
}

/* 스킬 비교 */
.skill-row {
    padding: 10px 18px;
}

.skill-wrap {
    display: flex;
    align-items: center;
}

.skill-level {
    font-size: 16px;
    font-weight: bold;
}

.skill-level.no-skill {
    color: #555;
}

.spec-label.skill-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skill-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

/* 데바니온 비교 */
.daevanion-row {
    padding: 12px 18px;
}

.daevanion-wrap {
    display: flex;
    align-items: center;
}

.spec-my-value-wrap.daevanion-wrap {
    justify-content: space-between;
}

.spec-target-value.daevanion-wrap {
    justify-content: flex-start;
}

.daevanion-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.daevanion-count {
    font-size: 16px;
    font-weight: bold;
}

.spec-my-value-wrap .daevanion-count {
    color: #6a9eff;
}

.spec-target-value .daevanion-count {
    color: #ff6a6a;
}

.daevanion-percent {
    font-size: 13px;
    color: #888;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .spec-compare-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .spec-compare-header {
        padding: 16px 20px;
    }

    .spec-compare-header h2 {
        font-size: 18px;
    }

    .spec-compare-profiles-wrap {
        padding: 16px;
    }

    .spec-compare-body {
        padding: 16px;
        padding-top: 12px;
    }

    .spec-compare-profiles {
        flex-direction: column;
        gap: 15px;
        padding: 16px;
    }

    .spec-profile {
        width: 100%;
        justify-content: center;
    }

    .spec-profile.target-profile {
        flex-direction: row;
        text-align: left;
    }

    .spec-profile.target-profile .spec-profile-meta {
        justify-content: flex-start;
    }

    .spec-profile-avatar {
        width: 60px;
        height: 60px;
    }

    .spec-profile-name {
        font-size: 16px;
    }

    .spec-profile-meta {
        font-size: 12px;
    }

    .spec-vs {
        font-size: 22px;
    }

    .spec-compare-tabs {
        padding: 10px 16px;
        gap: 4px;
    }

    .spec-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .spec-compare-row {
        grid-template-columns: 1fr 80px 1fr;
        gap: 8px;
        padding: 10px 12px;
    }

    .spec-my-value,
    .spec-target-value {
        font-size: 14px;
    }

    .spec-label {
        font-size: 12px;
    }

    .equip-icon {
        width: 32px;
        height: 32px;
    }

    .equip-name {
        font-size: 12px;
        max-width: 100px;
    }

    .cd-compare-btn {
        margin-left: 0;
        margin-top: 6px;
        display: block;
        width: fit-content;
    }
}

/* ============ 헤더 내 캐릭터 카드 ============ */
.my-character-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(106, 158, 255, 0.15), rgba(74, 126, 223, 0.1));
    border: 1px solid rgba(106, 158, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    justify-content: center;
}

.my-character-card:hover {
    background: linear-gradient(135deg, rgba(106, 158, 255, 0.25), rgba(74, 126, 223, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 158, 255, 0.2);
}

.my-char-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #6a9eff;
    object-fit: cover;
}

.my-char-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-char-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.my-char-meta {
    font-size: 12px;
    color: #aaa;
}

.no-character-set {
    margin-top: 15px;
}

.no-character-set a {
    color: #888;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px dashed #555;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.2s;
}

.no-character-set a:hover {
    color: #ffd700;
    border-color: #ffd700;
}

@media (max-width: 600px) {
    .my-character-card {
        padding: 10px 15px;
    }

    .my-char-img {
        width: 40px;
        height: 40px;
    }

    .my-char-name {
        font-size: 14px;
    }

    .my-char-meta {
        font-size: 11px;
    }
}

/* ========== 타이틀 비교 카드 레이아웃 ========== */
.title-compare-section {
    margin-bottom: 24px;
}

.title-compare-label {
    font-size: 16px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 14px;
    padding-left: 4px;
}

.title-compare-cards {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.title-compare-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
}

.title-compare-card.mine {
    border-color: rgba(106, 158, 255, 0.4);
}

.title-compare-card.target {
    border-color: rgba(255, 106, 106, 0.4);
}

.title-compare-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    min-width: 40px;
}

.title-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.title-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

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

.title-card-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.title-card-cat-name {
    font-size: 14px;
    color: #888;
}

.title-card-count {
    font-size: 14px;
    color: #ffd700;
    font-weight: bold;
}

.title-card-equipped {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    word-break: keep-all;
}

.title-card-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.title-card-stat {
    font-size: 14px;
    color: #8bc34a;
    line-height: 1.4;
}

.title-card-stat.empty {
    color: #555;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .title-compare-cards {
        flex-direction: column;
    }

    .title-compare-vs {
        padding: 8px 0;
    }

    .title-card-icon {
        width: 50px;
        height: 50px;
    }
}

/* ========== 스탯 비교 카드 레이아웃 (기존 캐릭터 상세와 동일) ========== */
.sc-section {
    margin-bottom: 28px;
}

.sc-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 전투력 비교 */
.sc-power-compare {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.sc-power-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}

.sc-power-card.mine {
    border-color: rgba(106, 158, 255, 0.5);
    background: rgba(106, 158, 255, 0.08);
}

.sc-power-card.target {
    border-color: rgba(255, 106, 106, 0.5);
    background: rgba(255, 106, 106, 0.08);
}

.sc-power-value {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.sc-power-card.mine .sc-power-value {
    color: #6a9eff;
}

.sc-power-card.target .sc-power-value {
    color: #ff6a6a;
}

.sc-power-diff {
    font-size: 16px;
}

.sc-power-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    min-width: 60px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 스탯 비교 래퍼 (좌우 분리) */
.sc-stat-compare-wrap {
    display: flex;
    gap: 20px;
}

.sc-stat-side {
    flex: 1;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.sc-stat-side.mine {
    border: 1px solid rgba(106, 158, 255, 0.3);
}

.sc-stat-side.target {
    border: 1px solid rgba(255, 106, 106, 0.3);
}

.sc-stat-divider {
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

/* 주요 스탯 그리드 (3열 2행) */
.sc-stat-grid.main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* 주신의 스탯 그리드 (2열 5행) */
.sc-stat-grid.god-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 주요 스탯 카드 */
.sc-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    min-height: 90px;
}

.sc-stat-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-stat-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-stat-name {
    font-size: 15px;
    color: #ccc;
}

.sc-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    margin-left: auto;
}

.sc-stat-secondary {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sc-stat-secondary span {
    font-size: 12px;
    color: #8bc34a;
    line-height: 1.4;
}

.sc-stat-secondary span.empty {
    color: transparent;
}

/* 주신의 스탯 카드 (캐릭터 상세와 동일한 스타일) */
.sc-god-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    min-height: 80px;
}

.sc-god-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-god-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-god-name {
    font-size: 0.95em;
    color: #ccc;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-god-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffd700;
    flex-shrink: 0;
}

.sc-god-secondary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 36px;
    min-height: 20px;
}

.sc-god-secondary span {
    font-size: 0.8em;
    color: #8bc34a;
    line-height: 1.4;
}

/* 컨텐츠 랭킹 비교 (카드 박스 형태) */
.sc-ranking-compare-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.sc-ranking-side {
    flex: 1;
}

.sc-ranking-divider {
    width: 2px;
    min-height: 200px;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    flex-shrink: 0;
}

.sc-ranking-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.sc-ranking-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #aaa;
}

.sc-ranking-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sc-ranking-legend-dot.pvp {
    background: #ff6464;
}

.sc-ranking-legend-dot.pve {
    background: #6496ff;
}

.sc-ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sc-ranking-card {
    background: rgba(25, 25, 35, 0.9);
    border: 2px solid rgba(100, 120, 180, 0.4);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sc-ranking-card.pvp {
    border-color: rgba(255, 100, 100, 0.6);
}

.sc-ranking-card.pve {
    border-color: rgba(100, 150, 255, 0.6);
}

.sc-ranking-card.no-rank {
    opacity: 0.5;
}

.sc-ranking-content-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sc-ranking-icon {
    font-size: 1.1em;
}

.sc-ranking-content-name {
    font-size: 0.9em;
    color: #ccc;
    white-space: nowrap;
}

.sc-ranking-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffd700;
}

.sc-ranking-card.no-rank .sc-ranking-rank {
    color: #555;
}

.sc-ranking-point {
    font-size: 0.85em;
    color: #888;
}

.sc-ranking-card.no-rank .sc-ranking-point {
    color: #555;
}

/* 장비 비교 스타일 */
.sc-equip-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-equip-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 12px;
    align-items: start;
}

.sc-equip-cell {
    min-width: 0;
}

.sc-equip-slot-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    color: #ffd700;
    font-weight: 600;
    text-align: center;
    padding-top: 12px;
}

.sc-equip-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.sc-equip-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sc-equip-item.expanded {
    background: rgba(255, 255, 255, 0.05);
}

.sc-equip-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-equip-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 2px solid #555;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-equip-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sc-equip-name {
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-equip-exceed {
    font-size: 0.8em;
    color: #ff9800;
}

.sc-equip-toggle {
    font-size: 0.8em;
    color: #888;
    transition: transform 0.2s;
}

.sc-equip-item.expanded .sc-equip-toggle {
    transform: rotate(180deg);
}

.sc-equip-empty {
    padding: 12px;
    text-align: center;
    color: #555;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.sc-equip-detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-equip-detail-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-equip-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
}

.sc-equip-section-title {
    font-size: 0.85em;
    font-weight: bold;
    color: #aaa;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-equip-loading,
.sc-equip-error,
.sc-equip-empty-detail {
    padding: 10px;
    text-align: center;
    color: #888;
    font-size: 0.85em;
}

.sc-equip-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sc-equip-stat {
    font-size: 0.85em;
    color: #8bc34a;
    line-height: 1.4;
}

.sc-equip-stat.sub {
    color: #4fc3f7;
}

.sc-equip-soulbind {
    font-size: 0.85em;
    color: #ffd54f;
    margin-bottom: 6px;
}

.sc-equip-godstone {
    font-size: 0.85em;
    color: #ce93d8;
}

.sc-equip-skill-item {
    font-size: 0.85em;
    color: #ffab91;
    line-height: 1.5;
}

.sc-equip-skills {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.sc-equip-skill {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.sc-equip-skill-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sc-equip-skill-info {
    flex: 1;
    min-width: 0;
}

.sc-equip-skill-name {
    display: block;
    font-size: 0.9em;
    color: #ffd700;
    margin-bottom: 2px;
}

.sc-equip-skill-desc {
    display: block;
    font-size: 0.8em;
    color: #aaa;
    line-height: 1.4;
}

/* ============ 스펙비교 아르카나 스타일 ============ */
.sc-arcana-compare {
    display: flex;
    gap: 20px;
}

.sc-arcana-column {
    flex: 1;
    min-width: 0;
}

.sc-arcana-column-title {
    font-size: 0.9em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.sc-arcana-column.mine .sc-arcana-column-title {
    color: #4fc3f7;
    border-bottom-color: rgba(79, 195, 247, 0.3);
}

.sc-arcana-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sc-arcana-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-arcana-card.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    color: #666;
}

.sc-arcana-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sc-arcana-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #555;
    flex-shrink: 0;
}

.sc-arcana-card-info {
    flex: 1;
    min-width: 0;
}

.sc-arcana-name {
    display: block;
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-arcana-level {
    font-size: 0.8em;
    color: #aaa;
}

.sc-arcana-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 6px;
}

.sc-arcana-stat {
    font-size: 0.75em;
    color: #8bc34a;
}

.sc-arcana-stat-extra {
    color: #64b5f6;
    margin-left: 2px;
}

.sc-arcana-loading {
    font-size: 0.75em;
    color: #888;
}

.sc-arcana-skills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sc-arcana-skill-item {
    position: relative;
    width: 28px;
    height: 28px;
}

.sc-arcana-skill-item img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sc-arcana-skill-lv {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    font-size: 0.6em;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: bold;
}

.sc-arcana-empty-msg {
    text-align: center;
    color: #666;
    font-size: 0.85em;
    padding: 20px;
}

/* 세트 정보 */
.sc-arcana-set-info {
    margin-top: 12px;
}

.sc-arcana-set-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.sc-arcana-set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sc-arcana-set-name {
    font-size: 0.85em;
    font-weight: bold;
}

.sc-arcana-set-count {
    font-size: 0.8em;
    color: #aaa;
}

.sc-arcana-set-bonuses {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sc-arcana-set-bonus {
    font-size: 0.75em;
    color: #666;
    padding: 2px 0;
}

.sc-arcana-set-bonus.active {
    color: #8bc34a;
}

/* 스킬 비교 스타일 */
.sc-skill-compare {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-skill-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.sc-skill-section-title {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.95em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.sc-skill-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sc-skill-column {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px;
}

.sc-skill-column.mine {
    border-left: 3px solid #4caf50;
}

.sc-skill-column.target {
    border-left: 3px solid #2196f3;
}

.sc-skill-column-label {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 8px;
    text-align: center;
}

.sc-skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.sc-skill-item {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid #444;
    background: #1a1a1a;
}

.sc-skill-item:hover {
    transform: scale(1.1);
    z-index: 1;
}

.sc-skill-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-skill-level {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    font-size: 0.65em;
    padding: 1px 4px;
    border-top-left-radius: 4px;
    font-weight: bold;
}

.sc-skill-item.active {
    border-color: #ff6b6b;
}

.sc-skill-item.passive {
    border-color: #4caf50;
}

.sc-skill-item.dp {
    border-color: #9c27b0;
}

.sc-skill-item.equipped {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.sc-skill-equip {
    position: absolute;
    top: 2px;
    left: 2px;
    background: #ffd700;
    color: #000;
    font-size: 0.6em;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
}

.sc-skill-item.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.sc-skill-item.locked:hover {
    transform: none;
}

.sc-skill-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
}

.sc-skill-item.empty {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
}

.sc-skill-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #555;
    font-size: 1.2em;
}

/* 데바니온 비교 스타일 */
.sc-daevanion-compare {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sc-daevanion-board-list {
    display: flex;
    flex-direction: column;
}

.sc-daevanion-board-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-daevanion-board-row:first-child {
    border-radius: 8px 8px 0 0;
}

.sc-daevanion-board-row:last-of-type {
    border-bottom: 1px solid #333;
    border-radius: 0 0 8px 8px;
}

.sc-daevanion-board-row:only-child {
    border-radius: 8px;
    border-bottom: 1px solid #333;
}

.sc-daevanion-board-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sc-daevanion-board-row.active {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
}

.sc-daevanion-board-name {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    min-width: 80px;
}

.sc-daevanion-board-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}

.sc-daevanion-board-info.mine {
    align-items: flex-end;
    text-align: right;
}

.sc-daevanion-board-info.target {
    align-items: flex-start;
    text-align: left;
}

.sc-daevanion-count {
    font-size: 0.8em;
    color: #ccc;
}

.sc-daevanion-bar {
    height: 4px;
    width: 100%;
    max-width: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.sc-daevanion-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff9800);
    border-radius: 2px;
    transition: width 0.3s;
}

.sc-daevanion-bar-fill.complete {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.sc-daevanion-none {
    color: #555;
    font-size: 0.85em;
}

/* 데바니온 상세 드롭다운 */
.sc-daevanion-detail {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
    border-top: none;
    margin-bottom: 0;
}

.sc-daevanion-detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #333;
}

.sc-daevanion-detail-title {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9em;
}

.sc-daevanion-detail-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    padding: 15px;
}

.sc-daevanion-side-panel {
    padding: 10px;
}

.sc-daevanion-side-label {
    color: #fff;
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-daevanion-node-count {
    color: #888;
    font-weight: normal;
    font-size: 0.9em;
}

.sc-daevanion-detail-divider {
    width: 1px;
    background: rgba(255, 215, 0, 0.3);
    margin: 0 10px;
}

.sc-daevanion-effects {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.sc-daevanion-effects-title {
    color: #ffd700;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.sc-daevanion-effects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sc-daevanion-effects-list.skills {
    flex-direction: column;
}

.sc-daevanion-effect-item {
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.sc-daevanion-effect-item.stat {
    color: #8bc34a;
}

.sc-daevanion-effect-item.skill {
    color: #64b5f6;
}

.sc-daevanion-no-effects,
.sc-daevanion-no-data {
    text-align: center;
    color: #666;
    padding: 15px;
    font-size: 0.8em;
}

.sc-daevanion-loading,
.sc-daevanion-error {
    text-align: center;
    padding: 20px;
    color: #888;
}

.sc-daevanion-error {
    color: #f44336;
}

/* 모바일 대응 */
@media (max-width: 900px) {
    .sc-stat-compare-wrap {
        flex-direction: column;
    }

    .sc-stat-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    }

    .sc-ranking-compare-wrap {
        flex-direction: column;
    }

    .sc-ranking-divider {
        width: 100%;
        height: 2px;
        min-height: auto;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    }

    .sc-arcana-compare {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .sc-power-compare {
        flex-direction: column;
    }

    .sc-power-vs {
        padding: 8px 0;
    }

    .sc-power-value {
        font-size: 28px;
    }

    .sc-stat-grid.main-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sc-ranking-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sc-equip-row {
        grid-template-columns: 1fr 60px 1fr;
        gap: 8px;
    }

    .sc-equip-slot-label {
        font-size: 0.75em;
    }

    .sc-equip-icon {
        width: 36px;
        height: 36px;
    }

    .sc-equip-name {
        font-size: 0.85em;
    }
}

@media (max-width: 500px) {
    .sc-stat-grid.main-grid {
        grid-template-columns: 1fr;
    }

    .sc-stat-icon {
        width: 32px;
        height: 32px;
    }

    .sc-stat-value {
        font-size: 18px;
    }

    .sc-god-icon {
        width: 24px;
        height: 24px;
    }

    .sc-ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sc-ranking-card {
        padding: 10px 8px;
    }

    .sc-ranking-rank {
        font-size: 1.2em;
    }

    .sc-ranking-content-name {
        font-size: 0.8em;
    }

    .sc-equip-row {
        grid-template-columns: 1fr 50px 1fr;
        gap: 6px;
    }

    .sc-equip-slot-label {
        font-size: 0.7em;
        padding-top: 8px;
    }

    .sc-equip-icon {
        width: 32px;
        height: 32px;
    }

    .sc-equip-name {
        font-size: 0.8em;
    }

    .sc-equip-toggle {
        display: none;
    }
}

/* 데바니온 보드 그리드 비교 스타일 */
.sc-daevanion-boards-compare {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.sc-daevanion-board-side {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
}

.sc-daevanion-board-label {
    color: #ffd700;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.sc-daevanion-node-count {
    color: #8bc34a;
    font-weight: normal;
    font-size: 0.85em;
    margin-left: 8px;
}

.sc-daevanion-boards-divider {
    width: 2px;
    min-width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    align-self: stretch;
}

.sc-daevanion-board-wrapper {
    display: flex;
    justify-content: center;
    overflow: auto;
    max-height: 350px;
}

.sc-daevanion-board {
    display: grid;
    gap: 2px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 6px;
}

.sc-daevanion-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sc-daevanion-node:hover {
    transform: scale(1.2);
    z-index: 10;
}

.sc-daevanion-node-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sc-daevanion-node--legend { border-color: #ff8c00; }
.sc-daevanion-node--unique { border-color: #9c27b0; }
.sc-daevanion-node--rare { border-color: #2196f3; }
.sc-daevanion-node--common { border-color: #4caf50; }

.sc-daevanion-node.is-open {
    filter: brightness(1.1);
}

.sc-daevanion-node:not(.is-open) {
    opacity: 0.5;
    filter: grayscale(0.3);
}

.sc-daevanion-node-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 100px;
    text-align: center;
    font-size: 0.75em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    pointer-events: none;
    white-space: nowrap;
}

.sc-daevanion-node:hover .sc-daevanion-node-tooltip {
    opacity: 1;
    visibility: visible;
}

.sc-daevanion-node-tooltip .tooltip-name {
    color: #ffd700;
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.sc-daevanion-node-tooltip .tooltip-effect {
    color: #8bc34a;
    font-size: 0.9em;
}

.sc-daevanion-node-tooltip .tooltip-closed {
    color: #888;
    font-size: 0.9em;
}

.sc-daevanion-no-board {
    text-align: center;
    color: #666;
    padding: 30px;
    font-size: 0.85em;
}

/* 데바니온 효과 비교 스타일 */
.sc-daevanion-effects-compare {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.sc-daevanion-effects-side {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.sc-daevanion-effects-label {
    color: #ffd700;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.sc-daevanion-effects-divider {
    width: 2px;
    min-width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    align-self: stretch;
}

.sc-daevanion-effects-section {
    margin-bottom: 10px;
}

.sc-daevanion-effects-section:last-child {
    margin-bottom: 0;
}

/* 데바니온 모바일 대응 */
@media (max-width: 800px) {
    .sc-daevanion-boards-compare {
        flex-direction: column;
    }

    .sc-daevanion-boards-divider {
        width: 100%;
        height: 2px;
        min-height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    }

    .sc-daevanion-board-wrapper {
        max-height: 280px;
    }

    .sc-daevanion-effects-compare {
        flex-direction: column;
    }

    .sc-daevanion-effects-divider {
        width: 100%;
        height: 2px;
        min-height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    }
}

/* ============ 즐겨찾기 섹션 ============ */
.favorites-section {
    background: rgba(30, 30, 40, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.favorites-title {
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.favorites-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.favorites-empty {
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 14px;
    grid-column: 1 / -1;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.favorite-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.favorite-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

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

.favorite-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-meta {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

.favorite-remove {
    background: rgba(255, 100, 100, 0.2);
    border: none;
    color: #ff6666;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s;
}

.favorite-remove:hover {
    background: rgba(255, 100, 100, 0.4);
    transform: scale(1.1);
}

/* 캐릭터 상세 액션 버튼 그룹 */
.cd-action-btns {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

/* 즐겨찾기 버튼 */
.cd-favorite-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffd700;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.cd-favorite-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.cd-favorite-btn.is-favorite {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .favorites-container {
        grid-template-columns: 1fr;
    }

    .favorite-item {
        padding: 8px 10px;
    }

    .favorite-img {
        width: 40px;
        height: 40px;
    }

    .cd-action-btns {
        flex-direction: column;
        gap: 6px;
        margin-left: 0;
        margin-top: 8px;
    }

    .cd-compare-btn,
    .cd-favorite-btn {
        width: 100%;
        text-align: center;
    }
}


/* ============ 푸터 스타일 ============ */
.site-footer {
    margin-top: 60px;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.95), rgba(10, 10, 15, 1));
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-divider {
    color: #404040;
    font-size: 0.8em;
}

.footer-site-name {
    color: #c0a050;
    font-size: 0.95em;
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-copyright {
    color: #606060;
    font-size: 0.8em;
}

@media (max-width: 600px) {
    .site-footer {
        padding: 25px 15px;
        margin-top: 40px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.85em;
    }

    .footer-site-name {
        font-size: 0.9em;
    }

    .footer-copyright {
        font-size: 0.75em;
    }
}


/* ============ 랭킹 그리드 레이아웃 ============ */
.ranking-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.ranking-grid-row:first-child {
    margin-top: 20px;
}

.ranking-column {
    background: rgba(20, 20, 30, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    overflow: hidden;
}

.ranking-column-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    padding: 12px 15px;
    font-weight: bold;
    color: #ffd700;
    text-align: center;
    font-size: 0.95em;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.ranking-column .ranking-content {
    max-height: 500px;
    overflow-y: auto;
}

/* 컴팩트 랭킹 리스트 */
.ranking-list-compact {
    padding: 8px;
}

.ranking-item-compact {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    margin-bottom: 8px;
    background: rgba(30, 30, 40, 0.6);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ranking-item-compact:hover {
    background: rgba(50, 50, 60, 0.8);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(3px);
}

.ranking-item-compact.top-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 200, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.ranking-item-compact.top-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(170, 170, 170, 0.1));
    border-color: rgba(192, 192, 192, 0.3);
}

.ranking-item-compact.top-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(180, 100, 40, 0.1));
    border-color: rgba(205, 127, 50, 0.3);
}

.ranking-rank-compact {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1em;
    color: #ffd700;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.ranking-item-compact.top-1 .ranking-rank-compact {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a1a;
}

.ranking-item-compact.top-2 .ranking-rank-compact {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #1a1a1a;
}

.ranking-item-compact.top-3 .ranking-rank-compact {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: #1a1a1a;
}

.ranking-info-compact {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ranking-name-compact {
    font-size: 1.05em;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-class-compact {
    font-size: 0.85em;
    color: #888;
    margin-top: 3px;
}

.ranking-point-compact {
    text-align: right;
    flex-shrink: 0;
    margin-left: 10px;
    font-size: 0.95em;
    color: #ffd700;
    font-weight: bold;
}

.ranking-extra-compact {
    display: block;
    font-size: 0.7em;
    color: #888;
    font-weight: normal;
    margin-top: 2px;
}

/* 모바일 대응 */
@media (max-width: 1200px) {
    .ranking-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .ranking-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-column .ranking-content {
        max-height: 300px;
    }
}


/* 랭킹 프로필 이미지 */
.ranking-profile-compact {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.ranking-profile-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-item-compact.top-1 .ranking-profile-compact {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.ranking-item-compact.top-2 .ranking-profile-compact {
    border-color: #c0c0c0;
    box-shadow: 0 0 6px rgba(192, 192, 192, 0.5);
}

.ranking-item-compact.top-3 .ranking-profile-compact {
    border-color: #cd7f32;
    box-shadow: 0 0 6px rgba(205, 127, 50, 0.5);
}

/* 내 캐릭터 강조 스타일 */
.ranking-item-compact.my-character {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(0, 150, 200, 0.1));
    border: 2px solid rgba(0, 200, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.ranking-item-compact.my-character .ranking-profile-compact {
    border-color: #00c8ff;
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
}

.ranking-item-compact.my-character .ranking-name-compact {
    color: #00c8ff;
}

/* 내 랭킹 고정 영역 */
.my-ranking-fixed {
    padding: 8px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
}

.my-ranking-fixed .ranking-item-compact {
    margin-bottom: 0;
}


/* 준비중 스타일 */
.ranking-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #888;
}

.coming-soon-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.coming-soon-text {
    font-size: 1.1em;
    color: #666;
}

/* 3열 그리드 모바일 대응 */
@media (max-width: 1000px) {
    .ranking-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .ranking-grid-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   길드원 섹션 스타일 (컴팩트)
   ============================================ */

.guild-members-section {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.9));
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.guild-members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.guild-members-title {
    color: #ffd700;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
}

.guild-members-count {
    color: #888;
    font-size: 0.85em;
    background: rgba(255, 215, 0, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

/* 그리드 컨테이너 (한번에 모두 표시) */
.guild-members-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    padding: 5px 0;
}

/* 길드원 카드 (컴팩트) */
.guild-member-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(80, 80, 100, 0.4);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guild-member-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(40, 40, 55, 0.8);
    transform: translateY(-2px);
}

/* 프로필 이미지 (컴팩트) */
.guild-member-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 6px;
    background: rgba(50, 50, 60, 0.8);
    border: 2px solid rgba(100, 100, 120, 0.5);
}

/* 이름 */
.guild-member-name {
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 군단 직책 */
.guild-member-role {
    font-size: 0.65em;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

.guild-member-role.leader {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.guild-member-role.elite {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.3));
    color: #da70d6;
    border: 1px solid rgba(138, 43, 226, 0.5);
}

.guild-member-role.soldier {
    background: rgba(100, 100, 100, 0.3);
    color: #888;
    border: 1px solid rgba(100, 100, 100, 0.3);
}

.guild-members-loading,
.guild-members-error,
.guild-members-empty {
    width: 100%;
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 0.9em;
}

.guild-members-error {
    color: #ff6b6b;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .guild-members-section {
        padding: 12px;
        margin-bottom: 15px;
    }

    .guild-members-title {
        font-size: 1em;
    }

    .guild-members-container {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }

    .guild-member-card {
        padding: 6px 3px;
    }

    .guild-member-img {
        width: 40px;
        height: 40px;
    }

    .guild-member-name {
        font-size: 0.65em;
    }

    .guild-member-role {
        font-size: 0.55em;
        padding: 1px 3px;
    }
}

/* ==================== 레기온 섹션 ==================== */

.legion-section {
    background: rgba(30, 30, 40, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.legion-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* TOP 3 카드 */
.legion-top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.legion-top-card {
    background: rgba(30, 35, 50, 0.8);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(100, 120, 180, 0.3);
}

.legion-top-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.legion-top-card.gold {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(145deg, rgba(50, 45, 20, 0.9), rgba(40, 35, 15, 0.9));
}

.legion-top-card.silver {
    border-color: rgba(192, 192, 192, 0.5);
    background: linear-gradient(145deg, rgba(45, 45, 50, 0.9), rgba(35, 35, 40, 0.9));
}

.legion-top-card.bronze {
    border-color: rgba(205, 127, 50, 0.5);
    background: linear-gradient(145deg, rgba(50, 40, 30, 0.9), rgba(40, 30, 20, 0.9));
}

.legion-top-medal {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.legion-top-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #e0e8ff;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legion-top-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legion-top-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
}

.legion-top-stat .stat-label {
    color: #8090b0;
}

.legion-top-stat .stat-value {
    color: #c0d0f0;
    font-weight: 500;
}

/* 나머지 작은 박스 */
.legion-rest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.legion-small-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(40, 50, 70, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.legion-small-item:hover {
    background: rgba(60, 80, 120, 0.6);
    transform: translateY(-1px);
}

.legion-small-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: rgba(80, 100, 150, 0.4);
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    color: #a0b0d0;
}

.legion-small-name {
    flex: 1;
    font-weight: 600;
    font-size: 1em;
    color: #e0e8ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legion-small-members {
    font-size: 0.9em;
    color: #8cc8ff;
}

.legion-small-total {
    font-size: 0.9em;
    color: #ffcc66;
}

.legion-avg {
    color: #88dd88;
}

.legion-loading,
.legion-empty,
.legion-error {
    text-align: center;
    padding: 30px;
    color: #8090b0;
    font-size: 0.9em;
}

/* 레기온 섹션 반응형 */
@media (max-width: 768px) {
    .legion-top-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .legion-top-card {
        padding: 12px 8px;
    }

    .legion-top-medal {
        font-size: 1.5em;
    }

    .legion-top-name {
        font-size: 0.9em;
    }

    .legion-top-stat .stat-label {
        font-size: 0.65em;
    }

    .legion-top-stat .stat-value {
        font-size: 0.8em;
    }

    .legion-rest-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 6px;
    }

    .legion-small-item {
        padding: 8px 10px;
        gap: 8px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .legion-top-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .legion-top-card {
        padding: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .legion-top-medal {
        font-size: 1.8em;
        flex-shrink: 0;
    }

    .legion-top-name {
        font-size: 1em;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .legion-top-stats {
        display: flex;
        flex-direction: row;
        gap: 12px;
        margin-left: auto;
    }

    .legion-top-stat {
        text-align: center;
    }

    .legion-rest-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .legion-small-item {
        padding: 10px 12px;
        font-size: 0.85em;
    }

    .legion-small-rank {
        min-width: 24px;
    }

    .legion-small-name {
        flex: 1;
        min-width: 0;
    }
}

/* ==================== 길드원 모달 ==================== */

.legion-members-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.legion-members-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.legion-members-modal-content {
    background: linear-gradient(145deg, rgba(30, 35, 50, 0.98), rgba(20, 25, 40, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.legion-members-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.legion-members-close:hover {
    color: #ffd700;
}

.legion-members-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px 16px 0 0;
}

.legion-members-modal-title {
    color: #ffd700;
    font-size: 1.4em;
    margin: 0;
}

.legion-members-modal-count {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
}

.legion-members-modal-body {
    padding: 20px;
}

.legion-members-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

.legion-modal-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: rgba(40, 50, 70, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.legion-modal-member:hover {
    background: rgba(60, 80, 120, 0.6);
    transform: translateY(-2px);
}

.legion-modal-member-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 6px;
}

.legion-modal-member-name {
    font-size: 0.75em;
    color: #e0e8ff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.legion-modal-member-combat {
    font-size: 0.65em;
    color: #88dd88;
    margin-top: 2px;
}

.legion-members-loading {
    text-align: center;
    padding: 40px;
    color: #8090b0;
}

/* 길드원 모달 반응형 */
@media (max-width: 768px) {
    .legion-members-modal {
        padding: 10px;
    }

    .legion-members-modal-content {
        max-height: 85vh;
    }

    .legion-members-modal-header {
        padding: 15px 20px;
    }

    .legion-members-modal-title {
        font-size: 1.2em;
    }

    .legion-members-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }

    .legion-modal-member-img {
        width: 40px;
        height: 40px;
    }

    .legion-modal-member-name {
        font-size: 0.7em;
    }
}
