:root{--paper:#d6c8b6;--ink:#49404e;--muted:#84717c;--line:#9c899450}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#302d3e;color:#e9dfdb;font-family:"Courier New","Microsoft YaHei",monospace}button{font:inherit;cursor:pointer}button:active{transform:translateY(1px)}button:focus-visible{outline:2px solid #bca9c5;outline-offset:4px}#world{position:fixed;inset:0;display:block;width:100%;height:100%;touch-action:none;image-rendering:pixelated}.frame{position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 0 100px 25px #24202b70,inset 0 0 3px 2px #1d1c29;background:linear-gradient(0deg,#19172555,transparent 25%,transparent 80%,#19172522)}.grain{position:fixed;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0px,transparent 2px,#00000007 3px);opacity:.4}#transition{position:fixed;inset:0;background:#252131;pointer-events:none;opacity:0;transition:opacity .6s;z-index:5}#transition.fade{opacity:1}#title{position:fixed;left:8%;bottom:15%;text-shadow:1px 2px 2px #24202d55}#title .title-mark{font-size:11px;letter-spacing:3px;color:#eee0e2b0}h1{font-size:58px;font-weight:400;letter-spacing:13px;margin:20px 0 10px}#title p{font-size:10px;letter-spacing:5px;margin-bottom:34px;color:#d6c9d3}#enter{border:1px solid #e5d6db60;background:#3d344b88;color:#eadee0;padding:12px 22px;font-size:13px;letter-spacing:3px;min-width:180px}#enter:hover{background:#695772bb}#enter span{margin-left:30px}#title small{display:block;font-size:9px;letter-spacing:1px;margin-top:18px;color:#d4c5cf}header{position:fixed;top:26px;left:30px;right:30px;display:flex;align-items:center;justify-content:space-between;text-shadow:1px 1px #302b3d}header[hidden]{display:none}header b{font-size:16px;letter-spacing:5px;font-weight:400}header span{margin-left:20px;font-size:10px;color:#d0c2d0}#journalButton{background:#30283b55;border:1px solid #c9b4ca50;color:#e2d7db;padding:9px 14px;font-size:10px;letter-spacing:1px}#crosshair{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);font-size:24px;color:#fbf2e6a0;pointer-events:none}#prompt{position:fixed;left:50%;bottom:20%;transform:translateX(-50%);background:#e3d7ce;color:#403545;padding:8px 13px;box-shadow:3px 3px 0 #44374e88;font-size:13px;letter-spacing:2px;cursor:pointer}kbd{font:inherit;border:1px solid currentColor;padding:1px 4px;margin-right:9px;font-size:11px}#subtitle{position:fixed;left:50%;bottom:11%;transform:translateX(-50%);max-width:80%;width:max-content;font-size:12px;letter-spacing:2px;line-height:2;color:#efe2df;text-align:center;text-shadow:0 1px 5px #1b1423;opacity:0;transition:opacity .5s;pointer-events:none}#subtitle.show{opacity:1}#toast{position:fixed;left:50%;top:14%;transform:translateX(-50%);font-size:11px;letter-spacing:1px;line-height:1.8;max-width:80%;text-align:center;background:#3c3049dd;border:1px solid #d8c5d844;padding:10px 16px;opacity:0;transition:opacity .25s;z-index:30;pointer-events:none}#toast.show{opacity:1}footer{position:fixed;bottom:23px;left:30px;right:30px;display:flex;align-items:center;justify-content:space-between;color:#ddd1ddab;font-size:9px;letter-spacing:1px;text-shadow:1px 1px #302b3d}footer[hidden]{display:none}footer kbd{font-size:8px;margin-right:0}#sleepShortcut{border:0;background:none;color:inherit;font-size:9px;pointer-events:none}dialog{padding:0;border:0;background:none;color:var(--ink);width:min(850px,92vw);max-height:90vh;overflow:auto;box-shadow:0 20px 90px #18101a88}dialog::backdrop{background:#25202b55;backdrop-filter:blur(3px)}.book-cover{background:#675360;padding:12px 13px 8px;border:1px solid #927887;box-shadow:inset 0 0 0 3px #443341}.book-tabs{display:flex;gap:4px;padding-left:10px}.book-tabs button{border:0;background:#b8a694;color:#5b4752;padding:9px 19px;font-size:12px;letter-spacing:2px}.book-tabs button.active{background:#ded0bc;color:#453343}.book-tabs #closeBook{margin-left:auto;background:none;color:#e2cfc9;font-size:21px;padding:2px 12px}.book-pages{background:var(--paper);box-shadow:inset 0 0 30px #7d66542a}.tab-content{display:grid;grid-template-columns:1fr 1fr;min-height:445px}.tab-content[hidden]{display:none}.page{position:relative;padding:35px 37px 48px;background:repeating-linear-gradient(transparent,transparent 27px,#8c776b16 28px);background-position:0 19px;min-width:0}.page:first-child{border-right:1px solid #8b786344;box-shadow:inset -12px 0 16px -15px #4c343d}.page:last-child{box-shadow:inset 12px 0 16px -15px #4c343d}.page small{font-size:8px;letter-spacing:1px;color:#8c7780}.page h2{font-size:21px;font-weight:400;letter-spacing:2px;margin:15px 0 26px}.page h3{font-size:14px;letter-spacing:2px;font-weight:400;margin:5px 0 23px}.page p{font-size:11px;line-height:2.4;margin:15px 0}.page .handwriting{font-family:serif;font-size:23px;line-height:2;letter-spacing:3px;margin-top:35px}.ink-drawing{font-size:66px;text-align:right;color:#74667a;padding-right:30px;transform:rotate(-18deg)}.page .faint{color:var(--muted);font-size:10px;line-height:2}.page-no{position:absolute;bottom:16px;left:0;right:0;text-align:center;font-size:9px;color:#99817f}.book-bottom{display:flex;justify-content:space-between;font-size:8px;color:#d4bfc8;padding:9px 10px 1px;letter-spacing:1px}#entries{max-height:282px;overflow:auto}.entry{padding:0 0 13px;margin-bottom:16px;border-bottom:1px solid var(--line)}.entry small{font-size:8px;color:#8a7780}.entry p{font-size:11px;line-height:2;margin:7px 0 0}.paper-button{color:#5b4757;background:#bca79922;border:1px solid #9c849177;font-size:10px;letter-spacing:1px;padding:9px 11px}.paper-button:hover{background:#a18a8f22}.paper-button:disabled{opacity:.5;cursor:wait}.actions{display:flex;gap:7px;margin:18px 0 12px;flex-wrap:wrap}#dreamName{font-size:14px;letter-spacing:2px;margin-top:19px}#origin{font-size:8px;color:#887680;margin-top:6px}#palette{display:flex;flex-direction:column;gap:12px}.swatch{display:flex;align-items:center;gap:12px}.swatch i{width:32px;height:24px;border:1px solid #8c778044}.swatch b{font-size:11px;font-weight:400;letter-spacing:1px}.swatch small{display:block;font-size:8px;margin-top:3px}.swatch em{font-style:normal;font-size:8px;margin-left:auto;color:#887680}#reading{margin:16px 0 8px}.privacy{display:block;letter-spacing:0!important;font-size:8px!important}#meter{height:2px;background:#95818b22;margin:10px 0}#meter i{display:block;height:100%;width:0;background:#856985}label{display:block;font-size:11px;margin:20px 0}input[type=range]{display:block;width:100%;margin-top:15px;accent-color:#867087}.check{display:flex;align-items:center;gap:8px}input[type=checkbox]{accent-color:#867087}dl{font-size:11px}dt{margin-top:19px}dd{margin:6px 0;color:#887680;font-size:10px}#joystick,#touchInteract{display:none}#error{position:fixed;inset:25%;padding:30px;background:#302b3d;z-index:50}
@media(max-width:650px){#title{left:8%;bottom:17%}#title h1{font-size:45px}#title .title-mark{font-size:9px;letter-spacing:2px}#title p{font-size:8px;letter-spacing:3px}header{top:20px;left:20px;right:20px}header span{margin-left:12px;font-size:8px}#journalButton{font-size:9px;padding:8px}footer{left:20px;bottom:19px;right:20px;font-size:8px}footer>span{display:none}#prompt{bottom:26%;font-size:11px;white-space:nowrap}#subtitle{bottom:17%;font-size:10px;letter-spacing:1px}#joystick.enabled{display:block;position:fixed;left:28px;bottom:70px;width:76px;height:76px;border:1px solid #e1d1db44;border-radius:50%;background:#362a4322;touch-action:none}#joystick div{position:absolute;left:24px;top:24px;width:26px;height:26px;background:#d5c3d066;border-radius:50%;pointer-events:none}#touchInteract:not([hidden]){display:block;position:fixed;right:28px;bottom:85px;background:#d2c0cbbb;color:#42374c;border:1px solid #deced9;padding:12px 16px;font-size:11px}dialog{width:94vw;max-height:88vh}.book-cover{padding:8px}.book-tabs button{padding:8px 13px;font-size:10px}.tab-content{grid-template-columns:1fr;min-height:0}.page{padding:23px 25px 40px}.page:first-child{border-right:0;border-bottom:1px solid #8b786344;box-shadow:none}.page:last-child{box-shadow:none}.page .handwriting{font-size:19px;margin-top:15px}.ink-drawing{display:none}.page h2{font-size:18px;margin:12px 0 15px}.page h3{margin:0 0 16px}.book-bottom{font-size:7px}.page p{margin:10px 0}#entries{max-height:190px}}
@media(prefers-reduced-motion:reduce){#transition,#subtitle,#toast{transition:none}}

/* This file is folded into style.css by the local assembly script. */
#map{display:block;height:245px;margin:12px 0}#map svg{display:block;width:100%;height:100%}#inventory{display:flex;flex-wrap:wrap;gap:6px;font-size:10px;color:#826d7c;min-height:20px}#inventory span{border:1px solid #9d849455;padding:5px 8px;background:#a48b9120}.journal-subhead{margin:23px 0 15px!important}#entries{max-height:205px!important}details{font-size:10px;color:#897181;margin:16px 0}summary{cursor:pointer;letter-spacing:1px}#discoveries p{font-size:10px;line-height:1.8;margin:7px 0}#waypoints{position:fixed;inset:0;pointer-events:none}#waypoints span{position:absolute;transform:translate(-50%,-50%);font-size:10px;color:#eadbc2;background:#2e253c66;padding:5px 8px;white-space:nowrap;text-shadow:0 1px 3px #20172e}#lanternButton{position:fixed;right:30px;bottom:65px;border:1px solid #dfc99d66;color:#e7d5b7;background:#3c304b88;padding:9px 13px;font-family:inherit;font-size:11px}#lanternButton[hidden]{display:none}@media(max-width:650px){#map{height:230px}#lanternButton{bottom:150px;right:25px;font-size:10px}#inventory span{font-size:9px}#entries{max-height:250px!important}}
#title h1{font-size:clamp(36px,4.3vw,65px);letter-spacing:8px}#title p{letter-spacing:3px}#title small{font-size:11px;max-width:430px;line-height:2}#title #continueHint{font-size:9px;color:#e3cdb7}header b{font-size:15px;letter-spacing:3px}#journalButton{font-size:11px}#progress{font-style:normal;font-size:9px;margin-left:12px;letter-spacing:3px;color:#dfc9a9}#prompt{font-family:inherit;border:0;font-size:13px;white-space:nowrap;z-index:2}#prompt span{letter-spacing:1px}#prompt:before{content:'';position:absolute;width:1px;height:28px;background:#dfd1c7;left:50%;bottom:100%;opacity:.6}#prompt{bottom:23%}#goal{font-size:10px;letter-spacing:1px}#subtitle{bottom:12%;font-size:13px;max-width:80%;width:max-content;letter-spacing:1px;padding:3px 9px;background:#211c2d33}dialog{width:min(940px,94vw)}.tab-content{min-height:475px}.page{padding:38px 40px 45px}.page p{font-size:12px}.page .faint{font-size:11px}.page h2{font-size:23px}.page h3{font-size:15px}.paper-button{font-size:11px}#map{display:flex;flex-direction:column;gap:22px;margin-top:30px}#map>div{display:grid;grid-template-columns:34px 1fr;gap:7px 12px}#map i{grid-row:span 2;font-style:normal;font-size:27px;color:#837089;text-align:center}#map b{font-size:12px;font-weight:400;letter-spacing:1px}#map span{font-size:10px;color:#93818a}#entries{max-height:310px}.entry{padding-bottom:19px}.entry p{font-size:12px;line-height:2.2}.entry.empty{opacity:.6}.entry small{font-size:10px}#count{float:right;font-size:11px;color:#8f7b88}#reading{line-height:2.1}#ending{width:min(650px,92vw);background:#dcd0bb;border:10px solid #776271;box-shadow:0 30px 120px #1c162baa}#ending article{padding:35px 43px;background:repeating-linear-gradient(transparent,transparent 27px,#8c776b12 28px)}#ending small{font-size:8px;letter-spacing:2px;color:#8b7884}#ending h2{font-family:serif;font-size:29px;line-height:1.6;font-weight:400;margin:22px 0}#ending p{font-size:12px;line-height:2.3;color:#7a6575}#letterLines p{color:#514455}#endingColors{display:flex;margin:22px 0 12px;gap:6px}#endingColors i{width:29px;height:19px}#signature{display:block;text-align:right;font-size:11px;color:#907b83}#ending .actions{margin-top:28px}#returnRoom{margin-top:10px}.swatch b{font-size:12px}.swatch small{font-size:9px}.swatch em{font-size:9px}
@media(max-width:650px){#title h1{font-size:34px!important;letter-spacing:5px}#title p{font-size:7px;letter-spacing:1.5px}#title small{font-size:9px;max-width:270px}header b{font-size:12px;letter-spacing:1px}header span{font-size:8px}#journalButton{font-size:9px}#progress{display:none}.page{padding:25px 24px 40px}#map{gap:16px;margin-top:18px}#map b{font-size:11px}#entries{max-height:240px}.tab-content{min-height:0}.page h2{font-size:20px}.page p{font-size:11px}#subtitle{font-size:11px;bottom:20%;width:85%;max-width:85%;line-height:1.8}#prompt{font-size:11px;bottom:29%}#ending article{padding:20px 22px}#ending h2{font-size:24px}#ending p{font-size:11px}#goal{font-size:8px}.paper-button{font-size:10px}}

body.travelling header,body.travelling footer,body.travelling #crosshair,body.travelling #subtitle,body.travelling #lanternButton,body.travelling #exitMarkers{visibility:hidden}
