/* Full-height scrolling and a floating audio control: no reserved footer row. */
#game-scrollport{inset:0!important;overflow-anchor:none;scroll-behavior:auto}
body #bgm-controls.bgm-floating{position:fixed!important;inset:auto!important;right:auto!important;bottom:auto!important;left:var(--bgm-x,calc(100vw - 52px))!important;top:var(--bgm-y,calc(100dvh - 52px))!important;width:40px!important;max-width:40px!important;min-height:0!important;height:40px;margin:0!important;padding:0!important;display:block;background:transparent;border:0;box-shadow:none;pointer-events:none;transform:none!important;backdrop-filter:none;z-index:900;--bgm-safe-top:env(safe-area-inset-top,0px);--bgm-safe-right:env(safe-area-inset-right,0px);--bgm-safe-bottom:env(safe-area-inset-bottom,0px);--bgm-safe-left:env(safe-area-inset-left,0px)}
#bgm-controls.bgm-floating #bgm-launch{width:40px;height:40px;pointer-events:auto}
#bgm-controls.bgm-floating [hidden]{display:none!important}
#bgm-controls.bgm-floating #bgm-panel{position:fixed;inset:auto;box-sizing:border-box;margin:0;padding:10px;display:grid;gap:7px;pointer-events:auto;max-width:calc(100vw - 24px);overflow:auto;overscroll-behavior:contain;box-shadow:0 5px 24px #513b4130;z-index:1}
#bgm-panel .bgm-compact-header{position:sticky;top:-10px;padding:4px 0;background:#fff9f5;z-index:2}
#bgm-controls.bgm-floating #bgm-panel.bgm-mini{grid-template-columns:76px 42px minmax(50px,1fr) 30px;align-items:center;padding:2px;gap:3px;overflow:hidden}
.bgm-mini .bgm-compact-header{display:contents}
.bgm-mini .bgm-compact-header strong,.bgm-mini label,.bgm-mini #bgm-hint{display:none}
#bgm-panel.bgm-mini #bgm-track{grid-column:1;grid-row:1;font-size:12px;line-height:1.3;max-height:2.6em;overflow:hidden}
#bgm-panel.bgm-mini #bgm-toggle{grid-column:2;grid-row:1;font-size:0;padding:0;width:42px;height:var(--bgm-mini-height);min-height:0}
.bgm-mini #bgm-toggle:after{content:'OFF';font:12px/1 system-ui}.bgm-mini[data-enabled=true] #bgm-toggle:after{content:'ON'}
#bgm-panel.bgm-mini #bgm-volume{grid-column:3;grid-row:1;margin:0;height:var(--bgm-mini-height);min-height:0}
#bgm-panel.bgm-mini .bgm-compact-header button{grid-column:4;grid-row:1;font-size:0;padding:0;width:30px;height:var(--bgm-mini-height);min-height:0}
.bgm-mini .bgm-compact-header button:after{content:'×';font:20px/1 system-ui}
.book-common-nav{margin:18px auto 0;padding:0 7px;max-width:100%;box-sizing:border-box}
.book-common-nav .book-nav-replay{border:0;margin:0;padding:0}
.book-common-nav .book-title-return{margin-top:10px}
.book-common-nav .book-nav-explore>button{margin:0!important}
.book-common-nav .book-title-return{border-top:0;border-radius:30px}
.book-common-nav .book-nav-replay p{margin:8px 0;font-size:14px}
[data-page-ad="middle"]{margin:22px -17px 18px}
[data-page-ad="top"]{margin:0 -10px 18px}
[data-ending-ad-slot]{max-width:610px;margin:22px auto 0}
.ending-page-ad{text-align:center;display:flex;align-items:center;flex-direction:column}
.page-ad-label{font:12px/1.3 system-ui!important;margin:0 0 4px!important;color:#86636c}
.page-ad-content{position:relative;box-sizing:border-box;width:var(--ad-width);max-width:100%;min-height:var(--ad-height);line-height:0}
.page-ad-content>a{display:inline-flex;max-width:100%}.page-ad-content img{max-width:100%;height:auto;border-radius:0}.page-ad-content>img{position:absolute;right:0;bottom:0}
.page-ad-placeholder{height:var(--ad-height);display:flex;align-items:center;justify-content:center;border:1px dashed #c8a8af;background:#f5ebe5;color:#92777e;font:12px/1.4 system-ui}
.book-card .book-brand--small img{width:180px;height:77px;max-width:75%;margin:-5px auto 6px}
.book-hints .hint-header .book-brand--small img{margin:-5px auto 6px}
.book-share h2,.book-hints .hint-header h2{margin-top:4px}
.book-hints{width:auto;margin:0;overflow:hidden}
.book-hints .hint-header{padding:0 14px}
.book-hints .hint-copy{padding:0 12px}
.book-hints .hint-theme-card{padding:16px 6px}
.book-hints .hint-theme-card p,.book-hints .hint-copy h4,.book-hints .hint-reference,.book-hints .hint-notices p{text-align:center}
.book-hints .hint-line{display:block;text-wrap:wrap!important}
.book-hints .hint-phrase,.book-hints .hint-title-tail{white-space:nowrap}
.book-hints .hint-copy p{line-height:1.7;text-wrap:wrap;text-align:center}
.book-hints .hint-notices{margin-top:18px}.book-hints .hint-notices p{line-height:1.6}
.book-hints .hint-reference{margin-top:16px!important}
.ending-book .book-ending:not(.book-ending--unmet) .ending-prose p.married-story{max-width:none;text-align:center;text-wrap:wrap;overflow-wrap:normal}
.story-tail{white-space:normal}.text-phrase{white-space:nowrap}
.ending-book .book-small{line-height:1.5;margin:5px 0}
.share-copy-status:empty{display:none}.share-count{margin:4px 0 7px!important}
.share-status{line-height:1.5!important;margin:5px 0!important}
.ending-with-ad>.help-text{line-height:1.5;margin-top:10px!important}
@media(max-width:650px){.book-common-nav .book-nav-replay p{font-size:13px}.book-card .book-brand--small img{width:170px;height:72px}}
