/* Keep the lesson inside the phone; short screens paginate the two examples. */
#reviewView,#detail,#home,#activity,#question{scrollbar-width:none!important;-ms-overflow-style:none}
#reviewView::-webkit-scrollbar,#detail::-webkit-scrollbar,#home::-webkit-scrollbar,#activity::-webkit-scrollbar,#question::-webkit-scrollbar,.learning-task-dialog::-webkit-scrollbar{display:none!important;width:0;height:0}
.learning-task-dialog{scrollbar-width:none!important}
@media(max-width:599px) and (orientation:portrait){
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .review-grid{height:calc(100% - 2px)!important;grid-template-rows:minmax(76px,.5fr) minmax(168px,1fr) minmax(0,1.35fr)!important;gap:8px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .word-list{grid-template-rows:minmax(48px,1fr) minmax(48px,auto) 26px minmax(24px,auto)!important;gap:4px 8px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .word-card{padding:6px 3px!important;gap:4px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .word-card .word-photo,html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .word-card .word-photo img{min-height:48px!important;max-height:80px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .word-card>.nl-help{min-height:24px!important;padding:0!important;font-size:13px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .sentence-list{gap:7px!important;grid-template-rows:repeat(2,minmax(78px,1fr)) 32px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .sentence-card{grid-template-columns:clamp(44px,13vw,56px) minmax(0,1fr)!important;min-height:78px!important;gap:6px!important;padding:6px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .sentence-picture img{height:clamp(44px,13vw,56px)!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .sentence-words{column-gap:5px!important;row-gap:3px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .sentence-words .word-hanzi{font-size:clamp(22px,6.35vw,25px)!important;line-height:1.25!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .sentence-gloss{font-size:14px!important;line-height:1.25!important;margin:4px 0 0!important}
}
@media(max-width:599px) and (max-height:700px) and (orientation:portrait){
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .review-grid{grid-template-rows:65px minmax(155px,1.2fr) minmax(115px,1fr)!important;gap:7px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .sentence-list{grid-template-rows:minmax(78px,1fr) 32px!important}
html body[data-view=play][data-study-phase=learn] #play #reviewView:not([hidden]) .sentence-card:not(.sentence-current){display:none!important}
}

.word-photo,.sentence-picture,[data-chinese-audio],.learning-task-dialog button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.word-photo img,.sentence-picture img{pointer-events:none}.stroke-teaching-tools{display:flex;gap:6px;justify-content:center;margin:6px 0}.stroke-teaching-tools button{border:1px solid #d5e2ce;border-radius:10px;background:white;color:#365b3d;min-height:40px;padding:6px 10px;font:600 13px system-ui}.stroke-teaching-tools button[aria-pressed=true]{background:#edf5e6;border-color:#94b778}.stroke-choice-panel{display:flex;gap:6px;justify-content:center;margin:6px 0}.stroke-choice-panel button{width:64px;height:60px;border:1px solid #d5e2ce;border-radius:10px;background:white;padding:2px}.stroke-choice-panel svg{width:100%;height:100%}.learning-task-dialog:has(.learning-writing-board) h2{font-family:LotusKai,serif;font-size:40px;margin-bottom:0}.learning-task-status:empty{display:none}.learning-task-dialog:has(.stroke-choice-panel:not([hidden])) .learning-writing-board{width:min(220px,58vw)}

.stroke-choice-panel[hidden]{display:none!important}
