:root{--ivory:#f3ecdc;--gold:#d7b78a;--dim:#c3c6b8;--ink:#091916;--text-scale:1;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:var(--ink);color:var(--ivory)}body{font-family:'DM Sans',sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:1px solid var(--gold);outline-offset:7px}button:disabled{opacity:.35;cursor:default}[hidden]{display:none!important}#novel{width:100%;height:100svh;min-height:540px;position:relative;overflow:hidden;isolation:isolate}.scene{position:absolute;inset:0;background:url('assets/shore.webp') center/cover;z-index:-5;transition:opacity .65s ease,transform 8s ease;transform:scale(1.025)}.scene.changing{opacity:.15}.shade{position:absolute;inset:0;z-index:-4;background:linear-gradient(90deg,rgba(2,17,16,.68),rgba(2,17,16,.16) 52%,transparent 80%),linear-gradient(0deg,rgba(2,14,13,.85),transparent 34%,transparent 85%,rgba(2,17,16,.40))}.grain{z-index:-3;position:absolute;inset:0;pointer-events:none;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.6' filter='url(%23n)'/%3E%3C/svg%3E")}#topbar{position:absolute;top:0;left:0;right:0;padding:32px 4.2%;display:flex;align-items:center;justify-content:space-between;gap:24px}.wordmark{display:flex;gap:15px;align-items:center;font-family:'Italiana',serif;font-size:27px;letter-spacing:.2em;padding:0}.eclipse{display:block;width:23px;height:23px;border:1px solid var(--gold);border-radius:50%;position:relative}.eclipse:after{content:'';position:absolute;inset:-4px 6px;border:1px solid #d7b78a70;border-radius:50%;transform:rotate(42deg)}.micro{font-size:10px;letter-spacing:.16em;font-weight:400}.micro,.title-detail{line-height:1.5}#chapter-top{opacity:.7;font-size:9px}nav{display:flex;gap:30px;align-items:center}.sound{font-size:9px;letter-spacing:.13em;display:flex;gap:10px;align-items:center;padding:8px 0}.sound-bars{display:flex;height:14px;align-items:center;gap:3px}.sound-bars i{width:1px;background:var(--gold);height:3px}.sound-bars i:nth-child(2){height:11px}.sound-bars i:nth-child(3){height:7px}.sound-bars i:nth-child(4){height:13px}.sound[aria-pressed=true] i{animation:wave 1.7s ease-in-out infinite alternate}.sound[aria-pressed=true] i:nth-child(2){animation-delay:.5s}.sound[aria-pressed=true] i:nth-child(3){animation-delay:.9s}.menu-icon{padding:10px 0;width:22px;display:grid;gap:6px}.menu-icon span{height:1px;background:var(--ivory)}.title-screen{position:absolute;left:8.5%;top:50%;transform:translateY(-43%);max-width:700px}.eyebrow{font-size:10px;letter-spacing:.27em;color:var(--gold);display:flex;align-items:center;gap:15px}.eyebrow>span{width:36px;height:1px;background:var(--gold)}h1{font-family:'Italiana',serif;font-size:clamp(100px,12.6vw,202px);line-height:1.06;font-weight:400;letter-spacing:.035em;margin:22px 0 19px;position:relative;text-shadow:0 2px 50px #04181430}.title-a{display:inline-block;position:relative}.title-a:after{content:'';position:absolute;height:1px;background:var(--gold);width:60%;left:21%;top:62%;transform:rotate(-45deg);opacity:.8}.title-star{position:absolute;top:10%;right:-26px;font-family:serif;font-size:30px;color:var(--gold);opacity:.8}.title-copy{font-family:'Cormorant Garamond',serif;font-size:clamp(24px,2.4vw,35px);line-height:1.28;margin:0 0 34px;color:#f1e9d8}.title-copy em{font-weight:400;color:#ded9c7}.title-actions{display:flex;align-items:center;gap:27px;flex-wrap:wrap}.begin{background:#ebe7d8;color:#18352d;padding:17px 25px;min-width:215px;display:flex;align-items:center;justify-content:space-between;gap:40px;font-size:12px;letter-spacing:.03em;transition:background .25s,transform .25s}.begin:hover{background:#fff9e8;transform:translateY(-2px)}.begin>span{font-size:20px}.text-link{padding:12px 0;font-size:11px;border-bottom:1px solid #d7b78a80;color:var(--ivory);display:flex;gap:20px;align-items:center}.text-link:hover{color:var(--gold)}.title-detail{font-size:8px;letter-spacing:.16em;margin:24px 0 0;color:#e0e2ce99}.title-detail span{margin:0 9px}#footer{position:absolute;bottom:0;left:0;right:0;padding:22px 4.2%;display:flex;align-items:center;justify-content:space-between;color:#e4e7d3a8;gap:12px}#footer .micro{font-size:8px}.footer-dash{margin:0 17px;color:var(--gold)}.footer-tools{display:flex;gap:26px;align-items:center}.footer-tools button{padding:8px 0}#art-btn{display:flex;align-items:center;gap:15px}#fullscreen{font-size:22px;color:var(--gold)}.game{position:absolute;bottom:92px;left:8.5%;right:8.5%;display:flex;align-items:flex-end;justify-content:space-between;gap:60px;animation:appear .7s ease}.passage{flex:1;max-width:760px}.scene-meta{font-size:9px;color:#d7dcc2b0;margin-bottom:24px}.speaker{font-size:11px;letter-spacing:.23em;color:var(--gold);text-transform:uppercase;display:flex;gap:18px;align-items:center;margin:0 0 15px}.speaker:after{content:'';height:1px;width:45px;background:#d7b78a70}.dialogue{font-family:'Cormorant Garamond',serif;font-weight:500;font-size:calc(clamp(25px,2.45vw,36px)*var(--text-scale));line-height:1.35;white-space:pre-line;text-shadow:0 2px 15px #0007;min-height:2.7em}.dialogue em{color:var(--gold)}.actions{flex:0 1 365px;display:grid;gap:0;padding-bottom:4px}.choice{border-top:1px solid #e4dfc33b;text-align:left;display:flex;align-items:center;gap:18px;padding:17px 0;line-height:1.4;font-size:12px;transition:padding .2s,color .2s}.choice:last-child{border-bottom:1px solid #e4dfc33b}.choice:hover{padding-left:10px;color:var(--gold)}.choice .choice-num{font-family:'Cormorant Garamond',serif;font-size:15px;color:var(--gold);opacity:.6}.choice .choice-arrow{margin-left:auto;font-size:18px;color:var(--gold)}.advance{border:0!important;justify-content:flex-end;gap:25px;font-size:10px;letter-spacing:.15em}.advance .choice-arrow{margin:0;font-size:25px}.playing .shade{background:linear-gradient(0deg,rgba(2,14,13,.97),rgba(2,14,13,.85) 12%,rgba(2,14,13,.42) 33%,transparent 60%),linear-gradient(180deg,rgba(2,14,13,.6),transparent 22%)}.playing #chapter-top{font-size:9px}.playing #footer-left{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:13px;letter-spacing:.03em}.ending{position:absolute;left:8.5%;top:50%;transform:translateY(-38%);max-width:660px}.ending h2{font-family:'Italiana',serif;font-size:clamp(48px,6vw,85px);line-height:1.05;font-weight:400;margin:20px 0}.ending .end-copy{font-family:'Cormorant Garamond',serif;font-size:25px;line-height:1.4;white-space:pre-line}.ending .end-stats{color:var(--gold);margin:25px 0;font-size:10px;letter-spacing:.1em}.ending .title-actions{margin-top:30px}.ending-mode .shade{background:linear-gradient(90deg,#02110fe8,#02110f80 55%,#02110f05)}.motes{z-index:-2;position:absolute;inset:0;pointer-events:none}.motes i{position:absolute;left:12%;top:67%;width:3px;height:3px;background:#f7d38e;border-radius:50%;box-shadow:0 0 12px #ebac4b;opacity:0;animation:float 16s ease-in-out infinite}.motes i:nth-child(2){left:35%;top:80%;animation-delay:3s}.motes i:nth-child(3){left:71%;top:55%;animation-delay:7s}.motes i:nth-child(4){left:82%;top:75%;animation-delay:1s}.motes i:nth-child(5){left:43%;top:40%;animation-delay:9s}.motes i:nth-child(6){left:24%;top:50%;animation-delay:12s}.motes i:nth-child(7){left:58%;top:80%;animation-delay:5s}dialog{background:#0b201deb;color:var(--ivory);border:1px solid #b3b6a345;padding:30px 36px;width:min(650px,92vw);max-height:84svh;box-shadow:0 25px 90px #0006;backdrop-filter:blur(20px)}dialog::backdrop{background:#02100dc4;backdrop-filter:blur(6px)}.modal-header{display:flex;align-items:center;justify-content:space-between;color:var(--gold)}.modal-header .micro{font-size:8px}.modal-header button{font-size:28px;padding:0 0 0 20px}dialog h2{font-family:'Italiana',serif;font-size:44px;font-weight:400;margin:22px 0}dialog p{font-family:'Cormorant Garamond',serif;font-size:21px;line-height:1.5}.modal-button{display:block;width:100%;border-top:1px solid #e4dfc333;padding:16px 0;text-align:left;font-size:12px}.modal-button:hover{color:var(--gold)}.modal-button.danger{color:#d3aa93}dialog label{font-size:12px;display:flex;gap:15px;align-items:center;margin:22px 0}dialog input[type=range]{accent-color:var(--gold);flex:1}dialog input[type=checkbox]{accent-color:var(--gold)}.journal-tabs{display:flex;gap:25px;border-bottom:1px solid #e4dfc333}.journal-tabs button{font-size:11px;padding:12px 0;color:#bbc8b7}.journal-tabs button.active{color:var(--gold);border-bottom:1px solid var(--gold)}.journal-entry{padding:18px 0;border-bottom:1px solid #e4dfc322}.journal-entry h3{font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);font-weight:400;margin:0 0 8px}.journal-entry p{margin:0;font-size:20px}.bond{font-family:'DM Sans',sans-serif!important;font-size:10px!important;letter-spacing:.08em;color:#abbca7;margin-top:9px!important}.toast{position:absolute;right:4.2%;top:86px;font-size:10px;letter-spacing:.1em;padding:10px 15px;background:#09231bd9;opacity:0;transition:opacity .3s;pointer-events:none}.toast.visible{opacity:1}#restore-ui{position:absolute;bottom:30px;right:4%;padding:12px 15px;background:#06251bd0;font-size:11px;letter-spacing:.1em}#restore-ui span{margin-left:15px;color:var(--gold)}.art-only #topbar,.art-only #title-screen,.art-only #game,.art-only #ending,.art-only #footer,.art-only .shade,.art-only .motes{display:none!important}.art-only .scene{transform:none}.no-motion *{animation:none!important;transition:none!important}.fading{animation:appear .5s ease}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,100%{opacity:0;transform:translate(0,20px)}30%,65%{opacity:.6}90%{transform:translate(45px,-170px)}}@keyframes wave{from{transform:scaleY(.4)}to{transform:scaleY(1)}}@media(min-width:1600px){.game{bottom:115px;gap:100px}.actions{flex-basis:430px}.choice{font-size:14px;padding:21px 0}}@media(max-width:900px){#chapter-top{display:none}#topbar{padding:25px 6%}.title-screen{left:8%;}.title-screen h1{font-size:22vw}.game{left:7%;right:7%;gap:35px;bottom:85px}.dialogue{font-size:calc(27px*var(--text-scale))}.actions{flex-basis:280px}.choice{font-size:11px;padding:14px 0}.scene-meta{margin-bottom:16px}.footer-dash{margin:0 8px}#footer-left{max-width:55%}.playing #key-hint{display:none}.title-detail{font-size:7px}}@media(max-width:600px){#novel{min-height:520px}#topbar{padding:22px 6%;gap:12px}.wordmark{font-size:22px;gap:10px}.eclipse{width:19px;height:19px}nav{gap:20px}.sound{font-size:8px}.sound-bars{gap:2px}.title-screen{left:8%;right:8%;top:51%;transform:translateY(-34%)}.title-screen h1{font-size:23.3vw;margin:25px 0}.eyebrow{font-size:8px;letter-spacing:.2em}.title-star{right:-5px;top:5%;font-size:20px}.title-copy{font-size:27px;margin-bottom:30px}.title-actions{gap:10px 25px}.begin{min-width:200px;padding:15px 20px}.title-detail{font-size:6.8px;letter-spacing:.1em;margin-top:21px}#footer{padding:15px 6%;align-items:flex-end}#footer-left{font-size:6px!important;line-height:1.8;max-width:55%}.footer-tools{gap:15px}#footer .micro{font-size:7px}#fullscreen{display:none}.scene{background-position:62% center}.shade{background:linear-gradient(0deg,#02110fe3,rgba(2,17,16,.45) 40%,transparent 80%),linear-gradient(90deg,#02110f50,transparent)}.game{display:block;left:7%;right:7%;bottom:70px;max-height:58svh;overflow-y:auto;padding-top:20px;scrollbar-width:thin}.passage{max-width:none}.dialogue{font-size:calc(25px*var(--text-scale));line-height:1.28;min-height:0}.speaker{font-size:10px;margin-bottom:12px}.scene-meta{font-size:8px;margin-bottom:16px}.actions{margin-top:22px}.choice{font-size:11px;padding:13px 0}.advance{margin-top:12px;padding:5px 0}.playing .scene{background-position:87% center}.playing .shade{background:linear-gradient(0deg,#02110f 0%,#02110fe6 23%,#02110f6b 51%,transparent 77%),linear-gradient(180deg,#02110f88,transparent 23%)}.playing #journal-btn{font-size:8px;letter-spacing:.08em}.playing #journal-btn #note-count{display:none}.playing #sound-label{display:none}.playing nav{gap:24px}.playing #footer-left{font-size:11px!important}.ending{left:8%;right:8%;transform:translateY(-35%)}.ending h2{font-size:52px}.ending .end-copy{font-size:22px}.ending .end-stats{font-size:8px}.ending-mode .scene{background-position:65% center}dialog{padding:24px}.footer-dash{display:none}.title-screen~#footer .footer-dash{display:inline}.title-screen~#footer #footer-left{font-size:6px}.journal-entry p{font-size:19px}}@media(max-height:620px) and (min-width:601px){#novel{min-height:420px}#topbar{padding-top:18px}.title-screen{transform:translateY(-40%)}.title-screen h1{font-size:115px;margin:10px 0}.title-copy{font-size:25px;margin-bottom:20px}.title-detail{margin-top:15px}.game{bottom:65px}.dialogue{font-size:25px}.scene-meta{margin-bottom:12px}.choice{padding:10px 0}#footer{padding-bottom:12px}.ending h2{font-size:50px}.ending .end-copy{font-size:21px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Keep long epilogues and their controls above the persistent footer. */
.ending{top:16%;bottom:90px;transform:none;overflow-y:auto;padding:0 18px 18px 0;scrollbar-width:thin}.ending h2{font-size:clamp(46px,5vw,70px)}.ending .end-copy{font-size:23px;line-height:1.35}.ending .end-stats{margin:20px 0}.ending .title-actions{margin-top:20px}
@media(max-width:600px){.ending{top:15%;bottom:75px;transform:none}.ending h2{font-size:46px}.ending .end-copy{font-size:21px}}
@media(max-height:620px) and (min-width:601px){.ending{top:100px;bottom:65px;transform:none}.ending h2{font-size:46px}.ending .end-copy{font-size:21px}}
/* Paired full-frame plates dissolve without dimming the character or setting. */
#landscape{position:absolute;inset:0;z-index:-5;transform:scale(1.025);animation:landscape-drift 28s ease-in-out infinite alternate;pointer-events:none}
#landscape .scene{z-index:auto;transform:none;transition:none;background-position:var(--scene-position,center) center}
#landscape .scene-next{opacity:0;background-image:none}
@keyframes landscape-drift{from{transform:scale(1.025) translateY(0)}to{transform:scale(1.05) translateY(-.4%)}}
.no-motion #landscape{animation:none;transform:none}.art-only #landscape{animation:none;transform:none}
.cinematic .passage{max-width:650px}.cinematic .dialogue{font-weight:400;font-size:calc(clamp(24px,2.2vw,31px)*var(--text-scale))}.cinematic .speaker{opacity:.75}
.gallery-modal{width:min(1220px,94vw);max-height:90svh;padding:27px 34px 30px;background:#081c18f5}
.gallery-modal h2{font-size:42px;margin:18px 0 12px}.gallery-intro{font-family:'DM Sans',sans-serif;font-size:10px;line-height:1.6;letter-spacing:.06em;color:#bfc9b6;margin:0 0 19px}
.gallery-tabs{display:flex;gap:26px;border-bottom:1px solid #d7b78a44;margin-bottom:22px}.gallery-tabs button{font-size:10px;letter-spacing:.1em;padding:12px 0;color:#bdcbb8}.gallery-tabs button.active{color:var(--gold);border-bottom:1px solid var(--gold)}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 20px;margin-bottom:30px}.gallery-card{padding:0;text-align:left;display:block;min-width:0}.gallery-card img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block;background:#0d2b23;border:1px solid #c3b58b25;transition:filter .2s}.gallery-card:hover img{filter:brightness(1.12)}.gallery-card .gallery-caption{font-family:'Cormorant Garamond',serif;font-size:21px;display:block;margin-top:9px;line-height:1.15}.gallery-category{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.16em;color:var(--gold);margin-top:6px}
.gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 18px}.gallery-toolbar .text-link{font-size:10px;padding:8px 0}.gallery-toolbar .micro{color:var(--gold);font-size:9px}.gallery-arrows{display:flex;gap:12px}.gallery-arrows button{font-size:23px;border:1px solid #d7b78a55;width:37px;height:35px}.gallery-arrows button:hover{background:#d7b78a22}
.gallery-figure{margin:0;touch-action:pan-y}.gallery-figure img{width:100%;height:min(56vh,620px);object-fit:contain;display:block;background:#03110e}.gallery-figure figcaption{font-family:'Cormorant Garamond',serif;font-size:20px;line-height:1.4;color:#d8dfcb;margin-top:15px;max-width:850px}.gallery-preview-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:18px}.gallery-preview-footer .micro{font-size:8px;color:var(--gold)}.gallery-preview-footer a{color:var(--ivory);text-decoration:none;font-size:10px}.gallery-preview h2{font-size:35px}
#overlay .soundtrack-now{font-family:'DM Sans',sans-serif;font-size:9px;letter-spacing:.14em;color:var(--gold)}.slider-value{font-size:10px;color:var(--gold);width:35px;text-align:right}dialog select{min-width:0;flex:1;border:1px solid #d7b78a55;background:#102a23;color:var(--ivory);font-size:11px;padding:10px}#overlay .settings-help{font-family:'DM Sans',sans-serif;font-size:11px;line-height:1.8;color:#bfc9b6}
@media(min-width:601px){#landscape .scene{background-position:center center}}
@media(max-width:800px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-modal{padding:23px}.gallery-card .gallery-caption{font-size:20px}}
@media(max-width:600px){.gallery-modal{width:94vw;padding:20px;max-height:92svh}.gallery-modal h2{font-size:32px;margin-top:18px}.gallery-intro{font-size:9px}.gallery-grid{gap:23px 13px}.gallery-card .gallery-caption{font-size:18px}.gallery-category{font-size:7px;letter-spacing:.08em}.gallery-tabs{gap:22px}.gallery-tabs button{font-size:9px}.gallery-toolbar{gap:12px}.gallery-toolbar .text-link{font-size:9px}.gallery-figure img{height:auto;max-height:57svh;min-height:150px}.gallery-figure figcaption{font-size:19px}.gallery-preview-footer{align-items:flex-start}.gallery-preview-footer .micro{font-size:7px}.gallery-preview h2{font-size:29px}.cinematic .dialogue{font-size:calc(25px*var(--text-scale))}}
@media(max-width:350px){.gallery-grid{grid-template-columns:1fr}dialog label{gap:8px;font-size:10px}}
@media(prefers-reduced-motion:reduce){#landscape{animation:none;transform:none}}

/* Keep the expanded gallery navigation within narrow screens. */
.gallery-tabs{flex-wrap:wrap;gap:0 26px}
@media(max-width:600px){.gallery-tabs{gap:0 20px}}
