.chinese-shell { width: min(1220px,100%); height: 100dvh; margin: auto; padding: max(10px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); display: grid; grid-template-rows: auto minmax(0,1fr); gap: 12px; }
.chinese-setup, .chinese-practice, .chinese-finish { min-height: 0; padding: 18px; border-radius: 24px; background: var(--paper); border: 3px solid white; box-shadow: 0 12px 30px rgb(29 72 87 / 12%); }
.chinese-setup { display: grid; grid-template-rows: auto minmax(0,1fr); gap: 12px; }
.chinese-setup-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chinese-setup-heading h2 { margin: 0; font-size: 30px; }
.chinese-setup-heading .save-note { margin: 0; font-size: 15px; }
.chinese-set-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 12px; min-height: 0; }
.chinese-set-choice { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; border: 3px solid var(--blue); border-radius: 18px; background: white; padding: 0; overflow: hidden; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.chinese-set-choice img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fffaf0; min-height: 0; }
.chinese-set-choice span { display: grid; gap: 2px; padding: 8px; }
.chinese-set-choice strong { font-size: clamp(17px,2.2vw,24px); line-height: 1.1; }
.chinese-set-choice small { color: var(--green); font-weight: 800; font-size: 13px; }
.chinese-set-choice small:empty { display: none; }
.chinese-practice { display: grid; grid-template-rows: 40px minmax(0,1fr) 66px; gap: 10px; }
.chinese-card { display: grid; grid-template-columns: minmax(0,58%) minmax(0,42%); gap: 18px; min-height: 0; }
.chinese-picture { min-height: 0; overflow: hidden; border: 3px solid #d3e1e5; border-radius: 22px; background: #fffaf0; }
.chinese-picture img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.chinese-word-area { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; gap: 25px; }
#chinese-word { font-family: "PingFang SC","Microsoft YaHei","Noto Sans CJK SC","Heiti SC",sans-serif; font-size: clamp(120px,19vw,210px); font-weight: 700; line-height: 1.2; white-space: nowrap; }
#chinese-word.is-two-characters { font-size: clamp(90px,13vw,150px); }
#chinese-hear { width: 76px; height: 76px; min-height: 76px; }
#chinese-audio-status { min-height: 24px; margin: 0; color: var(--muted); font-size: 17px; text-align: center; }
.chinese-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chinese-controls p { color: var(--blue-dark); font-size: 20px; font-weight: 800; margin: 0; }
.chinese-controls button { min-width: 155px; min-height: 60px; }
.chinese-controls button:disabled { opacity: .5; }
.chinese-finish { display: grid; place-content: center; text-align: center; }
.chinese-finish h2 { font-size: 44px; margin: 12px; }
.chinese-finish p { font-size: 21px; }
body.has-active-task-list .chinese-shell { padding-bottom: max(80px,env(safe-area-inset-bottom)); }
@media (max-height: 650px) and (orientation: landscape) {
  .chinese-shell { padding-top: 6px; gap: 6px; }
  .chinese-setup,.chinese-practice,.chinese-finish { padding: 10px 14px; }
  .chinese-set-grid { gap: 8px; }
  .chinese-set-choice span { padding: 6px; }
  .chinese-set-choice strong { font-size: 18px; }
  .chinese-practice { grid-template-rows: 32px minmax(0,1fr) 54px; gap: 6px; }
  .chinese-controls button { min-height: 50px; }
  .chinese-word-area { gap: 10px; }
  #chinese-hear { width: 60px; height: 60px; min-height: 60px; }
  #chinese-word { font-size: 135px; }
  #chinese-word.is-two-characters { font-size: 104px; }
}
@media (orientation: portrait) and (max-width: 820px) { .chinese-shell { display: none !important; } }
