/* SHIRAI NAGI | OFFICIAL MOBILE UI 2.0 | v61.1.134
   Scoped, additive presentation. Existing CMS variables and functional controls stay intact. */
html.sn134-on { scroll-padding-top:110px; }
html.sn134-on :is(a,button,input,select,textarea):focus-visible { outline:2px solid #c2e7f4; outline-offset:3px; }
html.sn134-on .sn134-explore { display:none; }
html.sn134-on .sn134-backtop { position:fixed; right:17px; bottom:calc(20px + env(safe-area-inset-bottom,0px)); width:48px; height:48px; border:1px solid #b3d7e078; border-radius:50%; background:#09131aeb; color:#e1f0f7; font:20px/1 system-ui,sans-serif; box-shadow:0 12px 28px #0008; z-index:990; display:grid; place-items:center; opacity:0; visibility:hidden; pointer-events:none; transform:translateY(8px); transition:opacity .2s,transform .2s,visibility .2s; }
html.sn134-on .sn134-backtop.is-visible { opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0); }
html.sn134-on .sn134-reader-toolbar { display:flex; align-items:center; gap:8px; padding:0 0 18px; margin-bottom:18px; border-bottom:1px solid #b1d2df30; font:12px/1.4 system-ui,sans-serif; }
html.sn134-on .sn134-reader-toolbar .sn134-size-label { color:#a6bdc8; margin-right:auto; }
html.sn134-on .sn134-reader-toolbar button { display:inline-flex; justify-content:center; align-items:center; min-width:44px; min-height:44px; padding:8px 12px; background:#0d1a23; color:#e1ecf1; border:1px solid #8aafc04e; border-radius:5px; cursor:pointer; }
html.sn134-on .reader-overlay.sn134-reader .reader-prose p { font-size:var(--sn134-reader-font,16px)!important; line-height:2.04!important; letter-spacing:.025em; overflow-wrap:anywhere; }
html.sn134-on .reader-overlay.sn134-reader .reader-prose :is(h2,h3) { line-height:1.55; overflow-wrap:anywhere; }
html.sn134-on .reader-overlay.sn134-reader .sn134-chapter-toggle { display:none; }
@media (max-width:880px) {
 html.sn134-on { scroll-padding-top:96px; }
 html.sn134-on body { max-width:100%; overflow-x:clip; }
 html.sn134-on .site-header { box-shadow:0 8px 28px #0007; }
 html.sn134-on .site-header.is-menu-open>.nav { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px!important; padding:16px var(--cms-mobile-header-padding,18px) calc(26px + env(safe-area-inset-bottom,0px))!important; max-height:calc(100dvh - var(--cms-mobile-header-height,78px) - 8px); align-content:start; }
 html.sn134-on .site-header.is-menu-open>.nav a { min-height:52px!important; box-sizing:border-box; padding:11px 13px!important; border:1px solid #95c5d031!important; border-radius:5px; background:#12202a8c; display:flex; font-size:12px!important; letter-spacing:.08em; text-align:left; justify-content:flex-start; }
 html.sn134-on .site-header.is-menu-open>.nav a:focus-visible,html.sn134-on .site-header.is-menu-open>.nav a:hover { background:#213946; border-color:#bad8e873!important; }
 html.sn134-on .site-header.is-menu-open>.nav a[href='/fanclub/'] { border-color:#96cadd66!important; background:#163041; }
 html.sn134-on .hero { min-height:min(100svh,810px); padding-inline:clamp(20px,5vw,34px); }
 html.sn134-on .hero-copy { max-width:600px; }
 html.sn134-on .hero-lead { color:#d2dde2; text-shadow:0 2px 12px #000d; line-height:1.95; }
 html.sn134-on .hero-actions a { min-height:48px; }
 html.sn134-on .sn134-explore { display:block; padding:20px clamp(18px,5vw,36px) 24px; border-top:1px solid #acc7d42e; border-bottom:1px solid #acc7d42e; background:linear-gradient(110deg,#0b1720,#090f16); }
 html.sn134-on .sn134-explore>p { margin:0 0 12px; color:#8faebb; font:600 10px/1.4 system-ui,sans-serif; letter-spacing:.2em; }
 html.sn134-on .sn134-explore-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
 html.sn134-on .sn134-explore-links a { display:flex; align-items:center; justify-content:center; gap:5px; text-align:center; min-height:46px; padding:9px 5px; border:1px solid #b1d2df44; color:#d1e4ec; background:#10202a; font:600 11px/1.35 system-ui,sans-serif; letter-spacing:.06em; }
 html.sn134-on :is(#news,#profile,#discography,#podcast,#youtube,#projects-feature,#novels,#gallery,#wishlist,#support-tip,#contact) { scroll-margin-top:calc(var(--cms-mobile-header-height,78px) + 18px); }
 html.sn134-on :is(.section-heading,.news-section,.profile-section,.discography-section,.stories-section,.gallery-section,.contact-section) { min-width:0; }
 html.sn134-on :is(.section-heading h2,.novel-card h3,.release-copy h3) { overflow-wrap:anywhere; text-wrap:pretty; line-height:1.4; }
 html.sn134-on :is(.section-heading p,.release-copy p,.novel-card-copy p,.contact-intro p) { overflow-wrap:anywhere; }
 html.sn134-on #discography .music-tools { gap:12px; }
 html.sn134-on #discography .music-filters { display:flex!important; flex-wrap:nowrap; gap:8px; width:100%; padding:3px 1px 8px; overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
 html.sn134-on #discography .music-filters button { flex:0 0 auto; min-height:44px; padding:9px 15px; font-size:12px; white-space:nowrap; }
 html.sn134-on #discography .music-search { width:100%; max-width:none; }
 html.sn134-on #discography .music-search input { box-sizing:border-box; width:100%; min-height:48px; font-size:16px!important; }
 html.sn134-on #discography .song-summary { min-height:84px; }
 html.sn134-on #discography .song-title-wrap strong { font-size:clamp(14px,3.7vw,17px); line-height:1.5; }
 html.sn134-on #novels .novel-actions { display:flex; flex-wrap:wrap; gap:9px; }
 html.sn134-on #novels .novel-actions :is(a,button),html.sn134-on #gallery .novel-actions a { min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
 html.sn134-on #gallery .gallery-lock-card { min-width:0; }
 html.sn134-on #gallery .gallery-lock-card :is(h3,p) { overflow-wrap:anywhere; }
 html.sn134-on #contact .contact-form :is(input,select,textarea) { box-sizing:border-box; max-width:100%; width:100%; min-height:48px; padding:12px 14px; font-size:16px!important; line-height:1.5; }
 html.sn134-on #contact .contact-form textarea { min-height:156px; }
 html.sn134-on #contact .contact-form :is(button[type=submit],.consent-toggle) { min-height:52px; touch-action:manipulation; }
 html.sn134-on #contact .contact-form label>span { line-height:1.65; }
 html.sn134-on .sn134-backtop.is-visible { display:grid; }
 html.sn134-on .reader-overlay.sn134-reader .sn134-chapter-toggle { display:inline-flex; }
 html.sn134-on .reader-overlay.sn134-reader .chapter-nav { display:none!important; }
 html.sn134-on .reader-overlay.sn134-reader.sn134-chapters-open .chapter-nav { display:flex!important; max-height:35vh; }
 html.sn134-on .reader-overlay.sn134-reader .reader-body { padding-top:18px; }
 html.sn134-on .reader-overlay.sn134-reader .reader-prose p { font-size:var(--sn134-reader-font,16px)!important; line-height:2.12!important; }
}
@media (max-width:380px) { html.sn134-on .sn134-explore-links { grid-template-columns:repeat(2,minmax(0,1fr)); } html.sn134-on .sn134-reader-toolbar button { padding-inline:8px; } }
@media (prefers-reduced-motion:reduce) { html.sn134-on .sn134-backtop { transition:none; } html.sn134-on { scroll-behavior:auto!important; } }

/* SHIRAI NAGI v61.1.135 — Mobile UX Refinement (scoped, additive) */
html.sn134-on .sn134-reader-toolbar .sn134-chapter-toggle[hidden]{display:none!important}
html.sn134-on .sn134-reader-toolbar button:disabled{opacity:.45;cursor:default}
html.sn134-on .sn134-reader-toolbar .sn134-size-label{font-size:12px}
@media(max-width:880px){
 html.sn134-on .site-header.is-menu-open>.nav{max-height:calc(100dvh - 78px)!important;overflow-y:auto!important;padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))!important}
 html.sn134-on .site-header.is-menu-open>.nav a{min-height:54px!important;font-size:14px!important;line-height:1.45!important;letter-spacing:.04em!important;overflow-wrap:anywhere}
 html.sn134-on .sn134-explore-links a{min-height:48px!important;font-size:13px!important;line-height:1.35!important;padding:10px 6px!important}
 html.sn134-on #discography .music-filters button{min-height:46px!important;font-size:13px!important;padding-inline:16px!important}
 html.sn134-on .reader-overlay.sn134-reader .sn134-reader-toolbar{position:sticky;top:0;z-index:5;background:rgba(8,18,27,.97);padding:10px 5px 12px;margin-bottom:22px;border-bottom:1px solid rgba(174,208,225,.28)}
 html.sn134-on .reader-overlay.sn134-reader .chapter-nav button{min-height:48px;font-size:13px;line-height:1.55}
 html.sn134-on .reader-overlay.sn134-reader .reader-prose p{line-height:2.0!important}
 html.sn134-on .sn134-backtop{right:14px;bottom:calc(18px + env(safe-area-inset-bottom,0px))}
 html.sn134-on #contact :is(input,textarea,select){max-width:100%;font-size:16px!important}
}
@media(max-width:660px){
 html.sn134-on #gallery .gallery-grid .gallery-item{background:#0d1922}
 html.sn134-on #gallery .gallery-grid .gallery-item img{object-fit:contain!important;filter:saturate(.82) brightness(.92)}
 html.sn134-on .lightbox figure img{max-height:calc(100dvh - 165px);max-width:100%}
 html.sn134-on .lightbox-close{min-width:44px;min-height:44px;top:calc(14px + env(safe-area-inset-top,0px));right:calc(12px + env(safe-area-inset-right,0px))}
 html.sn134-on .lightbox-arrow{min-width:44px;min-height:44px}
}
html.sn134-on body:has(.reader-overlay) .sn134-backtop,
html.sn134-on body:has(.lightbox) .sn134-backtop,
html.sn134-on body:has(input:focus) .sn134-backtop,
html.sn134-on body:has(textarea:focus) .sn134-backtop{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
@media(prefers-reduced-motion:reduce){html.sn134-on .sn134-backtop{transition:none!important}}
