/* Mobile interaction and paint budget. Keep scrollers local, not the whole page. */
@media(max-width:700px){
 #navigation{backdrop-filter:none;-webkit-backdrop-filter:none;background:#0d111b;overscroll-behavior-x:contain;scroll-padding-inline:16px}
 #navigation>a{flex-shrink:0;min-height:44px;display:inline-flex;align-items:center}
 .comic-scroll{scroll-snap-type:x proximity;overscroll-behavior-x:contain;scroll-padding:0;touch-action:pan-x pan-y}
 .comic-linked{min-width:0;width:calc(4 * clamp(240px,72vw,340px));grid-template-columns:repeat(4,minmax(0,1fr))}
 .comic-scene{scroll-snap-align:start}
 .comic-panel-art{aspect-ratio:3/4}
 .comic-caption{min-height:140px}
 .comic-caption small b{opacity:1}
 .atlas-stage-art,.atlas-stop:is(:hover,:focus-visible,.is-current) .atlas-stage-art{filter:none;transition:none;translate:none}
 .atlas-road-shadow{filter:none}
 .atlas-stop .atlas-berry-frame,.atlas-stage-note .atlas-berry-frame{animation:none}
 .atlas-berry-speech{max-width:min(170px,45vw);white-space:normal}
 .skill-dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
 .article,.merged-body,.profession-content,.activity-spotlight-copy,.atlas-detail-title{min-width:0;overflow-wrap:anywhere}
 .wiki-table-scroll,.job-table-scroll,.job-embedded-guide{overscroll-behavior-x:contain}
 .article iframe,.merged-body iframe{max-width:100%;aspect-ratio:16/9;height:auto}
 .article img,.merged-body img{max-width:100%;height:auto}
 .article pre{max-width:100%;overflow-x:auto}
 input,select,textarea,.search-input,.quest-search input,.catalogue-controls input{font-size:16px}
 .directory-filters a,.activity-nav a,.guide-chapters a,.footer-policy a{min-height:44px;align-content:center}
}
@media(hover:none),(pointer:coarse){
 .comic-scene:hover:after{border-color:transparent}
 .comic-scene:hover .comic-caption{background:var(--panel)}
 .comic-scene:active:after{border-color:#8aecd0}
 .comic-scene:active .comic-caption{background:#214c43}
 .atlas-stop:hover .atlas-berry-frame{animation:none}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 .atlas-stage-note .atlas-berry-frame,.atlas-stop .atlas-berry-frame{animation:none!important}
}

.wiki-guide-video{display:block;width:100%;max-width:100%;height:auto;background:#0d111b;border-radius:10px;margin-inline:auto}
