/* ============================================================
   me22.css —— V2.2 我的、家长区、练一练、记忆罐的样式（C 负责）
   孩子看到的字一律不小于 14px；家长区的说明字可以小一点（不小于 12px）。不用红色。
   ============================================================ */

/* ---------------- 我的 ---------------- */
.me22 .me-head { display: flex; align-items: center; height: 44px; margin: calc(8px + env(safe-area-inset-top)) 0 6px; }
.me22 .me-head b { font-size: 21px; font-weight: 900; }
.me22 .me-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; }
.me22 .me-av { width: 76px; height: 76px; flex: 0 0 76px; }
.me22 .me-av svg, .me22 .me-av img { width: 100%; height: 100%; object-fit: contain; }
.me22 .me-num { flex: 1; min-width: 0; text-align: center; }
.me22 .me-stars { font-family: var(--en); font-size: 44px; font-weight: 900; line-height: 1.15; letter-spacing: .01em; }
.me22 .me-next { font-size: 15px; color: #6f6252; margin-top: 4px; }
.me22 .me-gold { color: #B5602A; font-weight: 900; }

.me22 .mcell, .pr22 .pr-jar {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #E6DCCB;
  border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; position: relative;
}
.me22 .mcell:active, .pr22 .pr-jar:active, .pr22 .pr-t:active { transform: scale(.98); }
.me22 .mc-i { width: 42px; flex: 0 0 42px; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.me22 .mc-i .mc-th { width: 38px; height: 46px; object-fit: contain; display: block; }
.me22 .mc-m { flex: 1; min-width: 0; }
.me22 .mc-m b { display: block; font-size: 17px; line-height: 1.3; }
.me22 .mc-m span { font-size: 14px; color: #8B7A63; }
.me22 .mcell > i { font-style: normal; color: #B9AC99; font-size: 22px; }
.me22 .mc-dot { width: 11px; height: 11px; border-radius: 50%; background: #FFC93C; box-shadow: 0 0 6px #FFC93C; flex: none; }

.me22 .me-sec { font-size: 16px; font-weight: 900; margin: 18px 0 10px; }
.me22 .me-sec small { font-size: 14px; font-weight: 600; color: #8B7A63; margin-left: 8px; }
.me22 .dex-cell span { font-size: 14px; line-height: 1.25; }
.me22 .dex-cell { cursor: pointer; }
.me22 .dex-cell.hop { animation: me22hop .45s; }
@keyframes me22hop { 0%, 100% { transform: translateY(0) } 40% { transform: translateY(-8px) } }
.me22 .me-tip { text-align: center; font-size: 14px; color: #8B7A63; margin: 12px 0 0; }

/* 家长入口：右下角浅灰小齿轮，长按2秒（一圈慢慢转满）；短按只晃一下 */
.me22 .mgear {
  width: 44px; height: 44px; margin: 18px 0 4px auto; display: grid; place-items: center;
  font-size: 20px; line-height: 1; color: #D2C6B3; border-radius: 50%; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none;
}
.me22 .mgear.lp-press { background: #F4EFE6; color: #8B7A63; filter: none; }
.me22 .mgear.lp-press::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent;
  border-top-color: #8B7A63; animation: me22spin 2s linear forwards;
}
.me22 .mgear .lp-bar { display: none; }
.me22 .mgear.wig { animation: me22wig .4s; }
@keyframes me22spin { to { transform: rotate(360deg) } }
@keyframes me22wig { 0%, 100% { transform: rotate(0) } 25% { transform: rotate(-16deg) } 75% { transform: rotate(16deg) } }

/* ---------------- 练一练 ---------------- */
.pr22 .pr-jar { background: #FFF6E2; border: 2px dashed #E9C46A; padding: 14px; margin-top: 4px; }
.pr22 .pj-i { font-style: normal; font-size: 34px; line-height: 1; flex: none; }
.pr22 .pj-m { flex: 1; min-width: 0; }
.pr22 .pj-m b { display: block; font-size: 18px; line-height: 1.3; }
.pr22 .pj-m small { font-size: 14px; font-weight: 600; color: #8B7A63; }
.pr22 .pj-st { font-size: 16px; white-space: nowrap; flex: none; }
.pr22 .pr-sec { font-size: 15px; font-weight: 900; color: #8B7A63; margin: 16px 0 10px; }
.pr22 .pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr22 .pr-t {
  position: relative; background: #fff; border: 2px solid #E6DCCB; border-radius: 16px;
  padding: 14px 8px 12px; text-align: center; cursor: pointer; min-height: 112px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pr22 .pr-t i { font-style: normal; font-size: 32px; line-height: 1.2; display: block; }
.pr22 .pr-t b { font-size: 17px; display: block; margin-top: 4px; }
.pr22 .pr-t small { font-size: 14px; color: #8B7A63; display: block; line-height: 1.3; margin-top: 2px; }
.pr22 .pr-tag {
  position: absolute; top: -8px; right: -4px; font-style: normal; font-size: 14px; font-weight: 800;
  background: #FFC93C; border-radius: 8px; padding: 0 7px; line-height: 1.5;
}
.pr22 .pr-got {
  position: absolute; top: -8px; left: -4px; font-style: normal; font-size: 14px; font-weight: 800;
  background: #EAF6E4; color: #3c8a33; border-radius: 8px; padding: 0 7px; line-height: 1.5;
}

/* ---------------- 家长区 ---------------- */
.pa22 .pa-sec { font-size: 15px; font-weight: 900; margin: 18px 0 8px; }
.pa22 .pa-sec small { font-size: 12px; font-weight: 600; color: #8B7A63; margin-left: 8px; }
.pa22 .pa-today { padding: 6px 14px; background: #FFF6E2; border-width: 2.5px; box-shadow: 0 4px 0 var(--ink); }
.pa22 .pt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed #E6CFA0; font-size: 14px;
}
.pa22 .pt-row:last-child { border-bottom: 0; }
.pa22 .pt-row > span { color: #8B7A63; flex: none; }
.pa22 .pt-row > b { text-align: right; font-size: 15px; line-height: 1.4; }
.pa22 .pt-row small { font-weight: 600; color: #8B7A63; font-size: 12.5px; }
.pa22 .pt-row b.ok, .pa22 .pt-row .ok { color: #3c8a33; }
.pa22 .pt-wk { display: flex; gap: 3px; justify-content: flex-end; margin-top: 4px; }
.pa22 .pt-wk i {
  font-style: normal; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; background: #fff; border: 1.5px solid #E6DCCB; color: #B9AC99;
}
.pa22 .pt-wk i.on { background: #7BC96F; border-color: #5aa64f; color: #fff; }
.pa22 .pt-wk i.fut { opacity: .45; }

.pa22 .pa-box { background: #fff; border: 2px solid #E6DCCB; border-radius: 14px; padding: 2px 12px; }
.pa22 .row {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed #E6DCCB; font-size: 13.5px; line-height: 1.45;
}
.pa22 .row:last-child { border-bottom: 0; }
.pa22 .row > span:first-child { flex: 1; min-width: 0; }
.pa22 .row small { color: #8B7A63; font-size: 12px; }
.pa22 .pp-st { white-space: nowrap; font-size: 16px; letter-spacing: 2px; }
.pa22 .btn2, .pa-modal .btn2 {
  font: inherit; font-size: 13px; font-weight: 700; border: 1.5px solid #4A3728; background: #fff; color: #4A3728;
  border-radius: 10px; padding: 7px 11px; cursor: pointer; white-space: nowrap; text-decoration: none;
  display: inline-block; line-height: 1.3; flex: none;
}
.pa22 .btn2:active, .pa-modal .btn2:active { background: #F4EFE6; }
.pa22 .btn2.w, .pa-modal .btn2.w { display: block; width: 100%; font-size: 15px; padding: 10px; margin: 8px 0; text-align: center; }
.pa22 .pa-sync { display: flex; align-items: center; gap: 8px; }
.pa22 .pa-sync .syncdot { width: 10px; height: 10px; flex: 0 0 10px; margin: 0; }
.pa22 .pa-dump {
  display: block; width: 100%; height: 110px; margin: 2px 0 8px; font-size: 11px; font-family: ui-monospace, Menlo, monospace;
  border: 1.5px solid #E6DCCB; border-radius: 10px; padding: 8px; color: #4A3728; background: #FFFDF8;
  -webkit-user-select: text; user-select: text;
}
.pa22 .pa-dump[hidden], .pa22 .btn2[hidden] { display: none; }
.pa22 .pa-foot { font-size: 12.5px; color: #8B7A63; text-align: center; margin: 18px 0 6px; line-height: 1.6; word-break: break-all; }
.pa-modal b { display: block; font-size: 17px; }
.pa-modal p { font-size: 14px; color: #6f6252; margin: 8px 0 6px; line-height: 1.6; }
.pa-modal .pa-mb { margin-top: 6px; }
.pa-modal #lo-ok { background: #FFF1D6; }

/* ---------------- 记忆罐 / 本周复习 / 填字（孩子看的小字拉到14px） ---------------- */
.rv22 .tip, .rv22 .q-prompt .sub, .rv22 .combo { font-size: 14px; }
.rv22 .tip { opacity: .65; }
.rv22 .retry-tip { opacity: 1; }
.rv22 .jr-intro { text-align: center; margin: 26px 0 22px; }
.rv22 .jr-intro h3 { font-size: 24px; margin: 6px 0 2px; }
.rv22 .jr-intro p { font-size: 16px; color: #6f6252; margin: 0; }

/* 平时做完的结算（不带底栏）：上面罐子＋星星数，☆变⭐，新拿的星星飞进星星数 */
.rv22.jr { min-height: 100vh; }
.rv22 .jr-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 0 4px;
}
.rv22 .jr-src { font-size: 30px; line-height: 1; }
.rv22 .jr-cap {
  display: inline-flex; align-items: center; gap: 2px; background: #fff; border: 2.5px solid var(--ink);
  border-radius: 14px; padding: 3px 12px; font-size: 18px; font-weight: 900; box-shadow: 0 3px 0 var(--ink);
  position: relative;
}
.rv22 .jr-cap b { font-family: var(--en); }
.rv22 .jr-body { text-align: center; margin-top: 18px; }
.rv22 .jr-stars { display: flex; justify-content: center; gap: 6px; font-size: 40px; line-height: 1.2; margin: 4px 0 2px; }
.rv22 .jr-stars i { font-style: normal; opacity: .45; }
.rv22 .jr-stars i.on { opacity: 1; }
.rv22 .jr-body h3 { font-size: 22px; margin: 8px 0 6px; }
.rv22 .jr-line { font-size: 17px; font-weight: 800; color: #6f6252; margin: 0 0 4px; min-height: 26px; }
.rv22 .jr-sub { font-size: 14px; color: #8B7A63; margin: 4px 0 0; }
.rv22 .jr-btns { margin-top: 26px; min-height: 64px; animation: v22fade .3s both; }
.rv22 .jr-again {
  display: block; width: 100%; background: none; border: 0; font: inherit; font-size: 15px; color: #8B7A63;
  text-decoration: underline; padding: 12px 0; margin-top: 4px; cursor: pointer;
}

/* 本周复习、填字：今天的星星已经拿过 */
.wk-got { font-size: 14px !important; opacity: .8 !important; margin: -12px 0 16px !important; }
.x-ask b { display: block; font-size: 18px; }
.x-ask p { font-size: 15px; color: #6f6252; margin: 8px 0 14px; }

/* 记忆罐出题（修复X：听一听同款）：顶栏中间一个小罐子当进度，不写数字 */
.jr-mini { height: 44px; width: 44px; display: flex; align-items: center; justify-content: center; }
.jr-mini svg { height: 44px; width: auto; }

/* ================= V2.2第二批（M） ================= */

/* ---------------- 单词图鉴（#/dex，原型 dex()）：按课分组，灰＝还没学、彩＝在学、金框＝记牢 ---------------- */
.dx22 .dx-key { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; font-size: 14px; color: #8B7A63; margin: 0 0 4px; }
.dx22 .dx-key i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin: 0 2px 0 10px; border: 2px solid #CFC6B8; background: #EFE9DF; vertical-align: -2px; }
.dx22 .dx-key i:first-child { margin-left: 0; }
.dx22 .dx-key i.k-own { background: #fff; border-color: #4A3728; }
.dx22 .dx-key i.k-gold { background: #FFFBEC; border: 3px solid #E0A800; }
.dx22 .dx-grp { margin: 16px 0 0; }
.dx22 .dx-h { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; }
.dx22 .dx-emo { font-size: 20px; line-height: 1; }
.dx22 .dx-h b { font-size: 16px; font-weight: 900; min-width: 0; }
.dx22 .dx-h small { margin-left: auto; font-size: 14px; font-weight: 700; color: #8B7A63; flex: none; }
.dx22 .dex { gap: 8px; }
.dx22 .dex-cell { cursor: pointer; border-radius: 12px; padding: 6px 5px 7px; display: flex; flex-direction: column; min-width: 0; }
.dx22 .dex-cell .da { border-radius: 8px; overflow: hidden; }
.dx22 .dex-cell span { font-size: 14px; line-height: 1.25; margin-top: 4px; overflow-wrap: anywhere; }
.dx22 .dex-cell.new { opacity: .38; filter: grayscale(1); border-color: #CFC6B8; }
.dx22 .dex-cell.gold { border: 3px solid #E0A800; }
.dx22 .dex-cell.hop { animation: me22hop .45s; }

/* ---------------- 先做后玩（lock.js；.locked 的淡显在 v22.css） ---------------- */
/* 练一练、KET日历顶上的一行：为什么淡着 */
.lk-line { text-align: center; font-size: 14px; font-weight: 800; color: #B5602A; background: #FFF1D6; border-radius: 12px; padding: 8px 10px; margin: 0 0 10px; }
/* 被锁的页面从地址直接打开：顶栏下面一条锁条＋「去做今天的课」（不做成大绿按钮：页面上本来就有一个） */
.lk-bar {
  display: flex; align-items: center; gap: 8px; background: #FFF1D6; border: 2px solid #E9C46A;
  border-radius: 14px; padding: 8px 10px; margin: 0 0 12px;
}
.lk-bar > i { font-style: normal; font-size: 20px; line-height: 1; flex: none; }
.lk-bar > span { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: #B5602A; line-height: 1.35; }
.lk-bar .lk-go {
  flex: none; font: inherit; font-size: 14px; font-weight: 900; color: #4A3728; background: #FFC93C;
  border: 2px solid #4A3728; border-radius: 12px; padding: 8px 10px; min-height: 44px; box-shadow: 0 3px 0 #4A3728; cursor: pointer;
}
.lk-bar .lk-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #4A3728; }
.pr22 .pr-jar.today { border-style: solid; border-color: #7BC96F; background: #F1F9EC; }
.pr22 .pr-today {
  font-style: normal; font-size: 14px; font-weight: 900; color: #3c8a33; background: #fff;
  border: 2px solid #7BC96F; border-radius: 10px; padding: 1px 8px; white-space: nowrap; flex: none;
}
.hw-lk.locked { opacity: .45; }

/* ---------------- 本周复习（做题屏＝听一听同款） ---------------- */
.wk22 .tip { font-size: 14px; opacity: .65; }
.wk22 .result .big { font-size: 44px; line-height: 1.2; }
.wk22 .wk-got { margin: 4px 0 0 !important; }
.wk-prog { flex: 1; height: 12px; margin: 0 14px; border: 2.5px solid #4A3728; border-radius: 999px; background: #FFFDF6; overflow: hidden; }
.wk-prog i { display: block; height: 100%; background: #FFC93C; transition: width .3s; }

/* ---------------- 小字：场景图点读/找一找（.bd-*）、宝可梦任务（.pm-*）、KET页签和日历 ----------------
   孩子看到的字一律不小于14px（games2.css / ket-cal.css 是老样式，这里按页面作用域盖掉） */
.bd-view .tip, .bd-view .bd-qn, .bd-view .bd-pop span, .bd-view .bd-pop em, .bd-view .bd-chip,
.bd-view .bd-tools button, .bd-view .bd-tools span, .bd-view .result p, .bd-view .result .sub { font-size: 14px; }
.bd-view .tip { opacity: .65; }
.bd-view .bd-pop { min-width: 160px; }

.pm-view .pm-kicker, .pm-view .pm-copy > span, .pm-view .pm-tag, .pm-view .pm-question small, .pm-view .pm-question span,
.pm-view .pm-feedback, .pm-view .pm-say-steps span, .pm-view .pm-badge i, .pm-view .pm-finish-tag,
.pm-view .pm-recap span, .pm-view .tip, .pm-view .game-head { font-size: 14px; }
.pm-view .tip { opacity: .65; }
/* #app 是竖排 flex，.pm-view 的 margin:0 auto 会让它缩成内容宽：找一找那一屏图只有246px宽 */
.pm-view { width: 100%; }
.pm-view .btn-speak { font-size: 24px; line-height: 1; }            /* 🔊是按钮里的字，按钮默认13.3px */
.pm-view .pm-say-steps { gap: 5px; }
.pm-view .pm-say-steps span { padding: 7px 2px; white-space: nowrap; }

.kt22 .tip, .kt22 .ket-find-link, .kt22 .scene-meta span, .kt22 .wk-sub { font-size: 14px; }
.kt22 .tip { opacity: .65; }
.kt22 .ket-find-link { padding: 6px 10px; min-height: 32px; display: inline-flex; align-items: center; }
.kc22 .tip, .kc22 .kc-week, .kc22 .kc-day em, .kc22 .kc-item span, .kc22 .kc-item small, .kc22 .kc-w-tx a { font-size: 14px; }
.kc22 .tip { opacity: .65; }

/* KET页签收拢（2026-10-03）：大卡＋4张场景缩略图＋两颗小按钮；全部场景图在 /ket/boards */
.kt-head { position: relative; }
.kt-cal, .kt-all { position: absolute; right: 4px; border: 0; background: none; font: inherit; font-size: 14px; color: #8B7A63; padding: 8px 6px; min-height: 36px; }
.kt-cal { top: calc(10px + env(safe-area-inset-top)); z-index: 11; }      /* 顶栏是 sticky、z-index 10、有底色 */
.kt-head { position: sticky; top: 0; z-index: 10; }
.kt-sec { position: relative; margin-top: 18px; }
.kt-all { top: -8px; }
.kt22 .hm-hero.locked { opacity: .55; }
.kt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kt-th { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 2.5px solid #4A3728; border-radius: 16px; background: #fff; font: inherit; }
.kt-th i { font-style: normal; font-size: 34px; line-height: 1.1; }
.kt-th b { font-size: 15px; }
.kt-th small { font-size: 14px; color: #8B7A63; }
.kt-th.off { opacity: .6; }
.kt-more { display: flex; gap: 10px; margin-top: 16px; }
.kt-mini { flex: 1; text-align: center; padding: 10px 6px; border: 2px solid #E6DCCB; border-radius: 14px; background: #FFFBF4; font: inherit; font-size: 15px; color: #4A3728; text-decoration: none; }
.kc-fold { display: flex; width: 100%; align-items: center; justify-content: space-between; margin: 8px 0; padding: 10px 14px; border: 2px dashed #E6DCCB; border-radius: 14px; background: #FFFBF4; font: inherit; font-size: 15px; color: #6f6252; }
.kc-fold i { font-style: normal; transition: transform .2s; }
.kc-fold.open i { transform: rotate(90deg); }
.kc-list[hidden] { display: none; }

/* 卡册（2026-10-03）：伙伴／闪卡／徽章三组 */
.ab-sec small { font-size: 14px; font-weight: 400; color: #8B7A63; margin-left: 8px; }
.ab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; justify-items: center; }
.ab-grid.folded .ab-old { display: none; }
.ab-more { display: block; margin: 0 auto 10px; border: 2px solid #E6DCCB; border-radius: 999px; background: #FFFBF4; padding: 6px 16px; font: inherit; font-size: 15px; color: #6f6252; }
.ab-p, .ab-c, .ab-b { border: 0; background: none; padding: 0; font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ab-p .seg5 { justify-content: center; }
.ab-c { width: 100%; padding: 8px 4px; border: 2.5px solid #4A3728; border-radius: 14px; background: #fff; }
.ab-c img { width: 72px; height: 84px; object-fit: contain; }
.ab-c b { font-size: 15px; }
.ab-c small { font-size: 14px; color: #8B7A63; }
.ab-c.sil img { filter: brightness(0); opacity: .35; }
.ab-note { text-align: center; font-size: 15px; color: #6f6252; margin: 10px 0 6px; }
.ab22 .hm-go, .ab22 .hm-later { margin-top: 8px; }
.ab-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ab-b { padding: 6px 2px; border-radius: 14px; background: #FFFBF4; border: 2px solid #E6DCCB; min-height: 92px; }
.ab-b img { width: 58px; height: 58px; object-fit: contain; filter: grayscale(1); opacity: .3; }
.ab-b.on img { filter: none; opacity: 1; }
.ab-b i { font-style: normal; font-size: 28px; color: #C9BBA5; line-height: 58px; }
.ab-b span { font-size: 14px; min-height: 18px; }
.ab-big { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ab22 .ab-sec { margin-top: 22px; margin-bottom: 8px; }
.ab22 .ab-sec:first-of-type { margin-top: 6px; }

/* KET页签「KET故事」一行（2026-10-04，KET六格故事课）：行样式沿用探险的 .ex-row */
.kt-stories .ex-row:last-child { margin-bottom: 0; }
.kt-kn { font-size: 14px; color: #8a7a66; font-weight: 700; }

/* 拿到徽章的弹窗＋卡册里没拿到的徽章写「怎么得」（2026-10-06） */
.ab-bnew { text-align: center; }
.ab-bnew .ab-bimg { width: 160px; height: 160px; object-fit: contain; display: block; margin: 0 auto 8px; animation: v22pop .5s ease-out; }
.ab-bnew b { display: block; font-size: 20px; margin: 4px 0; }
.ab-bnew p { margin: 0 0 14px; font-size: 16px; color: #6b5a48; }
.ab-b:not(.on) span { font-size: 14px; color: #8a7a66; line-height: 1.25; }
@keyframes v22pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.kt-sec .kt-cal { top: auto; bottom: -4px; }
.kt22 > .hm-read:first-of-type { margin-top: 4px; }
