@font-face{font-family:Wolryeong;src:url("assets/ui/serif.woff") format("woff");font-weight:400;font-display:swap}
:root{
  --serif:Wolryeong,"Batang","AppleMyungjo",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans CJK KR",sans-serif;
  --pine:#173b35;--rose:#a4535d;--paper:#f6f3eb;
  font-family:var(--sans);font-size:100%;line-height:1.65;
}
*{box-sizing:border-box}
body{margin:0}
h1,h2,h3,p{margin:0}
a{color:inherit}
button{font:inherit}
a,button,summary{touch-action:manipulation}
:focus-visible{outline:3px solid #d8818b;outline-offset:4px}
.skip{position:fixed;left:1rem;top:-8rem;z-index:20;background:white;color:#123b30;padding:.5rem 1rem}
.skip:focus{top:.5rem}
.reading{background:#0b1c1a;color:#f8f3e7;isolation:isolate;color-scheme:dark}
.reading::before{content:"";z-index:-1;position:fixed;inset:0;background:linear-gradient(90deg,rgba(7,25,22,.56),rgba(11,29,26,.32) 42%,#10221f 92%),linear-gradient(0deg,rgba(7,25,23,.93),rgba(13,30,26,.24) 61%,rgba(11,27,26,.65)),url("assets/ui/mountain.webp") 20% 45% / cover no-repeat}
.reader-layout{max-width:78rem;margin:0 auto;display:grid;grid-template-columns:minmax(16.5rem,1fr) minmax(0,50rem);gap:clamp(1rem,3.6vw,4rem);padding-inline:clamp(1rem,3.3vw,3rem);align-items:start}
.book-rail{position:sticky;top:0;min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-block:3rem 7rem}
.book-title .signature,.signature{display:flex;align-items:center;gap:.75rem;font:400 .95rem/1.2 var(--serif);letter-spacing:.31em}
.signature img{width:1.95rem;height:1.95rem}
.book-title h1{font:400 clamp(4rem,5.5vw,6.2rem)/1.25 var(--serif);letter-spacing:-.075em;margin:.7rem 0 .12rem}
.book-title p{font:400 clamp(1.04rem,1.4vw,1.35rem)/1.7 var(--serif);color:#e2e6d9;letter-spacing:-.035em}
.player{margin-top:clamp(2rem,6.8vh,4.5rem);width:100%;border-top:1px solid #c6d4be48;padding-top:1.2rem}
.ost-note{font-size:.90625rem;color:#e0e4d9;word-break:keep-all;line-height:1.5}
.controls{display:flex;gap:.48rem;flex-wrap:wrap;margin-top:.75rem}
.controls button{padding:.48rem .86rem;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:.46rem;border-radius:3px;font-size:.94rem;font-weight:600;cursor:pointer;background:#18302b;color:#f0f2e8;border:1px solid #8a9e90}
.controls button:first-child{background:#e8eddf;color:#15352f;border-color:#e8eddf}
.controls button:hover{filter:brightness(1.09)}
.controls button:disabled{cursor:default}
.controls button:first-child:disabled{background:#a7b8a9;border-color:#a7b8a9;color:#19392e}
.play-icon{width:0;height:0;border-style:solid;border-width:4.5px 0 4.5px 7px;border-color:transparent transparent transparent currentColor}
.stop-icon{width:8px;height:8px;background:currentColor}
.read-meter{position:absolute;bottom:clamp(2rem,6svh,5rem);width:100%;display:grid;grid-template-columns:1fr auto;gap:.55rem;color:#d0d9cc;font-size:.86rem}
.page-count{font-variant-numeric:tabular-nums;letter-spacing:.05em}
.page-count b{color:#fff;font-weight:600}
.meter-line{grid-column:1/-1;height:2px;background:#acbdae3d}
.meter-line i{display:block;width:100%;height:100%;background:#c7a0a2;transform-origin:left;transform:scaleX(.08333)}
.reading-column{min-width:0;background:#000;box-shadow:0 0 2.8rem #0004}
.strip{width:100%;line-height:0;margin:0;padding:0;background:#000}
.strip img{display:block;width:100%;height:auto;border:0;margin:0;padding:0}
.chapter-end{padding:3.6rem 1rem 4.6rem;text-align:center;background:linear-gradient(#000,#0b1915);word-break:keep-all}
.flower-divider{display:flex;align-items:center;justify-content:center;gap:.7rem;color:#ce8d94;font-size:1.25rem}
.flower-divider::before,.flower-divider::after{content:"";width:2rem;height:1px;background:#945d637f}
.chapter-end p{font:400 clamp(1.1rem,2.2vw,1.45rem)/1.6 var(--serif);margin:.85rem 0 1.45rem}
.world-button,.text-button{display:inline-block;padding:.78rem 1.5rem;text-decoration:none;border-radius:2px;border:1px solid #a5b49c80;background:#e1e7d9;color:#17382e;font-size:.97rem;font-weight:600}
.world-button:hover,.text-button:hover{background:#f1f1e8}

.world{background:var(--paper);color:#283830;word-break:keep-all;overflow-wrap:break-word}
.world-head{background:#142f28;color:#f8f2e3;border-bottom:1px solid #dee2cc35}
.world-bar,.world-main{max-width:66rem;padding-inline:clamp(1.1rem,5vw,4rem);margin:auto}
.world-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:3.9rem}
.brand,.back-story{display:inline-flex;align-items:center;text-decoration:none;min-height:44px}
.brand{gap:.52rem;font:400 1.28rem/1 var(--serif);letter-spacing:-.02em}
.brand img{width:1.52rem;height:1.52rem}
.back-story{font-size:.9rem;color:#e1e6d9}
.back-story:hover,.world-nav a:hover{text-decoration:underline;text-underline-offset:4px}
.world-opening{padding-block:clamp(2.5rem,7vw,5.7rem) 2.3rem}
.world-opening .signature{color:#9b5559;margin-bottom:.72rem}
.world-opening h1{font:400 clamp(2.6rem,6vw,4.7rem)/1.24 var(--serif);letter-spacing:-.07em;color:#163d31;margin-bottom:1rem}
.world-opening p{font-size:1.04rem;line-height:1.8}
.world-opening .genre{font-size:.88rem;color:#5e6257;margin-top:1.05rem}
.world-nav{display:flex;align-items:center;gap:clamp(.9rem,3vw,2.2rem);border-block:1px solid #a5b3a06b}
.world-nav a{padding:.72rem 0;text-decoration:none;font-weight:600;font-size:.94rem;color:#2a5947}
.world-main section{margin:clamp(2.4rem,5vw,4.2rem) 0 0;scroll-margin-top:1.5rem}
.world-main section h2{font:400 clamp(1.9rem,4vw,2.65rem)/1.35 var(--serif);color:#193b31;letter-spacing:-.065em;margin-bottom:1.3rem}
.characters{border-top:1px solid #9fae9b7f}
.person{display:grid;grid-template-columns:clamp(4rem,12vw,6.4rem) 1fr;gap:clamp(1.15rem,3vw,2.2rem);padding:1.65rem 0;border-bottom:1px solid #bec7b77d;align-items:start}
.person img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:50%;border:3px solid #eeeade;box-shadow:0 0 0 1px #acb1a375}
.person h3,.karma h3{font:400 1.6rem/1.3 var(--serif);letter-spacing:-.045em;color:#203f34}
.person h3 small{font-size:.78rem;color:#7a8072;margin-left:.3rem;font-weight:400}
.person p,.era p,.karma p,.endings p,.intro-copy{font-size:1rem;line-height:1.85}
.person p+p,.era p+p{margin-top:.5rem}
.person .person-meta{font-size:.88rem;line-height:1.6;margin:.3rem 0 .55rem;color:#6c635b}
.eras{border-top:1px solid #aab39e}
.era{display:grid;grid-template-columns:9.6rem 1fr;gap:1.2rem;padding:1.5rem 0;border-bottom:1px solid #c5cbbd}
.era h3{font-weight:500;font-size:.88rem;color:#5d6459}
.era h3 span{display:block;font:400 2.1rem/1.15 Georgia,serif;letter-spacing:-.045em;color:#854c4e;margin:0 0 .35rem}
.karma{border-left:3px solid #a0696c;background:#ecebe1;padding:1rem 1.2rem;margin:1.3rem 0}
.karma h3{font-size:1.25rem;margin-bottom:.3rem}
.levels{list-style:none;padding:0;margin:1.3rem 0 1.5rem;border-top:1px solid #aab39e}
.levels li{display:grid;grid-template-columns:5.3rem 6.8rem 1fr;gap:.4rem .8rem;align-items:baseline;padding:.78rem 0;border-bottom:1px solid #bdc6b997}
.levels .range{font-size:.94rem;font-variant-numeric:tabular-nums;color:#645a55}
.levels strong{color:#254538}
.endings{border:1px solid #cbbab4;background:#f0ebe3}
.endings summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;cursor:pointer}
.endings summary::-webkit-details-marker{display:none}
.endings summary strong{font:400 1.35rem/1.5 var(--serif);display:block}
.spoiler-tag{font-size:.81rem;color:#8c4751}
.plus{display:grid;place-items:center;width:1.1rem;height:1.1rem}
.plus::before,.plus::after{content:"";grid-area:1/1;height:1.5px;width:100%;background:#885c5e}
.plus::after{transform:rotate(90deg)}
.endings[open] .plus::after{display:none}
.endings-body{padding:0 1.2rem 1.2rem}
.endings-body article{margin-top:1rem;border-top:1px solid #d4c7bd;padding-top:1rem}
.endings-body h3{font-size:1.04rem;margin-bottom:.3rem}
.endings-body .answer{color:#844d52;font-weight:600}
.world-end{padding-block:2rem 4rem;text-align:center}
.text-button{border-color:#95a590}
@media(max-width:820px){
  .reader-layout{display:block;max-width:50rem;padding:0}
  .book-rail{z-index:3;min-height:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.15rem .7rem;padding:.55rem max(.85rem,env(safe-area-inset-right)) .5rem max(.85rem,env(safe-area-inset-left));background:#132a25;border-bottom:1px solid #82968769}
  .book-title{display:flex;align-items:center;gap:.35rem}
  .book-title .signature img{width:1.4rem;height:1.4rem}
  .book-title .signature span,.book-title p{display:none}
  .book-title h1{font-size:1.48rem;letter-spacing:-.06em;margin:0;white-space:nowrap}
  .player{display:contents}
  .controls{grid-column:2;grid-row:1;justify-content:flex-end;flex-wrap:nowrap;margin:0;gap:.3rem}
  .controls button{min-height:40px;font-size:.88rem;padding:.3rem .63rem}
  .ost-note{grid-column:1/-1;grid-row:2;font-size:.82rem;line-height:1.35}
  .read-meter{position:static;display:block;grid-column:1/-1;grid-row:3;width:100%;line-height:0}
  .read-meter>span{display:none}
  .meter-line{margin-top:2px;height:1px}
  .strip img,.chapter-end{scroll-margin-top:5.3rem}
}
@media(max-height:540px) and (min-width:821px){
  .book-rail{padding-block:1.25rem 4rem}
  .player{margin-top:1rem}
  .book-title h1{font-size:3rem}
  .read-meter{bottom:1rem}
}
@media(max-width:600px){
  .wide{display:none}
  .world-nav{gap:.95rem}
  .world-nav a{font-size:.86rem}
  .world-bar{min-height:3.3rem}
  .person{grid-template-columns:3.8rem 1fr;gap:.95rem;padding:1.2rem 0}
  .person h3{font-size:1.4rem}
  .person-meta{word-break:normal}
  .era{grid-template-columns:1fr;gap:.4rem}
  .era h3{display:flex;align-items:baseline;gap:.65rem}
  .levels li{grid-template-columns:4.5rem 1fr;gap:.25rem .7rem}
  .levels li>span:last-child{grid-column:2}
}
