:root{color-scheme:dark;--bg:#101419;--panel:#171c22;--line:#343940;--muted:#a9afb6;--ink:#eee9df;--red:#bb4c43;--gold:#bfaa80}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Malgun Gothic",sans-serif;font-size:16px;line-height:1.8}a{color:inherit;text-decoration:none}button,summary{cursor:pointer}button{font:inherit}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:6px}header{height:82px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff14;background:#101419f5;position:sticky;top:0;z-index:5}.brand{font-family:Batang,serif;font-weight:bold;font-size:22px;letter-spacing:.08em;display:flex;align-items:center;gap:13px}.seal{font-size:12px;line-height:1.2;padding:6px;border:1px solid var(--red);color:#d9776b;writing-mode:vertical-rl}nav{display:flex;gap:32px;font-size:14px;color:#c8c5bf}nav a:hover{color:white}.hero{position:relative;min-height:660px;height:calc(100vh - 82px);max-height:860px;isolation:isolate;display:flex;align-items:center}.hero-art{position:absolute;inset:0;z-index:-2;background:url('assets/banner.webp') center 44%/cover}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#090d13dd,transparent 80%),linear-gradient(0deg,#101419,transparent 28%);z-index:-1}.hero-content{margin:0 8%;padding:45px 0 95px}.eyebrow{color:var(--gold);font-size:14px;letter-spacing:.19em;margin:0 0 22px}h1,h2,h3{font-family:Batang,"Malgun Gothic",serif;line-height:1.4;font-weight:500}h1{font-size:clamp(60px,7.5vw,108px);letter-spacing:-.05em;line-height:1.1;margin:0 0 32px}h1 span{display:block}h2{font-size:clamp(30px,4vw,48px);margin:0;letter-spacing:-.04em}h3{font-size:24px;margin:0 0 16px}.lead{font-family:Batang,serif;font-size:22px;line-height:1.7}.hero-desc{color:#c0c3c9;margin:24px 0 32px}.primary{display:inline-block;background:#983b35;padding:13px 25px;font-size:15px;border:1px solid #cc6d5b}.primary:hover{background:#b54c40}.hero-bottom{position:absolute;bottom:26px;left:8%;right:8%;display:flex;justify-content:space-between;font-size:13px;color:#a7adb4;letter-spacing:.08em}.section{max-width:1320px;margin:auto;padding:100px 6%}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:45px}.section-heading>p{color:var(--muted);font-size:15px;max-width:410px;margin:0 0 4px}.world{border-bottom:1px solid var(--line)}.world-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:65px}.world-main{border-left:2px solid var(--red);padding:4px 0 4px 30px}.chapter{display:block;color:var(--gold);font-size:14px;margin-bottom:18px}.world-main p{color:#bec1c5}.world-notes article{display:flex;gap:23px;padding:20px 0;border-bottom:1px solid var(--line)}.world-notes article:first-child{padding-top:0}.world-notes article>span{color:var(--gold);font-family:Georgia,serif;font-size:22px}.world-notes h3{font-size:20px;margin:0 0 6px}.world-notes p{color:var(--muted);font-size:15px;margin:0}.faction{border-top:1px solid var(--line)}.faction:last-child{border-bottom:1px solid var(--line)}summary{list-style:none}summary::-webkit-details-marker{display:none}.faction>summary{display:grid;grid-template-columns:56px 190px 1fr 45px;align-items:center;gap:24px;padding:27px 12px}.mark{color:var(--gold);font-family:Batang,serif;font-size:19px;border:1px solid #8a77504f;width:52px;height:52px;display:grid;place-items:center}.faction h3{font-size:26px;margin:0}.meta{color:var(--muted);font-size:13px}.fdesc{font-size:15px;color:#aeb4bb;line-height:1.7}.plus{justify-self:end;font-size:28px;color:var(--gold);font-weight:200}.faction[open]>summary .plus{transform:rotate(45deg)}.faction[open]>summary{background:#ffffff03}.characters{padding:12px 12px 36px;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.character{background:var(--panel);color:inherit;border:1px solid #ffffff0b;text-align:left;padding:0;overflow:hidden;transition:transform .2s,border-color .2s}.character:hover{transform:translateY(-3px);border-color:var(--gold)}.character img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}.card-body{padding:20px}.card-body h4{font-family:Batang,serif;font-size:25px;margin:4px 0 8px}.card-body p{font-size:14px;color:#aeb4bb;margin:0;line-height:1.8}.card-link{display:block;color:var(--gold);font-size:14px;margin-top:16px}.character.text-only{min-height:200px;display:flex;align-items:center;background:#151a20}.text-only .card-body{padding:27px}.ghost-section{background:#0c1015;border-top:1px solid var(--line)}.ghost-group{border-top:1px solid var(--line);margin-bottom:12px}.ghost-group>summary{display:flex;justify-content:space-between;align-items:center;padding:24px 0;font-family:Batang,serif;font-size:24px}.ghost-group[open] .plus{transform:rotate(45deg)}.ghost-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);margin-bottom:30px}.ghost-card{padding:25px;background:#12171d}.ghost-card h3{font-size:23px;margin:0 0 9px}.ghost-card p{font-size:14px;color:var(--muted);min-height:52px}.ghost-card button,.skill-button{background:transparent;color:var(--gold);border:1px solid #786548;padding:8px 17px;font-size:14px}.ghost-card button:hover,.skill-button:hover{background:#bfaa8014}footer{max-width:1320px;margin:auto;padding:38px 6%;display:flex;align-items:center;justify-content:space-between;gap:25px;color:var(--muted);font-size:14px}footer .brand{font-size:20px;color:var(--ink)}dialog{padding:0;background:#171d24;color:var(--ink);border:1px solid #57544c;max-width:950px;width:calc(100% - 40px);max-height:90vh;overflow:auto}dialog::backdrop{background:#020408e8;backdrop-filter:blur(8px)}body:has(dialog[open]){overflow:hidden}.close{position:sticky;float:right;right:12px;top:12px;margin:12px 12px -56px 0;z-index:2;background:#111a;backdrop-filter:blur(6px);border:1px solid #ffffff60;border-radius:50%;color:white;width:42px;height:42px;font-size:28px;line-height:1}.detail-image{display:block;width:100%;max-height:62vh;object-fit:contain;background:#0c1117}.detail-body{padding:28px 38px 36px}.detail-body h2{margin:8px 0 16px}.detail-body>p{color:#c2c6ca}.skill-block{border-top:1px solid var(--line);padding-top:23px;margin-top:26px}.skill-block h3{font-size:24px;margin:0}.skill-block p{color:#bbc2ca;margin:8px 0 20px}.skill-image{display:block;max-height:80vh;max-width:100%;margin:22px auto 0}.detail-ghost{color:#ce766a}.ghost-id{font-size:13px;color:#78838e;letter-spacing:.12em}@media(max-width:800px){header{padding:0 5%;height:70px}.brand{font-size:19px}nav{gap:18px;font-size:13px}.hero{height:720px;min-height:0;max-height:calc(100svh - 70px)}.hero-content{margin:0 7%;padding-bottom:75px}.hero-art{background-position:62% center}.hero:after{background:linear-gradient(90deg,#090d13dc,#090d1320),linear-gradient(0deg,#101419,transparent 30%)}h1{font-size:72px}.hero-bottom{left:7%;right:7%;font-size:12px}.hero-bottom>span:first-child{display:none}.section{padding:65px 6%}.section-heading{display:block;margin-bottom:32px}.section-heading>p{margin-top:23px}.world-grid{grid-template-columns:1fr;gap:32px}.world-main{padding-left:22px}.faction>summary{grid-template-columns:45px 1fr 25px;gap:16px;padding:22px 0}.faction .fdesc{display:none}.mark{width:42px;height:46px;font-size:16px}.faction h3{font-size:25px}.characters{grid-template-columns:repeat(2,1fr);gap:12px;padding:8px 0 26px}.card-body{padding:15px}.card-body p{font-size:14px}.card-body h4{font-size:23px}.ghost-grid{grid-template-columns:repeat(2,1fr)}.ghost-card{padding:20px}.detail-body{padding:25px}footer{flex-wrap:wrap}footer p{display:none}}@media(max-width:480px){header .seal{display:none}nav{gap:14px}.brand{font-size:18px;letter-spacing:0}h1{font-size:68px}.lead{font-size:20px}.hero-desc{font-size:14px}.characters{grid-template-columns:1fr}.ghost-grid{grid-template-columns:1fr}.ghost-card p{min-height:0}.section-heading>p{font-size:14px}.faction>summary{gap:12px}.hero{min-height:620px}.detail-body{padding:22px}dialog{width:calc(100% - 20px)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.cover-title{width:min(660px,76vw);margin:0 0 22px;line-height:0}.cover-title img{display:block;width:100%;height:auto;filter:drop-shadow(0 4px 14px #05080bc0)}@media(max-width:800px){.cover-title{width:min(580px,86vw);margin-left:-2vw}}

/* Compact faction previews; full portraits open in the existing viewer. */
.characters{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.character{display:grid;grid-template-columns:144px minmax(0,1fr);align-items:start}
.character img{width:144px;height:96px;aspect-ratio:3/2;object-fit:contain;margin:18px 0 18px 14px;background:#0c1117}
.character .card-body{padding:16px 16px 16px 28px;min-width:0}
.character .card-body h4{font-size:22px;margin:2px 0 6px}
.character .card-link{margin-top:8px}
.character.text-only{min-height:150px;display:block}
.character.text-only .card-body{padding:20px}
@media(max-width:800px){.characters{grid-template-columns:1fr}.character{grid-template-columns:132px minmax(0,1fr)}.character img{width:132px;height:88px;margin:16px 0 16px 12px}.character .card-body{padding:14px 14px 14px 26px}}
@media(max-width:380px){.character{grid-template-columns:105px minmax(0,1fr)}.character img{width:105px;height:70px;margin-left:10px}.character .card-body{padding-left:22px}}
/* Face-focused previews at a readable medium size. */
.character{grid-template-columns:190px minmax(0,1fr)}
.character img{width:190px;height:210px;aspect-ratio:auto;object-fit:cover;object-position:50% 25%;margin:0}
.character .card-body{padding:18px}
@media(max-width:800px){.character{grid-template-columns:180px minmax(0,1fr)}.character img{width:180px;height:200px;margin:0}.character .card-body{padding:18px}}
@media(max-width:480px){.character{grid-template-columns:44% minmax(0,1fr)}.character img{width:100%;height:190px;margin:0}.character .card-body{padding:14px}.character .card-body h4{font-size:22px}}

.map-section{border-bottom:1px solid var(--line)}
.map-scroll{overflow:auto;border:1px solid #74634c;scrollbar-color:#8f795a #171c22;background:#14191c}
.map-canvas{position:relative;width:100%;min-width:900px;isolation:isolate}
.map-canvas.zoomed{width:1600px}
.map-canvas>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.map-north{position:absolute;right:4%;top:5%;font:24px Batang,serif;color:#d9c292;border-top:2px solid #b3996a;padding-top:6px}
.map-pin{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:1px;color:#f3e8ce;background:#10171ddd;border:1px solid #ad916358;padding:5px 10px;max-width:210px;box-shadow:0 3px 12px #0008;line-height:1.5}
.map-pin strong{font:600 18px Batang,serif;white-space:nowrap}
.map-pin>span:last-child{font-size:13px;color:#dfccb0}
.pin-dot{width:6px;height:6px;border-radius:50%;background:#dfbd7a;position:absolute;top:-10px}
.map-pin:hover,.map-pin[aria-pressed=true]{background:#59302a;border-color:#ddbb7b}
.map-place{margin-top:22px;padding:24px;border-left:2px solid var(--gold);background:var(--panel);min-height:145px}
.map-place h3{margin:0 0 8px}.map-place p{margin:0;color:#bec1c5}
.map-factions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
@media(max-width:800px){.map-section .section-heading{display:flex;align-items:center;gap:16px}.map-section h2{font-size:28px}.map-section .eyebrow{font-size:12px}.map-section .skill-button{white-space:nowrap}.map-place{padding:18px}}
@media(max-width:480px){header{padding:0 4%}nav{gap:10px;font-size:12px}.brand{font-size:16px}.map-section .section-heading{flex-wrap:wrap}}
/* Clear sans-serif headings for world lore. */
.world h3{font-family:"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;font-weight:700;letter-spacing:-.035em;line-height:1.5;word-break:keep-all}
.world-main h3{font-size:25px}
.world-notes h3{font-size:21px}
@media(max-width:480px){.world-main h3{font-size:23px}.world-notes h3{font-size:20px}}

/* Illustrated faction seals on the map. */
.map-pin.emblem-pin{flex-direction:row;gap:0;background:transparent;border:0;box-shadow:none;padding:0;max-width:none;filter:drop-shadow(0 3px 5px #000b);border-radius:50%;transition:filter .18s,transform .18s}
.faction-emblem{display:block;width:70px;height:70px;background-image:url('assets/faction-emblems.webp');background-size:400% 400%;background-repeat:no-repeat;flex-shrink:0}
.map-pin.emblem-pin:hover,.map-pin.emblem-pin[aria-pressed=true]{background:transparent;filter:drop-shadow(0 0 8px #efd390);transform:translate(-50%,-50%) scale(1.1)}
.map-pin.emblem-pin:focus-visible{outline:2px solid #e3c894;outline-offset:0}

.faction>summary .mark.faction-emblem{width:64px;height:64px;border:0;display:block;background-color:transparent}.faction>summary{grid-template-columns:64px 190px 1fr 45px}@media(max-width:800px){.faction>summary{grid-template-columns:52px 1fr 25px}.faction>summary .mark.faction-emblem{width:52px;height:52px}}
/* Unified Korean typography without additional font downloads. */
:root{--font-ui:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif}
body,button,input,select,textarea,summary{font-family:var(--font-ui)}
body{font-weight:400;letter-spacing:-.018em;line-height:1.85}
h1,h2,h3,h4,.brand,.lead,.mark,.world h3,.world-notes article>span,.card-body h4,.ghost-group>summary,.map-pin strong,.map-north{font-family:var(--font-ui)}
h1,h2,h3,h4{word-break:keep-all;text-wrap:pretty}
h2{font-weight:750;letter-spacing:-.045em;line-height:1.35}
h3,.world h3{font-weight:650;letter-spacing:-.03em;line-height:1.5}
.brand{font-weight:750;letter-spacing:-.045em}
.lead{font-weight:500;letter-spacing:-.025em;line-height:1.65}
.faction h3{font-size:25px;font-weight:700;letter-spacing:-.035em}
.card-body h4,.character .card-body h4{font-size:23px;font-weight:700;letter-spacing:-.035em;line-height:1.45}
.ghost-group>summary{font-weight:650;letter-spacing:-.025em}
.ghost-card h3,.skill-block h3{font-weight:650;letter-spacing:-.03em}
nav{font-size:14px;font-weight:500;letter-spacing:-.015em}
.eyebrow,.chapter{font-weight:500;letter-spacing:.04em}
.meta{font-size:14px;letter-spacing:-.015em;line-height:1.6}
.card-body p,.character .card-body p,.ghost-card p{font-size:15px;line-height:1.8;letter-spacing:-.015em}
.hero-desc,.world-main p,.world-notes p,.fdesc,.detail-body>p,.map-place p{line-height:1.85;word-break:keep-all;overflow-wrap:anywhere}
.world-notes article>span{font-weight:600;font-variant-numeric:tabular-nums}
.card-link,.skill-button,.primary{font-weight:600;letter-spacing:-.015em}
.hero-bottom,.ghost-id{letter-spacing:.025em}
@media(max-width:480px){nav{font-size:13px}.brand{font-size:17px}.faction h3{font-size:23px}.character .card-body h4{font-size:22px}.character .card-body p{font-size:14px}}
.map-place:empty{display:none}

/* Illustrated section headings. */
.section-banner{width:clamp(270px,34vw,440px);max-width:100%;margin:0;line-height:0}
.section-banner img{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:contain}
.section-heading:has(.section-banner){align-items:center;gap:24px;margin-bottom:30px}
.section-heading:has(.section-banner)>div{min-width:0}
.ghost-image-warning{font-size:14px;color:#d7958a;letter-spacing:.02em;margin:8px 0 0 12px;font-weight:500}
@media(max-width:800px){.section-banner{width:360px;max-width:100%}.section-heading:has(.section-banner)>p{margin-top:18px}.map-section .section-heading:has(.section-banner){flex-wrap:wrap}.map-section .section-heading:has(.section-banner)>div{flex:1 1 250px}}
@media(max-width:480px){.section-banner{width:100%;max-width:340px}.section-heading:has(.section-banner){gap:12px}.ghost-image-warning{margin-left:8px}}
.header-talisman{display:block;width:24px;height:44px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 2px 3px #0008)}
@media(max-width:480px){header .brand{gap:7px}.header-talisman{width:19px;height:36px}header nav{gap:8px;font-size:12px}}
.header-talisman{width:72px;height:36px}
@media(max-width:480px){.header-talisman{width:60px;height:30px}header{height:auto;min-height:70px;flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}header .brand{gap:8px}header nav{margin-left:auto}}
/* Shared landscape backdrop; readable surfaces retain the mountain texture. */
body{background:#101419;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#0b111940,#0b111965),url("assets/site-background.webp") center center/cover no-repeat}
header{background:#101419dc;backdrop-filter:blur(10px)}
.ghost-section{background:#0c10155c}
.character,.map-place{background:#171c22cf}
.character.text-only,.ghost-card{background:#12171dde}
.faction[open]>summary{background:#111a2299}
.world,.map-section{background:transparent}
footer{background:transparent}
/* Wider desktop section banners, unchanged desktop cover placement. */
@media(min-width:801px){
 .section-heading:has(.section-banner){flex-wrap:wrap;align-items:center}
 .section-heading:has(.section-banner)>div{flex:1 1 100%;width:100%}
 .section-banner{width:100%;max-width:none}
 .section-banner img{width:100%;height:clamp(190px,19vw,270px);aspect-ratio:auto;object-fit:cover;object-position:center}
 .section-heading:has(.section-banner)>p{max-width:none;margin:0}
 .map-section .section-heading:has(.section-banner)>.skill-button{margin-left:auto}
 .ghost-image-warning{margin-top:12px}
}
@media(max-width:800px){
 .hero .cover-title{transform:translateY(-30px)}
}

.mobile-map-toggle{display:none}
@media(max-width:800px){
 .mobile-map-toggle{display:block;width:100%;padding:12px 18px;margin:0 0 16px}
 .map-section:not(.mobile-map-open) .map-scroll,.map-section:not(.mobile-map-open) #map-place,.map-section:not(.mobile-map-open) #map-zoom{display:none}
}

.ghost-loading{padding:20px 30px;margin:0;color:var(--muted);font-size:14px;text-align:center}.ghost-loading[hidden]{display:none}
.section-banner img{background:transparent;filter:drop-shadow(0 2px 5px #0008)}
.section-banner img{object-fit:contain}

.header-wordmark{display:block;width:150px;height:56px;object-fit:contain;flex-shrink:0}
@media(max-width:480px){.header-wordmark{width:124px;height:46px}header .brand{gap:5px}}
/* The opening title shares the site's landscape backdrop. */
.hero{background:transparent}
.hero::after{content:none;background:none}
