:root{font-family:Songti SC,"Noto Serif CJK SC",serif;color:#645342;background:#f4f0e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}#world{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none}header{position:fixed;top:0;left:0;width:100%;display:flex;align-items:center;justify-content:space-between;padding:calc(20px + env(safe-area-inset-top)) 26px 12px;pointer-events:none;z-index:4;letter-spacing:.2em;font-size:20px}header small{display:block;font:9px/2.2 sans-serif;letter-spacing:.3em;color:#9b8e7d}header button{pointer-events:auto;font-size:12px}button{font:inherit;color:inherit;background:#fff9edce;border:1px solid #b4a28b50;border-radius:4px;min-height:44px;padding:10px 20px;cursor:pointer;transition:background .2s}button:hover{background:#fffaf0}button:focus-visible,textarea:focus-visible{outline:2px solid #9a7548;outline-offset:4px}button:disabled{opacity:.45;cursor:default}.primary{background:#79654e;color:#fff7e8;border-color:#79654e}.primary:hover{background:#8b745b}.quiet{background:transparent;border-color:transparent;font-size:13px;color:#85715e}.dock{position:fixed;bottom:calc(28px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:min(92%,560px);text-align:center;z-index:2}.dock p{font-size:14px;line-height:1.8;margin:0 0 15px;text-shadow:0 1px 8px #fff}.actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.intro{bottom:12vh}.intro h1{font-size:32px;font-weight:400;letter-spacing:.3em;margin-bottom:12px}.eyebrow{font:10px/2 sans-serif;letter-spacing:.28em;color:#9a876b}.sheet{position:fixed;top:32%;left:50%;transform:translate(-50%);width:min(88%,490px);max-height:57%;overflow:auto;background:#fff0d5eb;box-shadow:0 8px 40px #80644012;padding:22px;border:1px solid #ddc6a440;z-index:3}.sheet h2{font-size:18px;font-weight:400;margin:0 0 14px}.sheet p{font-size:13px;line-height:1.9}.sheet textarea{width:100%;height:clamp(120px,24vh,260px);resize:none;border:0;background:transparent;font:18px/1.9 Songti SC,serif;color:#654932;padding:5px;outline:none}.sheet textarea::placeholder{color:#ad9476;font-size:16px}.sheet .body{white-space:pre-wrap;overflow-wrap:anywhere;max-height:30vh;overflow:auto;font-size:18px;line-height:1.9}.sheet footer{font:11px/1.7 sans-serif;color:#a28e78;margin:8px 0}.sheet .actions{margin-top:15px}.letter-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #a58c672a;padding:12px 0;font-size:13px}.settings{top:100px;max-height:65vh;background:#fffaf2f5}.settings label{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:9px 0;font-size:14px}.settings input{max-width:50%;accent-color:#8e7451}#notice{position:fixed;top:20%;left:50%;transform:translate(-50%);max-width:88%;width:max-content;text-align:center;background:#fff8ebeb;padding:12px 18px;font-size:13px;line-height:1.7;z-index:9;pointer-events:none;opacity:0;transition:opacity .3s}#notice.show{opacity:1}.privacy{font:11px/1.8 sans-serif!important;color:#9a8a76}.mode{position:fixed;top:100px;left:26px;font:10px sans-serif;letter-spacing:.1em;color:#9d7544}.hint{color:#8f7c67;font-size:12px}.error{color:#a04e34}.sheet input[type=checkbox]{accent-color:#8d704b}.vshort .sheet{top:22%;max-height:65%}.vshort .sheet textarea{height:100px}@media(max-height:520px){header{padding-top:10px}.sheet{top:22%;max-height:65%}.dock{bottom:10px}.intro h1{font-size:23px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.sheet.writing,.sheet.preview,.sheet.reading{top:53%;max-height:44%;padding:18px 20px}.sheet.writing textarea{height:clamp(85px,15vh,170px)}.sheet.writing h2{font-size:16px;margin-bottom:6px}.sheet.writing .actions{margin-top:6px}.sheet.reading .body,.sheet.preview .body{max-height:22vh}.vshort .sheet.writing{top:42%;max-height:55%;padding:12px}.vshort .sheet.writing textarea{height:85px}.vshort .sheet.writing h2{display:none}.dock.entry .quiet,.dock.walking .quiet,.dock.paused .quiet{color:#fff7e9;background:#37302bd9}.dock.walking p,.dock.paused p{color:#fff5e5;text-shadow:0 1px 5px #2b2320}@media(max-width:520px){.dock.entry{bottom:calc(58px + env(safe-area-inset-bottom))}}body:has(.dock.entry) header,body:has(.dock.walking) header{color:#f3eadb;text-shadow:0 1px 5px #262019}body:has(.dock.entry) header button,body:has(.dock.walking) header button{color:#645342;text-shadow:none}.sheet.ephemeral textarea{font-size:16px}.dock .actions button,.dock button{background:#f7f1e7;color:#3c3026;border-color:#89776466;min-height:46px}.dock .actions button.primary,.dock button.primary{background:#685542;color:#fff7e9;border-color:#685542}.dock.entry>p,.dock.hall>p,.dock.seated>p{background:#f7f1e7f5;color:#3c3026;border-radius:9px;padding:8px 12px;width:fit-content;margin-inline:auto;text-shadow:none}.dock.walking button,.dock.paused button{background:#40332b;color:#fff6e8}.sheet select{max-width:100%;min-height:44px;font-size:16px;padding:8px;color:#332a20;background:#f9f2e7}.sr-only:not(:focus-visible){position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.sheet.ephemeral,.sheet.burnConfirm{top:57%;max-height:40%}.sheet.ephemeral textarea{height:clamp(82px,14vh,150px)}.sheet.reading time{display:block;font:12px/1.6 sans-serif;color:#745b46}.doorway-text{position:fixed;top:32%;left:50%;width:min(86%,30rem);margin:0;transform:translate(-50%,.4rem);text-align:center;pointer-events:none;z-index:2;color:#fff3df;font-size:clamp(16px,2.5vw,23px);line-height:2.15;letter-spacing:.12em;text-shadow:0 2px 15px #25170e,0 0 30px #2c1f14;opacity:0;filter:blur(5px);transition:opacity .7s ease,filter .7s ease,transform .7s ease}.doorway-text.visible{opacity:1;filter:blur(0);transform:translate(-50%);transition-duration:1.8s}@media(prefers-reduced-motion:reduce){.doorway-text{transform:translate(-50%);filter:none}}.letter-paper{--paper-line: 2rem;position:relative;min-height:6.5rem;padding:.55rem 1.2rem;color:#514030;background:repeating-linear-gradient(to bottom,transparent 0 calc(var(--paper-line) - 1px),#91673925 calc(var(--paper-line) - 1px) var(--paper-line)) 0 .55rem / 100% 100% no-repeat,#fff8e6;box-shadow:inset 0 0 1.6rem #bd8c3320,0 .4rem 1.4rem #4a321524;border:1px solid #bc997b72;border-radius:2px 4px 3px 2px}.letter-paper .handwriting{display:block;margin:0;padding:0;font:19px/var(--paper-line) Kaiti SC,STKaiti,KaiTi,"Noto Serif CJK SC",serif;color:inherit;white-space:pre-wrap;overflow-wrap:anywhere}.letter-paper .body{max-height:23dvh}.sheet.reading .letter-paper{animation:unfold-paper .4s ease-out both;transform-origin:top}@keyframes unfold-paper{0%{transform:perspective(420px) rotateX(-14deg);opacity:.55}}@media(prefers-reduced-motion:reduce){.sheet.reading .letter-paper{animation:none}}.sheet.preview,.sheet.reading,.sheet.burnConfirm{background:none;border-color:transparent;box-shadow:none}.sheet.reading time,.sheet.reading .eyebrow,.sheet.preview .eyebrow{display:table;margin:.3rem auto;padding:.15rem .55rem;background:#fff8e6ec;color:#604b38;border-radius:3px}.dock :is(.scene-actions,.scene-secondary){gap:clamp(8px,2.8vw,16px);pointer-events:none}.dock :is(.scene-actions,.scene-secondary) button{pointer-events:auto;white-space:nowrap}.dock .scene-actions button{padding-inline:clamp(12px,3.8vw,20px)}.dock .scene-secondary{margin-bottom:10px}.dock .scene-secondary button{padding:7px 15px;min-height:44px;background:#f7f1e7e8;border-color:transparent}.dock .scene-secondary button:is(:hover,:focus-visible){border-color:#89776480}.dock:is(.hall,.walking,.paused,.seated,.groundSeated){pointer-events:none}.dock:is(.hall,.walking,.paused,.seated,.groundSeated) button{pointer-events:auto}.dock.walking .hint,.dock.paused p{width:fit-content;margin:0 auto 10px;padding:4px 10px;border-radius:4px;background:#40332bdf;color:#fff6e8;text-shadow:none}.sheet .quiet{color:#6b5844;font-size:14px}.sheet .quiet:hover{color:#54432f}.sheet input[type=checkbox]{width:20px;height:20px;margin:0 8px 0 0;accent-color:#6b5844}.settings a{display:inline-block;font-size:12px;color:#6b5844;margin:2px 0 6px;overflow-wrap:anywhere}.settings .credits{margin:2px 0 10px;font-size:12px;line-height:1.7;color:#736050}
