        :root {
            --bg-color: #121212;
            --sidebar-bg: #1e1e1e;
            --panel-bg: #252525;
            --text-main: #e0e0e0;
            --text-sub: #a0a0a0;
            --accent: #FFD700;
            --good: #00FF7F;
            --border: #333;
            --item-hover: #333;
            --item-selected: #444;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Suit', 'Pretendard', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            height: 100vh;
            overflow: hidden;
            display: flex;
        }

        .sidebar-outer {
            width: 340px;
            height: 100%;
            position: relative;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            border-right: 1px solid var(--border);
        }

        .sidebar {
            width: 100%;
            height: 100%;
            background-color: var(--sidebar-bg);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        /* 스크롤 초과 아이템 표시 인디케이터 */
        .scroll-indicator {
            position: absolute;
            left: 0;
            right: 0;
            height: 60px;
            pointer-events: none;
            z-index: 100;
            opacity: 0;
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .scroll-indicator.top {
            top: 0;
            background: linear-gradient(to bottom, rgba(0, 255, 127, 0.3) 0%, transparent 100%);
        }

        .scroll-indicator.bottom {
            bottom: 0;
            background: linear-gradient(to top, rgba(0, 255, 127, 0.3) 0%, transparent 100%);
        }

        .scroll-indicator.active {
            opacity: 1;
        }

        .set-group {
            margin-bottom: 10px;
        }

        .set-header {
            padding: 10px 15px;
            background-color: #2a2a2a;
            font-weight: bold;
            font-size: 0.85rem;
            color: var(--text-sub);
            position: sticky;
            top: 0;
            z-index: 10;
            border-bottom: 1px solid #333;
        }

        /* 아이템 그리드 컨테이너 (4열) */
        .item-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            padding: 10px;
        }

        .item-row {
            aspect-ratio: 1 / 1;
            cursor: pointer;
            position: relative;
            border-radius: 6px;
            overflow: hidden;
            transition: transform 0.1s, opacity 0.3s, border-color 0.2s;
            background-color: #000;
            border: 2px solid transparent;
            touch-action: manipulation; /* 모바일 300ms 클릭 딜레이 제거 */
        }

        .item-row:hover {
            transform: scale(1.05);
            z-index: 1;
            border-color: #666;
        }

        .item-row.active {
            border-color: var(--accent);
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        }

        .item-row.dimmed {
            opacity: 0.1;
            filter: grayscale(100%);
            pointer-events: none;
        }

        .item-row.exceed {
            border-color: var(--good);
            box-shadow: 0 0 8px rgba(0, 255, 127, 0.4);
        }

        .item-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* 2. 중앙 (장비 이미지) */
        .main-view {
            flex-grow: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            background: radial-gradient(circle at center, #2a2a2a 0%, #121212 100%);
            position: relative;
            overflow: hidden;
        }

        .large-image-container {
            text-align: center;
            padding: 20px;
        }

        .large-image {
            max-width: 400px;
            max-height: 400px;
            width: 100%;
            height: auto;
            filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.7));
            transition: transform 0.3s;
        }

        .img-placeholder {
            width: 200px;
            height: 200px;
            background: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            border-radius: 10px;
            margin: auto;
        }

        /* 3. 오른쪽 (스탯 정보) */
        .info-panel {
            width: 350px;
            background-color: var(--panel-bg);
            border-left: 1px solid var(--border);
            padding: 40px 30px;
            display: flex;
            flex-direction: column;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
            overflow-y: auto;
        }

        .info-title {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: #fff;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 15px;
            word-break: keep-all;
        }

        .info-set-name {
            font-size: 0.9rem;
            color: var(--accent);
            margin-bottom: 20px;
        }

        .stat-box {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .stat-row {
            background-color: #333;
            padding: 15px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: transform 0.2s, background 0.2s;
            border: 1px solid transparent;
            touch-action: manipulation; /* 모바일 300ms 클릭 딜레이 제거 */
        }

        .stat-row:hover {
            transform: translateX(-5px);
            background-color: #3d3d3d;
            border-color: #666;
        }

        /* 활성화된 필터 표시 */
        .stat-row.active-filter {
            background-color: rgba(255, 215, 0, 0.15);
            border-color: var(--accent);
        }

        .stat-label {
            font-size: 0.95rem;
            color: #ccc;
        }

        .stat-value {
            font-size: 1.1rem;
            font-weight: bold;
            color: #fff;
        }

        .filter-info {
            margin-top: 20px;
            padding: 10px;
            border-radius: 5px;
            font-size: 0.85rem;
            background: rgba(0, 0, 0, 0.2);
            min-height: 20px;
            color: var(--accent);
        }

        .legend {
            display: flex;
            gap: 10px;
            font-size: 0.75rem;
            margin-top: 5px;
            color: #888;
        }

        .legend span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .filter-reset-btn {
            margin-top: 20px;
            padding: 12px;
            background-color: #444;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-align: center;
            display: none;
            width: 100%;
        }

        .filter-reset-btn:hover {
            background-color: #555;
        }

        /* 모바일 반응형 */
        @media (max-width: 768px) {
            body {
                flex-direction: column;
                overflow-y: auto;
                height: auto;
            }

            .main-view {
                order: 1;
                height: 300px;
                flex-grow: 0;
                background: #1a1a1a;
            }

            .large-image {
                max-height: 250px;
            }

            .info-panel {
                order: 2;
                width: 100%;
                box-sizing: border-box;
                border-left: none;
                border-bottom: 1px solid var(--border);
                padding: 15px 20px;
                height: auto;
                position: sticky;
                top: 0;
                z-index: 100;
            }

            .stat-box {
                flex-direction: row;
                flex-wrap: nowrap;
                gap: 8px;
            }

            /* 가로 배치 시 stat-row 내부를 수직(label 위, value 아래) 구조로 재편 */
            .stat-row {
                flex: 1;
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
                padding: 10px 12px;
            }

            .stat-label {
                font-size: 0.75rem;
                color: var(--text-sub);
            }

            .stat-value {
                font-size: 0.95rem;
            }

            .scroll-indicator {
                position: fixed;
                left: 0;
                right: 0;
                z-index: 200;
            }

            .scroll-indicator.top {
                top: 0;
                height: 100px;
                background: linear-gradient(to bottom, rgba(0, 255, 127, 0.4) 0%, transparent 100%);
            }

            .scroll-indicator.bottom {
                bottom: 0;
                background: linear-gradient(to top, rgba(0, 255, 127, 0.4) 0%, transparent 100%);
            }

            .sidebar-outer {
                order: 3;
                width: 100%;
                border-right: none;
                height: auto;
                max-height: none;
            }

            .sidebar {
                height: auto;
                max-height: none;
                overflow: visible;
                padding-bottom: 40px;
                /* 하단 여백 추가 */
            }

            .item-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 480px) {
            .item-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* 스크롤바 커스텀 */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #1e1e1e;
        }

        ::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 3px;
        }