@font-face{font-family:Caveat;src:url('assets/caveat-medium-35a.ttf') format('truetype');font-display:swap}
.tool-description{position:fixed;z-index:100;width:max-content;max-width:min(260px,calc(100vw - 20px));padding:11px 14px;border:1px solid #bca47c80;border-radius:5px;background:#26352e;color:#f2eadb;box-shadow:0 6px 20px #0005;font:13px/1.5 Arial,sans-serif;text-align:left;letter-spacing:0}
.campaign-update{max-width:850px;margin:20px auto;padding:20px 14px;border-block:1px solid #bca47c60;display:flex;align-items:center;gap:24px}.campaign-update strong{font:21px/1.3 Georgia,serif;color:#eee4cf}.campaign-update p{font:14px/1.6 Arial,sans-serif;margin:8px 0 0;color:#b9c2b9}.campaign-update button{flex-shrink:0;background:#d4bf92;color:#1b2921;border:0;border-radius:4px;padding:12px 16px;font-size:14px}.chapter-progress{color:#d4bf92}.case-summary{padding-left:22px}.case-summary li{padding-bottom:8px}.case-summary small{display:block;color:#606c61}@media(max-width:560px){.campaign-update{margin:14px 12px;flex-direction:column;align-items:flex-start;gap:14px}.campaign-update button{width:100%}}
:root{color-scheme:dark;--ink:#282d29;--paper:#e8e5dd;--accent:#baa17b;--story-size:20px}
*{box-sizing:border-box;letter-spacing:0}body{margin:0;background:#161e1b;color:#e3e4dc;font-family:Arial,sans-serif}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b08740;outline-offset:5px}button svg,a svg{width:20px;height:20px;flex-shrink:0}.skip{position:fixed;top:-100px;left:20px;z-index:9;padding:12px;background:var(--paper);color:var(--ink)}.skip:focus{top:10px}
.topbar{max-width:1400px;margin:auto;min-height:88px;padding:18px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #ffffff18}.brand{font:22px Georgia,serif;text-decoration:none}.brand span{display:block;font:10px Arial,sans-serif;text-transform:uppercase;margin-top:7px;color:#a9b5ab}.topbar nav{display:flex;gap:10px}.tool{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #aab6ab35;border-radius:50%;background:transparent;color:inherit;text-decoration:none}.tool:hover{background:#aab6ab18}.tool.small{width:32px;height:32px;border:none}.tool.small svg{width:17px;height:17px}
.chapter-art{max-width:1328px;height:380px;position:relative;margin:26px auto 0;overflow:hidden}.chapter-art>img{width:100%;height:100%;object-fit:cover;object-position:50% 46%}.art-caption{position:absolute;bottom:0;left:0;right:0;padding:70px 36px 24px;background:linear-gradient(transparent,rgba(10,17,14,.94));text-shadow:0 2px 8px #000}.art-caption p{font-size:11px;text-transform:uppercase;margin:0 0 9px;color:#d0c3a8}.art-caption h1{font:42px/1.15 Georgia,serif;margin:0;color:#f1eee5}
.reading-tools{max-width:850px;margin:20px auto 12px;display:flex;justify-content:space-between;align-items:center;padding:0 14px;gap:12px}.reading-tools>div{display:flex;align-items:center;gap:7px}.save-status{font-size:11px;color:#a6b2a9}.text-size{font-size:12px;font-variant-numeric:tabular-nums;width:20px;text-align:center}
.scroll{max-width:850px;margin:0 auto 65px;background:var(--paper) url('assets/fantasy/scroll-41a.webp') center/100% 100%;color:var(--ink);box-shadow:0 20px 50px #0005;position:relative;min-height:580px}.scroll-content{padding:58px 72px 72px}.place{text-transform:uppercase;font:11px/1.5 Arial,sans-serif;color:#665c4c;margin:0 0 16px}.scroll h2{font:36px/1.2 Georgia,serif;font-weight:normal;margin:0 0 28px;text-wrap:balance;overflow-wrap:break-word}.prose{font:var(--story-size)/1.78 Georgia,'Times New Roman',serif}.prose p{margin:0 0 20px}.prose p:first-child:first-letter{font-size:1.65em;line-height:1}.scribe{margin:30px 0;padding:18px 0 18px 22px;border-left:2px solid #8d473e}.scribe-label{display:flex;gap:8px;align-items:center;text-transform:uppercase;font:10px Arial,sans-serif;color:#844c42}.scribe-label svg{width:15px;height:15px}.scribe p{font:18px/1.65 Georgia,serif;font-style:italic;margin:8px 0 0;color:#53584e}.choice-heading{font:10px Arial,sans-serif;text-transform:uppercase;color:#726d5e;margin:32px 0 10px}.choices{border-top:1px solid #72735e50}.choice{display:flex;width:100%;align-items:center;gap:16px;text-align:left;padding:18px 10px;border:0;border-bottom:1px solid #72735e40;background:transparent;color:var(--ink);font:16px/1.55 Arial,sans-serif;min-height:64px}.choice:hover{background:#677a6310;color:#672c27}.choice>span{flex:1}.choice svg{width:18px;height:18px;color:#8a5946}.choice .choice-number{font:12px Georgia,serif;color:#81796b;flex:0 0 20px}.scene-enter{animation:reveal .35s ease-out}@keyframes reveal{from{opacity:.2;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.ending{border-top:1px solid #8d473e70;margin-top:30px;padding-top:25px}.completion{font:24px/1.4 Georgia,serif;color:#5b372d}.ending-stats{font:13px/1.6 Arial,sans-serif}.end-actions{display:flex;flex-wrap:wrap;gap:10px}.end-actions button,.confirm-actions button{background:#233a30;color:#f4f0e5;border:1px solid #233a30;border-radius:4px;padding:13px 16px;display:inline-flex;gap:9px;align-items:center;font-size:14px;line-height:1.5}.end-actions button:not(:first-child){background:transparent;color:#233a30}.share-status{font-size:13px}.share-fallback{font-size:13px}.share-fallback input{width:100%;padding:12px;background:#fff9;color:var(--ink);border:1px solid #777}.error{font:16px/1.5 Arial,sans-serif;color:#812e2e}.shared-result{max-width:850px;margin:12px auto;padding:18px;background:#304136;font:14px/1.6 Arial,sans-serif}.shared-result p{margin:0 0 10px}.shared-result button{background:transparent;border:1px solid #c6b995;padding:8px 16px;color:#eee}
footer{max-width:1328px;margin:0 auto;padding:20px 20px 35px;display:flex;justify-content:space-between;gap:20px;color:#95a198;font-size:11px}dialog{background:#e8e7df;color:var(--ink);border:1px solid #899181;border-radius:6px;max-width:600px;width:calc(100% - 32px);max-height:85dvh;padding:28px;box-shadow:0 25px 90px #0008}dialog::backdrop{background:#08100dd9}dialog header{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #8c96833d;padding-bottom:15px}dialog h2{font:26px Georgia,serif;margin:0}dialog p{font:16px/1.7 Arial,sans-serif}.panel-content{padding-top:16px}.panel-content h3{font:20px Georgia,serif;margin:22px 0 12px}.panel-content ul{padding-left:22px;line-height:1.8}.panel-content li{margin:10px 0}.panel-content small{display:block;color:#606c61;font-size:13px}.confirm-actions{display:flex;gap:10px;flex-wrap:wrap}#cancel-reset{background:transparent;color:var(--ink)}.no-script{text-align:center;padding:30px} [hidden]{display:none!important}
@media(min-width:1600px){.chapter-art{height:400px}}
@media(max-width:900px){.chapter-art{margin-top:0;height:310px}.topbar{padding:16px 22px}.scroll{margin-left:20px;margin-right:20px}.reading-tools{margin-left:20px;margin-right:20px}.scroll-content{padding:50px 50px 65px}}
@media(max-width:560px){.topbar{padding:13px 14px;min-height:76px;gap:8px}.brand{font-size:17px;max-width:140px}.brand span{font-size:8px;line-height:1.4}.topbar nav{gap:3px}.tool{width:34px;height:34px}.tool svg{width:17px;height:17px}.chapter-art{height:255px}.chapter-art>img{object-position:40% 50%}.art-caption{padding:65px 20px 20px}.art-caption h1{font-size:30px;max-width:300px}.art-caption p{font-size:9px}.reading-tools{margin:14px 10px 8px;padding:0 2px}.save-status{font-size:10px;max-width:175px;line-height:1.5}.scroll{margin:0 8px 30px;background-size:auto 100%}.scroll-content{padding:36px 23px 45px}.scroll h2{font-size:29px;margin-bottom:22px}.prose{line-height:1.7}.scribe{padding-left:15px;margin:23px 0}.scribe p{font-size:17px}.choice{padding:15px 2px;gap:8px;font-size:15px}.choice .choice-number{flex-basis:16px}.choice-heading{margin-top:24px}footer{flex-direction:column;gap:8px;padding:20px}.end-actions{flex-direction:column}.end-actions button{justify-content:center}dialog{padding:22px}.shared-result{margin:10px}.text-size{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
.chapter-art>img{object-position:50% 8%}
#story-title:focus{outline:none}
.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
@media(min-width:901px){.art-caption{text-align:right}}
@media(max-width:560px){.chapter-art>img{object-position:40% 15%}}
/* Keep the rolled edges separate from the length of the chapter. */
.scroll{background:#e8e5dd url('assets/fantasy/paper-43a.webp') repeat;background-size:500px 500px}
.scroll::before,.scroll::after{content:'';position:absolute;left:0;right:0;height:42px;pointer-events:none;background-image:url('assets/fantasy/scroll-41a.webp');background-size:100% auto;background-repeat:no-repeat}
.scroll::before{top:0;background-position:center top}
.scroll::after{bottom:0;background-position:center bottom}
.scroll-content{position:relative;padding-top:65px}
@media(max-width:560px){.scroll-content{padding-top:46px}.scroll::before,.scroll::after{height:24px}}
