*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:82px}body{margin:0;background:#142536;color:#fff8e9;font-family:'Nunito Sans',sans-serif;line-height:1.7;padding-bottom:0;--reading-font:19px}button,input,a{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #f5d38c;outline-offset:5px}button:disabled{opacity:.35;cursor:default}h1,h2,h3{font-family:'Lora',Georgia,serif;font-weight:500;line-height:1.22}em{font-weight:500;color:#f4d49a}.eyebrow{font-size:13px;letter-spacing:.15em;text-transform:uppercase;font-weight:800;color:#f4d49a}.skip{position:fixed;top:-100px;left:20px;z-index:200;background:#132c39;padding:10px}.skip:focus{top:15px}
#world{position:fixed;inset:0;z-index:-2;background:#142536;pointer-events:none}.world-scene{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;will-change:opacity}.world-vignette{position:absolute;inset:0;background:linear-gradient(90deg,#091a2f8c,transparent 75%),linear-gradient(0deg,#0b1c2b61,transparent 50%,#10243250)}.site-header{height:78px;position:fixed;inset:0 0 auto;z-index:70;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;background:linear-gradient(#102537b8,#10253700);text-shadow:0 1px 8px #081b2a}.brand{display:flex;gap:10px;align-items:center;font-family:'Lora',serif;font-size:25px}.brand:first-letter{color:#f4d49a}.site-header nav{display:flex;gap:25px;align-items:center;font-size:14px;font-weight:700}.site-header button{background:#102c3880;border:1px solid #eee3cb55;border-radius:100px;padding:8px 18px}.total-progress{position:fixed;inset:0 0 auto;height:2px;z-index:100}.total-progress span{display:block;background:#efd598;height:100%;width:0}
.opening{min-height:100svh;position:relative;display:flex;align-items:center;padding:120px 8vw 110px}.opening-copy{max-width:590px;text-shadow:0 2px 20px #0c1e2d}.opening h1{font-size:clamp(65px,9vw,132px);margin:26px 0}.opening-subtitle{font-family:'Lora',serif;font-size:clamp(23px,2.7vw,36px);line-height:1.5}.opening-description{font-size:18px;max-width:430px;color:#fff7e3}.pill{display:inline-flex;align-items:center;gap:32px;border:1px solid #f1d6a9b3;border-radius:99px;padding:14px 24px;background:#172d3a80;color:#fff5dd;backdrop-filter:blur(8px);font-size:16px;font-weight:800}.pill:hover{background:#f3d699;color:#183340}.author{font-size:13px;margin-top:24px;color:#f1ead9}.opening-bottom{position:absolute;bottom:30px;left:8vw;right:8vw;display:flex;justify-content:space-between;gap:30px;font-size:14px;color:#fff4d6}.opening-bottom>span:last-child{font-size:32px}.prologue{height:85svh;display:grid;place-items:center;position:relative;text-align:center;padding:80px 25px}.prologue h2{font-size:clamp(33px,4vw,59px);text-shadow:0 2px 25px #102532}.prologue p:last-child{max-width:400px;font-size:17px}.bend{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}.bend path{fill:none;stroke:#f3d39980;stroke-width:1.5;stroke-dasharray:4 10;vector-effect:non-scaling-stroke}
#doc-truyen{scroll-margin-top:0}.stage{position:relative}.stage-sticky{height:100svh;position:sticky;top:0;overflow:hidden;isolation:isolate}.stage-top{position:absolute;top:92px;left:5vw;right:5vw;display:flex;justify-content:space-between;align-items:center;gap:25px;z-index:5}.stage-name{font-size:14px;letter-spacing:.1em;font-weight:800;text-shadow:0 2px 9px #102538}.chapter-dots{display:flex;gap:8px;max-width:60%;overflow:auto;padding:5px}.chapter-dots button{border:1px solid #f6e7be60;background:#142e3970;min-width:34px;height:34px;border-radius:50%;font-size:12px;flex-shrink:0}.chapter-dots button[aria-current="true"]{background:#f2d59a;color:#1d3439;border-color:#f2d59a}.stage-film{display:flex;height:100%;width:max-content;will-change:transform}.stage.reverse .stage-film{flex-direction:row-reverse}.journey-page{width:100vw;height:100svh;flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;padding:158px 9vw 112px;position:relative}.stage.reverse .journey-page{justify-content:flex-start}.stage-cover{max-width:650px;margin-right:auto;align-self:center;text-shadow:0 2px 25px #0a1e2e}.stage.reverse .stage-cover{margin-left:auto;margin-right:0}.stage-cover h2{font-size:clamp(40px,5vw,76px);margin:20px 0 24px}.stage-cover>p:not(.eyebrow){font-size:19px;max-width:450px}.stage-cover .pill{margin-top:20px}.story-glass{width:min(540px,48vw);max-height:calc(100svh - 290px);overflow-y:auto;overscroll-behavior-y:auto;scrollbar-width:thin;scrollbar-color:#edd6a975 transparent;background:linear-gradient(125deg,#102d3bd9,#102d3b9c);border:1px solid #f1e1bf38;border-radius:10px 46px 10px 10px;box-shadow:0 12px 70px #09232a30;padding:28px 32px;backdrop-filter:blur(5px);text-shadow:0 1px 3px #10243170}.story-glass h3{font-size:clamp(24px,2.6vw,33px);margin:12px 0 22px}.story-glass p{font-size:var(--reading-font);line-height:1.8;margin:0 0 17px;color:#fffbed}.story-glass p:last-child{margin:0}.page-number{font-size:12px;letter-spacing:.12em;color:#f1d49b;font-weight:800}.reading-path{position:absolute;inset:auto 5vw 47px;width:90%;height:36px;z-index:0;pointer-events:none}.reading-path path{fill:none;stroke:#f4d49a85;stroke-width:1;stroke-dasharray:3 9;vector-effect:non-scaling-stroke}.stage-bottom{position:absolute;bottom:30px;left:5vw;right:5vw;display:flex;justify-content:space-between;align-items:center;gap:20px;z-index:4;font-size:13px;color:#fff1d4}.stage-bottom>span{max-width:55%;text-shadow:0 2px 8px #102536}.page-controls{display:flex;align-items:center;gap:10px}.page-controls button{width:44px;height:44px;border:1px solid #f3deb88c;border-radius:50%;background:#102b3b9c;font-size:23px;backdrop-filter:blur(8px)}.page-controls output{font-size:13px;min-width:67px;text-align:center}.stage .path-spark{position:absolute;bottom:56px;left:8vw;width:9px;height:9px;border-radius:50%;background:#ffedaf;box-shadow:0 0 18px 5px #f9da9177;pointer-events:none;z-index:3}.stage-bridge{height:40svh;position:relative;display:grid;place-items:center}.stage-bridge p{font-family:'Lora',serif;font-style:italic;font-size:20px;text-align:center;text-shadow:0 2px 12px #102534;padding:0 30px}.stage-bridge .bend{z-index:0}.stage-bridge p{z-index:1}.stage-outro{text-shadow:0 2px 20px #102534;max-width:500px;margin:auto}.stage-outro h3{font-size:44px}.stage-outro p{font-size:20px}
.afterword{min-height:110svh;padding:135px 8vw 110px;position:relative;background:linear-gradient(0deg,#10213c50,transparent)}.afterword>h2{font-size:clamp(35px,4.6vw,65px);text-shadow:0 2px 22px #102338}.keepsakes{display:grid;grid-template-columns:repeat(3,1fr);gap:4vw;margin:70px 0}.keepsakes article{background:#102939a6;border-top:1px solid #f2d7a273;padding:24px;backdrop-filter:blur(4px);border-radius:0 24px 4px 4px}.keepsakes span{font-size:13px;color:#f2d7a2}.keepsakes h3{font-size:25px}.keepsakes p{font-size:17px}.keepsakes button,.text-link{border:0;border-bottom:1px solid #f4d49a85;padding:8px 0;background:none;color:#f7dfb0;font-size:15px}.afterword>.text-link{display:inline-block;margin-top:15px}
.sunset-finale{position:relative;min-height:110svh;display:flex;align-items:center;padding:120px 8vw 140px;isolation:isolate;--night:0;--sun-drop:0px}.sunset-copy{max-width:430px;position:relative;z-index:2;text-shadow:0 2px 12px #142337}.sunset-copy h2{font-size:clamp(40px,5vw,73px)}.sunset-copy>p:not(.eyebrow){font-size:18px}.sunset-copy .text-link{display:block;margin:16px 0;color:#fff4dc}.sunset-copy .pill{background:#112d3cb3}#sunset-phase{font-size:14px!important;letter-spacing:.15em;text-transform:uppercase;color:#ffdfa8}.sunset-effects{position:fixed;inset:0;pointer-events:none;opacity:0;z-index:-1}.night-wash{position:absolute;inset:0;background:linear-gradient(#071329,#182544d9 65%,#11182ca6);opacity:var(--night)}.setting-sun{position:absolute;width:var(--sun-size,140px);height:var(--sun-size,140px);left:var(--sun-x,90%);top:var(--sun-y,35%);border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff8be,#ffe189 65%,#f5b35d);box-shadow:0 0 65px 30px #ffd27c50;transform:translate(-50%,calc(-50% + var(--sun-drop)));opacity:calc(1 - var(--night)*1.1)}.night-stars{position:absolute;inset:0;background-image:radial-gradient(1.6px 1.6px at 10% 13%,#fffce9 99%,transparent),radial-gradient(1px 1px at 35% 30%,#fffce9 99%,transparent),radial-gradient(2px 2px at 68% 10%,#fff2c6 99%,transparent),radial-gradient(1px 1px at 90% 25%,#fffce9 99%,transparent),radial-gradient(1px 1px at 50% 8%,#fffce9 99%,transparent);background-size:390px 260px;opacity:var(--night)}.sunset-bottom{position:absolute;bottom:40px;left:8vw;right:8vw;display:flex;justify-content:space-between;gap:20px;font-size:14px;text-shadow:0 1px 7px #102330}footer{padding:35px 8vw;background:#101c30d9;display:grid;grid-template-columns:100px 1fr;gap:15px 30px;font-size:13px;backdrop-filter:blur(5px)}footer>span{font:25px 'Lora',serif;color:#f5dda9}footer p{margin:0;max-width:850px}footer small{grid-column:2;max-width:850px;font-size:12px;color:#e9e1d3}
#contents-dialog{background:#122a38f7;color:#fff5df;border:1px solid #e8d4a764;border-radius:24px;width:min(850px,calc(100% - 30px));max-height:88svh;padding:28px 35px;overscroll-behavior:contain}#contents-dialog::backdrop{background:#081923b8;backdrop-filter:blur(7px)}.contents-heading{display:flex;align-items:center;justify-content:space-between;gap:25px}.contents-heading h2{font-size:30px;margin:6px 0}.contents-heading button{font-size:32px;background:none;border:0;width:44px;height:44px}.contents-hint{font-size:15px}.contents-group{border-top:1px solid #f1d8a63b;margin-top:20px;padding-top:15px}.contents-group h3{font-size:21px;color:#f4d49a}.contents-group ol{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 18px}.contents-group button{background:transparent;border:0;text-align:left;padding:8px 0;color:#fff5df;font-size:15px;width:100%}.contents-group button:hover{color:#f4d49a}.font-controls{display:flex;align-items:center;gap:15px;position:sticky;bottom:-28px;background:#112d3b;padding:15px 0;font-size:15px}.font-controls button{border:1px solid #f4d49a88;background:transparent;border-radius:50%;width:44px;height:44px}.record-player{right:24px;bottom:110px;width:76px;height:76px}.record-label{width:52px;height:52px}.record-volume-dock{width:100px;height:36px}.record-toggle{width:42px;height:42px}
@media(min-width:1450px){.story-glass{width:600px;padding:35px 40px}.journey-page{padding-right:11vw}.stage.reverse .journey-page{padding-left:11vw}}
@media(max-width:760px){html{scroll-padding-top:65px}.site-header{height:65px;padding:0 20px}.brand{font-size:21px}.site-header nav{gap:15px;font-size:12px}.site-header nav>a:nth-child(2){display:none}.site-header button{padding:6px 11px}.site-header button span{display:none}.opening{padding:125px 30px 120px;align-items:flex-start}.opening .eyebrow{max-width:240px;font-size:11px;line-height:1.8}.opening h1{font-size:72px;margin:25px 0}.opening-subtitle{font-size:25px}.opening-description{font-size:17px;max-width:295px}.author{max-width:250px;font-size:12px}.opening-bottom{left:30px;right:30px;font-size:12px;max-width:300px}.world-scene{background-position:38% center}.world-vignette{background:linear-gradient(90deg,#0a20357a,transparent),linear-gradient(0deg,#091e3a66,transparent 70%)}.prologue{height:80svh}.prologue h2{font-size:35px}.prologue p:last-child{font-size:16px;max-width:280px}.stage-top{top:75px;left:22px;right:22px;display:block}.stage-name{font-size:12px}.chapter-dots{max-width:100%;gap:7px;margin-top:10px;padding-left:0}.chapter-dots button{min-width:28px;height:28px;font-size:11px}.journey-page{padding:165px 22px 115px;align-items:center}.stage-cover h2{font-size:42px}.stage-cover>p:not(.eyebrow){font-size:17px;max-width:280px}.stage-cover{margin-top:25px}.story-glass{width:100%;max-height:calc(100svh - 290px);padding:22px;background:linear-gradient(135deg,#102f3bd9,#102f3ba6);border-radius:7px 32px 7px 7px}.story-glass h3{font-size:24px;margin:10px 0 16px}.story-glass p{font-size:var(--reading-font);line-height:1.7}.page-number{font-size:11px}.stage-bottom{left:22px;right:22px;bottom:26px;font-size:11px}.page-controls{gap:7px}.page-controls output{min-width:46px;font-size:11px}.page-controls button{width:38px;height:38px}.stage-bottom>span{max-width:47%}.reading-path{left:22px;width:calc(100% - 44px);bottom:45px}.stage-bridge{height:30svh}.stage-bridge p{font-size:17px}.record-player{width:58px;height:58px;bottom:105px;right:20px}.record-label{width:44px;height:44px}.record-toggle{width:38px;height:38px}.record-volume-dock{bottom:calc(100% + 8px);width:87px;height:33px;left:auto;right:0;transform:none}.afterword{padding:110px 30px 90px}.afterword>h2{font-size:35px}.keepsakes{grid-template-columns:1fr;gap:20px;margin:35px 0}.keepsakes article{max-width:480px;padding:22px}.keepsakes h3{margin:15px 0}.sunset-finale{padding:130px 30px 160px;align-items:flex-start;min-height:110svh}.sunset-copy{max-width:290px;margin-top:70px}.sunset-copy h2{font-size:44px}.sunset-copy>p:not(.eyebrow){font-size:17px}.sunset-bottom{left:30px;right:30px;font-size:12px;flex-direction:column}.sunset-copy .pill{font-size:14px;padding:12px 18px}footer{grid-template-columns:1fr;padding:30px;font-size:12px}footer small{grid-column:1}.contents-group ol{grid-template-columns:1fr}#contents-dialog{padding:22px}.contents-heading h2{font-size:26px}.contents-hint{font-size:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.world-scene,.stage-film{will-change:auto}.record-platter{animation:none!important}}
@media(max-width:760px){.sunset-world{background-position:96% center}.is-reading .record-player{top:88px;bottom:auto;right:22px;width:54px;height:54px}.is-reading .record-volume-dock{top:10px;bottom:auto;right:65px;width:85px}.is-reading .chapter-dots{max-width:calc(100% - 166px)}.is-reading .stage-name{max-width:calc(100% - 65px)}}
@media(min-width:761px){.is-reading .record-player{right:22px;bottom:108px;width:62px;height:62px}.is-reading .record-label{width:46px;height:46px}.is-reading .record-volume-dock{width:90px;left:auto;right:0;transform:none}}
footer{background:linear-gradient(#101c3050,#101c30d9);margin-top:-1px}
.world-scene.sunset-world{background-position:96% center}
html{overflow-anchor:none}.chapter-dots{scrollbar-width:none}.chapter-dots::-webkit-scrollbar{display:none}
html{scroll-snap-type:y proximity;scroll-padding-top:0}.scroll-stop{position:absolute;left:0;width:1px;height:1px;scroll-snap-align:start;pointer-events:none}
.sunset-copy .pill:hover{background:#f3d699;color:#183340}.night-wash{background:linear-gradient(#071329cf,#1825449c 65%,#11182c66)}
.scroll-stop{scroll-snap-stop:always}
html{scroll-snap-type:none}.scroll-stop{scroll-snap-align:none;scroll-snap-stop:normal}
/* Sunset composition: empty sky -> one moving sun -> opaque clouds and characters. */
.world-scene.sunset-world{isolation:isolate;background:#ffc674;--sun-progress:0;--night:0}
.sunset-sky{position:absolute;inset:0;z-index:0;background:linear-gradient(125deg,#6b6c9a 0%,#c28ea6 30%,#f2ae85 58%,#ffda8b 85%)}
.sunset-world .setting-sun{z-index:1;transform:translate(-50%,calc(-50% + var(--sun-progress)*var(--sun-travel)));box-shadow:0 0 35px 10px #ffd27c38;opacity:1}
.sunset-foreground{position:absolute;inset:0;z-index:2;background:url('assets/sunset-foreground-v2.png') 96% center/cover no-repeat;pointer-events:none}
