/* Reader 1.46: also embedded in the matching player bundle. */
.novel,.novel *,dialog[class^=novel-],dialog[class^=novel-] *{box-sizing:border-box}
.novel[hidden]{display:none!important}.novel-active header,.novel-active footer{display:none}.novel-active main{padding:12px 14px 0}.novel{max-width:700px;margin:auto;display:flex;flex-direction:column;min-height:calc(100dvh - 12px);color:#15332a}.novel-top{display:flex;justify-content:space-between;gap:10px}.novel button{font:inherit;cursor:pointer}.novel-top button{background:#ffffff0a;border:1px solid #ffffff30;border-radius:13px;color:#07583e;font-size:12px;min-height:38px;padding:8px 12px}.novel-progress{height:3px;background:#cfddd5;margin:12px 0 5px}.novel-progress i{height:100%;display:block;background:#d5a329}.novel-place{font-size:10px;line-height:1.5;color:#53675f;letter-spacing:.7px;margin:9px 0 5px}.novel h1{font-size:clamp(23px,6vw,30px);line-height:1.15;margin:5px 0 12px}.novel-stage{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:1.55;border-radius:16px;border:1px solid #ffffff25;background:#edf2e9;flex-shrink:0}.novel-artwork{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}.novel-speech{position:relative;background:#fffdf7;border:1px solid #c8d9cf;border-radius:18px;margin:38px 0 0;padding:18px;min-height:0;box-shadow:0 12px 28px #0002}.novel-speech-head{display:flex;align-items:center;min-height:24px;padding-left:74px;margin:0 0 12px}.novel .novel-portrait{display:none;position:absolute;top:-32px;left:16px;right:auto;bottom:auto;transform:none;width:64px;height:64px;border:2px solid #c3a56b;border-radius:50%;background-size:200% 200%;background-repeat:no-repeat;background-color:#fff8e9;box-shadow:0 3px 12px #0005;z-index:1}.novel .novel-portrait.visible{display:block}.novel-speaker{font-size:14px;font-weight:800;letter-spacing:.4px;color:#07583e;margin:0}.novel-speech>p:last-child{font-size:16px;line-height:1.55;margin:0}.novel-speech[data-speaker=player]{margin-left:12px;border-color:#d8b677;background:#f0f8ee}.novel-speech[data-speaker=player] .novel-portrait{left:auto;right:16px}.novel-speech[data-speaker=player] .novel-speech-head{padding-left:0;padding-right:74px;justify-content:flex-end}.novel-speech[data-speaker=player] .novel-speaker:after{content:' · YOU';font-size:9px;color:#617565}.novel-speech[data-speaker=narrator]{margin-top:12px;background:#f5f7ef;border-color:#d4dfd4}.novel-speech[data-speaker=narrator] .novel-speech-head{padding:0;min-height:0;margin-bottom:8px}.novel-speech[data-speaker=narrator] .novel-speaker{font-size:10px;color:#65776a;letter-spacing:1px}.novel h1:focus,.novel-speech:focus{outline:none}.novel-actions{display:flex;flex-wrap:wrap;align-items:center;position:sticky;bottom:0;z-index:8;background:linear-gradient(0deg,#f4f5ed 70%,#f4f5edee);padding:12px 0 calc(10px + env(safe-area-inset-bottom,0px));margin:8px 0 0;gap:8px}.novel-actions button{background:#ffcf38;color:#15332a;border:1px solid #d6b335;border-radius:13px;min-height:44px;padding:10px 15px;font-size:14px;font-weight:750}.novel-beats{font-size:11px;color:#65776a;margin-right:auto}.novel-actions .novel-open-choice{width:100%;min-height:52px;font-weight:800}.novel-change-reply{font-size:10px!important;min-height:30px!important;padding:5px 8px!important;background:transparent!important;border:1px solid #ffffff25!important;color:#41594c!important}.novel-status{font-size:10px;color:#53675f;text-align:center;min-height:18px;margin:0 0 10px}.novel-endnote{font-size:13px;line-height:1.5;color:#53675f;width:100%}.novel button:focus-visible{outline:2px dashed #eed7b2;outline-offset:3px}
.novel-detail{position:absolute;z-index:3;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:14px;border:1px solid #f4dec94d;border-radius:12px;background:#17182bef;color:#fff1dc;box-shadow:0 6px 20px #0004;left:6%;right:6%;bottom:12px}.novel-detail[hidden]{display:none}.novel-detail span{font-size:9px;letter-spacing:1px;color:#eecb8f;font-weight:800}.novel-detail strong{font-size:18px;line-height:1.2}.novel-detail p{font-size:12px;line-height:1.4;margin:0}.novel-detail.phone{left:33%;right:33%;top:14%;bottom:14%;padding:8px;background:#101b32ed;border:0;border-radius:8px;box-shadow:none}.novel-detail.phone strong{font-size:14px}.novel-detail.phone p{font-size:10px}.novel-detail.phone span{font-size:8px}.novel-detail.contract{background:#fff5dcf5;color:#28382f;border-color:#d4b67e}.novel-detail.contract span{color:#6f5533}.novel-detail.stitched{left:46%;right:auto;top:44%;bottom:auto;width:30%;height:16%;padding:0;border:0;box-shadow:none;background:transparent;transform:rotate(8deg);text-align:center}.novel-detail.stitched strong{font-family:Georgia,serif;font-size:clamp(11px,3vw,18px);letter-spacing:1px;color:#6b4b20;text-shadow:0 1px #fff7}.novel-detail.stitched span,.novel-detail.stitched p{display:none}
.novel-name,.novel-recap{background:#fffdf7;color:#15332a;border:1px solid #c8d9cf;border-radius:20px;padding:22px;max-width:440px;width:calc(100% - 32px);max-height:85dvh;overflow:auto}.novel-name::backdrop,.novel-recap::backdrop{background:#080714cf}.novel-name h2,.novel-recap h2{font-size:26px;margin-top:0}.novel-name p,.novel-recap li{font-size:15px;line-height:1.6;color:#53675f}.novel-name label{font-size:13px;font-weight:700;display:block;margin:22px 0}.novel-name input{display:block;width:100%;border:1px solid #9ab8a3;background:#fff;color:#fff;border-radius:11px;padding:14px;font:inherit;margin-top:9px}.novel-name button,.novel-recap button{font-size:13px;margin:5px 8px 0 0}.novel-recap ul{padding-left:20px}.novel-recap li{margin-bottom:10px}
.novel-choice-sheet{position:fixed;inset:auto 8px 8px;margin:0 auto;width:calc(100% - 16px);max-width:620px;max-height:calc(100dvh - 24px);padding:16px 0 0;border:1px solid #c8d9cf;border-radius:24px;background:#fffdf7;color:#15332a;box-shadow:0 15px 70px #0008;overflow:hidden;font-family:inherit}.novel-choice-sheet:not([open]){display:none}.novel-choice-sheet[open]{display:flex;flex-direction:column}.novel-choice-sheet::backdrop{background:#080912b8;backdrop-filter:blur(5px)}.novel-sheet-open{overflow:hidden}.novel-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;flex-shrink:0}.novel-sheet-kind{color:#41624e;font-size:10px;letter-spacing:1.3px;font-weight:800}.novel-choice-sheet h2{font-size:25px;line-height:1.2;margin:8px 18px 10px;outline:none;flex-shrink:0}.novel-sheet-close{min-height:34px!important;padding:6px 10px!important;background:transparent!important;color:#07583e!important;border:1px solid #ffffff30!important;font-size:11px!important;border-radius:10px;box-shadow:none!important}.novel-sheet-context{font-size:14px;line-height:1.45;margin:0 18px 14px;color:#53675f;max-height:20dvh;overflow:auto;flex-shrink:0}.novel-sheet-options{display:flex;flex-direction:column;gap:8px;overflow-y:auto;min-height:0;padding:0 14px 6px;overscroll-behavior:contain}.novel-choice-sheet .novel-option,.novel-choice-sheet .novel-option:hover,.novel-choice-sheet .novel-option:focus{display:block;width:100%;min-height:56px;padding:13px 15px;text-align:left;border:1px solid #b7cdbb!important;background:#f4f8ee!important;color:#15332a!important;border-radius:13px;font-size:14px;font-weight:650;line-height:1.4;box-shadow:none!important;transform:none!important;outline:none;-webkit-tap-highlight-color:transparent;flex-shrink:0}.novel-choice-sheet .novel-option:focus-visible{outline:2px dashed #07583e;outline-offset:-5px}.novel-choice-sheet .novel-option[data-selected=true]{background:#deefdb!important;border-color:#317351!important}.novel-choice-sheet .novel-option:disabled{opacity:.65}.novel-sheet-error{font-size:12px;line-height:1.4;color:#754528;min-height:16px;flex-shrink:0;padding:0 18px;margin:7px 0 12px}.novel-choice-sheet[data-kind=reply]{border-color:#d6b47c}.novel-choice-sheet[data-kind=reply] .novel-sheet-kind{color:#07583e}.novel-saved-option{margin:0;padding:15px 16px;border:1px solid #9ab8a3;border-radius:14px;font-size:14px;line-height:1.5;background:#f4f8ee;color:#15332a}
@media(min-width:700px){.novel-stage{max-height:340px;aspect-ratio:1.8}.novel-choice-sheet{bottom:24px}.novel-speech{padding:18px 22px}.novel-choice-sheet .novel-option{font-size:15px}}
@media(max-height:650px){.novel-choice-sheet{padding-top:10px;max-height:calc(100dvh - 16px)}.novel-choice-sheet h2{font-size:22px;margin:5px 16px 8px}.novel-sheet-context{font-size:13px;margin-bottom:10px;max-height:15dvh}.novel-choice-sheet .novel-option{font-size:13px;padding:10px 12px;min-height:48px}.novel-sheet-error{margin:5px 0 8px}}

/* 1.45: preserve the entire composition, then place choices directly under dialogue. */
.novel-stage{aspect-ratio:auto;max-height:none!important;background:#edf2e9}.novel-artwork{position:relative;inset:auto;width:100%;height:auto;object-fit:contain;max-height:52dvh}.novel-stage:has(.novel-artwork[hidden]){min-height:110px}.novel-speech{box-shadow:0 5px 18px #143b2408}.novel-top button{background:#fffdf7;border-color:#c8d9cf}.novel-progress{background:#cfddd5}.novel-portrait{border-color:#c3a56b}.novel-actions{background:linear-gradient(0deg,#f4f5ed 70%,#f4f5edee)}.novel-sheet-error{color:#754528}.novel-name input{color:#15332a}.novel-name::backdrop,.novel-recap::backdrop,.novel-choice-sheet::backdrop{background:#15332666}.novel-choice-sheet h2{color:#15332a}.novel-sheet-close{border-color:#b7cdbb!important}.novel-saved-option{color:#15332a}.novel-endnote{font-size:14px}.novel-hook{font-size:14px;font-weight:800;color:#07583e;line-height:1.45;width:100%;margin:5px 0}.novel-choice-sheet.inline-options[open]{position:static;inset:auto;width:100%;max-width:none;max-height:none;margin:12px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;display:block}.inline-options .novel-sheet-head,.inline-options .novel-sheet-context,.inline-options .novel-sheet-error:empty{display:none}.inline-options .novel-sheet-error{padding:0;margin:8px 0}.inline-options h2{margin:0 0 10px;font-size:18px;line-height:1.3;color:#07583e}.inline-options .novel-sheet-options{overflow:visible;padding:0;gap:9px}.inline-options .novel-option{font-size:14px;padding:12px 14px;min-height:48px;font-weight:700}.novel.decision-ready .novel-stage,.novel.reply-ready .novel-stage{margin-top:0}.novel.decision-ready .novel-artwork,.novel.reply-ready .novel-artwork{max-height:100px;width:100%;object-fit:contain}.novel.decision-ready .novel-top,.novel.reply-ready .novel-top{display:none}.novel.decision-ready .novel-progress,.novel.reply-ready .novel-progress{margin-top:2px}.novel.decision-ready h1,.novel.reply-ready h1{font-size:22px;margin-bottom:10px}.novel.decision-ready .novel-place,.novel.reply-ready .novel-place{font-size:9px}.novel.decision-ready .novel-speech,.novel.reply-ready .novel-speech{padding:14px;margin-top:30px}.novel.decision-ready .novel-speech[data-speaker=narrator],.novel.reply-ready .novel-speech[data-speaker=narrator]{margin-top:10px}.novel.decision-ready .novel-speech>p:last-child,.novel.reply-ready .novel-speech>p:last-child{font-size:15px;line-height:1.45}.novel.decision-ready .novel-actions,.novel.reply-ready .novel-actions{position:static;padding:8px 0;margin-top:0}.novel-detail.phone{top:14%;bottom:14%;font-size:12px}.novel-stage[data-shot=a2] .novel-artwork{max-height:none}.novel-stage[data-shot=a2]{max-width:460px;align-self:center;width:100%}.novel.decision-ready .novel-stage[data-shot=a2],.novel.reply-ready .novel-stage[data-shot=a2]{display:none}

html{color-scheme:light}body,body.reading{background:#f4f5ed;color:#15332a}.novel-choice-sheet.inline-options{overflow:visible}

/* Decision illustrations keep a useful size; crop toward the heads, never the centre. */
.novel.decision-ready .novel-stage,.novel.reply-ready .novel-stage{height:150px;max-height:none!important;aspect-ratio:auto}.novel.decision-ready .novel-artwork,.novel.reply-ready .novel-artwork{height:150px;max-height:none;width:100%;object-fit:cover;object-position:center top}.novel.decision-ready .novel-stage[data-shot=h2],.novel.reply-ready .novel-stage[data-shot=h2]{height:240px;background:#edf2e9}.novel.decision-ready .novel-stage[data-shot=h2] .novel-artwork,.novel.reply-ready .novel-stage[data-shot=h2] .novel-artwork{height:240px;object-fit:contain}.novel-speech>p:last-child{font-family:system-ui,-apple-system,sans-serif;font-weight:400}.novel-stage[data-shot=h2]{max-width:460px;width:100%;align-self:center}.novel-stage[data-shot=h2] .novel-detail.phone{top:12%;bottom:12%}

/* Cafe compositions remain whole at every decision. */
.novel-stage[data-shot^=i] .novel-artwork{object-fit:contain;object-position:center}.novel.decision-ready .novel-stage[data-shot^=i],.novel.reply-ready .novel-stage[data-shot^=i]{height:auto;aspect-ratio:1.8;background:#edf2e9}.novel.decision-ready .novel-stage[data-shot^=i] .novel-artwork,.novel.reply-ready .novel-stage[data-shot^=i] .novel-artwork{height:auto;max-height:190px;aspect-ratio:1.8;object-fit:contain}.novel .novel-top{padding-top:env(safe-area-inset-top,0px)}

/* The end card must follow the final line, never float over it. */
.novel[data-ending] .novel-actions{position:static;background:transparent;padding-top:12px}.novel[data-ending] .novel-endnote{margin-top:16px}
