/* Mobile refinements, deliberately scoped to preserve each project's identity. */
.archive-terminal #archiveStage{touch-action:pinch-zoom}
.celestial-page .page-shell{overflow-y:hidden;scroll-snap-type:none}
.otu-shell,.page-shell{overscroll-behavior:contain}
.library-header #langToggle,.reader-tools #langToggle,.header-tools #langToggle{min-width:44px;min-height:44px;cursor:pointer}
.library-header #langToggle{background:transparent;color:inherit;border:1px solid currentColor}
@media(max-width:800px){body.reader-body .reader-header{grid-template-columns:44px minmax(0,1fr)}body.reader-body .reader-tools{grid-column:1/-1;justify-content:flex-end}.celestial-page .header-tools{display:flex}}
.project-play-link{gap:8px}
@media(max-width:800px){
  .studio-home .nav,.project-body .nav{gap:12px;flex-wrap:wrap;padding:12px 5vw}
  .studio-home .nav-links,.project-body .nav-links{gap:12px;flex-wrap:wrap}
  .studio-home .nav a,.project-body .nav a{display:inline-flex;align-items:center;min-height:44px}
  .project-body .nav-links>a{display:none}
  .studio-home .hero{padding-top:156px}
  .studio-home .archive-gesture{gap:12px;padding-inline:12px}
  .studio-home .archive-gesture p{font-size:14px}
  .studio-home .archive-detail,.studio-home .project-card-content{min-width:0;overflow-wrap:anywhere}
  body.project-body[data-project] .project-wrapper{padding-top:146px}
  body.project-body[data-project] .project-headline h1{font-size:clamp(32px,9vw,54px);line-height:1.2}
  body.project-body[data-project] .project-section-nav{position:relative;top:auto;z-index:2}
  body.project-body[data-project] .element-stage{height:280px;overflow:hidden}
  body.project-body[data-project] .feature-copy h2{font-size:clamp(25px,7vw,36px);overflow-wrap:anywhere}
  body.project-body[data-project] .feature-facts{grid-template-columns:1fr}
  body.project-body[data-project] .feature-facts dd{margin-left:0}
  body.project-body[data-project] .media-grid{grid-template-columns:minmax(0,1fr)}
  body.project-body[data-project] .hero-read-link{min-height:48px;margin-top:12px}
  body.project-body[data-project] .project-play-link{background:#8ee7ef;color:#082032;border-color:#8ee7ef}
  body.otu-page .otu-nav{padding-top:max(10px,env(safe-area-inset-top));height:calc(120px + env(safe-area-inset-top))}
  body.otu-page main.otu-shell,body.otu-page .otu-transition{top:calc(120px + env(safe-area-inset-top));bottom:calc(60px + env(safe-area-inset-bottom))}
  body.otu-page .otu-tabs{min-width:0;max-width:100%;gap:8px;padding-bottom:4px}
  body.otu-page .otu-tabs button{flex:0 0 auto}
  body.otu-page .otu-footer{height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);gap:8px}
  body.otu-page #otuPosition{min-width:0;font-size:11px;line-height:1.4;overflow-wrap:anywhere;text-align:center}
  body.otu-page .otu-footer button{flex-shrink:0;font-size:13px}
  body.otu-page .otu-panel{padding:20px 16px 32px;overflow-x:hidden}
  body.otu-page .otu-hero-copy{padding:32px 0 24px}
  body.otu-page .otu-hero-copy h1{font-size:clamp(36px,10vw,60px);overflow-wrap:anywhere}
  body.otu-page .otu-hero-copy p{font-size:16px}
  body.otu-page .otu-columns{gap:20px}
  body.otu-page .otu-card-picker{max-height:none;gap:8px}
  body.otu-page .otu-gallery{grid-template-columns:minmax(0,1fr)}
  body.otu-page .otu-lightbox{max-height:90dvh;overflow:auto}
  body.otu-page .otu-lightbox img{max-height:calc(90dvh - 55px)}
  body.reader-body .reader-header{grid-template-columns:44px minmax(0,1fr) 144px}
  body.reader-body .reader-title{min-width:0;padding:0 6px}
  body.reader-body .reader-title b,body.reader-body .reader-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.reader-body .reader-tools button{font-size:12px;min-width:44px}
  body.reader-body .reader-main{padding:24px 10px 64px}
  body.reader-body .chapter-article{padding:24px 14px}
  body.reader-body .chapter-head h1{font-size:clamp(28px,8vw,40px);overflow-wrap:anywhere}
  body.reader-body .reader-toc{padding:20px 16px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
  body.library-body .library-header{flex-wrap:wrap;gap:8px}
  body.library-body .library-brand{min-width:0}
  body.library-body .library-hero{padding:40px 20px}
  body.library-body .library-hero h1{font-size:40px}
  body.library-body .novel-card h2{font-size:28px;overflow-wrap:anywhere}
  body.library-body .novel-card-copy p{font-size:16px;line-height:1.8}
  body.library-body footer{gap:16px;flex-wrap:wrap;padding:24px 16px}
}
@media(max-width:700px){
  .celestial-page .page{height:100svh;min-height:100svh}
  .celestial-page .brand{min-width:0;padding:8px 12px}
  .celestial-page .brand strong{font-size:13px;letter-spacing:.08em}
  .celestial-page .nav-toggle,.celestial-page .header-tools>*{min-width:44px;min-height:44px}
  .celestial-page .section-nav{max-height:calc(100svh - var(--header-h));overflow:auto}
  .celestial-page .information-layout{display:block;height:100%;padding:65px 16px 24px;overflow-y:auto;overscroll-behavior:contain}
  .celestial-page .information-sidebar{height:auto;padding:12px}
  .celestial-page .info-list{max-height:180px;overflow:auto}
  .celestial-page .info-tabs button{min-height:44px}
  .celestial-page .info-item b{font-size:14px}
  .celestial-page .info-feature{height:auto;min-height:280px;grid-template-columns:28% minmax(0,1fr);grid-template-rows:auto;margin-top:16px}
  .celestial-page .feature-copy{padding:20px 14px}
  .celestial-page .feature-copy h3{font-size:22px}
  .celestial-page .feature-copy p{font-size:15px;line-height:1.8}
  .celestial-page .read-more{display:inline-flex;align-items:center;min-height:44px;top:auto}
  .celestial-page .profile-panel{padding-top:66px;overflow-y:auto;padding-bottom:120px}
  .celestial-page .profile-copy{font-size:15px;line-height:1.8;max-width:62%}
  .celestial-page .profile-panel h2{font-size:36px}
  .celestial-page .operator-art{top:30%;right:8px;pointer-events:none}
  .celestial-page .operator-thumbs{bottom:12px;max-width:94%;background:#07121bea;padding:8px;gap:8px}
  .celestial-page .world-map-heading{width:45%;padding:10px;top:calc(var(--header-h) + 60px)}
  .celestial-page .world-map-heading h2{font-size:28px}
  .celestial-page .lexicon-open{min-height:44px;font-size:11px!important}
  .celestial-page .world-detail{max-height:150px;overflow:auto}
  .celestial-page .world-detail>p:last-child{font-size:14px;line-height:1.6}
  .celestial-page .world-map-host{bottom:170px}
  .celestial-page .more-layout{padding:64px 12px 24px;height:100%;overflow-y:auto;overscroll-behavior:contain}
  .celestial-page .more-track{height:calc(100svh - 210px);min-height:360px}
  .celestial-page .more-feature{height:100%;grid-template-columns:24% minmax(0,1fr)}
  .celestial-page .more-copy{padding:20px 14px;overflow:auto}
  .celestial-page .more-copy h3{font-size:26px}
  .celestial-page .more-copy>p,.celestial-page .more-copy>p:nth-of-type(2){font-size:15px;line-height:1.75}
  .celestial-page .more-copy>small,.celestial-page .more-progress span{font-size:11px}
  .celestial-page .more-actions a{min-height:44px;font-size:14px}
  .celestial-page .more-dot{min-height:44px;font-size:11px}
  .celestial-page .more-studio,.celestial-page .more-related{overflow:auto;padding:24px}
  .celestial-page .more-studio>div>p,.celestial-page .more-related>div>p{font-size:15px;line-height:1.8}
}
@media(max-height:500px) and (orientation:landscape){
  .disc-preview{max-height:100dvh;padding-top:48px}
  .disc-preview-lid{min-height:0}
  .disc-preview-inlay{max-height:calc(100dvh - 68px)}
  body.otu-page .otu-hero-copy{padding-top:12px}
  body.otu-page .otu-card-stage{height:260px}
  .celestial-page .information-layout,.celestial-page .profile-panel,.celestial-page .more-layout{overflow-y:auto}
}
body.reader-body .reader-tools{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:800px){body.reader-body{--header-height:96px}body.reader-body .reader-header{grid-template-columns:44px minmax(0,1fr);grid-template-rows:48px 48px}body.reader-body .reader-tools{grid-column:1/-1;justify-content:flex-end}}
