*{margin:0;padding:0;box-sizing:border-box}
html{font-size:16px}
body{background:#080808;color:#d8d0c0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;line-height:1.6;overflow-x:hidden}
a{color:#c8a060;text-decoration:none}
a:hover{text-decoration:underline}

#topnav{position:fixed;top:0;left:0;right:0;height:56px;background:#0a0a0a;border-bottom:1px solid #1a1a18;display:flex;align-items:center;padding:0 1.5rem;z-index:1000;gap:0.15rem}
.nav-brand{font-size:1.6rem;font-weight:900;color:#d08020;margin-right:2rem;letter-spacing:-1px;text-decoration:none;user-select:none;flex-shrink:0}
.nav-brand:hover{text-decoration:none}
.nav-tab{border-bottom:2px solid transparent;color:#706050;font-size:0.78rem;font-weight:500;padding:1rem 0.85rem;letter-spacing:1.5px;text-transform:uppercase;font-family:inherit;transition:color 0.2s,border-color 0.2s;height:56px;display:flex;align-items:center;white-space:nowrap;flex-shrink:0;text-decoration:none}
.nav-tab:hover{color:#b0a090;text-decoration:none}
.nav-tab.active{color:#d8d0c0;border-bottom-color:#d08020}
.nav-hamburger{display:none;background:none;border:none;color:#d8d0c0;font-size:1.4rem;cursor:pointer;padding:0.5rem;line-height:1;flex-shrink:0}
.nav-tabs-group{display:contents}
.nav-mobile-overlay{display:none}

main{margin-top:56px;min-height:calc(100vh - 56px)}

/* ===== COVER ===== */
.cover-container{position:relative;min-height:calc(100vh - 56px);display:flex;align-items:center;justify-content:center;overflow:hidden}
.cover-bg{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0}
.cover-bg svg{position:absolute;width:100%;height:100%;left:0;top:0}
.cover-overlay{position:relative;z-index:1;text-align:center;padding:2rem}
.cover-title{font-family:'Helvetica Neue',Arial,sans-serif;font-size:9rem;font-weight:900;line-height:1;letter-spacing:-5px;background:linear-gradient(180deg,#f0e8d8 0%,#d8c8a0 40%,#b8a070 75%,#907848 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:none;filter:drop-shadow(0 0 60px rgba(208,128,32,0.25))}
.cover-subtitle{font-family:'Helvetica Neue',Arial,sans-serif;font-size:1rem;font-weight:300;color:#a09080;letter-spacing:12px;text-transform:uppercase;margin-top:0.5rem}
.cover-tagline{font-family:Georgia,'Times New Roman',serif;font-size:1.15rem;font-style:italic;color:#c8a060;opacity:0.55;margin-top:2.5rem}
.cover-author{font-family:'Helvetica Neue',Arial,sans-serif;font-size:1.1rem;font-weight:400;color:#d8d0c0;letter-spacing:8px;text-transform:uppercase;margin-top:1rem;opacity:0.8}
.cover-start{display:inline-block;margin-top:3rem;background:#0a0a0a;border:1px solid #c8a060;color:#c8a060;font-family:Georgia,'Times New Roman',serif;font-size:0.85rem;letter-spacing:4px;text-transform:uppercase;padding:0.8rem 2.5rem;border-radius:0;cursor:pointer;transition:all 0.3s;text-decoration:none}
.cover-start:hover{background:#c8a060;color:#0a0a0a;text-decoration:none}
body.light .cover-start{background:#faf8f4;border-color:#a08040;color:#a08040}
body.light .cover-start:hover{background:#a08040;color:#ffffff}

/* ===== READER ===== */
.reader-layout{display:flex;height:calc(100vh - 56px);overflow:hidden}
#reader-sidebar{width:260px;min-width:260px;background:#0a0a08;border-right:1px solid #1a1a18;overflow-y:auto;flex-shrink:0;padding-bottom:52px;transition:width 0.25s ease,min-width 0.25s ease;overflow-x:hidden}
.sb-collapsed #reader-sidebar{width:48px;min-width:48px}
#reader-sidebar::-webkit-scrollbar{width:4px}
#reader-sidebar::-webkit-scrollbar-thumb{background:#2a2a28;border-radius:2px}
#reader-sidebar::-webkit-scrollbar-track{background:transparent}
.sb-collapsed #reader-sidebar::-webkit-scrollbar{width:0}
.sidebar-toggle{position:fixed;top:68px;left:260px;z-index:101;width:24px;height:24px;background:#0a0a08;border:1px solid #1a1a18;border-left:none;border-radius:0 5px 5px 0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#706050;font-size:0.6rem;transition:left 0.25s ease,color 0.2s,background 0.2s;padding:0}
.sidebar-toggle:hover{color:#d08020;background:#141412}
.sb-collapsed .sidebar-toggle{left:48px}
.sidebar-act-group{margin-bottom:0.15rem}
.sidebar-act-header{font-size:0.68rem;font-weight:700;color:#d08020;letter-spacing:2px;text-transform:uppercase;padding:0.85rem 1rem 0.35rem;opacity:0.8;cursor:pointer;display:flex;align-items:center;justify-content:space-between;user-select:none;transition:opacity 0.2s;white-space:nowrap}
.sidebar-act-header:hover{opacity:1}
.sidebar-act-chevron{font-size:0.5rem;opacity:0.5;transition:transform 0.2s}
.sidebar-act-group.collapsed .sidebar-act-chevron{transform:rotate(-90deg)}
.sidebar-ch-list{}
.sidebar-act-group.collapsed .sidebar-ch-list{display:none}
.sb-full,.sb-act-full{display:inline}
.sb-short,.sb-act-short{display:none}
.sb-collapsed .sb-full,.sb-collapsed .sb-act-full{display:none}
.sb-collapsed .sb-short,.sb-collapsed .sb-act-short{display:block}
.sb-collapsed .sidebar-act-header{justify-content:center;padding:0.6rem 0 0.2rem;letter-spacing:0}
.sb-collapsed .sidebar-act-chevron{display:none}
.sb-collapsed .sidebar-act-group.collapsed .sidebar-ch-list{display:block}
.sidebar-ch-btn{display:block;width:100%;text-align:left;background:none;border:none;border-left:3px solid transparent;color:#706050;font-size:0.8rem;padding:0.4rem 1rem;cursor:pointer;font-family:inherit;transition:all 0.15s;line-height:1.35;white-space:nowrap}
.sidebar-ch-btn:hover{color:#b0a090;background:#121210}
.sidebar-ch-btn.active{color:#d8d0c0;background:#141412;border-left-color:#d08020}
.sb-collapsed .sidebar-ch-btn{text-align:center;padding:0.3rem 0;border-left:2px solid transparent;font-size:0.72rem}
.sb-collapsed .sidebar-ch-btn.active{border-left-color:#d08020;background:#141412}
#reader-main{flex:1;min-width:0;padding:2.5rem 2.5rem calc(2.5rem + 52px);overflow-y:auto;background:#111110}
#reader-main::-webkit-scrollbar{width:6px}
#reader-main::-webkit-scrollbar-thumb{background:#2a2a28;border-radius:3px}
#reader-main::-webkit-scrollbar-track{background:transparent}
.reader-page{max-width:750px;margin:0 auto;background:#faf8f4;padding:3.5rem 4rem 3rem;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,0.12),0 8px 40px rgba(0,0,0,0.35);min-height:calc(100vh - 56px - 5rem);position:relative}
.reader-page::before{content:'';position:absolute;left:0;top:0;bottom:0;width:1px;background:linear-gradient(to bottom,transparent,rgba(0,0,0,0.04) 10%,rgba(0,0,0,0.06) 50%,rgba(0,0,0,0.04) 90%,transparent)}
.chapter-meta{margin:0 0 2rem;text-align:center;padding-bottom:1.5rem;border-bottom:1px solid #e5e0d8}
.chapter-meta-act{font-size:0.7rem;color:#b06818;letter-spacing:3px;text-transform:uppercase;margin-bottom:0.3rem}
.chapter-content{font-family:Georgia,'Times New Roman',serif;font-size:1.12rem;line-height:1.9;color:#3a3530}
.chapter-content h1{font-family:Georgia,'Times New Roman',serif;font-size:1.1rem;font-weight:400;color:#a09888;text-align:center;margin:0 0 0.8rem;letter-spacing:2px}
.chapter-content h2{font-family:Georgia,'Times New Roman',serif;font-size:1.65rem;font-weight:400;color:#b06818;text-align:center;margin:0 0 2.8rem;letter-spacing:1px;font-variant:small-caps;text-transform:capitalize}
.chapter-content h3{font-family:'Helvetica Neue',Arial,sans-serif;font-size:1rem;font-weight:600;color:#a08040;margin:2rem 0 1rem}
.chapter-content p{margin-bottom:0;text-indent:1.5em;text-align:justify}
.chapter-content p.has-dropcap,.chapter-content p.no-indent,.chapter-content hr+p{text-indent:0}
.chapter-content p.has-dropcap{overflow:hidden}
.chapter-content p.has-dropcap::first-letter{float:left;font-family:'Helvetica Neue',Arial,sans-serif;font-size:4.2rem;font-weight:800;line-height:0.78;padding:0.06em 0.1em 0 0;color:#b06818;margin-top:0.05em}
.chapter-content em{color:#4a4540}
.chapter-content strong{color:#2a2520;font-weight:600}
.chapter-content hr{border:none;height:1px;background:linear-gradient(to right,transparent,#d5c8a0,transparent);margin:2.5rem auto;max-width:100px}
.chapter-content blockquote{border-left:3px solid #c07018;margin:1.5rem 0;padding:0.5rem 1.5rem;color:#807060;font-style:italic}
.chapter-nav{margin:3rem 0 0;display:flex;justify-content:space-between;border-top:1px solid #e5e0d8;padding-top:1.5rem}
.chapter-nav-btn{background:none;border:1px solid #d5d0c8;color:#908878;padding:0.6rem 1.2rem;border-radius:4px;cursor:pointer;font-family:inherit;font-size:0.82rem;transition:all 0.2s}
.chapter-nav-btn:hover{color:#b06818;border-color:#b06818}
.chapter-nav-btn:disabled{opacity:0.3;cursor:default}
.chapter-nav-btn:disabled:hover{color:#908878;border-color:#d5d0c8}

/* ===== READER BAR (fixed bottom) ===== */
#reader-bar{position:fixed;bottom:0;left:260px;right:0;height:52px;background:#0e0e0c;border-top:1px solid #1a1a18;display:flex;align-items:center;padding:0 0.5rem;z-index:100;transition:left 0.25s ease}
.sb-collapsed #reader-bar{left:0}
.rbar-btn{background:none;border:none;color:#706050;font-size:1.1rem;cursor:pointer;padding:0.75rem 1rem;transition:color 0.2s;flex-shrink:0}
.rbar-btn:hover{color:#d08020}
.rbar-btn:disabled{opacity:0.25;cursor:default}
.rbar-btn:disabled:hover{color:#706050}
#rbar-title{flex:1;min-width:0;text-align:center;background:none;border:none;color:#a09080;font-size:0.78rem;font-family:inherit;cursor:pointer;letter-spacing:0.5px;padding:0.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color 0.2s}
#rbar-title:hover{color:#d08020}
.rbar-chev{font-size:0.5rem;margin-left:0.4rem;opacity:0.5;display:inline-block;vertical-align:middle}

/* ===== CHAPTER DRAWER ===== */
#chapter-drawer-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:200}
#chapter-drawer-overlay.open{display:block}
#chapter-drawer{position:fixed;bottom:0;left:0;right:0;max-height:70vh;background:#0e0e0c;border-top:1px solid #2a2a28;border-radius:16px 16px 0 0;transform:translateY(100%);transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);z-index:201;overflow-y:auto;padding:0.75rem 0 1.5rem}
#chapter-drawer.open{transform:translateY(0)}
#chapter-drawer::-webkit-scrollbar{width:4px}
#chapter-drawer::-webkit-scrollbar-thumb{background:#2a2a28;border-radius:2px}
.drawer-handle{width:36px;height:4px;background:#2a2a28;border-radius:2px;margin:0 auto 1rem}
.drawer-act-header{font-size:0.65rem;font-weight:700;color:#d08020;letter-spacing:2px;text-transform:uppercase;padding:0.8rem 1.5rem 0.3rem;opacity:0.8}
.drawer-ch-btn{display:block;width:100%;text-align:left;background:none;border:none;border-left:3px solid transparent;color:#807060;font-size:0.85rem;padding:0.6rem 1.5rem;cursor:pointer;font-family:inherit;transition:all 0.15s}
.drawer-ch-btn:hover{color:#b0a090;background:#141412}
.drawer-ch-btn.active{color:#d8d0c0;background:#141412;border-left-color:#d08020}

/* ===== TIMELINE ===== */
.page-content{padding:3rem 2rem;max-width:900px;margin:0 auto}
.page-content.wide{max-width:1100px}
.section-title{font-size:1.5rem;font-weight:700;color:#d08020;text-align:center;margin-bottom:0.5rem}
.section-subtitle{text-align:center;font-size:0.78rem;color:#706050;margin-bottom:2.5rem;letter-spacing:2px;text-transform:uppercase}
.tl-legend{display:flex;gap:2rem;justify-content:center;margin-bottom:2rem}
.tl-legend-item{display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;color:#807060}
.tl-legend-dot{width:10px;height:10px;border-radius:50%}
.tl-legend-dot.real{background:#4a8ab0}
.tl-legend-dot.fictional{background:#d08020}
.timeline-line{position:relative;padding-left:40px}
.timeline-line::before{content:'';position:absolute;left:15px;top:0;bottom:0;width:2px;background:linear-gradient(to bottom,transparent,#2a2a28 3%,#2a2a28 97%,transparent)}
.tl-event{position:relative;margin-bottom:1.2rem;padding:1rem 1.2rem;background:#0e0e0c;border:1px solid #1a1a18;border-radius:6px;transition:border-color 0.2s}
.tl-event:hover{border-color:#3a3a38}
.tl-event::before{content:'';position:absolute;left:-33px;top:1.2rem;width:10px;height:10px;border-radius:50%;border:2px solid}
.tl-event.real::before{border-color:#4a8ab0;background:#1a3040}
.tl-event.fictional::before{border-color:#d08020;background:#3a2008}
.tl-date{font-size:0.7rem;font-weight:600;letter-spacing:2px;margin-bottom:0.25rem}
.tl-event.real .tl-date{color:#4a8ab0}
.tl-event.fictional .tl-date{color:#d08020}
.tl-name{font-size:0.92rem;font-weight:600;color:#d8d0c0;margin-bottom:0.25rem}
.tl-desc{font-size:0.8rem;color:#807060;line-height:1.5;margin-bottom:0.4rem}
.tl-consequences{font-size:0.78rem;color:#605848;line-height:1.4;font-style:italic;margin-bottom:0.4rem}
.tl-refs{display:flex;flex-wrap:wrap;gap:0.25rem}

/* ===== CARDS (shared) ===== */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1rem}
.ch-ref{display:inline-block;font-size:0.65rem;color:#807060;background:#141412;padding:0.15rem 0.45rem;border-radius:3px;margin:0.1rem;cursor:pointer;transition:color 0.2s,background 0.2s;text-decoration:none}
.ch-ref:hover{color:#d08020;background:#1a1a18;text-decoration:none}

/* ===== CHARACTERS ===== */
.char-card{background:#0e0e0c;border:1px solid #1a1a18;border-radius:8px;padding:1.4rem;transition:border-color 0.2s}
.char-card:hover{border-color:#2a2a28}
.char-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:0.7rem}
.char-name{font-size:1.1rem;font-weight:700;color:#d8d0c0}
.char-age{font-size:0.8rem;color:#706050;margin-left:0.5rem}
.char-status{font-size:0.62rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;padding:0.2rem 0.6rem;border-radius:3px;white-space:nowrap}
.char-status.alive{color:#40a060;background:#102818}
.char-status.dead{color:#c04040;background:#2a1010}
.char-status.ambiguous{color:#d08020;background:#2a1808}
.char-role{font-size:0.82rem;color:#a09080;margin-bottom:0.5rem;line-height:1.5}
.char-desc{font-size:0.8rem;color:#807060;line-height:1.5;margin-bottom:0.6rem}
.char-section-title{font-size:0.68rem;font-weight:600;color:#c8a060;letter-spacing:1.5px;text-transform:uppercase;margin:0.8rem 0 0.35rem}
.char-quote{font-family:Georgia,serif;font-style:italic;font-size:0.82rem;color:#a09880;padding:0.25rem 0 0.25rem 0.8rem;border-left:2px solid #2a2a28;margin-bottom:0.35rem}
.char-detail{font-size:0.78rem;color:#706050;line-height:1.5;margin-bottom:0.25rem}
.char-expand-btn{background:none;border:none;color:#c8a060;font-size:0.73rem;cursor:pointer;padding:0.3rem 0;font-family:inherit;transition:color 0.2s}
.char-expand-btn:hover{color:#d08020}
.char-details{display:none}
.char-details.open{display:block}

/* ===== PLACES ===== */
.place-card{background:#0e0e0c;border:1px solid #1a1a18;border-radius:8px;padding:1.4rem;transition:border-color 0.2s}
.place-card:hover{border-color:#2a2a28}
.place-name{font-size:1rem;font-weight:700;color:#d8d0c0;margin-bottom:0.15rem}
.place-country{font-size:0.72rem;color:#d08020;letter-spacing:1px;margin-bottom:0.5rem}
.place-desc{font-size:0.82rem;color:#a09080;line-height:1.5;margin-bottom:0.5rem}
.place-sig{font-size:0.8rem;color:#706050;line-height:1.5;font-style:italic;margin-bottom:0.6rem}
.place-chapters{display:flex;flex-wrap:wrap;gap:0.25rem;margin-top:0.5rem}

/* ===== CONCEPTS ===== */
.concept-group{margin-bottom:2.5rem}
.concept-group-title{font-size:0.78rem;font-weight:700;color:#d08020;letter-spacing:2px;text-transform:uppercase;margin-bottom:1rem;padding-bottom:0.5rem;border-bottom:1px solid #1a1a18}
.concept-card{background:#0e0e0c;border:1px solid #1a1a18;border-radius:8px;padding:1.4rem;margin-bottom:0.8rem;transition:border-color 0.2s}
.concept-card:hover{border-color:#2a2a28}
.concept-name{font-size:1rem;font-weight:700;color:#d8d0c0;margin-bottom:0.35rem}
.concept-desc{font-size:0.82rem;color:#a09080;line-height:1.5;margin-bottom:0.5rem}
.concept-label{color:#4a8ab0;font-weight:600;font-size:0.68rem;letter-spacing:1px;text-transform:uppercase}
.concept-basis{font-size:0.8rem;color:#706050;line-height:1.5;margin-bottom:0.4rem}
.concept-usage{font-size:0.8rem;color:#605848;line-height:1.5;font-style:italic;margin-bottom:0.5rem}

::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-thumb{background:#2a2a28;border-radius:3px}
::-webkit-scrollbar-track{background:transparent}

/* ===== THEME TOGGLE ===== */
.nav-spacer{flex:1}
.theme-toggle{background:none;border:1px solid #2a2a28;color:#807060;width:36px;height:36px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.1rem;transition:all 0.2s;flex-shrink:0}
.theme-toggle:hover{color:#d08020;border-color:#d08020}

/* ===== SPOILER MODAL ===== */
.spoiler-overlay{display:none;position:fixed;inset:0;z-index:2000;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);background:rgba(8,8,8,0.7);align-items:center;justify-content:center}
.spoiler-overlay.visible{display:flex}
.spoiler-modal{background:#0e0e0c;border:1px solid #2a2a28;border-radius:12px;padding:2.5rem 3rem;max-width:440px;width:90%;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,0.6)}
.spoiler-icon{font-size:2.5rem;margin-bottom:1rem;opacity:0.8}
.spoiler-title{font-family:'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;font-weight:700;color:#d08020;margin-bottom:0.6rem}
.spoiler-text{font-size:0.88rem;color:#a09080;line-height:1.6;margin-bottom:1.8rem}
.spoiler-btns{display:flex;gap:0.8rem;justify-content:center}
.spoiler-btn{padding:0.6rem 1.5rem;border-radius:6px;font-size:0.82rem;font-family:inherit;cursor:pointer;font-weight:500;transition:all 0.2s;letter-spacing:0.5px;text-decoration:none;display:inline-block}
.spoiler-btn.primary{background:#d08020;border:1px solid #d08020;color:#080808}
.spoiler-btn.primary:hover{background:#e89830}
.spoiler-btn.secondary{background:none;border:1px solid #2a2a28;color:#807060}
.spoiler-btn.secondary:hover{border-color:#807060;color:#d8d0c0}

/* ===== LIGHT THEME ===== */
body.light{background:#f5f2ec;color:#2a2520}
body.light a{color:#a07830}
body.light #topnav{background:#ffffff;border-bottom-color:#e5e0d8}
body.light .nav-brand{color:#c07018}
body.light .nav-tab{color:#a09888}
body.light .nav-tab:hover{color:#706050}
body.light .nav-tab.active{color:#2a2520;border-bottom-color:#c07018}
body.light .theme-toggle{border-color:#d5d0c8;color:#a09888}
body.light .theme-toggle:hover{color:#c07018;border-color:#c07018}
body.light #reader-sidebar{background:#faf8f4;border-right-color:#e5e0d8}
body.light .sidebar-act-header{color:#c07018}
body.light .sidebar-ch-btn{color:#a09888}
body.light .sidebar-ch-btn:hover{color:#706050;background:#f0ece4}
body.light .sidebar-ch-btn.active{color:#2a2520;background:#f0ece4;border-left-color:#c07018}
body.light .sidebar-toggle{background:#faf8f4;border-color:#e5e0d8;color:#a09888}
body.light .sidebar-toggle:hover{color:#c07018;background:#f0ece4}
body.light .sb-collapsed .sidebar-ch-btn.active{background:#f0ece4;border-left-color:#c07018}
body.light #reader-main{background:#ece8e0}
body.light .reader-page{background:#ffffff;box-shadow:0 1px 3px rgba(0,0,0,0.06),0 8px 40px rgba(0,0,0,0.08)}
body.light #reader-bar{background:#faf8f4;border-top-color:#e5e0d8}
body.light .rbar-btn{color:#a09888}
body.light .rbar-btn:hover{color:#c07018}
body.light .rbar-btn:disabled:hover{color:#a09888}
body.light #rbar-title{color:#706050}
body.light #rbar-title:hover{color:#c07018}
body.light #chapter-drawer{background:#faf8f4;border-top-color:#e5e0d8}
body.light .drawer-handle{background:#d5d0c8}
body.light .drawer-act-header{color:#c07018}
body.light .drawer-ch-btn{color:#a09888}
body.light .drawer-ch-btn:hover{color:#706050;background:#f0ece4}
body.light .drawer-ch-btn.active{color:#2a2520;background:#f0ece4;border-left-color:#c07018}
body.light #chapter-drawer-overlay{background:rgba(0,0,0,0.2)}
body.light .section-title{color:#c07018}
body.light .section-subtitle{color:#a09888}
body.light .tl-event{background:#ffffff;border-color:#e5e0d8}
body.light .tl-event:hover{border-color:#d5d0c8}
body.light .timeline-line::before{background:linear-gradient(to bottom,transparent,#d5d0c8 3%,#d5d0c8 97%,transparent)}
body.light .tl-event.real::before{border-color:#2878a8;background:#e0f0ff}
body.light .tl-event.fictional::before{border-color:#c07018;background:#fdf0e0}
body.light .tl-event.real .tl-date{color:#2878a8}
body.light .tl-event.fictional .tl-date{color:#c07018}
body.light .tl-name{color:#2a2520}
body.light .tl-desc{color:#908878}
body.light .tl-consequences{color:#a09888}
body.light .tl-legend-dot.real{background:#2878a8}
body.light .tl-legend-dot.fictional{background:#c07018}
body.light .ch-ref{color:#908878;background:#f0ece4}
body.light .ch-ref:hover{color:#c07018;background:#fdf8f0}
body.light .char-card{background:#ffffff;border-color:#e5e0d8}
body.light .char-card:hover{border-color:#d5d0c8}
body.light .char-name{color:#2a2520}
body.light .char-age{color:#a09888}
body.light .char-status.alive{color:#2a8848;background:#e0f5e8}
body.light .char-status.dead{color:#b03030;background:#fde8e8}
body.light .char-status.ambiguous{color:#c07018;background:#fdf0e0}
body.light .char-role{color:#706050}
body.light .char-desc{color:#908878}
body.light .char-section-title{color:#a08040}
body.light .char-quote{color:#807060;border-left-color:#e5e0d8}
body.light .char-detail{color:#908878}
body.light .char-expand-btn{color:#a08040}
body.light .char-expand-btn:hover{color:#c07018}
body.light .place-card{background:#ffffff;border-color:#e5e0d8}
body.light .place-card:hover{border-color:#d5d0c8}
body.light .place-name{color:#2a2520}
body.light .place-country{color:#c07018}
body.light .place-desc{color:#706050}
body.light .place-sig{color:#908878}
body.light .concept-group-title{color:#c07018;border-bottom-color:#e5e0d8}
body.light .concept-card{background:#ffffff;border-color:#e5e0d8}
body.light .concept-card:hover{border-color:#d5d0c8}
body.light .concept-name{color:#2a2520}
body.light .concept-desc{color:#706050}
body.light .concept-label{color:#2878a8}
body.light .concept-basis{color:#908878}
body.light .concept-usage{color:#a09888}
body.light .spoiler-overlay{background:rgba(245,242,236,0.7)}
body.light .spoiler-modal{background:#ffffff;border-color:#e5e0d8;box-shadow:0 24px 80px rgba(0,0,0,0.12)}
body.light .spoiler-title{color:#c07018}
body.light .spoiler-text{color:#706050}
body.light .spoiler-btn.primary{background:#c07018;border-color:#c07018;color:#ffffff}
body.light .spoiler-btn.primary:hover{background:#d08020}
body.light .spoiler-btn.secondary{border-color:#d5d0c8;color:#a09888}
body.light .spoiler-btn.secondary:hover{border-color:#a09888;color:#2a2520}
body.light ::-webkit-scrollbar-thumb{background:#d5d0c8}

@media(max-width:768px){
    .nav-hamburger{display:flex;align-items:center;justify-content:center}
    .nav-tabs-group{display:none;position:fixed;top:56px;left:0;right:0;background:#0a0a0a;border-bottom:1px solid #1a1a18;flex-direction:column;padding:0.5rem 0;z-index:999}
    .nav-tabs-group.open{display:flex}
    .nav-tab{height:auto;padding:0.9rem 1.5rem;border-bottom:none;border-left:3px solid transparent;font-size:0.8rem;letter-spacing:1.5px;justify-content:flex-start}
    .nav-tab.active{border-bottom:none;border-left-color:#d08020}
    .nav-mobile-overlay{display:none;position:fixed;top:56px;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);z-index:998}
    .nav-mobile-overlay.open{display:block}
    body.light .nav-tabs-group{background:#faf8f4;border-bottom-color:#e5e0d8}
    body.light .nav-mobile-overlay{background:rgba(0,0,0,0.2)}
    body.light .nav-tab.active{border-left-color:#c07018}
    #reader-sidebar{display:none}
    .sidebar-toggle{display:none}
    .reader-layout{display:block;height:auto;overflow:visible}
    #reader-main{padding:1rem 0.5rem calc(1rem + 52px)}
    #reader-bar{left:0}
    .reader-page{padding:2rem 1.5rem 1.5rem;border-radius:0;min-height:auto;box-shadow:0 1px 3px rgba(0,0,0,0.12)}
    .card-grid{grid-template-columns:1fr}
    .chapter-content{font-size:1.05rem}
    .cover-title{font-size:5rem}
    .cover-subtitle{font-size:0.75rem;letter-spacing:6px}
    .cover-author{font-size:0.85rem;letter-spacing:4px}
}