/* Interactive marginal drawings, restrained cloth bookmarks, fixed portrait frames. */
.livingJournal .diaryCover{top:20px;max-height:calc(90vh - 40px);overflow:auto;padding-right:5px;scrollbar-width:thin}
.livingJournal .written{padding-bottom:calc(90vh - 80px)}
.livingJournal .diaryCover h2{font-size:28px;margin:13px 0}
.livingJournal .diaryCover>.diarySketch{margin:12px 0;gap:14px}.livingJournal .diaryCover>.diarySketch img{width:82px;height:82px}
.livingJournal .diaryCover>.pencil{font-size:13px;line-height:1.5}.livingJournal .diaryStamps{margin-top:12px;gap:5px}.livingJournal .diaryStamps span{padding:4px;font-size:9px}
.journalIndex{margin-top:20px;border-top:1px solid #ac8c5866;padding-top:14px}.journalIndex h3{font:20px Georgia;margin:0 0 7px}.journalIndex>p{font:12px/1.5 Georgia;color:#77603d;margin:0 0 12px}
.journalTabs{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.journalTabs button{position:relative;display:block;text-align:left;min-width:0;border:1px solid #ac8b4d88;border-left:4px solid #bba473;border-radius:2px 9px 2px 2px;background:#f7ebcf;color:#503c25;padding:8px 9px;margin:0;font:14px Georgia;box-shadow:0 2px 4px #5b3c2010}
.journalTabs button small{display:block;margin-top:3px;font:10px Georgia;color:#8a704b}.journalTabs button[aria-current=page]{background:#214252;color:#f5e2ad;border-color:#bb9550}.journalTabs button[aria-current=page] small{color:#dec490}.journalTabs button:disabled{opacity:.48;cursor:default}.journalTabs button:not(:disabled):hover{border-color:#75562a;box-shadow:0 2px 8px #5b3c2030}
.livingJournal .sketchButton{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;padding:0;margin:0;border:0;background:transparent;box-shadow:none;min-width:0;line-height:0;border-radius:12px;overflow:visible}.livingJournal .sketchButton:hover{background:#be9a4820}.sketchButton:focus-visible,.journalTabs button:focus-visible{outline:3px solid #9a793c;outline-offset:3px}.sketchButton img{pointer-events:none;flex:0 0 auto}.sketchInk{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#987038;stroke-width:1.1;pointer-events:none;opacity:0}.sketchInk path{stroke-dasharray:340;stroke-dashoffset:340}
.sketchPlaying .sketchInk{animation:inkFade 1.5s ease both}.sketchPlaying .sketchInk path{animation:inkTrace 1.2s ease both}
.sketchPlaying img{animation:sketchNod 1.4s ease both}.sketchPlaying[data-sketch=knight] img{animation:sketchKnight 1.4s ease both}.sketchPlaying[data-sketch=yarn] img,.sketchPlaying[data-sketch=redball] img{animation:sketchYarn 1.4s ease both}.sketchPlaying[data-sketch=compass] img{animation:sketchCompass 1.4s ease both}.sketchPlaying[data-sketch=paw] img{animation:sketchStamp 1.4s ease both}
.journalWriting{animation:journalInk 1s ease both}.livingJournal [tabindex="-1"]:focus{outline:none}
@keyframes sketchNod{0%,100%{transform:none}35%{transform:rotate(-7deg)}68%{transform:rotate(4deg)}}
@keyframes sketchKnight{0%,100%{transform:none}30%{transform:translate(0,-10px)}60%{transform:translate(10px,-10px)}82%{transform:translate(10px,0)}}
@keyframes sketchYarn{0%,100%{transform:none}40%{transform:translateX(7px) rotate(12deg)}75%{transform:translateX(-3px) rotate(-5deg)}}
@keyframes sketchCompass{0%,100%{transform:none}35%{transform:rotate(14deg)}65%{transform:rotate(-9deg)}85%{transform:rotate(3deg)}}
@keyframes sketchStamp{0%,100%{transform:none}25%{transform:scale(1.09)}43%{transform:scale(.95)}60%{transform:scale(1.02)}}
@keyframes inkTrace{to{stroke-dashoffset:0}}@keyframes inkFade{0%,100%{opacity:0}25%,75%{opacity:.7}}@keyframes journalInk{0%{filter:sepia(.65);opacity:.65}100%{filter:none;opacity:1}}
.gameCalm .sketchPlaying img,.gameCalm .sketchInk,.gameCalm .sketchInk path,.gameCalm .journalWriting{animation:none!important}.gameCalm .sketchInk{opacity:0}
@media(prefers-reduced-motion:reduce){.sketchPlaying img,.sketchInk,.sketchInk path,.journalWriting{animation:none!important}.sketchInk{opacity:0}}
@media(max-width:760px){.livingJournal .diaryCover{position:static;max-height:none;overflow:visible}.journalTabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:761px) and (max-height:820px){.livingJournal .diaryCover h2{font-size:24px;margin:8px 0}.livingJournal .diaryCover>.diarySketch{margin:8px 0}.livingJournal .diaryCover>.diarySketch img{width:60px;height:60px}.livingJournal .diaryCover>.pencil{font-size:12px}.journalIndex{margin-top:12px;padding-top:10px}.journalIndex h3{font-size:18px}.journalIndex>p{margin-bottom:8px}.journalTabs{gap:5px}.journalTabs button{padding:6px 8px;font-size:13px}.journalTabs button small{font-size:9px;margin-top:2px}}
