/* One page/dialog subtitle specification. Shared colorful letters; slogans and
   teaching content are separate. The fallback ink applies before JS paints. */
:root{
 --ui-subtitle-font:"Fredoka",sans-serif;
 --ui-subtitle-size:24px;
 --ui-subtitle-weight:600;
 --ui-subtitle-line-height:1.25;
 --ui-subtitle-color:#35495f;
 --page-section-subtitle-font:var(--ui-subtitle-font);
 --page-section-subtitle-size:var(--ui-subtitle-size);
 --page-section-subtitle-weight:var(--ui-subtitle-weight);
 --page-section-subtitle-line-height:var(--ui-subtitle-line-height);
 --page-section-subtitle-color:var(--ui-subtitle-color);
}
:is(#play-selection-heading,#game-category-section-subtitle,#study-library-title,#learning-themes-heading,
 .worlds-header>h1,#sw-title,dialog:not(#mobile-review) h2:not(#game-category-title),.overlay-title){
 font-family:var(--ui-subtitle-font)!important;font-size:var(--ui-subtitle-size)!important;
 font-weight:var(--ui-subtitle-weight)!important;line-height:var(--ui-subtitle-line-height)!important;
 color:var(--ui-subtitle-color)!important;-webkit-text-fill-color:var(--ui-subtitle-color)!important;
 letter-spacing:0!important;text-shadow:none!important;-webkit-text-stroke:0!important;text-align:center;
}
:is(#play-selection-heading,#game-category-section-subtitle,#study-library-title,#learning-themes-heading,
 .worlds-header>h1,#sw-title,dialog:not(#mobile-review) h2:not(#game-category-title),.overlay-title)
 :is(.app-title-letter,.worlds-title-letter,.mobile-title-word>span,.ui-subtitle-letter){
 color:var(--ui-subtitle-letter-ink,var(--ui-subtitle-color))!important;-webkit-text-fill-color:var(--ui-subtitle-letter-ink,var(--ui-subtitle-color))!important;
 -webkit-text-stroke:0!important;text-shadow:none!important;transform:none!important;
 font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;
}
.ui-subtitle-word{display:inline-block;white-space:nowrap;}
.ui-subtitle-letter{display:inline-block;}
:is(.worlds-header>h1,#sw-title){padding-bottom:0!important;min-width:0;overflow-wrap:anywhere;}
:is(.worlds-header>h1,#sw-title)::after{display:none!important}
/* Preserve a visible word space when the centered subtitle uses flex layout. */
#game-category-section-subtitle{column-gap:0}

/* All five code-painted colour-letter families share the clean text paint
   path. Keep their existing fonts, sizes, palettes and word wrapping. This also
   covers dynamically rebuilt headings, slogans, world names and Buddy names. */
html body :is(.app-title-letter,.worlds-title-letter,.buddy-name-letter,
 .mobile-title-word>span,.ui-subtitle-letter),
#game-category-dialog[data-step=categories] #game-category-title .app-title-letter{
 -webkit-text-stroke:0!important;
 text-shadow:none!important;
 paint-order:normal!important;
 transform:none!important;
 filter:none!important;
}
html body .app-page-title{isolation:auto!important;}
