/* ═══════════════════════════════════════
   Kirkana Game Guide
   landing.css 와 동일한 디자인 토큰을 공유한다
   ═══════════════════════════════════════ */

:root {
    --gold: #c9a96e;
    --gold-light: #e8d5a8;
    --gold-dark: #8b6914;
    --parchment: #f5edd6;
    --ink: #1a1410;
    --ink-light: #2d2518;
    --ink-mid: #4a3f2f;
    --cream: #faf6eb;
    --rust: #8b3a2a;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--ink);
    color: var(--parchment);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ═══ TOP BAR ═══ */
.guide-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 2rem;
    background: rgba(13, 11, 8, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.guide-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-decoration: none;
}

.guide-topnav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.guide-topnav a {
    color: #a09880;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s;
}

.guide-topnav a:hover { color: var(--parchment); }
.guide-topnav a.active { color: var(--gold); }

.guide-cta-small {
    padding: 7px 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--ink) !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: all 0.25s;
}

.guide-cta-small:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 18px rgba(201, 169, 110, 0.3);
}

.guide-toc-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--gold);
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    cursor: pointer;
}

/* ═══ LAYOUT ═══ */
.guide-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1280px;
    margin: 0 auto;
    gap: 3rem;
    padding: 2rem;
}

/* ═══ TOC SIDEBAR ═══ */
.guide-toc {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 1rem;
}

.guide-toc::-webkit-scrollbar { width: 4px; }
.guide-toc::-webkit-scrollbar-track { background: transparent; }
.guide-toc::-webkit-scrollbar-thumb { background: rgba(201, 169, 110, 0.2); }

.toc-label {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.toc-group {
    margin-bottom: 1.5rem;
}

.toc-group-title {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.toc-group a {
    display: block;
    padding: 0.32rem 0 0.32rem 0.7rem;
    color: #8a8270;
    text-decoration: none;
    font-size: 0.86rem;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.toc-group a:hover {
    color: var(--parchment);
    border-left-color: rgba(201, 169, 110, 0.3);
}

.toc-group a.active {
    color: var(--gold);
    border-left-color: var(--gold);
}

/* ═══ MAIN CONTENT ═══ */
.guide-main {
    min-width: 0;
    padding-bottom: 4rem;
}

.guide-hero {
    padding: 3rem 0 4rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.12);
    margin-bottom: 3rem;
}

.guide-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.guide-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--parchment);
    letter-spacing: 0.03em;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.guide-subtitle {
    font-size: 1.05rem;
    color: #b0a888;
    max-width: 640px;
    line-height: 1.85;
}

/* ═══ SECTIONS ═══ */
.guide-section {
    margin-bottom: 4rem;
    padding-top: 1rem;
}

.guide-section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.18);
    scroll-margin-top: 80px;
}

.guide-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    margin: 2rem 0 0.9rem;
}

.guide-section p {
    color: #b8b09a;
    font-size: 0.98rem;
    line-height: 1.95;
    margin-bottom: 1.1rem;
}

.guide-section strong {
    color: var(--parchment);
    font-weight: 700;
}

.guide-section ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.guide-section ul li {
    color: #b8b09a;
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 0.6rem;
    position: relative;
}

.guide-section ul li::marker {
    color: var(--gold);
}

/* ═══ STAT TABLE ═══ */
.stat-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(201, 169, 110, 0.15);
}

.stat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.stat-table thead th {
    background: rgba(201, 169, 110, 0.08);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.9rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.stat-table tbody td {
    padding: 0.85rem 1.2rem;
    color: #b8b09a;
    border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}

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

.stat-table tbody td strong {
    color: var(--gold-light);
}

/* ═══ CTA SECTION ═══ */
.guide-cta-section {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 3rem;
    background:
            radial-gradient(ellipse at center, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.guide-cta-section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--parchment);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.guide-cta-section p {
    color: #a09880;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.guide-cta-button {
    display: inline-block;
    padding: 14px 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.12em;
    border: 1px solid var(--gold);
    transition: all 0.3s;
}

.guide-cta-button:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 30px rgba(201, 169, 110, 0.3);
    transform: translateY(-2px);
}

/* ═══ FOOTER ═══ */
.guide-footer {
    padding: 2rem;
    text-align: center;
    color: #5a5040;
    font-size: 0.82rem;
    border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.guide-footer a {
    color: #5a5040;
    text-decoration: underline;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 220px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .guide-topbar {
        padding: 0.7rem 1rem;
    }

    .guide-topnav {
        gap: 1rem;
    }

    .guide-topnav a:not(.guide-cta-small) {
        display: none;
    }

    .guide-toc-toggle {
        display: block;
    }

    .guide-layout {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0;
    }

    .guide-toc {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        max-height: 100vh;
        width: 280px;
        padding: 5rem 1.5rem 2rem;
        background: rgba(13, 11, 8, 0.98);
        backdrop-filter: blur(12px);
        border-right: 1px solid rgba(201, 169, 110, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 90;
    }

    .guide-toc.open {
        transform: translateX(0);
    }

    .guide-hero {
        padding: 2rem 0 2.5rem;
    }

    .guide-section {
        margin-bottom: 3rem;
    }

    .stat-table {
        font-size: 0.85rem;
    }

    .stat-table thead th,
    .stat-table tbody td {
        padding: 0.65rem 0.8rem;
    }
}