/* v1.87.149 -- nine seeded memory lessons only.
   Sentence line breaks are semantic display spans; source/kana/scoring unchanged. */
html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-current-example .tc-jp {
  display:block!important;
  width:100%!important; min-width:0!important; max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important; padding:4px 10px 8px!important;
  box-sizing:border-box!important;
  font-size:clamp(19px,2.27vw,33px)!important;
  line-height:1.53!important; letter-spacing:.016em!important;
  text-align:center!important;white-space:normal!important;
  overflow:visible!important;overflow-wrap:normal!important;word-break:normal!important;
}
html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-current-example .tc-jp .tc-meaning-line {
  display:block!important;width:100%!important;max-width:100%!important;
  white-space:nowrap!important;overflow:visible!important;
  font-size:inherit!important;line-height:inherit!important;
  word-break:normal!important;text-align:center!important;
}
html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-current-example .tc-kana,
html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-current-example .tc-roman {
  height:auto!important;min-height:0!important;max-height:none!important;
  white-space:normal!important;overflow:visible!important;word-break:break-word!important;
  line-height:1.48!important;
}
html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-current-example {
  height:auto!important;max-height:none!important;grid-template-rows:auto auto auto!important;
  overflow:visible!important;align-content:center!important;row-gap:7px!important;
}
@media (max-width:900px){
  html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-current-example .tc-jp{
    font-size:clamp(18px,3.15vw,25px)!important;
    line-height:1.52!important;padding:4px 3px 7px!important;
  }
}
@media (max-width:430px){
  html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-current-example .tc-jp{
    font-size:19px!important;
  }
}

/* The memory practice's inherited three-column next-finger grid reserves a
   hidden-hand column on small phones. Without this, the finger label wraps
   to four lines and escapes its fixed-height card. */
@media (max-width:600px){
  html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-next-finger-formal{
    display:grid!important;
    grid-template-columns:86px minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    min-height:82px!important;height:auto!important;max-height:none!important;
    overflow:visible!important;gap:12px!important;
    padding:8px 12px!important;
  }
  html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-next-finger-formal .tc-next-finger-copy{
    display:block!important;min-width:0!important;width:auto!important;
    height:auto!important;max-height:none!important;overflow:visible!important;
  }
  html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-next-finger-formal .tc-next-finger-copy strong{
    display:block!important;white-space:normal!important;
    font-size:clamp(16px,4.2vw,19px)!important;line-height:1.35!important;
  }
}

/* The narrowest phones need one extra Japanese character per line to avoid
   isolated 2-3-character rows; the target remains comfortably readable. */
@media (max-width:359px){
  html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type]:is([data-tc-memory-short],[data-tc-memory-long]) .tc-practice-canvas .tc-current-example .tc-jp {
    font-size:18px!important;
    line-height:1.57!important;
  }
}
