/* ============================================================
 *  Kids English —— 儿童英语学习站
 *  设计原则：大按钮 / 高对比 / 无 hover 依赖 / 平板触摸优先
 * ============================================================ */

:root {
  --bg:        #FFF7EE;
  --bg-alt:    #FFF1E0;
  --card:      #FFFFFF;
  --ink:       #2E3350;
  --ink-soft:  #7A8299;
  --line:      #F0E4D4;

  --primary:   #FF7A59;
  --primary-d: #F0603E;
  --blue:      #4D96FF;
  --green:     #4CC98A;
  --yellow:    #FFC93C;
  --purple:    #B07CFF;
  --pink:      #FF8FB1;
  --teal:      #2EC4B6;

  --r-sm: 14px;
  --r:    22px;
  --r-lg: 32px;

  --sh-sm: 0 3px 0 rgba(46,51,80,.08);
  --sh:    0 8px 24px rgba(46,51,80,.10);
  --sh-lg: 0 16px 40px rgba(46,51,80,.16);

  --nav-h: 78px;
  --font-en: "Comic Sans MS", "Chalkboard SE", "Segoe Print", "Trebuchet MS", system-ui, sans-serif;
  --font-cn: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-cn);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
body { min-height: 100vh; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

/* ---------- 顶栏 ---------- */
.appbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFA 100%);
  border-bottom: 3px solid var(--line);
  box-shadow: 0 2px 12px rgba(46,51,80,.06);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 26px; font-weight: 700; letter-spacing: .5px;
  color: var(--primary);
  white-space: nowrap;
}
.logo .sun { font-size: 30px; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 语速切换 */
.ratebtn {
  margin-left: auto;
  min-height: 52px; padding: 10px 18px;
  border-radius: 999px; background: #fff; border: 3px solid var(--line);
  font-size: 16px; font-weight: 700; box-shadow: var(--sh-sm);
  white-space: nowrap;
}
.ratebtn:active { transform: translateY(2px); box-shadow: none; }

/* 顶栏导航（桌面 / 平板横屏） */
.nav {
  display: flex; gap: 8px;
  flex-wrap: wrap; justify-content: flex-end;
}
.nav button {
  min-height: 52px; padding: 10px 20px;
  border-radius: 999px;
  font-size: 17px; font-weight: 600;
  background: var(--bg-alt);
  color: var(--ink);
  transition: transform .12s, background .15s, box-shadow .15s;
  box-shadow: var(--sh-sm);
  display: flex; align-items: center; gap: 7px;
}
.nav button:active { transform: translateY(2px); box-shadow: none; }
.nav button.on {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 0 var(--primary-d);
}

/* 星星计数 */
.starbox {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px; min-height: 52px;
  background: linear-gradient(135deg, #FFE9A8, #FFD36E);
  border-radius: 999px;
  font-family: var(--font-en); font-size: 20px; font-weight: 700;
  color: #7A4E00;
  box-shadow: 0 4px 0 #E8B23C;
  white-space: nowrap;
}
.starbox .n { font-size: 22px; }

/* ---------- 主区 ---------- */
main {
  max-width: 1240px; margin: 0 auto;
  padding: 26px 22px 120px;
}
.view { display: none; animation: fade .28s ease; }
.view.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.page-head { margin: 4px 0 22px; }
.page-head h1 {
  margin: 0 0 6px; font-size: 32px; font-weight: 800; letter-spacing: .3px;
}
.page-head p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ---------- 首页：入口卡片 ---------- */
.hero {
  background: linear-gradient(135deg, #FFD9A0 0%, #FFB3C7 55%, #C3B5FF 100%);
  border-radius: var(--r-lg);
  padding: 30px 32px; margin-bottom: 26px;
  box-shadow: var(--sh);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.hero .txt { flex: 1 1 260px; }
.hero h2 {
  margin: 0 0 8px; font-size: 30px; font-weight: 800; color: #4A2E1E;
}
.hero p { margin: 0 0 16px; font-size: 17px; color: #6B4630; line-height: 1.6; }
.hero .emo { font-size: 82px; line-height: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 58px; padding: 14px 30px;
  border-radius: 999px;
  font-size: 18px; font-weight: 700;
  background: var(--primary); color: #fff;
  box-shadow: 0 5px 0 var(--primary-d);
  transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--primary-d); }
.btn.blue   { background: var(--blue);   box-shadow: 0 5px 0 #2F79E0; }
.btn.blue:active   { box-shadow: 0 1px 0 #2F79E0; }
.btn.green  { background: var(--green);  box-shadow: 0 5px 0 #31A76C; }
.btn.green:active  { box-shadow: 0 1px 0 #31A76C; }
.btn.ghost  { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.btn.ghost:active  { box-shadow: 0 1px 0 var(--line); }

.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  background: var(--card); border-radius: var(--r);
  padding: 22px; text-align: left;
  border: 3px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .14s, box-shadow .14s, border-color .14s;
  min-height: 132px;
  display: flex; flex-direction: column; gap: 6px;
}
.card:active { transform: translateY(3px); box-shadow: none; }
.card .big { font-size: 44px; line-height: 1; }
.card h3 { margin: 2px 0 0; font-size: 21px; font-weight: 800; }
.card .sub { font-size: 15px; color: var(--ink-soft); }
.card.c1 { border-color: #FFD6C7; } .card.c1 .big { filter: drop-shadow(0 3px 0 #FFD6C7); }
.card.c2 { border-color: #CDE3FF; }
.card.c3 { border-color: #C6F0DA; }
.card.c4 { border-color: #EADBFF; }
.card.c5 { border-color: #FFE0B0; }
.card.c6 { border-color: #FFD3E0; }

/* ---------- 字母表 ---------- */
.letters {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.letter {
  background: #fff; border: 3px solid var(--line); border-radius: var(--r);
  padding: 14px 8px 12px; text-align: center;
  box-shadow: var(--sh-sm); min-height: 158px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.letter:active { transform: translateY(3px) scale(.97); box-shadow: none; }
.letter .pair {
  font-family: var(--font-en); font-size: 40px; font-weight: 700;
  color: var(--primary); line-height: 1;
}
.letter .snd {
  font-family: var(--font-en); font-size: 15px; color: var(--blue); font-weight: 700;
}
.letter .w { font-size: 30px; line-height: 1.1; }
.letter .en { font-family: var(--font-en); font-size: 15px; font-weight: 700; }
.letter .cn { font-size: 13px; color: var(--ink-soft); }
.letter.done { border-color: var(--green); background: #F4FFF9; }

/* ---------- 自然拼读 ---------- */
.phon-block { margin-bottom: 30px; }
.phon-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 3px solid var(--line); border-radius: var(--r);
  padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--sh-sm);
}
.phon-head .v {
  font-family: var(--font-en); font-size: 46px; font-weight: 800;
  width: 84px; height: 84px; flex: 0 0 84px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 24px; color: #fff; background: var(--purple);
  box-shadow: 0 5px 0 #8E5AE0;
}
.phon-head .meta h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.phon-head .meta p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.fam { margin-bottom: 14px; }
.fam-title {
  display: inline-block; font-family: var(--font-en); font-size: 19px; font-weight: 700;
  background: var(--bg-alt); color: var(--primary-d);
  padding: 5px 16px; border-radius: 999px; margin-bottom: 10px;
}
.words { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.word-chip {
  background: #fff; border: 3px solid var(--line); border-radius: 18px;
  padding: 12px 8px; text-align: center; min-height: 122px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: var(--sh-sm); transition: transform .12s, box-shadow .12s;
}
.word-chip:active { transform: translateY(3px); box-shadow: none; }
.word-chip .e { font-size: 34px; line-height: 1.1; }
.word-chip .w { font-family: var(--font-en); font-size: 17px; font-weight: 700; }
.word-chip .c { font-size: 13px; color: var(--ink-soft); }

/* ---------- 主题词 ---------- */
.topic-bar {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.topic-bar::-webkit-scrollbar { height: 8px; }
.topic-bar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.topic-bar button {
  flex: 0 0 auto; min-height: 54px; padding: 10px 20px;
  border-radius: 999px; background: #fff; border: 3px solid var(--line);
  font-size: 16px; font-weight: 700; box-shadow: var(--sh-sm);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.topic-bar button:active { transform: translateY(2px); box-shadow: none; }
.topic-bar button.on { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: 0 4px 0 #1FA296; }
.topic-bar .g {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: var(--bg-alt); color: var(--ink-soft);
}
.topic-bar button.on .g { background: rgba(255,255,255,.28); color: #fff; }

/* ---------- 对话 ---------- */
.dlg {
  background: #fff; border: 3px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--sh-sm);
}
.dlg h3 { margin: 0 0 14px; font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.dlg .l {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 16px; margin-bottom: 10px;
  background: var(--bg); cursor: pointer;
  transition: transform .12s, background .12s;
  min-height: 62px;
}
.dlg .l:active { transform: translateY(2px); }
.dlg .l.b { background: #EEF6FF; }
.dlg .l.playing { background: #FFF3D6; }
.dlg .who {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 700; font-size: 17px; color: #fff;
  background: var(--primary);
}
.dlg .l.b .who { background: var(--blue); }
.dlg .en { font-family: var(--font-en); font-size: 20px; font-weight: 700; }
.dlg .cn { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- 指令 / 高频词 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: #fff; border: 3px solid var(--line); border-radius: 18px;
  padding: 12px 18px; min-height: 62px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 18px; font-weight: 700;
  box-shadow: var(--sh-sm); transition: transform .12s, box-shadow .12s;
}
.chip:active { transform: translateY(3px); box-shadow: none; }
.chip .cn { font-family: var(--font-cn); font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.chip.small { font-size: 26px; min-height: 74px; min-width: 96px; justify-content: center; flex-direction: column; gap: 2px; }
.chip.small .cn { font-size: 13px; }

/* ---------- 游戏 ---------- */
.game-wrap {
  background: #fff; border: 3px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--sh);
  max-width: 780px; margin: 0 auto;
}
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.game-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.game-head .p { font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.bar { height: 16px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--teal)); border-radius: 999px; transition: width .4s ease; }

.prompt {
  text-align: center; padding: 22px 10px 26px;
}
.prompt .q { font-size: 16px; color: var(--ink-soft); margin-bottom: 8px; font-weight: 600; }
.prompt .big { font-size: 84px; line-height: 1.1; }
.prompt .word { font-family: var(--font-en); font-size: 46px; font-weight: 800; line-height: 1.2; }
.prompt .cn { font-size: 17px; color: var(--ink-soft); margin-top: 6px; }
.spk {
  width: 84px; height: 84px; border-radius: 50%; margin: 14px auto 0;
  background: var(--blue); color: #fff; font-size: 38px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 0 #2F79E0; transition: transform .12s, box-shadow .12s;
}
.spk:active { transform: translateY(5px); box-shadow: 0 1px 0 #2F79E0; }
.spk.playing { background: var(--yellow); box-shadow: 0 6px 0 #E0AE22; color: #6B4B00; }

.opts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt {
  background: #fff; border: 3px solid var(--line); border-radius: 20px;
  min-height: 118px; padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: var(--sh-sm); transition: transform .12s, border-color .12s, background .12s;
}
.opt:active { transform: translateY(3px); box-shadow: none; }
.opt .e { font-size: 44px; line-height: 1; }
.opt .w { font-family: var(--font-en); font-size: 19px; font-weight: 700; }
.opt .c { font-size: 13px; color: var(--ink-soft); }
.opt.right { border-color: var(--green); background: #EEFFF5; animation: pop .35s; }
.opt.wrong { border-color: var(--pink); background: #FFF0F4; animation: shake .35s; }
@keyframes pop { 0%{transform:scale(1)} 45%{transform:scale(1.09)} 100%{transform:scale(1)} }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-9px)} 40%{transform:translateX(9px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }

/* 拼写区 */
.slots { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 16px 0 20px; min-height: 62px; }
.slot {
  width: 52px; height: 62px; border-radius: 14px;
  border: 3px dashed #D8CBB8; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 28px; font-weight: 700; color: var(--primary-d);
  transition: background .15s, border-color .15s;
}
.slot.filled { border-style: solid; border-color: var(--green); background: #F2FFF8; }
.slot.bad { border-color: var(--pink); background: #FFF0F4; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tile {
  min-width: 54px; height: 58px; padding: 0 12px; border-radius: 14px;
  background: var(--yellow); color: #6B4B00;
  font-family: var(--font-en); font-size: 26px; font-weight: 800;
  box-shadow: 0 4px 0 #E0AE22; transition: transform .1s, box-shadow .1s, opacity .2s;
}
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 #E0AE22; }
.tile.used { opacity: .25; pointer-events: none; }

/* 翻牌配对 */
.memory { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.mcard {
  aspect-ratio: 1/1.15; border-radius: 18px; border: 3px solid var(--line);
  background: linear-gradient(135deg, #FFE9C7, #FFD08A);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; box-shadow: var(--sh-sm);
  transition: transform .12s, box-shadow .12s;
  padding: 6px; text-align: center; overflow: hidden;
}
.mcard:active { transform: translateY(3px); box-shadow: none; }
.mcard .face { font-family: var(--font-en); font-size: 15px; font-weight: 700; word-break: break-word; }
.mcard.open { background: #fff; border-color: var(--blue); }
.mcard.gone { background: #F2FFF8; border-color: var(--green); opacity: .55; pointer-events: none; }

/* 结果页 */
.result { text-align: center; padding: 20px 10px 8px; }
.result .face { font-size: 92px; line-height: 1; }
.result h2 { margin: 12px 0 6px; font-size: 30px; font-weight: 800; }
.result p { margin: 0 0 20px; color: var(--ink-soft); font-size: 17px; }
.result .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 反馈浮层 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(140%);
  background: var(--ink); color: #fff;
  padding: 14px 26px; border-radius: 999px;
  font-size: 17px; font-weight: 700; z-index: 200;
  box-shadow: var(--sh-lg); transition: transform .3s cubic-bezier(.2,1.3,.5,1);
  display: flex; align-items: center; gap: 9px; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.good { background: var(--green); }
.toast.bad  { background: var(--pink); }

/* 撒星星 */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.fx i {
  position: absolute; font-size: 34px; font-style: normal;
  animation: burst 1.1s ease-out forwards;
}
@keyframes burst {
  0%   { opacity: 1; transform: translate(0,0) rotate(0) scale(.6); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.25); }
}

/* ---------- 发音设置面板 ---------- */
.panel {
  background: #fff; border: 3px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; margin-bottom: 22px; box-shadow: var(--sh-sm);
}
.panel h3 { margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.vrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 2px dashed var(--line); margin-bottom: 10px;
}
.vlabel { font-size: 15px; color: var(--ink-soft); }
.vcur {
  font-size: 15px; font-weight: 700; color: var(--primary-d);
  background: var(--bg-alt); padding: 6px 14px; border-radius: 999px;
  word-break: break-all;
}
.vbtn {
  min-height: 46px; padding: 8px 18px; border-radius: 999px;
  background: #fff; border: 3px solid var(--line);
  font-size: 15px; font-weight: 700; box-shadow: var(--sh-sm);
}
.vbtn:active { transform: translateY(2px); box-shadow: none; }
.vsub { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; font-weight: 600; }
.vlist { display: grid; gap: 10px; max-height: 340px; overflow-y: auto; padding: 2px; }
.vitem {
  text-align: left; background: var(--bg); border: 3px solid var(--line);
  border-radius: 16px; padding: 12px 16px; min-height: 60px;
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color .12s, background .12s;
}
.vitem:active { transform: translateY(2px); }
.vitem.on { border-color: var(--teal); background: #E9FCFA; }
.vitem .vn { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vitem .vt { font-size: 13px; color: var(--ink-soft); }
.vtag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }
.vtag.good { background: #D8F7E6; color: #1E7A4C; }
.vtag.bad  { background: #FFE0E7; color: #C2365A; }
.vtip { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin: 12px 0 0; }

/* ---------- 学习进度 ---------- */
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 24px; }
.stat {
  background: #fff; border: 3px solid var(--line); border-radius: var(--r);
  padding: 18px; text-align: center; box-shadow: var(--sh-sm);
}
.stat .n { font-family: var(--font-en); font-size: 34px; font-weight: 800; color: var(--primary); }
.stat .t { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- 底部（平板竖屏安全区） ---------- */
.foot { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 20px 0 8px; }

/* ---------- 自适应 ---------- */
/* 平板竖屏 */
@media (max-width: 900px) {
  .appbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .logo { font-size: 22px; }
  .nav { margin-left: 0; width: 100%; order: 3; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { height: 6px; }
  .nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
  .nav button { flex: 0 0 auto; padding: 10px 16px; font-size: 16px; min-height: 50px; }
  .ratebtn { min-height: 50px; padding: 8px 14px; font-size: 15px; }
  .starbox { padding: 8px 14px; }
  main { padding: 18px 14px 100px; }
  .hero { padding: 22px; }
  .hero h2 { font-size: 25px; }
  .hero .emo { font-size: 62px; }
  .page-head h1 { font-size: 26px; }
  .prompt .big { font-size: 66px; }
  .memory { grid-template-columns: repeat(3, 1fr); }
}

/* 手机 */
@media (max-width: 560px) {
  .letters { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .letter { min-height: 138px; }
  .letter .pair { font-size: 34px; }
  .words { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 16px; min-height: 118px; }
  .card .big { font-size: 36px; }
  .card h3 { font-size: 18px; }
  .memory { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .mcard { font-size: 32px; }
}
