/* 孩子版：參考大字卡牌桌，以認字、複習、測驗三個活動為主。 */
:root {
  font-size: 18px;
  --ink: #2d3c29;
  --muted: #68745e;
  --green: #557b3b;
  --deep: #3d612b;
  --orange: #dfa03d;
  --line: #dfe6d0;
}
body {
  background: #f7faef;
  color: var(--ink);
}
.simple-app {
  min-height: 100dvh;
}
.simple-header {
  min-height: 80px;
  padding: 12px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 7px solid #b6d642;
  border-bottom: 1px solid #e0e8d2;
  background: #fffef8;
}
.simple-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.simple-brand > span {
  width: 48px;
  height: 48px;
}
.simple-header .top-actions {
  gap: 16px;
}
.simple-header .profile-control {
  border: 0;
  padding: 0;
  gap: 7px;
}
.simple-header .avatar-mini {
  height: 40px;
  width: 40px;
}
.simple-header .profile-control select {
  font-size: 18px;
  min-height: 48px;
  max-width: 220px;
  padding-right: 20px;
}
.parent-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  font-size: 17px;
  color: #68765a;
  border: 1px solid #dce5cc;
  border-radius: 12px;
  min-height: 46px;
  padding: 7px 13px;
}
.simple-header .add-profile {
  width: 46px;
  height: 46px;
}
.child-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 20px;
  background: #fffef8;
  border-bottom: 1px solid #e4ebd8;
}
.child-nav > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 58px;
  min-width: 155px;
  background: #f1f5e8;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px 25px;
  font-size: 23px;
  font-weight: 600;
  color: #6e8257;
}
.child-nav > button:hover {
  background: #e8f0db;
}
.child-nav > button.active {
  border-color: #7ca34e;
  background: #e6efcf;
  color: #466c2e;
}
.child-nav .icon {
  width: 25px;
  height: 25px;
}
.child-nav b {
  font-size: 16px;
  font-weight: 500;
  background: white;
  border-radius: 999px;
  min-width: 25px;
  padding: 0 5px;
}
.parent-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 18px 22px 0;
}
.parent-nav button {
  background: #fffef8;
  color: #6b7f55;
  font-size: 18px;
  padding: 10px 17px;
  border: 1px solid #dce5cc;
  border-radius: 10px;
  min-height: 46px;
}
.parent-nav .active {
  background: #e7efd8;
  border-color: #9db77a;
  font-weight: 600;
}
.child-screen,
.parent-screen {
  padding: 25px 36px 12px;
  min-height: 0;
  max-width: 1440px;
  margin: 0 auto;
}
.simple-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  text-align: center;
  padding: 22px;
  color: #76866a;
  font-size: 16px;
}
.simple-footer .icon {
  width: 18px;
  height: 18px;
}
.learn-scene {
  position: relative;
  background:
    radial-gradient(ellipse at 6% 30%, #eaf3c766, transparent 30%),
    radial-gradient(ellipse at 95% 65%, #dceac366, transparent 30%);
}
.learn-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.learn-title h1 {
  font-size: 30px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.learn-title p {
  font-size: 20px;
  color: #70805d;
  margin-top: 4px;
}
.learn-tools {
  display: flex;
  align-items: center;
  gap: 23px;
}
.learn-tools .text-btn {
  font-size: 18px;
  min-height: 46px;
  gap: 8px;
}
.learn-tools .icon {
  width: 22px;
  height: 22px;
}
.child-screen .deck-grid {
  max-width: 1320px;
  gap: 25px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.child-screen .deck-grid.count-1 {
  grid-template-columns: minmax(250px, 450px);
  justify-content: center;
}
.child-screen .deck-grid.count-2 {
  grid-template-columns: repeat(2, minmax(250px, 430px));
  justify-content: center;
}
.child-screen .word-card {
  padding: 20px 22px 16px;
  border: 2px solid #c9dba8;
  border-radius: 23px;
  height: clamp(430px, calc(100dvh - 500px), 610px);
  min-height: 430px;
  box-shadow: 0 9px 22px #4d6a2512;
  background: #fffef9;
  --glyph: min(112px, calc(300px / var(--letters, 2)));
}
.child-screen .word-card.locked {
  border: 3px solid #e3a33d;
  padding: 19px 21px 15px;
  background: #fffbed;
}
.child-screen .card-meta {
  font-size: 18px;
  color: #768766;
  min-height: 44px;
}
.child-screen .lock-btn {
  width: 44px;
  height: 44px;
  color: #c68b2e;
  border-radius: 50%;
  background: #fff4db;
}
.child-screen .lock-btn.on {
  background: #e5a63e;
  color: #fff;
}
.child-screen .lock-btn .icon {
  width: 25px;
  height: 25px;
}
.child-screen .card-content {
  padding: 12px 0;
  min-height: 0;
  overflow-y: auto;
  justify-content: center;
  overscroll-behavior: contain;
  border-radius: 8px;
}
.child-screen .word-card.flipped {
  height: auto;
}
.child-screen .word-card.flipped .card-content {
  overflow: visible;
  min-height: 300px;
}
.child-screen .word-tiles {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  gap: 0;
}
.child-screen .word-tiles > span {
  width: 1.18em;
  height: 1.18em;
  font-size: var(--glyph);
  border: 1px solid #c1d998;
  margin: -1px 0 0;
  line-height: 1.1;
  font-weight: 500;
  background:
    linear-gradient(#e5eed5, #e5eed5) center/100% 1px no-repeat,
    linear-gradient(#e5eed5, #e5eed5) center/1px 100% no-repeat;
  color: #3d592d;
}
.child-screen .word-tiles > span:first-child {
  margin: 0;
}
.child-screen .card-foot {
  justify-content: center;
  flex-direction: row;
  padding-top: 8px;
  min-height: 51px;
}
.child-screen .card-foot .badge {
  display: none;
}
.child-screen .card-foot .text-btn {
  font-size: 21px;
  min-height: 46px;
  gap: 8px;
  color: #537736;
}
.child-screen .card-foot .icon {
  width: 24px;
  height: 24px;
}
.child-screen .definition-title {
  font-size: 42px;
  letter-spacing: 0.12em;
  color: #476a31;
  overflow-wrap: anywhere;
}
.child-screen .card-content .zhuyin {
  font-size: 23px;
  letter-spacing: 0.04em;
  margin: 10px 0 17px;
  color: #6c8655;
}
.child-screen .meaning {
  font-size: 25px;
  line-height: 1.8;
  color: #3f5632;
  margin: 0;
  max-width: 100%;
}
.child-screen .example {
  font-size: 22px;
  line-height: 1.8;
  margin-top: 18px;
  color: #697e54;
  max-width: 100%;
}
.child-screen .example em {
  font-size: 18px;
  margin-bottom: 4px;
  color: #81966a;
}
.child-screen .face-down {
  border: 2px solid #bed395;
  background: linear-gradient(145deg, #f3f7e8, #e7efce);
}
.child-screen .face-down:before {
  inset: 12px;
  border: 1px dashed #bacf91;
  border-radius: 15px;
}
.child-screen .card-back-decor {
  width: 145px;
  max-width: 70%;
}
.child-screen .card-back-title {
  font-size: 26px;
  color: #628344;
  margin-top: 23px;
  letter-spacing: 0.08em;
}
.child-screen .card-back-small {
  font-size: 20px;
  color: #7f9667;
  max-width: none;
  margin-top: 10px;
}
.draw-bar.study-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 24px 20px;
  margin: 22px 0 0;
  background: #fffef9;
  border: 1px solid #dce7cb;
  border-radius: 20px;
  box-shadow: 0 5px 16px #5b77380a;
}
.filter-trigger {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f0f5e7;
  border: 1px solid #cadaaf;
  padding: 10px 20px;
  border-radius: 14px;
  min-height: 70px;
  font-size: 22px;
  color: #5a7a3f;
  text-align: left;
}
.filter-trigger > .icon {
  width: 28px;
  height: 28px;
}
.filter-trigger small {
  font-size: 16px;
  color: #81936b;
  display: block;
  margin-top: 2px;
}
.filter-trigger > span {
  min-width: 0;
  flex: 1;
}
.draw-bar .draw-button {
  font-size: 34px;
  min-height: 76px;
  padding: 14px 51px;
  background: linear-gradient(150deg, #f3c76b, #e2a23d);
  color: #fff;
  border: 3px solid white;
  border-radius: 999px;
  box-shadow:
    0 0 0 3px #bfd35e,
    0 7px 15px #be862526;
  text-shadow: 0 1px 1px #9c6d3b44;
  letter-spacing: 0.13em;
  gap: 15px;
}
.draw-bar .draw-button:hover {
  background: #dfa03d;
  transform: translateY(-2px);
}
.draw-bar .draw-button .icon {
  width: 34px;
  height: 34px;
}
.learn-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 20px 0 3px;
}
.learn-secondary .btn {
  font-size: 20px;
  min-height: 54px;
  padding: 10px 22px;
  border-radius: 12px;
}
.learn-secondary .text-btn {
  font-size: 18px;
  min-height: 46px;
}
.child-screen .eyebrow {
  display: none;
}
.child-screen .page-heading {
  margin: 3px 0 25px;
  display: flex;
}
.child-screen .page-heading h1 {
  font-size: 32px;
  letter-spacing: 0.06em;
}
.child-screen .page-heading p {
  font-size: 21px;
  line-height: 1.8;
  color: #748360;
  max-width: none;
}
.child-screen .page-heading > .text-btn {
  font-size: 18px;
}
.child-screen .btn {
  font-size: 22px;
  min-height: 60px;
  padding: 13px 25px;
  border-radius: 13px;
}
.child-screen .btn .icon {
  width: 24px;
  height: 24px;
}
.child-screen .btn.draw-button {
  font-size: 34px;
  min-height: 76px;
  border-radius: 999px;
  padding: 14px 51px;
}
.child-screen .pill {
  font-size: 19px;
  padding: 7px 15px;
}
.child-screen .pill .icon {
  width: 22px;
  height: 22px;
}
.child-screen .review-intro {
  padding: 35px 25px;
  min-height: 0;
  max-width: 1000px;
  margin: auto;
}
.child-screen .review-intro h2 {
  font-size: 32px;
  line-height: 1.7;
}
.child-screen .review-intro > p {
  font-size: 22px;
  line-height: 1.9;
  color: #71815f;
}
.child-screen .review-intro .review-plant {
  width: 140px;
}
.child-screen .review-intro > .eyebrow,
.child-screen .info-note {
  display: none;
}
.child-screen .queue-preview span {
  font-size: 23px;
  padding: 8px 14px;
  color: #5f7c44;
}
.child-screen .recall-card {
  max-width: 900px;
  padding: 32px 40px;
  margin: 23px auto;
}
.child-screen .recall-card > h2 {
  font-size: 108px;
  line-height: 1.4;
  margin: 22px 0;
  letter-spacing: 0.13em;
}
.child-screen .recall-card > p {
  font-size: 23px;
  color: #71805f;
}
.child-screen .recall-definition .zhuyin {
  font-size: 28px;
  color: #789260;
}
.child-screen .recall-definition > p {
  font-size: 29px;
  line-height: 1.9;
  color: #506a3c;
}
.child-screen blockquote {
  font-size: 24px;
  line-height: 1.9;
  color: #607a48;
  padding: 16px 22px;
}
.child-screen .rating-buttons {
  gap: 18px;
}
.child-screen .rating-buttons button {
  min-height: 85px;
  border-radius: 15px;
}
.child-screen .rating-buttons span,
.child-screen .rating-buttons small {
  display: none;
}
.child-screen .rating-buttons strong {
  font-size: 27px;
}
.child-screen .quiz-setup {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}
.child-screen .quiz-setup > .panel {
  padding: 32px;
  background: #fffef9;
}
.child-screen .mode-options {
  gap: 23px;
}
.child-screen .mode-card > span {
  padding: 28px 24px;
  min-height: 185px;
  border-radius: 16px;
  border-width: 2px;
  gap: 12px;
}
.child-screen .mode-card .icon {
  width: 36px;
  height: 36px;
}
.child-screen .mode-card strong {
  font-size: 28px;
}
.child-screen .mode-card small {
  font-size: 20px;
  color: #70865c;
}
.child-screen .mode-card > input {
  width: 23px;
  height: 23px;
  top: 24px;
  right: 20px;
}
.quiz-advanced {
  border-top: 1px solid #e1e9d4;
  border-bottom: 1px solid #e1e9d4;
  margin: 8px 0 30px;
}
.quiz-advanced summary {
  font-size: 19px;
  color: #6c8155;
  padding: 16px 0;
  cursor: pointer;
}
.quiz-advanced .form-grid {
  margin-top: 12px;
}
.quiz-advanced label,
.quiz-advanced legend {
  font-size: 19px;
  color: #5d7547;
}
.quiz-advanced select {
  font-size: 19px;
  min-height: 50px;
}
.quiz-advanced input[type="checkbox"] {
  height: 22px;
  width: 22px;
}
.quiz-start {
  width: 100%;
  font-size: 30px !important;
  min-height: 76px !important;
}
.child-screen .question-panel {
  max-width: 1000px;
  padding: 30px 38px;
  margin: 22px auto;
}
.child-screen .quiz-progress {
  font-size: 20px;
  color: #6b8054;
}
.child-screen .question-panel h2 {
  font-size: 34px;
  line-height: 1.8;
  margin: 25px 0;
}
.child-screen .answer-option {
  font-size: 26px;
  min-height: 86px;
  padding: 18px 23px;
  border-radius: 14px;
  gap: 18px;
  line-height: 1.7;
  border-width: 2px;
}
.child-screen .option-letter {
  font-size: 21px;
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #78905f;
}
.child-screen .answer-feedback {
  font-size: 25px;
  line-height: 1.8;
}
.child-screen .answer-feedback p {
  font-size: 22px;
}
.child-screen .hint-row .text-btn {
  font-size: 21px;
  color: #6e854f;
  gap: 9px;
  min-height: 50px;
}
.child-screen .hint-row > .small {
  display: none;
}
.child-screen .hint-box {
  font-size: 22px;
  padding: 17px 20px;
  line-height: 1.8;
}
.child-screen .results-summary h2 {
  font-size: 30px;
}
.child-screen .results-summary p {
  font-size: 21px;
  line-height: 1.9;
  color: #72835f;
}
.child-screen .result-ring span {
  font-size: 17px;
  color: #7e926a;
}
.child-screen .result-row h3 {
  font-size: 23px;
  line-height: 1.8;
}
.child-screen .result-row p {
  font-size: 20px;
  color: #71845b;
}
.child-screen .result-row .small,
.child-screen .result-row .text-btn {
  font-size: 18px;
}
.child-screen .result-row .result-indicator {
  width: 32px;
  height: 32px;
}
.child-screen .child-completion {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 32px 28px;
  max-width: 1000px;
  margin: 0 auto 24px;
}
.completion-art {
  width: 140px;
  max-width: 40%;
  margin: 0 auto 17px;
}
.child-screen .child-completion h2 {
  font-size: 32px;
  margin: 5px 0 13px;
  line-height: 1.7;
}
.child-screen .child-completion .score-label {
  font-size: 21px;
  margin: 4px 0;
  color: #6c8153;
}
.result-score {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 15px;
  line-height: 1.4;
}
.result-score strong {
  font-size: 80px;
  font-weight: 600;
  color: #597b3b;
}
.result-score span {
  font-size: 28px;
  color: #8a9d76;
}
.child-screen .child-completion .center-actions {
  margin-top: 25px;
}
.result-details {
  max-width: 1000px;
  margin: 0 auto 20px;
}
.result-details > summary {
  cursor: pointer;
  min-height: 50px;
  font-size: 23px;
  color: #667f4d;
  display: list-item;
  list-style-position: inside;
  line-height: 2;
}
.result-details .result-list {
  margin-top: 18px;
}
.child-screen .result-record-note {
  font-size: 18px;
  color: #7b8b68;
  margin-top: 22px;
  line-height: 1.9;
}
.result-details > .text-btn {
  font-size: 17px;
  margin-top: 12px;
}
.review-extra {
  margin-top: 25px;
  border-top: 1px solid #e1e9d5;
  padding-top: 10px;
  max-width: 100%;
}
.review-extra > summary {
  cursor: pointer;
  font-size: 19px;
  color: #73885b;
  line-height: 2;
  min-height: 47px;
}
.review-extra .btn {
  margin-top: 14px;
}
.child-screen .review-extra > p {
  font-size: 19px;
  margin: 12px 0 4px;
  line-height: 1.9;
  color: #7b8b69;
}
.child-screen .dimension-stats {
  display: none;
}
.child-screen .section-head h2 {
  font-size: 26px;
}
.child-screen .section-head > .small {
  display: none;
}
dialog {
  width: 650px;
  max-height: 90dvh;
  background: #fffef9;
}
dialog.wide {
  width: 790px;
}
.dialog-head {
  padding: 19px 25px;
}
.dialog-head h2 {
  font-size: 25px;
}
.dialog-head .icon-btn {
  height: 44px;
  width: 44px;
}
.dialog-body {
  padding: 25px;
}
.dialog-body p,
.dialog-body > p,
.dialog-body label,
.dialog-body legend {
  font-size: 18px;
  line-height: 1.9;
  color: #667e4f;
}
.dialog-body .btn {
  font-size: 23px;
  min-height: 60px;
}
.dialog-body .study-toolbar {
  border: 0;
  padding: 0;
  font-size: 19px;
}
.dialog-body .toolbar-top {
  display: block;
  border: 0;
  padding: 0;
}
.dialog-body .toolbar-label {
  display: block;
  font-size: 20px;
  margin-bottom: 14px;
  color: #627c49;
}
.dialog-body .grade-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 23px;
}
.dialog-body .grade-chips .chip {
  font-size: 20px;
  min-height: 55px;
  padding: 9px 12px;
  background: #fffefa;
  color: #7d8f69;
  border-color: #d7e2c6;
}
.dialog-body .grade-chips .chip:has(input:checked) {
  background: #e7efd5;
  border-color: #a6bf80;
  color: #56773a;
}
.dialog-body .grade-chips .chip:not(:has(input:checked)) {
  background: #fffefa;
  border-color: #d7e2c6;
  color: #7d8f69;
}
.dialog-body .select-label {
  display: flex;
  gap: 15px;
  font-size: 20px;
  margin-bottom: 19px;
}
.dialog-body .toolbar-bottom {
  font-size: 19px;
  gap: 17px;
  align-items: flex-start;
  flex-direction: column;
  padding: 0;
}
.dialog-body .toolbar-bottom > label {
  font-size: 19px;
  gap: 12px;
}
.dialog-body #has-filter,
.dialog-body #count-filter,
.dialog-body #pos-filter {
  font-size: 20px;
  min-height: 50px;
  padding: 8px 12px;
}
.dialog-body .check-label input {
  width: 23px;
  height: 23px;
}
.dialog-body .pool-count {
  font-size: 18px;
  color: #829969;
}
.play-help {
  font-size: 23px;
  line-height: 2;
  color: #5c7546;
  padding-left: 30px;
  margin: 0 0 26px;
}
.play-help li + li {
  margin-top: 12px;
}
.dialog-body input:not([type="checkbox"]):not([type="radio"]),
.dialog-body select,
.dialog-body textarea {
  font-size: 18px;
  min-height: 48px;
}
.parent-screen .eyebrow,
.parent-screen .section-kicker {
  display: none;
}
.parent-screen .page-heading h1 {
  font-size: 28px;
}
.parent-screen :is(p, label, legend, .muted, .small, .fine-print, .info-note) {
  font-size: 16px;
}
.parent-screen .btn,
.parent-screen .text-btn,
.parent-screen .chip,
.parent-screen select,
.parent-screen input {
  font-size: 16px;
  min-height: 44px;
}
.parent-screen :is(.section-head h2, .task-row h3) {
  font-size: 21px;
}
.parent-screen
  :is(
    .stat-card p,
    .stat-card div > span,
    .stat-card small,
    .profile-row p,
    .rules-list span,
    .rules-list strong,
    .settings-grid .panel > p.muted,
    .vocab-card-bottom,
    .vocab-card > p
  ) {
  font-size: 16px;
  white-space: normal;
}
.parent-screen :is(.stat-card, .history-stats .panel) {
  padding: 22px 18px;
}
.parent-screen :is(.stat-card strong, .history-stats strong) {
  font-size: 36px;
}
.parent-screen table,
.parent-screen th,
.parent-screen td {
  font-size: 16px;
}
.parent-screen td small {
  font-size: 14px;
}
.parent-screen .word-link {
  font-size: 20px;
}
.parent-screen .profile-row strong,
.parent-screen .badge {
  font-size: 16px;
}
.parent-screen .vocab-card > div:first-child > span:last-child {
  font-size: 14px;
}
.parent-screen .hero-copy > p,
.parent-screen .hero-actions > span {
  font-size: 16px;
}
.parent-screen .task-row .task-number {
  font-size: 17px;
  width: 46px;
  height: 48px;
}
#toast {
  font-size: 18px;
  line-height: 1.7;
  padding: 15px 25px;
}
@media (max-width: 950px) {
  .simple-header {
    padding: 12px 24px;
  }
  .simple-brand {
    font-size: 22px;
  }
  .child-screen,
  .parent-screen {
    padding: 23px 24px 12px;
  }
  .child-screen .deck-grid {
    gap: 20px;
  }
  .child-screen .word-card {
    padding: 16px;
    --glyph: min(96px, calc(280px / var(--letters, 2)));
  }
  .child-screen .word-card.locked {
    padding: 15px;
  }
  .child-screen .meaning {
    font-size: 23px;
  }
  .child-screen .example {
    font-size: 21px;
  }
  .child-screen .definition-title {
    font-size: 36px;
  }
  .child-screen .card-content .zhuyin {
    font-size: 21px;
  }
  .child-screen .card-back-title {
    font-size: 22px;
  }
  .parent-screen .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .parent-screen .home-lower,
  .parent-screen .history-overview {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .simple-header {
    min-height: 74px;
    padding: 10px 15px;
    border-top-width: 5px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .simple-brand {
    font-size: 20px;
    gap: 7px;
    letter-spacing: 0.03em;
  }
  .simple-brand > span {
    width: 35px;
    height: 35px;
  }
  .simple-header .top-actions {
    gap: 7px;
    margin-left: auto;
  }
  .simple-header .avatar-mini {
    display: none;
  }
  .simple-header .profile-control select {
    font-size: 16px;
    min-height: 44px;
    max-width: 131px;
    padding: 6px 10px 6px 3px;
  }
  .parent-entry {
    font-size: 15px;
    min-height: 44px;
    padding: 7px 9px;
    border-radius: 10px;
    gap: 5px;
  }
  .parent-entry .icon {
    width: 19px;
    height: 19px;
  }
  .parent-entry span {
    display: none;
  }
  .simple-header .add-profile {
    height: 40px;
    width: 40px;
  }
  .child-nav {
    padding: 12px 14px;
    gap: 9px;
  }
  .child-nav > button {
    flex: 1;
    min-width: 0;
    min-height: 57px;
    font-size: 22px;
    padding: 10px 5px;
    gap: 7px;
    border-radius: 13px;
    white-space: nowrap;
  }
  .child-nav .icon {
    width: 23px;
    height: 23px;
  }
  .child-nav b {
    font-size: 15px;
    min-width: 22px;
    padding: 0 4px;
  }
  .child-screen,
  .parent-screen {
    padding: 20px 15px 10px;
  }
  .learn-title {
    margin-bottom: 20px;
    gap: 12px;
    align-items: flex-start;
  }
  .learn-title h1 {
    font-size: 27px;
    letter-spacing: 0.08em;
  }
  .learn-title p {
    font-size: 18px;
    margin-top: 4px;
  }
  .learn-tools {
    gap: 0;
    flex-direction: column;
    align-items: flex-end;
  }
  .learn-tools .text-btn {
    font-size: 16px;
    min-height: 35px;
    padding: 3px 0;
    gap: 5px;
  }
  .learn-tools .icon {
    width: 18px;
    height: 18px;
  }
  .child-screen .deck-grid,
  .child-screen .deck-grid.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .child-screen .deck-grid.count-1 {
    grid-template-columns: minmax(200px, 320px);
  }
  .child-screen .word-card {
    min-height: 350px;
    height: 350px;
    padding: 13px 11px 9px;
    border-radius: 17px;
    --glyph: min(60px, calc(210px / var(--letters, 2)));
  }
  .child-screen .word-card.locked {
    padding: 12px 10px 8px;
  }
  .child-screen .card-meta {
    font-size: 16px;
    min-height: 40px;
  }
  .child-screen .lock-btn {
    width: 40px;
    height: 40px;
  }
  .child-screen .lock-btn .icon {
    width: 22px;
    height: 22px;
  }
  .child-screen .card-content {
    padding: 8px 0;
    justify-content: center;
  }
  .child-screen .word-tiles > span {
    width: 1.15em;
    height: 1.15em;
  }
  .child-screen .card-foot {
    min-height: 45px;
    padding-top: 3px;
  }
  .child-screen .card-foot .text-btn {
    font-size: 18px;
    min-height: 44px;
    gap: 5px;
  }
  .child-screen .card-foot .icon {
    width: 21px;
    height: 21px;
  }
  .child-screen .card-back-decor {
    width: 95px;
    max-width: 80%;
  }
  .child-screen .card-back-title {
    font-size: 19px;
    margin-top: 20px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
  .child-screen .card-back-small {
    font-size: 17px;
    line-height: 1.7;
    margin-top: 8px;
  }
  .child-screen .flipped .card-content {
    justify-content: flex-start;
  }
  .child-screen .word-card.flipped .card-content {
    min-height: 220px;
    overflow: visible;
  }
  .child-screen .definition-title {
    font-size: 32px;
    letter-spacing: 0.07em;
  }
  .child-screen .card-content .zhuyin {
    font-size: 18px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    margin: 7px 0 12px;
  }
  .child-screen .meaning {
    font-size: 20px;
    line-height: 1.8;
  }
  .child-screen .example {
    font-size: 19px;
    line-height: 1.8;
    margin-top: 16px;
  }
  .child-screen .example em {
    font-size: 16px;
  }
  .draw-bar.study-heading {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    gap: 17px;
    padding: 18px 17px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    z-index: 8;
    background: #fffef9f5;
    backdrop-filter: blur(10px);
  }
  body[data-page="learn"] .simple-app {
    padding-bottom: 115px;
  }
  .filter-trigger {
    font-size: 21px;
    min-height: 65px;
    padding: 8px 12px;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .filter-trigger > .icon {
    width: 24px;
    height: 24px;
  }
  .filter-trigger small {
    font-size: 14px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .child-screen .btn.draw-button {
    font-size: 29px;
    min-height: 69px;
    padding: 13px 23px;
    letter-spacing: 0.06em;
    gap: 9px;
    border-radius: 999px;
    flex: none;
  }
  .draw-bar .draw-button .icon {
    width: 28px;
    height: 28px;
  }
  .learn-secondary {
    gap: 20px;
    flex-wrap: wrap;
    margin: 16px 0;
  }
  .learn-secondary .btn {
    font-size: 20px;
    min-height: 54px;
  }
  .learn-secondary .text-btn {
    font-size: 18px;
  }
  .simple-footer {
    font-size: 15px;
    line-height: 1.8;
    padding: 19px 16px;
    gap: 5px;
  }
  .child-screen .page-heading {
    display: block;
    margin: 0 0 20px;
  }
  .child-screen .page-heading h1 {
    font-size: 28px;
  }
  .child-screen .page-heading p {
    font-size: 19px;
    line-height: 1.8;
    margin-top: 5px;
  }
  .child-screen .btn {
    font-size: 22px;
    min-height: 58px;
    padding: 12px 20px;
  }
  .child-screen .review-intro {
    padding: 25px 18px;
  }
  .child-screen .review-intro h2 {
    font-size: 27px;
  }
  .child-screen .review-intro > p {
    font-size: 20px;
  }
  .child-screen .review-intro .review-plant {
    width: 110px;
  }
  .child-screen .queue-preview span {
    font-size: 21px;
  }
  .child-screen .center-actions {
    gap: 14px;
  }
  .child-screen .review-intro .center-actions > .btn {
    width: 100%;
  }
  .child-screen .recall-card {
    padding: 25px 17px;
  }
  .child-screen .recall-card > h2 {
    font-size: 72px;
    margin: 20px 0;
    overflow-wrap: anywhere;
  }
  .child-screen .recall-card > p {
    font-size: 21px;
  }
  .child-screen .recall-definition .zhuyin {
    font-size: 25px;
  }
  .child-screen .recall-definition > p {
    font-size: 25px;
  }
  .child-screen blockquote {
    font-size: 22px;
    padding: 14px 15px;
    line-height: 1.9;
  }
  .child-screen .pill {
    font-size: 18px;
    padding: 6px 12px;
  }
  .child-screen .rating-buttons {
    gap: 9px;
  }
  .child-screen .rating-buttons button {
    min-height: 76px;
    padding: 12px 5px;
  }
  .child-screen .rating-buttons strong {
    font-size: 23px;
    white-space: nowrap;
  }
  .child-screen .quiz-setup > .panel {
    padding: 20px 16px;
  }
  .child-screen .mode-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .child-screen .mode-card > span {
    padding: 21px 23px;
    min-height: 155px;
    gap: 7px;
  }
  .child-screen .mode-card strong {
    font-size: 27px;
  }
  .child-screen .mode-card small {
    font-size: 20px;
  }
  .child-screen .mode-card > input {
    top: 22px;
    right: 19px;
  }
  .quiz-advanced summary {
    font-size: 19px;
  }
  .quiz-advanced label,
  .quiz-advanced legend,
  .quiz-advanced select {
    font-size: 18px;
  }
  .quiz-advanced .form-grid {
    grid-template-columns: 1fr;
  }
  .quiz-advanced .dimension-options {
    gap: 20px;
  }
  .child-screen .quiz-start {
    font-size: 28px !important;
    min-height: 70px !important;
  }
  .child-screen .quiz-progress {
    font-size: 18px;
  }
  .child-screen .question-panel {
    padding: 24px 17px;
    margin: 19px auto;
  }
  .child-screen .question-panel h2 {
    font-size: 29px;
    line-height: 1.8;
    margin: 22px 0;
  }
  .child-screen .answer-option {
    font-size: 23px;
    min-height: 83px;
    padding: 15px 13px;
    gap: 13px;
    line-height: 1.7;
  }
  .child-screen .option-letter {
    font-size: 19px;
    min-width: 33px;
    width: 33px;
    height: 36px;
  }
  .child-screen .answer-feedback {
    font-size: 23px;
    line-height: 1.8;
    padding: 17px;
  }
  .child-screen .answer-feedback p {
    font-size: 21px;
  }
  .child-screen .hint-row .text-btn {
    font-size: 21px;
  }
  .child-screen .hint-box {
    font-size: 21px;
    line-height: 1.8;
  }
  .child-screen .results-summary {
    gap: 20px;
    padding: 25px 20px;
  }
  .child-screen .results-summary h2 {
    font-size: 27px;
  }
  .child-screen .results-summary p {
    font-size: 20px;
    line-height: 1.9;
  }
  .child-screen .result-row h3 {
    font-size: 22px;
  }
  .child-screen .result-row p {
    font-size: 20px;
  }
  .child-screen .result-row .text-btn {
    font-size: 17px;
  }
  .child-screen .result-row {
    flex-wrap: wrap;
  }
  .child-screen .result-row > div {
    min-width: 0;
  }
  .child-screen .section-head h2 {
    font-size: 24px;
  }
  .parent-nav {
    padding: 16px 12px 0;
    gap: 8px;
  }
  .parent-nav button {
    font-size: 16px;
    padding: 9px 13px;
    flex: 1;
    white-space: nowrap;
  }
  .parent-screen .page-heading h1 {
    font-size: 26px;
  }
  .parent-screen .hero {
    min-height: 430px;
  }
  .parent-screen .hero-copy > p {
    font-size: 16px;
    max-width: 100%;
  }
  .parent-screen .garden-art {
    bottom: 10px;
  }
  .parent-screen .vocab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .parent-screen .vocab-card h2 {
    font-size: 35px;
  }
  .parent-screen .dimension-stats,
  .parent-screen .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  dialog {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }
  .dialog-head {
    padding: 16px 19px;
  }
  .dialog-head h2 {
    font-size: 23px;
  }
  .dialog-body {
    padding: 21px 18px;
  }
  .dialog-body .grade-chips {
    gap: 9px;
  }
  .dialog-body .grade-chips .chip {
    font-size: 19px;
    padding: 8px 5px;
    min-height: 52px;
  }
  .play-help {
    font-size: 21px;
    line-height: 1.9;
    padding-left: 27px;
  }
  .dialog-body .btn {
    font-size: 22px;
    min-height: 59px;
  }
  .dialog-body .word-detail-top .badge {
    font-size: 17px;
  }
  .dialog-body .detail-word {
    font-size: 46px;
  }
  .dialog-body .detail-meaning {
    font-size: 22px;
  }
  .dialog-body .zhuyin {
    font-size: 22px;
  }
  .dialog-body blockquote {
    font-size: 21px;
  }
  .dialog-body .dimension-detail {
    font-size: 16px;
  }
  .dialog-body .detail-timeline > div {
    font-size: 16px;
  }
  .dialog-body .detail-timeline time {
    font-size: 14px;
  }
  #toast {
    bottom: 22px;
    font-size: 18px;
    min-width: 250px;
    max-width: 90vw;
  }
}
@media (max-width: 365px) {
  .simple-brand {
    font-size: 18px;
  }
  .simple-brand > span {
    width: 31px;
    height: 31px;
  }
  .simple-header {
    padding: 9px 11px;
  }
  .simple-header .top-actions {
    gap: 4px;
  }
  .simple-header .profile-control select {
    font-size: 15px;
    max-width: 119px;
  }
  .parent-entry {
    padding: 7px;
  }
  .child-nav > button {
    font-size: 20px;
    gap: 5px;
  }
  .child-nav .icon {
    width: 20px;
  }
  .learn-title p {
    font-size: 17px;
  }
  .child-screen .word-card {
    padding: 11px 9px;
    --glyph: min(55px, calc(200px / var(--letters, 2)));
  }
  .child-screen .word-card.locked {
    padding: 10px 8px;
  }
  .child-screen .card-back-title {
    font-size: 17px;
  }
  .child-screen .card-back-small {
    font-size: 16px;
  }
  .draw-bar.study-heading {
    gap: 13px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .filter-trigger {
    padding: 8px 10px;
    font-size: 20px;
    gap: 6px;
  }
  .filter-trigger > .icon {
    width: 21px;
  }
  .filter-trigger small {
    max-width: 102px;
  }
  .child-screen .btn.draw-button {
    font-size: 26px;
    padding: 13px 18px;
  }
  .child-screen .rating-buttons strong {
    font-size: 21px;
  }
  .parent-nav {
    gap: 6px;
  }
  .parent-nav button {
    font-size: 15px;
    padding: 8px 9px;
  }
}
@media (min-width: 701px) and (max-height: 850px) {
  .simple-header {
    min-height: 66px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .child-nav {
    padding: 9px 20px;
  }
  .child-nav > button {
    min-height: 49px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .child-screen {
    padding-top: 17px;
  }
  .learn-title {
    margin-bottom: 16px;
  }
  .learn-title h1 {
    font-size: 27px;
  }
  .learn-title p {
    font-size: 19px;
  }
  .child-screen .word-card {
    height: calc(100dvh - 385px);
    min-height: 350px;
    --glyph: min(86px, calc(240px / var(--letters, 2)));
  }
  .draw-bar.study-heading {
    padding: 16px 20px;
    margin-top: 18px;
  }
  .child-screen .btn.draw-button {
    min-height: 65px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .filter-trigger {
    min-height: 61px;
  }
}
