html{height:100%;-webkit-text-size-adjust:100%}body{min-height:100%;overscroll-behavior-y:none}button,a,select{touch-action:manipulation}body.reader-mobile{background:#fff}.reader-mobile header{padding:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left));gap:6px}.reader-mobile header button,.reader-mobile header select{min-height:42px}.reader-mobile #surface{padding:0;overflow:auto;width:100%}.reader-mobile #scoreStage{margin:0 auto}.reader-mobile canvas{box-shadow:none}.reader-mobile .reader-layout{display:flex;flex-direction:column}.reader-mobile .player{position:static;order:1;width:calc(100% - 16px);margin:8px;padding:12px}.reader-mobile #status{padding:4px;margin:0;font-size:12px}.reader-mobile #title{flex-basis:100%;font-size:12px}.reader-mobile header #direct,.reader-mobile header #download{display:none}.reader-mobile header input{width:54px}.reader-mobile header select{max-width:115px}body.score-focus header,body.score-focus #status,body.score-focus .player{display:none!important}body.score-focus #surface{padding:0}body.score-focus canvas{box-shadow:none}#focusExit{display:none;position:fixed;right:max(8px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:20;padding:10px 14px;background:#20312ae8;color:white;border:1px solid #fff8;border-radius:30px}body.score-focus #focusExit{display:block}#shareDialog{max-width:min(92vw,480px);border:1px solid #ccc;border-radius:12px;padding:24px;background:#fffdf8;color:#20312a}#shareDialog::backdrop{background:#0008}#shareDialog img{display:block;width:min(100%,280px);height:auto;margin:16px auto}#shareDialog p{line-height:1.7;overflow-wrap:anywhere}#shareDialog button{padding:10px 14px;min-height:44px}#shareDialog a{overflow-wrap:anywhere}.mobile-share{margin:14px 0;padding:10px 15px;border:1px solid #d8d6ca;border-radius:6px;background:#fffdf8;color:#20312a}.reader-mobile #focusMode{flex:1}.reader-mobile #shareMobile{flex:1}@media(max-width:600px){.toolbar input,.toolbar select{width:100%;min-width:0}.stats{flex-wrap:wrap}.card{min-width:0}.notice{overflow-wrap:anywhere}}

#focusNavigation{display:none;position:fixed;left:max(8px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));z-index:20;gap:6px}#focusNavigation button{padding:10px;background:#20312ae8;color:white;border:1px solid #fff8;border-radius:30px}body.score-focus #focusNavigation{display:flex}

body.score-focus .reader-layout{display:block}body.score-focus #surface{width:100%}

body.app-reading{background:#fff;padding-bottom:70px}body.app-reading #focusExit,body.app-reading #focusNavigation{display:none!important}#touchReaderToolbar{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;align-items:center;justify-content:space-around;gap:4px;padding:8px 5px max(8px,env(safe-area-inset-bottom));background:#fffdf6f2;backdrop-filter:blur(15px);border-top:1px solid #ddd8ca}#touchReaderToolbar button,#touchReaderToolbar a{display:block;flex:1;max-width:150px;min-height:46px;padding:12px 5px;border:0;border-radius:9px;background:none;color:#234237;text-align:center;text-decoration:none;font-size:13px}#touchReaderToolbar button:nth-child(3){background:#233c35;color:#fff}#touchReaderToolbar button:disabled{opacity:.3}#touchReaderHeading{position:fixed;top:0;left:0;right:0;padding:max(9px,env(safe-area-inset-top)) 12px 8px;background:#fffffff0;color:#637467;font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;z-index:15;pointer-events:none}#touchReaderPage{position:fixed;bottom:calc(72px + env(safe-area-inset-bottom));right:10px;background:#fffdf5df;color:#637467;border-radius:15px;padding:5px 10px;font-size:11px;z-index:15}.app-reading #surface{padding-top:26px!important}body.score-focus.app-reading .player.sheet-open{display:block!important;position:fixed;top:auto;bottom:calc(70px + env(safe-area-inset-bottom));left:0;right:0;width:100%;margin:0;border-radius:20px 20px 0 0;max-height:70dvh;overflow:auto;z-index:25;box-shadow:0 -10px 45px #0003;padding:20px}.close-reader-sheet{display:block;width:100%;border:0;background:none;color:#617467;font-size:12px;margin-bottom:10px}.app-reading #surface.sheet-visible{filter:brightness(.8)}
