/* R21: complete identity, usable typography, fixed viewport. */
.screen-home .screen-shell{height:100dvh!important;grid-template-rows:54px minmax(0,1fr) auto 50px!important;align-content:stretch!important}
.screen-home .screen-home-panel{height:100%!important;grid-template-rows:minmax(0,1fr) auto!important}
.screen-home .home-upper{height:100%!important}
.screen-home .index-main strong{font-size:32px!important}
.screen-home .index-main small{font-size:13px!important;letter-spacing:0!important}
.screen-home .store-card>p{font-size:14px!important}
.screen-home .r21-footer-brand{font:24px/1 Georgia,serif}
.screen-home .r21-footer-motto{font:10px/1.2 Arial,sans-serif;letter-spacing:.08em}
.screen-home .screen-footer{display:grid!important;grid-template-columns:1fr auto auto!important;gap:12px!important;align-items:center!important;min-height:0}
.r21-footer-identity{display:flex;flex-direction:column;gap:4px}
.r21-social{display:flex;gap:12px;align-items:center}
.r21-social a{font:13px/1 Arial,sans-serif;text-decoration:none;color:#233B53}
.screen-home .store-cta{white-space:normal!important;text-align:center}
.r18-world .r21-main-title,.r18-world .r21-subtitle{display:block}
.r18-world .r21-main-title{font:30px/1.16 Georgia,serif}
.r18-world .r21-subtitle{font:18px/1.3 Georgia,serif;margin-top:9px}
.r18-world .r16-reader[data-world=music] .r16-select{display:none!important}
.r18-world .r16-page:has(.r18-project),.r18-world .r16-page:has(.r19-kids-pair){display:flex!important;align-items:center!important;justify-content:center!important}
.r18-world .r18-content:has(.r18-project){width:100%!important;max-width:820px!important;grid-template-columns:1fr!important;gap:12px!important}
.r18-world .r18-project,.r18-world .r18-project:only-child{padding:16px 20px!important}
.r18-world .r18-project h2{font-size:26px!important}
.r18-world .r18-project p{font-size:16px!important}
.r18-world .r19-kids-pair{width:100%!important}
@media(min-width:821px) and (max-height:800px){
.screen-home .screen-shell{grid-template-rows:50px minmax(0,1fr) auto 44px!important}
.screen-home .premium-deck{font-size:16px!important}
.screen-home .index-main strong{font-size:29px!important}
.r18-world .r18-content:has(.r18-project){gap:8px!important}
.r18-world .r18-project,.r18-world .r18-project:only-child{padding:10px 16px!important}
.r18-world .r18-project h2{font-size:23px!important}
.r18-world .r18-project p{font-size:15px!important}
}
@media(max-width:820px){
.screen-home .screen-shell{padding:5px 7px!important;grid-template-rows:49px minmax(0,1fr) auto 49px!important;gap:6px!important}
.screen-home .screen-home-panel{gap:8px!important}
.screen-home .home-upper{grid-template-columns:minmax(0,.28fr) minmax(0,.44fr) minmax(0,.28fr)!important;grid-template-rows:auto minmax(0,1fr)!important;gap:9px 6px!important}
.screen-home .screen-left{display:contents!important}
.screen-home .premium-intro{grid-column:1/-1;grid-row:1}
.screen-home .premium-intro h1{font-size:28px!important;line-height:1.1!important}
.screen-home .premium-intro h1 br{display:none}
.screen-home .premium-kicker{font-size:9px!important;line-height:1.3!important;margin-bottom:5px!important}
.screen-home .premium-deck{font:15px/1.3 Georgia,serif!important;margin-top:6px!important}
.screen-home .store-card{grid-column:1;grid-row:2;align-self:start;padding:9px 6px!important}
.screen-home .store-card h2{font-size:15px!important}
.screen-home .store-card>p{font-size:12px!important}
.screen-home .store-cta{font-size:13px!important;line-height:1.25!important;padding:6px 3px!important;min-height:40px!important}
.screen-home .screen-center{grid-column:2;grid-row:2;height:100%!important;aspect-ratio:auto!important}
.screen-home .duomo-static{height:100%!important;aspect-ratio:auto!important}
.screen-home .premium-index{grid-column:3;grid-row:2;height:100%!important;min-height:0!important}
.screen-home .index-main strong{font-size:17px!important;line-height:1.1!important}
.screen-home .index-main small{font-size:11px!important;line-height:1.2!important}
.screen-home .world-icon{width:23px!important;height:23px!important}
.screen-home .index-item{padding:4px 3px!important;gap:5px!important}
.screen-home .screen-footer{grid-template-columns:1fr auto!important;gap:3px 5px!important}
.screen-home .r21-footer-brand{font-size:17px}
.screen-home .r21-footer-motto{font-size:8px;letter-spacing:0}
.screen-home .r21-social{gap:9px}
.screen-home .r21-social a{font-size:11px}
.screen-home .screen-footer button{grid-column:2;grid-row:2;font-size:10px}
.screen-home .r21-footer-identity{grid-row:1/3;gap:3px}
.r18-world .r21-main-title{font-size:21px;line-height:1.2}
.r18-world .r21-subtitle{font-size:14px;line-height:1.28;margin-top:6px}
.r18-world .r18-content:has(.r18-project){gap:10px!important}
.r18-world .r18-project,.r18-world .r18-project:only-child{padding:13px 13px!important}
.r18-world .r18-project h2{font-size:22px!important}
.r18-world .r18-project p{font-size:14px!important}
}
@media(max-width:360px){
.screen-home .screen-shell{grid-template-rows:39px minmax(0,1fr) auto 42px!important;gap:4px!important}
.screen-home .screen-home-panel{gap:5px!important}
.screen-home .home-upper{gap:6px 5px!important}
.screen-home .premium-intro h1{font-size:24px!important}
.screen-home .premium-kicker{font-size:8px!important;margin-bottom:3px!important}
.screen-home .premium-deck{font-size:14px!important;line-height:1.22!important;margin-top:4px!important}
.screen-home .store-card{padding:6px 4px!important}
.screen-home .store-card h2{font-size:14px!important}
.screen-home .store-card>p{font-size:11px!important}
.screen-home .index-main strong{font-size:16px!important;line-height:1.1!important}
.screen-home .index-main small{font-size:10px!important;line-height:1.15!important}
.screen-home .world-icon{display:none!important}
.screen-home .index-item{padding:4px 2px!important}
.screen-home .collection-heading{min-height:25px!important}
.screen-home .collection-heading h2{font-size:15px!important}
.screen-home .r21-footer-brand{font-size:15px}
.screen-home .r21-footer-motto{font-size:7px}
.screen-home .r21-social{gap:7px}
.screen-home .r21-social a{font-size:10px}
.r18-world .r21-main-title{font-size:18px}
.r18-world .r21-subtitle{font-size:14px;line-height:1.22}
.r18-world .r18-project,.r18-world .r18-project:only-child{padding:10px 12px!important}
.r18-world .r18-project h2{font-size:21px!important}
.r18-world .r18-project p{font-size:14px!important}
}

.screen-home .premium-deck{max-width:none!important}
.screen-home .index-main small{text-transform:none!important;margin-top:4px!important}
@media(max-width:820px){.screen-home .premium-intro h1 em{margin-left:.16em}.screen-home .index-no,.screen-home .index-arrow{display:none!important}.screen-home .all-collections{font-size:9px!important;letter-spacing:0!important;max-width:40px;white-space:normal!important;text-align:right}.screen-home .collection-heading{align-items:center!important}}
@media(max-width:360px){.screen-home .premium-index{gap:4px!important}.screen-home .index-main small{display:none!important}.screen-home .index-item{min-height:36px!important;display:flex!important;align-items:center!important}.screen-home .index-main strong{font-size:16px!important}.screen-home .screen-disclosure{font-size:9px!important}.screen-home .store-card>p{overflow-wrap:normal!important}.screen-home .store-card h2{font-size:13px!important}.screen-home .store-cta{font-size:12px!important}}

.screen-home .screen-footer>button{grid-column:3;grid-row:1;width:auto!important;max-width:240px;margin:0!important}
.screen-home .screen-footer>a{display:none!important}
.r18-world .r18-content:has(.r18-project){gap:8px!important}
.r18-world .r18-project,.r18-world .r18-project:only-child{padding:10px 16px!important}
.r18-world .r18-project h2{font-size:23px!important;margin:3px 0!important}
.r18-world .r18-project p{font-size:15px!important;margin:5px 0!important}
@media(max-width:820px){.screen-home .screen-footer>button{grid-column:2;grid-row:2;font-size:10px!important;min-height:23px!important;max-width:none}.r18-world .r18-project,.r18-world .r18-project:only-child{padding:9px 12px!important}.r18-world .r18-project h2{font-size:21px!important}.r18-world .r18-project p{font-size:14px!important}.r18-world .r18-content:has(.r18-project){gap:7px!important}}
@media(max-width:360px){.screen-home .store-card>p{font-size:11px!important}}

.screen-home .store-cta,.screen-home .store-cta span{overflow-wrap:normal!important;word-break:normal!important}
@media(max-width:360px){.screen-home .store-cta{display:block!important;font-size:11px!important;line-height:1.3!important}.screen-home .store-cta span{display:block}.screen-home .store-card>p{font-size:12px!important}}

/* Keep approved left / Duomo / four worlds composition on 390px phones. */
@media(min-width:361px) and (max-width:820px){
.screen-home .home-upper{grid-template-rows:minmax(0,1fr)!important;gap:6px!important}
.screen-home .screen-left{display:flex!important;grid-column:1;grid-row:1;gap:10px!important;height:100%!important;justify-content:flex-start!important}
.screen-home .premium-intro{grid-column:auto;grid-row:auto}
.screen-home .premium-intro h1{font-size:27px!important;line-height:1.02!important}
.screen-home .premium-intro h1 br{display:block}
.screen-home .premium-intro h1 em{margin-left:0}
.screen-home .premium-kicker{font-size:8px!important;line-height:1.25!important}
.screen-home .premium-deck{font-size:13px!important;line-height:1.25!important;margin-top:8px!important}
.screen-home .store-card{grid-column:auto;grid-row:auto;padding:7px 5px!important}
.screen-home .store-card h2{font-size:14px!important}
.screen-home .screen-center{grid-column:2;grid-row:1;align-self:center!important;aspect-ratio:339/710!important;height:auto!important}
.screen-home .duomo-static{height:auto!important;aspect-ratio:339/710!important}
.screen-home .premium-index{grid-column:3;grid-row:1}
}

/* Explicit rows prevent hidden controls from shifting the footer into an earlier row. */
.r18-world .r16-top{grid-row:1}
.r18-world .r16-titlebar{grid-row:2}
.r18-world .r16-page{grid-row:3}
.r18-world .r16-pager{grid-row:4}
.r18-world .r16-affiliate{grid-row:5}
.r18-world .r16-bottom{grid-row:6}
.r18-world .r16-page>.r18-content:has(.r18-project){margin:0!important}
