.encounters{position:absolute;z-index:8;right:28px;top:110px;display:flex;flex-direction:column;gap:8px}.encounters button{background:#f1eee3ed;border:1px solid #758e9d60;color:#1e4358;padding:10px 16px;text-align:left;font:12px 'Songti SC',serif;min-width:142px}.encounters button span{display:inline-block;margin-left:18px;color:#466b79;font:10px sans-serif}.encounters button:hover{background:#fff9e7}.encounters.in-flight button[data-memory]{display:none}dialog{color:#203e50;border:0;padding:0}dialog::backdrop{background:#081e32b8}.memory-book{width:min(720px,90vw);max-height:85svh;background:#f2eddf;padding:48px 48px 28px;box-shadow:0 20px 90px #0018}.close-book,.close-bench{position:absolute;right:18px;top:15px;color:#355767;background:none;border:0;font-size:12px;cursor:pointer}.book-page{font-size:11px;letter-spacing:.12em;margin-bottom:20px;color:#536b78}.memory-book h2,.workbench h2{font-size:clamp(24px,3vw,38px);font-weight:400;line-height:1.4;margin:0 0 22px}.book-prose{font-size:18px;line-height:2.1;color:#2e4b59}.memory-index{display:block;padding:18px 0;width:100%;text-align:left;border:0;border-bottom:1px solid #a3afb055;color:#203e50;background:none;font-size:18px}.memory-index small{display:block;font-size:13px;margin-top:8px;color:#5a6b72}#book-actions{display:flex;justify-content:space-between;gap:14px;margin-top:32px}#book-actions button,.bench-tools button{border:1px solid #274b5f;background:#254b62;color:#f6f0db;padding:12px 18px;font-size:13px}#book-actions button:disabled,.bench-tools button:disabled{opacity:.38;cursor:default}#book-actions button:first-child{background:none;color:#254b62}.workbench{width:min(1100px,94vw);max-height:92svh;background:#eeeadf;padding:42px 38px 25px;overflow:auto}.bench-copy{max-width:860px}.bench-copy h2{margin-bottom:8px}.bench-copy p{font-size:14px;line-height:1.8}#bench-hint{font-size:12px;margin:12px 0;color:#2f5969;min-height:22px}.fabric-area{max-width:760px;margin:20px auto;background:#c7b991;padding:8px;box-shadow:0 9px 26px #392d182e}.fabric-area canvas{width:100%;height:auto;aspect-ratio:3/2;touch-action:none}.bench-tools{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.bench-tools button{font-size:12px;padding:10px 13px}.bench-tools button[hidden]{display:none}#save-cloth{background:#8b603b;border-color:#8b603b}.top-controls{gap:8px}#journal-open{white-space:nowrap}.memory-book:focus,.workbench:focus{outline:none}@media(max-width:700px){header{padding:16px 5vw}header a{font-size:14px}header a span{font-size:9px}.top-controls{gap:0}.top-controls button{font-size:10px;padding:8px 6px}.encounters{top:81px;left:5vw;right:5vw;flex-direction:row;overflow-x:auto;gap:6px;scrollbar-width:thin;scrollbar-color:#446378 transparent;padding-bottom:5px}.encounters button{padding:8px 10px;white-space:nowrap;min-width:auto;font-size:11px}.encounters button span{display:none}#chapter-label{top:145px;font-size:10px}#invitation{max-width:86vw;white-space:normal;text-align:center;line-height:1.5}.memory-book{padding:45px 24px 24px;width:93vw}.book-prose{font-size:16px;line-height:1.95}.memory-book h2{font-size:25px}#book-actions button{padding:11px;font-size:12px}.workbench{padding:42px 18px 22px;width:95vw}.bench-copy p{font-size:13px}.fabric-area{margin:12px auto}.bench-tools{gap:7px}.bench-tools button{font-size:11px;padding:9px}.narrative{padding-top:12px}.narrative h1{font-size:25px}}
