/* ============================================================
   로드잇(Lordit) — 공통 스타일
   CSS 변수로 라이트/다크 테마를 전환합니다.
   ============================================================ */

:root {
    --font-sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.32);
    --card-glow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.2);
    --transition: 0.2s ease;
    --container-width: 1200px;
    --container-board: 1200px;
    --container-search: 1140px;
    --container-narrow: 720px;
    --focus-ring: 0 0 0 3px var(--accent-soft);
    --header-offset: 96px;
    --main-top-gap: 24px;
    --main-top-gap-mobile: 16px;
    /* LORDIT 브랜드 토큰 */
    --lordit-blue: #3f63f1;
    --lordit-deep: #0c1844;
    --lordit-rune: #8fb3ff;
    --lordit-glow: rgba(63, 99, 241, 0.28);
    --lordit-panel: rgba(255, 255, 255, 0.78);
    --lordit-line: rgba(143, 179, 255, 0.35);
    --lordit-motion: 0.2s ease;
    --lordit-motion-fast: 0.16s ease;
}

/* 다크 모드 (기본) — 깊은 네이비 게임 대시보드 */
[data-theme="dark"] {
    --bg-primary: #060810;
    --bg-secondary: #0c1019;
    --bg-card: #111622;
    --bg-card-hover: #171d2c;
    --text-primary: #eef1f8;
    --text-secondary: #a6aec2;
    --text-muted: #6a7489;
    --accent: #5b8def;
    --accent-hover: #7aa3f5;
    --accent-soft: rgba(91, 141, 239, 0.14);
    --accent-glow: rgba(91, 141, 239, 0.22);
    --cyan: #4ecdc4;
    --border: rgba(255, 255, 255, 0.06);
    --header-bg: rgba(6, 8, 16, 0.92);
    --hero-gradient: linear-gradient(165deg, #141c30 0%, #060810 50%, #0a0e18 100%);
    --hero-glow: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(91, 141, 239, 0.18), transparent);
    --badge-bg: rgba(91, 141, 239, 0.16);
    --badge-text: #8eb4ff;
    --tab-bg: #0c1019;
    --tab-active-bg: #111622;
    --lordit-deep: #060810;
    --lordit-panel: rgba(17, 22, 34, 0.88);
    --lordit-line: rgba(143, 179, 255, 0.22);
    --lordit-glow: rgba(91, 141, 239, 0.24);
}

/* 라이트 모드 — 깔끔한 흰/연회색 + 네이비 포인트 */
[data-theme="light"] {
    --bg-primary: #f3f5f9;
    --bg-secondary: #e8ecf3;
    --bg-card: #ffffff;
    --bg-card-hover: #f8faff;
    --text-primary: #141824;
    --text-secondary: #3e4859;
    --text-muted: #667085;
    --accent: #3d5fd9;
    --accent-hover: #2f4fc4;
    --accent-soft: rgba(61, 95, 217, 0.1);
    --accent-glow: rgba(61, 95, 217, 0.15);
    --cyan: #2a9d8f;
    --border: rgba(20, 24, 36, 0.11);
    --header-bg: rgba(243, 245, 249, 0.94);
    --hero-gradient: linear-gradient(165deg, #e4eaf5 0%, #f3f5f9 55%, #eef1f7 100%);
    --hero-glow: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(61, 95, 217, 0.1), transparent);
    --badge-bg: rgba(61, 95, 217, 0.1);
    --badge-text: #3d5fd9;
    --tab-bg: #e8ecf3;
    --tab-active-bg: #ffffff;
    --card-glow: 0 0 0 1px rgba(20, 24, 36, 0.06), 0 4px 20px rgba(20, 24, 36, 0.06);
    --shadow-sm: 0 2px 10px rgba(20, 24, 36, 0.06);
    --shadow-md: 0 8px 28px rgba(20, 24, 36, 0.08);
    --lordit-deep: #0c1844;
    --lordit-panel: rgba(255, 255, 255, 0.78);
    --lordit-line: rgba(61, 95, 217, 0.38);
    --lordit-glow: rgba(61, 95, 217, 0.12);
}

/* 기본 리셋 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: clip;
}

#main-content {
    flex: 1;
    padding-top: var(--main-top-gap);
    scroll-margin-top: var(--header-offset);
}

@media (max-width: 768px) {
    #main-content {
        padding-top: var(--main-top-gap-mobile);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* 접근성 — 본문 바로가기 */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 1rem;
    outline: none;
    box-shadow: var(--focus-ring);
}

/* focus-visible (키보드 접근성) */
a:focus-visible,
button:focus-visible,
.quick-action-btn:focus-visible,
.coupon-copy-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

.container-narrow {
    width: min(100% - 2rem, var(--container-narrow));
    margin-inline: auto;
}

/* ============================================================
   Lordit 페이지 레이아웃 (서브페이지 공통)
   ============================================================ */
.lordit-page {
    padding: 1.25rem 0 3rem;
    background: var(--bg-primary);
}

@media (max-width: 768px) {
    .lordit-page {
        padding: 0.75rem 0 2.5rem;
    }
}

.lordit-container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

.lordit-container-narrow {
    width: min(100% - 2rem, var(--container-narrow));
    margin-inline: auto;
}

.lordit-page-header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 0.25rem;
}

.lordit-page-header-left {
    text-align: left;
}

.lordit-page-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.lordit-page-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 0.625rem;
}

.lordit-page-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 36rem;
    margin-inline: auto;
}

.lordit-page-header-left .lordit-page-desc {
    margin-inline: 0;
}

.lordit-page-meta {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.lordit-page-meta strong {
    color: var(--text-primary);
    font-weight: 700;
}

.lordit-section {
    margin-bottom: 1.5rem;
}

.lordit-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.lordit-section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lordit-card-panel {
    overflow: visible;
}

.lordit-card-body-padded {
    padding: 1.125rem 1.25rem 1.25rem;
}

/* 입력 / 버튼 alias */
.lordit-input,
.lordit-input[type="search"],
.lordit-input[type="text"],
.lordit-input[type="password"],
.lordit-input[type="email"],
.lordit-input[type="number"],
.lordit-input[type="url"],
.lordit-select,
.lordit-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.lordit-input::placeholder,
.lordit-textarea::placeholder {
    color: var(--text-muted);
}

.lordit-input:focus,
.lordit-select:focus,
.lordit-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
}

.lordit-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.55;
}

.lordit-button-primary { /* .btn.btn-primary 와 병용 */ }
.lordit-button-secondary { /* .btn.btn-secondary 와 병용 */ }

.lordit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

/* 게시판 카테고리 탭 */
.lordit-board-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
    padding: 0.375rem;
    background: var(--tab-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.lordit-board-tab {
    flex: 1;
    min-width: fit-content;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.lordit-board-tab:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.lordit-board-tab.is-active {
    background: var(--tab-active-bg);
    color: var(--accent);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* 검색 바 */
.lordit-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.125rem;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.lordit-search-bar .lordit-input {
    flex: 1 1 200px;
    min-width: 0;
}

.lordit-search-bar-wide {
    align-items: stretch;
}

.lordit-search-bar-wide .btn {
    flex-shrink: 0;
}

.lordit-search-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lordit-result-info {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lordit-result-info strong {
    color: var(--text-primary);
}

.lordit-result-count {
    margin-left: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
}

.lordit-result-page {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.lordit-result-info-muted {
    color: var(--text-muted);
}

/* Empty state */
.lordit-empty,
.lordit-empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.lordit-empty-title,
.lordit-empty-state .empty-state-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.lordit-empty-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.lordit-empty-guide {
    padding: 2rem 1rem;
}

/* 페이지네이션 */
.lordit-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.lordit-pagination-btn {
    padding: 0.45rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.lordit-pagination-btn:hover:not(.is-disabled) {
    color: var(--accent);
    border-color: rgba(91, 141, 239, 0.35);
    background: var(--accent-soft);
}

.lordit-pagination-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lordit-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.lordit-pagination-num {
    min-width: 2.125rem;
    height: 2.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), color var(--transition);
}

.lordit-pagination-num:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.lordit-pagination-num.is-active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.lordit-pagination-ellipsis {
    padding: 0 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    user-select: none;
}

@media (max-width: 480px) {
    .lordit-pagination {
        gap: 0.375rem;
    }

    .lordit-pagination-btn {
        padding: 0.4rem 0.625rem;
        font-size: 0.75rem;
    }

    .lordit-pagination-num {
        min-width: 1.875rem;
        height: 1.875rem;
        font-size: 0.75rem;
    }
}

/* 말줄임 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pin-badge,
.category-badge-sm {
    /* 하위 호환 — lordit-badge 사용 권장 */
}

/* ============================================================
   Lordit 디자인 시스템 — 배지 / 카드 / 링크
   ============================================================ */
.lordit-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    line-height: 1.5;
    white-space: nowrap;
    border: 1px solid transparent;
}

.lordit-badge-new {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.25);
}

.lordit-badge-pin {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.22);
}

.lordit-badge-notice {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.lordit-badge-update {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.lordit-badge-event {
    color: #f9a8d4;
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.2);
}

.lordit-badge-devnote {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
}

.lordit-badge-urgent {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.22);
}

.lordit-badge-today {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.22);
}

.lordit-badge-always {
    color: var(--cyan);
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.2);
}

.lordit-badge-planned {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.lordit-badge-beta {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.lordit-badge-active {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
}

.lordit-badge-hidden {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
}

[data-theme="light"] .lordit-badge-new {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

[data-theme="light"] .lordit-badge-pin {
    color: #b45309;
    background: rgba(251, 191, 36, 0.15);
}

.lordit-card,
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--card-glow);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.lordit-card-glow:hover,
.dash-card:hover {
    border-color: rgba(91, 141, 239, 0.2);
    box-shadow: var(--card-glow), 0 0 32px var(--accent-glow);
}

.lordit-card-header,
.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.lordit-card-title,
.dash-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lordit-card-body {
    padding: 0;
}

.lordit-link-sm {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--transition);
}

.lordit-link-sm:hover {
    color: var(--accent-hover);
}

.lordit-link-xs {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--transition);
}

.lordit-link-xs:hover {
    color: var(--accent-hover);
}

.lordit-badge-xs {
    padding: 0.05rem 0.35rem;
    font-size: 0.5625rem;
    letter-spacing: 0.03em;
}

.lordit-empty-hint,
.news-empty-hint {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

.pin-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
}

.category-badge-sm {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
}

/* ============================================================
   버튼 (통일 스타일)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--transition), color var(--transition),
        border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-sm {
    padding: 0.45rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    min-height: 1.625rem;
    min-width: 2.5rem;
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(91, 141, 239, 0.35);
}

.btn-outline:hover {
    background: var(--accent-soft);
}

/* ============================================================
   헤더
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

section[id] {
    scroll-margin-top: var(--header-offset);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.header-search {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    max-width: 168px;
    min-width: 0;
    gap: 0.25rem;
    padding: 0.25rem 0.375rem 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.header-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 0.375rem 0;
}

.header-search-input:focus {
    outline: none;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color var(--transition);
}

.header-search-btn:hover {
    background: var(--accent);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-menu-toggle:hover {
    background: var(--accent-soft);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.45);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 160;
    width: min(18rem, 85vw);
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-title {
    font-weight: 700;
    font-size: 1rem;
}

.mobile-nav-close {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav-close:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.mobile-nav-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background-color var(--transition), color var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

.mobile-nav-search {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-search-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

body.mobile-nav-open {
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.logo-ko {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-en {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--accent-soft);
}

.nav-link.is-active {
    color: var(--accent);
    background-color: var(--accent-soft);
    font-weight: 600;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.theme-icon {
    font-size: 1.125rem;
    line-height: 1;
}

[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: none; }

/* ============================================================
   Hero (메인)
   ============================================================ */
.hero {
    position: relative;
    background: var(--hero-gradient);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: var(--hero-glow);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    padding: 4.5rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--badge-text);
    background: var(--badge-bg);
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(1.875rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 1.125rem;
    max-width: 22ch;
    margin-inline: auto;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #1a1f2e 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-br {
    display: none;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 48ch;
    margin-inline: auto;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Hero 배경 이미지 (어드민 main_banner 연동) */
.hero-has-image.has-caption {
    --hero-overlay: rgba(12, 14, 20, 0.72);
}

[data-theme="light"] .hero-has-image.has-caption {
    --hero-overlay: rgba(244, 246, 251, 0.82);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-has-image.has-caption .hero-bg-image {
    opacity: 0.35;
}

.hero-has-image.image-only .hero-bg-image {
    opacity: 1;
}

.hero-has-image.has-caption .hero-glow {
    background: linear-gradient(
        180deg,
        var(--hero-overlay) 0%,
        transparent 50%,
        var(--hero-overlay) 100%
    );
}

.hero-has-image.has-caption .hero-inner {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* 추천 영상 (유튜브 embed) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

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

.video-embed-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-body {
    padding: 1rem 1.125rem 1.25rem;
}

.video-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.video-card-body p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.video-grid-compact {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ============================================================
   메인 대시보드 (카드형 3컬럼 레이아웃)
   ============================================================ */
.hero-compact .hero-inner {
    padding: 2.75rem 0 2.25rem;
}

/* 메인 배너 슬라이더 */
.hero-slider {
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.hero-slider-track {
    display: flex;
    transition: transform 0.55s ease;
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--header-bg);
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition), border-color var(--transition);
}

.hero-slider-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.hero-slider-prev {
    left: 1rem;
}

.hero-slider-next {
    right: 1rem;
}

.hero-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.hero-slider-dot {
    width: 0.625rem;
    height: 0.625rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform var(--transition), background-color var(--transition);
}

[data-theme="light"] .hero-slider-dot {
    background: rgba(0, 0, 0, 0.2);
}

.hero-slider-dot.is-active {
    background: var(--accent);
    transform: scale(1.15);
}

.hero-slider-single .hero-slider-btn,
.hero-slider-single .hero-slider-dots {
    display: none;
}

/* 유튜브 embed 실패 fallback */
.video-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 160px;
    padding: 1.25rem;
    background: var(--bg-secondary);
    text-align: center;
}

.video-fallback-msg {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 메인 중앙 이미지 콘텐츠 (center_image) */
#center-contents .center-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
}

.center-image-card {
    min-width: 0;
}

.center-image-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.center-image-card-inner:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 140, 255, 0.22);
}

.center-image-open-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: var(--bg-primary);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
}

.center-image-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    background: var(--bg-primary);
    overflow: hidden;
}

.center-image-open-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.center-image-open-btn:hover img,
.center-image-open-btn:focus-visible img {
    transform: scale(1.04);
}

.center-image-open-btn:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px var(--accent-soft);
}

.center-image-body {
    padding: 1rem 1.125rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.center-image-body h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
}

.center-image-body p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.center-image-link-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
}

@media (min-width: 900px) {
    .center-image-media {
        aspect-ratio: 16 / 9;
        min-height: 300px;
    }

    #center-contents .center-image-grid {
        gap: 1.5rem;
        padding: 1.125rem 1.25rem 1.25rem;
    }
}

@media (min-width: 1101px) {
    .center-image-media {
        min-height: 340px;
    }
}

/* 이미지 크게보기 모달 */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.image-modal[hidden] {
    display: none !important;
}

.image-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
}

[data-theme="light"] .image-modal-overlay {
    background: rgba(12, 14, 20, 0.75);
}

.image-modal-panel {
    position: relative;
    z-index: 1;
    width: min(96vw, 1200px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.image-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition);
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.75);
}

.image-modal-content {
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    overflow: auto;
}

.image-modal-content img {
    width: auto;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    background: #000;
    display: block;
    margin: 0 auto;
}

.image-modal-caption {
    padding: 1rem 1.25rem 1.25rem;
}

.image-modal-caption h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.image-modal-caption p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

body.modal-open {
    overflow: hidden;
}

/* 도움말 모달 */
.help-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.help-modal[hidden] {
    display: none !important;
}

.help-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

[data-theme="light"] .help-modal-overlay {
    background: rgba(12, 14, 20, 0.62);
}

.help-modal-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    max-height: 88vh;
    overflow: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

.help-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition), color var(--transition);
}

.help-modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.help-modal-body {
    padding: 1.5rem 1.625rem 1.625rem;
}

.help-modal-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.help-modal-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 1rem 0 0.625rem;
}

.help-modal-subtitle:first-of-type {
    margin-top: 0;
}

.help-modal-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.help-modal-notes {
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 0.375rem;
}

.help-modal-notes p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============================================================
   메인 홈 — 섹션형 정보/계산기 허브
   ============================================================ */
.home-hub {
    padding: 0 0 2rem;
}

/* ── Bento 대시보드 ── */
.home-bento {
    --bento-gap: 0.625rem;
    --bento-radius: 14px;
    background:
        radial-gradient(ellipse 90% 55% at 50% -12%, rgba(91, 141, 239, 0.07), transparent 55%),
        var(--bg-primary);
}

[data-theme="light"] .home-bento {
    background:
        radial-gradient(ellipse 90% 55% at 50% -12%, rgba(61, 95, 217, 0.05), transparent 55%),
        var(--bg-primary);
}

.home-bento-block {
    margin-bottom: 1rem;
}

.home-bento-block.home-section {
    margin-bottom: 1rem;
}

.home-bento-label {
    margin: 0 0 0.375rem 0.125rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.85;
}

.home-bento-card {
    border-radius: var(--bento-radius);
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.home-bento-card:hover {
    border-color: rgba(91, 141, 239, 0.22);
}

.home-bento-tile {
    position: relative;
    border-radius: var(--bento-radius);
    overflow: hidden;
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
}

.home-bento-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(91, 141, 239, 0.06), transparent 48%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.home-bento-tile:hover:not(.is-disabled)::before {
    opacity: 1;
}

.home-bento-tile:hover:not(.is-disabled) {
    transform: translateY(-2px);
    border-color: rgba(91, 141, 239, 0.38);
    box-shadow: 0 6px 20px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.home-bento-tile-all {
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(91, 141, 239, 0.08) 100%);
}

.home-bento-tile-all .quick-action-title {
    color: var(--accent);
}

.home-bento-tile-support {
    background: linear-gradient(165deg, var(--bg-card) 0%, rgba(78, 205, 196, 0.07) 100%);
    border-color: rgba(78, 205, 196, 0.14);
}

.home-bento-tile-support:hover {
    border-color: rgba(78, 205, 196, 0.32);
    box-shadow: 0 6px 18px rgba(78, 205, 196, 0.12);
}

.home-bento-tile-support .quick-action-icon {
    background: rgba(78, 205, 196, 0.12);
}

.quick-action-tag-contact {
    color: var(--cyan);
    letter-spacing: 0.03em;
    text-transform: none;
    font-size: 0.5625rem;
}

.quick-action-tag-open {
    color: #6ee7a8;
    letter-spacing: 0.06em;
}

.home-bento-tile-promotion {
    border-color: rgba(110, 231, 168, 0.22);
}

.home-bento-tile-promotion:hover {
    border-color: rgba(110, 231, 168, 0.42);
    box-shadow: 0 2px 14px rgba(110, 231, 168, 0.12);
}

.home-bento-tile-promotion .quick-action-icon {
    background: rgba(110, 231, 168, 0.12);
}

.home-bento-tile-equipment-dismantle {
    border-color: rgba(167, 139, 250, 0.22);
}

.home-bento-tile-equipment-dismantle:hover {
    border-color: rgba(167, 139, 250, 0.42);
    box-shadow: 0 2px 14px rgba(167, 139, 250, 0.12);
}

.home-bento-tile-equipment-dismantle .quick-action-icon {
    background: rgba(167, 139, 250, 0.12);
}

.home-bento-tile .quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    background: var(--accent-soft);
    font-size: 1.375rem;
    line-height: 1;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-bento-tile:hover:not(.is-disabled) .quick-action-icon {
    transform: scale(1.08);
}

.home-bento-ad .ad-slot-adsense {
    border-radius: var(--bento-radius);
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.home-bento-ad .ad-slot-adsense:hover {
    opacity: 0.75;
    border-color: rgba(91, 141, 239, 0.15);
}

.home-triple-row .home-bento-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-glow), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-hub .home-calc-card.home-bento-card:hover:not(.calc-card-disabled) {
    transform: translateY(-2px);
    border-color: rgba(91, 141, 239, 0.28);
    box-shadow: var(--card-glow), 0 6px 22px var(--accent-glow);
}

.home-hub .news-tab-panels {
    position: relative;
    min-height: 11.5rem;
}

@keyframes home-tab-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hub .news-tab-panel.is-active:not([hidden]) {
    animation: home-tab-fade-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hub .news-tab-btn {
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.home-hub .news-tab-btn:active {
    transform: scale(0.97);
}

.home-hub .news-tab-link {
    border-radius: 6px;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        padding-left 0.18s ease;
}

.home-hub .news-tab-link:hover {
    padding-left: 0.375rem;
}

.home-hub .coupon-compact-item {
    border-radius: 6px;
    transition: background-color 0.18s ease;
}

.home-hub .coupon-compact-item:hover {
    background: var(--bg-card-hover);
}

.home-hub .coupon-code-copyable,
.home-hub .coupon-code-pill.coupon-code-copyable {
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.15s ease;
}

.home-hub .coupon-code-copyable.is-copy-flash {
    animation: coupon-copy-flash 0.55s ease;
}

@keyframes coupon-copy-flash {
    0% {
        box-shadow: 0 0 0 0 rgba(91, 141, 239, 0.45);
        transform: scale(1);
    }
    40% {
        box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.2);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
        transform: scale(1);
    }
}

.featured-aside-media {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-aside-media:hover img {
    transform: scale(1.04);
}

.featured-aside-media img {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-slot-card.home-bento-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-glow), 0 8px 24px rgba(0, 0, 0, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .home-bento-card,
    .home-bento-tile,
    .home-hub .news-tab-panel.is-active:not([hidden]),
    .home-hub .coupon-code-copyable.is-copy-flash,
    .featured-aside-media img {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.home-hub .home-wrap {
    width: min(100% - 1.5rem, 1140px);
    margin-inline: auto;
}

.home-section {
    margin-bottom: 1.25rem;
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0 0.125rem;
}

.home-section-head-compact {
    margin-bottom: 0.625rem;
}

.home-section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 퀵 액션 — compact */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.quick-action-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-quick-actions .quick-action-btn {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    min-height: 4.625rem;
    padding: 0 1.125rem;
    gap: 0.875rem;
}

.home-quick-actions .quick-action-icon {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-soft);
    font-size: 1.375rem;
    line-height: 1;
}

.home-quick-actions .home-bento-tile-support .quick-action-icon {
    background: rgba(78, 205, 196, 0.12);
}

.home-quick-actions .home-bento-tile:hover:not(.is-disabled) .quick-action-icon {
    transform: none;
}

.home-quick-actions .quick-action-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.125rem;
    min-width: 0;
    flex: 0 1 auto;
    max-width: calc(100% - 2rem - 0.875rem);
}

.home-quick-actions .quick-action-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.home-quick-actions .quick-action-desc {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    max-width: 100%;
}

[data-theme="light"] .home-quick-actions .quick-action-desc {
    color: var(--text-secondary);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 4.25rem;
    padding: 0.5rem 0.375rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.quick-action-btn:hover:not(.is-disabled) {
    border-color: rgba(91, 141, 239, 0.35);
    box-shadow: 0 2px 10px var(--accent-glow);
    transform: translateY(-1px);
}

.quick-action-btn.is-disabled {
    opacity: 0.62;
    cursor: not-allowed;
    filter: grayscale(0.08);
}

.quick-action-icon {
    font-size: 1.375rem;
    line-height: 1;
}

.quick-action-label {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    max-width: 100%;
}

.quick-action-desc {
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-muted);
    max-width: 100%;
}

.quick-action-tag {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* 후원/홍보 이미지 슬롯 — 17:4 가로형 배너 (PC 약 680×160, 권장 제출 1360×320) */
.home-sponsor-section {
    margin-bottom: 1rem;
}

.promo-slot-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    margin-bottom: 0.375rem;
}

.promo-slot-section-head .home-bento-label {
    margin-bottom: 0;
}

.promo-slot-spec-hint {
    margin: 0;
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.promo-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.promo-slot-card {
    display: block;
    overflow: hidden;
    color: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

a.promo-slot-card {
    cursor: pointer;
}

a.promo-slot-card:hover {
    border-color: rgba(91, 141, 239, 0.35);
    box-shadow: 0 2px 12px var(--accent-glow);
    transform: translateY(-1px);
}

.promo-slot-media {
    position: relative;
    width: 100%;
    aspect-ratio: 17 / 4;
    min-height: 140px;
    max-height: 180px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.promo-slot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.promo-slot-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.5rem 0.625rem;
    background: linear-gradient(transparent, rgba(6, 8, 16, 0.82));
    color: #eef1f8;
    pointer-events: none;
}

.promo-slot-title {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.promo-slot-desc {
    font-size: 0.6875rem;
    opacity: 0.9;
    line-height: 1.35;
}

.promo-slot-link-text {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--accent);
}

.promo-slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem;
    text-align: center;
    border: 1px dashed var(--border);
    background: var(--bg-secondary);
}

.promo-slot-empty-icon {
    font-size: 1.125rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.promo-slot-empty-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.promo-slot-empty-sub {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* 3분할 행 — 최신 소식 · 추천 콘텐츠 · 쿠폰 (2:1:1) */
.home-triple-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.625rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.home-triple-row > .home-section {
    margin-bottom: 0;
    min-width: 0;
    min-height: 280px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-triple-row .home-news-section,
.home-triple-row .home-featured-aside,
.home-triple-row .home-coupon-section {
    padding: 0.75rem 0.875rem 0.875rem;
}

.home-triple-row .home-coupon-list {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.home-triple-row .coupon-compact-list {
    flex: 1;
    min-height: 0;
}

.home-triple-row .home-coupon-section .home-coupon-more {
    flex-shrink: 0;
    margin-top: auto;
}

.home-featured-aside {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.featured-aside-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.featured-aside-media {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10;
    max-height: 168px;
}

.featured-aside-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-aside-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 168px;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.featured-aside-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.featured-aside-body {
    padding-top: 0.5rem;
    flex: 1;
    min-height: 0;
}

.featured-aside-body h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.featured-aside-body p {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.featured-aside-empty,
.featured-aside-fallback {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Google AdSense */
.ad-slot-adsense {
    width: 100%;
    min-height: 72px;
    opacity: 0.6;
    border-style: dotted;
}

.ad-slot-adsense .ad-slot-label {
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    text-transform: none;
}

.ad-slot-adsense .ad-slot-size {
    font-size: 0.625rem;
}

/* 최신 소식 탭 — compact */
.home-news-section {
    padding: 0.75rem 0.875rem 0.875rem;
}

.home-pinned-strip-compact {
    margin-bottom: 0.625rem;
    padding: 0.375rem 0.5rem;
    gap: 0.375rem 0.5rem;
}

.home-pinned-strip-compact .home-pinned-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
}

.home-pinned-strip-compact .home-pinned-link {
    font-size: 0.75rem;
}

.home-hub .news-tabs {
    gap: 0.25rem;
    margin-bottom: 0.625rem;
}

.home-hub .news-tab-btn {
    padding: 0.3125rem 0.625rem;
    font-size: 0.6875rem;
}

.home-hub .news-tab-list {
    gap: 0;
}

.home-hub .news-tab-link {
    gap: 0.5rem;
    padding: 0.375rem 0.125rem;
}

.home-hub .news-tab-title {
    font-size: 0.8125rem;
    font-weight: 500;
}

.home-hub .news-tab-date {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #526070;
}

[data-theme="dark"] .home-hub .news-tab-date {
    color: #9aa3b8;
}

.home-hub .news-tab-badges .lordit-badge {
    padding: 0.05rem 0.35rem;
    font-size: 0.5625rem;
}

.home-hub .news-tab-empty {
    padding: 0.625rem 0.125rem;
    font-size: 0.75rem;
}

.home-hub .news-tab-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.home-hub .news-tab-footer .lordit-link-sm {
    font-size: 0.6875rem;
}

/* 퀵패널 */
.quick-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.quick-panel-card {
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-height: 8.5rem;
}

.quick-panel-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.quick-panel-highlight {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
}

.quick-panel-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
    flex: 1;
}

.quick-panel-card .lordit-link-sm {
    margin-top: auto;
    align-self: flex-start;
}

/* 최신 소식 탭 (기본) */
.home-pinned-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    padding: 0.625rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.home-pinned-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.home-pinned-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
    flex: 1;
    min-width: 0;
}

.home-pinned-link {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    max-width: 100%;
}

.home-pinned-link:hover {
    color: var(--accent);
}

.news-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.125rem;
}

.news-tabs::-webkit-scrollbar {
    display: none;
}

.news-tab-btn {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.news-tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(91, 141, 239, 0.3);
}

.news-tab-btn.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: rgba(91, 141, 239, 0.45);
}

.news-tab-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.news-tab-item {
    border-bottom: 1px solid var(--border);
}

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

.news-tab-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.25rem;
    color: inherit;
    transition: background-color var(--transition);
}

.news-tab-link:hover {
    background: var(--bg-card-hover);
}

.news-tab-link-main {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    flex: 1;
}

.news-tab-badges {
    display: flex;
    flex-shrink: 0;
    gap: 0.2rem;
}

.news-tab-title {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.news-tab-link:hover .news-tab-title {
    color: var(--accent);
}

.news-tab-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

[data-theme="dark"] .news-tab-date {
    color: #9aa3b8;
}

.news-tab-empty {
    padding: 1rem 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

.news-tab-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* 계산기 허브 그리드 */
.home-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.home-hub .home-calc-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 0.5rem;
}

.home-hub .home-calc-card {
    padding: 0.75rem 0.875rem;
}

.home-hub .home-calc-card h3 {
    font-size: 0.8125rem;
}

.home-hub .home-calc-card p {
    font-size: 0.75rem;
    line-height: 1.45;
}

.home-hub .home-featured-grid {
    gap: 1rem;
}

.home-hub .center-image-grid-hub {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.625rem;
}

.home-hub .video-grid-hub {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.625rem;
}

.home-calc-card {
    padding: 1rem 1.125rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.home-calc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.home-calc-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.home-calc-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.home-calc-empty {
    grid-column: 1 / -1;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 추천 콘텐츠 */
.home-featured-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-featured-subtitle {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.center-image-grid-hub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.home-hub .center-image-media {
    aspect-ratio: unset;
    min-height: unset;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.home-hub .center-image-open-btn {
    display: flex;
    width: 100%;
    min-height: unset;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.home-hub .center-image-open-btn img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    transform: none;
}

.home-hub .center-image-open-btn:hover img,
.home-hub .center-image-open-btn:focus-visible img {
    transform: none;
}

.video-grid-hub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.video-embed-wrap-hub {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-embed-wrap-hub iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.home-featured-section .video-card {
    overflow: hidden;
}

/* 쿠폰 섹션 — 메인 compact panel (최대 5개) */
.home-coupon-section.coupon-panel {
    padding: 0.75rem 0.875rem 0.875rem;
}

.coupon-panel .home-section-head-compact {
    margin-bottom: 0.5rem;
}

.coupon-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.coupon-compact-item {
    padding: 0.3125rem 0;
    border-bottom: 1px solid var(--border);
}

.coupon-compact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.coupon-compact-item:first-child {
    padding-top: 0;
}

.coupon-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    margin-bottom: 0.1875rem;
    min-width: 0;
}

.coupon-title-line {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.coupon-panel .coupon-title-line .coupon-title {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.coupon-panel .coupon-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.1875rem;
    flex-shrink: 0;
}

.coupon-panel .coupon-badges .lordit-badge-xs {
    font-size: 0.5625rem;
    padding: 0.0625rem 0.3125rem;
    line-height: 1.35;
}

.coupon-period-inline {
    flex-shrink: 0;
    font-size: 0.5625rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    max-width: 38%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coupon-panel .coupon-code-row {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    margin: 0;
}

.coupon-code-pill {
    flex: 1;
    min-width: 0;
    padding: 0.1875rem 0.4375rem;
    font-size: 0.625rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    border: 1px solid transparent;
    word-break: break-all;
    line-height: 1.35;
    cursor: pointer;
}

.coupon-panel .coupon-copy-btn {
    flex-shrink: 0;
    min-width: 1.875rem;
    min-height: 1.375rem;
    padding: 0.0625rem 0.375rem;
    font-size: 0.5625rem;
    line-height: 1.2;
}

.home-coupon-section {
    padding: 0.75rem 0.875rem 0.875rem;
}

.home-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-coupon-empty,
.home-coupon-more {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.375rem 0;
}

.home-coupon-empty {
    padding: 0.5rem 0.25rem;
    margin: 0;
}

.home-coupon-more {
    margin-top: 0.3125rem;
    padding-top: 0.3125rem;
    border-top: 1px dashed var(--border);
}

.coupon-more-link,
.home-coupon-more-link {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--transition);
}

.coupon-more-link:hover,
.home-coupon-more-link:hover {
    color: var(--accent-hover);
}

.home-coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.coupon-item-hub {
    padding: 1rem 1.125rem;
}

.home-ad-section {
    margin-bottom: 1rem;
}

.home-ad-bottom {
    margin-top: 0.25rem;
}

.ad-slot-subtle {
    opacity: 0.65;
    min-height: 60px;
    border-style: dotted;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .ad-slot-subtle {
    border-color: rgba(20, 24, 36, 0.1);
}

.home-hub .ad-slot-side {
    display: none;
}

@media (max-width: 992px) {
    .quick-action-grid,
    .quick-action-grid-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .promo-slot-grid {
        grid-template-columns: 1fr;
    }

    .promo-slot-media {
        min-height: 120px;
    }

    .home-triple-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .home-triple-row .home-news-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .home-hub .home-wrap {
        width: min(100% - 1.25rem, 1140px);
    }

    .quick-action-grid,
    .quick-action-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-action-btn {
        min-height: 4.25rem;
        padding: 0.5rem 0.5rem;
    }

    .home-quick-actions .quick-action-btn {
        gap: 0.625rem;
        min-height: 4.375rem;
        padding: 0 0.75rem;
        justify-content: center;
    }

    .home-quick-actions .quick-action-body,
    .quick-action-body {
        max-width: calc(100% - 1.875rem - 0.625rem);
        align-items: flex-start;
        text-align: left;
    }

    .home-quick-actions .quick-action-title,
    .quick-action-title {
        font-size: 0.875rem;
        white-space: normal;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-quick-actions .quick-action-desc {
        font-size: 0.6875rem;
        line-height: 1.35;
        max-width: 100%;
        -webkit-line-clamp: 2;
    }

    .home-quick-actions .quick-action-icon {
        width: 1.875rem;
        height: 1.875rem;
        min-width: 1.875rem;
        flex-basis: 1.875rem;
        font-size: 1.25rem;
    }

    .home-triple-row {
        grid-template-columns: 1fr;
    }

    .home-triple-row .home-news-section {
        grid-column: auto;
    }

    .news-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
    }

    .news-tab-btn {
        text-align: center;
        width: 100%;
    }

    .home-coupon-grid {
        grid-template-columns: 1fr;
    }

    .coupon-panel .coupon-code-row {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .coupon-copy-btn,
    .coupon-panel .coupon-copy-btn {
        min-height: 40px;
        min-width: 3.5rem;
        padding: 0 14px;
        font-size: 0.75rem;
    }

    .coupon-panel .coupon-copy-btn {
        flex: 0 0 auto;
    }

    .coupon-panel .coupon-code-pill {
        flex: 1 1 100%;
        min-width: 0;
    }

    .home-triple-row .coupon-compact-list {
        max-height: 11.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .center-image-grid-hub,
    .video-grid-hub {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   메인 홈 대시보드 — 3컬럼 레이아웃 (legacy, 하위 호환)
   ============================================================ */
.home-dashboard {
    padding: 1rem 0 2rem;
}

.home-wrap {
    width: min(100% - 1.5rem, 1440px);
    margin-inline: auto;
}

.home-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

/* 모바일: 컬럼 풀어서 블록 순서 재배치 */
@media (max-width: 767px) {
    .home-col-left,
    .home-col-center,
    .home-col-right {
        display: contents;
    }

    .home-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .home-block-news { order: 1; }
    .home-block-coupons { order: 2; }
    .home-block-recommend { order: 3; }
    .home-block-videos { order: 4; }
    .home-block-calc { order: 5; }
    .home-block-ad-mid { order: 6; }
    .home-block-ad-side { display: none; }
    .home-block-recent { order: 7; }
    .home-block-tip { order: 8; }
}

/* 태블릿 2컬럼 */
@media (min-width: 768px) and (max-width: 1023px) {
    .home-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
        gap: 1rem;
        align-items: start;
    }

    .home-col-left { grid-column: 1; grid-row: 1; }
    .home-col-center { grid-column: 1; grid-row: 2; }
    .home-col-right { grid-column: 2; grid-row: 1 / span 2; align-self: start; }

    .home-block-ad-side { display: block; }
}

/* PC 3컬럼 — 상단 정렬 */
@media (min-width: 1024px) {
    .home-grid {
        display: grid;
        grid-template-columns: minmax(280px, 300px) minmax(0, 1fr) minmax(260px, 280px);
        gap: 1.125rem;
        align-items: start;
    }

    .home-col-left { grid-column: 1; grid-row: 1; }
    .home-col-center { grid-column: 2; grid-row: 1; }
    .home-col-right { grid-column: 3; grid-row: 1; }

    .home-block-ad-side { display: block; }
}

/* ── 와이드 메인 배너 (네비바 아래) ── */
.home-wide-banner {
    margin-bottom: 0.75rem;
}

.home-wide-banner .hero-slider-wide,
.home-wide-banner .hero-wide-fallback {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--card-glow);
    position: relative;
}

.home-wide-banner .hero-slider {
    border-bottom: none;
}

.home-wide-banner .hero-slider-viewport,
.home-wide-banner .hero-slide,
.home-wide-banner .hero-wide-fallback {
    height: clamp(140px, 34vw, 170px);
}

@media (min-width: 768px) {
    .home-wide-banner .hero-slider-viewport,
    .home-wide-banner .hero-slide,
    .home-wide-banner .hero-wide-fallback {
        height: clamp(170px, 18vw, 200px);
    }
}

@media (min-width: 1024px) {
    .home-wide-banner .hero-slider-viewport,
    .home-wide-banner .hero-slide,
    .home-wide-banner .hero-wide-fallback {
        height: clamp(180px, 16vw, 220px);
    }
}

.home-wide-banner .hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

a.hero-slide.image-only {
    display: flex;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.hero-slide.image-only:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.home-wide-banner .hero-inner-wide {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0.875rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-wide-banner .hero-title {
    max-width: 40ch;
    margin-inline: auto;
    font-size: clamp(1.0625rem, 2vw, 1.4375rem);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.home-wide-banner .hero-desc {
    max-width: 44ch;
    margin-inline: auto;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.home-wide-banner .hero-badge {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 0.375rem;
    opacity: 0.92;
}

.home-wide-banner .hero-actions-wide {
    justify-content: center;
    margin-top: 0.5rem;
}

.home-wide-banner .hero-has-image.has-caption .hero-bg-image {
    opacity: 0.55;
}

.home-wide-banner .hero-has-image.image-only .hero-bg-image {
    opacity: 1;
}

.home-wide-banner .hero-slide.has-caption::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(6, 8, 16, 0.3) 0%,
        rgba(6, 8, 16, 0.5) 100%
    );
    pointer-events: none;
}

.home-wide-banner .hero-slide.image-only::before {
    display: none;
}

.home-wide-banner .hero-has-image.has-caption .hero-title {
    background: none;
    -webkit-text-fill-color: #f2f4fa;
    color: #f2f4fa;
}

[data-theme="light"] .home-wide-banner .hero-has-image.has-caption .hero-title {
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.home-wide-banner .hero-has-image.has-caption .hero-desc {
    color: rgba(255, 255, 255, 0.9);
}

.home-wide-banner .hero-has-image.has-caption .hero-inner,
.home-wide-banner .hero-has-image.has-caption .hero-inner-wide {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.home-wide-banner .hero-slider-dots {
    bottom: 0.5rem;
}

.home-wide-banner .hero-wide-fallback {
    background: var(--hero-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 최신 소식 — 카테고리 sub-section ── */
.news-panel-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.news-section {
    background: transparent;
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--border);
    padding-top: 0.875rem;
    overflow: visible;
}

.news-panel-body > .news-section:first-child {
    border-top: none;
    padding-top: 0;
}

[data-theme="light"] .news-section {
    background: transparent;
}

.news-section-pinned {
    border-top: none;
    padding-top: 0;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

.news-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 0 0.625rem 0.5rem;
    margin-bottom: 0.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}

[data-theme="light"] .news-section-head {
    border-bottom-color: rgba(0, 0, 0, 0.07);
    background: transparent;
}

.news-section-title {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    min-width: 0;
    line-height: 1.3;
}

.news-section-accent {
    width: 3px;
    height: 0.9375rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.news-section-accent-pinned {
    background: linear-gradient(180deg, #f6ad55 0%, #ed8936 100%);
}

.news-section-notices .news-section-accent {
    background: linear-gradient(180deg, #6b9fff 0%, #4a7fd4 100%);
}

.news-section-updates .news-section-accent {
    background: linear-gradient(180deg, #a78bfa 0%, #7c5cbf 100%);
}

.news-section-events .news-section-accent {
    background: linear-gradient(180deg, #f687b3 0%, #ed8936 100%);
}

.news-section-dev-notes .news-section-accent {
    background: linear-gradient(180deg, #4fd1c5 0%, #319795 100%);
}

.news-section-notices .news-section-label {
    color: #8eb8ff;
}

.news-section-updates .news-section-label {
    color: #b794f6;
}

.news-section-events .news-section-label {
    color: #f6a88a;
}

.news-section-dev-notes .news-section-label {
    color: #68d4c8;
}

[data-theme="light"] .news-section-notices .news-section-label {
    color: #2b6cb0;
}

[data-theme="light"] .news-section-updates .news-section-label {
    color: #6b46c1;
}

[data-theme="light"] .news-section-events .news-section-label {
    color: #c05621;
}

[data-theme="light"] .news-section-dev-notes .news-section-label {
    color: #2c7a7b;
}

.news-section-icon {
    font-size: 0.8125rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.9;
}

.news-section-label {
    min-width: 0;
}

.news-section-more {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
}

.news-section-more:hover {
    color: var(--accent);
}

.news-section-empty {
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
}

.news-compact-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
}

.news-compact-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    flex-shrink: 0;
}

/* ── 중앙 컬럼 콘텐츠 (컴팩트) ── */
.center-image-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.625rem;
    padding: 0.625rem;
}

.center-image-grid-dashboard:has(> li:only-child) {
    grid-template-columns: 1fr;
}

.home-dashboard .center-image-media {
    aspect-ratio: unset;
    height: auto;
    min-height: 140px;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.home-dashboard .center-image-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 140px;
    background: var(--bg-primary);
}

.home-dashboard .center-image-open-btn img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.home-dashboard .center-image-open-btn:hover img,
.home-dashboard .center-image-open-btn:focus-visible img {
    transform: none;
    opacity: 0.94;
}

@media (max-width: 899px) {
    .home-dashboard .center-image-open-btn img {
        max-height: min(360px, 52vh);
    }
}

.home-dashboard .center-image-body-compact {
    padding: 0.5rem 0.75rem 0.625rem;
    gap: 0.25rem;
}

.home-dashboard .center-image-body-compact h3 {
    font-size: 0.8125rem;
    font-weight: 600;
}

.home-dashboard .center-image-body-compact p {
    font-size: 0.75rem;
    line-height: 1.45;
}

/* ── 추천 영상 (컴팩트) ── */
.video-embed-wrap-compact {
    padding-top: 0;
    height: 200px;
    max-height: 200px;
}

.video-embed-wrap-compact iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── 오른쪽 안내 카드 ── */
.lordit-card-subtle {
    background: var(--bg-secondary);
    border-style: dashed;
}

.home-tip-body {
    padding: 0.75rem 1rem;
}

.home-tip-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.375rem;
}

.recent-posts-list-compact .recent-post-link {
    padding: 0.625rem 1rem;
}

.hero-inner-compact {
    padding: 2rem 1.5rem;
}

.home-hero-fallback {
    min-height: 160px;
}

/* legacy news-block — 하위 호환 */
.news-block {
    padding: 0;
    border-bottom: none;
}

.news-compact-list {
    display: flex;
    flex-direction: column;
}

.news-compact-item {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .news-compact-item {
    border-top-color: rgba(0, 0, 0, 0.05);
}

.news-compact-item:first-child {
    border-top: none;
}

.news-compact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    color: inherit;
    transition: background-color var(--transition);
}

.news-compact-link:hover {
    background: var(--bg-card-hover);
}

.news-compact-link:hover .news-compact-title {
    color: var(--accent);
}

.news-compact-title {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    transition: color var(--transition);
}

.news-compact-date {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.news-empty-hint {
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
}

/* 광고 슬롯 — 은은한 placeholder */
.ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.85;
}

[data-theme="light"] .ad-slot {
    background: transparent;
}

.ad-slot-mid {
    min-height: 72px;
    padding: 0.625rem;
}

.ad-slot-side {
    min-height: 250px;
    padding: 0.75rem;
}

.ad-slot-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.ad-slot-size {
    font-size: 0.625rem;
    opacity: 0.45;
}

/* 레거시 광고 placeholder (다른 페이지 호환) */
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    text-align: center;
}

.dashboard-wrap {
    padding: 1.5rem 0 3rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 280px;
    gap: 1.25rem;
    align-items: start;
}

.dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.dash-list {
    display: flex;
    flex-direction: column;
}

.dash-list-item {
    border-bottom: 1px solid var(--border);
}

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

.dash-list-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: inherit;
    transition: background-color var(--transition);
}

.dash-list-link:hover {
    background: var(--bg-card-hover);
}

.dash-list-link:hover .dash-list-title {
    color: var(--accent);
}

.dash-list-title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    transition: color var(--transition);
}

.dash-list-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-top: 0.125rem;
}

.dash-empty {
    padding: 1.25rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* 쿠폰 카드 */
.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.coupon-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

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

.coupon-item-compact {
    padding: 0.75rem 1rem;
}

.coupon-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.coupon-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

.coupon-item-compact .coupon-title {
    font-size: 0.8125rem;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.coupon-period-compact {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.coupon-list-compact .coupon-desc {
    display: none;
}

.coupon-item-compact .coupon-code {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
}

.coupon-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.coupon-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.625rem;
}

.coupon-code-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.coupon-code {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    word-break: break-all;
}

.coupon-copy-btn {
    flex-shrink: 0;
    min-width: 3.25rem;
    min-height: 2.25rem;
}

.coupon-copy-btn.is-copied {
    border-color: #48bb78;
    color: #48bb78;
}

.coupon-period {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 계산기 그리드 (대시보드) */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
}

.calc-card-compact {
    padding: 0.875rem !important;
}

.calc-card-compact h3 {
    font-size: 0.9375rem;
}

.calc-card-compact p {
    font-size: 0.8125rem;
}

/* ============================================================
   콘텐츠 섹션 (메인)
   ============================================================ */
.content-section {
    padding: 3.5rem 0;
}

.alt-section {
    background-color: var(--bg-secondary);
}

.section-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.375rem;
}

.section-header {
    margin-bottom: 1.75rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.info-card,
.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition),
        background-color var(--transition), border-color var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
    border-color: rgba(108, 140, 255, 0.25);
}

.info-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem 1.375rem;
    color: inherit;
}

.card-meta {
    margin-bottom: 0.625rem;
}

.info-card time {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.info-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}

.info-card-link:hover h3 {
    color: var(--accent);
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-top: auto;
}

/* 계산기 카드 */
.calc-card {
    padding: 1.25rem 1.375rem;
    opacity: 0.88;
}

.calc-card:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.calc-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--badge-text);
    background: var(--badge-bg);
    border-radius: 999px;
}

.calc-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calc-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* 계산기 상태 배지 */
.calc-badge-planned {
    color: var(--badge-text);
    background: var(--badge-bg);
}

.calc-badge-beta {
    color: #b7791f;
    background: rgba(237, 137, 54, 0.15);
}

[data-theme="dark"] .calc-badge-beta {
    color: #f6ad55;
}

.calc-badge-active {
    color: #276749;
    background: rgba(72, 187, 120, 0.15);
}

[data-theme="dark"] .calc-badge-active {
    color: #68d391;
}

.calc-badge-hidden {
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.calc-card-clickable {
    display: block;
    color: inherit;
    cursor: pointer;
}

.calc-icon-sm {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
}

/* 계산기 목록 페이지 */
.calc-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* 쿠폰 목록 페이지 */
.coupon-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    list-style: none;
}

.coupon-page-card {
    height: 100%;
    padding: 1.125rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.coupon-page-card .coupon-title {
    font-size: 1rem;
    margin-bottom: 0;
}

.coupon-page-card .coupon-desc {
    margin-bottom: 0.375rem;
}

.coupon-date-dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
    margin: 0.25rem 0 0.375rem;
    padding: 0.5rem 0.625rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.coupon-date-row {
    min-width: 0;
}

.coupon-date-row dt {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.coupon-date-row dd {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.coupon-period-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.coupon-period-label-key {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.375rem;
}

.coupon-page-card .coupon-code-row {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 0.375rem;
}

/* 후원 및 광고문의 페이지 */
.contact-page {
    padding-bottom: 3.5rem;
}

.contact-panel {
    width: min(100% - 2rem, 920px);
    margin-inline: auto;
}

.contact-hero {
    margin-bottom: 2rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-section__header {
    margin-bottom: 1.125rem;
}

.contact-section__title {
    margin: 0 0 0.375rem;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.contact-section__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.contact-channel-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 100%;
    padding: 1.5rem 1.625rem 1.375rem;
    border-radius: 20px;
    background: linear-gradient(
        165deg,
        var(--bg-card) 0%,
        rgba(91, 141, 239, 0.04) 100%
    );
}

.contact-channel-card--kakao {
    border-color: rgba(254, 229, 0, 0.14);
}

.contact-channel-card--email {
    border-color: rgba(78, 205, 196, 0.14);
}

.contact-channel-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    line-height: 1;
    border-radius: 14px;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(143, 179, 255, 0.12);
}

.contact-channel-card--kakao .contact-channel-card__icon {
    background: rgba(254, 229, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(254, 229, 0, 0.18);
}

.contact-channel-card--email .contact-channel-card__icon {
    background: rgba(78, 205, 196, 0.12);
    box-shadow: inset 0 0 0 1px rgba(78, 205, 196, 0.18);
}

.contact-channel-card__content {
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 1.25rem;
}

.contact-channel-card__title {
    margin: 0 0 0.375rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.contact-channel-card__desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.contact-channel-card__email {
    display: inline-block;
    margin-top: 0.625rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-secondary);
    word-break: break-all;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.contact-channel-card__btn {
    width: 100%;
    margin-top: auto;
    justify-content: center;
}

.contact-spec-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    padding: 1.5rem 1.625rem;
    border-radius: 20px;
    background: linear-gradient(
        165deg,
        var(--bg-card) 0%,
        rgba(143, 179, 255, 0.05) 100%
    );
}

.contact-spec-card__intro {
    flex: 1 1 16rem;
    min-width: 0;
}

.contact-spec-card__eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.contact-spec-card__title {
    margin: 0 0 0.375rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.contact-spec-card__desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1 1 18rem;
    justify-content: flex-end;
}

.contact-spec-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
}

.contact-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
}

@media (max-width: 768px) {
    .contact-hero {
        margin-bottom: 1.5rem;
    }

    .contact-content {
        gap: 1.5rem;
    }

    .contact-channel-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-channel-card {
        padding: 1.375rem 1.25rem 1.25rem;
    }

    .contact-spec-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.375rem 1.25rem;
    }

    .contact-spec-list {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .contact-panel {
        width: min(100% - 1.25rem, 920px);
    }

    .contact-spec-badge {
        white-space: normal;
        text-align: center;
    }
}

[data-theme="light"] .contact-channel-card {
    background: linear-gradient(
        165deg,
        var(--bg-card) 0%,
        rgba(63, 99, 241, 0.03) 100%
    );
}

[data-theme="light"] .contact-spec-card {
    background: linear-gradient(
        165deg,
        var(--bg-card) 0%,
        rgba(63, 99, 241, 0.04) 100%
    );
}

[data-theme="light"] .contact-channel-card__email,
[data-theme="light"] .contact-spec-badge {
    background: rgba(255, 255, 255, 0.72);
}

.legal-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.legal-section + .legal-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.legal-section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-section p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.legal-section p + p {
    margin-top: 0.5rem;
}

.legal-updated {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.btn.is-disabled,
.btn.is-disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.calc-card-page.lordit-card,
.calc-card-page {
    height: 100%;
    padding: 1.25rem 1.375rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.calc-card-page.lordit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--card-glow);
}

.calc-card-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 141, 239, 0.22);
    box-shadow: var(--card-glow), 0 0 24px var(--accent-glow);
}

.calc-card-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(0.15);
}

.calc-card-disabled:hover {
    transform: none;
    box-shadow: var(--card-glow);
}

.calc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calc-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.calc-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

/* 메인 고정글 섹션 */
.pinned-section {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.pinned-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
    padding: 0.75rem;
}

.pinned-post-card {
    min-width: 0;
}

.pinned-post-link {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    height: 100%;
    padding: 1rem 1.125rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pinned-post-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 140, 255, 0.22);
}

.pinned-post-link:hover h3 {
    color: var(--accent);
}

.pinned-post-category {
    display: inline-block;
    width: fit-content;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--badge-text);
    background: var(--badge-bg);
    border-radius: 999px;
}

.pinned-post-link h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    transition: color var(--transition);
}

.pinned-post-link p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pinned-post-link time {
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .pinned-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calc-page-grid,
    .coupon-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pinned-post-grid,
    .calc-page-grid,
    .coupon-page-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   게시판 목록 / 상세
   ============================================================ */
.page-hero {
    background: var(--hero-gradient);
    border-bottom: 1px solid var(--border);
}

.page-hero-compact .page-hero-inner {
    padding: 2.5rem 0 2rem;
}

.page-hero-inner {
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.page-hero-inner h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-hero-detail {
    text-align: left;
}

.page-hero-detail .post-detail-title {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 0.625rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 카테고리 탭 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding: 0.375rem;
    background: var(--tab-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.category-tab {
    flex: 1;
    min-width: fit-content;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.category-tab:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.category-tab.is-active {
    background: var(--tab-active-bg);
    color: var(--accent);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* 게시판 검색 */
.board-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.board-search-input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.board-search-input::placeholder {
    color: var(--text-muted);
}

.board-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
}

.board-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-result-info {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.search-result-info strong {
    color: var(--accent);
    font-weight: 600;
}

.search-result-count {
    margin-left: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* 스크린 리더 전용 (접근성) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.board-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.board-list-page {
    gap: 1rem;
}

.board-list-compact {
    gap: 0.75rem;
}

.board-list-item {
    min-width: 0;
}

.board-list-card {
    overflow: hidden;
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, border-color var(--transition), transform 0.25s ease;
}

[data-theme="dark"] .board-list-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.board-list-card:hover {
    border-color: rgba(91, 141, 239, 0.28);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(91, 141, 239, 0.12);
    transform: translateY(-2px);
}

[data-theme="dark"] .board-list-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(91, 141, 239, 0.15);
}

.board-list-item-pinned .board-list-card {
    border-color: rgba(251, 191, 36, 0.22);
}

.board-list-link {
    display: block;
    padding: 1.625rem 1.75rem 1.375rem;
    color: inherit;
}

.board-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.board-list-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.board-list-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    line-height: 1.6;
    padding-top: 0.125rem;
}

.board-list-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0.625rem;
    transition: color var(--transition);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.board-list-summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.board-list-link:hover .board-list-title {
    color: var(--accent);
}

.board-list-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.625rem 1.75rem 1rem;
    border-top: 1px solid var(--border);
}

.board-source-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
}

.board-source-link:hover {
    color: var(--accent);
}

/* ============================================================
   게시판 목록 페이지 — 레이아웃·여백
   ============================================================ */
.lordit-page-board {
    padding: 2.25rem 0 3.5rem;
}

.lordit-container-board {
    width: min(100% - 2rem, var(--container-board));
    margin-inline: auto;
}

.lordit-container-detail {
    max-width: min(100% - 2rem, 820px);
}

.board-page-header {
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.board-page-title {
    font-size: clamp(1.375rem, 2.8vw, 1.75rem);
    margin-bottom: 0.5rem;
}

.board-page-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 32rem;
}

.lordit-page-board .lordit-board-tabs.board-page-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lordit-page-board .lordit-board-tabs.board-page-tabs::-webkit-scrollbar {
    display: none;
}

.lordit-page-board .lordit-board-tab {
    flex: 0 0 auto;
    min-width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
}

.lordit-page-board .lordit-board-tab:hover {
    border-color: rgba(91, 141, 239, 0.35);
    background: var(--bg-card-hover);
}

.lordit-page-board .lordit-board-tab.is-active {
    color: var(--accent);
    border-color: rgba(91, 141, 239, 0.45);
    background: var(--accent-soft);
    box-shadow: none;
    font-weight: 600;
}

.board-search-card {
    margin-bottom: 1.25rem;
    padding: 1rem 1.125rem;
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.board-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.625rem;
}

.board-search-input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
}

.board-search-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.board-search-btn {
    min-height: 2.75rem;
    align-self: stretch;
}

.board-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1.125rem;
    padding: 0 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.board-list-toolbar-keyword {
    color: var(--text-secondary);
    font-weight: 600;
}

.board-list-toolbar-sep {
    opacity: 0.55;
    user-select: none;
}

.board-empty-card {
    padding: 0.5rem 0;
}

.lordit-page-board .lordit-pagination {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    gap: 0.625rem;
}

.lordit-page-board .lordit-pagination-btn {
    min-height: 2.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.lordit-page-board .lordit-pagination-num {
    min-width: 2.375rem;
    height: 2.375rem;
    border: 1px solid transparent;
}

.lordit-page-board .lordit-pagination-num.is-active {
    border-color: rgba(91, 141, 239, 0.35);
}

.lordit-page-board .lordit-pagination-btn.is-disabled {
    background: var(--bg-secondary);
    border-color: var(--border);
}

/* 게시글 상세 (서브페이지) */
.lordit-page-detail.lordit-page-board {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
}

.lordit-page-detail .board-page-header {
    margin-bottom: 1.75rem;
}

.post-detail .lordit-card-body-padded {
    padding: 1.75rem 1.875rem;
}

.post-detail-section {
    margin-bottom: 1.5rem;
}

.post-detail-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
}

.post-detail-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.post-detail-thumbnail img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: var(--bg-primary);
}

.post-detail-thumbnail figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.45;
    border-top: 1px solid var(--border);
}

.post-lead {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.7;
}

.post-excerpt {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.post-key-points {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-left: 0;
    list-style: none;
}

.post-key-points li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.post-key-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.85;
}

.post-source-notice {
    margin: 1.5rem 0 0;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.post-source-btn {
    font-weight: 700;
}

.post-content {
    max-width: 40rem;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.post-content p + p {
    margin-top: 1rem;
}

.post-meta-date {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.post-detail-title {
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-bottom: 0.25rem;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.post-related {
    margin-top: 2.25rem;
}

@media (max-width: 640px) {
    .lordit-container-board,
    .lordit-container-detail {
        width: min(100% - 2rem, var(--container-board));
    }

    .board-page-header {
        margin-bottom: 1.5rem;
    }

    .lordit-page-board .lordit-board-tabs.board-page-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
        gap: 0.5rem;
    }

    .lordit-page-board .lordit-board-tab {
        text-align: center;
        padding: 0.5rem 0.625rem;
    }

    .board-search-card {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }

    .board-search-form {
        flex-direction: column;
    }

    .board-search-actions {
        width: 100%;
    }

    .board-search-actions .board-search-btn {
        flex: 1;
    }

    .board-list-link {
        padding: 1.125rem 1.125rem 1rem;
    }

    .board-list-footer {
        padding: 0.5rem 1.125rem 0.875rem;
    }

    .board-list-title {
        font-size: 0.9375rem;
    }

    .board-list-summary {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .post-detail .lordit-card-body-padded {
        padding: 1.25rem 1.125rem;
    }
}

/* ============================================================
   통합 검색 페이지
   ============================================================ */
.lordit-page-search {
    min-height: calc(100vh - 10rem);
    padding-bottom: 4.5rem;
}

.lordit-container-search {
    width: min(100% - 2rem, var(--container-search));
    margin-inline: auto;
}

.search-page-header {
    margin-bottom: 1.75rem;
}

.search-form-card {
    margin-bottom: 1.5rem;
}

.search-page-form {
    flex-wrap: nowrap;
}

.search-page-form .board-search-input {
    flex: 1 1 auto;
}

.search-submit-btn {
    flex-shrink: 0;
    min-width: 5.5rem;
}

.search-list-toolbar {
    margin-bottom: 1.125rem;
}

.lordit-page-search .lordit-pagination {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
}

.search-guide-card {
    padding: 1.125rem 1.25rem;
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-guide-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.search-guide-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    line-height: 1;
}

.search-guide-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.search-guide-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.search-empty-card-compact {
    padding: 1.25rem 1.375rem;
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-empty-inner {
    text-align: center;
    padding: 0.5rem 0;
}

.search-empty-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.search-empty-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.search-empty-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .lordit-page-search {
        min-height: calc(100vh - 8rem);
        padding-bottom: 3.5rem;
    }

    .lordit-container-search {
        width: min(100% - 2rem, var(--container-search));
    }

    .search-page-form {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .search-submit-btn {
        width: 100%;
        min-width: 0;
    }

    .search-guide-card {
        padding: 1rem;
    }

    .search-guide-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) and (max-height: 700px) {
    .lordit-page-search {
        min-height: auto;
    }
}

/* 통합 검색 — legacy (하위 호환) */
.search-section {
    padding-top: 0;
}

.search-page-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-page-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-page-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 140, 255, 0.2);
}

.search-result-link {
    display: block;
    padding: 1.125rem 1.375rem;
    color: inherit;
}

.search-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.search-result-meta time {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.search-result-link h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    transition: color var(--transition);
}

.search-result-link:hover h2 {
    color: var(--accent);
}

.search-result-link p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.search-guide {
    margin-top: 1rem;
}

/* 최근 본 글 */
.recent-posts-section {
    margin-bottom: 2.5rem;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    border-bottom: 1px solid var(--border);
}

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

.recent-post-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: inherit;
    transition: background-color var(--transition);
}

.recent-post-link:hover {
    background: var(--bg-card-hover);
}

.recent-post-link:hover .recent-post-title {
    color: var(--accent);
}

.recent-post-title {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition);
}

.recent-post-time {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Toast 알림 */
.toast-message {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    z-index: 300;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #fff;
    background: rgba(30, 35, 50, 0.92);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.toast-message.toast-coupon-success {
    background: rgba(22, 32, 52, 0.94);
    border: 1px solid rgba(91, 141, 239, 0.45);
    box-shadow: var(--shadow-md), 0 0 24px rgba(91, 141, 239, 0.18);
}

.toast-message.toast-coupon-error {
    background: rgba(42, 28, 32, 0.94);
    border: 1px solid rgba(239, 91, 110, 0.4);
}

[data-theme="light"] .toast-message.toast-coupon-success {
    background: rgba(30, 38, 58, 0.94);
}

[data-theme="light"] .toast-message {
    background: rgba(40, 45, 60, 0.92);
}

/* 쿠폰 기간 표시 */
.coupon-period {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.coupon-period-remaining {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.8125rem;
}

.coupon-period-range {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.coupon-code-copyable {
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}

.coupon-code-copyable:hover,
.coupon-code-copyable:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* 404 오류 */
.error-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.error-state {
    max-width: 28rem;
    margin: 0 auto;
}

.error-code {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

/* 상세 페이지 */
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--badge-text);
    background: var(--badge-bg);
    border-radius: 999px;
}

.post-meta-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.post-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: var(--card-glow);
}

.post-lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.post-content {
    font-size: 1rem;
    line-height: 1.85;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.post-content p {
    margin-bottom: 1.125rem;
    color: var(--text-primary);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* 빈 상태 */
.empty-message,
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.empty-state {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.empty-state-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.empty-state-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.empty-message {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============================================================
   푸터
   ============================================================ */
.site-footer {
    margin-top: 4rem;
    padding: 3rem 0 1.75rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-inner {
    width: min(100% - 2rem, var(--container-width));
    max-width: 1200px;
    margin-inline: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.5fr 1fr 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
}

.footer-col {
    min-width: 0;
}

.footer-col-heading {
    margin-bottom: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.footer-brand-title {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand-ko {
    color: var(--accent, var(--text-primary));
}

.footer-brand-en {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.footer-text-list,
.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-text-list li {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.footer-link-list a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: color var(--transition);
}

.footer-link-list a:hover {
    color: var(--accent, var(--text-primary));
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-admin {
    margin: 0;
}

.footer-admin-link {
    font-size: 0.6875rem;
    color: var(--text-muted);
    opacity: 0.55;
    transition: opacity var(--transition), color var(--transition);
}

.footer-admin-link:hover {
    opacity: 1;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .site-footer {
        margin-top: 2.5rem;
        padding: 2rem 0 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.post-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

.calc-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
}

.calc-grid-compact .calc-card-compact {
    padding: 0.75rem;
}

.calc-grid-compact .calc-card-compact h3 {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

/* ============================================================
   반응형 — 태블릿 (2컬럼) — home-grid는 상단 @media에서 처리
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .calc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   반응형 — PC (3컬럼) — home-grid는 상단 @media에서 처리
   ============================================================ */

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-col-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .calc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .card-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-inner {
        padding: 3.5rem 0 3rem;
    }

    .hero-br {
        display: inline;
    }
}

/* ============================================================
   반응형 — 모바일
   ============================================================ */
@media (max-width: 900px) {
    .header-search {
        order: 4;
        flex: 1 1 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .header-search {
        order: 2;
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .header-actions {
        order: 3;
    }

    .logo {
        order: 1;
    }

    /* 기존 가로 스크롤 nav 규칙 제거 — 햄버거 메뉴 사용 */
    .main-nav {
        display: none;
    }

    .card-list {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 2.5rem 0;
    }

    .hero-inner {
        padding: 2.75rem 0 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-tabs {
        flex-direction: column;
    }

    .category-tab {
        flex: none;
        width: 100%;
    }

    .board-search {
        flex-direction: column;
    }

    .board-search-actions {
        width: 100%;
    }

    .board-search-actions .btn {
        flex: 1;
    }

    .post-actions {
        flex-direction: column-reverse;
    }

    .post-actions .btn {
        width: 100%;
    }

    .page-hero-detail {
        text-align: left;
    }

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

    .dashboard-col-right {
        grid-column: auto;
        display: flex;
        flex-direction: column;
    }

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

    .coupon-code-row {
        flex-wrap: wrap;
    }

    .coupon-copy-btn {
        min-height: 40px;
        padding: 0 14px;
        width: 100%;
    }

    .hero-slider-btn {
        width: 2.125rem;
        height: 2.125rem;
        font-size: 1.25rem;
    }

    .hero-slider-prev {
        left: 0.5rem;
    }

    .hero-slider-next {
        right: 0.5rem;
    }

    .hero-slide .hero-inner {
        padding: 2.25rem 0 2.75rem;
    }
}

/* ============================================================
   유틸리티 계산기 공통 (승급서 · 성물)
   ============================================================ */
.utility-page {
    padding: 0;
}

.utility-container {
    width: min(100% - 3rem, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    padding: 3rem 1.5rem 5rem;
}

.utility-header {
    margin-bottom: 2.25rem;
    padding-top: 0.5rem;
}

.utility-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.utility-breadcrumb-sep {
    opacity: 0.55;
}

.utility-title-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.utility-page-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.utility-help-btn {
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        color var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.utility-help-btn:hover,
.utility-help-btn:focus-visible {
    outline: none;
    color: var(--accent);
    border-color: rgba(91, 141, 239, 0.45);
    background: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.utility-page-desc {
    max-width: 44rem;
    font-size: 0.96875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.utility-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.utility-step,
.utility-card {
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-md);
}

.utility-step-primary {
    border-color: rgba(91, 141, 239, 0.22);
    box-shadow: 0 2px 18px rgba(91, 141, 239, 0.06);
}

.utility-step-advanced {
    background: var(--bg-card);
    opacity: 0.98;
}

.utility-step-head {
    margin-bottom: 1.25rem;
}

.utility-step-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.utility-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.utility-step-badge-sub {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.utility-step-optional {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.utility-step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.utility-step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.utility-step-desc-muted {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.utility-section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.utility-results-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.utility-result-card {
    padding: 1.375rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.utility-result-placeholder {
    text-align: center;
    padding: 2.75rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.utility-detail-collapse {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}

.utility-detail-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.utility-detail-toggle::-webkit-details-marker {
    display: none;
}

.utility-detail-toggle::after {
    content: "+";
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1;
}

.utility-detail-collapse[open] .utility-detail-toggle::after {
    content: "−";
}

.utility-detail-body {
    padding: 0 1.25rem 1.25rem;
}

@media (max-width: 640px) {
    .utility-container {
        width: min(100% - 2rem, 1200px);
        padding: 2rem 1rem 3.5rem;
    }

    .utility-header {
        margin-bottom: 1.75rem;
    }

    .utility-steps {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .utility-step,
    .utility-card {
        padding: 1.125rem 1rem;
    }

    .utility-step-head-top {
        flex-wrap: wrap;
    }

    .utility-result-card {
        padding: 1.125rem 1rem;
    }
}

/* ============================================================
   승급서 제작 계산기
   ============================================================ */
.lordit-page-promotion {
    padding-bottom: 0;
}

.promotion-container {
    width: min(100% - 3rem, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    padding: 3rem 1.5rem 5rem;
}

.promotion-page-header {
    margin-bottom: 2.25rem;
    padding-top: 0.5rem;
}

.promotion-title-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.promotion-page-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.promotion-help-btn {
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        color var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.promotion-help-btn:hover,
.promotion-help-btn:focus-visible {
    outline: none;
    color: var(--accent);
    border-color: rgba(91, 141, 239, 0.45);
    background: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.promotion-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.promotion-breadcrumb-sep {
    opacity: 0.55;
}

.promotion-page-desc {
    max-width: 44rem;
    font-size: 0.96875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.promotion-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.promotion-step {
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-md);
}

.promotion-step-primary {
    border-color: rgba(91, 141, 239, 0.22);
    box-shadow: 0 2px 18px rgba(91, 141, 239, 0.06);
}

.promotion-step-advanced {
    background: var(--bg-card);
    opacity: 0.98;
}

.promotion-step-head {
    margin-bottom: 1.25rem;
}

.promotion-step-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.promotion-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.promotion-step-badge-sub {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.promotion-step-optional {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.promotion-step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.promotion-step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.promotion-step-desc-muted {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.promotion-section-label {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.promotion-section-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.promotion-section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.promotion-summary-lead,
.promotion-detail-lead {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.promotion-input-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.promotion-field {
    display: block;
    min-width: 0;
}

.promotion-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.promotion-field-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.promotion-field-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.promotion-field-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.promotion-field-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.promotion-field-unit {
    flex-shrink: 0;
    font-size: 0.9375rem;
}

.promotion-gold-option {
    margin-top: 0;
}

.promotion-gold-hint {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.promotion-gold-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
}

.promotion-gold-toggle input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.promotion-gold-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.promotion-gold-panel {
    margin-top: 1.125rem;
    padding: 1.25rem 1.375rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.promotion-gold-panel[hidden] {
    display: none;
}

.promotion-gold-panel-lead {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.promotion-gold-panel-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.promotion-field-wide {
    margin-bottom: 1rem;
}

.promotion-loot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.promotion-loot-group {
    margin: 0;
    padding: 1rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    min-width: 0;
}

.promotion-loot-legend {
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0 0.25rem;
    margin-bottom: 0.75rem;
}

.promotion-loot-group .promotion-field + .promotion-field {
    margin-top: 0.75rem;
}

.promotion-total-diamond {
    font-weight: 700;
}

.promotion-results-empty {
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-align: center;
    padding: 2.75rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.promotion-results-empty-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.promotion-results-empty-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.promotion-results-empty[hidden],
.promotion-results-wrap[hidden] {
    display: none;
}

.promotion-results-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.promotion-summary-section {
    min-width: 0;
}

.promotion-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.125rem;
}

.promotion-result-card {
    padding: 1.375rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.promotion-result-card.is-empty {
    opacity: 0.72;
}

.promotion-result-target {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.promotion-result-empty {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.promotion-result-hero {
    padding: 0.875rem 1rem;
    background: var(--accent-soft);
    border: 1px solid rgba(91, 141, 239, 0.18);
    border-radius: var(--radius-sm);
}

.promotion-result-hero-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.375rem;
    letter-spacing: 0.02em;
}

.promotion-result-hero-text {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
}

.promotion-result-stats {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.promotion-result-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.promotion-result-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.promotion-result-stat-value {
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: right;
}

.promotion-result-stat-total {
    margin-top: 0.25rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--border);
}

.promotion-result-stat-total .promotion-result-stat-label,
.promotion-result-stat-total .promotion-result-stat-value {
    font-size: 0.875rem;
}

.promotion-result-note {
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.promotion-detail-collapse {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}

.promotion-detail-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color var(--transition);
}

.promotion-detail-toggle::-webkit-details-marker {
    display: none;
}

.promotion-detail-toggle::after {
    content: "▾";
    font-size: 0.75rem;
    transition: transform var(--transition);
}

.promotion-detail-collapse[open] .promotion-detail-toggle::after {
    transform: rotate(180deg);
}

.promotion-detail-toggle:hover {
    background: var(--bg-secondary);
}

.promotion-detail-collapse-body {
    padding: 0 1.25rem 1.375rem;
    border-top: 1px solid var(--border);
}

.promotion-detail-collapse-body .promotion-detail-lead {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.promotion-target-details {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    overflow: hidden;
}

.promotion-target-details + .promotion-target-details {
    margin-top: 0.75rem;
}

.promotion-target-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.promotion-target-summary::-webkit-details-marker {
    display: none;
}

.promotion-target-summary-meta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: right;
}

.promotion-target-details-body {
    padding: 0 0.75rem 0.875rem;
}

.promotion-summary-section,
.promotion-detail-section {
    min-width: 0;
}

.promotion-summary-card {
    padding: 1.25rem 1.375rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.promotion-summary-card.is-empty {
    opacity: 0.72;
}

.promotion-summary-target {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border);
}

.promotion-summary-empty {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.promotion-summary-stats {
    display: grid;
    gap: 0.625rem;
    margin: 0;
}

.promotion-summary-stats > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.promotion-summary-stats dt {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.promotion-summary-stats dd {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0;
    text-align: right;
}

.promotion-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.promotion-detail-card {
    padding: 1.375rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.promotion-detail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.promotion-detail-head h3 {
    font-size: 0.9375rem;
    font-weight: 700;
}

.promotion-detail-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.promotion-detail-empty {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.promotion-route-table {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.promotion-route-block {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    overflow: hidden;
}

.promotion-route-block.is-recommended {
    border-color: rgba(91, 141, 239, 0.38);
    box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.1);
}

.promotion-route-row {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1.6fr) 6.5rem minmax(5.5rem, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 0.8125rem;
}

.promotion-route-block.is-recommended .promotion-route-row {
    background: var(--accent-soft);
}

.promotion-route-gold-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    margin: 0;
    padding: 0.625rem 0.875rem 0.75rem;
    border-top: 1px dashed var(--border);
    background: var(--bg-card);
}

.promotion-route-gold-stats > div {
    min-width: 0;
}

.promotion-route-gold-stats dt {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.promotion-route-gold-stats dd {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.promotion-route-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.promotion-route-chip-best {
    padding: 0.1875rem 0.4375rem;
    border-radius: 999px;
    background: rgba(91, 141, 239, 0.18);
    color: var(--accent);
}

.promotion-route-label {
    font-weight: 600;
    min-width: 0;
}

.promotion-route-count,
.promotion-route-diamond,
.promotion-route-gold {
    font-weight: 600;
    white-space: nowrap;
}

.promotion-diamond {
    color: var(--accent);
}

.promotion-gold {
    color: #d4a853;
}

[data-theme="light"] .promotion-gold {
    color: #9a7224;
}

@media (max-width: 992px) {
    .promotion-input-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promotion-loot-grid {
        grid-template-columns: 1fr;
    }

    .promotion-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promotion-route-gold-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promotion-route-row {
        grid-template-columns: 3rem 1fr;
        grid-template-areas:
            "chip label"
            "chip diamond"
            "chip gold";
    }

    .promotion-route-chip {
        grid-area: chip;
        align-self: start;
    }

    .promotion-route-label {
        grid-area: label;
    }

    .promotion-route-diamond {
        grid-area: diamond;
        text-align: left;
    }

    .promotion-route-gold {
        grid-area: gold;
    }
}

@media (max-width: 640px) {
    .promotion-container,
    .relic-container,
    .utility-container {
        width: min(100% - 2rem, 1200px);
        padding: 2rem 1rem 3.5rem;
    }

    .promotion-page-header,
    .relic-page-header,
    .utility-header {
        margin-bottom: 1.75rem;
    }

    .promotion-steps,
    .relic-steps,
    .utility-steps {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .promotion-step,
    .relic-step,
    .utility-step,
    .utility-card {
        padding: 1.125rem 1rem;
    }

    .promotion-step-head-top {
        flex-wrap: wrap;
    }

    .promotion-input-row {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .promotion-summary-grid {
        grid-template-columns: 1fr;
    }

    .promotion-result-card {
        padding: 1.125rem 1rem;
    }

    .promotion-target-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .promotion-target-summary-meta {
        text-align: left;
    }

    .promotion-route-gold-stats {
        grid-template-columns: 1fr;
    }

    .promotion-route-row {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        gap: 0.375rem;
    }

    .promotion-route-chip,
    .promotion-route-label,
    .promotion-route-diamond,
    .promotion-route-gold {
        grid-area: auto;
    }
}

/* ============================================================
   성물 강화 계산기
   ============================================================ */
.lordit-page-relic {
    padding-bottom: 0;
}

.relic-container {
    width: min(100% - 3rem, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    padding: 3rem 1.5rem 5rem;
}

.relic-page-header {
    margin-bottom: 2.25rem;
    padding-top: 0.5rem;
}

.relic-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.relic-breadcrumb-sep {
    opacity: 0.55;
}

.relic-page-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.relic-title-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.relic-help-btn {
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        color var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.relic-help-btn:hover,
.relic-help-btn:focus-visible {
    outline: none;
    color: var(--accent);
    border-color: rgba(91, 141, 239, 0.45);
    background: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.relic-pill-icon {
    margin-right: 0.25rem;
}

.relic-selected-icon {
    margin-right: 0.25rem;
}

.relic-section-label {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.relic-picker-section {
    margin-bottom: 1.5rem;
}

.relic-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.relic-pill {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        color var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.relic-pill:hover {
    border-color: rgba(120, 200, 180, 0.45);
    color: var(--text-primary);
}

.relic-pill.is-active {
    border-color: rgba(120, 200, 180, 0.55);
    background: rgba(120, 200, 180, 0.12);
    color: #8fdcc8;
    box-shadow: 0 0 0 1px rgba(120, 200, 180, 0.15);
}

[data-theme="light"] .relic-pill.is-active {
    color: #2a8f78;
    background: rgba(42, 143, 120, 0.1);
}

.relic-input-card {
    padding: 1.375rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
}

.relic-input-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.relic-input-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.relic-page-desc {
    max-width: 44rem;
    font-size: 0.96875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.relic-step {
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-md);
}

.relic-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.relic-step-primary {
    border-color: rgba(91, 141, 239, 0.22);
    box-shadow: 0 2px 18px rgba(91, 141, 239, 0.06);
}

.relic-step-advanced {
    background: var(--bg-card);
    opacity: 0.98;
}

.relic-step-head {
    margin-bottom: 1.25rem;
}

.relic-step-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.relic-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.relic-step-badge-sub {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.relic-step-optional {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.relic-step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.relic-step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.relic-step-desc-muted {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.relic-step-footnote,
.relic-result-footnote {
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.relic-step-footnote {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
}

.relic-result-footnote {
    margin-top: 1.125rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
}

.relic-picker-inline {
    margin-bottom: 1.25rem;
}

.relic-input-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.relic-field-wide {
    grid-column: auto;
}

@media (max-width: 900px) {
    .relic-input-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .relic-field-wide {
        grid-column: 1 / -1;
    }
}

.relic-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.relic-field-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.relic-field-input-wrap:focus-within {
    border-color: rgba(120, 200, 180, 0.55);
    box-shadow: 0 0 0 3px rgba(120, 200, 180, 0.12);
}

.relic-field-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.relic-field-unit {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.relic-result-placeholder {
    text-align: center;
    padding: 2.75rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.relic-result-placeholder[hidden],
.relic-result-wrap[hidden] {
    display: none;
}

.relic-result-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.relic-result-card {
    padding: 1.375rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.relic-result-head {
    margin-bottom: 1.25rem;
}

.relic-result-context {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.relic-result-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

.relic-result-hero-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.125rem;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    min-height: 5.5rem;
}

.relic-result-hero-card-accent {
    background: rgba(120, 200, 180, 0.08);
    border-color: rgba(120, 200, 180, 0.22);
}

.relic-result-hero-card-primary {
    background: linear-gradient(
        165deg,
        rgba(120, 200, 180, 0.12) 0%,
        var(--bg-secondary) 72%
    );
    border-color: rgba(120, 200, 180, 0.32);
}

.relic-result-hero-card-wide {
    grid-column: 1 / -1;
}

.relic-result-hero-card-muted {
    opacity: 0.92;
}

.relic-result-hero-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.4;
}

.relic-result-hero-value {
    font-size: clamp(1rem, 2.5vw, 1.1875rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.relic-result-hero-value-main {
    display: block;
    font-size: clamp(1.375rem, 3.5vw, 1.875rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.relic-result-hero-value strong,
.relic-result-hero-value-main strong {
    font-weight: 800;
    color: rgba(120, 200, 180, 0.98);
}

.relic-result-hero-subnote {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 0.125rem;
}

.relic-result-muted {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.45;
}

.relic-result-success {
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgba(120, 200, 180, 0.95);
}

.relic-result-hero {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.relic-result-stats {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.relic-result-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.relic-result-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.relic-result-stat-value {
    font-size: 0.9375rem;
    font-weight: 700;
}

.relic-result-stat-total {
    margin-top: 0.375rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.relic-fragment {
    color: #8fdcc8;
}

.relic-fragment-need {
    color: #f0b86c;
}

[data-theme="light"] .relic-fragment {
    color: #2a8f78;
}

[data-theme="light"] .relic-fragment-need {
    color: #b8741a;
}

.relic-result-empty {
    padding: 0.5rem 0;
}

.relic-result-empty-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.relic-result-empty-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.relic-detail-collapse {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}

.relic-detail-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(120, 200, 180, 0.95);
    cursor: pointer;
    list-style: none;
}

.relic-detail-toggle::-webkit-details-marker {
    display: none;
}

.relic-detail-toggle::after {
    content: "▾";
    font-size: 0.75rem;
}

.relic-detail-collapse[open] .relic-detail-toggle::after {
    transform: rotate(180deg);
}

.relic-detail-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--border);
}

.relic-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    margin-top: 0.75rem;
}

.relic-breakdown-table th,
.relic-breakdown-table td {
    padding: 0.5rem 0.625rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.relic-breakdown-table th {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
}

.relic-breakdown-table td:last-child {
    text-align: right;
    font-weight: 700;
}

@media (max-width: 640px) {
    .relic-container {
        width: min(100% - 2rem, 1200px);
        padding: 2rem 1rem 3.5rem;
    }

    .relic-step-head-top {
        flex-wrap: wrap;
    }

    .relic-input-grid {
        grid-template-columns: 1fr;
    }

    .relic-field-wide {
        grid-column: auto;
    }

    .relic-pill {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
    }

    .relic-result-hero-grid {
        grid-template-columns: 1fr;
    }

    .relic-result-card {
        padding: 1.125rem 1rem;
    }
}

/* ============================================================
   시간의 조각 계산기
   ============================================================ */
.lordit-page-time-piece {
    padding-bottom: 0;
}

.time-piece-container {
    width: min(100% - 3rem, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    padding: 3rem 1.5rem 5rem;
}

.time-piece-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.time-piece-field-wide {
    grid-column: 1 / -1;
}

.time-piece-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.time-piece-field-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-piece-field-input {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.time-piece-field-input:focus {
    outline: none;
    border-color: rgba(91, 141, 239, 0.45);
    box-shadow: var(--focus-ring);
}

.time-piece-field-unit {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.time-piece-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem 1rem;
}

.time-piece-equipment-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.time-piece-equipment-name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.time-piece-equipment-range {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.time-piece-equipment-price-field {
    margin-top: 0.125rem;
}

@media (min-width: 1024px) {
    .time-piece-price-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.time-piece-summary-grid {
    margin-bottom: 1.5rem;
}

.time-piece-summary-equipment {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.time-piece-summary-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.time-piece-summary-value strong {
    color: var(--accent);
    font-size: 1.0625rem;
}

.time-piece-summary-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.time-piece-summary-empty {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.time-piece-table-card {
    padding: 1.375rem 1.5rem;
}

.time-piece-table-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.875rem;
}

.time-piece-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.time-piece-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.time-piece-table th,
.time-piece-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.time-piece-table th:first-child,
.time-piece-table td:first-child,
.time-piece-table th[scope="row"] {
    text-align: left;
}

.time-piece-table thead th {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.time-piece-table-row-muted {
    opacity: 0.72;
}

.time-piece-muted {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.time-piece-disclaimer-list {
    margin-top: 0.875rem;
    padding-left: 1.125rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.time-piece-disclaimer-list li + li {
    margin-top: 0.25rem;
}

.relic-time-piece-link-wrap {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .time-piece-container {
        width: min(100% - 2rem, 1200px);
        padding: 2rem 1rem 3.5rem;
    }

    .time-piece-price-grid {
        grid-template-columns: 1fr;
    }

    .time-piece-table-card {
        padding: 1.125rem 1rem;
    }
}

/* ============================================================
   사냥 효율 계산기
   ============================================================ */
.lordit-page-hunt-efficiency {
    padding-bottom: 0;
}

.hunt-efficiency-container {
    width: min(100% - 3rem, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    padding: 3rem 1.5rem 5rem;
}

.hunt-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.hunt-tab-list-2 .hunt-tab-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
}

.hunt-tab-btn {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition:
        color var(--lordit-motion-fast),
        border-color var(--lordit-motion-fast),
        background var(--lordit-motion-fast),
        box-shadow var(--lordit-motion-fast);
}

.hunt-tab-btn.is-active {
    color: var(--text-primary);
    border-color: rgba(91, 141, 239, 0.45);
    background: rgba(91, 141, 239, 0.1);
    box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.12);
}

.hunt-tab-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.hunt-beta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(91, 141, 239, 0.14);
    border-radius: 999px;
}

.hunt-tab-panel {
    margin-bottom: 1.5rem;
}

.hunt-exp-hint {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.hunt-spots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hunt-spot-card {
    padding: 1.125rem 1.25rem;
}

.hunt-spot-title {
    margin: 0;
    font-size: 1rem;
}

.hunt-spot-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.875rem;
}

.hunt-field {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
}

.hunt-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hunt-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0.625rem;
}

.hunt-field-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hunt-field-input,
.hunt-field-select {
    width: 100%;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.hunt-field-input:focus,
.hunt-field-select:focus {
    outline: none;
    border-color: rgba(91, 141, 239, 0.45);
    box-shadow: var(--focus-ring);
}

.hunt-field-unit {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.hunt-beta-notice {
    margin-bottom: 1rem;
    padding: 1rem 1.125rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
    border: 1px dashed rgba(91, 141, 239, 0.35);
    background: rgba(91, 141, 239, 0.06);
}

.hunt-beta-notice-title {
    margin: 0 0 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hunt-ocr-notice {
    margin: 0.625rem 0 0;
    color: var(--text-muted);
}

.hunt-capture-guide-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.hunt-capture-guide-summary {
    margin: 0;
    flex: 1 1 12rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.hunt-capture-guide-open-btn {
    flex-shrink: 0;
}

.hunt-capture-guide-modal-panel {
    width: min(92vw, 560px);
    max-height: min(88vh, 820px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hunt-capture-guide-modal-body .help-modal-list {
    margin-bottom: 0.75rem;
}

.capture-guide-lead {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.capture-guide-example {
    margin-bottom: 1rem;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.08));
}

.capture-guide-image-wrap {
    position: relative;
    margin: 0.5rem 0 0.75rem;
}

.capture-guide-image-wrap .capture-guide-image {
    margin: 0;
}

.capture-guide-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(91, 141, 239, 0.28);
    border-radius: var(--radius-sm);
    background: #0a0c12;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .capture-guide-image {
    background: #1a1d24;
}

.capture-guide-badges {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.capture-guide-badge {
    position: absolute;
    left: 1.5%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: rgba(91, 141, 239, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.capture-guide-badges li:nth-child(1) {
    top: 8%;
}

.capture-guide-badges li:nth-child(2) {
    top: 30%;
}

.capture-guide-badges li:nth-child(3) {
    top: 52%;
}

.capture-guide-badges li:nth-child(4) {
    top: 74%;
}

.capture-guide-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.capture-guide-label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.capture-guide-label-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(91, 141, 239, 0.15);
    border-radius: 999px;
}

.capture-guide-label-body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.capture-guide-label-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.capture-guide-label-ex {
    font-size: 0.6875rem;
    line-height: 1.4;
    color: var(--text-muted);
    word-break: break-word;
}

.capture-guide-extra-notes {
    margin-top: 0.25rem;
}

.capture-guide-tips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.capture-guide-good,
.capture-guide-bad {
    padding: 0.75rem 0.875rem;
    border-radius: var(--radius-md);
}

.capture-guide-good {
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.06);
}

.capture-guide-bad {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.capture-guide-tip-title {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.capture-guide-good .capture-guide-list,
.capture-guide-bad .capture-guide-list {
    margin-bottom: 0;
}

.capture-guide-list {
    margin: 0 0 0.75rem;
    padding-left: 1.125rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.capture-guide-note {
    margin: 0 0 0.625rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.capture-guide-note:last-child {
    margin-bottom: 0;
}

.capture-guide-warning {
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.08);
    color: var(--text-secondary);
}

.hunt-capture-modal-steps {
    margin: 0 0 0.875rem;
    padding-left: 1.125rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.hunt-capture-modal-steps kbd {
    display: inline-block;
    padding: 0.0625rem 0.3125rem;
    font-size: 0.6875rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.hunt-paste-subhint {
    margin: 0.375rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.hunt-field-time-error,
.duration-error {
    margin: 0.375rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #f87171;
}

.duration-input-group {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

.duration-input-group .hunt-field-label {
    margin-bottom: 0.375rem;
}

.duration-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
}

.duration-unit {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    flex: 1 1 0;
    min-width: 4.25rem;
    max-width: 6.5rem;
    margin: 0;
}

.duration-unit .duration-input {
    width: 100%;
    min-width: 0;
    text-align: center;
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}

.duration-unit-label {
    font-size: 0.6875rem;
    line-height: 1.35;
    color: var(--text-muted);
    text-align: center;
}

.hunt-field-time-hint {
    margin: 0.375rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.hunt-paste-message.hunt-paste-message-warning {
    color: #fbbf24;
}

.hunt-paste-notice {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.hunt-paste-zone {
    margin-bottom: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px dashed rgba(91, 141, 239, 0.38);
    border-radius: var(--radius-md);
    background: rgba(91, 141, 239, 0.04);
    cursor: pointer;
    transition:
        border-color var(--lordit-motion-fast),
        background var(--lordit-motion-fast);
}

.hunt-paste-zone:focus {
    outline: none;
    border-color: rgba(91, 141, 239, 0.55);
    box-shadow: var(--focus-ring);
}

.hunt-paste-zone:focus-visible {
    outline: none;
    border-color: rgba(91, 141, 239, 0.55);
    box-shadow: var(--focus-ring);
}

.hunt-paste-zone-title {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hunt-paste-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.hunt-paste-message {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #fbbf24;
}

.hunt-paste-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.hunt-paste-preview {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
}

.hunt-ocr-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.hunt-ocr-status {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hunt-ocr-raw-details {
    margin-bottom: 0.875rem;
}

.hunt-ocr-raw-toggle {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.hunt-ocr-raw-text {
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    max-height: 160px;
    overflow: auto;
    font-size: 0.75rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.hunt-ocr-review-note {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    color: #fbbf24;
    line-height: 1.45;
}

.hunt-field-needs-review {
    border-color: rgba(251, 191, 36, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12);
}

.hunt-summary-grid {
    margin-bottom: 0.75rem;
}

.hunt-summary-winner {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.hunt-summary-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.hunt-overall-note {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hunt-time-warning {
    margin: 0 0 1rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: var(--radius-sm);
}

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

.hunt-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.hunt-table th,
.hunt-table td {
    padding: 0.625rem 0.5rem;
    text-align: right;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.hunt-table th:first-child,
.hunt-table td:first-child,
.hunt-table th[scope="row"] {
    text-align: left;
}

.hunt-table thead th {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

@media (max-width: 900px) {
    .hunt-spots-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hunt-efficiency-container {
        width: min(100% - 2rem, 1200px);
        padding: 2rem 1rem 3.5rem;
    }

    .hunt-tab-btn {
        flex: 1 1 calc(50% - 0.25rem);
        font-size: 0.8125rem;
        padding: 0.5625rem 0.625rem;
    }

    .hunt-tab-list-2 .hunt-tab-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }

    .hunt-field-row {
        grid-template-columns: 1fr;
    }

    .hunt-table-card {
        padding: 1.125rem 1rem;
    }

    .hunt-capture-guide-compact {
        flex-direction: column;
        align-items: stretch;
    }

    .hunt-capture-guide-open-btn {
        width: 100%;
    }

    .capture-guide-labels,
    .capture-guide-tips {
        grid-template-columns: 1fr;
    }

    .capture-guide-badge {
        min-width: 1.25rem;
        height: 1.25rem;
        font-size: 0.625rem;
    }

    .duration-inputs {
        gap: 0.375rem;
    }

    .duration-unit {
        min-width: 0;
        max-width: none;
        flex: 1 1 calc(33.333% - 0.375rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hunt-tab-btn {
        transition: none;
    }

    .main-layer-popup {
        transition: none;
    }
}

/* ============================================================
   Main layer popup (home only)
   ============================================================ */

.main-layer-popup {
    position: fixed;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 24px));
    max-height: min(560px, calc(100vh - 120px));
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--lordit-line);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 0.24s ease,
        transform 0.24s ease;
    pointer-events: auto;
}

.main-layer-popup--top-left {
    top: 96px;
    left: 32px;
    right: auto;
    bottom: auto;
}

.main-layer-popup--top-right {
    top: 96px;
    right: 32px;
    left: auto;
    bottom: auto;
}

.main-layer-popup--center {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%) translateY(-8px);
}

.main-layer-popup--center.is-visible {
    transform: translate(-50%, -50%);
}

.main-layer-popup--bottom-left {
    bottom: 32px;
    left: 32px;
    top: auto;
    right: auto;
}

.main-layer-popup--bottom-right {
    bottom: 32px;
    right: 32px;
    top: auto;
    left: auto;
}

.main-layer-popup[hidden] {
    display: none !important;
}

.main-layer-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.main-layer-popup--center.is-visible {
    transform: translate(-50%, -50%);
}

.main-layer-popup__titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    padding: 6px 10px;
    min-height: 34px;
    border-bottom: 1px solid var(--lordit-line);
    background: linear-gradient(90deg, var(--lordit-deep), var(--lordit-blue));
}

.main-layer-popup__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.92);
}

.main-layer-popup__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    font-size: 1.0625rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    cursor: pointer;
}

.main-layer-popup__x:hover,
.main-layer-popup__x:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    outline: none;
    box-shadow: var(--focus-ring);
}

.main-layer-popup__image-link {
    display: block;
    line-height: 0;
}

.main-layer-popup__image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.main-layer-popup__content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 14px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.main-layer-popup__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.main-layer-popup__body {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.main-layer-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--lordit-blue);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.main-layer-popup__cta:hover,
.main-layer-popup__cta:focus-visible {
    filter: brightness(1.08);
    outline: none;
    box-shadow: var(--focus-ring);
}

.main-layer-popup__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-top: 1px solid var(--lordit-line);
    background: var(--bg-secondary);
}

.main-layer-popup__bottom button {
    padding: 5px 8px;
    min-height: 28px;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
}

.main-layer-popup__bottom button:hover,
.main-layer-popup__bottom button:focus-visible {
    color: var(--text-secondary);
    background: rgba(91, 141, 239, 0.08);
    outline: none;
    box-shadow: var(--focus-ring);
}

.main-layer-popup__close {
    font-weight: 600;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .main-layer-popup,
    .main-layer-popup--top-left,
    .main-layer-popup--top-right,
    .main-layer-popup--center,
    .main-layer-popup--bottom-left,
    .main-layer-popup--bottom-right {
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 16px;
        width: auto;
        max-height: calc(100vh - 32px);
        transform: translateY(12px);
    }

    .main-layer-popup.is-visible,
    .main-layer-popup--center.is-visible {
        transform: translateY(0);
    }

    .main-layer-popup__image {
        max-height: 180px;
    }

    .main-layer-popup__bottom {
        justify-content: center;
        gap: 6px;
    }

    .main-layer-popup__x {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .main-layer-popup__bottom button {
        min-height: 32px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   LORDIT UI Identity — HUD / Rune / Micro-interactions
   ============================================================ */

/* HUD 카드 — 상단 라인 + 코너 액센트 */
.lordit-card,
.home-bento-card,
.board-list-card,
.home-calc-card,
.coupon-panel.lordit-card,
.calc-card,
.utility-result-card,
.relic-result-card,
.promo-slot-card,
.contact-channel-card,
.contact-spec-card {
    position: relative;
    transition:
        transform var(--lordit-motion-fast),
        box-shadow var(--lordit-motion-fast),
        border-color var(--lordit-motion-fast);
}

.lordit-card::before,
.home-bento-card::before,
.board-list-card::before,
.home-calc-card::before,
.coupon-panel.lordit-card::before,
.calc-card::before,
.utility-result-card::before,
.relic-result-card::before,
.promo-slot-card::before,
.contact-channel-card::before,
.contact-spec-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--lordit-line) 18%,
        var(--lordit-rune) 50%,
        var(--lordit-line) 82%,
        transparent 100%
    );
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
}

.lordit-card::after,
.home-bento-card::after,
.board-list-card::after,
.home-calc-card::after,
.coupon-panel.lordit-card::after,
.calc-card::after,
.utility-result-card::after,
.relic-result-card::after,
.contact-channel-card::after,
.contact-spec-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--lordit-line);
    border-right: 1px solid var(--lordit-line);
    border-top-right-radius: var(--radius-md);
    opacity: 0.45;
    pointer-events: none;
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
    .lordit-card:hover,
    .home-bento-card:hover,
    .board-list-card:hover,
    .home-calc-card:hover,
    .coupon-panel.lordit-card:hover,
    .calc-card-clickable:hover,
    .utility-result-card:hover,
    .relic-result-card:hover,
    .promo-slot-card:hover,
    .contact-channel-card:hover,
    .contact-spec-card:hover {
        transform: translateY(-2px);
        border-color: rgba(143, 179, 255, 0.28);
        box-shadow: var(--card-glow), 0 8px 28px var(--lordit-glow);
    }

    .lordit-card:hover::before,
    .home-bento-card:hover::before,
    .board-list-card:hover::before,
    .home-calc-card:hover::before,
    .coupon-panel.lordit-card:hover::before,
    .calc-card-clickable:hover::before,
    .utility-result-card:hover::before,
    .relic-result-card:hover::before,
    .promo-slot-card:hover::before,
    .contact-channel-card:hover::before,
    .contact-spec-card:hover::before {
        opacity: 0.85;
    }
}

/* 메인 배너 — 룬 스캔라인 */
.home-wide-banner .hero-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 3px,
        rgba(143, 179, 255, 0.025) 3px,
        rgba(143, 179, 255, 0.025) 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.home-wide-banner .hero-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 22%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(143, 179, 255, 0.14),
        transparent
    );
    transform: translateX(0);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    animation: lordit-rune-scan 7s ease-in-out infinite;
}

@keyframes lordit-rune-scan {
    0%,
    100% {
        transform: translateX(0);
        opacity: 0;
    }

    12% {
        opacity: 0.35;
    }

    50% {
        transform: translateX(520%);
        opacity: 0.18;
    }

    88% {
        opacity: 0;
    }
}

/* 퀵 버튼 — 타일별 마이크로 인터랙션 */
.home-bento-tile-relic .quick-action-icon {
    transition: transform var(--lordit-motion-fast), opacity var(--lordit-motion-fast);
}

@media (hover: hover) and (pointer: fine) {
    .home-bento-tile-relic:hover .quick-action-icon,
    .home-bento-tile-relic:focus-visible .quick-action-icon {
        animation: lordit-icon-pulse 1.6s ease-in-out infinite;
    }
}

.home-bento-tile-promotion .quick-action-icon {
    transition: transform var(--lordit-motion-fast);
}

@media (hover: hover) and (pointer: fine) {
    .home-bento-tile-promotion:hover .quick-action-icon,
    .home-bento-tile-promotion:focus-visible .quick-action-icon {
        transform: translateY(-3px) scale(1.06);
    }
}

.home-bento-tile-all .quick-action-title::after {
    content: " →";
    opacity: 0;
    transition: opacity var(--lordit-motion-fast), transform var(--lordit-motion-fast);
    display: inline-block;
    transform: translateX(-4px);
}

@media (hover: hover) and (pointer: fine) {
    .home-bento-tile-all:hover .quick-action-title::after,
    .home-bento-tile-all:focus-visible .quick-action-title::after {
        opacity: 0.85;
        transform: translateX(0);
    }
}

.home-bento-tile-support .quick-action-icon {
    transition: box-shadow var(--lordit-motion-fast), transform var(--lordit-motion-fast);
}

@media (hover: hover) and (pointer: fine) {
    .home-bento-tile-support:hover .quick-action-icon,
    .home-bento-tile-support:focus-visible .quick-action-icon {
        box-shadow: 0 0 12px rgba(78, 205, 196, 0.35);
        transform: scale(1.05);
    }
}

.home-bento-tile-locked.is-disabled {
    opacity: 0.58;
    border-style: dashed;
    border-color: rgba(143, 179, 255, 0.18);
    cursor: not-allowed;
    filter: saturate(0.65);
}

.home-bento-tile-locked.is-disabled .quick-action-icon {
    opacity: 0.45;
    filter: grayscale(0.4);
}

.home-bento-tile:active:not(.is-disabled) {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.home-bento-tile:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* 계산기 결과 등장 */
.utility-results-wrap.is-result-enter {
    animation: lordit-result-enter 0.42s ease forwards;
}

.utility-results-wrap.is-result-enter .utility-result-card,
.utility-results-wrap.is-result-enter .relic-result-card,
.utility-results-wrap.is-result-enter .promotion-summary-section {
    animation: lordit-result-card-enter 0.42s ease forwards;
}

@keyframes lordit-result-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

@keyframes lordit-result-card-enter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

@keyframes lordit-icon-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.88;
    }
}

/* 빈 상태 — 브랜드 톤 */
.home-coupon-empty,
.featured-aside-empty,
.promo-slot-empty-text,
.utility-result-placeholder,
.promotion-results-empty-title {
    color: var(--text-secondary);
}

.home-coupon-empty,
.featured-aside-empty,
.promo-slot-empty-text {
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

/* 토ast — LORDIT 톤 */
.toast-message {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--lordit-line);
    backdrop-filter: blur(8px);
}

.toast-message.toast-coupon-success {
    background: linear-gradient(
        135deg,
        rgba(12, 24, 68, 0.94) 0%,
        rgba(22, 36, 72, 0.92) 100%
    );
    border-color: rgba(143, 179, 255, 0.4);
    box-shadow: var(--shadow-md), 0 0 20px var(--lordit-glow);
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: rgba(143, 179, 255, 0.2);
    color: var(--lordit-rune);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-text {
    line-height: 1.35;
}

[data-theme="light"] .toast-message.toast-coupon-success {
    background: linear-gradient(
        135deg,
        rgba(30, 44, 88, 0.94) 0%,
        rgba(36, 52, 96, 0.92) 100%
    );
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .home-wide-banner .hero-slide::after {
        animation: none !important;
        opacity: 0 !important;
    }

    .utility-results-wrap.is-result-enter,
    .utility-results-wrap.is-result-enter .utility-result-card,
    .utility-results-wrap.is-result-enter .relic-result-card,
    .utility-results-wrap.is-result-enter .promotion-summary-section {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    @media (hover: hover) and (pointer: fine) {
        .lordit-card:hover,
        .home-bento-card:hover,
        .board-list-card:hover,
        .home-calc-card:hover,
        .coupon-panel.lordit-card:hover,
        .calc-card-clickable:hover,
        .utility-result-card:hover,
        .relic-result-card:hover,
        .promo-slot-card:hover {
            transform: none;
        }
    }
}

/* ============================================================
   LORDIT Final Polish — 라이트 대비 · 빈 슬롯 · 모바일 상세
   ============================================================ */

/* 라이트모드 — HUD 카드 라인·border 소폭 강화 */
[data-theme="light"] .lordit-card::before,
[data-theme="light"] .home-bento-card::before,
[data-theme="light"] .board-list-card::before,
[data-theme="light"] .home-calc-card::before,
[data-theme="light"] .coupon-panel.lordit-card::before,
[data-theme="light"] .calc-card::before,
[data-theme="light"] .utility-result-card::before,
[data-theme="light"] .relic-result-card::before,
[data-theme="light"] .promo-slot-card::before {
    opacity: 0.78;
}

[data-theme="light"] .lordit-card::after,
[data-theme="light"] .home-bento-card::after,
[data-theme="light"] .board-list-card::after,
[data-theme="light"] .home-calc-card::after,
[data-theme="light"] .coupon-panel.lordit-card::after,
[data-theme="light"] .calc-card::after,
[data-theme="light"] .utility-result-card::after,
[data-theme="light"] .relic-result-card::after {
    opacity: 0.58;
}

@media (hover: hover) and (pointer: fine) {
    [data-theme="light"] .lordit-card:hover,
    [data-theme="light"] .home-bento-card:hover,
    [data-theme="light"] .board-list-card:hover,
    [data-theme="light"] .home-calc-card:hover,
    [data-theme="light"] .coupon-panel.lordit-card:hover,
    [data-theme="light"] .calc-card-clickable:hover,
    [data-theme="light"] .utility-result-card:hover,
    [data-theme="light"] .relic-result-card:hover,
    [data-theme="light"] .promo-slot-card:hover {
        box-shadow: var(--card-glow), 0 6px 22px rgba(61, 95, 217, 0.1);
    }
}

/* 라이트모드 — 섹션 label / eyebrow */
[data-theme="light"] .home-bento-label {
    color: #5c6578;
    opacity: 1;
}

[data-theme="light"] .lordit-page-eyebrow {
    color: #3454c4;
}

[data-theme="light"] .home-section-title {
    color: #1a2030;
}

/* 빈 광고 슬롯 */
.promo-slot-card-empty .promo-slot-placeholder {
    border-color: var(--lordit-line);
    background: linear-gradient(
        165deg,
        var(--bg-secondary) 0%,
        var(--bg-card) 100%
    );
}

.promo-slot-empty-desc {
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--text-muted);
    max-width: 14rem;
}

[data-theme="light"] .promo-slot-empty-desc {
    color: #5c667a;
}

/* 모바일 게시글 상세 제목 */
@media (max-width: 640px) {
    .lordit-page-detail .lordit-page-title.post-detail-title,
    .lordit-page-detail .post-detail-title {
        font-size: clamp(1.125rem, 4.2vw, 1.3125rem);
        line-height: 1.45;
        letter-spacing: -0.015em;
    }

    .lordit-page-detail .post-meta-date {
        font-size: 0.75rem;
    }
}

/* 보조 텍스트 — 라이트 날짜/설명 소폭 강화 */
[data-theme="light"] .post-meta-date,
[data-theme="light"] .lordit-page-desc,
[data-theme="light"] .lordit-page-meta,
[data-theme="light"] .board-list-summary,
[data-theme="light"] .post-lead,
[data-theme="light"] .post-excerpt {
    color: #4a5568;
}

[data-theme="light"] .news-tab-date {
    color: #3f4d62;
}

/* 어드민 보조 텍스트 — 다크모드 */
[data-theme="dark"] .admin-hint,
[data-theme="dark"] .admin-page-header p,
[data-theme="dark"] .admin-empty {
    color: #8b95a8;
}
