/* Subsets of the established teaching fonts, with original font name/license tables retained. */
@font-face{font-family:LotusKai;src:url('/review/first100/fonts/lotus-kai-v1.woff2') format('woff2');font-display:block}
@font-face{font-family:LotusPinyin;src:url('/review/first100/fonts/lotus-pinyin-v1.woff2') format('woff2');font-display:block}
body[data-learning-area] .hanzi,body[data-learning-area] .word-hanzi,body[data-learning-area] .punctuation,body[data-learning-area] .large-character,body[data-learning-area] .word-block,body[data-learning-area] .tile-hanzi{font-family:LotusKai,serif!important}
body[data-learning-area] .py,body[data-learning-area] rt,body[data-learning-area] .stroke-status{font-family:LotusPinyin,system-ui,sans-serif!important}
body[data-learning-area] #homeTitle,body[data-learning-area] #finishTitle{font-family:system-ui,sans-serif!important}
html[data-practice-font-fallback] .hanzi,html[data-practice-font-fallback] .word-hanzi,html[data-practice-font-fallback] .punctuation,html[data-practice-font-fallback] .large-character,html[data-practice-font-fallback] .word-block,html[data-practice-font-fallback] .tile-hanzi{font-family:system-ui,sans-serif!important}
html[data-practice-font-fallback] .py,html[data-practice-font-fallback] rt,html[data-practice-font-fallback] .stroke-status{font-family:system-ui,sans-serif!important}
html[data-practice-switch=busy] #app,html[data-practice-switch=busy] main,html[data-practice-switch=busy] #practiceToolbar{pointer-events:none}
/* Native snapshots swap in a finished frame, without fades or slides. */
::view-transition-group(root){animation:none!important}
::view-transition-old(root){opacity:1!important;mix-blend-mode:normal}
::view-transition-new(root){animation:none!important;opacity:0;mix-blend-mode:normal}
/* Child management belongs inside settings, not the home title. */
body[data-learning-area=characters][data-view=home] .home-heading{min-height:88px!important}
body[data-learning-area=topics] .home-title{min-height:84px!important}
#compactRecords>.child-profile-open,#topicPreferences>.child-profile-open{display:block;max-width:100%;margin:6px 0 0;min-height:34px;text-align:center;align-self:stretch}
.practice-home-button{position:static!important;display:grid;place-items:center;flex:none;width:38px;min-width:38px;height:38px;min-height:38px;padding:2px!important;margin:0!important;border:1px solid #d5e5c7;border-radius:12px;background:#eef6e6!important;box-shadow:none!important}
.practice-home-button img{width:32px;height:32px;object-fit:contain;border-radius:9px}
.practice-top{gap:7px!important}
@media(max-width:599px) and (min-height:501px){body[data-learning-area=characters][data-view=home] .home-heading{min-height:76px!important}body[data-learning-area=topics] .home-title{min-height:76px!important}.practice-home-button{width:32px;min-width:32px;height:32px;min-height:32px}.practice-home-button img{width:28px;height:28px}.practice-top #modeName{font-size:10px}}
@media(max-height:500px) and (min-width:500px){body[data-learning-area=characters][data-view=home] .home-heading,body[data-learning-area=topics] .home-title{min-height:46px!important}.practice-home-button{width:30px;min-width:30px;height:30px;min-height:30px}.practice-home-button img{width:26px;height:26px}}
.practice-home-button{order:-3!important}
/* Reserve a real text row so translated labels never compete with the art. */
body[data-learning-area] #schoolLink{display:none!important}
body[data-learning-area=topics] .home-footer{justify-content:center!important;text-align:center}
body[data-learning-area=topics] .home-footer #localNote{display:none!important}
body[data-learning-area=characters][data-view=home] .mode-card{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) max-content!important;justify-items:center;align-items:center;gap:12px!important;min-width:0;overflow:hidden}
body[data-learning-area=characters][data-view=home] .mode-card .level-art,
body[data-learning-area=characters][data-track=recognize][data-view=home] .mode-card .level-art{grid-column:1;grid-row:1;align-self:center;justify-self:center;min-height:0!important;height:100%!important;max-height:clamp(76px,13.8dvh,134px);max-width:100%;transform:none!important}
body[data-learning-area=characters][data-view=home] .mode-card .level-art img{height:100%!important;max-height:100%!important;width:100%!important;object-fit:contain;display:block}
body[data-learning-area=characters][data-view=home] .mode-card strong{grid-column:1;grid-row:2;display:block;flex:none;min-width:0;max-width:100%;width:100%;margin:0!important;line-height:1.2!important;white-space:normal;overflow-wrap:anywhere;word-break:normal;hyphens:auto;text-align:center;align-self:center}
body[data-learning-area=topics] .category-card{min-width:0;overflow:hidden}
body[data-learning-area=topics] .category-card strong,body[data-learning-area=topics] .topic-card strong,body[data-learning-area=topics] .catalogue-card strong{display:block;min-width:0;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;hyphens:auto;line-height:1.25!important}
@media(max-width:599px) and (min-height:501px){
 body[data-learning-area=characters][data-view=home] .mode-card{gap:10px!important}
 body[data-learning-area=characters][data-view=home] .mode-card .level-art,body[data-learning-area=characters][data-track=recognize][data-view=home] .mode-card .level-art{max-height:clamp(42px,10dvh,82px)}
}
@media(max-height:500px) and (min-width:500px){
 body[data-learning-area=characters][data-view=home] .mode-card{gap:9px!important}
 body[data-learning-area=characters][data-view=home] .mode-card .level-art,body[data-learning-area=characters][data-track=recognize][data-view=home] .mode-card .level-art{max-height:46px}
}
