/* "드웨븐 오러리" 스타일 공용 — html[data-theme="dark"][data-style="orrery"]일 때만 적용(common.css·reference.css 뒤에 부름).
 * 켜는 법: 머리 스크립트가 다크일 때 localStorage botse_index_style === 'orrery'면 html data-style="orrery". */
html[data-theme="dark"][data-style="orrery"] {
    --bg-color: #11131c;
    --card-bg: rgba(26, 26, 36, 0.92);
    --text-color: #EAE0D0;
    --text-sub: #B9AE98;
    --border-color: rgba(217, 180, 98, 0.32);
    --accent-color: #D9B462;
    --active-color: #C9A24E;
    --active-text: #1a1306;
    --active-border: #E2BE6A;
    --nav-bg: rgba(12, 12, 18, 0.96);
    --nav-solid-bg: #0c0c12;
    --overlay-weak: rgba(217, 180, 98, 0.06);
    --overlay-strong: rgba(217, 180, 98, 0.1);
    --orrery-glow: 0 0 10px 1px rgba(240, 190, 90, 0.5);
    background: linear-gradient(180deg, rgba(10, 11, 18, 0.35), rgba(10, 11, 18, 0.7)), #0d0f18 url(../../index/img/orrery/bg.webp) center top / cover fixed;
}
html[data-theme="dark"][data-style="orrery"] body { background: transparent; }

/* 제목 */
html[data-theme="dark"][data-style="orrery"] h1,
html[data-theme="dark"][data-style="orrery"] h2,
html[data-theme="dark"][data-style="orrery"] .quest-detail-title,
html[data-theme="dark"][data-style="orrery"] .kiosk-title strong {
    font-family: 'Cinzel', 'Noto Sans KR', serif; color: #E7C77A;
}
html[data-theme="dark"][data-style="orrery"] h1,
html[data-theme="dark"][data-style="orrery"] h2 { text-shadow: 0 0 10px rgba(240, 190, 90, 0.3); }
html[data-theme="dark"][data-style="orrery"] h3,
html[data-theme="dark"][data-style="orrery"] .toc-category h3,
html[data-theme="dark"][data-style="orrery"] .custom-dropdown-group-label { color: #D9B462; }

/* 카드·패널(얇은 금빛 테두리) */
html[data-theme="dark"][data-style="orrery"] .accordion,
html[data-theme="dark"][data-style="orrery"] .filter-body,
html[data-theme="dark"][data-style="orrery"] .info-panel,
html[data-theme="dark"][data-style="orrery"] .modal-box,
html[data-theme="dark"][data-style="orrery"] .class-skill-card,
html[data-theme="dark"][data-style="orrery"] .autocomplete-list {
    border-color: rgba(217, 180, 98, 0.38);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35) inset, 0 4px 14px rgba(0, 0, 0, .35);
}
html[data-theme="dark"][data-style="orrery"] .accordion-header.active { border-bottom-color: rgba(217, 180, 98, 0.3); }
html[data-theme="dark"][data-style="orrery"] .ref-note { border-color: rgba(217, 180, 98, 0.3); }

/* 입력칸·드롭다운 */
html[data-theme="dark"][data-style="orrery"] input[type="text"],
html[data-theme="dark"][data-style="orrery"] input[type="search"],
html[data-theme="dark"][data-style="orrery"] input[type="number"],
html[data-theme="dark"][data-style="orrery"] input:not([type]),
html[data-theme="dark"][data-style="orrery"] textarea,
html[data-theme="dark"][data-style="orrery"] select,
html[data-theme="dark"][data-style="orrery"] .keyword-input,
html[data-theme="dark"][data-style="orrery"] .custom-dropdown-btn {
    border-color: rgba(217, 180, 98, 0.5);
    background-color: rgba(20, 20, 30, 0.9);
}
html[data-theme="dark"][data-style="orrery"] input:focus,
html[data-theme="dark"][data-style="orrery"] textarea:focus,
html[data-theme="dark"][data-style="orrery"] select:focus {
    outline: none; border-color: rgba(240, 200, 110, 0.9); box-shadow: var(--orrery-glow);
}

/* 버튼: 기본 = 금빛 테두리, 눌림·켜짐 = 금빛 빛 */
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-btn,
html[data-theme="dark"][data-style="orrery"] .modal-btn.cancel,
html[data-theme="dark"][data-style="orrery"] .filter-reset-btn,
html[data-theme="dark"][data-style="orrery"] .db-chip,
html[data-theme="dark"][data-style="orrery"] .db-home-btn,
html[data-theme="dark"][data-style="orrery"] .db-home-back,
html[data-theme="dark"][data-style="orrery"] .chip,
html[data-theme="dark"][data-style="orrery"] .stat-btn,
html[data-theme="dark"][data-style="orrery"] .eg-page-tab {
    border-color: rgba(217, 180, 98, 0.45);
    background: rgba(18, 18, 26, 0.92);
}
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-btn:active,
html[data-theme="dark"][data-style="orrery"] .db-chip:active,
html[data-theme="dark"][data-style="orrery"] .db-home-btn:active,
html[data-theme="dark"][data-style="orrery"] .chip:active,
html[data-theme="dark"][data-style="orrery"] .stat-btn:active {
    border-color: rgba(240, 200, 110, 0.9); box-shadow: var(--orrery-glow);
}
/* 강조(채운) 버튼 — 금색 바탕에 어두운 글씨 */
html[data-theme="dark"][data-style="orrery"] .filter-apply-btn,
html[data-theme="dark"][data-style="orrery"] .modal-btn.btn-primary,
html[data-theme="dark"][data-style="orrery"] .modal-btn.confirm,
html[data-theme="dark"][data-style="orrery"] .db-chip.active,
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-navbar .bottom-sheet-btn.active {
    background: linear-gradient(180deg, #D9B462, #B28C3E) !important;
    color: #1a1306 !important;
    border-color: #E8C878 !important;
    box-shadow: var(--orrery-glow);
}
html[data-theme="dark"][data-style="orrery"] .modal-btn.confirm { background: linear-gradient(180deg, #D9615C, #A63D40) !important; color: #fff !important; border-color: #E88 !important; box-shadow: none; }
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-btn.btn-accent-outline { color: #E7C77A; border-color: rgba(231, 199, 122, 0.7); }

/* 시트 하단 버튼 줄 */
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-navbar {
    background: rgba(12, 12, 18, 0.96);
    border-color: rgba(217, 180, 98, 0.45);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .5);
}
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-navbar .bottom-sheet-btn {
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 214, 140, 0.45);
}
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-navbar .bottom-sheet-btn img,
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-navbar .bottom-sheet-btn svg {
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 214, 140, 0.6));
}
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-navbar .bottom-sheet-btn.active { text-shadow: none; }
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-navbar .bottom-sheet-btn.active img,
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-navbar .bottom-sheet-btn.active svg { filter: brightness(0) drop-shadow(0 0 0 transparent); }
html[data-theme="dark"][data-style="orrery"] .bottom-sheet-navbar .bottom-sheet-btn.btn-accent-outline {
    color: #FFF1C8; border-color: rgba(240, 200, 110, 0.9); box-shadow: var(--orrery-glow);
    text-shadow: 0 0 8px rgba(255, 214, 140, 0.8);
}

/* 장식 구분선(정보 기본·확장 태그 칸, 룰북 점선)을 구분선 그림으로 */
html[data-theme="dark"][data-style="orrery"] .box-foot { position: relative; border-top: 0; padding-top: 26px; }
html[data-theme="dark"][data-style="orrery"] .box-foot::before,
html[data-theme="dark"][data-style="orrery"] .step-item:not(:last-child)::after {
    content: ''; position: absolute; left: 6%; right: 6%; height: 14px;
    background: url(../../index/img/orrery/divider.webp) center / contain no-repeat; opacity: .9; pointer-events: none;
}
html[data-theme="dark"][data-style="orrery"] .box-foot::before { top: 4px; }
html[data-theme="dark"][data-style="orrery"] .step-item { position: relative; border-bottom: 0; padding-bottom: 20px; }
html[data-theme="dark"][data-style="orrery"] .step-item:not(:last-child)::after { bottom: 2px; }
