:root {
  --pink: #ff6fa5;
  --blue: #46c2ff;
  --yellow: #ffc83d;
  --green: #5fd07a;
  --purple: #b388ff;
  --ink: #4a3b6b;
  --card: #fffdf7;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Comic Sans MS", "Baloo", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #8fd9ff 0%, #bfe9ff 30%, #ffe6f3 70%, #fff6d6 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 漂浮天空装饰 */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sun { position: absolute; top: 26px; right: 26px; width: 86px; height: 86px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff6c8, #ffd23d 70%); box-shadow: 0 0 40px #ffe27a; animation: spin 26s linear infinite; }
.sun::before, .sun::after { content: ""; position: absolute; background: #ffe27a; border-radius: 6px; }
.sun::before { width: 120px; height: 12px; left: -22px; top: 37px; }
.sun::after { width: 12px; height: 120px; left: 37px; top: -22px; }
.cloud { position: absolute; background: #fff; border-radius: 50px; opacity: .9; filter: drop-shadow(0 6px 8px rgba(120,160,200,.18)); }
.cloud.c1 { width: 110px; height: 34px; top: 18%; left: -20%; animation: drift 26s linear infinite; }
.cloud.c2 { width: 80px; height: 26px; top: 38%; left: -20%; animation: drift 34s linear infinite 4s; opacity: .8; }
.cloud.c3 { width: 140px; height: 40px; top: 64%; left: -20%; animation: drift 30s linear infinite 8s; opacity: .75; }
.star { position: absolute; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); animation: twinkle 2.4s ease-in-out infinite; }
.star.s1 { top: 12%; left: 16%; } .star.s2 { top: 24%; left: 74%; animation-delay: .6s; }
.star.s3 { top: 46%; left: 30%; animation-delay: 1.2s; } .star.s4 { top: 70%; left: 60%; animation-delay: .3s; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; z-index: 1; }
.screen { display: none; padding: 18px 16px 36px; min-height: 100vh; }
.screen.active { display: block; animation: fade .3s ease; }

/* 主页 */
.logo { font-size: 34px; font-weight: 900; text-align: center; margin-top: 26px;
  color: #fff; text-shadow: 0 3px 0 #ff8fb3, 0 6px 10px rgba(0,0,0,.15); letter-spacing: 1px; }
.sub { text-align: center; color: #6b5b86; margin: 6px 0 22px; font-size: 15px; font-weight: 700; }
.progress-wrap { background: var(--card); border: 4px solid #fff; border-radius: 22px; padding: 14px 18px; box-shadow: 0 10px 22px rgba(80,90,140,.18); }
.progress-label { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.progress-bar { height: 16px; background: #eee6f5; border-radius: 12px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--blue)); transition: width .5s ease; border-radius: 12px; }
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.wide-btn { display: block; width: 100%; margin-top: 14px; border: none; border-radius: 22px; padding: 16px; font-size: 17px; font-weight: 900; cursor: pointer; color: #fff; background: linear-gradient(180deg, #c7a6ff, #9b6bff); box-shadow: 0 7px 0 #7a45e0, 0 12px 16px rgba(0,0,0,.14); }
.wide-btn:active { transform: translateY(4px); box-shadow: 0 3px 0 #7a45e0; }
.wide-btn.danger { background: linear-gradient(180deg, #ff9aa6, #ff5e72); box-shadow: 0 7px 0 #d83a52, 0 12px 16px rgba(0,0,0,.14); margin-top: 18px; }
.wide-btn.danger:active { box-shadow: 0 3px 0 #d83a52; }
.menu-btn {
  flex: 1; border: none; border-radius: 26px; padding: 26px 8px 22px; font-size: 26px;
  color: #fff; font-weight: 900; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-shadow: 0 2px 0 rgba(0,0,0,.12); transition: transform .12s;
  animation: popIn .55s ease;
}
.menu-btn span { font-size: 17px; }
.menu-btn:active { transform: translateY(5px); }
.b1 { background: linear-gradient(180deg, #ff9ec4, #ff5e9c); box-shadow: 0 9px 0 #e23f7e, 0 14px 18px rgba(0,0,0,.18); animation-delay: .06s; }
.b2 { background: linear-gradient(180deg, #7fd6ff, #2fb4ff); box-shadow: 0 9px 0 #1f93dc, 0 14px 18px rgba(0,0,0,.18); animation-delay: .16s; }
.b3 { background: linear-gradient(180deg, #ffe08a, #ffba2e); box-shadow: 0 9px 0 #e09a00, 0 14px 18px rgba(0,0,0,.18); color: #7a4b00; animation-delay: .26s; }
.star-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 26px; }
.star-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; border-radius: 16px; background: #fff; color: #cdbedf; box-shadow: 0 4px 0 #d9cde8; border: 3px solid #ece3f7; cursor: pointer; }
.star-cell:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9cde8; }
.star-cell.lit { background: linear-gradient(180deg, #fff3c4, #ffd23d); color: #7a4b00; border-color: #ffba2e; box-shadow: 0 4px 0 #e09a00, 0 0 16px #ffd86b; animation: pop .4s; }

/* 顶栏 */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.back { border: none; background: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; cursor: pointer; box-shadow: 0 6px 12px rgba(80,90,140,.2); color: var(--ink); }
.top-title { font-size: 22px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #ff8fb3; }
.top-progress { font-size: 14px; font-weight: 800; color: #6b5b86; background: #fff; padding: 6px 12px; border-radius: 14px; }

/* 认字卡 */
.card {
  background: var(--card); border: 6px solid #fff; border-radius: 32px; padding: 22px 20px 26px;
  text-align: center; box-shadow: 0 14px 30px rgba(80,90,140,.22); margin-top: 6px; position: relative;
}
.card-char {
  font-size: 150px; font-weight: 900; line-height: 1; margin: 4px 0;
  background: linear-gradient(180deg, #ff8fb3, #ffc83d); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-stroke: 4px #fff; text-shadow: 0 8px 0 rgba(120,80,160,.18);
  transition: opacity .25s, transform .25s;
}
.card-art { width: 200px; height: 200px; margin: 0 auto; display: none; animation: bob 2.4s ease-in-out infinite; }
/* AI 绘本插画（PNG 透明底）：填满父容器 + 圆形裁剪以遮挡水印并贴合星球/卡片 */
.illu { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.spell-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.spell-chip { border: none; background: #f0e6ff; color: var(--purple); border-radius: 18px; padding: 10px 14px; font-size: 26px; font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 #d9c2f5; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; }
.spell-chip small { font-size: 12px; color: #9b7fd0; font-weight: 800; }
.spell-chip:active { transform: translateY(3px); box-shadow: 0 2px 0 #d9c2f5; }
.spell-chip.whole { background: linear-gradient(180deg, #ffe08a, #ffba2e); color: #7a4b00; box-shadow: 0 5px 0 #e09a00; }
.spell-chip.whole small { color: #a06a00; }
.spell-chip.active { background: linear-gradient(180deg, #b6f0c5, #5fd17e); color: #0a5c2a; box-shadow: 0 0 0 4px #ffe08a, 0 5px 0 #2e9e57; transform: translateY(-2px) scale(1.12); transition: transform .15s ease, box-shadow .15s ease; }
.spell-chip.active small { color: #0a5c2a; }
.plus { font-size: 22px; font-weight: 900; color: var(--ink); }
.card-art.show { display: block; }
.card.morphed .card-char { display: none; }
.card-pinyin { font-size: 28px; color: var(--blue); font-weight: 800; margin: 4px 0 10px; }
.speak-btn { border: none; background: linear-gradient(180deg, #ffe08a, #ffba2e); color: #7a4b00; font-size: 20px; font-weight: 900; padding: 13px 26px; border-radius: 30px; cursor: pointer; box-shadow: 0 6px 0 #e09a00, 0 10px 14px rgba(0,0,0,.15); }
.speak-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #e09a00; }
.speak-row { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 4px; }
.morph-btn { margin-left: 8px; border: none; background: linear-gradient(180deg, #c7a6ff, #9b6bff); color: #fff; font-size: 16px; font-weight: 800; padding: 13px 18px; border-radius: 30px; cursor: pointer; box-shadow: 0 6px 0 #7a45e0; }
.morph-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #7a45e0; }
.card-memory { margin-top: 16px; font-size: 18px; color: #6b5b86; font-weight: 700; }
.card-words { margin-top: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.card-words span { background: #f0e6ff; color: var(--purple); padding: 7px 16px; border-radius: 16px; font-size: 17px; font-weight: 800; }

.learn-actions { display: flex; gap: 10px; margin-top: 20px; }
.round-btn { flex: 1; border: none; background: #fff; color: var(--ink); font-size: 16px; font-weight: 800; padding: 15px 8px; border-radius: 20px; cursor: pointer; box-shadow: 0 6px 0 #d9cde8, 0 10px 14px rgba(0,0,0,.1); }
.round-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #d9cde8; }
.round-btn.primary { background: linear-gradient(180deg, #8ee6a0, #46c95f); color: #1f5e30; box-shadow: 0 6px 0 #2fa648, 0 10px 14px rgba(0,0,0,.12); }
.round-btn.done { background: linear-gradient(180deg, #8ee6a0, #46c95f); color: #1f5e30; }

/* 写字 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; max-height: 96px; overflow-y: auto; }
.chip { border: none; background: #fff; width: 40px; height: 40px; border-radius: 12px; font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #d9cde8; color: var(--ink); }
.chip.active { background: linear-gradient(180deg, #7fd6ff, #2fb4ff); color: #fff; box-shadow: 0 4px 0 #1f93dc; }
.chip.learned { border: 3px solid var(--green); }
.canvas-wrap { position: relative; background: var(--card); border: 6px solid #fff; border-radius: 26px; padding: 12px; box-shadow: 0 12px 26px rgba(80,90,140,.22); }
#write-canvas { width: 100%; height: 340px; display: block; touch-action: none; border-radius: 16px; background: #fbfdff; }
.write-success { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; color: var(--green); background: rgba(255,255,255,.88); border-radius: 26px; }
.write-strokes { text-align: center; margin-top: 14px; font-size: 18px; color: var(--purple); font-weight: 800; }

/* 游戏 */
.play-modes { display: flex; gap: 8px; margin-bottom: 16px; }
.mode-btn { flex: 1; border: none; background: #fff; padding: 11px 4px; border-radius: 16px; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #d9cde8; color: var(--ink); }
.mode-btn.active { background: linear-gradient(180deg, #c7a6ff, #9b6bff); color: #fff; box-shadow: 0 4px 0 #7a45e0; }
.play-prompt { text-align: center; font-size: 19px; margin: 12px 0; font-weight: 800; color: #fff; text-shadow: 0 2px 0 #ff8fb3; }
.play-emoji { width: 232px; height: 232px; margin: 10px auto 18px; border-radius: 30px; background: radial-gradient(circle at 38% 32%, #ffffff, #fff3fb 68%, #ffe6f4); box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(255,120,180,.3); display: flex; align-items: center; justify-content: center; overflow: hidden; animation: bob 2.6s ease-in-out infinite; }
.play-emoji svg { width: 200px; height: 200px; }
.play-emoji .illu { width: 90%; height: 90%; object-fit: contain; border-radius: 18px; }
.play-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.opt-btn { border: none; background: #fff; font-size: 50px; font-weight: 900; padding: 22px 0; border-radius: 22px; cursor: pointer; box-shadow: 0 7px 0 #d9cde8, 0 12px 16px rgba(0,0,0,.1); color: var(--ink); }
.opt-btn:active { transform: translateY(4px); box-shadow: 0 3px 0 #d9cde8; }
.opt-btn.correct { background: linear-gradient(180deg, #8ee6a0, #46c95f); color: #fff; box-shadow: 0 7px 0 #2fa648; animation: pop .3s; }
.opt-btn.wrong { background: #ff6b6b; color: #fff; animation: shake .4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(140vw); } }
@keyframes twinkle { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: translateY(34px) scale(.82); opacity: 0; } 70% { transform: translateY(-6px) scale(1.04); } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes blink { 0%,93%,100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.screen.active .card,
.screen.active .canvas-wrap,
.screen.active .star-wall,
.screen.active .play-options,
.screen.active .chips { animation: popIn .45s ease both; }

/* 看我写按钮 */
.demo-btn { display: block; margin: 14px auto 0; border: none; background: linear-gradient(180deg, #ffd98a, #ffba2e); color: #7a4b00; font-size: 17px; font-weight: 800; padding: 11px 28px; border-radius: 26px; cursor: pointer; box-shadow: 0 6px 0 #e09a00; }

/* 家长统计页 */
.stat-card { background: var(--card); border: 6px solid #fff; border-radius: 26px; padding: 18px 16px; box-shadow: 0 12px 26px rgba(80,90,140,.2); margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-box { background: linear-gradient(180deg, #f3ecff, #e7dcff); border-radius: 18px; padding: 14px 6px; text-align: center; }
.stat-num { font-size: 24px; font-weight: 900; color: var(--purple); }
.stat-lab { font-size: 13px; font-weight: 800; color: #8a73b8; margin-top: 4px; }
.lv-title { font-size: 18px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #ff8fb3; margin: 20px 0 10px; }
.lv-list { display: flex; flex-direction: column; gap: 8px; }
.lv-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 3px solid #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 5px 0 #e7dcf2; }
.lv-name { flex: 0 0 76px; font-size: 16px; font-weight: 900; color: var(--ink); }
.lv-prog { flex: 0 0 42px; font-size: 14px; font-weight: 800; color: var(--purple); text-align: right; }
.lv-bar { flex: 1; height: 12px; background: #eee6f5; border-radius: 10px; overflow: hidden; }
.lv-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); transition: width .5s ease; }

/* 多星球地图节点 */
@keyframes planetPulse { 0%,100% { box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(255,150,200,.4); } 50% { box-shadow: 0 0 0 3px #fff, 0 0 20px rgba(255,150,200,.85); } }
.map-node.locked .map-icon { background: #d9d2e6; box-shadow: 0 0 0 3px #fff; animation: none; filter: grayscale(1); }
.map-node.done .map-icon { background: radial-gradient(circle at 38% 32%, #fff6c8, #ffd23d 75%); box-shadow: 0 0 0 3px #fff, 0 0 16px #ffd86b; }

/* 星星碎片 */
.conf-star { font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.demo-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #e09a00; }

/* 撒花庆祝 */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.conf { position: absolute; top: -20px; width: 11px; height: 15px; border-radius: 2px; opacity: 1; animation: fall 1.3s ease-in forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(540deg); opacity: 0; } }

/* 吉祥物 & 气泡 */
#mascot { position: fixed; left: 10px; bottom: 10px; width: 96px; height: 104px; z-index: 40; pointer-events: none; animation: bobm 2.6s ease-in-out infinite; }
#mascot.dance { animation: dance .35s ease-in-out 0s 4; }
@keyframes dance { 0%,100% { transform: translateY(0) rotate(-5deg); } 25% { transform: translateY(-14px) rotate(7deg); } 50% { transform: translateY(0) rotate(-8deg); } 75% { transform: translateY(-14px) rotate(5deg); } }
.eye { animation: blink 4.2s infinite; transform-box: fill-box; transform-origin: center; }
#mascot svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(80,60,120,.25)); }
@keyframes bobm { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
#bubble { position: absolute; left: 84px; bottom: 60px; background: #fff; color: #6b4fb0; font-weight: 800; font-size: 14px; padding: 8px 12px; border-radius: 14px; box-shadow: 0 6px 14px rgba(80,60,120,.25); white-space: nowrap; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
#bubble.show { opacity: 1; transform: scale(1); }
#bubble::after { content: ""; position: absolute; left: -8px; top: 50%; transform: translateY(-50%); border: 8px solid transparent; border-right-color: #fff; }

/* 闯关地图（小火车路线） */
.map { position: relative; margin-top: 22px; display: flex; flex-direction: column; gap: 16px; padding: 8px 4px 14px; }
.map::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 8px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, #ffd6e7 0 12px, #ffb0d0 12px 24px); border-radius: 6px; box-shadow: 0 0 0 3px #fff; z-index: 0; }
.map-node { position: relative; z-index: 1; align-self: flex-start; width: 74%; display: flex; align-items: center; gap: 12px; background: var(--card); border: 4px solid #fff; border-radius: 24px; padding: 12px 14px; box-shadow: 0 8px 18px rgba(80,90,140,.18); cursor: pointer; transition: transform .12s; animation: popIn .45s ease both; }
.map-node:active { transform: translateY(3px); }
.map-node.right { align-self: flex-end; }
.map-node.locked { filter: grayscale(.75) opacity(.65); cursor: default; }
.map-node.done { border-color: #ffd23d; box-shadow: 0 8px 18px rgba(80,90,140,.18), 0 0 18px #ffd86b; }
.map-icon { position: relative; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff, #ffe1ef 70%, #ffc6df); box-shadow: 0 0 0 3px #fff, 0 0 14px rgba(255,150,200,.5); overflow: hidden; display: flex; align-items: center; justify-content: center; animation: planetPulse 2.8s ease-in-out infinite; }
.map-icon svg { width: 100%; height: 100%; }
.map-icon > span { font-size: 32px; font-weight: 900; color: var(--ink); }
.map-done, .map-lock { position: absolute; right: -8px; top: -10px; font-size: 18px; }
.map-info { flex: 1; }
.map-name { font-size: 19px; font-weight: 900; color: var(--ink); }
.map-prog { font-size: 14px; font-weight: 800; color: var(--purple); margin-top: 2px; }
.map-node.current::after { content: "🚂"; position: absolute; top: -26px; right: -10px; font-size: 32px; animation: trainBob 1.1s ease-in-out infinite; }
.map-node.right.current::after { right: auto; left: -10px; }
@keyframes trainBob { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-7px) rotate(5deg); } }

/* 关卡字卡弹窗 */
.modal { position: fixed; inset: 0; background: rgba(45,32,75,.5); display: none; align-items: center; justify-content: center; z-index: 60; padding: 18px; }
.modal.show { display: flex; animation: fade .25s; }
.modal-card { background: var(--card); border: 6px solid #fff; border-radius: 28px; width: 100%; max-width: 420px; padding: 18px 18px 20px; box-shadow: 0 20px 44px rgba(0,0,0,.32); animation: popIn .35s ease both; }
.modal-title { display: flex; align-items: center; justify-content: space-between; font-size: 22px; font-weight: 900; color: var(--ink); margin-bottom: 14px; }
.modal-close { border: none; background: #ffe3ee; color: var(--pink); width: 40px; height: 40px; border-radius: 50%; font-size: 20px; font-weight: 900; cursor: pointer; }
.modal-close:active { transform: scale(.92); }
.modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.modal-cell { border: none; background: #fff; border-radius: 20px; padding: 14px 0; cursor: pointer; box-shadow: 0 6px 0 #d9cde8; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .12s; }
.modal-cell:active { transform: translateY(4px); box-shadow: 0 2px 0 #d9cde8; }
.modal-cell.done { background: linear-gradient(180deg, #fff3c4, #ffd23d); box-shadow: 0 6px 0 #e09a00; }
.modal-char { font-size: 48px; font-weight: 900; color: var(--ink); line-height: 1; }
.modal-sub { font-size: 14px; font-weight: 800; color: var(--purple); }

/* —— 新增（2026-08-08c）：新字 emoji 兜底 + 错题本 —— */
.card-art .emoji-art, .pin-art .emoji-art { font-size: 96px; line-height: 200px; text-align: center; height: 200px; }
#st-wrong { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 8px; }
.wrong-chip { width: auto !important; min-width: 48px; background: #fff0f0; color: #c0392b; border: 2px solid #ffb3b3; box-shadow: none; }

/* ---------- 今日学习（单字闭环） ---------- */
.daily-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; margin-top: 18px; border: 4px solid #fff; border-radius: 26px; padding: 18px 16px; font-size: 22px; font-weight: 900; cursor: pointer; color: #7a4b00; background: linear-gradient(180deg, #ffe9a8, #ffd23d); box-shadow: 0 9px 0 #e09a00, 0 14px 20px rgba(0,0,0,.16); animation: popIn .45s ease both; }
.daily-btn:active { transform: translateY(5px); box-shadow: 0 4px 0 #e09a00; }
.daily-btn-sub { font-size: 13px; font-weight: 800; color: #a06a00; }
.daily-step { animation: fade .25s ease; }
#daily-done-emoji { font-size: 90px; line-height: 1.2; }
#daily-done-txt { font-size: 24px; margin-top: 6px; }
#daily-done .learn-actions { margin-top: 26px; }

/* ---------- 读一读（已学字句子阅读） ---------- */
.read-card { background: var(--card); border: 6px solid #fff; border-radius: 26px; padding: 30px 22px; box-shadow: 0 12px 26px rgba(80,90,140,.22); margin-top: 6px; text-align: center; line-height: 1.9; min-height: 190px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.read-char { display: inline-block; font-size: 44px; font-weight: 900; color: var(--ink); padding: 2px 6px; border-radius: 12px; cursor: pointer; transition: transform .12s, background .12s; }
.read-char:active { transform: scale(1.15); background: #ffe9f4; }
.read-char.learned { color: #2fa648; background: #e8f8ec; }
.read-char.target { color: #fff; background: linear-gradient(180deg, #ff9ec4, #ff5e9c); box-shadow: 0 4px 0 #e23f7e; animation: bob 2.2s ease-in-out infinite; }
.read-punct { display: inline-block; font-size: 40px; font-weight: 900; color: #b9a8d0; }
.read-tip { text-align: center; font-size: 14px; font-weight: 700; color: #8a73b8; margin-top: 14px; }

/* ---------- 找一找（视觉辨认） ---------- */
.find-target { width: 120px; height: 120px; margin: 4px auto 10px; display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #7fd6ff, #2fb4ff); border-radius: 26px; box-shadow: 0 7px 0 #1f93dc, 0 12px 18px rgba(0,0,0,.15); transition: background .3s; }
.find-target.done { background: linear-gradient(180deg, #8ee6a0, #46c95f); box-shadow: 0 7px 0 #2fa648; }
.find-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.grid-btn { border: none; background: #fff; font-size: 46px; font-weight: 900; padding: 18px 0; border-radius: 20px; cursor: pointer; box-shadow: 0 7px 0 #d9cde8, 0 12px 16px rgba(0,0,0,.1); color: var(--ink); }
.grid-btn:active { transform: translateY(4px); box-shadow: 0 3px 0 #d9cde8; }
.grid-btn.found { background: linear-gradient(180deg, #8ee6a0, #46c95f); color: #fff; box-shadow: 0 7px 0 #2fa648; animation: pop .3s; }
.grid-btn.wrong { background: #ff6b6b; color: #fff; animation: shake .4s; }

/* ---------- 护眼提醒 ---------- */
.eye-rest { position: fixed; inset: 0; z-index: 99990; display: none; align-items: center; justify-content: center; background: rgba(40,50,80,.55); backdrop-filter: blur(4px); }
.eye-rest-card { background: #fff; border-radius: 28px; padding: 34px 26px; text-align: center; max-width: 330px; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: popIn .35s ease both; }
.eye-rest-title { font-size: 30px; font-weight: 900; color: var(--ink); }
.eye-rest-tip { font-size: 17px; color: #6b5b86; font-weight: 700; margin: 14px 0 22px; line-height: 1.7; }
