/* HSK 1 components that HSK 3 does not have (sounds, characters, notebooks, repeat after me), scoped under .h1x. */
.h1x .hide { display: none !important; }
.h1x .seal { width: 30px; height: 30px; border-radius: 8px; background: var(--seal); color: #fff; display: grid; place-items: center;
  font: 700 16px/1 var(--han); flex: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }
.h1x .sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 12px; }
.h1x .sec-h h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.h1x .sec-h .mono { color: var(--ink-3); }
.h1x .counter-card { margin: 26px 0 0; padding: 18px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.h1x .counter-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.h1x .counter-card b { font-size: 26px; letter-spacing: -.01em; }
.h1x .meter { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.h1x .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 99px; transition: width .8s var(--ease); }
.toggle { border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.h1x .after { margin-top: 20px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-wash); border-radius: 4px 12px 12px 4px; color: var(--ink); }
.h1x .names { margin-top: 18px; }
.h1x .names .mono { color: var(--ink-3); display: block; margin-bottom: 8px; }
.h1x .names .row { display: flex; flex-wrap: wrap; gap: 8px; }
.h1x .name { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; }
.h1x .name .zh { font-size: 17px; }
.h1x .name .py { font-size: 13.5px; }
.h1x .atip { display: flex; gap: 12px; margin-top: 20px; padding: 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--paper); }
.h1x .atip .badge { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: 15px; }
.h1x .atip .tt { font: 600 12.1px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 3px 0 6px; }
.h1x .atip p { margin: 0; font-size: 15.5px; color: #E6DED3; }
.h1x .atip b { color: #fff; }
.h1x .schips { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.h1x .schip { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 12px 14px; text-align: center; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.h1x .schip .zh { font-size: 38px; display: block; line-height: 1.15; }
.h1x .schip .py { display: block; font-size: 19px; color: var(--ink); font-weight: 600; margin-top: 4px; }
.h1x .schip small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.h1x .schip.on { border-color: var(--accent); transform: translateY(-2px); }
.h1x .chars { display: grid; gap: 12px; }
.h1x .char { display: flex; gap: 16px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; width: 100%; }
.grid-box { width: 96px; height: 96px; flex: none; border: 1.5px solid #E6A9A0; border-radius: 6px; position: relative; display: grid; place-items: center; background: #FFFDFB; }
.grid-box::before, .grid-box::after { content: ""; position: absolute; border: 0 dashed #F0C6BF; }
.grid-box::before { left: 50%; top: 0; bottom: 0; border-left-width: 1px; }
.grid-box::after { top: 50%; left: 0; right: 0; border-top-width: 1px; }
.grid-box .zh { position: relative; z-index: 1; font-size: 66px; line-height: 1; font-weight: 500; }
.h1x .char .m { flex: 1; min-width: 0; }
.h1x .char .head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.h1x .char .head .py { font-size: 19px; color: var(--ink); font-weight: 600; }
.h1x .char .head .en { color: var(--ink-3); font-size: 15px; }
.h1x .char .parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.h1x .char .parts span { font-size: 13.5px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); padding: 3px 9px 3px 5px; color: var(--ink-2); }
.h1x .char .parts span b { font: 600 17px/1 var(--han); color: var(--seal); margin-right: 5px; }
.h1x .char .cstory { font-size: 15px; color: var(--ink-2); margin: 0; }
.h1x .char .cstory i { font-style: normal; color: var(--ink-3); font-size: 13.2px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.h1x .char.on { border-color: var(--accent); }
.h1x .win { text-align: center; padding-top: 8px; }
.h1x .win .stamp { width: 94px; height: 94px; margin: 6px auto 16px; border-radius: 22px; background: var(--seal); color: #fff; display: grid; place-items: center;
  font: 700 46px/1 var(--han); transform: rotate(-6deg); box-shadow: 0 16px 30px -14px rgba(217,68,43,.7), inset 0 0 0 3px rgba(255,255,255,.2); animation: h1stamp .55s var(--ease) both; }
.h1x .win h2 { font-size: 30px; }
.h1x .win p.body { color: var(--ink-2); font-size: 18px; max-width: 26em; margin: 8px auto 0; }
.h1x .win .counter-card { text-align: left; }
.h1x .nowcan { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; display: grid; gap: 8px; }
.h1x .nowcan li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.h1x .nowcan li::before { content: "✓"; color: #fff; background: var(--jade); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; margin-top: 1px; }
.h1x .teaser { margin-top: 22px; border-radius: var(--r); padding: 20px; background: var(--ink); color: var(--paper); text-align: left; }
.h1x .teaser .mono { color: var(--gold); }
.h1x .teaser .zh { font-size: 30px; display: block; margin-top: 10px; }
.h1x .teaser .py { color: #C9C0B3; }
.h1x .teaser p { color: #D8D0C4; margin: 8px 0 0; }
.h1x .fbform { margin-top: 24px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.h1x .fbform h3 { margin: 0 0 4px; font-size: 18px; }
.h1x .fbform .q { margin: 14px 0 8px; font-weight: 600; font-size: 15.5px; }
.h1x .sent { color: var(--jade); font-weight: 600; margin-top: 10px; }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(13,12,11,.45); display: flex; align-items: flex-end; justify-content: center; animation: h1fade .2s both; }
.sheet .in { background: var(--paper); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); animation: h1up .3s var(--ease) both; }
.sheet h3 { margin: 0 0 6px; }
.sheet p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.sheet .row { display: flex; gap: 10px; margin-top: 12px; }
.sheet .row .btn { flex: 1; }
.repeat-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; margin: 0 0 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--accent); background: var(--accent-wash); cursor: pointer; }
.repeat-btn b { display: block; font-size: 16.5px; }
.repeat-btn small { color: var(--ink-2); font-size: 14px; }
.rep-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.rep { position: fixed; inset: 0; z-index: 70; background: var(--ink-deep); color: var(--paper); display: flex; justify-content: center; animation: h1fade .2s both; }
.rep-in { width: 100%; max-width: 560px; padding: calc(16px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.rep-top { display: flex; justify-content: space-between; align-items: center; }
.rep-top .mono { color: var(--gold); }
.rep-x { background: #26231F; border: 0; color: var(--paper); width: 40px; height: 40px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.rep-count { font: 500 14.3px/1 var(--mono); color: #8C8378; margin: 14px 0 0; }
.rep-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 260px; }
.rep-img img { width: 150px; height: 150px; object-fit: cover; border-radius: 22px; margin-bottom: 12px; box-shadow: 0 20px 40px -20px #000; }
.rep-img img.round { border-radius: 50%; width: 110px; height: 110px; }
.rep-zh { font: 700 clamp(46px, 14vw, 76px)/1.15 var(--han); }
.rep-py { font-size: 22px; color: #D8D0C4; }
.rep-en { font-size: 16px; color: #8C8378; }
.rep-state { text-align: center; font-weight: 700; font-size: 20px; min-height: 30px; letter-spacing: .01em; }
.rep-state.listen { color: #D8D0C4; }
.rep-state.you { color: var(--gold); }
.rep-state.me { color: #8FD3BF; }
.rep-state.done { color: #8FD3BF; }
.rep-bar { height: 6px; background: #26231F; border-radius: 6px; overflow: hidden; margin: 12px 0 18px; }
.rep-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.rep-ctl { display: flex; gap: 10px; }
.rep-ctl .btn { flex: 1; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.rep-ctl .toggle { background: #26231F; color: var(--paper); border-color: #3B362F; padding: 0 16px; }
.rep-ctl .toggle[aria-pressed="true"] { background: var(--seal); border-color: var(--seal); }
.rep-note { color: #8C8378; font-size: 13.5px; text-align: center; margin: 12px 0 0; }
.h1x .strokes-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent-deep); border: 1px solid #F0C9A8; background: var(--accent-wash); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.grid-box.hw svg { position: relative; z-index: 1; }
.grid-box.xl { width: 220px; height: 220px; margin: 6px auto 4px; }
.h1x .nb-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.h1x .seal.big { width: 54px; height: 54px; border-radius: 14px; font-size: 28px; flex: none; transform: rotate(-4deg); }
.h1x .nb-setup { background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 14px; margin-bottom: 12px; font-size: 15px; }
.h1x .nb-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.h1x .nb-three span { background: var(--paper); border-radius: 10px; padding: 10px 8px; text-align: center; font-weight: 600; font-size: 14px; }
.h1x .nb-three i { display: block; font: 700 19.8px/1 var(--mono); font-style: normal; color: var(--seal); margin-bottom: 4px; }
.h1x .nb-three small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.h1x .nb-task { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; transition: border-color .2s, background .2s; }
.h1x .nb-task.done { border-color: var(--jade); background: #F6FBF9; }
.h1x .nb-top { display: flex; gap: 12px; align-items: flex-start; }
.h1x .nb-top > div { flex: 1; }
.h1x .nb-top > div > b { display: block; font-size: 17px; }
.h1x .nb-top small { display: block; color: var(--ink-2); font-size: 14.5px; }
.h1x .nb-top small b { font-weight: 700; color: var(--ink); }
.h1x .nb-n { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 15.4px/1 var(--mono); flex: none; }
.h1x .nb-check { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--white); cursor: pointer; flex: none; position: relative; }
.h1x .nb-check[aria-pressed="true"] { background: var(--jade); border-color: var(--jade); }
.h1x .nb-check[aria-pressed="true"]::after { content: "✓"; color: #fff; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; }
.h1x .nb-chars { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.h1x .nb-c { width: 58px; height: 58px; border: 1.5px solid #E6A9A0; border-radius: 6px; display: grid; place-items: center; position: relative; background: #FFFDFB; cursor: pointer; }
.h1x .nb-c::before, .h1x .nb-c::after { content: ""; position: absolute; border: 0 dashed #F0C6BF; }
.h1x .nb-c::before { left: 50%; top: 0; bottom: 0; border-left-width: 1px; }
.h1x .nb-c::after { top: 50%; left: 0; right: 0; border-top-width: 1px; }
.h1x .nb-c .zh { font-size: 34px; font-weight: 500; position: relative; z-index: 1; }
.h1x .nb-hint { font-size: 13.5px; color: var(--ink-3); margin: 6px 0 0; }
.h1x .nb-hint a { color: var(--accent-deep); font-weight: 600; }
.h1x .nb-talk { margin-top: 12px; display: grid; gap: 6px; border-left: 3px solid var(--line); padding-left: 12px; }
.h1x .nb-talk .who { font: 600 14px/1 var(--han); color: var(--ink-3); }
.h1x .nb-talk .zh { font-size: 21px; }
.h1x .nb-talk .py { display: block; font-size: 13px; }
.h1x .nb-rule { margin: 12px 0 8px; font-size: 15.5px; background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.h1x .nb-ex { display: grid; gap: 6px; }
.h1x .nb-ex .zh { font-size: 20px; display: block; }
.h1x .nb-ex .py { font-size: 13px; }
.h1x .nb-share { text-align: center; color: var(--ink-2); font-size: 14.5px; margin: 16px 0 0; }
.rep-mine { display: flex; gap: 8px; justify-content: center; margin: 0 0 12px; }
.rep-mine .toggle { background: #26231F; color: var(--paper); border-color: #3B362F; }
.h1x .people { display: grid; gap: 10px; }
.h1x .person { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; }
.h1x div.person { cursor: default; }
.h1x .person .av.big { border-color: var(--white); }
.h1x .person .t { flex: 1; min-width: 0; }
.h1x .person .nm b { font-size: 20px; }
.h1x .person .nm b[lang] { font-family: var(--han); }
.h1x .person .py { color: var(--ink-3); font-size: 14px; }
.h1x .person .en { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.h1x .person small { display: block; color: var(--ink-3); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.h1x .divider { background: var(--accent-wash); border-radius: var(--r-sm); padding: 14px 16px; }
.h1x .divider h2 { margin: 0; }
.h1x .divider .lead { margin: 2px 0 0; }
.h1x .count-win { font-size: 16px; margin-bottom: 10px; }
.h1x .nb-why { margin: -4px 0 14px; color: var(--ink-2); font-size: 15px; }
.h1x .nb-why a { color: var(--accent-deep); font-weight: 600; }
.h1x .nb-talk .mono { color: var(--ink-3); font-size: 11.5px; }
.h1x .nb-talk > div { line-height: 1.3; }
.h1x .nb-talk > div .who, .h1x .nb-talk > div .zh { display: inline; }
.h1x .nb-talk > div .py { margin-bottom: 2px; }
.h1x .nb-g { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.h1x .nb-g > b { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.h1x .nb-g > b [lang] { font-family: var(--han); }
.h1x .nb-g .gn { width: 22px; height: 22px; border-radius: 6px; background: var(--paper-2); display: grid; place-items: center; font: 600 13.2px/1 var(--mono); }
.h1x .nb-g .nb-rule { margin-top: 8px; }
.h1x .counter-card .row > span:last-child { white-space: nowrap; }
/* HSK 1 bits inside the HSK 3 frame */
.h1x, .rep, .sheet {
  --paper: #F4F1EC; --paper-2: #EAE5DC; --card: #FBF9F5; --white: #FFFFFF;
  --ink: #161412; --ink-deep: #0D0C0B; --ink-2: #4D4944; --ink-3: #857C71; --ink-4: #B3AA9E;
  --line: #E3DCD1; --line-2: #D8CFC2;
  --accent: #E07A36; --accent-deep: #A9501A; --accent-wash: #FBEBDD;
  --seal: #D9442B; --seal-wash: #FBEAE6; --jade: #2F8571; --jade-wash: #E3F2EE; --gold: #E3A43A;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --han: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --hans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --r: 20px; --r-sm: 14px;
  --shadow: 0 1px 0 rgba(13,12,11,.04), 0 18px 40px -26px rgba(13,12,11,.42);
  --shadow-lift: 0 1px 0 rgba(13,12,11,.05), 0 24px 48px -24px rgba(13,12,11,.5);
  --ease: cubic-bezier(.2,.7,.2,1);
}
.h1x { font-family: var(--sans); }
.h1x .people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .h1x .people { grid-template-columns: 1fr; } }
.h1x .person { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 14px 16px; }
.h1x .person .t { flex: 1; min-width: 0; } .h1x .person .nm b { font-size: 20px; } .h1x .person .nm b[lang] { font-family: var(--han); }
.h1x .person .py { color: var(--ink-3); font-size: 14px; } .h1x .person .en { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.h1x .person small { display: block; color: var(--ink-3); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.av.big { width: 64px; height: 64px; }
.av.avg { display: inline-flex; width: auto; border-radius: 0; background: none; }
.av.avg img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface, #fff); }
.av.avg img + img { margin-left: -12px; margin-top: 12px; }
.av.big.avg img { width: 46px; height: 46px; } .av.big.avg img + img { margin-left: -18px; margin-top: 18px; }
.av.avx { display: grid; place-items: center; background: #4B4038; color: #fff; font-weight: 700; }
.h1x .nbnote { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--accent-wash); font-size: 15px; } .h1x .nbnote a { color: var(--accent-deep); font-weight: 600; }
.h1x .names { display: flex; flex-wrap: wrap; gap: 8px; }
.h1x .name { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--white); border-radius: 999px; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.h1x .name .zh { font-family: var(--han); font-size: 20px; } .h1x .name .py { color: var(--ink-3); font-size: 14px; }
.h1x .name .spk.side { position: relative; }
.lsub { color: var(--ink-2); margin: -4px 0 12px; }
.h1x .sound { background: var(--white); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 16px 18px; margin-bottom: 12px; }
.h1x .sound h4 { margin: 0 0 6px; font-size: 18px; } .h1x .sound p { margin: 4px 0; color: var(--ink-2); font-size: 15.5px; }
.h1x .schip { position: relative; } .h1x .schip .spk.side { position: absolute; right: 8px; top: 8px; }
.h1x .cgroup + .cgroup { margin-top: 26px; }
.h1x .cgroup h3 small { font-weight: 400; color: var(--ink-3); font-size: 14px; margin-left: 8px; }
.h1x .chars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .h1x .chars { grid-template-columns: 1fr; } }
.h1x .char { cursor: default; }
.h1x .char .head { display: flex; align-items: center; gap: 8px; } .h1x .char .head .spk { margin-left: auto; position: relative; width: 32px; height: 32px; }
.h1x .strokes-btn { border: 0; background: var(--paper-2); }
.h1x .strokes-btn .i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.h1x .after { margin: 14px 0 0; padding: 12px 14px; background: var(--white); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); font-size: 15px; }
.h1x .exnote { margin: 0 0 6px; padding: 10px 14px; border-radius: 10px; background: var(--paper-2); font-size: 14.5px; }
.tnext { margin-top: 18px; display: flex; justify-content: flex-end; }
.tools .reptg .i, .playall .rs .i { width: 16px; height: 16px; }
.lsw-list a.soon { opacity: .55; cursor: default; }
.pcount { justify-content: flex-end; color: var(--ink-3); font-size: 14px; margin-top: 14px; }
.rdchat .bub { cursor: pointer; }
.exm .z, .exgrid .zh { font-family: var(--hans); }
.h1x .fbform .seg { display: flex; flex-wrap: wrap; gap: 6px; background: none; box-shadow: none; padding: 0; border-radius: 0; }
.h1x .fbform .seg label { cursor: pointer; position: relative; } .h1x .fbform .seg input { position: absolute; opacity: 0; pointer-events: none; }
.h1x .fbform .seg span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; background: var(--white); }
.h1x .fbform .seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.h1x .fbform textarea { width: 100%; box-sizing: border-box; min-height: 80px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: 16px/1.45 var(--sans); background: var(--paper); }

/* keyframes, renamed so they cannot clash with HSK 3 animation names */
@keyframes h1eq { 0%,100% { height: 30%; } 50% { height: 100%; } }
@keyframes h1pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes h1enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes h1shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes h1stamp { from { transform: rotate(-6deg) scale(1.8); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
@keyframes h1fade { from { opacity: 0; } }
@keyframes h1up { from { transform: translateY(40px); } }
@keyframes h1bump { 40% { transform: scale(1.6); } }

/* phones: the tools bar scrolls away instead of covering a third of the screen */
@media (max-width: 760px) { #main .tools { position: static !important; } }
.h1x .name, .h1x .schip { cursor: pointer; }
/* 19 Nov audit fixes */
#main .h1x .atip p { color: #E6DED3; } #main .h1x .atip b { color: #fff; }
#main .opt.ok .op, #main .opt.ok .oz, #main .opt.ok .oz * { color: #fff; }
#main .opt.lo.ok b { background: rgba(255,255,255,.25); color: #fff; }
/* Lesson 0 and the Sounds parts (19 Nov) */
#main .pblk { margin-top: 34px; }
#main .pblk:first-child { margin-top: 6px; }
#main .pblk + .pblk { border-top: 1px solid var(--line); padding-top: 30px; }
#main .pblk .lsub b { color: var(--ink); }
.h1x .gex { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.h1x .gx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color .2s; }
.h1x .gx .m { flex: 1; min-width: 0; }
.h1x .gx .zh { font-size: 26px; line-height: 1.2; display: block; }
.h1x .gx .py { font-size: 16px; font-weight: 600; display: block; color: var(--ink); }
.h1x .gx small { display: block; color: var(--ink-3); font-size: 13.5px; line-height: 1.35; }
.h1x .gx.on, .h1x .gx:hover { border-color: var(--accent); }
.h1x .ppairs { display: grid; gap: 10px; margin-top: 16px; max-width: 520px; }
.h1x .ppair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.h1x .ppair .vs { font: 600 12.1px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; }
.h1x .schip .py.pybig { font-size: 26px; }
#main .pblk .lq { margin-top: 14px; }
#main .pblk + .pblk { margin-top: 28px; padding-top: 26px; }
#main .pblk .opts.lopts.col { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
#main .pblk .opts.lopts.col .opt { margin: 0; justify-content: center; text-align: center; font-size: 16px; }
#main .pblk .lqi { padding-bottom: 12px; }
#main .pblk .opts.lopts.col.n2 { grid-template-columns: repeat(2, 1fr); }
#main .pblk .opts.lopts.col.n3 { grid-template-columns: repeat(3, 1fr); }
#main .pblk .opts.lopts.col.n4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) {
  #main .pblk .opts.lopts.col.n4 { grid-template-columns: repeat(2, 1fr); }
  #main .pblk .opts.lopts.col .opt { font-size: 15px; padding-left: 6px; padding-right: 6px; }
  #main .pblk .schips { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
  #main .pblk .schip .zh { font-size: 32px; }
}
/* videos, steps, tone chart, how-it-works (19 Nov, late) */
#main .yt { margin: 18px 0 0; max-width: 680px; }
#main .yt-f { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r-sm, 12px); overflow: hidden; background: #111; cursor: pointer; }
#main .yt-f img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease, ease), opacity .3s; opacity: .92; }
#main .yt-f:hover img { transform: scale(1.03); opacity: 1; }
#main .yt-p { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(13,12,11,.82); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
#main .yt-p svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
#main .yt-f:hover .yt-p { background: #C4362A; }
#main .yt-m { position: absolute; right: 10px; bottom: 10px; background: rgba(13,12,11,.85); color: #fff; font: 600 12px/1 var(--mono, monospace); padding: 6px 8px; border-radius: 6px; }
#main .yt-if { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm, 12px); overflow: hidden; background: #000; }
#main .yt-if iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#main .yt figcaption { margin-top: 12px; }
#main .yt figcaption b { display: block; font-size: 17.5px; color: var(--ink); line-height: 1.3; }
#main .yt-k { display: block; font: 600 11px/1.2 var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: #C4362A; margin-bottom: 6px; }
#main .yt figcaption p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
#main .yt figcaption a { display: inline-block; margin-top: 8px; font-size: 13.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
#main .yt.sm { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; max-width: 720px; padding: 12px; background: var(--white, #fff); border: 1px solid var(--line); border-radius: var(--r-sm, 12px); }
#main .yt.sm figcaption { margin: 0; }
#main .yt.sm figcaption b { font-size: 16px; }
#main .yt.sm .yt-p { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
#main .yt.sm .yt-p svg { width: 22px; height: 22px; }
#main .yt.sm.on { display: block; }
#main .yt.sm.on figcaption { margin-top: 10px; }
#main .ytgrid { display: grid; gap: 12px; margin-top: 14px; }
#main .ytgrid .yt { margin: 0; }
#main .pstep { display: flex; align-items: center; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font: 600 12px/1 var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
#main .pstep:first-child { margin-top: 6px; padding-top: 0; border-top: 0; }
#main .pstep span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper, #F4F0EA); font-size: 12px; letter-spacing: 0; }
#main .pstep + .pblk { border-top: 0 !important; padding-top: 0 !important; margin-top: 8px !important; }
#main .tchart { margin: 6px 0 0; max-width: 640px; background: var(--white, #fff); border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 14px 10px 12px; }
#main .tchart svg { width: 100%; height: auto; display: block; }
#main .tchart figcaption { font-size: 13.5px; color: var(--ink-3); margin: 6px 6px 0; }
#main .phow { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#main .phow li { background: var(--white, #fff); border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 16px; }
#main .phow li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #FBE3CC; color: #C4632A; font-weight: 700; font-size: 14px; }
#main .phow li b { display: block; margin-top: 10px; font-size: 16.5px; color: var(--ink); }
#main .phow li p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 760px) {
  #main .yt.sm { grid-template-columns: 128px 1fr; gap: 12px; padding: 10px; }
  #main .yt.sm figcaption p { display: none; }
  #main .yt.sm.on figcaption p { display: block; }
  #main .phow { grid-template-columns: 1fr; }
}
#main .yt.sm:not(.on) .yt-m { display: none; }

/* ===================== 19 Nov: streak, flashcards, Listen again, share card, Daily review ===================== */
.flame { width: 22px; height: 22px; display: block; }
.flame .o { fill: #6F6963; } .flame .i { fill: #8E8780; }
.flame.lit .o { fill: #FF8A1F; } .flame.lit .i { fill: #FFD23F; }
.flame.xl { width: 46px; height: 46px; } .flame.xxl { width: 132px; height: 132px; }
.ice { width: 16px; height: 16px; color: #5BB8F0; vertical-align: -3px; }
/* header button */
.stk { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px 0 9px; border-radius: 999px; border: 1px solid rgba(244,241,236,.16); background: rgba(244,241,236,.06); color: #F4F1EC; font: 700 15px/1 var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.stk:hover { background: rgba(244,241,236,.12); }
.stk b { min-width: 9px; color: rgba(244,241,236,.6); }
.stk.lit { border-color: rgba(255,138,31,.45); background: rgba(255,138,31,.12); }
.stk.lit b { color: #FFB25C; }
.stk + .ring { margin-left: 14px !important; }
/* streak pop-over */
.stkpop { position: fixed; z-index: 90; width: min(340px, calc(100vw - 20px)); background: #fff; color: #1A1714; border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.05); animation: h1up .22s ease both; }
.stkpop .sp-h { display: flex; align-items: center; gap: 12px; }
.stkpop .sp-h b { display: block; font: 700 34px/1 var(--sans); }
.stkpop .sp-h span { color: #6B645B; font-size: 14px; }
.stkpop p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.45; color: #3B3631; }
.stkpop .sp-saved { color: #1E6C99; }
.stkpop .sp-f { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; color: #3B3631; }
.stkpop small { display: block; margin-top: 8px; color: #8A8279; font-size: 12.5px; line-height: 1.4; }
.stkpop .btn { margin-top: 14px; }
.wk { display: flex; justify-content: space-between; margin-top: 14px; padding: 10px 6px; background: #F6F2EC; border-radius: 12px; }
.wk .wd { display: grid; justify-items: center; gap: 4px; width: 36px; }
.wk .wd i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #E7E1D8; }
.wk .wd.on i { background: #FFE6CC; } .wk .wd.ice i { background: #DDF0FC; }
.wk .wd.now i { box-shadow: 0 0 0 2px #FF8A1F; }
.wk .wd.fut i { opacity: .45; }
.wk .wd .flame { width: 20px; height: 20px; }
.wk .wd small { font: 600 12.1px/1 var(--mono); color: #8A8279; }
.wk .wd.now small { color: #C4632A; }
.wk.big { background: rgba(255,255,255,.08); margin: 22px auto 0; max-width: 360px; }
.wk.big .wd i { background: rgba(255,255,255,.12); width: 38px; height: 38px; } .wk.big .wd.on i { background: rgba(255,138,31,.25); }
.wk.big .wd .flame { width: 24px; height: 24px; } .wk.big .wd small { color: rgba(255,255,255,.6); }
.wk.big .wd.now i { box-shadow: 0 0 0 2px #FFB25C; }
/* celebration */
.stkcel { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 30%, #4A2511 0%, #1B120D 55%, #0D0B0A 100%); color: #fff; opacity: 0; transition: opacity .3s; }
.stkcel.in { opacity: 1; }
.stkcel .sc-in { text-align: center; width: min(420px, 100%); }
.stkcel .sc-fl { display: grid; place-items: center; animation: scFlame 1.1s cubic-bezier(.34,1.56,.64,1) both; }
.stkcel .sc-fl .flame { filter: drop-shadow(0 10px 40px rgba(255,138,31,.55)); animation: scFlick 1.6s ease-in-out .9s infinite; transform-origin: 50% 90%; }
.stkcel .sc-n b { display: block; font: 800 104px/1 var(--sans); letter-spacing: -.04em; color: #FFB25C; margin-top: 4px; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.stkcel.up .sc-n b { transform: scale(1.18); animation: scBump .5s cubic-bezier(.34,1.56,.64,1); }
.stkcel .sc-t { font: 700 30px/1.1 var(--sans); }
.stkcel p { margin: 20px auto 0; max-width: 330px; color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.45; }
.stkcel .btn { margin-top: 26px; max-width: 340px; }
@keyframes scFlame { 0% { transform: scale(.2) translateY(40px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes scFlick { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.05, .97) rotate(-1.5deg); } }
@keyframes scBump { 0% { transform: scale(1); } 60% { transform: scale(1.3); } 100% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .stkcel .sc-fl, .stkcel .sc-fl .flame, .stkcel.up .sc-n b { animation: none; } }

/* why flashcards */
#main .why h3 { margin-top: 26px; }
#main .why h3:first-child { margin-top: 4px; }
#main .fcurve { margin: 14px 0 0; max-width: 600px; background: var(--white, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px 12px; }
#main .fcurve svg { width: 100%; height: auto; display: block; }
#main .fcurve text { font: 500 11px var(--mono); fill: #8A8279; }
#main .fcurve .ax { stroke: #D9D2C6; stroke-width: 1.2; }
#main .fcurve .c1 { fill: none; stroke: #B8B0A6; stroke-width: 3; stroke-dasharray: 6 6; }
#main .fcurve .c2 { fill: none; stroke: #B8402F; stroke-width: 4; stroke-linejoin: round; }
#main .fcurve .dots circle { fill: #B8402F; stroke: #fff; stroke-width: 2; }
#main .fcurve figcaption { display: grid; gap: 6px; margin: 10px 6px 0; font-size: 14px; color: var(--ink-2); }
#main .fcurve figcaption i { display: inline-block; width: 22px; height: 0; border-top: 3px dashed #B8B0A6; vertical-align: middle; margin-right: 8px; }
#main .fcurve figcaption i.k2 { border-top: 4px solid #B8402F; }
#main .fcurve small { color: var(--ink-3); font-size: 12.5px; }
#main .why2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; max-width: 680px; }
#main .why2 > div { background: var(--white, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
#main .why2 span, #main .why3 li::before { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #FCE4E1; color: #B8402F; font-weight: 700; font-size: 14px; }
#main .why2 b { display: block; margin-top: 10px; font-size: 16.5px; color: var(--ink); }
#main .why2 p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
#main .why3 { list-style: none; counter-reset: w; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; max-width: 680px; }
#main .why3 li { counter-increment: w; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
#main .why3 li::before { content: counter(w); }
#main .why3 li b { color: var(--ink); }
#main .why-src { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
#main .fcwrap { margin-top: 26px; max-width: 520px; }
#main .fc-start { min-width: 220px; }
#main .fc-after { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* flashcards */
.fc { max-width: 460px; margin: 0 auto; }
.fc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fc-bar { flex: 1; height: 8px; border-radius: 99px; background: #E9E3DA; overflow: hidden; }
.fc-bar i { display: block; height: 100%; width: 0; background: #2F8571; border-radius: 99px; transition: width .35s ease; }
.fc-left { font: 600 14.3px/1 var(--mono); color: #6B645B; white-space: nowrap; }
.fc-card { perspective: 1400px; cursor: pointer; outline: none; border-radius: 22px; }
.fc-card:focus-visible { box-shadow: 0 0 0 3px rgba(46,93,140,.45); }
.fc-in { position: relative; aspect-ratio: 4 / 5; transition: transform .5s cubic-bezier(.3,.7,.2,1); transform-style: preserve-3d; }
.fc-card.flip .fc-in { transform: rotateY(180deg); }
.fc-card.swap .fc-in { opacity: 0; transform: translateX(-24px); transition: opacity .18s, transform .18s; }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 rgba(13,12,11,.05), 0 22px 44px -26px rgba(13,12,11,.5); border: 1px solid #ECE6DD; overflow: hidden; }
.fc-f { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; padding: 22px; }
.fc-k { font: 600 13.2px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8A8279; text-align: center; }
.fc-zh { font: 500 clamp(64px, 18vw, 96px)/1.1 var(--hans); color: #1A1714; text-align: center; }
.fc-tap { font-size: 14px; color: #8A8279; padding: 8px 14px; border-radius: 99px; background: #F6F2EC; }
.fc-b { transform: rotateY(180deg); display: grid; grid-template-rows: 54% 1fr; }
.fc-img { background: #F1ECE4; overflow: hidden; display: grid; place-items: center; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-img.noimg span { font: 500 80px/1 var(--hans); color: rgba(26,23,20,.12); }
.fc-txt { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 14px 18px 18px; text-align: center; }
.fc-zh2 { font: 500 44px/1.15 var(--hans); color: #1A1714; }
.fc-py { font: 600 21px/1.2 var(--sans); color: #B8402F; }
.fc-en { font-size: 18px; color: #3B3631; }
.fc-spk { position: absolute; right: 14px; top: calc(54% - 26px); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: #1A1714; box-shadow: 0 6px 20px -6px rgba(0,0,0,.35); display: grid; place-items: center; cursor: pointer; }
.fc-spk svg { width: 24px; height: 24px; }
.fc-spk.on { background: #1A1714; color: #fff; }
.fc-acts { margin-top: 16px; }
.fc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-two .btn { display: grid; justify-items: center; gap: 2px; padding-top: 12px; padding-bottom: 12px; height: auto; min-height: 62px; }
.fc-two .btn b { font-size: 17px; } .fc-two .btn small { font-size: 12.5px; opacity: .75; font-weight: 500; }
.fc-again { border-color: #E3B7AF !important; color: #9A3324 !important; }
.fc-help { margin: 12px 0 0; text-align: center; font-size: 13.5px; color: #8A8279; line-height: 1.45; }
.fc-done { text-align: center; padding: 26px 18px; background: #fff; border-radius: 22px; border: 1px solid #ECE6DD; max-width: 460px; margin: 0 auto; }
.fc-stamp { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: #A8321F; color: #FBF6EE; font: 700 36px/1 var(--hans); transform: rotate(-6deg); box-shadow: 0 8px 20px -10px rgba(168,50,31,.8); }
.fc-done h3 { margin: 14px 0 0; font-size: 24px; }
.fc-done p { margin: 8px 0 0; color: #3B3631; font-size: 15.5px; line-height: 1.5; }
.fc-done .fc-next { color: #2F8571; }

/* Listen again */
.la { max-width: 520px; background: #fff; border: 1px solid #ECE6DD; border-radius: 20px; padding: 18px; }
.la-who { display: flex; align-items: center; gap: 14px; }
.la-av { display: flex; flex-shrink: 0; }
.la-av img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.la-av.grp img + img { margin-left: -24px; }
.la-nm { display: block; font-size: 19px; color: #1A1714; }
.la-lb { display: block; font: 500 13.8px/1.4 var(--mono); color: #8A8279; letter-spacing: .04em; }
.la-words { margin-top: 14px; padding: 12px 14px; background: #F6F2EC; border-radius: 12px; }
.la-words:not([hidden]) { display: grid; gap: 2px; }
.la-zh { font: 500 26px/1.3 var(--hans); color: #1A1714; } .la-py { font-size: 15px; color: #6B645B; }
.la-ctl { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.la-play { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; border: 0; background: #1A1714; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.la-play svg { width: 28px; height: 28px; fill: currentColor; }
.la-meta { flex: 1; display: grid; gap: 6px; }
.la-round { font: 600 14.3px/1.2 var(--mono); color: #B8402F; letter-spacing: .04em; }
.la-bar { height: 6px; border-radius: 99px; background: #E9E3DA; overflow: hidden; }
.la-bar i { display: block; height: 100%; width: 0; background: #B8402F; transition: width .3s; }
.la-cnt { font-size: 13px; color: #8A8279; }
.la-opts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.la-opts button { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid #DDD5CA; background: #fff; font: 600 14px var(--sans); color: #3B3631; cursor: pointer; }
.la-opts button[aria-pressed="true"] { background: #1A1714; color: #fff; border-color: #1A1714; }
.la-tip { margin: 12px 0 0; font-size: 13.5px; color: #8A8279; line-height: 1.45; }

/* share card */
#main .shr { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: center; margin-top: 10px; max-width: 760px; }
#main .shr-prev canvas { width: 100%; aspect-ratio: 9 / 16; display: block; border-radius: 18px; background: #100F0E; box-shadow: 0 28px 60px -30px rgba(0,0,0,.7); }
#main .shr-side h3 { margin: 0; font-size: 22px; }
#main .shr-side p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
#main .shr-v { display: inline-flex; margin-top: 16px; padding: 4px; border-radius: 99px; background: #EEE8DF; gap: 4px; }
#main .shr-v button { min-height: 38px; padding: 0 18px; border-radius: 99px; border: 0; background: transparent; font: 600 14px var(--sans); color: #6B645B; cursor: pointer; }
#main .shr-v button[aria-pressed="true"] { background: #fff; color: #1A1714; box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }
#main .shr-b { display: grid; gap: 10px; margin-top: 16px; max-width: 320px; }

/* Daily review page */
.rvbody { background: var(--bg, #F4F1EC); }
.rvpage { max-width: 760px; margin: 0 auto; padding: 34px 20px 60px; }
.rv-hero .mono { font: 600 13.8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #B8402F; }
.rv-hero h1 { margin: 10px 0 0; font-size: clamp(34px, 6vw, 48px); line-height: 1.05; letter-spacing: -.02em; }
.rv-hero h1 .cn { font-family: var(--hans); font-weight: 500; margin-left: 12px; color: #B8402F; font-size: .7em; }
.rv-hero p { margin: 10px 0 0; color: #3B3631; font-size: 16.5px; line-height: 1.5; max-width: 560px; }
.rv-step { margin-top: 22px; background: #fff; border: 1px solid #ECE6DD; border-radius: 20px; padding: 20px; box-shadow: 0 1px 0 rgba(13,12,11,.04), 0 14px 32px -24px rgba(13,12,11,.4); }
.rv-step.ok { background: #F3F8F4; border-color: #CFE5D6; }
.rv-h { display: flex; gap: 14px; align-items: center; }
.rv-n { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #1A1714; color: #fff; font-weight: 700; }
.rv-step.ok .rv-n { background: #2F8571; }
.rv-h h2 { margin: 0; font-size: 21px; }
.rv-h p { margin: 2px 0 0; color: #6B645B; font-size: 14.5px; }
.rv-b { margin-top: 16px; }
.rv-b > p { margin: 0 0 12px; color: #3B3631; font-size: 15.5px; line-height: 1.5; }
.rv-b .btn.ghost { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.rv-b .la { border: 0; padding: 0; }
.rv-done { margin-top: 22px; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px; border-radius: 20px; background: #1A1714; color: #fff; }
.rv-done b { font-size: 20px; margin-top: 8px; } .rv-done span { color: rgba(255,255,255,.7); }
.rv-foot { margin-top: 30px; color: #8A8279; font-size: 14px; } .rv-foot a { color: inherit; }
.rvbody .why h3 { margin: 18px 0 6px; font-size: 20px; } .rvbody .why .lsub { color: #3B3631; line-height: 1.5; }
.kit-sheet .in { max-height: 88vh; overflow: auto; }

@media (max-width: 760px) {
  .stk { height: 34px; padding: 0 10px 0 7px; font-size: 14px; }
  .stk .flame { width: 19px; height: 19px; }
  .stk + .ring { margin-left: 8px !important; }
  #main .why2 { grid-template-columns: 1fr; }
  #main .shr { grid-template-columns: 1fr; justify-items: center; }
  #main .shr-prev { width: min(260px, 72vw); }
  #main .shr-side { text-align: center; } #main .shr-b { margin-left: auto; margin-right: auto; width: 100%; }
  .rvpage { padding-top: 24px; }
  /* tap targets: at least 40 px on phones (audit) */
  #main .spk, #main .lplay, #main .tg, #main .strokes-btn, #main .audb { min-height: 40px; }
  #main .spk { min-width: 40px; }
}
.fc [hidden], .la [hidden] { display: none !important; }
.fc-show { width: 100%; }
#main .fcurve text.lab { font-weight: 600; fill: #6B645B; }
.stkcel .btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin-left: auto; margin-right: auto; border: 0; border-radius: 14px; background: #FF8A1F; color: #1A1100; font: 700 17px/1 var(--sans); box-shadow: 0 5px 0 #C4630F; cursor: pointer; }
.stkcel .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #C4630F; }
.stkpop .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; }
.rvcp { color: #F4F1EC; font-weight: 600; font-size: 15px; }
@media (max-width: 430px) { header.top .crumbs .c1, header.top .crumbs .c1 + .sl { display: none; } }
.stkcel .btn, .stkcel .btn.pri { background: #FF8A1F !important; color: #1A1100 !important; }
#main .why3 + .lsub { margin-top: 14px; }
/* "Say it, then check" (grammar) and "What do you say?" cards */
#main .says { display: grid; gap: 10px; margin-top: 12px; max-width: 720px; }
#main .say { background: var(--white, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
#main .say.ok { border-color: #BFDCC8; background: #F3F8F4; } #main .say.again { border-color: #EBCFC9; background: #FCF5F3; }
#main .say-q { display: flex; gap: 12px; align-items: flex-start; }
#main .say-q p { margin: 2px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
#main .say-n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ECE4F6; color: #6A4C9C; font-weight: 700; font-size: 14px; }
#main .say-show { margin: 12px 0 0 40px; }
#main .say [hidden] { display: none !important; }
#main .say-a { margin: 12px 0 0 40px; }
#main .say-zh { display: flex; align-items: center; gap: 10px; }
#main .say-zh .zh { font: 500 28px/1.2 var(--hans); color: var(--ink); }
#main .say-a .py { display: block; color: #B8402F; font-weight: 600; margin-top: 2px; }
#main .say-why { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
#main .say-why span { display: block; margin-top: 2px; color: var(--ink-3); }
#main .say-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
#main .say-res { font-size: 14.5px; font-weight: 600; color: #2F8571; }
#main .say.again .say-res { color: #9A3324; }
#main .say-note { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; }
.fc-card.sayc .fc-zh { font: 600 clamp(22px, 5.6vw, 28px)/1.35 var(--sans); padding: 0 6px; }
.fc-img.sayq { background: #F3EEF9; padding: 18px 20px; place-items: center; text-align: center; }
.fc-img.sayq p { margin: 0; font: 600 18px/1.4 var(--sans); color: #3B3149; }
@media (max-width: 760px) { #main .say-show, #main .say-a { margin-left: 0; } }

/* ---------------------------------------------------------------- interactive texts (20 Nov): Watch · Read · Be Mark, scene sound */
.tarea { position: relative; }
.tmodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.tmodes button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-align: left; color: var(--ink); cursor: pointer; transition: box-shadow .15s, background .15s; }
.tmodes button:hover { box-shadow: 0 0 0 1px var(--ink-3); }
.tmodes .tn { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--sans); background: var(--paper-2, #EFE9DF); color: var(--ink-2); }
.tmodes .tl { display: flex; flex-direction: column; min-width: 0; }
.tmodes b { font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmodes small { font-size: 12.5px; color: var(--ink-3); line-height: 1.25; }
.tmodes button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent, #F28C45); background: #FFF6EE; }
.tmodes button[aria-pressed="true"] .tn { background: var(--accent, #F28C45); color: #fff; }
.tscene { position: relative; margin-bottom: 14px; }
.tscene img { transition: filter .4s, max-height .6s ease; max-height: 460px; }
.tarea.playing .tscene img { max-height: 190px; }
.tarea.m-watch.unseen .tafter { display: none; }
.tarea.m-read .tscene img { filter: saturate(.9); }
.tplay { position: absolute; left: 50%; top: calc(50% - 16px); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 99px;
  background: rgba(13,12,11,.82); color: #fff; font: 600 16px/1.2 var(--sans); box-shadow: 0 8px 28px rgba(0,0,0,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; transition: transform .2s, background .2s, top .3s, left .3s; }
.tplay:hover { background: rgba(13,12,11,.92); transform: translate(-50%, -50%) scale(1.03); }
.tplay .tpi { width: 38px; height: 38px; border-radius: 50%; background: var(--accent, #F28C45); display: grid; place-items: center; }
.tplay .tpi .i { width: 18px; height: 18px; color: #fff; }
.tarea.m-read .tplay { display: none; }
.tarea.playing .tplay { top: 12px; left: auto; right: 12px; transform: none; padding: 6px 14px 6px 6px; font-size: 14px; }
.tarea.playing .tplay .tpi { width: 28px; height: 28px; } .tarea.playing .tplay .tpi .i { width: 13px; height: 13px; }
.scchip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 99px; background: rgba(255,255,255,.9); color: var(--ink); font: 600 12.5px/1 var(--sans); box-shadow: 0 2px 10px rgba(0,0,0,.12); cursor: pointer; }
.scchip .st { font-weight: 500; color: var(--ink-3); }
.scchip[aria-pressed="false"] { opacity: .8; } .scchip[aria-pressed="false"] .eq i { height: 3px !important; animation: none !important; background: var(--ink-3); }
.scchip .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.scchip .eq i { width: 3px; height: 4px; border-radius: 1px; background: var(--accent, #F28C45); }
.scchip.live .eq i { animation: eqb .9s ease-in-out infinite alternate; } .scchip.live .eq i:nth-child(2) { animation-delay: -.3s; } .scchip.live .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eqb { from { height: 3px; } to { height: 12px; } }
.tctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.tdesc { margin: 0; font-size: 14.5px; color: var(--ink-2); flex: 1 1 260px; }
.tdesc .i { width: 15px; height: 15px; vertical-align: -2px; }
.tctl .rs { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 2px; }
.tctl .rs .i { width: 16px; height: 16px; }
.trole { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.trole .k { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-right: 2px; }
.rchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 99px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font: 600 14px/1 var(--sans); color: var(--ink); cursor: pointer; }
.rchip .av { width: 30px; height: 30px; font-size: 13px; }
.rchip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--celadon); background: var(--celadon-wash); }
.thide { flex-basis: 100%; }
.tchat { position: relative; min-height: 60px; }
.tempty { display: flex; align-items: center; gap: 10px; padding: 18px; border-radius: 14px; border: 1.5px dashed var(--line); color: var(--ink-3); font-size: 14.5px; margin: 6px 0 24px; }
.tempty[hidden] { display: none; }
.tempty span { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2, #EFE9DF); display: grid; place-items: center; flex: none; } .tempty .i { width: 13px; height: 13px; }
.tarea .msg.pend { display: none; }
.tarea .msg.pop { animation: msgpop .34s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes msgpop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.tarea .msg .av { transition: box-shadow .2s, transform .2s; }
.tarea .msg.talk .av { box-shadow: 0 0 0 3px var(--accent, #F28C45); transform: scale(1.06); animation: avpulse 1.1s ease-in-out infinite; }
.tarea .msg.talk .bub { box-shadow: 0 0 0 2px var(--accent, #F28C45); }
@keyframes avpulse { 50% { box-shadow: 0 0 0 6px rgba(242,140,69,.25); } }
.tarea .bub.cover .z, .tarea .bub.cover .p { visibility: hidden; height: 0; margin: 0; overflow: hidden; }
.tarea .bub.cover .e { display: block !important; font-size: 15.5px; color: var(--ink); }
.tarea .bub.cover .e::before { content: "Say: "; font-weight: 600; color: var(--celadon); }
.tarea .bub.model { box-shadow: 0 0 0 2px var(--accent, #F28C45) !important; }
.tarea .bub.model::before { content: "Listen"; position: absolute; top: -11px; right: 12px; font: 600 11px/1 var(--sans); background: var(--accent, #F28C45); color: #fff; padding: 4px 8px; border-radius: 99px; }
.tarea.playing .bub { cursor: default; }
.tarea.m-read .wd { border-bottom: 2px dotted rgba(242,140,69,.7); cursor: pointer; border-radius: 3px; transition: background .12s; }
.tarea.m-read .wd:hover, .tarea.m-read .wd.on { background: #FFE9D6; }
.wpop { position: absolute; z-index: 30; display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 14px; min-width: 150px; max-width: 280px; padding: 12px 14px; border-radius: 14px; background: var(--ink, #161412); color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.28); animation: msgpop .2s ease both; }
.wpop .wz { font: 700 26px/1.2 var(--hans, var(--han)); grid-row: span 2; }
.wpop .wpy { font-size: 15px; color: #FFD3AE; font-weight: 600; }
.wpop .wen { font-size: 14.5px; color: rgba(255,255,255,.85); grid-column: 2; }
.wpop .spk { grid-column: 1 / -1; justify-self: start; margin-top: 6px; background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.tnudge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 24px; padding: 14px 16px; border-radius: 14px; background: #FFF6EE; box-shadow: inset 0 0 0 1px #F6D9C2; font-size: 15px; }
.tnudge[hidden] { display: none; }
.tnudge .btn { padding: 8px 14px; }
.tqh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 30px; } .tqh small { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
@media (max-width: 640px) {
  .tmodes { gap: 6px; } .tmodes button { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 10px; } .tmodes small { font-size: 11.5px; }
  .tplay { font-size: 15px; padding: 10px 16px 10px 10px; } .tplay .tpi { width: 32px; height: 32px; }
  .scchip { top: 8px; left: 8px; font-size: 11.5px; padding: 5px 9px 5px 7px; } .scchip .lb { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tarea.playing .tplay { top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .tarea .msg.pop, .wpop { animation: none; } .tarea .msg.talk .av { animation: none; } .scchip.live .eq i { animation: none; height: 8px; } }

/* grammar: "In the text" opener (20 Nov, template from the second learner test) */
.gin { margin: 0 0 28px; padding: 16px 18px 6px; border-radius: 16px; background: #F7F2EA; box-shadow: inset 0 0 0 1px var(--line); }
.gin-k { display: flex; align-items: baseline; gap: 10px; font: 600 12px/1.2 var(--mono, var(--sans)); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.gin-k a { color: var(--accent-deep, #A9501A); text-decoration: none; border-bottom: 1px solid currentColor; }
.gin-line { display: flex; align-items: flex-end; gap: 10px; margin: 12px 0 14px; max-width: 92%; }
.gin-line .av { flex: none; width: 42px; height: 42px; }
.gin-line .bub { cursor: default; }
.gin-line .spk.side { align-self: center; }
.gin .gin-q { list-style: none; margin: 0 0 10px; }
details.whymore { margin: 0 0 22px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 12px 16px; }
details.whymore summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
details.whymore[open] summary { margin-bottom: 10px; }

/* ---------------------------------------------------------------- Review 1 (20 Nov): who said it, introduce yourself, now you can */
.whoq .wline { display: flex; align-items: center; gap: 12px; }
.whoq .wline .zh { display: block; font: 600 22px/1.35 var(--hans, var(--han)); color: var(--ink); }
.whoq .wline .py { display: block; font-size: 14px; color: var(--ink-3); }
.whoq .wsrc { margin-top: 6px; font: 600 11.5px/1.3 var(--mono, var(--sans)); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.whoopts { display: flex !important; flex-wrap: wrap; gap: 8px; }
.whoopts .opt { display: inline-flex !important; align-items: center; gap: 9px; width: auto !important; padding: 6px 16px 6px 6px !important; border-radius: 99px !important; }
.whoopts .opt .av { width: 34px; height: 34px; flex: none; }
.imodel { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 8px; }
.imodel .av { flex: none; }
.ibub { background: var(--surface); border-radius: 18px 18px 18px 6px; padding: 12px 16px; box-shadow: 0 0 0 1px var(--line); max-width: 560px; }
.ibub .z { font: 500 20px/1.5 var(--hans, var(--han)); } .ibub .p { font-size: 14px; color: var(--ink-2); } .ibub .e { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.ibuild { display: grid; gap: 14px; margin: 4px 0 18px; }
.istep { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.istep > .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent, #F28C45); color: #fff; display: grid; place-items: center; font: 700 14px/1 var(--sans); }
.istep > div { min-width: 0; flex: 1; } .istep b { font-size: 16px; } .istep p { margin: 2px 0 10px; font-size: 14px; color: var(--ink-2); } .istep .small { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
#iname, #mname { width: 100%; max-width: 320px; font: 500 17px/1.2 var(--sans); padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
#iname:focus, #mname:focus { outline: none; border-color: var(--accent, #F28C45); }
.ichips { display: flex; flex-wrap: wrap; gap: 8px; }
.ichip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; text-align: left; color: var(--ink); }
.ichip .zh { font: 600 17px/1.2 var(--hans, var(--han)); } .ichip .py { font-size: 12.5px; color: var(--ink-2); } .ichip .en { font-size: 12px; color: var(--ink-3); }
.ichip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent, #F28C45); background: #FFF6EE; }
.iout { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border-radius: 18px; background: var(--ink, #161412); margin: 6px 0 12px; }
.ich { display: inline-flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.07); transition: background .2s, box-shadow .2s; }
.ich .zh { font: 600 21px/1.35 var(--hans, var(--han)); color: #fff; } .ich .py { font-size: 13.5px; color: #FFD3AE; } .ich .en { font-size: 12.5px; color: rgba(255,255,255,.6); }
.ich.on { background: rgba(242,140,69,.28); box-shadow: 0 0 0 2px var(--accent, #F28C45); }
.ich.you { background: #2F8571; box-shadow: 0 0 0 2px #7FD1B9; }
.ibtns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; } .ibtns .small { font-size: 13.5px; color: var(--ink-3); }
.ibtns .btn .i { width: 16px; height: 16px; margin-right: 6px; }
.isay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-radius: 14px; background: var(--celadon-wash, #E4F2EC); margin-bottom: 18px; font-size: 15px; }
.itimes { display: inline-flex; gap: 8px; margin-left: auto; }
.itick { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--celadon, #2F8571); font: 700 15px/1 var(--sans); color: var(--celadon, #2F8571); cursor: pointer; }
.itick[aria-pressed="true"] { background: var(--celadon, #2F8571); color: #fff; }
ul.cando { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
ul.cando li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
ul.cando label { display: flex; align-items: flex-start; gap: 10px; flex: 1; cursor: pointer; font-size: 15px; line-height: 1.4; }
ul.cando input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--celadon, #2F8571); flex: none; }
ul.cando a { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
ul.cando a .i { width: 14px; height: 14px; }
@media (max-width: 640px) { .itimes { margin-left: 0; } ul.cando li { flex-direction: column; align-items: stretch; gap: 6px; } ul.cando a { align-self: flex-end; } }

/* Lesson 4 · Numbers part (20 Nov) */
.h1x .nums10 { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 14px; }
.h1x .n10 { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 8px 12px; text-align: center; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.h1x .n10 .d { display: block; font: 600 14.3px/1 var(--mono); color: var(--ink-2); }
.h1x .n10 .zh { display: block; font-size: 40px; line-height: 1.2; margin-top: 4px; }
.h1x .n10 .py { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.h1x .n10.on, .h1x .nrule.on { border-color: var(--accent); transform: translateY(-2px); }
.h1x .nrules { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.h1x .nrule { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 12px 14px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.h1x .nrule .d { font: 700 24px/1 var(--sans); display: block; }
.h1x .nrule .how { display: block; font: 600 14.3px/1.4 var(--mono); color: var(--accent-deep); margin-top: 4px; }
.h1x .nrule .zh { display: block; font-size: 30px; line-height: 1.25; margin-top: 6px; }
.h1x .nrule .py { display: block; font-size: 16px; font-weight: 600; }
.h1x .nrule small { display: block; color: var(--ink-3); font-size: 13.5px; }
.h1x .nmake { margin-top: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.h1x .nm-ctl { display: flex; align-items: center; justify-content: center; gap: 8px; }
.h1x .nm-st { min-width: 48px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); font: 600 15px/1 var(--sans); color: var(--ink); cursor: pointer; }
.h1x .nm-n { min-width: 72px; font: 700 40px/1 var(--sans); }
.h1x .nmake input[type=range] { width: 100%; margin: 16px 0 8px; accent-color: var(--accent); }
.h1x .nm-out .zh { display: block; font-size: 52px; line-height: 1.2; }
.h1x .nm-out .py { display: block; font-size: 20px; font-weight: 600; min-height: 1.3em; }
.h1x .nm-out .how { display: block; font: 600 15.4px/1.5 var(--mono); color: var(--ink-2); min-height: 1.5em; }
.h1x .nmake.hid .nm-out .zh { color: var(--ink-3); }
.h1x .nmake.hid .nm-out .py { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.h1x .nm-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.h1x .ngame { margin-top: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.h1x .ng-start p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.h1x .ng-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 14px; }
.h1x .ng-play { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 14px 0; padding: 18px; border-radius: var(--r-sm); border: 0; background: var(--ink); color: var(--paper); font: 600 17px/1 var(--sans); cursor: pointer; }
.h1x .ng-play .i { width: 22px; height: 22px; } .h1x .ng-play.on { background: var(--accent); }
.h1x .ng-row { display: flex; gap: 10px; }
.h1x .ng-row input { flex: 1; min-width: 0; font: 700 28px/1 var(--sans); text-align: center; padding: 10px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); }
.h1x .ng-row input:focus { outline: none; border-color: var(--accent); }
.h1x .ngame .fb .zh { font-size: 22px; }
.h1x .ng-nx { margin-top: 10px; }
.h1x .ng-end { text-align: center; } .h1x .ng-end b { display: block; font: 700 44px/1.1 var(--sans); } .h1x .ng-end span { color: var(--ink-3); }
.h1x .ng-end p { margin: 12px 0 14px; }
#main h3 small.bonus { font: 600 12.1px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8A5A00; margin-left: 8px; vertical-align: middle; }

/* chips with a speaker in the corner: keep the speaker off the characters (20 Nov) */
.h1x .schip:has(.spk.side) { padding-top: 54px; }
.h1x .wpop, .wpop { pointer-events: none; } .wpop .spk { pointer-events: auto; }
.hwerr { margin: 6px 0 0; color: var(--ink-3); }
.h1x .ng-row .btn { align-self: stretch; }
.h1x .nm-st:disabled { opacity: .35; cursor: default; }
.bub .z .wd { white-space: nowrap; }
.teaser .btn.pri { background: var(--accent); color: #fff; border-color: var(--accent); }
.h1x .ng-sp { display: inline-flex; gap: 4px; margin: 0 6px; vertical-align: middle; }
.h1x .ng-sp button { font: 600 12.5px/1 var(--sans); padding: 7px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.h1x .ng-sp button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.h1x .ng-top { flex-wrap: wrap; gap: 6px; }
.h1x .ng-miss { margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 15px; }
.h1x .ng-miss span [lang] { font-size: 20px; }

/* writing sheet link in the Writing part (21 Nov) */
.h1x .nb-sheet { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.h1x .nb-sheet:hover { border-color: var(--accent); }
.h1x .nb-sheet .nb-pdf { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--accent); color: #fff; font: 700 12px/52px var(--mono); text-align: center; letter-spacing: .06em; }
.h1x .nb-sheet b { display: block; font-size: 16px; } .h1x .nb-sheet small { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-top: 2px; }

/* whole words in the Writing part (21 Nov): 没关系 as one block of joined boxes */
.h1x .nb-words { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 14px 0 6px; }
.h1x .nb-w { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.h1x .nb-wb { display: flex; }
.h1x .nb-wb .nb-c { border-radius: 0; }
.h1x .nb-wb .nb-c + .nb-c { margin-left: -1.5px; }
.h1x .nb-wb .nb-c:first-child { border-radius: 6px 0 0 6px; }
.h1x .nb-wb .nb-c:last-child { border-radius: 0 6px 6px 0; }
.h1x .nb-wb .nb-c:only-child { border-radius: 6px; }
.h1x .nb-wp { font-size: 13px; color: var(--ink-3, #857C71); }
@media (max-width: 420px) { .h1x .nb-words { gap: 12px 12px; } .h1x .nb-wb .nb-c { width: 50px; height: 50px; } .h1x .nb-wb .nb-c .zh { font-size: 30px; } }
.h1x .nw { white-space: nowrap; }
.dlg .nw { white-space: nowrap; }
.h1x .schip .zh { white-space: nowrap; } .h1x .schip .zh.long { font-size: 24px; }
@media (pointer: coarse) { #scchip, .seg button, .wck, .gin-k a { min-height: 44px; display: inline-flex; align-items: center; } }

/* Lesson 6 · phone numbers */
.h1x .n10.yao { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.h1x .phtips { margin: 16px 0 0; padding: 0 0 0 20px; color: var(--ink-2); font-size: 15.5px; } .h1x .phtips li { margin: 6px 0; }
.h1x .phn { display: block; font: 700 22px/1.25 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.h1x .phmine { margin-top: 12px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.h1x .phmine .ng-row input { font-size: 22px; letter-spacing: .04em; }
.h1x .phdigs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.h1x .phg { display: inline-flex; gap: 3px; }
.h1x .phd { display: inline-flex; flex-direction: column; align-items: center; min-width: 30px; padding: 4px 2px; border-radius: 6px; background: var(--paper); }
.h1x .phd b { font: 700 20px/1.1 var(--sans); font-variant-numeric: tabular-nums; } .h1x .phd small { font-size: 12.5px; color: var(--ink-2); }
.h1x .phd.ok { background: #DCEFE8; } .h1x .phd.no { background: #FBE0DC; } .h1x .phd.no b { color: #B3261E; }
.h1x .phsay { margin: 10px 0 0; color: var(--ink-2); }
.h1x .phmine .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (pointer: coarse) { .h1x .ng-sp button { min-height: 44px; padding: 12px 14px; } }
@media (max-width: 480px) { .h1x .phmine .ng-row { flex-wrap: wrap; } .h1x .phmine .ng-row input { flex-basis: 100%; font-size: 19px; } }

/* Review 2 · About you */
.iage { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.iage input { width: 92px; font: 700 26px/1 var(--sans); text-align: center; padding: 10px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); }
.iage input:focus { outline: none; border-color: var(--accent); }
.mbonus { list-style: none; margin: 8px 0 0; padding: 0; } .mbonus li { display: flex; align-items: center; gap: 10px; margin: 6px 0; } .mbonus .py { color: var(--ink-3); } .mbonus .en { color: var(--ink-2); font-size: 14.5px; }
.ichip .py { display: block; font-size: 13px; color: var(--ink-3); }
/* ---- Lesson 7 · telling the time (R.clock) */
.h1x .clk { display: block; flex: none; }
.h1x .clk .cf { fill: var(--white); stroke: var(--ink); stroke-width: 2.6; }
.h1x .clk .tk { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.h1x .clk .tk1 { stroke: var(--ink-3); stroke-width: 1; stroke-linecap: round; }
.h1x .clk text { font: 700 9px/1 var(--sans); fill: var(--ink-2); text-anchor: middle; }
.h1x .clk .hh { stroke: var(--ink); stroke-width: 4.6; stroke-linecap: round; }
.h1x .clk .mh { stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; }
.h1x .clk .cc { fill: var(--ink); }
.h1x .clkh .n10 .zh { font-size: 30px; }
.h1x .tpers { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.h1x .tper { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--pd); border-radius: var(--r-sm); overflow: hidden; }
.h1x .tp-w, .h1x .tp-x { position: relative; padding: 12px 52px 12px 14px; cursor: pointer; transition: background .2s; }
.h1x .tp-w { background: var(--pc); }
.h1x .tp-w .zh { display: block; font-size: 30px; line-height: 1.2; }
.h1x .tp-w .py { display: block; font-size: 16px; font-weight: 600; }
.h1x .tp-w small { display: block; color: var(--ink-2); font-size: 13.5px; }
.h1x .tp-x .tp-t { display: block; font: 600 14.3px/1 var(--mono); color: var(--pd); }
.h1x .tp-x .zh { display: block; font-size: 22px; line-height: 1.3; margin-top: 4px; }
.h1x .tp-x .py { display: block; font-size: 14.5px; color: var(--ink-2); }
.h1x .tp-w .spk, .h1x .tp-x .spk { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.h1x .tp-w.on, .h1x .tp-x.on, .h1x .tp-x:hover { background: var(--paper); }
.h1x .tmake .tm-top { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.h1x .tm-dig output { display: block; font: 700 46px/1 var(--sans); font-variant-numeric: tabular-nums; }
.h1x .tm-dig small { display: block; color: var(--ink-3); font-size: 15px; margin-top: 6px; }
.h1x .tm-ctl { display: flex; justify-content: center; gap: 10px 18px; flex-wrap: wrap; margin: 16px 0 10px; }
.h1x .tm-g { display: flex; gap: 6px; }
.h1x .tm-ctl .nm-st { min-width: 52px; padding: 0 10px; }
.h1x .tmake .nm-out .zh { font-size: 40px; }
.h1x .tmake.hid .nm-out .zh { color: var(--ink-3); }
.h1x .tch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 12px; }
.h1x .tch button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--r-sm); border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.h1x .tch button:hover:not(:disabled) { border-color: var(--ink-3); }
.h1x .tch button b { font: 700 24px/1 var(--sans); font-variant-numeric: tabular-nums; }
.h1x .tch button small { color: var(--ink-3); font-size: 13px; }
.h1x .tch button.ok { border-color: #2F8571; background: #DCEFE8; }
.h1x .tch button.no { border-color: #B3261E; background: #FBE0DC; }
.h1x .tch button:disabled { cursor: default; }
.h1x .tch button:disabled:not(.ok):not(.no) { opacity: .55; }
@media (max-width: 420px) { .h1x .tch { gap: 6px; } .h1x .tch button { padding: 10px 2px; } .h1x .tch button b { font-size: 19px; } .h1x .tch .clk { width: 58px; height: 58px; }
  .h1x .tm-dig output { font-size: 38px; } .h1x .tmake .nm-out .zh { font-size: 32px; } }
.h1x .ng-end .ng-miss b { display: block; flex-basis: 100%; font: 700 15px/1.4 var(--sans); }
.h1x .ng-end .ng-miss span { color: var(--ink); }
/* ---- Lesson 8 · where is the cat? (R.where) */
.h1x .wscene { position: relative; max-width: 620px; margin: 14px auto 0; }
.h1x .wscene .wsvg { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
.h1x .wcat { transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.h1x .wspot { position: absolute; transform: translate(-50%, -50%); width: 12%; min-width: 44px; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(26,23,20,.65); background: rgba(255,255,255,.28); cursor: pointer; padding: 0; transition: border-color .2s, background .2s, box-shadow .2s; }
.h1x .wspot:hover, .h1x .wspot:focus-visible { border-color: var(--accent); background: rgba(255,255,255,.5); }
.h1x .wspot.on { border-style: solid; border-color: var(--accent); }
.h1x .wspot.ok { border-style: solid; border-color: #2F8571; background: rgba(220,239,232,.55); box-shadow: 0 0 0 3px rgba(47,133,113,.25); }
.h1x .wspot.no { border-style: solid; border-color: #B3261E; background: rgba(251,224,220,.6); }
.h1x .wscene.game .wspot:not(.ok):not(.no) { border-color: rgba(26,23,20,.65); }
.wgame #wout, .wgame #wkout, .wgame .phtips { display: none; }
.h1x .ng-end > b[tabindex]:focus { outline: none; }
.h1x .wout { margin-top: 12px; min-height: 40px; }
.h1x .wpcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.h1x .wpcard .wpk { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.h1x .wsent { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.h1x .wsent:first-of-type { border-top: 0; }
.h1x .wsent .m { flex: 1; min-width: 0; } .h1x .wsent .zh { display: block; font-size: 24px; line-height: 1.3; } .h1x .wsent .py { display: block; font-size: 15px; font-weight: 600; } .h1x .wsent small { display: block; color: var(--ink-3); font-size: 13.5px; }
/* Mark's plans (Lesson 9): a Friday-to-Sunday grid */
.h1x .wkg { display: grid; grid-template-columns: minmax(58px, .75fr) repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 620px; margin: 14px auto 0; }
.h1x .wkh, .h1x .wkd { display: flex; flex-direction: column; justify-content: center; font-size: 16px; line-height: 1.25; color: var(--ink); }
.h1x .wkh { align-items: center; text-align: center; padding: 2px 0 4px; }
.h1x .wkd { padding-right: 2px; }
.h1x .wkh small, .h1x .wkd small { font-size: 12px; color: var(--ink-3); }
.h1x .wkc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .2s, background .2s, box-shadow .2s; }
.h1x .wkc .wkp { font-size: 13px; color: var(--ink-2); line-height: 1.2; }
.h1x .wkc .wkv { font-size: 19px; line-height: 1.25; }
.h1x .wkc:hover, .h1x .wkc:focus-visible { border-color: var(--accent); }
.h1x .wkc.on { border-color: var(--accent); background: #FFF6EC; box-shadow: 0 0 0 2px rgba(201,100,66,.2); }
.h1x .wkc.ok { border-color: #2F8571; background: #DCEFE8; box-shadow: 0 0 0 3px rgba(47,133,113,.22); }
.h1x .wkc.no { border-color: #B3261E; background: #FBE0DC; }
@media (max-width: 420px) { .h1x .wkg { gap: 5px; } .h1x .wkc { min-height: 66px; padding: 6px 2px; } .h1x .wkc .wkv { font-size: 17px; } .h1x .wkc .wkp { font-size: 12px; } .h1x .wkh, .h1x .wkd { font-size: 15px; } }
/* text tabs on phones: room for the selected tab's 2px ring at both ends of the scroller (QA, Lesson 8) */
@media (max-width: 720px) { .ttabs { padding: 3px 4px; scroll-padding-inline: 4px; } }
/* listening games, Lessons 8-9 (agents, 23 Nov): no heading or tips during the game, room under the sticky bar, compact on short screens */
.wgame .lghead { display: none; }
.h1x .wscene, .h1x .wkg { scroll-margin-top: 112px; }
.h1x .lgmiss > span { display: flex; align-items: center; justify-content: center; gap: 10px; flex-basis: 100%; }
.h1x .lgmiss .t { display: flex; flex-direction: column; text-align: left; }
.h1x .lgmiss .t small { font-size: 13px; color: var(--ink-2); }
.h1x .wkh small, .h1x .wkd small { color: var(--ink-2); }
@media (max-width: 420px) { .h1x .wkc .wkp { font-size: 14px; } }
@media (max-height: 760px) and (max-width: 720px) { .h1x .wkc { min-height: 54px; padding: 4px 2px; } .h1x .wkh { padding-bottom: 0; } .wgame .lghint { display: none; } }
@media (max-width: 720px) { .tmodes button { min-width: 0; } .tmodes .tl { width: 100%; } .tmodes b { white-space: normal; overflow-wrap: anywhere; } }
@media (max-height: 760px) and (max-width: 720px) { .wgame .ngame .ng-sc { display: none; } .wgame .ngame .fb .zh { font-size: 19px; } .wgame .ngame .ng-play { padding-top: 10px; padding-bottom: 10px; } .wgame .ngame { padding-top: 12px; padding-bottom: 12px; } }
ul.cando.goback span { flex: 1; font-size: 15px; line-height: 1.4; }
.madd { display: inline-block; margin-top: 8px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--celadon-soft, #E2F0EA); color: var(--celadon, #2F8571); font-family: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.3; cursor: pointer; }
#wsum a { font-weight: 600; }
/* At the shop (Lesson 10): a 3 x 3 shelf with price tags */
.h1x .shg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 560px; margin: 14px auto 0; scroll-margin-top: 112px; }
.h1x .shc { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 6px 8px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .2s, background .2s, box-shadow .2s; }
.h1x .shc img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; display: block; }
.h1x .shc .shn { font-size: 15px; line-height: 1.25; }
.h1x .shc .sht { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #FFF3C4; color: #5A4300; font-weight: 700; font-size: 14px; line-height: 1.4; white-space: normal; max-width: 100%; text-align: center; overflow-wrap: anywhere; box-shadow: 0 0 0 1px rgba(90,67,0,.18); }
.h1x .shc:hover, .h1x .shc:focus-visible { border-color: var(--accent); }
.h1x .shc.on { border-color: var(--accent); background: #FFF6EC; box-shadow: 0 0 0 2px rgba(201,100,66,.2); }
.h1x .shc.ok { border-color: #2F8571; background: #DCEFE8; box-shadow: 0 0 0 3px rgba(47,133,113,.22); }
.h1x .shc.no { border-color: #B3261E; background: #FBE0DC; }
@media (max-width: 420px) { .h1x .shg { gap: 6px; } .h1x .shc { padding: 4px 4px 6px; } .h1x .shc .shn { font-size: 14px; } .h1x .shc .sht { font-size: 12px; line-height: 1.3; padding: 1px 5px; } }
@media (max-height: 760px) and (max-width: 720px) { .h1x .shc img { aspect-ratio: 16 / 9; } .h1x .shc { gap: 1px; } }
/* "What do you say?" cards in the Daily review: room for the whole answer on phones (QA, Review 3) */
.fc-card.sayc .fc-b { grid-template-rows: 38% 1fr; }
.fc-card.sayc .fc-spk { top: calc(38% - 26px); }
.fc-card.sayc .fc-zh2 { font-size: clamp(24px, 7.5vw, 34px); line-height: 1.25; }
.fc-card.sayc .fc-py { font-size: 17px; }
.fc-card.sayc .fc-en { font-size: 14.5px; }
.fc-card.sayc .fc-txt { overflow-y: auto; align-content: start; }
/* shop game: only the shelf and the game card while playing (360 x 740 check) */
.wgame #shout, .wgame #shout + .phtips { display: none; }
.h1x .shg.game { margin-top: 8px; }
@media (max-height: 760px) and (max-width: 720px) { .h1x .shg.game img { aspect-ratio: 2 / 1; } .h1x .shg.game .shc { padding: 3px 3px 5px; } .h1x .shg.game { gap: 5px; } }
/* QA, Lesson 10: the shop game's Next stays on screen on phones and desktop; repeat dialog hides its record buttons until there is a recording */
.h1x .shc img { aspect-ratio: 2 / 1; }
@media (min-width: 721px) { .h1x .shg { max-width: 480px; } }
.rep .hide { display: none !important; }

.h1x .schip .py { overflow-wrap: anywhere; }
@media (max-width: 420px) { .h1x .schip .py { font-size: 16px; } }

/* ================================================================ 24 Nov 2026 (night): fixes from the lesson review
   (a learner on a phone + a design/accessibility check). Shared by every lesson and review page. */
/* contrast: grey text and red text pass WCAG AA on paper and cards; a dark focus ring on paper */
#main { --ink-3: #6B635A; --cinnabar: #B8361F; }
#main :focus-visible { outline-color: #8E4313; }
.top :focus-visible, .rail :focus-visible { outline-color: #E3A43A; }
.teaser .btn.pri { color: #0D0C0B; }
/* phones: say what comes next above "Done. Next part" */
@media (max-width: 900px) {
  .next { align-items: flex-end; }
  .next .lbl { display: block; text-align: right; font-size: 12.5px; max-width: 62vw; margin-left: auto; }
}
/* the big faint part name: our own serif cut (no extra font), and not behind the text on small phones */
#main .vhead.vh2[data-cn]::after { font-family: "Noto Serif SC", serif; }
@media (max-width: 520px) { #main .vhead.vh2[data-cn]::after { display: none; } }
/* + / – / ? before grammar examples are labels, not buttons */
#main .frag .ex .mark { background: none !important; width: auto; height: auto; border-radius: 0; font-size: 18px; line-height: 1.2; }
/* a "less polite" form is not crossed out */
.frag .callout.mistake .meh { color: var(--ink-2); font-weight: 600; }
/* practice: the running count stays in sight */
.acts.pcount { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 6; justify-content: center; pointer-events: none; }
#pcount { pointer-events: auto; background: #161412; color: #F4F1EC; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 20px -10px rgba(13,12,11,.6); }
#pcount.all { background: #2F7A5E; }
/* 8 sound cards = two rows of 4 (bā… and wū… stay in their own rows) */
#main .schips:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* reading a text: a single-character word is easier to tap */
.tarea.m-read .wd { position: relative; }
.tarea.m-read .wd::after { content: ""; position: absolute; inset: -8px -5px; }
/* bigger targets on touch screens */
@media (pointer: coarse) {
  .btn, .lplay, .tile, .opt, .opt.sm, .tg, .ttabs button, .tmodes button { min-height: 44px; }
  .nb-check { min-width: 44px; min-height: 44px; }
  .spk { min-width: 40px; min-height: 40px; }
}
/* tone chart: 2 x 2 on phones (lesson.js toneChart) */
#main .tchart .tc-n { display: none; }
@media (max-width: 560px) { #main .tchart .tc-w { display: none; } #main .tchart .tc-n { display: block; } }
/* Lesson 7 hour tiles: 十一点 / 十二点 stay on one line (review, 24 Nov: split at 768) */
.h1x .clkh .n10 .zh { white-space: nowrap; font-size: clamp(22px, 3.2vw, 30px); }
/* Warm-up: the lesson title (hero) is the page's h1; the part head under it is an h2 that looks the same as other parts' h1 */
.vhead h2.vhh { margin: 2px 0 0; font-size: 36px; line-height: 1.15; letter-spacing: -.03em; font-weight: 700; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.vhead h2.vhh .cn { font-family: var(--han); font-weight: 500; font-size: 24px; color: var(--ink-3); letter-spacing: 0; }
@media (max-width: 900px) { .vhead h2.vhh { font-size: 28px; } .vhead h2.vhh .cn { font-size: 20px; } }
.h1x .clkh .n10 .py { white-space: nowrap; font-size: clamp(12.5px, 1.9vw, 15px); }
/* 25 Nov: lesson reading text 17 px, like the Welcome (components keep their own sizes) */
#main { font-size: 17px; line-height: 1.6; }
/* 25 Nov QA: the darker greys/reds must win inside .h1x blocks too; Chinese inside Latin text uses Noto Sans SC, not a system (JP) font */
:root, .h1x, .rep, .sheet { --sans: "Instrument Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Instrument Sans", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif; }
#main, #main .h1x, .rep, .sheet { --ink-3: #6B635A; --cinnabar: #B8361F; --seal: #B8361F; }
.h1x .strokes-btn { color: #8E4313; }
/* 25 Nov learner + QA: the practice pill never hides or catches answers; small links get a real tap area */
.acts.pcount { justify-content: flex-end; }
#pcount { pointer-events: none; }
.prclr { margin: 4px 0 0; text-align: right; }
.prclr .linkish { background: none; border: 0; padding: 10px 0; min-height: 44px; font: 600 14px/1.3 var(--sans); color: var(--accent-deep, #A9501A); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gin-k a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }
.scchip { min-height: 40px; }
ul.cando a { display: inline-flex; align-items: center; min-height: 40px; }
.dayend { margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: #EEF6F2; box-shadow: inset 0 0 0 1px #CFE6DC; color: #1F4F3F; font-size: 16px; line-height: 1.5; }
.dayend b { color: #163D30; }
.yourc-d { margin: 18px 0 0; border-radius: 14px; background: var(--surface, #fff); box-shadow: 0 0 0 1px var(--line, #E3DCD1); padding: 0 14px; }
.yourc-d > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 6px; font-size: 16px; list-style: none; }
.yourc-d > summary::after { content: "+"; margin-left: auto; font-weight: 700; color: var(--accent-deep, #A9501A); }
.yourc-d[open] > summary::after { content: "–"; }
.yourc-d > summary::-webkit-details-marker { display: none; }
.yourc-d .lsub { margin-top: 0; }
.yourc-d .names.yourc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 14px; }
.yourc-d .names.yourc .name { min-width: 0; }
.yourc-d .names.yourc .py { white-space: normal; }
.yourc-d > summary { display: block; padding: 13px 28px 13px 0; position: relative; line-height: 1.4; }
.yourc-d > summary::after { position: absolute; right: 2px; top: 12px; }
.yourc-d .names.yourc { margin-top: 10px; }
.yourc-d .h1x .names.yourc .name { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 0; align-items: center; border-radius: 14px; padding: 6px 10px 6px 6px; }
.yourc-d .h1x .names.yourc .name > .spk { grid-row: 1 / span 2; }
.yourc-d .h1x .names.yourc .name .zh { white-space: normal; font-size: 17px; line-height: 1.25; }
.yourc-d .h1x .names.yourc .name .py { font-size: 13px; line-height: 1.25; }
/* 25 Nov QA: last two contrast misses */
.h1x .nb-sheet .nb-pdf { background: #A9501A; }
.istep .n { color: #161412 !important; }

/* 25 Nov: words in the practice "Read it" chat can be tapped one by one */
.rdchat { position: relative; }
.rdchat .wd { border-bottom: 2px dotted rgba(196,99,42,.55); cursor: pointer; border-radius: 3px; }
.rdchat .wd.on { background: #FBE3CC; }
.rv-extra .rv-n { background: #E3A43A; color: #1A1714; }
.rv-games { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-games .btn { width: auto; }
