/* Shared spacing rhythm, sized around content rather than empty screen heights. */
body.ya110-body{min-width:0}
.ya110-home{--section-space:clamp(36px,4vw,64px)}
.ya110-home .ya110-scene{min-height:0;padding-top:var(--section-space);padding-bottom:var(--section-space);gap:clamp(24px,4vw,64px)}
.ya110-home .ya110-atlas,.ya110-home .ya110-gallery-scene,.ya110-home .ya110-now-scene,.ya110-home .ya110-play-scene{padding-top:var(--section-space);padding-bottom:var(--section-space)}
.ya110-home .ya110-ending{min-height:440px;padding:60px 24px;clip-path:none}
.ya110-home .ya110-section-heading{margin-bottom:32px}
.ya110-home .ya110-today{margin-bottom:42px!important}
.ya110-home .ya120-home-mv,.ya110-home .ya130-home-chappy{margin-bottom:42px!important}
.ya110-character-detail .ya110-character-sheet{margin-bottom:24px!important}
.ya110-character-detail .ya120-look-studio{margin-top:28px!important;margin-bottom:40px!important}
.ya110-character-detail .ya110-character-notes,.ya110-character-detail .ya110-character-world,.ya110-character-detail .ya110-character-story,.ya110-character-detail .ya110-relations{margin-bottom:40px!important}
.ya110-character-world article:has(>div:empty){grid-template-columns:1fr;min-height:0}
.ya110-character-world article>div:empty{display:none}
.ya110-character-world article:has(>div:empty):has(>section>p:empty){display:none}
.ya110-character-world:not(:has(img)):not(:has(p:not(:empty))){display:none}
.ya9-content{gap:20px}.ya9-card,.ya9-question-card{padding:clamp(22px,2.6vw,36px)}
/* Keep bubbles present on narrow screens. Focus and OFF still take precedence. */
html[data-ya-motion="off"] .ya120-bubbles,html[data-ya-motion="off"] .ya120-sparkle-river{display:none!important}
html[data-ya-motion="calm"] .ya120-bubbles i{animation-duration:60s;opacity:.25}
@media(max-width:980px){.ya110-home .ya110-hero-slide{padding-top:30px!important}.ya110-home .ya110-scene{min-height:0!important}}
@media(max-width:600px){
 .ya110-header{grid-template-columns:45px minmax(0,1fr) auto;gap:8px}
 .ya110-tools{gap:4px}.ya110-tools>*{width:32px;height:32px;min-width:32px}
 .ya110-tools>[data-ya90-motion-toggle]{display:grid!important}
 .ya110-brand b{font-size:.76rem;letter-spacing:.09em}.ya110-brand span{font-size:.48rem}
 .ya110-home{--section-space:30px}.ya110-home .ya110-section-heading{margin-bottom:24px}
 .ya110-home .ya110-hero-slide{padding-top:22px!important;gap:16px!important}
 .ya110-home .ya110-today{margin-top:0!important;margin-bottom:30px!important}
 .ya110-home .ya120-home-mv,.ya110-home .ya130-home-chappy{margin-bottom:30px!important}
 .ya110-home .ya110-ending{min-height:0;padding:48px 20px}
 .ya120-bubbles i{width:min(var(--s),90px);height:min(var(--s),90px);opacity:calc(var(--o) + .12)}
 .ya120-bubbles i:nth-child(n+10){display:block}
 .ya110-character-detail .ya110-character-sheet{margin-bottom:18px!important}
 .ya110-character-detail .ya120-look-studio{margin-top:22px!important;margin-bottom:28px!important}
 .ya110-character-detail .ya110-character-notes,.ya110-character-detail .ya110-character-world,.ya110-character-detail .ya110-character-story,.ya110-character-detail .ya110-relations{margin-bottom:28px!important}
 .ya9-content{gap:16px}.ya9-hero{gap:20px;padding:24px 20px}.ya9-header{padding:16px 4px}.ya9-card,.ya9-question-card{padding:22px 18px}
}

@media(prefers-reduced-motion:reduce){html:not([data-ya-motion="full"]) .ya120-bubbles i{bottom:auto;top:var(--x);transform:none}}
/* Keep the motion selector above page scenes and out of document flow. */
.ya120-body>.ya110-motion-panel{position:fixed!important;z-index:9600!important;top:112px;right:20px;max-width:calc(100vw - 24px)}
@media(max-width:600px){.ya120-body>.ya110-motion-panel{top:76px;right:12px}}
