/* List 4 item 5: shared card geometry; artwork keeps its existing fit and focal point. */
#library-main .hub-app-grid > .hub-app-card {display:flex;flex-direction:column;min-width:0}
#library-main .hub-app-grid > .hub-app-card > .hub-app-art {flex:none}
#library-main .hub-app-grid > .hub-app-card > .hub-card-body {display:flex;flex-direction:column;flex:1;min-width:0}
#library-main .hub-app-grid > .hub-app-card > .hub-card-body > .hub-card-bottom {margin-top:auto;padding-top:8px}
#library-main :is(.hub-optic161,.hub-abyss168) > .hub-app-art {aspect-ratio:1.94/1}
@media(max-width:720px){#library-main :is(.hub-optic161,.hub-abyss168) > .hub-app-art {aspect-ratio:16/9}}

/* List 4 item 7: soften the image/copy join with the existing panel material.
   No new colour strip, image scaling, or outer-frame changes. */
#library-main :is(.hub-feature-copy,.hub-card-body){position:relative}
#library-main :is(.hub-feature-copy,.hub-card-body)::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px;background:inherit;-webkit-mask-image:linear-gradient(180deg,transparent,#000);mask-image:linear-gradient(180deg,transparent,#000);pointer-events:none;z-index:4}
@media(forced-colors:active){#library-main :is(.hub-feature-copy,.hub-card-body)::before{display:none}}

/* Parent cards retain clipping; allow the blend above feature copy. */
#library-main .hub-feature-copy{overflow:visible!important}

/* Youth catalog repair: retain the established forest panels and parchment,
   but pair each material with readable storybook ink. Other themes unchanged. */
html body[data-library-theme="youth"] #library-main #hub-games>.hub-feature>.hub-feature-copy :is(h3,p,.hub-play){color:#f9efd7!important;text-shadow:none!important}
html body[data-library-theme="youth"] #library-main #hub-apps .hub-ember125>.hub-card-body :is(h3,p,.hub-play){color:#294a39!important;text-shadow:none!important}
html body[data-library-theme="youth"] #hub-world[data-youth-time="night"] #library-main #hub-apps .hub-ember125>.hub-card-body :is(h3,p,.hub-play){color:#f9efd7!important}
@media(forced-colors:active){html body[data-library-theme="youth"] #library-main :is(#hub-games>.hub-feature>.hub-feature-copy,#hub-apps .hub-ember125>.hub-card-body) :is(h3,p,.hub-play){color:CanvasText!important}}
