.reading-cat{position:fixed;right:22px;bottom:96px;z-index:1;width:104px;height:112px;pointer-events:none;user-select:none}
.reading-cat[hidden],.reading-cat-bubble[hidden]{display:none!important}
.reading-cat-button{display:block;position:relative;width:100%;height:100%;padding:0;border:0;border-radius:28px;background:transparent;color:inherit;cursor:pointer;pointer-events:auto;-webkit-tap-highlight-color:transparent;touch-action:manipulation;filter:drop-shadow(0 5px 5px rgba(27,68,56,.14));transition:filter .18s}
.reading-cat-button:hover{filter:drop-shadow(0 7px 8px rgba(27,68,56,.22))}
.reading-cat-button:focus-visible{outline:2px solid var(--accent,#267a63);outline-offset:5px;background:var(--accent-soft,#e4f3eb)}
.reading-cat-art{display:block;width:100%;height:100%;overflow:visible}
.reading-cat-shadow{fill:#375f50;opacity:.12}
.reading-cat-closed-eyes{display:none}
.reading-cat.is-blinking .reading-cat-eyes{visibility:hidden}
.reading-cat.is-blinking .reading-cat-closed-eyes{display:inline}
.reading-cat-bubble{position:absolute;right:0;bottom:calc(100% + 10px);width:max-content;max-width:225px;padding:10px 14px;border:1px solid var(--border,#d7e4dd);border-radius:14px 14px 3px 14px;background:var(--surface,#fffdf6);color:var(--text,#284d41);box-shadow:0 8px 24px rgba(32,74,59,.09);font-size:12px;line-height:1.6;letter-spacing:.02em;white-space:normal;pointer-events:none}
.reading-cat-bubble:after{content:"";position:absolute;right:22px;bottom:-6px;width:9px;height:9px;border-right:1px solid var(--border,#d7e4dd);border-bottom:1px solid var(--border,#d7e4dd);background:var(--surface,#fffdf6);transform:rotate(45deg)}
[data-theme=dark] .reading-cat-button{filter:drop-shadow(0 4px 9px rgba(0,0,0,.26))}
[data-theme=dark] .reading-cat-shadow{fill:#b7dbc7;opacity:.1}
.reading-cat.is-small{right:11px;bottom:86px;width:72px;height:78px}
.reading-cat.is-small .reading-cat-bubble{max-width:190px;font-size:11px;padding:8px 11px}
@media(max-width:560px){.reading-cat{right:11px;bottom:86px;width:72px;height:78px}.reading-cat-bubble{max-width:190px;font-size:11px;padding:8px 11px}}
@media(prefers-reduced-motion:reduce){.reading-cat-button{transition:none}}

/* The mascot belongs to the home introduction, never to the reading overlay. */
.home-hero{position:relative}
.home-hero #home-cat-root{position:absolute;top:20px;right:0;width:104px;height:112px;z-index:2}
#home-cat-root[hidden]{display:none!important}
#home-cat-root .reading-cat,#home-cat-root .reading-cat.is-small{position:relative;inset:auto;width:100%;height:100%}
#home-cat-root .reading-cat-bubble{top:calc(100% + 10px);bottom:auto;right:0;border-radius:14px 3px 14px 14px}
#home-cat-root .reading-cat-bubble:after{top:-6px;bottom:auto;transform:rotate(225deg)}
@media(max-width:599px){.home-hero:has(#home-cat-root){padding-top:106px}.home-hero #home-cat-root{top:12px;right:0;width:72px;height:78px}}
