/* ============================================================
   智趣星球 - 幼小衔接学习APP 视觉样式
   明亮马卡龙 + 毛玻璃质感 + 大圆角 + 游戏化
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ===== 设计令牌 (Design Tokens) ===== */
/* v305 方向A混血版: 暮光星云骨架(深空保IP) + 软陶工艺(学习页糖果感) */
:root {
  /* 主色 / 辅色 */
  --primary: #FF9E57;        /* 暮光暖橙(降饱和护眼, 原#FF8A65偏红) */
  --primary-alt: #FFC85C;    /* 光能金 */
  --secondary: #7BD88F;      /* 清爽薄荷 */
  /* 语义色 */
  --gold: #FFC85C;           /* 奖励金: 只许奖励/星星/⚡能量用 */
  --ok: #7BD88F;             /* 答对/完成态 */
  --err: #FF7A7A;            /* 答错(柔红不刺眼, 配轻晃不红闪) */
  --voice: #6EB5FF;          /* 语音/朗读类按钮 */
  --lock: #5A5F8F;           /* 锁定灰紫(配雾感, 不再纯黑剪影) */
  /* 深空暮光(导航/地图/战斗/抽卡专用) */
  --deep-1: #232850; --deep-2: #2E3364; --deep-3: #3A3070;
  --ink-deep: #F5F3FF;       /* 深底主文字(对比度≥7:1) */
  --ink-deep-2: #C9C4E8;     /* 深底次文字(≥4.5:1) */
  --glow-gold: 0 0 16px rgba(255,200,92,.25);   /* 发光只给奖励/当前关 */
  /* 家长区(冷静蓝灰, 零渐变零动画, 与儿童区一眼区分) */
  --parent-bg: #F7F8FA; --parent-ink: #4A5578; --parent-sub: #8A92A6;
  /* 背景 / 卡片 */
  --bg: #FFF7EA;             /* 暖白柔光 */
  --bg-grad: linear-gradient(180deg, #FFF7EA 0%, #FFF1E2 45%, #FFEAF0 100%);
  --card-bg: rgba(255,255,255,.72);
  --card-border: rgba(255,255,255,.9);
  /* 玻璃透明度三档(全App只许这三档) */
  --glass-light: rgba(255,255,255,.72);   /* 浅底卡 */
  --glass-dark: rgba(255,255,255,.1);     /* 深底卡 */
  --glass-nav: rgba(28,32,66,.85);        /* 深空导航条 */
  /* 字体色 */
  --ink: #2E2A4A;            /* 深紫灰 主标题 */
  --ink-mid: #4A5055;        /* 中灰 副标题 */
  --ink-soft: #6B6580;       /* 辅助(暖白底对比≥4.5:1) */
  /* 12 星球专属色(沿用骨架, 后续步统一亮度到L65±5) */
  --c-hanzi: #FF6B6B;  --c-math: #4A90E2;    --c-poem: #9B59B6;   --c-idiom: #2ECC71;
  --c-story: #F39C12;  --c-pinyin: #FD79A8;  --c-english: #2E86DE; --c-logic: #FDCB6E;
  --c-riddle: #A29BFE; --c-brain: #00CEC9;   --c-coding: #6C5CE7; --c-safety: #E17055;
  /* 阴影 (统一蓝紫灰柔和投影, 原rgba(120,90,50)偏黄) */
  --shadow-sm: 0 4px 14px rgba(30,27,75,.08);
  --shadow-md: 0 8px 25px rgba(30,27,75,.10);
  --shadow-lg: 0 18px 44px rgba(30,27,75,.14);
  /* 字号阶梯(儿童正文≥16px, 12px为下限禁10px) */
  --fs-display: 48px; --fs-title: 28px; --fs-title-sm: 22px;
  --fs-body: 18px; --fs-body-sm: 16px; --fs-cap: 14px; --fs-min: 12px;
  /* 间距 4pt 栅格六档 */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  /* 圆角四档 */
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
}
html, body { height: 100%; overflow: hidden; }
html { background: var(--bg); }
body {
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Nunito", "Quicksand", sans-serif;
  background: var(--bg-grad);
  color: var(--ink);
  user-select: none; -webkit-user-select: none;
}
/* v305 标题全局接管: 站酷快乐体(本地已有) → 圆体兜底, 正文保持系统字体护阅读 */
.boot-title, .map-title, .map-galaxy-title, .learn-title, .me-sub, .wish-log-title {
  font-family: 'ZKuaile', 'Yuanti SC', 'YouYuan', '幼圆', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---------- 星空背景 ---------- */
#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.star { position: absolute; border-radius: 50%; background: #FFC857; animation: twinkle 3s infinite ease-in-out; }
@keyframes twinkle { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
.nebula {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 32% at 18% 28%, rgba(255,200,150,.55), transparent),
    radial-gradient(ellipse 36% 30% at 82% 68%, rgba(170,210,255,.5), transparent),
    radial-gradient(ellipse 32% 26% at 55% 10%, rgba(255,224,130,.5), transparent),
    radial-gradient(ellipse 30% 26% at 88% 22%, rgba(255,180,210,.45), transparent);
}

/* ---------- 屏幕 ---------- */
.screen {
  position: fixed; inset: 0; z-index: 1;
  display: none; flex-direction: column; align-items: center; justify-content: safe center;
  padding: 76px 16px 24px; overflow-y: auto;
}
.screen.active { display: flex; }   /* v203 去掉fadeIn: 换屏时整个屏幕从透明淡入=主人说的"闪一下", 深空屏下还会透出html浅色底 */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }
#screen-boot { padding-top: 0; }
.hidden { display: none !important; }

/* ---------- 开机 ---------- */
.hero-canvas { filter: drop-shadow(0 8px 20px rgba(255,138,101,.35)); border-radius: 20px; }
.boot-title {
  font-size: 46px; letter-spacing: 6px; margin-top: 12px; font-weight: 900;
  background: linear-gradient(180deg, #FF8A65 0%, #F57C00 55%, #EF6C00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.boot-sub { margin: 10px 0 34px; font-size: 12px; letter-spacing: 4px; color: #8A7A60; font-weight: 700; }
.boot-tip { margin-top: 20px; font-size: 14px; color: #6B5D4A; font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn-primary {
  border: none; border-radius: 999px; cursor: pointer;
  padding: 14px 36px; font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #FFC857, #FF8A65);
  box-shadow: 0 6px 18px rgba(255,138,101,.42), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .15s;
}
.btn-primary:active { transform: scale(.94); }
.btn-big { font-size: 22px; padding: 18px 52px; }
.btn-ten { background: linear-gradient(135deg, #ff8a80, #ff5252); color: #fff;
  box-shadow: 0 4px 20px rgba(255,82,82,.45), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-icon {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); font-size: 22px; cursor: pointer; backdrop-filter: blur(8px);
}
.btn-icon:active { transform: scale(.92); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #636E72;
  border-radius: 999px; padding: 12px 26px; font-size: 16px; cursor: pointer;
}
.btn-speak {
  margin-top: 16px; border: none; border-radius: 999px; cursor: pointer;
  padding: 10px 26px; font-size: 17px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4fc3f7, #039be5);
  box-shadow: 0 4px 14px rgba(3,155,229,.42);
}
.btn-speak:active { transform: scale(.94); }
.speak-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.speak-row .btn-speak { margin-top: 0; }
.speak-row .btn-read { margin-left: 0; }
.right-col { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 12px; }
.right-col .speak-row { margin-top: 14px; }
.right-col .learn-extra { margin-top: 0; }

/* ---------- 顶栏 ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.6);
}
.energy-pill { flex: 1; text-align: center; font-size: 20px; font-weight: 800; color: #F39C12; letter-spacing: 1px; }
.energy-pill.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.25); } }

/* ---------- 地图 ---------- */
.hero-banner {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; padding: 12px 22px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 28px; backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.9);
}
#map-hero { width: 110px; height: 125px; }
.hero-bubble {
  font-size: 15px; line-height: 1.6; color: #2D3436;
  background: rgba(66,165,245,.15); border: 1px solid rgba(66,165,245,.35);
  border-radius: 16px; padding: 12px 16px;
}
.map-title { font-size: 22px; margin-bottom: 18px; color: #636E72; letter-spacing: 2px; }
.planet-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);   /* v169 十星球: 5列两排 */
  gap: 14px; width: 100%; max-width: 900px;
}
/* v169 组标题(学科训练营/文化兴趣园) */
.planet-group-label {
  grid-column: 1 / -1; text-align: left; font-size: 16px; font-weight: 800;
  color: #8d6e63; letter-spacing: 3px; padding: 4px 4px 0;
}
@media (max-width: 560px) {
  .planet-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .planet-group-label { font-size: 14px; }
}
.planet {
  border-radius: 24px; padding: 14px 8px; text-align: center; cursor: pointer;
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.72) padding-box,
    linear-gradient(150deg, rgba(255,200,150,.55), rgba(170,210,255,.55)) border-box;
  border: 1.5px solid transparent;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: float 4s infinite ease-in-out;
}
.planet:nth-child(odd) { animation-delay: -2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.planet:active { transform: scale(.95); border-color: rgba(255,213,79,.5); box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.planet-emoji {
  font-size: 40px; width: 58px; height: 58px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  box-shadow: 0 4px 12px rgba(120,90,50,.18);
}
.planet-name { font-size: 14px; font-weight: 800; letter-spacing: 0; color: var(--ink); }
.planet-sub { font-size: 10px; color: var(--ink-mid); margin-top: 3px; }
.planet-stars { font-size: 10px; margin-top: 3px; color: #F39C12; }
/* 学习进度环(右上角, conic-gradient 圆环) */
.planet-ring {
  position: absolute; top: 6px; right: 6px;
  width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(0,0,0,.08) 0);
  display: flex; align-items: center; justify-content: center;
}
.planet-ring span {
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  font-size: 9px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.map-progress { margin-top: 18px; font-size: 14px; color: #636E72; }

/* ---------- 关卡路径 ---------- */
.level-path {
  display: flex; flex-direction: column; gap: 0; align-items: center;
  width: 100%; max-width: 420px;
}
.level-node {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 14px 18px; border-radius: 22px; cursor: pointer;
  background: rgba(255,255,255,.7); border: 2px solid rgba(255,255,255,.2);
  transition: transform .15s; position: relative;
}
.level-node:active { transform: scale(.97); }
.level-node + .level-node { margin-top: 26px; }
.level-node + .level-node::before {
  content: ''; position: absolute; top: -28px; left: 44px;
  width: 4px; height: 26px; border-radius: 2px;
  background: rgba(255,255,255,.72);
}
.level-node.done + .level-node::before { background: #4caf50; }
.level-node.cur { border-color: #ffb300; box-shadow: 0 0 20px rgba(255,179,0,.35); animation: curPulse 1.6s infinite; }
@keyframes curPulse { 50% { box-shadow: 0 0 34px rgba(255,179,0,.6); } }
.level-node.lock { opacity: .45; cursor: not-allowed; }
.level-badge {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
  background: linear-gradient(135deg, #5c6bc0, #283593);
  border: 2px solid rgba(255,255,255,.25);
}
.level-node.done .level-badge { background: linear-gradient(135deg, #66bb6a, #2e7d32); }
.level-node.cur .level-badge { background: linear-gradient(135deg, #ffd54f, #ff8f00); color: #1a1a2e; }
.level-info { flex: 1; text-align: left; }
.level-name { font-size: 18px; font-weight: 800; }
.level-game { font-size: 12px; color: #636E72; margin-top: 2px; }
.level-stars { font-size: 16px; letter-spacing: 2px; }

/* ---------- 学习环节 ---------- */
.learn-head {
  width: 100%; max-width: 560px; display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; color: #636E72; margin-bottom: 8px; font-weight: 700;
}
.learn-badge { background: rgba(102,187,106,.2); border: 1px solid rgba(102,187,106,.5); color: #2E7D32;
  padding: 2px 10px; border-radius: 999px; font-size: 11px; }
.learn-card {
  width: 100%; max-width: 560px; min-height: 360px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.6); border-radius: 32px;
  padding: 18px 20px; text-align: center; backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
/* 学科主题插画(参考图风格) */
.learn-illu { width: 100%; max-width: 300px; margin-bottom: 12px; }
.learn-illu img { width: 100%; max-height: 340px; object-fit: contain; border-radius: 18px; box-shadow: 0 8px 26px rgba(0,0,0,.35); }
/* v59 安全绘本大图模式: 16:9带字绘本页放大展示 */
.learn-illu.book { max-width: 720px; }
.learn-illu.book img { max-height: 62vh; }
/* 水墨国风(诗词/成语/典故) */
.learn-card.guofeng {
  background: linear-gradient(165deg, #FFFDF7, #FBF3E4);
  border: 2px solid #d4ad3a;
}
.learn-card.guofeng .learn-title {
  font-family: "Kaiti SC", "KaiTi", "STKaiti", serif; color: #7A5C12; font-size: 24px;
}
.learn-card.guofeng .learn-text {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 25px; color: #3E3428; font-weight: 600;
}

/* ===== v91 诗境小剧场 ===== */
.learn-card.poem {
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 12px 40px rgba(120,90,50,.16), inset 0 1px 0 rgba(255,255,255,.65);
  justify-content: flex-start;
}
.learn-big.poet {
  width: 108px; height: 108px; margin: 0 auto 4px;
  border-radius: 50%; background: rgba(255,255,255,.8);
  box-shadow: 0 4px 16px rgba(120,90,50,.22), inset 0 0 0 3px rgba(255,200,150,.4);
  overflow: hidden; display: flex; align-items: center; justify-content: center; filter: none;
}
.learn-big.poet canvas { width: 100%; height: 100%; display: block; }
/* v130 旧版 .poem-split/.poem-poet/.yi-label/.poem-t 死样式已清除(与v116新版 .poem-left/.poem-right 同名冲突, 会吃掉右栏28px宽度) */
.poem-steps { width: 100%; margin-top: 10px; }
.poem-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.poem-tab {
  flex: 1; min-height: 42px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #6B5D4A; background: rgba(255,255,255,.6);
  transition: all .2s;
}
.poem-tab.on {
  background: linear-gradient(135deg, #FFC857, #FF8A65); color: #fff;
  box-shadow: 0 4px 14px rgba(255,138,101,.4);
}
.poem-panel { width: 100%; }
.poem-full { text-align: left; padding: 0 6px; }
/* v130 阶梯卡诗句改楷体大字 + 彩虹序号泡, 一句一行更像"读诗" */
.poem-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 700; color: #3E3428; line-height: 1.6;
  font-family: var(--f-poem, "Yuanti SC", "YouYuan", "幼圆", "PingFang SC", "Microsoft YaHei", sans-serif); padding: 5px 6px;
}
.poem-line .dot {
  flex: none; width: 24px; height: 24px; line-height: 24px; text-align: center;
  border-radius: 50%; font-size: 12.5px; font-weight: 900;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.poem-panel .poem-line:nth-of-type(4n+1) .dot { background: #FFE1E1; color: #E05252; }
.poem-panel .poem-line:nth-of-type(4n+2) .dot { background: #FFF1CE; color: #D9930D; }
.poem-panel .poem-line:nth-of-type(4n+3) .dot { background: #DFF3E1; color: #43A047; }
.poem-panel .poem-line:nth-of-type(4n+4) .dot { background: #DFEEFC; color: #3B82C4; }
.poem-line.read { cursor: pointer; border-radius: 12px; padding: 5px 10px; transition: all .15s; }
.poem-line.read:active { background: rgba(255,255,255,.55); }
.poem-line.read.zoom { background: #FFF3E0; transform: scale(1.05); color: #D84315; }
.poem-hint { font-size: 13px; color: #8A7A60; margin-top: 10px; text-align: center; }
.poem-taste {
  background: rgba(255,255,255,.82); border: 2px solid #FFC857; border-radius: 20px;
  padding: 16px 18px; text-align: left; box-shadow: 0 6px 16px rgba(240,180,41,.12);
}
.poem-taste .star { font-size: 16px; font-weight: 900; color: #F39C12; margin-bottom: 8px; }
.poem-taste p { font-size: 18px; line-height: 1.9; color: #3E3428; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; }
.learn-card { position: relative; }
/* 绘本场景 */
.story-scene {
  position: relative; width: 100%; max-width: 420px; height: 230px;
  border-radius: 20px; margin-bottom: 14px; overflow: hidden;
  background: linear-gradient(180deg, #87ceeb 0%, #b8e6c8 70%, #8fce7e 100%);
  box-shadow: inset 0 0 0 3px rgba(201,162,39,.6), 0 8px 24px rgba(0,0,0,.4);
}
.story-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-item { position: absolute; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.learn-big { font-size: 76px; line-height: 1.2; filter: drop-shadow(0 0 20px rgba(255,213,79,.35)); font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif; }   /* v166 大字统一楷体(教材标准) */
.learn-card.en-split .learn-big { font-family: inherit; }   /* 英文字母保持原字体 */
.opt.hzfont { font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif; font-weight: 900; }   /* v166 战斗/听音的汉字选项楷体 */
.learn-title { font-size: 21px; font-weight: 900; margin: 8px 0 6px; color: #F39C12; letter-spacing: 3px; }
.learn-text { font-size: 16px; line-height: 1.8; color: #2D3436; white-space: pre-line; }
/* v9 识字: 造句 + 成语应用 */
.learn-extra { width: 100%; margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.hz-sent { font-size: 18px; line-height: 1.7; color: #4A5055; background: rgba(255,152,0,.12); border: 1px solid rgba(255,152,0,.55); border-radius: 12px; padding: 8px 14px; text-align: left; }
.hz-sent b { color: #F39C12; }
.hz-idiom { font-size: 16px; line-height: 1.7; color: #1B5E20; background: rgba(46,125,50,.1); border: 1px solid rgba(46,125,50,.5); border-radius: 12px; padding: 8px 14px; text-align: left; cursor: pointer; position: relative; }
.hz-idiom b { color: #2E7D32; font-size: 17px; letter-spacing: 2px; }   /* v174 嫩绿#69f0ae在淡黄底上刺眼, 改沉稳竹绿 */
.hz-idiom .hz-use { display: block; color: #636E72; margin-top: 2px; }
.hz-idiom .hz-idiom-play { position: absolute; right: 10px; top: 8px; font-size: 15px; opacity: .8; }
.hz-idiom:active { transform: scale(.98); }
.hz-allusion { font-size: 16px; line-height: 1.7; color: #B26A00; background: rgba(178,106,0,.1); border: 1px solid rgba(178,106,0,.5); border-radius: 12px; padding: 8px 14px; text-align: left; cursor: pointer; position: relative; }
.hz-allusion b { color: #B26A00; font-size: 16px; letter-spacing: 2px; }
.hz-allusion .hz-idiom-play { position: absolute; right: 10px; top: 8px; font-size: 15px; opacity: .8; }
.hz-allusion:active { transform: scale(.98); }
.hz-poem { font-size: 16px; line-height: 1.7; color: #4A3F7A; background: rgba(74,63,122,.1); border: 1px solid rgba(74,63,122,.5); border-radius: 12px; padding: 8px 14px; text-align: left; cursor: pointer; position: relative; }
.hz-poem b { color: #4A3F7A; font-size: 16px; letter-spacing: 2px; }
.hz-poem .hz-idiom-play { position: absolute; right: 10px; top: 8px; font-size: 15px; opacity: .8; }
.hz-poem .hz-poem-lines { display: block; color: #4A3F7A; margin-top: 4px; line-height: 1.9; }
/* v22 反义词条目(粉红色, 区别于成语绿/典故橙/古诗紫) */
.hz-antonym { font-size: 16px; line-height: 1.7; color: #A63A6E; background: rgba(166,58,110,.1); border: 1px solid rgba(166,58,110,.5); border-radius: 12px; padding: 8px 14px; text-align: left; cursor: pointer; position: relative; }
.hz-antonym b { color: #A63A6E; font-size: 16px; letter-spacing: 2px; }
.hz-antonym .hz-idiom-play { position: absolute; right: 10px; top: 8px; font-size: 15px; opacity: .8; }
.hz-antonym:active { transform: scale(.98); }
/* v16 关联学习折叠标签 */
.hz-tab { width: 100%; display: flex; flex-direction: column; }
.hz-tab-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; border: 1px solid rgba(0,0,0,.18); border-radius: 10px; background: rgba(255,255,255,.55); color: #2D3436; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; }
.hz-tab-btn:active { background: rgba(255,255,255,.7); }
.hz-tab-btn .hz-count { min-width: 22px; height: 22px; line-height: 22px; border-radius: 999px; background: rgba(255,213,79,.22); color: #F39C12; font-size: 12px; font-weight: 800; text-align: center; padding: 0 7px; }
.hz-tab-btn.open { background: rgba(255,213,79,.18); border-color: rgba(255,213,79,.5); }
.hz-tab-body { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.hz-poem:active { transform: scale(.98); }
@media (max-width: 600px) {
  .hz-sent { font-size: 16px; }
  .hz-idiom, .hz-allusion, .hz-poem, .hz-antonym { font-size: 14px; }
  .hz-idiom b, .hz-allusion b, .hz-poem b, .hz-antonym b { font-size: 15px; }
}
.learn-dots { display: flex; gap: 8px; margin: 16px 0; }
.learn-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.learn-dots i.on { background: #ffd54f; box-shadow: 0 0 8px #ffd54f; }
.learn-nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.learn-nav .btn-speak { margin-top: 0; }

/* ---------- 选择题 ---------- */
.quiz-head {
  width: 100%; max-width: 640px; display: flex; justify-content: space-between;
  font-size: 16px; color: #636E72; margin-bottom: 14px; font-weight: 700;
}
.quiz-card {
  width: 100%; max-width: 640px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 32px; padding: 32px 24px; backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9);
}
.quiz-q { font-size: 30px; text-align: center; line-height: 1.6; margin-bottom: 26px; font-weight: 700; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.opt {
  padding: 20px 10px; border-radius: 20px; text-align: center;
  font-size: 24px; font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,.72); border: 2px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-sm);
  transition: transform .12s, background .2s, border-color .2s, box-shadow .2s;
}
.opt.loose { letter-spacing: 10px; font-size: 22px; padding-left: 20px; }
.opt:active { transform: scale(.95); }
.opt.right { background: rgba(76,175,80,.35); border-color: #4caf50; box-shadow: 0 0 24px rgba(76,175,80,.5); }
.opt.wrong { background: rgba(244,67,54,.3); border-color: #f44336; animation: shake .4s; }
.opt.fade { opacity: .35; background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.opt.think { background: rgba(186,104,200,.35); border-color: #ba68c8; box-shadow: 0 0 24px rgba(186,104,200,.5); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- v11 读题小老师: 读到哪里哪里闪金光 ---------- */
.q-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 640px; }
.q-row .battle-q, .q-row .quiz-q { flex: 1; margin-bottom: 16px; }
.rehear-btn {
  flex: none; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  font-size: 24px; border: 2px solid rgba(255,213,79,.6);
  background: rgba(255,213,79,.15); color: #F39C12;
  box-shadow: 0 0 12px rgba(255,213,79,.35); transition: transform .15s;
}
.rehear-btn:active { transform: scale(.88); }
.opt.reading {
  border-color: #F39C12; background: rgba(255,213,79,.28);
  box-shadow: 0 0 26px rgba(255,213,79,.85); transform: scale(1.07);
  animation: readPulse .5s ease-in-out infinite alternate;
}
.battle-q.reading, .quiz-q.reading {
  border-color: #F39C12; box-shadow: 0 0 26px rgba(255,213,79,.85);
  background: rgba(255,213,79,.22);
}
@keyframes readPulse { from { filter: brightness(1); } to { filter: brightness(1.4); } }
.reading-box { animation: boxPulse .45s ease-in-out 3 alternate; }
@keyframes boxPulse { from { transform: scale(1); } to { transform: scale(1.025); } }
.quiz-feedback {
  margin-top: 18px; text-align: center; padding: 16px 26px; border-radius: 20px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px); max-width: 640px;
}
#fb-icon { font-size: 42px; }
#fb-text { font-size: 21px; font-weight: 800; margin: 6px 0; }
#fb-exp { font-size: 15px; color: #636E72; line-height: 1.6; }

/* ---------- 战斗答题 ---------- */
.battle-stage {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 640px; margin-bottom: 14px;
}
.fighter { text-align: center; width: 150px; }
.fighter-img {
  height: 130px; display: flex; align-items: flex-end; justify-content: center;
  font-size: 84px; filter: drop-shadow(0 0 18px rgba(255,213,79,.35));
  transition: transform .2s;
}
.fighter-img canvas { width: 115px; height: 130px; }
.fighter-img.monster { font-size: 74px; filter: drop-shadow(0 0 14px rgba(244,67,54,.5)); }
.fighter-name { font-size: 13px; color: #636E72; margin-top: 4px; font-weight: 700; }
.hp-bar {
  width: 130px; height: 14px; margin: 6px auto 0; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  overflow: hidden;
}
.hp-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #69f0ae, #00c853);
  transition: width .4s;
}
.hp-bar i.m { background: linear-gradient(90deg, #ff8a80, #d50000); }
/* 攻击动画 */
.battle-stage.hero-attack #battle-hero { transform: translateX(46px) scale(1.08); }
.battle-stage.hero-attack #battle-beam { display: block; animation: beamFly .45s forwards; }
.battle-stage.hero-attack #battle-monster { animation: monsterHit .5s; }
.battle-stage.monster-attack #battle-monster { transform: translateX(-46px) scale(1.08); }
.battle-stage.monster-attack #battle-hero { animation: monsterHit .5s; }
.battle-beam {
  position: absolute; font-size: 44px; z-index: 5;
  left: 38%; filter: drop-shadow(0 0 16px #40c4ff);
}
@keyframes beamFly { to { transform: translateX(120px) scale(1.3); opacity: 0; } }
@keyframes monsterHit { 25% { transform: translateX(10px) rotate(6deg); } 50% { transform: translateX(-10px) rotate(-6deg); filter: brightness(2); } }
.battle-stage { position: relative; }
.battle-q {
  font-size: 25px; font-weight: 900; text-align: center; line-height: 1.5;
  margin-bottom: 16px; padding: 14px 20px; width: 100%; max-width: 640px;
  background: rgba(255,213,79,.1); border: 2px solid rgba(255,213,79,.35);
  border-radius: 18px;
}
.battle-opts { max-width: 640px; }
.battle-opts .opt { font-size: 26px; }
/* v24 全局固定提示条: 浮在屏幕中上部(所有玩法通用) */
.hint-fixed {
  position: fixed; left: 50%; top: 16%; transform: translateX(-50%);
  z-index: 45; max-width: 86vw; width: auto;
  padding: 16px 26px; border-radius: 18px; text-align: center;
  font-size: 19px; font-weight: 800; line-height: 1.55;
  background: linear-gradient(165deg, rgba(255,213,79,.18), rgba(255,179,0,.12));
  border: 2px dashed rgba(255,213,79,.65);
  color: #B26A00; backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(50,60,150,.5);
  animation: hintIn .3s;
}
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- 田字格描红 ---------- */
.btn-write {
  margin-top: 12px; border: none; border-radius: 999px; cursor: pointer;
  padding: 10px 26px; font-size: 17px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #81c784, #43a047);
  box-shadow: 0 4px 14px rgba(67,160,71,.42);
}
.write-panel { margin-top: 14px; text-align: center; }
.write-target {
  width: 200px; height: 200px; margin: 0 auto;
  background: #fffdf5; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4), inset 0 0 0 2px #e0d5b8;
}
.write-btns { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- 防沉迷 ---------- */
.rest-modal .modal-box { border: 2px solid #42a5f5; }
.rest-stretch { font-size: 56px; margin: 10px 0; animation: float 2s infinite ease-in-out; }

/* ---------- 关卡篇章标签 ---------- */
.level-pian {
  font-size: 11px; color: #F39C12; background: rgba(255,179,0,.12);
  border: 1px solid rgba(255,179,0,.35); border-radius: 999px;
  padding: 1px 8px; margin-right: 6px;
}

/* ---------- 气球点选 ---------- */
.balloon-q {
  font-size: 44px; font-weight: 900; color: #F39C12; letter-spacing: 2px;
  text-shadow: 0 0 24px rgba(255,213,79,.4); margin-bottom: 10px;
}
.balloon-field { position: relative; width: 100%; max-width: 660px; height: 380px; }
.balloon {
  position: absolute; width: 96px; height: 118px; cursor: pointer;
  border-radius: 50% 50% 50% 50% / 56% 56% 44% 44%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.4);
  box-shadow: inset -8px -10px 20px rgba(0,0,0,.25), inset 8px 10px 18px rgba(255,255,255,.3);
  animation: sway 3s infinite ease-in-out; transition: transform .15s;
}
.balloon::after {
  content: ''; position: absolute; bottom: -26px; left: 50%;
  width: 2px; height: 26px; background: rgba(255,255,255,.5);
}
@keyframes sway { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
.balloon.pop { animation: pop .35s forwards; }
@keyframes pop { to { transform: scale(1.5); opacity: 0; } }
.balloon.no { animation: shake .4s; }

/* ---------- 连连看 ---------- */
.match-tip { font-size: 15px; color: #636E72; margin-bottom: 16px; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 560px; }
.match-tile {
  border-radius: 22px; padding: 22px 10px; text-align: center; cursor: pointer;
  font-size: 40px; background: rgba(255,255,255,.72);
  border: 2px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
  transition: transform .15s, border-color .2s, background .2s;
}
.match-tile.word { font-size: 24px; font-weight: 800; font-family: "Comic Sans MS", "PingFang SC", sans-serif; }
.match-tile:active { transform: scale(.95); }
.match-tile.sel { border-color: #F39C12; box-shadow: 0 0 18px rgba(255,213,79,.5); }
.match-tile.done { background: rgba(76,175,80,.3); border-color: #4caf50; pointer-events: none; }
.match-tile.no { border-color: #f44336; animation: shake .4s; }

/* ---------- 点字成诗 ---------- */
.order-poem { font-size: 21px; color: #3E3428; margin-bottom: 18px; font-weight: 800; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.order-slots {
  display: flex; gap: 10px; margin-bottom: 32px; min-height: 72px;
  padding: 12px 18px; border-radius: 20px;
  background: rgba(255,255,255,.75); border: 2px dashed rgba(255,152,0,.6);
}
.slot {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; background: rgba(255,152,0,.22); color: #F39C12;
  animation: pop .25s; font-family: "Kaiti SC","KaiTi",serif;
}
.slot.empty { background: rgba(0,0,0,.08); color: transparent; }
.order-tiles { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 560px; }
.tile {
  width: 62px; height: 62px; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #fff; font-family: "Kaiti SC","KaiTi",serif;
  background: linear-gradient(160deg, #5c6bc0, #283593);
  border: 2px solid rgba(255,255,255,.2); box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: transform .12s;
}
.tile:active { transform: scale(.9); }
.tile.used { opacity: .15; pointer-events: none; }
.tile.no { animation: shake .4s; border-color: #f44336; }

/* ---------- v174 诗词双考法 ---------- */
.order-slots.prc-mode { flex-direction: column; align-items: center; gap: 8px; border: none; background: transparent; padding: 0; width: 100%; }
/* 听诗填字: 挖空句(复用listen屏), □空格待填, 朗读逐字点亮 */
.listen-visual .blank { color: #F39C12; border-bottom: 3px dashed #F39C12; padding: 0 2px; }
.listen-visual [data-k] { transition: transform .12s; }
/* 背诵接龙: 上句提示 + 下句字槽 + 大麦克风按钮 */
.prc-prompt { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: #3E3428; letter-spacing: 3px; font-family: "Kaiti SC", "KaiTi", "STKaiti", serif; }
.prc-prompt .karaoke-on { color: #E65100 !important; }
.prc-target { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.prc-slot {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; font-family: "Kaiti SC", "KaiTi", serif;
  background: rgba(255,152,0,.14); color: #B08D4F; border: 2px dashed rgba(255,152,0,.55);
  transition: all .15s;
}
.prc-slot.filled { background: rgba(255,152,0,.28); color: #E65100; border-style: solid; animation: pop .25s; }
.prc-slot.karaoke-on { color: #E65100; transform: scale(1.15); text-shadow: 0 0 14px rgba(255,193,7,.95); }
.prc-punc { align-self: flex-end; font-size: 24px; color: #B08D4F; font-weight: 900; }
.prc-mic { font-size: 20px !important; padding: 14px 34px !important; border-radius: 999px !important; }
.prc-mic.listening { animation: readPulse .5s ease-in-out infinite alternate; background: linear-gradient(135deg, #ef5350, #c62828) !important; }

/* ---------- v175 兴趣/安全星球选项卡 ---------- */
/* 兴趣星球: 图片化欢快卡——大emoji+词, 糖果四色, 无红描格(多形态/轻松/欢快) */
#battle-opts .opt.fun-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 116px; border-radius: 26px 30px 26px 30px; border: 2.5px solid rgba(255,255,255,.85);
  box-shadow: 0 6px 16px rgba(120,90,160,.16);
}
#battle-opts .opt.fun-card:nth-child(4n+1) { background: linear-gradient(155deg,#ffe3f0,#ffc2dd); }
#battle-opts .opt.fun-card:nth-child(4n+2) { background: linear-gradient(155deg,#fff6cc,#ffe9a3); }
#battle-opts .opt.fun-card:nth-child(4n+3) { background: linear-gradient(155deg,#dcf4ff,#b0e2ff); }
#battle-opts .opt.fun-card:nth-child(4n+4) { background: linear-gradient(155deg,#e2f9da,#bdf0b8); }
#battle-opts .opt.fun-card .fc-e { font-size: 62px; line-height: 1.15; }
#battle-opts .opt.fun-card .fc-e.only { font-size: 64px; }   /* v180 纯图形卡(不要文字): emoji放大一号(特异性高于v176缩档, 不受影响) */
/* v178 选项字统一黑体加大: 有emoji/没emoji的卡字号字体一致, 不再"有的显示字有的显示图" */
#battle-opts .opt.fun-card .fc-w, #battle-opts .opt.fun-card .fc-w.big {
  font-size: 22px; font-weight: 700; color: #2D3436;
  font-family: "Heiti SC", "黑体-简", "SimHei", "黑体", "PingFang SC", sans-serif;
}
/* 安全星球: 普通选项字体稍大 */
#battle-opts .opt.plain-lg { font-size: 30px; font-weight: 800; }
@media (max-width: 480px) {
  #battle-opts .opt.fun-card { min-height: 68px; }
  #battle-opts .opt.fun-card .fc-e { font-size: 34px; }
  #battle-opts .opt.fun-card .fc-w { font-size: 13px; }
  #battle-opts .opt.fun-card .fc-w.big { font-size: 17px; }
  #battle-opts .opt.plain-lg { font-size: 19px; }
  #battle-opts .opt.hzfont { font-size: 34px; min-height: 60px; }   /* v176 窄屏同步缩 */
}
/* v176 闯关选项框整体缩小30%(主人反馈过大): 内边距/字号/高度统一×0.7; 必须写在v175定义之后(同特异性后者生效) */
#battle-opts .opt { padding: 14px 8px; }
.battle-opts .opt { font-size: 19px; }
#battle-opts .opt.hzfont { font-size: 48px; min-height: 76px; }
#battle-opts .opt.fun-card { min-height: 82px; gap: 3px; }
#battle-opts .opt.fun-card .fc-e { font-size: 44px; }
#battle-opts .opt.fun-card .fc-w, #battle-opts .opt.fun-card .fc-w.big { font-size: 17px; }   /* v178 统一17px黑体, 不再分有图/无图两档 */
#battle-opts .opt.plain-lg { font-size: 22px; }
@media (max-width: 480px) {
  #battle-opts .opt.fun-card { min-height: 68px; }
  #battle-opts .opt.fun-card .fc-e { font-size: 34px; }
  #battle-opts .opt.fun-card .fc-e.only { font-size: 46px; }   /* v180 纯图形窄屏 */
  #battle-opts .opt.fun-card .fc-w, #battle-opts .opt.fun-card .fc-w.big { font-size: 14px; }   /* v178 统一 */
  #battle-opts .opt.plain-lg { font-size: 19px; }
}

/* ---------- 打地鼠找字 ---------- */
.mole-target {
  font-size: 22px; font-weight: 900; margin-bottom: 16px; color: var(--ink);
  background: rgba(255,179,0,.15); border: 2px solid rgba(255,179,0,.5);
  padding: 10px 22px; border-radius: 24px;
  max-width: 92vw; text-align: center; line-height: 1.5;   /* v167 挖空词题干较长, 允许pill内自然换行不撑爆 */
}
.mole-target b { color: #F39C12; font-size: 30px; }
.mole-field {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  width: 100%; max-width: 460px;
}
.mole-hole {
  position: relative; height: 110px; border-radius: 50% 50% 14px 14px;
  background: radial-gradient(ellipse at 50% 100%, #3e2723, #211310 70%);
  overflow: hidden; cursor: pointer;
  box-shadow: inset 0 8px 16px rgba(0,0,0,.6);
}
.mole-char {
  position: absolute; left: 50%; bottom: -80px; transform: translateX(-50%);
  width: 72px; height: 72px; border-radius: 50% 50% 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 900; color: #5d4037;
  font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif;   /* v166 楷体 */
  background: linear-gradient(180deg, #ffdca8, #e8b06b);
  transition: bottom .22s ease-out;
}
.mole-hole.up .mole-char { bottom: 8px; }
.mole-hole.hit .mole-char { background: linear-gradient(180deg, #2E7D32, #66bb6a); color: #1b5e20; }

/* ---------- 记忆翻牌 ---------- */
.memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 560px; }
.memory-grid.cols4 { grid-template-columns: repeat(4, 1fr); max-width: 720px; }
.mem-tile {
  aspect-ratio: 3/4; border-radius: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; color: #fff; transition: transform .25s, background .25s;
  font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif;   /* v166 楷体 */
  background: linear-gradient(160deg, #5c6bc0, #283593);
  border: 2px solid rgba(255,255,255,.2);
  transform: rotateY(0);
}
.mem-tile.face { background: #fffdf4; border-color: #F39C12; transform: rotateY(180deg); color: #4a3a12; }   /* v164修复: 翻开的牌米白底深棕字, 白字鹅黄底看不清 */
.mem-tile.face span { transform: rotateY(180deg); display: block; }
.mem-tile.done { background: rgba(76,175,80,.35); border-color: #4caf50; pointer-events: none; color: #1b5e20; }   /* v164修复: 配对成功的牌同样改深色字 */
.mem-tile span { display: block; }

/* ---------- 听音选择 ---------- */
/* v164 听音找字喇叭按钮(打地鼠/趣味捕捉/戳气球听音题共用) */
.hz-speak-btn { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: none; border-radius: 50%; font-size: 30px; cursor: pointer; background: linear-gradient(160deg, #42a5f5, #1e88e5); box-shadow: 0 4px 12px rgba(30,136,229,.45), inset 0 -3px 0 rgba(0,0,0,.15); vertical-align: middle; }
.hz-speak-btn:active { transform: scale(.92); }
.balloon-q.can-replay { cursor: pointer; text-decoration: underline dotted; }
.listen-speaker {
  width: 130px; height: 130px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 60px; margin-bottom: 14px;
  background: radial-gradient(circle at 35% 30%, #4fc3f7, #039be5);
  box-shadow: 0 0 34px rgba(79,195,247,.55), inset 0 2px 8px rgba(255,255,255,.4);
  animation: pulse 2.4s infinite ease-in-out;
}
.listen-speaker:active { transform: scale(.93); }

/* ---------- 编程机器人 ---------- */
/* v176 明亮主题下白透明格子=没格子(主人两次反馈), 改奶油底+茶色描边 */
.robot-board {
  display: grid; gap: 6px; padding: 12px; border-radius: 20px;
  background: rgba(255,251,240,.92); border: 2px solid rgba(176,141,79,.4);
  margin-bottom: 14px;
}
.robot-cell {
  width: 74px; height: 74px; border-radius: 12px;
  background: #fff; border: 1.5px solid rgba(176,141,79,.45);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  transition: background .3s;
}
.robot-cell.wall { background: rgba(244,67,54,.18); }
.robot-cell.goal { background: rgba(255,213,79,.25); border-color: rgba(240,160,41,.7); }
.robot-cell.bot { background: rgba(66,165,245,.25); }
.robot-seq {
  display: flex; gap: 8px; min-height: 48px; flex-wrap: wrap; justify-content: center;
  padding: 8px 14px; margin-bottom: 14px; border-radius: 14px;
  background: rgba(255,251,240,.9); border: 2px dashed rgba(176,141,79,.55);
  max-width: 480px;
}
.seq-chip { font-size: 26px; animation: pop .2s; }
.robot-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.robot-dir, .robot-act {
  width: 62px; height: 62px; border-radius: 16px; border: 2px solid rgba(255,255,255,.25);
  font-size: 28px; color: #fff; cursor: pointer; background: linear-gradient(160deg, #5c6bc0, #283593);
  transition: transform .12s;
}
.robot-dir:active, .robot-act:active { transform: scale(.9); }
.robot-run { background: linear-gradient(160deg, #66bb6a, #2e7d32); width: 84px; }
#robot-undo { background: linear-gradient(160deg, #ef5350, #b71c1c); }

/* ---------- 盲盒 ---------- */
.gacha-stage { text-align: center; }
.blind-box {
  font-size: 110px; cursor: pointer; filter: drop-shadow(0 0 30px rgba(255,213,79,.5));
  animation: boxFloat 3s infinite ease-in-out;
}
@keyframes boxFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.blind-box.shaking { animation: boxShake .6s infinite; }
@keyframes boxShake { 25% { transform: rotate(-10deg) scale(1.05); } 75% { transform: rotate(10deg) scale(1.05); } }
.gacha-rates { margin: 16px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rate-tag { font-size: 12px; background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 999px; }
.gacha-pity { font-size: 13px; color: #F39C12; margin-bottom: 18px; }
.gacha-btns { display: flex; gap: 16px; justify-content: center; }
.gacha-reveal {
  position: fixed; inset: 0; z-index: 20; padding: 90px 20px 30px;
  background: rgba(20,28,70,.9); backdrop-filter: blur(6px);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-content: center;
  overflow-y: auto;
}
.reveal-card { animation: cardIn .5s backwards; cursor: pointer; }
@keyframes cardIn { from { transform: rotateY(180deg) scale(.3); opacity: 0; } to { transform: rotateY(0) scale(1); opacity: 1; } }

/* ---------- 卡牌 ---------- */
.card {
  width: 150px; height: 212px; border-radius: 14px;
  position: relative; overflow: hidden;
  border: 3px solid var(--rc); background: #fff;
  box-shadow: 0 4px 16px var(--rg), inset 0 0 0 1px rgba(255,255,255,.4);
  display: flex; flex-direction: column;
}
.card-art { width: 100%; height: 66%; display: block; }
.card-plate {
  flex: 1; padding: 5px 8px 6px;
  background: linear-gradient(180deg, #fff, #fff5f0);
  border-top: 2px solid var(--rc);
  display: flex; flex-direction: column; justify-content: center;
}
.card-name { font-size: 13px; font-weight: 900; text-align: center; line-height: 1.2; }
.card-stars { font-size: 9px; color: var(--rc); text-align: center; letter-spacing: 1px; }
.card-up { font-size: 9px; color: #F39C12; text-align: center; }
.card-skill { font-size: 9px; color: var(--ink-mid); text-align: center; margin-top: 2px; }
.card-stats { display: flex; justify-content: space-between; margin-top: 3px; font-size: 9px; font-weight: 800; color: var(--rc); }
.card-rarity {
  position: absolute; top: 4px; left: 6px; z-index: 2;
  font-size: 13px; font-weight: 900; font-style: italic;
  color: var(--rc); text-shadow: 0 0 8px var(--rg), 0 1px 2px #000;
}
.card-no { position: absolute; top: 5px; right: 6px; z-index: 2; font-size: 8px; color: rgba(255,255,255,.65); font-family: monospace; }
.card-count { position: absolute; bottom: 4px; right: 6px; z-index: 2; font-size: 10px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 0 6px; }
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 60%);
  transform: translateX(-120%);
}
.card.shine::before { animation: shine 2.8s infinite; }
.card.shine-once::before { animation: shine 1.2s 1; }
@keyframes shine { to { transform: translateX(120%); } }
.card[data-rarity="SR"] { box-shadow: 0 0 14px var(--rg), inset 0 2px 6px rgba(255,255,255,.25), inset 0 -2px 6px rgba(0,0,0,.5); }
.card[data-rarity="SSR"] { border-image: linear-gradient(135deg, #ffd54f, #ff8f00, #ffd54f) 1; }
.card[data-rarity="UR"] { animation: urGlow 2.4s infinite ease-in-out; }
@keyframes urGlow { 0%,100% { box-shadow: 0 0 16px #ff5252; } 50% { box-shadow: 0 0 30px #ffd54f; } }
.card[data-rarity="SP"] { animation: rainbowBorder 3s linear infinite; }
@keyframes rainbowBorder {
  0% { box-shadow: 0 0 20px #ff5252; } 25% { box-shadow: 0 0 20px #ffd54f; }
  50% { box-shadow: 0 0 20px #69f0ae; } 75% { box-shadow: 0 0 20px #40c4ff; }
  100% { box-shadow: 0 0 20px #ff5252; }
}
.card.locked { filter: grayscale(1) brightness(.4); box-shadow: none; border-color: #555; }
.card.locked .card-art, .card.locked .card-plate { visibility: hidden; }
.card.locked::after { content: '❓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; opacity: .8; }

/* ---------- 图鉴 ---------- */
.album-stats { margin-bottom: 14px; font-size: 15px; color: #F39C12; font-weight: 700; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 14px; justify-content: center; max-width: 960px; padding-bottom: 30px; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(20,28,70,.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: linear-gradient(160deg, #FFFFFF, #FFF6EC);
  border: 1px solid rgba(210,180,140,.55); border-radius: 26px;
  padding: 28px 24px; text-align: center; max-width: 430px; width: 100%;
  max-height: 86vh; overflow-y: auto;
  box-shadow: 0 20px 56px rgba(30,45,110,.6); animation: modalIn .3s;
}
@keyframes modalIn { from { transform: scale(.8); opacity: 0; } }
.modal-box h3 { font-size: 23px; margin-bottom: 10px; color: #F39C12; }
.modal-box p { font-size: 15px; color: #4A5055; line-height: 1.7; margin-bottom: 12px; }
.modal-box .big-energy { font-size: 38px; font-weight: 900; color: #F39C12; margin: 8px 0; }
.modal-box .big-stars { font-size: 34px; letter-spacing: 6px; margin: 6px 0; }
.modal-btns { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.modal-card-wrap { display: flex; justify-content: center; margin: 10px 0; }
.detail-desc { font-size: 14px; color: #636E72; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 40; background: rgba(20,26,52,.95); border: 1px solid rgba(255,255,255,.2);
  padding: 12px 26px; border-radius: 999px; font-size: 15px; animation: toastIn .3s;
}
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } }

/* 小屏适配 */
@media (max-width: 480px) {
  .quiz-q { font-size: 20px; }
  .opt { font-size: 19px; }
  .opt.loose { letter-spacing: 6px; }
  .boot-title { font-size: 30px; }
  .learn-big { font-size: 78px; }
  .learn-text { font-size: 17px; }
  .balloon-q { font-size: 34px; }
  .card { width: 128px; height: 182px; }
  .album-grid { grid-template-columns: repeat(auto-fill, 128px); }
  .robot-cell { width: 58px; height: 58px; font-size: 32px; }
  .mole-field { max-width: 360px; }
}

/* ============================================================
   v4 卡游化改造样式 — 底部Tab / 学科卡册 / 限时挑战 / 变身拼读 / 双人PK / 我的
   ============================================================ */

/* ---------- 底部Tab导航 ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around; gap: 8px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.6);
}
#tabbar .tab {
  flex: 1; min-height: 52px; border: none; border-radius: 18px;
  background: transparent; color: #636E72; font-size: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
#tabbar .tab span { font-size: 13px; font-weight: 700; margin-top: 2px; }
#tabbar .tab.on {
  background: linear-gradient(135deg, #039be5, #4fc3f7);
  color: #fff; box-shadow: 0 0 16px rgba(66, 165, 245, .5);
}
#tabbar .tab.tab-center {
  transform: translateY(-16px);
  background: linear-gradient(135deg, #FFC857, #FF8A65);
  color: #fff; box-shadow: 0 8px 22px rgba(255,138,101,.5);
  border-radius: 50%; width: 66px; height: 66px; min-height: 66px;
}
#tabbar .tab.tab-center span { font-size: 12px; }
.screen { padding-bottom: 96px; }

/* ---------- 卡册Tab ---------- */
.album-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 0 auto 12px; max-width: 720px; padding: 0 10px;
}
.album-tab {
  min-height: 48px; padding: 8px 16px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .14);
  color: #636E72; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.album-tab.on {
  background: linear-gradient(135deg, #039be5, #4fc3f7); color: #fff;
  border-color: transparent; box-shadow: 0 0 12px rgba(66, 165, 245, .45);
}
.album-rarity-head {
  width: 100%; text-align: left; font-size: 16px; font-weight: 900;
  margin: 10px 0 2px; letter-spacing: 1px;
}

/* ---------- 学科知识卡面 ---------- */
.card.kcard .card-art { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.12), transparent 70%); }
.kcard-big { font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: 2px; }
.kcard-py { font-size: 13px; color: #F39C12; font-weight: 700; margin-top: 2px; }
.kcard-words { font-size: 12px; color: #636E72; margin-top: 2px; }
.kcard-silhouette {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .35);
}
.kcard-detail-emoji { font-size: 72px; text-align: center; margin: 6px 0; }
.kcard-py-big { font-size: 20px; color: #F39C12; font-weight: 800; text-align: center; }
.kcard-words-big { font-size: 16px; color: #636E72; text-align: center; }
.drop-line { color: #F39C12; font-size: 15px; margin: 4px 0; }

/* ---------- 碎片兑换 ---------- */
.frag-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; font-size: 16px; color: #636E72; flex-wrap: wrap;
}
.frag-bar b { color: #F39C12; font-size: 20px; }
.btn-small { min-height: 48px; padding: 8px 18px; font-size: 15px; }
.btn-pk {
  min-height: 46px; padding: 0 16px; font-size: 15px;
  background: linear-gradient(135deg, #e53935, #ff7043) !important;
}

/* ---------- 怪兽剪影(谜语) ---------- */
.silhouette { filter: brightness(0) drop-shadow(0 0 6px rgba(92, 107, 192, .8)); }

/* ---------- 限时挑战 ---------- */
.rush-energybar {
  height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .1);
  margin: 8px auto; max-width: 560px; overflow: hidden;
  border: 1px solid rgba(255, 213, 79, .35);
}
.rush-energybar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #ffd54f, #ff8f00);
  transition: width .3s; box-shadow: 0 0 10px rgba(255, 213, 79, .7);
}
#rush-timer { font-size: 20px; font-weight: 900; color: #F39C12; }

/* ---------- 拼音变身拼读 ---------- */
.spell-target { text-align: center; margin: 8px 0; }
.spell-emoji { font-size: 72px; line-height: 1.2; }
.spell-word { font-size: 56px; font-weight: 900; color: var(--ink); letter-spacing: 6px; }
.spell-slots {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0;
}
.spell-slot {
  min-width: 84px; min-height: 64px; border-radius: 18px;
  border: 2px dashed rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #636E72;
}
.spell-slot.filled { border-style: solid; border-color: #42a5f5; color: var(--ink); background: rgba(66, 165, 245, .18); }
.spell-slot.spell-result.filled { border-color: #F39C12; background: rgba(255, 213, 79, .18); color: #F39C12; }
.spell-slot.henshin { animation: henshin 1s ease; box-shadow: 0 0 30px rgba(255, 213, 79, .9); }
.spell-plus { font-size: 32px; font-weight: 900; color: #F39C12; }
.spell-rows { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.spell-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.spell-key {
  min-width: 56px; min-height: 56px; border-radius: 16px; border: none;
  font-size: 26px; font-weight: 900; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #039be5, #29b6f6);
  box-shadow: 0 3px 0 #0277bd; transition: transform .1s;
}
.spell-key:active { transform: scale(.92); }
.spell-key.final { background: linear-gradient(135deg, #ad1457, #ec407a); box-shadow: 0 3px 0 #880e4f; }
@keyframes henshin {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.5) rotate(8deg); filter: brightness(2.2); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* ---------- 双人对战 PK ---------- */
.pk-stage {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 720px; margin: 6px auto; gap: 10px; padding: 0 10px;
}
.pk-side {
  flex: 1; border-radius: 20px; padding: 12px; text-align: center;
  background: rgba(255, 255, 255, .06); border: 2px solid transparent; transition: all .25s;
}
.pk-side.active-turn { border-color: #F39C12; box-shadow: 0 0 18px rgba(255, 213, 79, .45); }
.pk-name { font-size: 17px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.pk-vs { font-size: 22px; font-weight: 900; color: #ff5252; text-shadow: 0 0 10px rgba(255, 82, 82, .8); }

/* ---------- 我的 / 勋章墙 ---------- */
.me-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 720px; margin: 0 auto; padding: 0 10px;
}
.me-stat {
  background: rgba(255, 255, 255, .14); border-radius: 20px; padding: 12px 6px;
  text-align: center; border: 1px solid rgba(255, 255, 255, .18);
}
.me-stat b { display: block; font-size: 20px; color: #F39C12; }
.me-stat span { font-size: 12px; color: #636E72; }
.me-review { cursor: pointer; border-color: rgba(255,213,79,.4); }
.me-review:active { transform: scale(.95); }
.me-sub { text-align: center; color: #F39C12; margin: 18px 0 10px; letter-spacing: 2px; }
.medal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
  max-width: 720px; margin: 0 auto; padding: 0 10px 20px;
}
.medal {
  border-radius: 18px; padding: 14px 8px; text-align: center;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08);
  filter: grayscale(1); opacity: .55; transition: all .25s;
}
.medal.lit {
  filter: none; opacity: 1; cursor: pointer;
  background: linear-gradient(160deg, rgba(255, 213, 79, .18), rgba(21, 101, 192, .25));
  border-color: rgba(255, 213, 79, .55); box-shadow: 0 0 14px rgba(255, 213, 79, .3);
}
.medal-emoji { font-size: 40px; }
.medal-name { font-size: 14px; font-weight: 900; color: var(--ink); margin: 6px 0 2px; }
.medal-need { font-size: 11px; color: #636E72; }
@media (max-width: 480px) {
  .me-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- v5 识字摸底测试 ---------- */
.btn-test {
  min-height: 46px; padding: 0 16px; font-size: 15px;
  background: linear-gradient(135deg, #43a047, #66bb6a) !important;
}
.hztest-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  max-width: 720px; margin: 16px auto; padding: 0 16px;
}
.hztest-char {
  aspect-ratio: 1; min-height: 100px; border-radius: 28px;
  background: rgba(255, 255, 255, .14); border: 4px solid rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; font-weight: 900; color: var(--ink); cursor: pointer;
  font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif;   /* v166 楷体 */
  transition: all .15s; user-select: none; -webkit-user-select: none;
}
.hztest-char:active { transform: scale(.9); }
.hztest-char.known {
  background: linear-gradient(135deg, #2e7d32, #66bb6a); color: #fff;
  border-color: #2E7D32; box-shadow: 0 0 14px rgba(102, 187, 106, .6);
}
@media (max-width: 480px) {
  .hztest-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .hztest-char { font-size: 42px; min-height: 88px; border-radius: 20px; }
}

/* ============================================================
   v5 蛇形环绕关卡地图 — S形连线 + 自动定位当前关
   ============================================================ */
#levels-actions {
  max-width: 760px; margin: 0 auto 8px; padding: 0 12px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
#levels-actions .btn-pk, #levels-actions .btn-test { margin-top: 0; }
.level-map-wrap {
  overflow: visible;
  width: 100%; max-width: 760px; margin: 0 auto; padding: 0 6px;
  box-sizing: border-box; flex-shrink: 1;
}
/* v23 翻页控件 */
.lv-pager {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 16px auto 0; flex: none;
}
.lv-page-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .2s;
}
.lv-page-btn:active { transform: scale(.9); }
.lv-page-btn:disabled { opacity: .3; cursor: default; }
.lv-page-info { font-size: 15px; font-weight: 700; color: #636E72; letter-spacing: 1px; min-width: 48px; text-align: center; }
.level-path { position: relative; width: 100%; max-width: 720px; display: block; margin: 0 auto; }
.lp-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-line {
  fill: none; stroke: rgba(66, 165, 245, .45); stroke-width: 3px;
  stroke-dasharray: 1px 8px; stroke-linecap: round;
}
.lp-node {
  position: absolute; transform: translate(-50%, 0);
  width: 23%; text-align: center; cursor: pointer; z-index: 2;
}
.lp-badge {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #fff;
  background: linear-gradient(145deg, #4fc3f7, #1565c0);
  border: 3px solid rgba(255,255,255,.34);
  box-shadow: 0 6px 16px rgba(0,0,0,.4), inset 0 2px 4px rgba(255,255,255,.25);
  transition: transform .15s;
}
.lp-node:active .lp-badge { transform: scale(.9); }
.lp-node.done .lp-badge {
  background: linear-gradient(145deg, #43a047, #1b5e20);
  border-color: #2E7D32; box-shadow: 0 0 12px rgba(102, 187, 106, .5);
}
.lp-node.lock { cursor: not-allowed; }
.lp-node.lock .lp-badge {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2);
  box-shadow: none; filter: grayscale(.8); opacity: .6;
}
.lp-node.cur .lp-badge {
  background: linear-gradient(145deg, #ff8f00, #ff5252);
  border-color: #F39C12; box-shadow: 0 0 22px rgba(255, 213, 79, .9);
  animation: curPulse 1.2s ease-in-out infinite;
}
@keyframes curPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}
.lp-name {
  margin-top: 4px; font-size: 12px; font-weight: 700; color: #2D3436;
  line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.lp-node.lock .lp-name { color: #5a6285; }
.lp-stars { font-size: 10px; color: #F39C12; min-height: 13px; }
/* v22 知识点分组地图(组标题+关卡卡片混排, 按关卡数分页) */
.level-path.grouped {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px; align-items: start; width: 100%;
}
.lp-group-title {
  grid-column: 1 / -1;
  font-size: 16px; font-weight: 900; color: #F39C12; letter-spacing: 2px;
  margin: 12px 0 2px; text-align: center;
}
.level-path.grouped .lp-node {
  position: static; transform: none;
  width: 100%; min-width: 0; max-width: none;
}
.lp-pian {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 900; color: #0b1026; white-space: nowrap;
  background: linear-gradient(90deg, #ffd54f, #ffb300);
  padding: 2px 10px; border-radius: 999px; box-shadow: 0 0 8px rgba(255, 213, 79, .6);
}
@media (max-width: 480px) {
  .lp-badge { width: 50px; height: 50px; font-size: 17px; }
  .lp-name { font-size: 11px; }
}

/* v5 关卡屏顶对齐, 避免双滚动条 */
#screen-levels { justify-content: flex-start; }
.level-map-wrap { height: calc(100vh - 300px); height: calc(100dvh - 300px); }

/* ---------- v6 找不同 ---------- */
.spot-grid {
  display: grid; gap: 12px; max-width: 660px; margin: 14px auto; padding: 0 12px;
}
.spot-cell {
  aspect-ratio: 1; border-radius: 22px; font-size: 72px;
  background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .15s; user-select: none; -webkit-user-select: none;
}
.spot-cell:active { transform: scale(.9); }
.spot-cell.right { background: rgba(102, 187, 106, .35); border-color: #66bb6a; box-shadow: 0 0 18px rgba(102, 187, 106, .8); }
.spot-cell.no { animation: shakeX .4s; }
@media (max-width: 480px) { .spot-cell { font-size: 52px; } }

/* ---------- v6 数独 ---------- */
.sudoku-board {
  display: grid; gap: 4px; max-width: 460px; margin: 10px auto; padding: 10px;
  background: rgba(255, 255, 255, .05); border-radius: 20px;
}
.sudoku-board.n9 { max-width: 520px; gap: 3px; }
.sd-cell {
  aspect-ratio: 1; border-radius: 10px; font-size: 26px; font-weight: 900;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center;
  color: #F39C12; cursor: pointer; user-select: none; -webkit-user-select: none;
}
.sudoku-board.n9 .sd-cell { font-size: 20px; border-radius: 7px; }
.sd-cell.br { border-right: 3px solid rgba(255, 213, 79, .5); }
.sd-cell.bb { border-bottom: 3px solid rgba(255, 213, 79, .5); }
.sd-cell.given { color: #636E72; background: rgba(255, 255, 255, .03); cursor: default; }
.sd-cell.sel { background: rgba(66, 165, 245, .3); border-color: #42a5f5; box-shadow: 0 0 12px rgba(66, 165, 245, .7); }
.sd-cell.ok { color: #2E7D32; background: rgba(102, 187, 106, .15); cursor: default; }
.sd-cell.bad { color: #ef9a9a; background: rgba(229, 57, 53, .18); }
.sudoku-pad {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 520px; margin: 12px auto; padding: 0 10px;
}
.sd-key {
  min-width: 56px; min-height: 56px; border-radius: 16px; border: none;
  font-size: 26px; font-weight: 900; color: #1a1a2e; cursor: pointer;
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  box-shadow: 0 3px 0 #c17900; transition: transform .1s;
}
.sd-key:active { transform: scale(.9); }
.sudoku-board.n9 + .sudoku-pad .sd-key { min-width: 50px; min-height: 50px; font-size: 22px; }
@media (max-width: 480px) {
  .sd-cell { font-size: 20px; }
  .sudoku-board.n9 .sd-cell { font-size: 16px; }
}

/* v6 识字进度条 */
.hz-progress-pill {
  text-align: center; font-size: 15px; font-weight: 700; color: #2E7D32;
  background: rgba(102, 187, 106, .12); border: 1px solid rgba(102, 187, 106, .35);
  border-radius: 999px; padding: 8px 16px;
}

/* ---------- v8 趣味捕捉(青蛙跳荷叶/小猫捞鱼/摘苹果) ---------- */
.hunt-target-wrap {
  text-align: center; font-size: 20px; color: #636E72; margin: 10px 0;
}
.hunt-target {
  display: inline-block; min-width: 72px; min-height: 72px; line-height: 72px;
  font-size: 44px; font-weight: 900; color: #1a1a2e; text-align: center;
  background: linear-gradient(135deg, #ffd54f, #ffb300); border-radius: 18px;
  box-shadow: 0 0 18px rgba(255, 213, 79, .6); margin-left: 8px;
}
.hunt-field {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;   /* v167 间距加大, 适合儿童手指 */
  width: 100%; max-width: 680px; margin: 16px auto; padding: 0 14px;   /* v167 width:100%修复: 内容收窄导致卡片缩水 */
}
.hunt-item {
  position: relative; aspect-ratio: 1; border-radius: 26px; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 3px solid rgba(255, 255, 255, .22);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: all .15s; user-select: none; -webkit-user-select: none;
}
.hunt-emoji { font-size: 46px; line-height: 1.1; }
.hunt-char { font-size: 46px; font-weight: 900; color: var(--ink); font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif; }   /* v166 楷体+去emoji后字放大 */
.hunt-item:active { transform: scale(.92); }
.hunt-item.right { background: rgba(102, 187, 106, .4); border-color: #66bb6a; box-shadow: 0 0 20px rgba(102, 187, 106, .8); }
.hunt-item.no { animation: shakeX .4s; }
/* 三皮肤主题色 */
.hunt-field.frog .hunt-item { background: rgba(46, 125, 50, .22); border-color: rgba(102, 187, 106, .4); }
.hunt-field.fish .hunt-item { background: rgba(2, 119, 189, .22); border-color: rgba(66, 165, 245, .4); }
.hunt-field.apple .hunt-item { background: rgba(194, 24, 91, .18); border-color: rgba(239, 83, 80, .4); }
@media (max-width: 480px) {
  .hunt-field { grid-template-columns: repeat(2, 1fr); }
  .hunt-emoji { font-size: 40px; }
  .hunt-char { font-size: 30px; }
}

/* ---------- v8 识字田字格 + 描红修复 ---------- */
/* 学习页大字田字格(识字专用, 替代插画) */
.learn-big.tianzi {
  position: relative; background: #fff; color: #333;
  border: 3px solid #e57373; border-radius: 12px;
  padding: 16px 34px; box-shadow: 0 4px 18px rgba(229, 115, 115, .35);
}
.learn-big.tianzi::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 2px dashed rgba(229, 115, 115, .6); pointer-events: none;
}
.learn-big.tianzi::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  border-left: 2px dashed rgba(229, 115, 115, .6); pointer-events: none;
}
/* 描红面板: 田字格背景 + 触屏绘画关键修复 */
#write-target {
  position: relative; background: #fff; border-radius: 14px; overflow: hidden;
  touch-action: none; margin: 0 auto;
}
#write-target::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; z-index: 0;
  border-top: 2px dashed rgba(229, 115, 115, .55); pointer-events: none;
}
#write-target::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; z-index: 0;
  border-left: 2px dashed rgba(229, 115, 115, .55); pointer-events: none;
}
#write-target svg { position: relative; z-index: 1; touch-action: none; }

/* ============================================================
   v9 心愿商城 + 密码键盘 + 防沉迷休息罩
   ============================================================ */
/* ---------- 心愿商城 ---------- */
.wish-balance { font-size: 18px; color: #2D3436; background: rgba(255,213,79,.12); border: 1px solid rgba(255,213,79,.4); border-radius: 999px; padding: 8px 20px; }
.wish-balance b { color: #F39C12; font-size: 22px; }
.wish-tip { font-size: 13px; color: #636E72; margin: 8px 0 14px; }
.wish-list { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.wish-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 12px 14px; }
.wish-row.off { opacity: .55; }
.wish-emoji { font-size: 30px; }
.wish-name { flex: 1; font-size: 17px; font-weight: 700; text-align: left; }
.wish-cost { color: #F39C12; font-weight: 900; font-size: 16px; }
.wish-log-title { margin: 20px 0 8px; font-size: 16px; color: #636E72; }
.wish-log { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.wish-log-row { display: flex; justify-content: space-between; font-size: 14px; color: #2D3436; background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px 12px; }
.wish-log-meta { color: #636E72; font-size: 12px; }
.wish-log-empty { font-size: 13px; color: #636E72; }
/* 兑换券 */
.wish-ticket { background: linear-gradient(135deg, #FFF7E6, #FFEFD6); border: 2px dashed #F39C12; border-radius: 16px; padding: 18px; margin: 12px 0; }
.wt-emoji { font-size: 44px; }
.wt-name { font-size: 20px; font-weight: 900; color: #F39C12; margin: 6px 0; }
.wt-id { font-size: 13px; color: #636E72; letter-spacing: 2px; }

/* ---------- 密码键盘 ---------- */
.pin-tip { font-size: 14px; color: #4A5055; margin: 8px 0 4px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 14px 0; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ffd54f; }
.pin-dots i.on { background: #ffd54f; box-shadow: 0 0 10px #ffd54f; }
.pin-dots.shake { animation: pinShake .4s; }
@keyframes pinShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; justify-content: center; }
.pin-key { height: 52px; border: none; border-radius: 14px; font-size: 22px; font-weight: 900; color: var(--ink); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); cursor: pointer; }
.pin-key:active { background: rgba(255,213,79,.35); transform: scale(.94); }

/* ---------- 防沉迷休息罩 ---------- */
.rest-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #E8F0FF, #D8E6FF 75%);
  text-align: center; padding: 24px;
}
.rest-moon { font-size: 72px; animation: restFloat 3s infinite ease-in-out; }
@keyframes restFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.rest-overlay h2 { font-size: 26px; color: #F39C12; margin: 16px 0 8px; letter-spacing: 3px; }
.rest-tips { font-size: 15px; color: #636E72; line-height: 2; }
.rest-count { font-size: 64px; font-weight: 900; color: #69f0ae; margin: 18px 0; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(105,240,174,.5); }
.rest-sub { font-size: 14px; color: #636E72; }
.rest-unlock { margin-top: 40px; background: none; border: none; color: rgba(255,255,255,.3); font-size: 13px; text-decoration: underline; cursor: pointer; }

/* ---------- v9 每日抽签任务 ---------- */
.daily-banner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.daily-title { font-size: 15px; font-weight: 900; color: #F39C12; letter-spacing: 1px; }
.daily-chip { font-size: 14px; font-weight: 700; color: var(--ink); background: rgba(255,152,0,.18); border: 1px solid rgba(255,152,0,.55); border-radius: 999px; padding: 5px 14px; }
.daily-chip.done { background: rgba(102,187,106,.18); border-color: rgba(102,187,106,.55); color: #2E7D32; }
.daily-chip.chest { background: rgba(255,213,79,.2); border-color: #F39C12; color: #F39C12; }
.daily-chip.big { font-size: 19px; padding: 10px 20px; }
.daily-draw { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
.planet { position: relative; }
.planet.task-on { border-color: rgba(255,152,0,.8); box-shadow: 0 0 18px rgba(255,152,0,.35); }
.planet.task-done { border-color: rgba(102,187,106,.7); }
.task-badge { position: absolute; top: -8px; right: -4px; font-size: 11px; font-weight: 900; color: #1a1a2e; background: linear-gradient(135deg, #ffd54f, #ff8f00); border-radius: 999px; padding: 3px 10px; box-shadow: 0 2px 8px rgba(255,143,0,.5); }
.planet.task-done .task-badge { background: linear-gradient(135deg, #2E7D32, #4caf50); color: var(--ink); }
.task-line { color: #B26A00; font-weight: 700; }
.chest-line { color: #F39C12; font-weight: 900; font-size: 17px; }

/* ---------- v9 家长中心/进度恢复 ---------- */
.rec-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; font-size: 16px; color: #2D3436; }
.rec-row b { min-width: 56px; font-size: 24px; color: #F39C12; }
.rec-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: var(--ink); font-size: 24px; font-weight: 900; cursor: pointer; }
.rec-btn:active { background: rgba(255,213,79,.35); transform: scale(.92); }

/* ---------- v16 识字学习页: 左右布局(左认字+描红 / 右关联学习) ---------- */
.learn-card.hz-split {
  display: grid;
  grid-template-columns: minmax(200px, 5fr) minmax(240px, 6fr);
  grid-template-rows: auto auto auto auto;
  column-gap: 22px; row-gap: 3px;
  max-width: 730px; min-height: 0;
  align-items: center; justify-items: center;
  padding: 20px 24px;
}
/* 左列: 大字 → 拼音 → 描红(字正下方, 含看笔顺/我来写); 组词已移至右列组词盒(v128) */
.learn-card.hz-split .learn-big { grid-column: 1; grid-row: 1; font-size: 66px; }
.learn-card.hz-split .learn-title { grid-column: 1; grid-row: 2; margin: 2px 0 4px; }
.learn-card.hz-split .learn-text { display: none; }
.learn-card.hz-split #write-panel { grid-column: 1; grid-row: 3; margin-top: 10px; }
/* 右列: 组词盒(常驻) → 关联学习(反义词/造句/成语/典故/古诗) + 朗读按钮(读给我听/我读一读) */
.learn-card.hz-split .right-col { grid-column: 2; grid-row: 1 / span 3; align-self: start; justify-self: stretch; }
/* v128 组词盒: 一词一 chip, 拼音在上字在下, 点读 */
.hz-words-box { width: 100%; background: linear-gradient(180deg,#FFFDF6 0%,#FFF6E2 100%); border: 2px solid #EFD9A6; border-radius: 16px; padding: 9px 12px 11px; box-shadow: 0 3px 10px rgba(180,140,60,.12); }
.hwb-title { font-size: 14px; font-weight: 800; color: #A6742A; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.hwb-list { display: flex; flex-wrap: wrap; gap: 7px; }
.hwb-word { display: inline-flex; flex-direction: column; align-items: center; background: #fff; border: 1.5px solid #F0DEB2; border-radius: 11px; padding: 4px 10px 5px; cursor: pointer; font-size: 18px; font-weight: 800; color: #4A3B22; font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif; line-height: 1.25; transition: transform .12s, background .12s; }
.hwb-word i { font-style: normal; font-size: 10px; color: #B08D4F; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 600; line-height: 1.1; }
.hwb-word:active { transform: scale(.92); background: #FFF1CE; }
.learn-card.hz-split .hz-sent { font-size: 16px; padding: 8px 10px; }
.learn-card.hz-split .hz-idiom, .learn-card.hz-split .hz-allusion, .learn-card.hz-split .hz-poem, .learn-card.hz-split .hz-antonym { font-size: 15px; padding: 8px 10px; }
@media (max-width: 700px) {
  /* 窄屏(竖屏)回退上下布局 */
  .learn-card.hz-split { display: flex; flex-direction: column; }
  .learn-card.hz-split .learn-big { font-size: 60px; }
  .learn-card.hz-split .right-col { width: 100%; }
}

/* v25 拼音形象卡: 左列(字母+声调+形象图+例词), 右列田字格描红 */
.learn-card.py-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto auto;
  align-items: center;
  justify-items: center;
  column-gap: 14px;
}
.learn-card.py-split .learn-big { grid-column: 1; grid-row: 1; font-size: 72px; }
.learn-card.py-split .py-tones { grid-column: 1; grid-row: 2; }
.learn-card.py-split .py-pic { grid-column: 1; grid-row: 3; font-size: 72px; }
.learn-card.py-split .learn-title { grid-column: 1; grid-row: 4; }
.learn-card.py-split .learn-text { grid-column: 1; grid-row: 5; }
.learn-card.py-split #write-panel { grid-column: 2; grid-row: 1 / span 5; }
.py-pic { font-size: 72px; line-height: 1.15; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.py-tones { font-size: 30px; font-weight: 800; color: #F39C12; letter-spacing: 6px; margin-top: 4px; }
.py-tones .tone { display: inline-block; cursor: pointer; }
.py-tones .tone.reading { color: #4A5055; animation: tone-pop .55s ease; }
@keyframes tone-pop {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-10px) scale(1.4); }
  60% { transform: translateY(0) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}
@media (max-width: 700px) {
  .learn-card.py-split { display: flex; flex-direction: column; }
  .learn-card.py-split .learn-big { font-size: 60px; }
  .learn-card.py-split .py-pic { font-size: 60px; }
  .learn-card.py-split .py-tones { font-size: 24px; letter-spacing: 4px; }
}

/* v26 英语字母: 左字母+单词, 右描红 */
.learn-card.en-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  max-width: 730px;
  align-items: center;
  justify-items: center;
}
.learn-card.en-split .learn-big { grid-column: 1; grid-row: 1; font-size: 100px; }
.learn-card.en-split .learn-text { grid-column: 1; grid-row: 2; font-size: 32px; font-weight: 700; }
.learn-card.en-split #write-panel { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 700px) {
  .learn-card.en-split { display: flex; flex-direction: column; }
  .learn-card.en-split #write-panel { width: 100%; }
}

/* ---------- v9 存档导出/导入 ---------- */
.save-io { width: 100%; height: 90px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.3); color: #636E72; font-size: 12px; padding: 10px; margin: 10px 0; resize: none; word-break: break-all; }

/* ---------- v9 课外班奖励抽奖券 ---------- */
.btn-bonus { margin-top: 12px; background: linear-gradient(135deg, #69f0ae, #00c853); color: #053b1e; box-shadow: 0 4px 20px rgba(0,200,83,.45), inset 0 1px 0 rgba(255,255,255,.6); animation: bonusGlow 1.6s infinite; }
@keyframes bonusGlow { 50% { box-shadow: 0 4px 32px rgba(105,240,174,.8), inset 0 1px 0 rgba(255,255,255,.6); } }

/* ---------- v11 故事绘本 ---------- */
/* v78 列表翻页: 小图标一页12个(桌面4列x3行, 手机3列x4行) */
#hzstory-list { flex-direction: column; align-items: center; }   /* 网格+翻页条上下排列, 防止flex横向挤压 */
.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 720px; }
.story-card {
  background: rgba(255,255,255,.7); border: 2px solid rgba(255,255,255,.22);
  border-radius: 16px; padding: 12px 6px 10px; text-align: center; cursor: pointer;
  transition: transform .15s;
}
.story-card:active { transform: scale(.95); }
.story-cover { font-size: 38px; }
.story-name { font-size: 15px; font-weight: 800; margin-top: 6px; }
.story-meta { font-size: 11px; color: #636E72; margin-top: 4px; line-height: 1.4; }
.story-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.story-pager .page-info { font-size: 14px; font-weight: 700; color: var(--ink-mid); }
.story-pager .btn-ghost { padding: 8px 16px; font-size: 14px; }
.story-pager .btn-ghost:disabled { opacity: .35; cursor: default; }
@media (max-width: 480px) {
  .story-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .story-cover { font-size: 32px; }
  .story-name { font-size: 13px; }
  .story-meta { font-size: 10px; }
}
.btn-story { background: linear-gradient(135deg, #4dd0e1, #0097a7); color: var(--ink);
  box-shadow: 0 4px 20px rgba(0,151,167,.45), inset 0 1px 0 rgba(255,255,255,.4); }
.hzstory-page { width: 100%; max-width: 640px; text-align: center; }
.hzstory-title { font-size: 24px; font-weight: 900; color: #F39C12; }
.hzstory-emoji { font-size: 60px; letter-spacing: 8px; margin: 18px 0; }
.hzstory-text {
  font-size: 30px; line-height: 1.9; font-weight: 700; color: var(--ink);
  background: #FFFDF6; border: 2px solid #F0E3C0;
  border-radius: 18px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(120,90,20,.08);
}
.st-known { color: #2E9E5B; }              /* 认识的字: 深绿(浅色底可读) */
.st-unknown { color: var(--ink); }          /* 生字: 深灰墨色, 不再用透明白 */
.story-dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(60,50,30,.18); margin: 0 4px; }
.story-dots i.on { background: #FFB300; }
.hzstory-nav { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
#hzstory-back { margin-top: 18px; }

/* ---------- v42 小短文·重点字 + 想一想 (v78 改浅色底适配) ---------- */
.hzstory-keys {
  font-size: 21px; line-height: 2; margin: 4px 0 14px; text-align: left;
  background: #FFFDF6; border: 2px solid #F0E3C0;
  border-radius: 14px; padding: 12px 14px; color: var(--ink);
}
.hzstory-keys b { display: block; font-size: 15px; color: #E65100; margin-bottom: 6px; }
.hzstory-keys .st-known { color: #2E9E5B; margin-right: 6px; }
.hzstory-keys .st-unknown { color: var(--ink); margin-right: 6px; }
.hzstory-keys rt { font-size: 11px; color: #1565C0; }
.hzstory-ask {
  margin: 4px 0 14px; text-align: left;
  background: #FFFDF6; border: 2px solid #F0E3C0;
  border-radius: 14px; padding: 12px 14px;
}
.hzstory-ask b { display: block; font-size: 15px; color: #E65100; margin-bottom: 8px; }
.hzstory-q { margin-bottom: 12px; }
.hzstory-qq { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 5px; line-height: 1.5; }
.hzstory-aa { display: inline-block; font-size: 14px; color: #00838F; cursor: pointer; padding: 4px 12px; border: 1px solid rgba(0,131,143,.5); border-radius: 10px; }
.hzstory-atext { display: none; font-size: 16px; color: #6D4C41; margin-top: 7px; line-height: 1.6; }
.hzstory-atext.show { display: block; }

/* ---------- v12 Karaoke逐字高亮 + 拼音注音 + 跟读 ---------- */
.karaoke-on { color: #F39C12 !important; text-shadow: 0 0 14px rgba(255,213,79,.9); transform: scale(1.15); display: inline-block; transition: transform .12s; }
/* v171 诗词卡拉OK: 读到的字金光放大(拼音一起亮), 读到哪张卡哪张卡亮 */
.poem-verses .karaoke-on { color: #E65100 !important; text-shadow: 0 0 15px rgba(255,193,7,.95); }
.poem-verses .zi.karaoke-on .py { color: #F39C12; }
.poem-left.reading .poem-name { color: #E65100; text-shadow: 0 0 12px rgba(255,193,7,.9); }
.poem-left.reading .poem-avatar { box-shadow: 0 0 0 4px #FFE082, 0 0 26px rgba(255,193,7,.9); }
.poem-yi.reading, .poem-knowledge.reading {
  background: #FFF8E1;
  box-shadow: 0 0 0 3px rgba(255,193,7,.7), 0 8px 20px rgba(255,170,40,.3);
}
.hzstory-text ruby { ruby-align: center; }
.hzstory-text rt { font-size: 13px; color: #1565C0; font-weight: 400; }
.btn-read { background: linear-gradient(135deg, #ce93d8, #8e24aa); box-shadow: 0 4px 14px rgba(142,36,170,.42); margin-left: 10px; }
.btn-read.listening { animation: readPulse .5s ease-in-out infinite alternate; background: linear-gradient(135deg, #ef5350, #c62828); }

/* ---------- v14 棋盘格口算 ---------- */
@keyframes boardLit { 50% { box-shadow: 0 0 18px rgba(255,193,7,.85); } }
.board-grid { display: grid; gap: 6px; width: 100%; max-width: 480px; margin: 10px auto; flex-shrink: 0; }
.board-cell { aspect-ratio: 1; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; background: #fff8e7; color: #795548;
  box-shadow: 0 3px 0 #e0cfa8; cursor: pointer; transition: transform .15s, background .2s; user-select: none; }
.board-cell.dark { background: #ffe9b8; }
.board-cell:active { transform: scale(.94); }
.board-cell.cur { outline: 3px solid #ff9800; transform: scale(1.07); z-index: 1; }
.board-cell.lit { background: linear-gradient(135deg, #ffd54f, #ffb300); color: #fff; font-size: 26px;
  box-shadow: 0 0 14px rgba(255,193,7,.7); animation: boardLit 1.4s infinite; cursor: default; }
.board-quiz { width: 100%; max-width: 480px; background: #fff; border-radius: 16px; padding: 14px;
  margin: 8px auto 0; box-shadow: 0 4px 16px rgba(0,0,0,.1); flex-shrink: 0; }
.board-q { font-size: 32px; font-weight: 800; text-align: center; color: #4e342e; margin-bottom: 10px; }
.board-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.board-opts .opt { font-size: 22px; padding: 10px 0; }

/* ===== v96 成语四格漫画 → v222 深空绘本版 ===== */
/* v222 排版重做(参照豆包参考图): 深空蓝紫纯色渐变底(无粒子无星云)、2×2四格连环画、
   拼音+文字直接嵌画内空白处(无卡片无文字框)、底部磨砂玻璃释义条(拼音+大字)、
   左下角小卫士头像64px红金描边轻发光、能量青描边+奖励金点缀 */
#screen-learn.comic-space {
  background: linear-gradient(165deg, #242C5E 0%, #2E1F5E 52%, #1B1546 100%);
}
#screen-learn.comic-space::before { background-image: none; }   /* 极简: 关掉星尘粒子 */
.comic-space .learn-head { color: rgba(235,242,255,.78); }
.comic-space .learn-badge { background: rgba(127,231,255,.14); border-color: rgba(127,231,255,.4); color: #9FE8FF; }
.comic-space .learn-dots i { background: rgba(255,255,255,.25); }
.comic-space .learn-dots i.on { background: #7FE7FF; box-shadow: 0 0 8px rgba(127,231,255,.8); }
.learn-card.comic {
  justify-content: flex-start; max-width: 620px; padding: 12px 26px 16px;   /* v226 主人要求缩小35%: 960→620 一屏完整显示 */
  background: transparent; border: none; box-shadow: none; backdrop-filter: none;
}
.learn-card.comic.guofeng { background: transparent; border: none; }   /* 盖掉国风米黄底 */
#screen-learn:has(.learn-card.comic) .learn-head { max-width: 620px; }
/* v140 诗词卡片加宽后, 顶部标题栏同步对齐(与comic同款写法) */
#screen-learn:has(.learn-card.poem) .learn-head { max-width: min(704px, 96vw); }
.comic-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.comic-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 40px; }
.comic-head.story { flex-direction: row; align-items: baseline; justify-content: center; gap: 10px; }   /* 典故: 标题+出处并排一行 */
.comic-title {
  font-family: var(--f-poem, "Yuanti SC", "YouYuan", "幼圆", "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: clamp(30px, 4.4vw, 42px); font-weight: 900; color: #F5F8FF; letter-spacing: 8px; line-height: 1.15;
  text-shadow: 0 0 18px rgba(127,231,255,.45), 0 2px 6px rgba(8,10,40,.6);
}
.comic-pinyin { font-size: clamp(14px, 1.9vw, 18px); color: #8FE9FF; letter-spacing: 4px; font-weight: 700; text-shadow: 0 0 12px rgba(127,231,255,.5); }
.comic-origin {
  font-size: clamp(12px, 1.5vw, 14px); color: #C9D6FF; font-weight: 700;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 3px 14px; backdrop-filter: blur(8px); margin-top: 4px;
}
.comic-origin:empty { display: none; }   /* 典故无出处字段: 空chip不渲染 */
.comic-pinyin:empty { display: none; }   /* v291 成语去拼音后空行不占位 */
.comic-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comic-cell {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(127,231,255,.55); border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(127,231,255,.12), 0 8px 24px rgba(6,8,32,.45), inset 0 0 22px rgba(127,231,255,.06);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.comic-cell:not(.has-img) { padding: 16px 12px 14px; min-height: 200px; justify-content: center; }   /* 无图兜底: 内容垂直居中, 序号章在留白区不压字 */
.comic-cell.reading {
  border-color: #7FE7FF;
  box-shadow: 0 0 0 4px rgba(127,231,255,.35), 0 0 26px rgba(127,231,255,.45), 0 10px 26px rgba(6,8,32,.5);
  transform: scale(1.03); z-index: 2;
}
.comic-num {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  width: 26px; height: 26px; line-height: 23px; text-align: center;
  font-size: 14px; font-weight: 900; color: #8FE9FF;
  background: rgba(10,14,44,.62); border: 1.5px solid rgba(127,231,255,.8); border-radius: 50%;
  backdrop-filter: blur(4px); box-shadow: 0 2px 6px rgba(6,8,32,.4);
}
.comic-emoji { font-size: 60px; line-height: 1.1; margin-top: 8px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
/* AI绘本配图: 真插画满铺漫画格; .comic-fig 是相对定位容器, 文字直接嵌画内 */
.comic-fig { position: relative; width: 100%; }
.comic-img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: contain; background: #1A2046; }
.comic-cell.has-img { padding: 0; min-height: 0; }
/* 图平铺占满格子(正方形格子不裁切) + 旁白字幕写进图内部下方 */
.comic-cell.has-img .comic-fig { display: block; position: relative; }
.comic-cell.has-img .comic-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.comic-cell.has-img .comic-cap { position: absolute; left: 0; right: 0; bottom: 0; border-top: none; text-align: center; padding: 6px 12px 14px; background: none; color: #fff; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 8px rgba(0,0,0,.65), 0 2px 14px rgba(0,0,0,.55); }
.gone { display: none !important; }
.co-panel-img { width: 100%; border-radius: 10px; display: block; aspect-ratio: 4/3; object-fit: cover; background: #f7f1e3; }
/* v222b 底部浅色解说带(主人修订): 文字挪到画面下方+浅色磨砂底, ruby逐字注音跟着字走不成行 */
.comic-fig .comic-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: rgba(255,253,246,.93); backdrop-filter: blur(3px);
  border-top: 1px solid rgba(255,255,255,.7);
  padding: 6px 12px 7px; text-align: center;
}
.comic-cap {
  width: 100%;
  font-family: var(--f-poem, "Yuanti SC", "YouYuan", "幼圆", "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: clamp(13px, 1.55vw, 16px); font-weight: 800; color: #4A4060; line-height: 1.15;
}
.comic-cap ruby { ruby-align: center; }
.comic-cap rt { font-size: .52em; font-weight: 700; color: #8E97C4; letter-spacing: 0; }
/* 无图回退: 解说带回到正常文档流 */
.comic-fig.noimg .comic-cap { position: static; background: rgba(255,253,246,.96); border-radius: 12px; margin-top: 8px; }
/* 光之国解说员: 小卫士左下角红金光头像, IP永远在且形象固定 */
.comic-hero {
  position: absolute; left: -8px; bottom: -8px; width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover; z-index: 5;
  border: 3px solid #FFC857; box-shadow: 0 0 16px rgba(255,150,60,.65), 0 4px 12px rgba(6,8,32,.5);
  animation: heroFloat 3s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* 无图回退: 容器取消定位, 气泡/解说回到正常文档流 */
.comic-fig.noimg { position: static; }
.comic-fig.noimg .comic-bubble { position: static; transform: none; margin: 10px auto 0; }
.comic-fig.noimg .comic-tip,
.comic-tip.noart { position: static; transform: none; margin: 8px auto 4px; }
.comic-bubble {
  position: relative; margin-top: 10px; max-width: 92%;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,200,87,.55); border-radius: 14px;
  padding: 7px 14px; font-size: clamp(13px, 1.9vw, 18px); font-weight: 800; color: #FFE9A8; line-height: 1.4;
}
.comic-scene {
  margin-top: 8px; font-size: clamp(14px, 1.8vw, 18px); line-height: 1.6; color: #E8EEFF;
  text-align: center; font-weight: 600;
}
.story-cell .comic-scene { margin-top: 12px; }
/* v222 底部磨砂玻璃释义条: ⭐ + ruby逐字注音的"名字：释义"银白大字 */
.comic-meaning {
  width: calc(100% - 62px); margin-left: 62px;   /* 左端让给左下角小卫士头像, 不被压住 */
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(255,255,255,.10); border: 1.5px solid rgba(255,255,255,.20); border-radius: 22px;
  padding: 5px 16px; backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(6,8,32,.4), inset 0 1px 0 rgba(255,255,255,.14);
  margin-top: 2px;
}
.comic-meaning-star { flex: none; font-size: clamp(20px, 2.6vw, 26px); filter: drop-shadow(0 0 8px rgba(255,200,87,.85)); }
.comic-meaning-body { flex: 1; min-width: 0; }
.comic-meaning-text { font-size: clamp(13px, 1.4vw, 15px); font-weight: 800; color: #F5F8FF; line-height: 1.5; white-space: nowrap; }
.comic-meaning-text b { color: #FFD98A; }
.comic-meaning-text ruby { ruby-align: center; }
.comic-meaning-text rt { font-size: .5em; font-weight: 700; color: rgba(170,225,255,.92); letter-spacing: 0; }
/* v222b 小星仔的话: 收进底部浅色解说带第二行(金棕小字), 不朗读 */
.comic-tip { margin-top: 1px; font-size: .76em; line-height: 1.5; color: #B8892B; font-weight: 700; }
.comic-cell.reading .comic-tip { color: #D9930D; }
/* 中高屏(1080p及以下横屏): 标题压一行 */
@media (max-height: 1100px) and (min-width: 700px) {
  .comic-head { flex-direction: row; align-items: baseline; gap: 14px; flex-wrap: wrap; justify-content: center; }
  .comic-title { font-size: clamp(24px, 3vw, 32px); letter-spacing: 5px; }
  .comic-origin { margin-top: 0; }
}
/* 横屏/矮屏(iPad横放/PC宽屏): 保持2×2, 卡片收窄+图裁16/10+间距收紧, 整屏一屏放下不滚动 */
@media (max-height: 900px) and (min-width: 700px) {
  .learn-card.comic { padding: 6px 22px 10px; max-width: 520px; }
  #screen-learn:has(.learn-card.comic) .learn-head { max-width: 520px; margin-bottom: 4px; }
  .comic-wrap { gap: 8px; }
  .comic-pinyin { font-size: 14px; }
  .comic-grid { gap: 10px; }
  .comic-img { aspect-ratio: 16/10; }   /* 矮屏: contain完整显示, 框架收扁保一屏放下 */
  .comic-cap { font-size: 13px; line-height: 1.15; }
  .comic-fig .comic-cap { padding: 4px 10px 5px; }
  .comic-meaning { padding: 6px 18px; }
  .comic-meaning-text { font-size: clamp(14px, 1.8vw, 17px); line-height: 1.7; }
  .comic-hero { width: 52px; height: 52px; }
  .comic-space .learn-dots { display: none; }   /* 矮屏让位: 进度点收起 */
  .comic-space .learn-nav .btn-ghost,
  .comic-space .learn-nav .btn-speak,
  .comic-space .learn-nav .btn-primary { padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
}
/* 超矮横屏(iPad横放768高): 再收一档——隐藏星球头部行, 卡片更窄(不裁图也保一屏放下) */
@media (max-height: 800px) and (min-width: 700px) {
  .comic-space .learn-head { display: none; }
  .learn-card.comic { padding-top: 10px; max-width: 455px; }
  .comic-img { aspect-ratio: 16/9; }   /* 超矮屏: 再收一档, contain完整显示 */
  .comic-meaning { padding-top: 5px; padding-bottom: 5px; }
}
@media (max-width: 560px) {
  .learn-card.comic { padding: 10px 12px 14px; }
  .comic-head { padding: 0 30px; }
  .comic-title { font-size: 24px; letter-spacing: 4px; }
  .comic-emoji { font-size: 46px; }
  .comic-grid { gap: 8px; }
  .comic-img { aspect-ratio: 3/2; }
  /* 手机窄屏: 取消图文并排, 回到图+底部旁白(格子太窄放不下并排) */
  .comic-cell.has-img .comic-fig { display: block; }
  .comic-cell.has-img .comic-img { flex: none; width: 100%; }
  .comic-cell.has-img .comic-cap { border-left: none; border-radius: 0 0 12px 12px; padding: 4px 6px 5px; display: block; }
  .comic-fig .comic-cap { position: static; padding: 4px 6px 5px; }   /* 手机竖屏: 解说带垫图下不压画 */
  .comic-cap { font-size: 11px; line-height: 1.15; }
  .comic-tip { font-size: 9px; }
  .comic-bubble { font-size: 13px; }
  .comic-scene { font-size: 13.5px; }
  .comic-space .learn-dots { display: none; }
  .comic-meaning { padding: 7px 12px; border-radius: 16px; width: calc(100% - 44px); margin-left: 44px; gap: 8px; }
  .comic-meaning-text { font-size: 13px; line-height: 1.75; }
  .comic-hero { width: 44px; height: 44px; left: -4px; bottom: -4px; }
}

/* v222b 家长中心: 今日任务抽奖调整的可点星球chip(未选半透明, 选中亮绿) */
.dt-pick { cursor: pointer; opacity: .55; transition: all .15s; }
.dt-pick.on { opacity: 1; background: rgba(102,187,106,.25); border-color: #66BB6A; color: #2E7D32; box-shadow: 0 0 0 2px rgba(102,187,106,.35); }

/* ===== v97 古诗拼音卡片(逐字ruby注音) ===== */
.poem-pinyin { margin-top: 12px; text-align: center; }
.poem-pinyin .poem-line {
  display: block; font-size: 30px; line-height: 1.55; letter-spacing: 2px;
  font-family: "Kaiti SC", "KaiTi", "STKaiti", serif; font-weight: 700; color: #3E3428;
}
.poem-pinyin ruby { ruby-align: center; }
.poem-pinyin rt {
  font-size: 13px; color: #8A6D3B; font-weight: 600; letter-spacing: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.poem-explain {
  margin-top: 12px; text-align: left;
  background: rgba(255,255,255,.72); border: 2px solid #FFC857; border-radius: 14px;
  padding: 12px 14px; font-size: 15px; line-height: 1.8; color: #5A5045;
}
.poem-explain .yi-label { display: block; font-size: 13px; font-weight: 800; color: #F39C12; margin-bottom: 4px; }

/* ===== v17 数的拆解树(数字+树枝连线, 数字直接写不套圈) ===== */
.split-tree { text-align: center; margin: 12px 0; }
.split-root { font-size: 60px; font-weight: 900; color: #E65100; text-align: center; line-height: 1.1; }
.split-lines { display: block; width: 220px; height: 60px; margin: 0 auto -6px; }
.split-branches { display: flex; justify-content: center; gap: 72px; }
.split-slot {
  width: 90px; height: 90px; line-height: 90px; text-align: center;
  font-size: 46px; font-weight: 900;
  color: #C0B79A; cursor: pointer; transition: all .2s;
}
.split-slot.filled { color: #1565C0; }
.split-slot.done { color: #2E7D32; transform: scale(1.1); }
.split-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 480px; margin: 24px auto 0; }
.split-num {
  width: 62px; height: 62px; font-size: 27px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFC857, #FF8A65); color: #fff;
  border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(255,138,101,.35);
  transition: transform .12s;
}
.split-num:active { transform: scale(.9); }

/* ===== v17 凑十找好朋友(点数字配对) ===== */
.friend-target { font-size: 84px; font-weight: 900; color: #D84315; text-align: center; margin: 18px 0 8px; line-height: 1.1; }
.friend-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 520px; margin: 12px auto; }
.friend-num {
  width: 66px; height: 66px; font-size: 29px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #4A90E2; color: #1565C0;
  border-radius: 50%; cursor: pointer; transition: all .18s;
}
.friend-num:active { transform: scale(.9); }
.friend-num.done { background: #43A047; border-color: #2E7D32; color: #fff; transform: scale(1.08); }
.friend-num.no { background: #ef5350; border-color: #c62828; color: #fff; }

/* ===== v17 认识时钟(Canvas大表盘) ===== */
.clock-face { width: 230px; height: 230px; margin: 8px auto 4px; display: block; border-radius: 50%; box-shadow: 0 8px 24px rgba(120,90,50,.18); }
#clock-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 480px; margin: 16px auto 0; }
#clock-opts .opt { min-width: 88px; text-align: center; }

/* ===== v17 分步填空(凑十/破十/平十/借十) ===== */
.step-title { font-size: 40px; font-weight: 900; color: #D84315; text-align: center; margin: 10px 0 4px; }
.step-label { font-size: 20px; font-weight: 700; color: #4A5055; text-align: center; margin: 4px 0 16px; }
.step-slot {
  width: 96px; height: 96px; font-size: 44px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  background: #fff; border: 3px dashed #C0B79A; border-radius: 20px;
  color: #B0A88E; transition: all .2s;
}
.step-slot.done { border-color: #43A047; border-style: solid; background: #C8E6C9; color: #2E7D32; transform: scale(1.08); }
.step-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 480px; margin: 0 auto; }
.step-num {
  width: 62px; height: 62px; font-size: 27px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFC857, #FF8A65); color: #fff;
  border-radius: 16px; cursor: pointer; box-shadow: 0 4px 10px rgba(255,138,101,.35);
  transition: transform .12s;
}
.step-num:active { transform: scale(.9); }
.step-num.no { background: #ef5350; }

/* ===== v18 十宫格建形(数的意义) —— v119 三模式 ===== */
.tf-tabs { display: flex; gap: 8px; margin: 6px 0 4px; }
.tf-tab {
  flex: 1; height: 52px; border: none; border-radius: 16px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #6B5D4A; background: rgba(255,255,255,.7);
  transition: all .18s;
}
.tf-tab.on { background: linear-gradient(135deg, #C39BD3, #9B59B6); color: #fff; box-shadow: 0 4px 12px rgba(155,89,182,.4); }
.tenframe-target { font-size: 56px; font-weight: 900; color: #9B59B6; text-align: center; margin: 6px 0 10px; line-height: 1.1; }
.tenframe-count { text-align: center; font-size: 15px; color: #8A7A94; font-weight: 700; margin-bottom: 10px; }
.tenframe-count b { color: #9B59B6; font-size: 20px; }
.tenframe-grid { display: grid; grid-template-columns: repeat(5, 62px); grid-template-rows: repeat(2, 62px); gap: 8px; justify-content: center; margin: 0 auto; }
.ten-cell {
  border: 2px solid #D8CBE0; border-radius: 12px; background: #fff;
  cursor: pointer; transition: all .12s; display: flex; align-items: center; justify-content: center;
}
.ten-cell.base { border-color: #E0D4EC; }
.ten-cell:active { transform: scale(.92); }
.ten-cell .dot { width: 34px; height: 34px; border-radius: 50%; background: #9B59B6; }
/* 模式一: 上面行紫 / 下面行橙(5+X分解) */
.ten-cell:not(.base):not(.shape):not(.red):not(.blue) .dot { background: #F39C12; }
/* 模式三: 红蓝加数 */
.ten-cell.red .dot { background: #E74C3C; }
.ten-cell.blue .dot { background: #3498DB; }
.ten-cell.drop { border-style: dashed; }
.ten-cell.drop-hover { border-color: #3498DB; box-shadow: 0 0 0 3px rgba(52,152,219,.35); }
/* 数字选项(v169 看形填数: 正方形数字卡, 主人拍板) */
.tf-opts { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.tf-opt {
  flex: none; width: 84px; max-width: 21vw; aspect-ratio: 1; height: auto; border: none; border-radius: 16px; cursor: pointer;
  font-size: 40px; font-weight: 900; color: #3E2A47; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transition: all .15s;
}
.tf-opt:active { transform: scale(.94); }
.tf-opt.ok { background: #43A047; color: #fff; }
.tf-opt.no { background: #F06292; color: #fff; }
/* v169 题目小场景(方位题看图理解): emoji分层布景, 三种背景 */
.battle-scene { position: relative; width: 100%; max-width: 360px; height: 180px; margin: 0 auto 10px; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 4px 12px rgba(0,0,0,.08); }
.battle-scene .sc-item { position: absolute; transform: translate(-50%, -50%); line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.battle-scene.sc-sky { background: linear-gradient(180deg, #bfe7fb 0%, #dff5ff 55%, #bfe8c0 56%, #a5d6a7 100%); }
.battle-scene.sc-room { background: linear-gradient(180deg, #fff3e0 0%, #ffe0b2 60%, #d7ccc8 61%, #bcaaa4 100%); }
.battle-scene.sc-line { background: linear-gradient(180deg, #e8f4fd 0%, #f0f9ff 72%, #c8e6c9 73%, #a5d6a7 100%); }
.battle-scene.sc-shelf { background: linear-gradient(180deg, #efebe9 0%, #d7ccc8 100%); }
.battle-scene.sc-shelf::before, .battle-scene.sc-shelf::after { content: ''; position: absolute; left: 6%; right: 6%; height: 8px; background: #a1887f; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.battle-scene.sc-shelf::before { top: 36%; }
.battle-scene.sc-shelf::after { top: 72%; }
/* 凑十法公式/托盘/结果 */
.tf-formula { text-align: center; font-size: 40px; font-weight: 900; margin: 4px 0 2px; }
.tf-formula .red { color: #E74C3C; }
.tf-formula .blue { color: #3498DB; }
.tf-tray { display: flex; gap: 10px; justify-content: center; min-height: 44px; margin-top: 14px; flex-wrap: wrap; }
.tf-blue { width: 36px; height: 36px; border-radius: 50%; background: #3498DB; box-shadow: 0 4px 10px rgba(52,152,219,.4); cursor: grab; touch-action: none; }
.tf-blue:active { cursor: grabbing; }
.tf-blue.used { opacity: .2; pointer-events: none; }
.tf-result { text-align: center; font-size: 22px; font-weight: 900; margin-top: 14px; min-height: 32px; color: #3E2A47; }
/* 小星仔气泡(带尾巴) */
.star-bubble {
  position: relative; margin: 16px auto 0; max-width: 360px;
  background: #fff; border-radius: 24px; padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); text-align: center;
  font-size: 16px; font-weight: 800; line-height: 1.6; color: #3E2A47;
}
.star-bubble::after {
  content: ''; position: absolute; left: 34px; bottom: -12px;
  width: 0; height: 0; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.star-bubble .b-avatar { font-size: 24px; margin-right: 6px; }
.star-bubble b.c-top { color: #9B59B6; }
.star-bubble b.c-bot { color: #F39C12; }

/* ===== v119 多米诺速数(三模式) ===== */
.dm-tabs { display: flex; gap: 8px; margin: 6px 0 4px; }
.dm-tab {
  flex: 1; height: 56px; border: none; border-radius: 16px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #6B5D4A; background: rgba(255,255,255,.7);
  transition: all .18s;
}
.dm-tab.on { background: linear-gradient(135deg, #FFB74D, #FF8A65); color: #fff; box-shadow: 0 4px 12px rgba(255,138,101,.4); }
.dm-target { text-align: center; font-size: 24px; font-weight: 900; margin: 8px 0 4px; color: #3E2A47; }
.dm-target b { color: #FF8A65; font-size: 34px; }
.dm-board { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 14px 4px; min-height: 120px; }
.dm-opts { display: flex; gap: 18px; justify-content: center; margin-top: 16px; }
/* v140 大正方形数字钮: 88x88圆角方块, 小孩子好按 */
.dm-opt {
  width: 88px; height: 88px; flex: none; border: none; border-radius: 24px; cursor: pointer;
  font-size: 46px; font-weight: 900; color: #3E2A47; background: #fff;
  box-shadow: 0 5px 14px rgba(0,0,0,.12), inset 0 -4px 0 rgba(0,0,0,.06);
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.dm-opt:active { transform: scale(.94); }
.dm-opt.ok { background: #43A047; color: #fff; }
.dm-opt.no { background: #F06292; color: #fff; }
.dm-check { margin: 16px auto 0; max-width: 280px; }
/* 骨牌 */
.domino {
  width: 76px; height: 148px; background: #fff; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.16), inset 0 0 0 1px #eee;
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  transition: transform .12s; flex: none;
}
.domino:active { transform: scale(.95); }
.domino .dm-half { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 8px; }
.domino .dm-divider { height: 0; border-top: 2px dashed #ccc; margin: 0 6px; }
.dm-slot { display: flex; align-items: center; justify-content: center; }
.dm-dot { width: 14px; height: 14px; border-radius: 50%; background: #222; }
.domino.sel { box-shadow: 0 0 0 4px #FFB74D, 0 6px 18px rgba(0,0,0,.22); transform: translateY(-4px); }
.domino.wrong { animation: dm-shake .4s; }
.domino.flash { animation: dm-goldflash .7s; }
@keyframes dm-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 50%{transform:translateX(6px)} 75%{transform:translateX(-4px)} }
@keyframes dm-goldflash { 0%,100%{box-shadow:0 0 0 0 rgba(255,211,102,0)} 50%{box-shadow:0 0 30px 12px rgba(255,211,102,.9)} }
@media (max-width: 400px) { .domino { width: 58px; height: 116px; } .dm-dot { width: 12px; height: 12px; } }
/* v150 拆分题问号骨牌: 右半待拆, 不可点 */
.domino.dm-qcard { cursor: default; }
.domino.dm-qcard:active { transform: none; }
.domino .dm-qhalf { display: flex; align-items: center; justify-content: center; }
.dm-qmark { font-size: 44px; font-weight: 900; color: #FFB74D; }

/* ===== v18 数字线填空(拐弯数/跳数) ===== */
.numline-label { font-size: 22px; font-weight: 800; color: #2D3436; text-align: center; margin: 16px 0 20px; }
.numline-seq { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 auto 24px; }
.nl-num {
  width: 60px; height: 60px; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: #E3F2FD; border: 2px solid #4A90E2; color: #1565C0; border-radius: 50%;
}
.nl-num.blank { background: #fff; border-style: dashed; border-color: #C0B79A; color: #B0A88E; }
.numline-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 480px; margin: 0 auto; }
.nl-opt {
  width: 66px; height: 66px; font-size: 29px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFC857, #FF8A65); color: #fff;
  border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(255,138,101,.35);
  transition: transform .12s;
}
.nl-opt:active { transform: scale(.9); }
.nl-opt.done { background: #43A047; }
.nl-opt.no { background: #ef5350; }

/* ===== v18 看词选图(英语) ===== */
.picpick-word { font-size: 48px; font-weight: 900; color: #1565C0; text-align: center; margin: 24px 0 28px; letter-spacing: 2px; }
.picpick-opts { display: grid; grid-template-columns: repeat(2, 130px); gap: 16px; justify-content: center; }
.picpick-opt {
  width: 130px; height: 110px; font-size: 56px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 3px solid #E3F2FD; border-radius: 20px;
  cursor: pointer; transition: all .18s; box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.picpick-opt.num { font-size: 44px; font-weight: 900; color: #1565C0; }
.picpick-opt:active { transform: scale(.92); }
.picpick-opt.done { background: #C8E6C9; border-color: #43A047; transform: scale(1.06); }
.picpick-opt.no { background: #FFCDD2; border-color: #ef5350; }

/* ===== v18 巧数正方体 ===== */
.cubes-canvas { display: block; margin: 8px auto 4px; }
.cubes-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 400px; margin: 16px auto 0; }
.cubes-opt {
  width: 72px; height: 72px; font-size: 34px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #64B5F6, #1E88E5); color: #fff;
  border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(30,136,229,.35);
  transition: transform .12s;
}
.cubes-opt:active { transform: scale(.9); }
.cubes-opt.done { background: #43A047; }
.cubes-opt.no { background: #ef5350; }

/* ===== v18 找邻居(前?中间数字后?) ===== */
.neighbor-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0 24px; }
.neighbor-slot {
  width: 84px; height: 84px; font-size: 40px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 3px dashed #C0B79A; border-radius: 50%;
  color: #B0A88E; cursor: pointer; transition: all .2s;
}
.neighbor-slot.filled { border-style: solid; border-color: #4A90E2; background: #E3F2FD; color: #1565C0; }
.neighbor-slot.done { border-color: #43A047; background: #C8E6C9; color: #2E7D32; }
.neighbor-mid {
  width: 84px; height: 84px; font-size: 44px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFC857, #FF8A65); color: #fff;
  border-radius: 50%; box-shadow: 0 4px 10px rgba(255,138,101,.35);
}
.neighbor-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 420px; margin: 0 auto; }
.neighbor-num {
  width: 64px; height: 64px; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFC857, #FF8A65); color: #fff;
  border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(255,138,101,.35);
  transition: transform .12s;
}
.neighbor-num:active { transform: scale(.9); }

/* ===== v19 树状图填空(学而思口诀, 数字+树枝) ===== */
.tree { text-align: center; margin: 8px 0; }
.tree-top { font-size: 38px; font-weight: 900; color: #E65100; line-height: 1.2; }
.tree-split-label { font-size: 18px; font-weight: 700; color: #4A5055; margin: 6px 0 0; }
.tree-lines { display: block; width: 250px; height: 48px; margin: 0 auto -4px; }
.tree-lines line { stroke: #F4A460; stroke-width: 5; stroke-linecap: round; }
.tree-branches { display: flex; justify-content: center; gap: 100px; }
.tree-slot { width: 70px; height: 64px; line-height: 64px; font-size: 36px; font-weight: 900; color: #C0B79A; }
.tree-slot.done { color: #2E7D32; }
.tree-result-label { font-size: 18px; font-weight: 700; color: #4A5055; margin-top: 4px; }
.tree-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 420px; margin: 18px auto 0; }
.tree-num {
  width: 62px; height: 62px; line-height: 62px; text-align: center;
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #FFC857, #FF8A65); color: #fff;
  border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(255,138,101,.35);
  transition: transform .12s;
}
.tree-num:active { transform: scale(.9); }
.tree-num.no { background: #ef5350; }

/* ===== v20 诗词统计主页 ===== */
.poem-overview { display: flex; gap: 14px; justify-content: center; margin: 12px 0 16px; }
.ov-item {
  flex: 1; max-width: 120px; text-align: center;
  padding: 14px 8px; border-radius: 16px; font-size: 13px; font-weight: 700; color: #4A5055;
  background: rgba(255,255,255,.7); box-shadow: 0 4px 12px rgba(120,90,50,.1);
}
.ov-item b { display: block; font-size: 26px; margin-top: 2px; }
.ov-item.done b { color: #43A047; }
.ov-item.learning b { color: #F39C12; }
.ov-item.unread b { color: #9E9E9E; }
.poem-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.poem-tab {
  flex: 1; max-width: 110px; padding: 10px 0; border: none; border-radius: 999px;
  font-size: 15px; font-weight: 800; color: #6B5D4A; background: rgba(255,255,255,.6); cursor: pointer;
}
.poem-tab.on { background: linear-gradient(135deg, #FFC857, #FF8A65); color: #fff; box-shadow: 0 4px 14px rgba(255,138,101,.4); }
.poem-groups { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 580px; margin: 0 auto; }
/* v115 三档分类大卡片(启蒙/成长/进阶) + 掌握进度条 */
.poem-tier {
  position: relative; text-align: left; padding: 20px 20px 16px;
  border-radius: 24px; cursor: pointer; overflow: hidden;
  background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 26px rgba(120,90,50,.10), inset 0 1px 0 #fff;
  transition: transform .15s, box-shadow .15s;
}
.poem-tier:active { transform: scale(.97); }
.poem-tier::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.poem-tier:nth-child(1)::before { background: linear-gradient(180deg, #C5E0A5, #9CCB6E); }
.poem-tier:nth-child(2)::before { background: linear-gradient(180deg, #7CCFC3, #5AB8AC); }
.poem-tier:nth-child(3)::before { background: linear-gradient(180deg, #FFCE9A, #FFAE6E); }
.pt-head { display: flex; align-items: center; gap: 16px; }
.pt-icon {
  width: 56px; height: 56px; border-radius: 18px; flex: none; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255,255,255,.6), 0 4px 10px rgba(0,0,0,.06);
}
.poem-tier:nth-child(1) .pt-icon { background: linear-gradient(135deg, #EEF7E2, #DCEBC8); }
.poem-tier:nth-child(2) .pt-icon { background: linear-gradient(135deg, #E4F5F2, #CBE8E3); }
.poem-tier:nth-child(3) .pt-icon { background: linear-gradient(135deg, #FFF2E3, #FFE4C4); }
.pt-info { flex: 1; min-width: 0; }
.pt-name { font-size: 19px; font-weight: 900; color: #1E2426; letter-spacing: 1px; }
.pt-desc { font-size: 12px; color: #636E72; margin-top: 3px; }
.pt-count { font-size: 22px; font-weight: 900; }
.pt-count small { font-size: 13px; color: #9E9E9E; font-weight: 700; }
.poem-tier:nth-child(1) .pt-count { color: #9CCB6E; }
.poem-tier:nth-child(2) .pt-count { color: #5AB8AC; }
.poem-tier:nth-child(3) .pt-count { color: #FFAE6E; }
.pt-bar { height: 12px; border-radius: 999px; background: rgba(0,0,0,.07); margin-top: 14px; overflow: hidden; }
.pt-fill { height: 100%; border-radius: 999px; position: relative; transition: width .5s cubic-bezier(.22,1,.36,1); }
.pt-fill::after { content: ''; position: absolute; right: 3px; top: 3px; bottom: 3px; width: 6px; border-radius: 50%; background: rgba(255,255,255,.7); }
.poem-tier:nth-child(1) .pt-fill { background: linear-gradient(90deg, #C5E0A5, #9CCB6E); }
.poem-tier:nth-child(2) .pt-fill { background: linear-gradient(90deg, #7CCFC3, #5AB8AC); }
.poem-tier:nth-child(3) .pt-fill { background: linear-gradient(90deg, #FFCE9A, #FFAE6E); }
.pt-label { font-size: 12px; font-weight: 800; margin-top: 8px; text-align: right; }
.poem-tier:nth-child(1) .pt-label { color: #9CCB6E; }
.poem-tier:nth-child(2) .pt-label { color: #5AB8AC; }
.poem-tier:nth-child(3) .pt-label { color: #FFAE6E; }
.poem-lists { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ===== v20 诗词分类列表 ===== */
.poem-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; width: 100%; max-width: 560px; margin: 8px auto; padding: 0 4px; }
.poem-diff-title {
  grid-column: 1 / -1;
  font-size: 15px; font-weight: 900; color: #F39C12; letter-spacing: 1px;
  margin: 8px 0 2px; text-align: center;
}
.poem-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 8px; border-radius: 14px; cursor: pointer; min-height: 76px;
  background: rgba(255,255,255,.72); box-shadow: 0 3px 10px rgba(120,90,50,.08);
}
.pi-name { font-size: 16px; font-weight: 800; color: #2D3436; text-align: center; }
.pi-status { font-size: 12px; font-weight: 700; margin-top: 4px; }
.poem-item.mastered .pi-status { color: #43A047; }
.poem-item.learning .pi-status { color: #F39C12; }
.poem-item.unread .pi-status { color: #9E9E9E; }
#poem-list-back { margin: 16px auto 0; }
.poem-pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 14px; }
.pager-info { font-size: 15px; font-weight: 800; color: #4A5055; }

/* ===== v20 诗词学习页: 作者徽章 ===== */
.poem-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.poem-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #8A6D3B;
  background: rgba(255,255,255,.65); border: 1px solid rgba(212,173,58,.4);
}

/* ===== v21 诗词学习页四标签(作者简介/译文/字词/知识点) ===== */
.pm-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.pm-tab {
  flex: 1; min-height: 40px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 800; color: #6B5D4A; background: rgba(255,255,255,.6);
  transition: all .2s;
}
.pm-tab.on {
  background: linear-gradient(135deg, #FFC857, #FF8A65); color: #fff;
  box-shadow: 0 4px 14px rgba(255,138,101,.4);
}
.pm-panel { width: 100%; }
.pm-taste {
  background: rgba(255,255,255,.78); border: 2px solid #FFC857; border-radius: 20px;
  padding: 14px; text-align: left;
}
.pm-taste .star { font-size: 15px; font-weight: 900; color: #F39C12; margin-bottom: 6px; }
.pm-taste p { font-size: 16px; line-height: 1.8; color: #3E3428; }

/* ===== v115 诗词详情三栏布局(作者简介/白话译文/重点字词) + 底部知识点 ===== */
.pm-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.pm-col {
  position: relative; text-align: left; padding: 13px 14px 14px;
  border-radius: 18px; background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(120,90,50,.09), inset 0 1px 0 #fff;
  overflow: hidden;
}
.pm-col::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.pm-col.intro::before { background: linear-gradient(90deg, #FFC9BC, #FFA48F); }
.pm-col.yi::before { background: linear-gradient(90deg, #A8CFFF, #74BDF8); }
.pm-col.note::before { background: linear-gradient(90deg, #A9E0BE, #6FCB7D); }
.pm-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pm-col-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.pm-col.intro .pm-col-icon { background: #FFE6DE; }
.pm-col.yi .pm-col-icon { background: #DFEEFF; }
.pm-col.note .pm-col-icon { background: #DFF5E7; }
.pm-col-title { font-size: 14px; font-weight: 900; color: #1E2426; }
.pm-col p { font-size: 13px; line-height: 1.75; color: #4A5055; margin: 0; }
.pm-know {
  position: relative; margin-top: 14px; padding: 13px 16px 13px 54px; text-align: left;
  border-radius: 18px; background: linear-gradient(135deg, #FFF7E0, #FFEFD4);
  border: 1.5px solid rgba(240,180,41,.35); box-shadow: 0 5px 16px rgba(240,180,41,.13);
}
.pm-know-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD166, #F0B429); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(240,180,41,.4);
}
.pm-know p { font-size: 13.5px; line-height: 1.75; color: #7A6A3A; margin: 0; }
.pm-know p b { color: #C08A00; }
@media (max-width: 560px) { .pm-cols { grid-template-columns: 1fr; } }

/* v115 诗句宣纸卡片(楷体大字 + 拼音注音 + 红印章) */
.poem-pinyin {
  position: relative; margin-top: 14px; text-align: center;
  background: linear-gradient(180deg, #FFFEF9, #FFF8EC);
  border: 1.5px solid rgba(201,162,75,.32); border-radius: 22px;
  padding: 24px 20px 32px;
  box-shadow: 0 8px 26px rgba(120,90,50,.12), inset 0 1px 0 #fff;
}
.poem-pinyin::after {
  content: '诗'; position: absolute; right: 18px; bottom: 16px;
  width: 32px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, #E85D4A, #C93B2B); color: #fff;
  font-size: 18px; font-weight: 900; line-height: 32px; text-align: center;
  opacity: .92; transform: rotate(-5deg); box-shadow: 0 3px 8px rgba(201,59,43,.3);
}
.poem-pinyin .poem-line {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2px;
  font-size: 30px; line-height: 2.05; color: #3E3428; font-weight: 700; letter-spacing: 7px;
  font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif;
}
.poem-pinyin .poem-line ruby rt {
  font-size: 12px; color: #9A8A6B; letter-spacing: 0; font-weight: 500;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ===== v134 诗词详情: 按主人模板重做——奶油宣纸大卡片(左:头像/诗名/诗人 右:诗句直接印在纸上)
   + 下方三栏卡(作者简介/白话译文/重点字词) + 知识点条; 字体改幼圆/圆体更圆润可爱;
   拼音 inline-flex 纵排各占一行(根治叠字); 分句段 .seg 只在标点处换行 ===== */
.learn-card.poem { width: 100%; max-width: min(704px, 96vw); padding: 14px 12px; justify-content: flex-start;
  --f-poem: "Yuanti SC", "YouYuan", "幼圆", "PingFang SC", "Microsoft YaHei", sans-serif; }
.learn-card.poem .learn-text { white-space: normal; width: 100%; text-align: left; }
.poem-stage { display: flex; flex-direction: column; gap: 8px; width: 100%; }
/* 奶油宣纸大卡片 */
.poem-paper {
  position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start;
  background: linear-gradient(180deg, #FFFEF9, #FFF5E0);
  border: 2px solid rgba(201,162,75,.38); border-radius: 24px;
  padding: 18px 20px 20px; box-shadow: 0 8px 24px rgba(120,90,50,.14), inset 0 0 0 4px rgba(255,255,255,.5);
}
/* 红印章压右上角 */
.poem-paper::after {
  content: '诗'; position: absolute; right: 12px; top: 12px; z-index: 1;
  width: 27px; height: 27px; border-radius: 6px;
  background: linear-gradient(135deg, #E85D4A, #C93B2B); color: #fff;
  font-size: 15px; font-weight: 900; line-height: 27px; text-align: center;
  opacity: .92; transform: rotate(6deg); box-shadow: 0 2px 6px rgba(201,59,43,.3);
}
/* 角落小装饰: 青草+花瓣 */
.pp-deco { position: absolute; z-index: 0; pointer-events: none; opacity: .85; }
.pp-deco.d1 { left: 8px; bottom: 4px; font-size: 22px; }
.pp-deco.d2 { right: 44px; top: 8px; font-size: 14px; opacity: .7; transform: rotate(20deg); }
/* 古风小书童吉祥物(图片缺失自动隐藏) */
.poem-mascot {
  position: absolute; right: 10px; bottom: 6px; width: 62px; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(120,90,50,.25));
  animation: poem-float 3s ease-in-out infinite;
}
@keyframes poem-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
/* 左栏: 头像+诗名+诗人+体裁 */
.poem-left { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; position: relative; z-index: 1; }
.poem-avatar {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden;
  background: #F1E8D2;
  box-shadow: 0 5px 16px rgba(120,90,50,.22), 0 0 0 4px #FFFDF5, 0 0 0 6.5px rgba(201,162,75,.55);
  display: flex; align-items: center; justify-content: center;
}
.poem-avatar canvas { width: 100%; height: 100%; display: block; }
.poem-name { font-size: 23px; font-weight: 900; letter-spacing: 2px; color: #3E3428; font-family: var(--f-poem, "Yuanti SC", "YouYuan", "幼圆", sans-serif); line-height: 1.3; }
.poem-meta { font-size: 12.5px; color: #8A6D3B; font-weight: 700; }
.poem-genre { font-size: 11px; color: #8A6D3B; background: rgba(255,255,255,.85); border: 1px solid rgba(212,173,58,.5); border-radius: 999px; padding: 3px 12px; }
/* 右栏: 诗句直接印在纸上(无独立卡片) */
.poem-right { display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 1; }
/* v135 弹性字号: JS只给期望字号--vfs, CSS按视口自动收缩, 窄屏/长诗都不再溢框 */
.poem-verses { position: relative; text-align: center; padding: 4px 12px 4px 4px;
  font-size: min(var(--vfs, 20px), max(13px, 2.6vw + 7px)); }
.poem-verses.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; row-gap: 8px; }
.poem-verses.one { display: flex; flex-direction: column; gap: 7px; }
.poem-verses.tight { gap: 6px; row-gap: 6px; }
.poem-verses .poem-line {
  display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap;
  font-size: inherit; line-height: 1.25; color: #3E3428; font-weight: 700; letter-spacing: .04em;
  font-family: var(--f-poem, "Yuanti SC", "YouYuan", "幼圆", sans-serif);
}
/* 每个字一个小格子: 拼音在上/汉字在下, 各占各的行, 物理上不可能再叠字 */
.poem-verses .poem-line .zi {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end;
  margin: 0 .05em; line-height: 1.15;
}
/* 分句段: 标点结尾的一段是不可分割整体, 长句换行只在段间断 */
.poem-verses .poem-line .seg { display: inline-flex; align-items: flex-end; flex-wrap: nowrap; }
.poem-verses .poem-line .zi .py {
  font-size: var(--pyfs, 9px); color: #A7937A; letter-spacing: 0; font-weight: 600;
  white-space: nowrap; font-style: normal; line-height: 1.2; margin-bottom: 1px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
/* 下方三栏卡: 简介/译文/字词, 彩色胶囊+左色条 */
.poem-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.poem-intro, .poem-yi, .poem-note {
  text-align: left; padding: 11px 12px; border-radius: 16px; min-width: 0;
  background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 4px 12px rgba(120,90,50,.08);
}
.poem-intro { border-left: 4px solid #F0A029; }
.poem-yi { border-left: 4px solid #5AA9E8; }
.poem-note { border-left: 4px solid #57B96A; }
.pi-label { display: inline-block; font-size: 11px; font-weight: 900; color: #fff; border-radius: 999px; padding: 3px 11px; margin-bottom: 6px; letter-spacing: 1px; }
.poem-intro .pi-label { background: linear-gradient(135deg, #FFC857, #F0A029); }
.poem-yi .pi-label { background: linear-gradient(135deg, #8ECDFB, #5AA9E8); }
.poem-note .pi-label { background: linear-gradient(135deg, #93DBA0, #57B96A); }
.poem-intro p, .poem-yi p, .poem-note p { font-size: 12.5px; line-height: 1.6; color: #4A5055; margin: 0; }
/* 知识点条(更纤细) */
.poem-knowledge {
  position: relative; padding: 10px 14px 10px 46px; text-align: left;
  border-radius: 16px; background: linear-gradient(135deg, #FFF7E0, #FFEFD4);
  border: 1.5px solid rgba(240,180,41,.35); box-shadow: 0 4px 12px rgba(240,180,41,.12);
}
.pk-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD166, #F0B429); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.poem-knowledge p { font-size: 12.5px; line-height: 1.6; color: #7A6A3A; margin: 0; }
.poem-knowledge p b { color: #C08A00; }
@media (max-width: 640px) {
  .poem-paper { grid-template-columns: 1fr; padding: 16px 14px; gap: 10px; }
  .poem-verses { padding: 4px 8px 4px 2px; }
  .poem-verses.two { grid-template-columns: 1fr; }
  .poem-cards3 { grid-template-columns: 1fr; }
  .poem-mascot { width: 52px; }
}

/* ============================================================
   v24 出战卡 / 通关仪式 / 光雾收束 / 动手玩法
   ============================================================ */

/* ---------- 出战卡: 卡册角标 + 详情特权提示 ---------- */
.card.battle-on { outline: 3px solid #ffd54f; outline-offset: 2px; box-shadow: 0 0 22px rgba(255,213,79,.75); }
.battle-badge {
  position: absolute; top: -8px; left: -6px; z-index: 6;
  font-size: 11px; font-weight: 900; color: #1a1a2e;
  background: linear-gradient(135deg, #ffd54f, #ff8f00);
  border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 2px 8px rgba(255,143,0,.55);
  animation: battleBadgePulse 1.6s infinite;
}
@keyframes battleBadgePulse { 50% { transform: scale(1.1); } }
.battle-bonus-tip { color: #B26A00; font-weight: 700; background: #FFF8E1; border-radius: 10px; padding: 8px 12px; }

/* ---------- 战斗: 答对角色跳一下 + 连击爆发 ---------- */
.hero-jump { animation: heroJump .55s cubic-bezier(.3,1.6,.5,1) !important; }
@keyframes heroJump { 30% { transform: translateY(-26px) scale(1.08); } 60% { transform: translateY(2px) scale(.98); } }
.battle-stage.combo-burst #battle-hero { filter: drop-shadow(0 0 24px #ffd54f) brightness(1.35); }
.battle-stage.combo-burst::after {
  content: "⚡💥⚡"; position: absolute; left: 50%; top: -8px; transform: translateX(-50%);
  font-size: 34px; animation: comboPop .9s forwards; pointer-events: none;
}
@keyframes comboPop { 30% { transform: translateX(-50%) scale(1.5); opacity: 1; } 100% { transform: translateX(-50%) scale(1.9); opacity: 0; } }

/* ---------- 通关仪式(ceremony): 闪光→星星逐颗→光能跳动→掉卡翻转 ---------- */
.ceremony { position: relative; text-align: center; padding-top: 6px; }
.cer-flash {
  position: absolute; inset: -30px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,240,180,.95), rgba(255,213,79,.45) 45%, transparent 72%);
  animation: cerFlash 1s forwards;
}
@keyframes cerFlash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.cer-hero-wrap {
  position: relative; z-index: 1; display: flex; justify-content: center;
  animation: cerHeroIn 1s cubic-bezier(.2,1.4,.4,1);
  filter: drop-shadow(0 0 18px rgba(255,213,79,.8));
}
@keyframes cerHeroIn { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.cer-title { position: relative; z-index: 1; margin: 8px 0 4px; animation: cerFadeUp .6s .3s backwards; }
.cer-star {
  display: inline-block; font-size: 40px; margin: 0 4px;
  opacity: 0; transform: scale(.2) rotate(-30deg);
  animation: cerStarIn .55s cubic-bezier(.2,1.8,.4,1) forwards;
}
@keyframes cerStarIn { 100% { opacity: 1; transform: scale(1) rotate(0deg); } }
.cer-star.off { filter: grayscale(1); animation-name: cerStarOffIn; }
@keyframes cerStarOffIn { 100% { opacity: .45; transform: scale(.9); } }
.cer-energy { position: relative; z-index: 1; animation: cerFadeUp .6s 1.8s backwards; }
@keyframes cerFadeUp { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
.cer-drop { position: relative; z-index: 1; animation: cerFadeUp .6s 2.2s backwards; }
.cer-flip-card {
  width: 108px; margin: 4px auto 6px; pointer-events: none;
  animation: cerFlip .9s 2.1s backwards cubic-bezier(.2,1.4,.4,1);
}
@keyframes cerFlip { 0% { opacity: 0; transform: perspective(600px) rotateY(180deg) scale(1.6); } 100% { opacity: 1; transform: perspective(600px) rotateY(0deg) scale(1); } }
.cer-btns { position: relative; z-index: 1; animation: cerFadeUp .6s 2.6s backwards; }
.cer-btns .btn-big { font-size: 19px; padding: 14px 30px; }
.cer-more-link {
  position: relative; z-index: 1; margin-top: 10px; font-size: 13px; color: #8A7A94;
  cursor: pointer; text-decoration: underline; animation: cerFadeUp .6s 3s backwards;
}
.cer-more { position: relative; z-index: 1; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- 光雾收束: 未解锁星球 ---------- */
.planet.fogged {
  background: rgba(200,205,220,.5) padding-box,
    linear-gradient(150deg, rgba(200,200,210,.5), rgba(160,165,185,.5)) border-box;
  filter: saturate(.4);
}
.fog-emoji {
  background: radial-gradient(circle at 35% 30%, #cfd4e0, #aab0c4) !important;
  box-shadow: 0 4px 14px rgba(140,150,175,.4) !important;
  animation: fogDrift 3s ease-in-out infinite;
}
@keyframes fogDrift { 50% { transform: translateY(-4px); opacity: .75; } }
.fog-hint { font-size: 11px; color: #7c8499; line-height: 1.5; margin-top: 2px; }
.planet.fogged .planet-name { color: #5d6579; }

/* ---------- 成语四格排序 ---------- */
.co-title { font-size: 22px; font-weight: 900; margin: 6px 0 10px; }
.co-slots { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.co-slot {
  width: 58px; height: 58px; border-radius: 14px; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85); border: 2px dashed #d8cbe8; color: #b7a8cc;
}
.co-slot:not(.empty) { border: 2px solid #ffd54f; background: #fffbe8; animation: heroJump .5s; }
.co-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 560px; }
.co-panel {
  background: #fff; border-radius: 16px; padding: 12px 10px; cursor: pointer;
  border: 2px solid #ece7f0; box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .18s;
}
.co-panel:active { transform: scale(.96); }
.co-panel-e { font-size: 38px; }
.co-panel-scene { font-size: 13px; line-height: 1.5; margin-top: 4px; color: #444; }
.co-panel-say { font-size: 12px; color: #9b59b6; margin-top: 3px; }
.co-panel.used { opacity: .25; pointer-events: none; border-color: #2ecc71; }
.co-panel.no { animation: shakeX .45s; border-color: #e57373; }
@keyframes shakeX { 25% { transform: translateX(-7px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }

/* ---------- 怪兽出谜 ---------- */
.rp-stage { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 560px; margin: 4px 0 10px; }
.rp-monster { font-size: 72px; transition: all .5s; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.rp-monster.scatter { animation: monsterScatter 1s forwards; }
@keyframes monsterScatter {
  30% { filter: brightness(3) drop-shadow(0 0 24px #40c4ff); }
  100% { transform: translateY(-60px) scale(.2) rotate(40deg); opacity: 0; }
}
.rp-bubble {
  flex: 1; background: #fff; border-radius: 16px; padding: 14px 16px;
  font-size: 17px; line-height: 1.6; border: 2px solid #ece7f0;
  box-shadow: 0 4px 12px rgba(0,0,0,.06); position: relative;
}
.rp-bubble::before {
  content: ""; position: absolute; left: -8px; top: 30px;
  border: 8px solid transparent; border-right-color: #fff; border-left: 0;
}
.rp-props { display: flex; gap: 14px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.rp-prop {
  width: 108px; background: #fff; border-radius: 16px; padding: 14px 8px; cursor: pointer;
  border: 2px solid #ece7f0; box-shadow: 0 4px 12px rgba(0,0,0,.08); text-align: center;
  transition: transform .18s;
}
.rp-prop:active { transform: scale(.94); }
.rp-prop-e { font-size: 44px; }
.rp-prop-n { font-size: 16px; font-weight: 700; margin-top: 6px; }
.rp-prop.revealed { border-color: #ffd54f; background: #fffbe8; animation: heroJump .6s; box-shadow: 0 0 22px rgba(255,213,79,.7); }
.rp-prop.no { animation: shakeX .45s; border-color: #e57373; }

/* ---------- 点一点小实验 ---------- */
.exp-scene { font-size: 64px; animation: fogDrift 3s ease-in-out infinite; }
.exp-title { font-size: 21px; font-weight: 900; margin: 6px 0 4px; }
.exp-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 520px; margin-top: 10px; }
.exp-item {
  background: #fff; border-radius: 16px; padding: 14px 6px; cursor: pointer;
  border: 2px solid #ece7f0; box-shadow: 0 4px 12px rgba(0,0,0,.06); text-align: center;
  transition: transform .18s, border-color .18s;
}
.exp-item:active { transform: scale(.94); }
.exp-item-e { font-size: 40px; }
.exp-item-n { font-size: 14px; font-weight: 700; margin-top: 4px; }
.exp-item.picked { border-color: #4A90E2; background: #eef6ff; transform: scale(1.04); }
.exp-item.no { animation: shakeX .45s; border-color: #e57373; }
.exp-item.react { animation: heroJump .7s; border-color: #2ecc71; background: #eafaf1; box-shadow: 0 0 18px rgba(46,204,113,.5); }
#exp-check { margin-top: 16px; }
.exp-fact {
  margin-top: 14px; background: #fffbe8; border: 2px solid #ffd54f; border-radius: 14px;
  padding: 12px 16px; font-size: 15px; font-weight: 700; color: #7a5b00;
  animation: cerFadeUp .5s;
}

/* ============================================================
   v24.1 礼炮庆祝 / Q版奥特曼会动 / 仪式全屏去框
   ============================================================ */

/* ---------- 礼炮彩带(emoji粒子喷发) ---------- */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 20000; }
.confetti-piece {
  position: fixed; transform: translate(-50%, -50%);
  animation: confettiFly var(--d, 1.2s) cubic-bezier(.15, .8, .4, 1) forwards;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
@keyframes confettiFly {
  0% { transform: translate(-50%, -50%) scale(.3) rotate(0deg); opacity: 1; }
  65% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.15) rotate(var(--r)); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 240px)) scale(.8) rotate(var(--r)); opacity: 0; }
}

/* ---------- Q版奥特曼一直会动: 战斗待机浮动 + 仪式悬浮 ---------- */
#battle-hero-cv { animation: heroIdle 2.6s ease-in-out infinite; }
#cer-hero-cv { animation: heroIdle 2.2s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes heroIdle { 50% { transform: translateY(-8px) rotate(-1.5deg); } }

/* ---------- 通关仪式: 全屏takeover, 去掉框框滚条 ---------- */
.modal:has(.modal-box.ceremony-mode) {
  background: radial-gradient(circle at 50% 32%, rgba(88, 66, 168, .94), rgba(20, 28, 70, .97) 75%);
}
.modal-box.ceremony-mode {
  background: transparent; border: none; box-shadow: none;
  overflow: visible; max-height: none; max-width: 480px;
}
.ceremony-mode .cer-title { color: #FFD54F; text-shadow: 0 2px 14px rgba(255, 180, 0, .5); font-size: 26px; }
.ceremony-mode .drop-line { color: #FFF3D6; }
.ceremony-mode .cer-more-link { color: #D8C8F0; }
.ceremony-mode .big-energy { text-shadow: 0 2px 12px rgba(255, 180, 0, .55); }

/* 旋转金色光环(Q版奥特曼背后的光) */
.cer-rays {
  position: absolute; left: 50%; top: 50%; width: 250px; height: 250px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 205, 80, .30) 0deg 11deg, transparent 11deg 26deg);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  animation: raysSpin 9s linear infinite;
}
@keyframes raysSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ============================================================
   v24.2 掉卡卡面(纯CSS精致版) + 飞进卡册
   ============================================================ */
.drop-card {
  position: relative; width: 132px; margin: 6px auto 8px; padding: 14px 8px 10px;
  border-radius: 16px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #fdf4ff 70%, #f3eaff);
  border: 3px solid var(--rc, #ffb300);
  box-shadow: 0 0 26px var(--rg, #ffd54f), 0 12px 26px rgba(30, 20, 60, .45);
  animation: cerFlip .9s 2.1s backwards cubic-bezier(.2, 1.4, .4, 1);
  pointer-events: none;
}
/* 镭射扫光, 一直扫 */
.drop-card::after {
  content: ""; position: absolute; top: -60%; left: -80%; width: 60%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: rotate(20deg); animation: dropCardShine 2.2s 2.6s infinite;
}
@keyframes dropCardShine { 0% { left: -80%; } 60%, 100% { left: 130%; } }
.drop-card-rarity {
  position: absolute; top: 6px; left: 8px; font-size: 13px; font-weight: 900;
  color: var(--rc, #ffb300); text-shadow: 0 0 8px var(--rg, #ffd54f);
}
.drop-card-emoji {
  font-size: 46px; line-height: 1.2;
  filter: drop-shadow(0 0 12px var(--rg, #ffd54f));
  animation: heroIdle 2s ease-in-out infinite;
}
.drop-card-name { font-size: 17px; font-weight: 900; color: #3a3348; margin-top: 2px; }
.drop-card-py { font-size: 12px; color: #8a8296; }
.drop-card-stars { font-size: 13px; color: #F5A623; letter-spacing: 2px; margin-top: 2px; }
.drop-card-sub {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700;
  color: #7a5b00; background: #FFF3D6; border-radius: 999px; padding: 2px 10px;
}
/* 卡册图标接到卡: 弹跳+金光 */
.album-land { animation: albumLand .7s cubic-bezier(.2, 1.8, .4, 1) !important; }
@keyframes albumLand {
  0% { transform: scale(1); }
  40% { transform: scale(1.45) rotate(-8deg); filter: drop-shadow(0 0 14px #ffd54f); }
  100% { transform: scale(1); }
}

/* ============================================================
   v24.3 知识卡 AI 真插画卡面
   ============================================================ */
.kcard-art-img { object-fit: cover; border-radius: 8px; }
.drop-card-img {
  width: 92px; height: 92px; object-fit: cover; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(30, 20, 60, .3);
  animation: heroIdle 2s ease-in-out infinite;
}
.kcard-detail-img {
  width: 180px; height: 180px; object-fit: cover; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(30, 20, 60, .35); margin: 6px auto;
}

/* ---------- v183 总界面整体场景化(stghome-{key}.webp 铺底, 模块浮在图上) ---------- */
.stg-scene { display:contents; }   /* 无图星球: 容器隐身, 布局完全照旧 */
.stg-scene.on { display:block; position:relative; border-radius:26px; overflow:hidden; padding:14px 12px 4px; margin:2px 0 12px; background-size:cover; background-position:center; border:3px solid rgba(255,255,255,.65); box-shadow:0 8px 22px rgba(80,90,180,.20); }
.stg-scene.on .stg-portal { background:rgba(255,255,255,.82); backdrop-filter:blur(10px); border-color:rgba(255,255,255,.85); }
.stg-scene.on .stg-portal.locked { filter:grayscale(.45) brightness(.97); }
.stg-scene.on .stg-cardbar { background:rgba(255,255,255,.66); display:inline-flex; }
.stg-scene.on .stg-portal-gate { background:rgba(255,243,205,.92); border:2px dashed rgba(190,140,20,.45); }
/* 阶段卡网格: 默认隐身(无图星球照旧竖排); 场景态+宽屏三栏并排(参考设计三栏卡) */
.stg-scene-grid { display:contents; }
@media (min-width:700px) {
  .stg-scene.on .stg-scene-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; align-items:stretch; }
  .stg-scene.on .stg-scene-grid .stg-portal { flex-direction:column; flex-wrap:nowrap; align-items:center; text-align:center; margin:0; padding:18px 12px 14px; }
  .stg-scene.on .stg-scene-grid .stg-portal-gate { flex:0 0 auto; width:100%; box-sizing:border-box; }
  .stg-scene.on .stg-scene-grid .stg-portal-icon { margin-bottom:4px; }
  .stg-scene.on .stg-scene-grid .stg-portal-info { min-width:0; width:100%; }
  .stg-scene.on .stg-scene-grid .stg-portal-go { position:absolute; top:10px; right:12px; font-size:18px; }
}

/* ---------- v147 stage 分级框架(数学试点) ---------- */
.stg-cardbar { display:flex; flex-wrap:wrap; gap:6px; align-items:center; background:rgba(255,255,255,.72); backdrop-filter:blur(8px); border-radius:16px; padding:10px 14px; margin-bottom:12px; position:relative; z-index:2; }
.stg-cardbar-t { font-size:14px; font-weight:700; color:#8a5a00; }
.stg-mini-card { background:linear-gradient(135deg,#ffe9b0,#ffd54f); color:#7a4d00; border-radius:999px; padding:3px 10px; font-size:12.5px; font-weight:700; box-shadow:0 2px 6px rgba(245,166,35,.35); }
.stg-mini-card.empty { background:#eee; color:#999; box-shadow:none; font-weight:400; }
.stg-tier { background:rgba(255,255,255,.78); backdrop-filter:blur(10px); border-radius:22px; padding:16px 18px; margin-bottom:14px; cursor:pointer; box-shadow:0 4px 14px rgba(80,90,180,.14); transition:transform .15s; position:relative; z-index:2; }
.stg-tier:active { transform:scale(.98); }
.stg-tier.locked { opacity:.62; }
.stg-head { display:flex; align-items:center; gap:12px; }
.stg-icon { font-size:34px; }
.stg-info { flex:1; }
.stg-name { font-size:18px; font-weight:800; color:var(--ink,#2D3436); }
.stg-desc { font-size:12.5px; color:#8a93b8; margin-top:2px; }
.stg-count { font-size:22px; font-weight:800; color:#4a6cf7; }
.stg-count small { font-size:13px; color:#9aa1bd; }
.stg-bar { height:8px; background:#e8ecf8; border-radius:99px; margin:10px 0 6px; overflow:hidden; }
.stg-fill { height:100%; border-radius:99px; background:linear-gradient(90deg,#7b5cf0,#4a6cf7); transition:width .4s; }
.stg-ladders { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.stg-lad { font-size:12px; background:#eef1fd; color:#3a47a0; border-radius:999px; padding:3px 10px; }
.stg-lad.lock { background:#f0f0f4; color:#a0a6c0; }
.stg-lock-tip { margin-top:10px; font-size:12.5px; color:#b8860b; background:#fff8e1; border-radius:10px; padding:6px 10px; }
.stg-back { position:absolute; top:6px; left:6px; z-index:5; font-size:13px; }
.lp-node.gate .lp-badge { background:linear-gradient(135deg,#ffd54f,#ff8a65); color:#7a3c00; box-shadow:0 0 14px rgba(255,180,60,.7); }
.lp-node.gate.passed .lp-badge { background:linear-gradient(135deg,#fff3c4,#ffd54f); }
.lp-node.gate .lp-name { color:#b8860b; font-weight:700; }
.lp-node.locked { opacity:.55; }
.stg-bigcard { background:linear-gradient(135deg,#fff8e1,#ffe9b0); border:2px solid #ffd54f; border-radius:20px; padding:20px 26px; margin:10px auto; max-width:300px; box-shadow:0 6px 20px rgba(245,166,35,.35); text-align:center; }
.stg-bigcard-emoji { font-size:44px; }
.stg-bigcard-name { font-size:20px; font-weight:800; color:#8a5a00; margin:8px 0 4px; }
.stg-bigcard-sub { font-size:13px; color:#7a6a3a; }
.modal-box .gate-fail-tip { font-size:15px; line-height:1.8; color:#ffe9b0; text-align:center; }

/* ---------- v148 数学王国主题地图 ---------- */
.mk-zone { border-radius:26px; margin:12px 0 20px; position:relative; overflow:hidden; padding:14px 12px 18px; box-shadow:0 6px 18px rgba(80,90,180,.16); }
.mk-z1 { background:linear-gradient(180deg,#a8ddf7 0%,#cdeffd 30%,#d9f3c8 62%,#aee096 100%); }
.mk-z2 { background:linear-gradient(180deg,#bfe8c2 0%,#94d29b 55%,#6fb87c 100%); }
.mk-z3 { background:linear-gradient(180deg,#cbb8f0 0%,#a68ede 55%,#8470c4 100%); }
.mk-zhead { display:flex; align-items:center; gap:10px; position:relative; z-index:2; }
.mk-zicon { font-size:30px; }
.mk-zinfo { flex:1; }
.mk-zname { font-size:17.5px; font-weight:800; color:#2D3436; text-shadow:0 1px 0 rgba(255,255,255,.5); }
.mk-zsub { font-size:12px; color:rgba(45,52,54,.72); margin-top:2px; }
.mk-zbar { height:7px; background:rgba(255,255,255,.55); border-radius:99px; margin:8px 0 4px; overflow:hidden; position:relative; z-index:2; }
.mk-zfill { height:100%; border-radius:99px; background:linear-gradient(90deg,#ffd54f,#ff8a65); transition:width .4s; }
.mk-deco { position:absolute; font-size:26px; opacity:.8; pointer-events:none; z-index:1; }
/* ---------- v163 通用三段分级地图(识字/成语): 段底色(复用mk-zone结构, 换更柔和的通用渐变) ---------- */
.stg-z1 { background:linear-gradient(180deg,#b3e5fc 0%,#d1f2d8 55%,#c5ecb7 100%); }   /* 🌱 晴空草地 */
.stg-z2 { background:linear-gradient(180deg,#c8e6c9 0%,#a5d6a7 55%,#81c784 100%); }   /* 🌿 森林 */
.stg-z3 { background:linear-gradient(180deg,#d1c4e9 0%,#b39ddb 55%,#9575cd 100%); }   /* 🌳 城堡紫 */
/* ---------- v163 总界面: 阶段传送门大卡(区别于诗词的紧凑行: 大圆图标+渐变卡+门状态条) ---------- */
.stg-portal { position:relative; display:flex; align-items:center; gap:14px; flex-wrap:wrap; border-radius:26px; padding:20px 18px 16px; margin:14px 0; cursor:pointer; box-shadow:0 8px 22px rgba(80,90,180,.20); border:3px solid rgba(255,255,255,.65); transition:transform .15s, box-shadow .15s; }
.stg-portal:active { transform:scale(.98); }
.stg-portal.stg-pz1 { background:linear-gradient(135deg,#a5dcf9 0%,#c8f0d0 60%,#b8e6a3 100%); }
.stg-portal.stg-pz2 { background:linear-gradient(135deg,#b2e2b8 0%,#8fd29a 60%,#6fb87c 100%); }
.stg-portal.stg-pz3 { background:linear-gradient(135deg,#cdbcf2 0%,#ab96e0 60%,#8b76c9 100%); }
/* v169 兴趣星球·编程工坊第四段(项目创造): 深蓝科技风 */
.stg-portal.stg-pz4 { background:linear-gradient(135deg,#9ec5f2 0%,#6b93d6 60%,#4a6bb5 100%); }
/* v169 全开放分段卡(典故·神话传说/文化通识): 暖金色区分于三段锁段 */
.stg-portal.stg-pz-open { background:linear-gradient(135deg,#ffe3b3 0%,#ffd08a 60%,#f7b955 100%); }
.stg-open-tag { font-size:12px; font-weight:700; color:#8a4b00; background:rgba(255,255,255,.65); border-radius:999px; padding:2px 8px; vertical-align:middle; }
.stg-portal.locked { filter:grayscale(.55) brightness(.92); }
.stg-portal-icon { width:74px; height:74px; flex:0 0 74px; display:flex; align-items:center; justify-content:center; font-size:44px; background:rgba(255,255,255,.85); border-radius:50%; box-shadow:0 4px 12px rgba(80,90,180,.25), inset 0 -3px 0 rgba(80,90,180,.12); }
.stg-portal-info { flex:1; min-width:180px; }
.stg-portal-name { font-size:21px; font-weight:800; color:#2D3436; text-shadow:0 1px 0 rgba(255,255,255,.5); }
.stg-portal-sub { font-size:12.5px; color:rgba(45,52,54,.72); margin:3px 0 8px; }
.stg-portal-bar { height:10px; background:rgba(255,255,255,.6); border-radius:99px; overflow:hidden; box-shadow:inset 0 1px 3px rgba(80,90,180,.18); }
.stg-portal-fill { height:100%; border-radius:99px; background:linear-gradient(90deg,#ffd54f,#ff8a65); transition:width .4s; }
.stg-portal-pct { font-size:12px; font-weight:700; color:rgba(45,52,54,.75); margin-top:4px; }
.stg-portal-go { font-size:26px; flex:0 0 auto; filter:drop-shadow(0 2px 3px rgba(80,90,180,.3)); }
.stg-portal-gate { flex:1 0 100%; margin-top:10px; padding:9px 14px; border-radius:14px; background:rgba(255,255,255,.55); font-size:13.5px; font-weight:700; color:#6a5a2a; text-align:center; border:2px dashed rgba(138,106,0,.25); }
.stg-portal-gate.can { background:linear-gradient(90deg,#fff3c4,#ffe08a); border:2px solid #ffb300; color:#8a5a00; animation:stgGateGlow 1.6s ease-in-out infinite; }
.stg-portal-gate.passed { background:rgba(255,255,255,.8); border:2px solid #66bb6a; color:#2e7d32; }
@keyframes stgGateGlow { 0%,100% { box-shadow:0 0 0 rgba(255,179,0,0); } 50% { box-shadow:0 0 16px rgba(255,179,0,.55); } }
.stg-back-btn { font-size:14px; padding:8px 14px; }
/* v164 数学总界面: 多门chips(成长篇3门/进阶篇2门) */
.stg-portal-gates { flex:1 0 100%; display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.stg-gchip { flex:1 1 auto; min-width:150px; padding:8px 12px; border-radius:12px; background:rgba(255,255,255,.55); font-size:13px; font-weight:700; color:#6a5a2a; text-align:center; border:2px dashed rgba(138,106,0,.25); cursor:pointer; }
.stg-gchip.can { background:linear-gradient(90deg,#fff3c4,#ffe08a); border:2px solid #ffb300; color:#8a5a00; animation:stgGateGlow 1.6s ease-in-out infinite; }
.stg-gchip.passed { background:rgba(255,255,255,.8); border:2px solid #66bb6a; color:#2e7d32; }
.mk-path { position:relative; z-index:2; margin-top:6px; }
.mk-path .lp-svg { position:absolute; inset:0; width:100%; height:100%; }
.mk-fog { position:absolute; inset:0; z-index:6; background:rgba(245,246,252,.72); backdrop-filter:blur(3px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; cursor:pointer; border-radius:26px; }
.mk-fog-lock { font-size:44px; }
.mk-fog-tip { font-size:14px; color:#6a7290; text-align:center; line-height:1.7; font-weight:600; }
.mk-feast { background:linear-gradient(135deg,#fff3c4,#ffd54f); border-radius:20px; padding:16px 20px; text-align:center; font-size:15.5px; color:#7a4d00; box-shadow:0 6px 18px rgba(245,166,35,.4); margin-bottom:16px; position:relative; z-index:2; }
/* 节点按阶梯分色: 草原绿/森林三色果/城堡紫晶 */
.mk-node .lp-badge { transition:transform .15s; }
.mk-node:active .lp-badge { transform:scale(1.12); }
.mk-node.lad1 .lp-badge { background:linear-gradient(135deg,#b9f6ca,#66bb6a); color:#1b5e20; }
.mk-node.lad2 .lp-badge { background:linear-gradient(135deg,#ffe0b2,#ffb74d); color:#7a4d00; }
.mk-node.lad3 .lp-badge { background:linear-gradient(135deg,#ffccbc,#ff8a65); color:#8a3c10; }
.mk-node.lad4 .lp-badge { background:linear-gradient(135deg,#f8bbd0,#f06292); color:#7a1040; }
.mk-node.lad5 .lp-badge { background:linear-gradient(135deg,#d1c4e9,#9575cd); color:#3d2a70; }
.mk-node.lad6 .lp-badge { background:linear-gradient(135deg,#b3e5fc,#4fc3f7); color:#0d4a6b; }
.mk-node.done .lp-badge { background:linear-gradient(135deg,#fff3c4,#ffd54f); color:#7a4d00; }
.mk-node .lp-name { color:#2D3436; text-shadow:0 1px 0 rgba(255,255,255,.6); }
.mk-node .lp-stars { text-shadow:0 1px 0 rgba(255,255,255,.5); }

/* ---------- v150 拆分配对·骨牌统一风格(dmh 点堆卡已废弃) ---------- */
.dm-hint { font-size:13px; color:#7c86a8; margin-left:8px; }

/* ---------- v25 模拟购物·人民币实操 ---------- */
.money-scene { display:flex; flex-direction:column; align-items:center; gap:6px; margin:8px auto 10px; padding:14px; background:linear-gradient(135deg,#FFF7E6,#FFE9C7); border:3px solid #F2C94C; border-radius:18px; max-width:420px; }
.money-item { font-size:44px; }
.money-price { font-size:18px; color:#5a4a2a; }
.money-price b { font-size:26px; color:#D84315; }
.money-pay { font-size:16px; color:#7a5a20; background:#FFF3D6; padding:4px 14px; border-radius:999px; }
.money-counter { max-width:560px; margin:0 auto 10px; background:#F7F9FF; border:2px dashed #9FB6E8; border-radius:16px; padding:10px; }
.money-pile { min-height:56px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:center; }
.money-pile-tip { font-size:13px; color:#8a94b8; }
.money-total { text-align:center; font-size:18px; font-weight:800; color:#2D3436; margin-top:6px; }
.money-wallet { display:flex; flex-wrap:nowrap; gap:6px; justify-content:center; max-width:640px; margin:0 auto 12px; padding:4px 2px 8px; }
.money-bill { border:none; cursor:pointer; border-radius:10px; padding:0; width:84px; height:59px; flex:0 0 auto; color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; box-shadow:0 3px 0 rgba(0,0,0,.18); transition:transform .1s; font-family:inherit; }
.money-bill:active { transform:scale(.93); }
.money-bill b { font-size:21px; font-weight:900; }
.money-bill span { font-size:12px; }
.money-bill.coin { border-radius:50%; width:59px; height:59px; }
.money-bill.coin b { font-size:19px; }
.money-bill.coin span { font-size:11px; }
.money-bill.mini { width:auto; height:auto; padding:6px 12px; box-shadow:0 2px 0 rgba(0,0,0,.15); font-size:15px; font-weight:800; }
.money-bill.mini.coin { border-radius:999px; }
.money-task b { font-size:24px; color:#2D6A4F; }
.mb100 { background:linear-gradient(135deg,#E05252,#C22828); }
.mb50 { background:linear-gradient(135deg,#3FA968,#237A47); }
.mb20 { background:linear-gradient(135deg,#B5763A,#8F5A28); }
.mb10 { background:linear-gradient(135deg,#4B8BE0,#2F6FC4); }
.mb5 { background:linear-gradient(135deg,#9A6BC0,#7A4EA0); }
.mb1 { background:linear-gradient(135deg,#7BAF3A,#5A8A20); }
.mc5 { background:linear-gradient(135deg,#F4C542,#D9A520); color:#6a4a00; }
.mc1 { background:linear-gradient(135deg,#D8D8D8,#AFAFAF); color:#4a4a4a; }
.money-btns { display:flex; gap:12px; justify-content:center; padding-bottom:16px; }

/* ---------- v25 竖式互动填空 ---------- */
.vart-tip { text-align:center; font-size:17px; font-weight:700; color:#2D3436; background:#FFF3D6; border-radius:12px; padding:10px 14px; max-width:420px; margin:6px auto 12px; min-height:24px; }
.vart-grid { display:grid; grid-template-columns:52px 76px 76px; gap:4px; justify-content:center; margin:0 auto 16px; }
.vart-cell { height:64px; display:flex; align-items:center; justify-content:center; font-size:34px; font-weight:900; color:#2D3436; background:#FFFDF5; border-radius:10px; }
.vart-op { color:#D84315; font-size:30px; background:transparent; }
.vart-carry { font-size:18px; color:#fff; background:#FF6B6B; height:34px; border-radius:8px; align-self:end; }
.vart-line { grid-column:1 / -1; height:5px; background:#4A4A4A; border-radius:3px; margin:2px 0; }
.vart-slot { border:3px dashed #F2A33C; color:#D84315; }

/* ---------- v25 动手发现(锯木头/爬楼梯/植树) ---------- */
.td-stage { min-height:96px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:center; max-width:520px; margin:10px auto; padding:14px; background:linear-gradient(135deg,#EAF7EA,#D8F0D8); border:3px solid #7CB342; border-radius:18px; }
.td-item { font-size:40px; animation:tdPop .25s; }
@keyframes tdPop { from { transform:scale(.3); } to { transform:scale(1); } }
.td-line { text-align:center; font-size:19px; font-weight:800; color:#33691E; min-height:26px; margin-bottom:12px; }
#td-act { display:block; margin:0 auto 14px; font-size:20px; }

/* ---------- v25 分类数一数 ---------- */
.sc-tip { text-align:center; font-size:17px; font-weight:700; color:#2D3436; background:#E3F2FD; border-radius:12px; padding:10px 14px; max-width:420px; margin:6px auto 12px; min-height:24px; }
.sc-field { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; max-width:520px; margin:0 auto 16px; padding:14px; background:#F7F9FF; border:2px dashed #9FB6E8; border-radius:16px; }
.sc-item { font-size:38px; cursor:pointer; transition:transform .12s, opacity .12s; }
.sc-item:active { transform:scale(.85); }
.sc-item.done { transform:scale(1.15); filter:drop-shadow(0 0 6px #4CAF50); position:relative; }
.sc-item.done::after { content:'✓'; position:absolute; top:-6px; right:-6px; font-size:16px; color:#fff; background:#4CAF50; border-radius:50%; width:20px; height:20px; display:flex; align-items:center; justify-content:center; }

/* ---------- v157 数学王国节点瘦身(配合行距压缩30%) ---------- */
.mk-node .lp-badge { width:46px; height:46px; font-size:17px; }
.mk-node .lp-name { font-size:12px; line-height:1.25; }
.mk-node .lp-stars { font-size:11px; }
.mk-node .lp-pian { font-size:11px; padding:1px 8px; }

/* ---------- v25 数量配对连连看 ---------- */
.nmatch-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; max-width:520px; margin:0 auto; }
.nmatch-tile { background:#fff; border:3px solid #B8C6F0; border-radius:14px; min-height:64px; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:900; color:#2D3436; cursor:pointer; transition:transform .12s; padding:6px; }
.nmatch-tile.dot { font-size:13px; letter-spacing:1px; color:#4B8BE0; }
.nmatch-tile:active { transform:scale(.94); }
.nmatch-tile.sel { border-color:#FF9F43; background:#FFF3E0; }
.nmatch-tile.done { border-color:#7CB342; background:#E8F5E9; opacity:.55; pointer-events:auto; }

/* ---------- v25 数学迷宫 ---------- */
.maze-grid { display:grid; grid-template-columns:repeat(4,64px); gap:8px; justify-content:center; margin:8px auto 12px; }
.maze-cell { width:64px; height:64px; border-radius:14px; background:#E8F0E4; display:flex; align-items:center; justify-content:center; font-size:28px; color:#9fb59a; }
.maze-cell.done { background:#C8E6C9; font-size:22px; }
.maze-cell.cur { background:#FFF3D6; border:3px solid #F2A33C; font-size:32px; }
.maze-cell.next { background:#E3F2FD; border:3px dashed #4B8BE0; cursor:pointer; animation:mazeGlow 1s infinite alternate; }
.maze-cell.exit { background:#FFE9C7; border:3px solid #F2C94C; }
@keyframes mazeGlow { from { box-shadow:0 0 4px rgba(75,139,224,.4); } to { box-shadow:0 0 16px rgba(75,139,224,.9); } }
.maze-q { text-align:center; font-size:20px; font-weight:800; color:#2D3436; min-height:30px; margin-bottom:10px; }

/* ---------- v25 移多补少 ---------- */
.dmv-tip { text-align:center; font-size:16px; font-weight:700; color:#2D3436; background:#FFF3D6; border-radius:12px; padding:10px 14px; max-width:440px; margin:6px auto 12px; }
.dmv-rows { display:flex; gap:14px; justify-content:center; align-items:stretch; max-width:560px; margin:0 auto 14px; }
.dmv-row { flex:1; background:#F7F9FF; border:2px dashed #9FB6E8; border-radius:16px; padding:10px; display:flex; flex-wrap:wrap; gap:8px; justify-content:center; align-content:flex-start; min-height:120px; }
.dmv-row-t { width:100%; text-align:center; font-size:14px; font-weight:800; color:#5a6480; }
.dmv-item { font-size:34px; cursor:pointer; transition:transform .12s; }
.dmv-item:active { transform:scale(.8); }
.dmv-cnt { width:100%; text-align:center; font-size:16px; font-weight:900; color:#D84315; }

/* ---------- v25b 排版修复: 迷宫/配对自适应防溢出 ---------- */
.maze-grid { grid-template-columns:repeat(4,1fr); width:100%; max-width:320px; }
.maze-cell { width:auto; height:auto; aspect-ratio:1; font-size:24px; }
.maze-cell.cur { font-size:28px; }
.nmatch-tile { min-width:0; overflow:hidden; }
.nmatch-tile.dot { font-size:11px; letter-spacing:0; word-break:break-all; line-height:1.3; }
.nmatch-grid { width:100%; }
.maze-grid { margin-left:auto; margin-right:auto; }

/* ---------- v161 数量配对上下两排+大点子分色 ---------- */
.nmatch-row { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; max-width:560px; margin:0 auto; }
.nmatch-sep { text-align:center; color:#8a94b8; font-size:14px; font-weight:700; margin:10px auto; }
.nmatch-tile.num { background:#fff; border:3px solid #B8C6F0; border-radius:14px; width:64px; height:64px; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:900; color:#2D3436; cursor:pointer; transition:transform .12s; }
.nmatch-tile.dots { background:#fff; border:3px solid #B8C6F0; border-radius:14px; width:120px; min-height:64px; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:5px; cursor:pointer; padding:8px; transition:transform .12s; }
.nm-dot { width:18px; height:18px; border-radius:50%; flex:0 0 auto; box-shadow:inset -2px -2px 3px rgba(0,0,0,.18); }
.nmatch-tile:active { transform:scale(.94); }
.nmatch-tile.sel { border-color:#FF9F43; background:#FFF3E0; }
.nmatch-tile.done { border-color:#7CB342; background:#E8F5E9; opacity:.55; }

/* ---------- v161 小动物过河 ---------- */
.river-fig { text-align:center; font-size:30px; letter-spacing:2px; background:linear-gradient(180deg,#B3E5FC,#81D4FA); border-radius:16px; padding:14px 8px; max-width:560px; margin:8px auto 14px; border-bottom:6px solid #4FC3F7; }

/* ---------- v162 迷宫2.0: 蜿蜒小路+大题字+紧凑答案钮 ---------- */
.maze-grid { grid-template-columns:repeat(5,1fr); max-width:360px; }
.maze-cell.road { background:#E8D9B8; border:2px solid #C9B27C; }
.maze-cell.wood { background:#DCEBD6; font-size:20px; opacity:.8; }
.maze-cell.done { background:#C8E6C9; }
.maze-q { font-size:30px; font-weight:900; color:#2D3436; margin:10px 0 12px; }
#maze-opts { display:flex; gap:12px; justify-content:center; }
.maze-opt { width:72px; height:72px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:900; padding:0; }

/* ---------- v162 阶段之门倒计时条 ---------- */
#gate-timer { position:fixed; top:72px; right:34px; z-index:60; background:linear-gradient(135deg,#FF6B6B,#E05252); color:#fff; font-weight:900; font-size:18px; padding:8px 16px; border-radius:999px; box-shadow:0 4px 12px rgba(224,82,82,.4); }

/* ---------- v163 数学王国地图·参考图意境 ---------- */
/* 区域信物节点: 草原精灵/森林果实/城堡宝石 */
.mk-node .lp-badge { transition: transform .15s, box-shadow .2s; }
.mk-t1 .lp-badge { background:linear-gradient(145deg,#AEE9FF,#4BA3D8); }
.mk-t2.lad2 .lp-badge { background:linear-gradient(145deg,#FF9A8B,#E05252); }
.mk-t2.lad3 .lp-badge { background:linear-gradient(145deg,#FFC76B,#F29E1F); }
.mk-t2.lad4 .lp-badge { background:linear-gradient(145deg,#8FB8FF,#4B6BD8); }
.mk-t3 .lp-badge { background:linear-gradient(145deg,#C9A7F5,#7A4EA0); }
.mk-node.done .lp-badge { animation:mkDance 1.6s ease-in-out infinite; box-shadow:0 0 16px rgba(255,215,80,.85), 0 4px 10px rgba(0,0,0,.25); font-size:24px; }
@keyframes mkDance { 0%,100% { transform:translateY(0) rotate(-4deg); } 50% { transform:translateY(-5px) rotate(4deg); } }
.mk-node.locked .lp-badge { filter:grayscale(.85); opacity:.75; }
/* 森林三色图例 */
.mk-legend { text-align:center; font-size:12px; font-weight:700; color:#5a6480; background:rgba(255,255,255,.75); border-radius:999px; padding:4px 10px; margin:6px auto 0; width:fit-content; }
/* 底部三段进度条 */
.mk-totalbar { display:flex; gap:8px; width:100%; max-width:720px; margin:6px 0 10px; }
.mk-tb-seg { flex:1; background:rgba(255,255,255,.82); border-radius:14px; padding:8px 10px; text-align:center; box-shadow:0 3px 8px rgba(80,90,180,.12); }
.mk-tb-name { font-size:12px; font-weight:800; color:#4a5470; display:block; }
.mk-tb-track { height:8px; background:#E8EAF2; border-radius:99px; margin:5px 0; overflow:hidden; }
.mk-tb-fill { height:100%; background:linear-gradient(90deg,#FF9F43,#F2711C); border-radius:99px; }
.mk-tb-num { font-size:13px; color:#D84315; }
.mk-actions { text-align:center; margin:2px 0 12px; }
/* 庆典横幅与弹窗 */
.mk-feast { cursor:pointer; }
.feast-sub { text-align:center; font-size:17px; font-weight:800; color:#7a5a20; margin:2px 0 8px; }
.feast-cast { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin:6px 0 10px; }
.feast-ch { font-size:34px; animation:mkDance 1.4s ease-in-out infinite; }
.feast-ch:nth-child(2n) { animation-delay:.3s; }
.feast-ch:nth-child(3n) { animation-delay:.6s; }

/* ---------- v165 数学王国·场景美术底图(万相生成) —— v168主人拍板撤下, 图片留images/备用, 样式保留不启用 ---------- */
.mk-zone { border:3px solid rgba(255,255,255,.6); }
.mk-zhead { position:relative; z-index:2; }
.mk-zone .mk-zbar { position:relative; z-index:2; }
.mk-zone .mk-legend { position:relative; z-index:2; }
/* 庆典弹窗用通关美术图做底 */
.modal-box.feast-bg { background:url('images/mk-feast.webp') center 30%/cover !important; }
.modal-box.feast-bg .ceremony { background:rgba(255,255,255,.35); border-radius:18px; padding:10px; }
.modal-box.feast-bg .cer-title, .modal-box.feast-bg .feast-sub { text-shadow:0 2px 6px rgba(255,255,255,.95); }

/* ============================================================
   v167 糖果贴纸风选项卡（主人设计规范）
   形状: 糖果/云朵/气泡; 字体: 站酷快乐体(本地)→系统圆体兜底
   卡片: 马卡龙渐变+白描边+贴纸阴影+轻微立体; 悬停上浮放大/点击弹跳/答对变金撒星/答错摇晃
   ============================================================ */
@font-face {
  font-family: 'ZKuaile';
  src: url('fonts/zklt.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'JiaguWen';
  src: url('fonts/FZJiaGW.TTF') format('truetype');
  font-display: swap;
}
/* ---- 象形字学习页: 甲骨文(上)↓演变↓现代字(下) ---- */
/* 识字学习页左列第1行 = 甲骨文(左) → 现代字(右) 水平排列 */
.learn-card.hz-split .learn-char-row { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.learn-jiagu { font-family: 'JiaguWen', 'Kaiti SC', serif; font-size: 78px; line-height: 1.15; color: #8B5A2B; }
.learn-card.jiagu-mode .learn-big { font-family: 'Kaiti SC', 'KaiTi', 'STKaiti', '楷体', serif; font-size: 66px; color: #3E3428; }
.learn-card.jiagu-mode .learn-jiagu::after { content: '→'; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 30px; font-weight: 700; color: #B08D4F; margin-left: 8px; }
.learn-card.jiagu-mode .write-target { width: 170px; height: 170px; }   /* 田字格缩小15%(200→170), 给甲骨文+现代字腾空间 */
/* ---- 糖果卡基础(气泡形+白描边+贴纸阴影+弹簧动效) ---- */
.hunt-item, .hztest-char, #listen-opts .opt, #battle-opts .opt.hzfont {
  position: relative;
  font-family: 'ZKuaile', 'Yuanti SC', 'YouYuan', '幼圆', 'Arial Rounded MT Bold', 'PingFang SC', sans-serif;
  color: #5a4632;
  border: 4px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 14px rgba(120,90,60,.14), inset 0 -5px 0 rgba(120,90,60,.06), inset 0 3px 5px rgba(255,255,255,.7);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, background .18s;
}
/* ---- 马卡龙色系轮转(粉/黄/蓝/绿, 摸底字卡加紫五色) ---- */
.hunt-field .hunt-item:nth-child(4n+1), #listen-opts .opt:nth-child(4n+1), #battle-opts .opt.hzfont:nth-child(4n+1) { background: linear-gradient(155deg,#ffe3f0,#ffc2dd); }
.hunt-field .hunt-item:nth-child(4n+2), #listen-opts .opt:nth-child(4n+2), #battle-opts .opt.hzfont:nth-child(4n+2) { background: linear-gradient(155deg,#fff6cc,#ffe9a3); }
.hunt-field .hunt-item:nth-child(4n+3), #listen-opts .opt:nth-child(4n+3), #battle-opts .opt.hzfont:nth-child(4n+3) { background: linear-gradient(155deg,#dcf4ff,#b0e2ff); }
.hunt-field .hunt-item:nth-child(4n+4), #listen-opts .opt:nth-child(4n+4), #battle-opts .opt.hzfont:nth-child(4n+4) { background: linear-gradient(155deg,#e2f9da,#bdf0b8); }
.hztest-char:nth-child(5n+1) { background: linear-gradient(155deg,#ffe3f0,#ffc2dd); }
.hztest-char:nth-child(5n+2) { background: linear-gradient(155deg,#fff6cc,#ffe9a3); }
.hztest-char:nth-child(5n+3) { background: linear-gradient(155deg,#dcf4ff,#b0e2ff); }
.hztest-char:nth-child(5n+4) { background: linear-gradient(155deg,#e2f9da,#bdf0b8); }
.hztest-char:nth-child(5n+5) { background: linear-gradient(155deg,#eee4ff,#d7c6fa); }
/* ---- 气泡/云朵形状 ---- */
.hunt-item { border-radius: 44% 56% 52% 48% / 52% 46% 54% 48%; }
.hztest-char { border-radius: 38% 46% 42% 44% / 46% 42% 48% 40%; }
#listen-opts .opt, #battle-opts .opt.hzfont { border-radius: 32px 40px 34px 38px / 38px 34px 40px 32px; min-height: 92px; display: flex; align-items: center; justify-content: center; }
/* ---- 字号: 大字粗圆 ---- */
.hunt-char { font-size: 48px; color: #5a4632; font-family: inherit; }
.hztest-char { font-size: 54px; }
#listen-opts .opt { font-size: 56px; }   /* v174 拼音/字母选项放大一倍(30→56), 孩子看得清 */
#listen-opts .opt.hzfont, #battle-opts .opt.hzfont { font-size: 46px; }
.opt.hantxt { font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif; }
/* ---- 悬停上浮放大(触屏无hover自动跳过) ---- */
@media (hover:hover) {
  .hunt-item:hover, .hztest-char:hover, #listen-opts .opt:hover, #battle-opts .opt.hzfont:hover {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 12px 22px rgba(120,90,60,.18), inset 0 -5px 0 rgba(120,90,60,.06), inset 0 3px 5px rgba(255,255,255,.7);
  }
}
/* ---- 点击弹跳 ---- */
.hunt-item:active, .hztest-char:active, #listen-opts .opt:active, #battle-opts .opt.hzfont:active { transform: scale(.88); }
/* ---- 答对: 变金色+弹跳+撒星星 ---- */
.hunt-item.right, #listen-opts .opt.right, #battle-opts .opt.right {
  background: linear-gradient(155deg,#fff3bf,#ffd54f) !important;
  border-color: #fff;
  box-shadow: 0 0 22px rgba(255,193,7,.55), inset 0 -5px 0 rgba(120,90,60,.08), inset 0 3px 5px rgba(255,255,255,.7);
  animation: candyPop .45s cubic-bezier(.34,1.56,.64,1);
}
.hunt-item.right::after, #listen-opts .opt.right::after, #battle-opts .opt.right::after {
  content: '✨'; position: absolute; top: -16px; right: -10px; font-size: 30px; pointer-events: none;
  animation: sparklePop .7s ease-out;
}
@keyframes candyPop { 0% { transform: scale(.8); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes sparklePop { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 60% { transform: scale(1.5) rotate(15deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
/* ---- 答错: 轻微摇晃 ---- */
.hunt-item.no, #listen-opts .opt.wrong, #battle-opts .opt.wrong { animation: shakeX .4s; }
/* ---- 游戏区字体统一正楷体(与课本一致) ---- */
.mole-char, .mem-tile, .balloon { font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif; }
.balloon { color: #333; text-shadow: 0 1px 2px rgba(255,255,255,.6); }

/* ============================================================
   v168 田字格字帖风(主人二次修订): 简洁白底田字格+黑字+底阴影, 喇叭同款
   取代 v167 马卡龙糖果卡(站酷快乐体保留)
   ============================================================ */
/* 白底田字格卡 + 底部阴影(字体: 正楷体, 与课本一致; v168b: 字放大一倍, 红边改细) */
.hunt-item, .hztest-char, #listen-opts .opt, #battle-opts .opt.hzfont, .mem-tile.face {
  background: #fff;
  border: 1.5px solid rgba(229,115,115,.55);
  border-radius: 14px;
  color: #333;
  font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif;
  box-shadow: 0 5px 0 rgba(213,85,85,.14), 0 9px 18px rgba(120,60,60,.12);
  overflow: hidden;
}
/* 盖掉 v167 马卡龙底色(同特异性, 靠后生效) */
.hunt-field .hunt-item:nth-child(n), #listen-opts .opt:nth-child(n), #battle-opts .opt.hzfont:nth-child(n), .hztest-char:nth-child(n) { background: #fff; }
.hunt-field .hunt-item { border-color: rgba(229,115,115,.55) !important; }   /* 盖过三皮肤主题色的绿/蓝/红边框(0,3,0压不过) */
.hunt-item, .hztest-char, #listen-opts .opt, #battle-opts .opt.hzfont { border-radius: 14px; }
/* 趣味捕捉的目标位: 里面已是喇叭按钮, 拆掉原金色底框 */
.hunt-target { background: none; box-shadow: none; min-width: 0; min-height: 0; line-height: normal; }
/* 田字格虚线十字(与"我来写"描红同款) */
.hunt-item::before, .hztest-char::before, #listen-opts .opt::before, #battle-opts .opt.hzfont::before, .mem-tile.face::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 2px dashed rgba(229,115,115,.55); pointer-events: none;
}
.hunt-item::after, .hztest-char::after, #listen-opts .opt::after, #battle-opts .opt.hzfont::after, .mem-tile.face::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  border-left: 2px dashed rgba(229,115,115,.55); pointer-events: none;
}
/* 尺寸: 字放大一倍(v168b) */
.hunt-field { max-width: 640px; }
.hunt-char { font-size: 76px; color: #333; }
.hztest-char { font-size: 88px; min-height: 88px; }
#listen-opts .opt, #battle-opts .opt.hzfont { min-height: 108px; }
#listen-opts .opt.hzfont, #battle-opts .opt.hzfont { font-size: 68px; }
@media (max-width: 480px) {
  .hunt-char { font-size: 52px; }
  .hztest-char { font-size: 56px; }
  #listen-opts .opt { font-size: 40px; }   /* v174 窄屏字母选项收一档防溢出 */
  #listen-opts .opt.hzfont, #battle-opts .opt.hzfont { font-size: 46px; }
}
/* 摸底"已认识"状态: 柔和绿 */
.hztest-char.known {
  background: #e7f6e7; border-color: #66bb6a; color: #1b5e20;
  box-shadow: 0 5px 0 rgba(76,175,80,.18), 0 9px 18px rgba(60,120,60,.14);
}
/* 喇叭按钮同款字帖风(听音页大喇叭 + 听音找字小喇叭); v168b: 去掉红边 */
.listen-speaker {
  width: 110px; height: 110px; border-radius: 24px; border: none;
  background: #fff; font-size: 52px; color: #333;
  box-shadow: 0 6px 0 rgba(213,85,85,.14), 0 10px 20px rgba(120,60,60,.14);
  animation: pulse 2.4s infinite ease-in-out;
}
.listen-speaker:active { transform: translateY(4px) scale(.96); box-shadow: 0 2px 0 rgba(213,85,85,.14), 0 4px 10px rgba(120,60,60,.12); }
.hz-speak-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px; border: none;
  background: #fff; font-size: 26px; color: #333; cursor: pointer; vertical-align: middle;
  box-shadow: 0 4px 0 rgba(213,85,85,.14), 0 7px 14px rgba(120,60,60,.12);
}
.hz-speak-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(213,85,85,.14), 0 3px 8px rgba(120,60,60,.12); }
/* v169 识字看词选字: 挖空词+拼音视觉题干(音频deferred期) */
.listen-visual { font-size: 34px; font-weight: 700; color: #4e342e; margin: 10px 0 4px; letter-spacing: 1px; }
.hz-blank { color: #e65100; background: #fff3e0; border-radius: 12px; padding: 2px 10px; box-shadow: inset 0 -3px 0 rgba(230,81,0,.18); }
.hz-py { font-size: .62em; color: #8d6e63; background: #fbe9e7; border-radius: 10px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }
.hunt-target .hz-blank, #mole-target .hz-blank { font-size: 1.1em; }

/* ============================================================
   v-design 星空地图主界面 · 概念图版(糖果玻璃星球)
   深空背景 + 磨砂分组卡片 + 立体球体 + 三态(进行中/已完成/未解锁)
   ============================================================ */
#screen-map {
  background:
    radial-gradient(ellipse 90% 55% at 78% 8%, rgba(122,90,248,.22), transparent 60%),
    radial-gradient(ellipse 70% 45% at 12% 78%, rgba(255,110,180,.12), transparent 62%),
    radial-gradient(ellipse 60% 40% at 85% 85%, rgba(64,190,200,.1), transparent 60%),
    linear-gradient(163deg, #1d1d48 0%, #262558 45%, #34346a 100%);
}
#screen-map > .map-toprow,
#screen-map > .planet-grid, #screen-map > .map-progress { position: relative; z-index: 1; }

/* 顶部左右排: 奥特曼横幅(左) + 今日任务(右), 省竖向空间 */
.map-toprow { display: flex; gap: 12px; width: 100%; max-width: 980px; align-items: stretch; margin-bottom: 12px; }
.map-toprow .hero-banner { flex: 1 1 54%; margin-bottom: 0; }
.map-toprow .daily-banner {
  flex: 1 1 46%; margin-bottom: 0; align-content: center; justify-content: flex-start;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px; padding: 10px 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ---- 深空装饰层 ---- */
.map-space { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ms-nebula { position: absolute; border-radius: 50%; filter: blur(60px); }
.ms-nebula.n1 { width: 52%; height: 30%; left: -10%; top: -6%; background: rgba(255,150,90,.16); }
.ms-nebula.n2 { width: 42%; height: 26%; right: -8%; bottom: 6%; background: rgba(255,110,180,.09); }
.ms-nebula.n3 { width: 30%; height: 20%; left: 30%; bottom: -8%; background: rgba(64,190,200,.08); }
.ms-galaxy {
  position: absolute; width: 240px; height: 240px; right: 2%; top: 2%; border-radius: 50%;
  filter: blur(5px); opacity: .8; transform: rotate(-16deg) scaleY(.52);
  background:
    radial-gradient(ellipse at center, rgba(255,250,240,.95) 0%, rgba(230,200,255,.55) 16%, transparent 38%),
    conic-gradient(from 200deg, transparent 0%, rgba(205,175,255,.4) 12%, transparent 28%, rgba(255,205,235,.38) 48%, transparent 66%, rgba(185,165,255,.36) 82%, transparent 100%);
}
.ms-farp { position: absolute; border-radius: 50%; filter: blur(2.5px); opacity: .5; }
.ms-farp.p1 { width: 96px; height: 96px; left: -2%; top: 32%; background: radial-gradient(circle at 32% 28%, #f0c8a8, #c07850); }
.ms-farp.p2 { width: 52px; height: 52px; right: 8%; top: 24%; background: radial-gradient(circle at 32% 28%, #b49af0, #6a4fc0); }
.ms-farp.p3 { width: 38px; height: 38px; left: 6%; top: 58%; background: radial-gradient(circle at 32% 28%, #8ad6d0, #2f8f88); }
.ms-comet { position: absolute; right: -2%; top: 12%; width: 30%; opacity: .85; }
.ms-cloud { position: absolute; border-radius: 50%; filter: blur(40px); }
.ms-cloud.c1 { width: 60%; height: 13%; left: -8%; bottom: 12%; background: rgba(170,180,232,.16); }
.ms-cloud.c2 { width: 55%; height: 11%; right: -6%; bottom: 16%; background: rgba(184,192,240,.14); }
.ms-cloud.c3 { width: 45%; height: 10%; left: 26%; bottom: 6%; background: rgba(192,200,244,.16); }
.ms-star { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 3s infinite ease-in-out; }

/* ---- 深空下的顶栏 / 底栏 / 横幅适配 ---- */
.on-map #topbar {
  background: rgba(24,20,56,.55); border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.on-map .energy-pill { color: #FFE082; text-shadow: 0 0 12px rgba(255,210,90,.55); }
.on-map #tabbar {
  background: linear-gradient(180deg, rgba(30,26,66,.5), rgba(22,18,54,.85));
  border-top: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  justify-content: center; gap: 14px;
}
.on-map #tabbar .tab { color: #b9b4e6; flex: 0 1 120px; }
.on-map #tabbar .tab.on {
  color: #fff; background: linear-gradient(135deg, rgba(255,213,79,.28), rgba(255,138,101,.28));
  box-shadow: 0 0 20px rgba(255,190,90,.32), inset 0 1px 0 rgba(255,255,255,.3);
}
.on-map #tabbar .tab.tab-center { flex: 0 0 66px; transform: translateY(-12px); }
.on-map #tabbar .tab.tab-center span { color: #fff; font-weight: 800; text-shadow: 0 1px 4px rgba(150,70,0,.65); }
.on-map .daily-banner .daily-title, .on-map .map-progress { color: #cfcaff; }
.on-map .hero-banner {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 44px rgba(0,0,16,.35), inset 0 1px 0 rgba(255,255,255,.28);
}
.on-map .hero-bubble {
  color: #eef; background: rgba(122,140,255,.16); border: 1px solid rgba(160,170,255,.35);
}
.on-map .daily-chip {
  background: rgba(255,255,255,.12); color: #eef; border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.on-map .daily-chip.done { background: rgba(102,187,106,.28); }
.on-map .daily-chip.chest { background: rgba(255,179,0,.28); }
.on-map .daily-chip.review { background: rgba(239,83,80,.3); }

/* ---- 分组磨砂卡片(清爽版: 少奶多透) ---- */
#screen-map .planet-grid { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.pg-card {
  position: relative; border-radius: 32px; padding: 14px 22px 18px; width: 100%;
  background: linear-gradient(150deg, rgba(255,255,255,.10), rgba(255,255,255,.045) 60%, rgba(255,255,255,.07));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 34px rgba(0,0,16,.3), inset 0 1px 0 rgba(255,255,255,.22);
}
.pg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pg-icon {
  width: 34px; height: 34px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.4);
}
.pg-icon-camp { background: linear-gradient(135deg, #4FC3F7, #7a5af8); }
.pg-icon-culture { background: linear-gradient(135deg, #F06292, #FFB300); }
.pg-title { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: 3px; text-shadow: 0 3px 10px rgba(0,0,0,.45); }
.pg-line { flex: 1; height: 4px; border-radius: 99px; margin-left: 8px; background: linear-gradient(90deg, rgba(255,255,255,.5), transparent); }
.pg-body { display: flex; align-items: flex-start; justify-content: space-evenly; flex-wrap: wrap; gap: 8px; }

/* ---- 糖果玻璃星球 ---- */
.sp-planet {
  --spd: 104px;
  position: relative; flex: none; width: calc(var(--spd) + 26px);
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  padding-top: 8px;
  animation: spBreathe 3s ease-in-out infinite;
}
.pg-body .sp-planet:nth-child(2) { animation-delay: -.6s; }
.pg-body .sp-planet:nth-child(3) { animation-delay: -1.2s; }
.pg-body .sp-planet:nth-child(4) { animation-delay: -1.8s; }
.pg-body .sp-planet:nth-child(5) { animation-delay: -2.4s; }
@keyframes spBreathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.sp-sphere {
  position: relative; width: var(--spd); height: var(--spd); border-radius: 50%; overflow: visible;
  filter: drop-shadow(0 0 20px var(--glow)) drop-shadow(0 0 42px var(--glow));
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.sp-planet:hover .sp-sphere, .sp-planet:active .sp-sphere { transform: scale(1.08); }
.sp-sphere::before {   /* 球体本体: 左上亮右下暗 */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 31% 27%, color-mix(in srgb, var(--c1) 45%, #fff) 0%, var(--c1) 34%, var(--c2) 72%, color-mix(in srgb, var(--c2) 62%, #1a1030) 100%);
  box-shadow: inset -10px -14px 26px rgba(20,5,40,.35), inset 8px 10px 20px rgba(255,255,255,.28);
}
.sp-tex { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.sp-tex svg { width: 100%; height: 100%; display: block; }
.sp-tex text { fill: rgba(255,255,255,.36); font-weight: 700; paint-order: stroke; stroke: rgba(60,20,10,.12); stroke-width: 1px; }
.sp-tex text.deep { fill: rgba(90,30,20,.24); }
.sp-shade {   /* 整体明暗罩: 左上补光右下压暗 */
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.32), transparent 42%, rgba(10,5,35,.05) 62%, rgba(8,4,30,.4) 100%);
}
.sp-hi {   /* 左上高光点 */
  position: absolute; left: 16%; top: 11%; width: 26%; height: 17%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.62), transparent 70%);
  transform: rotate(-24deg); pointer-events: none;
}
.sp-ring {   /* 土星环(英语/典故/兴趣) */
  position: absolute; left: 50%; top: 58%; width: 150%; height: 30%;
  transform: translate(-50%,-50%) rotate(-12deg); border-radius: 50%;
  border: 3px solid rgba(255,255,255,.8); border-top-color: transparent;
  box-shadow: 0 3px 10px rgba(255,255,255,.25); pointer-events: none;
}
.sp-orbitline {   /* 虚线轨道(数学/思维) */
  position: absolute; left: 50%; top: 38%; width: calc(var(--spd) * 1.3); height: calc(var(--spd) * .52);
  transform: translate(-50%,-50%) rotate(-12deg); border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.45); pointer-events: none;
}
.sp-mini {   /* 环绕同色小星星 */
  position: absolute; width: 10px; height: 10px; pointer-events: none;
  background: var(--c1, #fff); filter: drop-shadow(0 0 4px var(--c1, #fff));
  clip-path: polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%);
  animation: spBreathe 3.6s ease-in-out infinite;
}
.sp-mini.m1 { left: 4%; top: 22%; animation-delay: -.5s; }
.sp-mini.m2 { right: 2%; top: 12%; width: 13px; height: 13px; animation-delay: -1.3s; }
.sp-mini.m3 { right: 6%; bottom: 34%; width: 8px; height: 8px; animation-delay: -2.1s; }
.sp-shadow {   /* 右下柔和投影 */
  width: 86%; height: 13px; margin-top: 8px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(5,2,20,.5), transparent 70%);
  filter: blur(8px); transform: translateX(6%);
}
.sp-label {   /* 贴纸胶囊名称(降透明, 透出星光) */
  margin-top: 2px; font-size: 16px; font-weight: 800; letter-spacing: 3px; color: #4a3b6b;
  background: rgba(255,255,255,.72); border-radius: 999px; padding: 4px 18px 5px;
  border: 2.5px solid var(--c1, #ccc);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 3px 0 rgba(0,0,20,.16), 0 7px 14px rgba(0,0,14,.28);
}
.sp-sub { margin-top: 6px; font-size: 11px; font-weight: 600; color: #cfcaff; letter-spacing: 1px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* ---- 三态 ---- */
.sp-active .sp-sphere { animation: spPulse 2.2s ease-in-out infinite; }
@keyframes spPulse {
  0%,100% { filter: drop-shadow(0 0 24px var(--glow)) drop-shadow(0 0 50px var(--glow)); }
  50% { filter: drop-shadow(0 0 36px var(--glow)) drop-shadow(0 0 84px var(--glow)); }
}
.sp-badge {
  position: absolute; top: 0; right: 0; z-index: 5;
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: 1px;
  padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: 2px solid rgba(255,255,255,.85); box-shadow: 0 4px 10px rgba(0,0,10,.35);
}
.sp-done .sp-sphere::before {
  box-shadow: inset -10px -14px 26px rgba(20,5,40,.35), inset 8px 10px 20px rgba(255,255,255,.28),
    0 0 0 4px #FFD54F, 0 0 0 7px rgba(255,240,190,.5), 0 0 26px rgba(255,200,70,.7);
}
.sp-crown {
  position: absolute; top: -4px; right: 4px; width: 34px; height: 34px; z-index: 5;
  filter: drop-shadow(0 3px 5px rgba(0,0,10,.4)); animation: spBreathe 2.6s ease-in-out infinite;
}
.sp-crown svg { width: 100%; height: 100%; }
.sp-locked .sp-sphere { filter: grayscale(.55) brightness(.74) saturate(.7); }
.sp-locked .sp-label { background: rgba(235,235,245,.66); color: #6a6a80; }
.sp-locked .sp-mini { display: none; }
.sp-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sp-lock svg { width: 34%; height: 34%; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }

/* ---- 主界面整体紧凑(只缩球和间距, 字体保可读) ---- */
#screen-map { padding-top: 62px; }
.on-map .hero-banner { padding: 8px 18px; border-radius: 22px; gap: 12px; }
.on-map #map-hero { width: 100px; height: 115px; }
.on-map .hero-bubble { font-size: 15px; padding: 9px 14px; line-height: 1.5; }
.on-map .daily-banner { gap: 7px; }
.on-map .daily-chip { font-size: 13px; padding: 4px 12px; }
.on-map .daily-banner .daily-title { font-size: 14px; }
.on-map .map-progress { margin-top: 10px; font-size: 14px; }

/* ---- 响应式 ---- */
@media (max-width: 900px) { .sp-planet { --spd: 92px; } .pg-title { font-size: 20px; } }
/* 矮屏(笔记本/横屏平板)再紧凑一档(只缩球, 字不缩) */
@media (max-height: 840px) {
  .sp-planet { --spd: 84px; }
  .pg-card { padding: 10px 18px 14px; }
  #screen-map .planet-grid { gap: 12px; }
  .on-map #map-hero { width: 70px; height: 80px; }
  .pg-head { margin-bottom: 2px; }
  .pg-icon { width: 30px; height: 30px; border-radius: 10px; }
  .on-map .map-progress { margin-top: 8px; }
}
@media (max-width: 560px) {
  .sp-planet { --spd: 54px; width: calc(var(--spd) + 10px); padding-top: 6px; }
  .pg-body { flex-wrap: nowrap; gap: 2px; }   /* 小屏5球一排, 与桌面同构 */
  .pg-card { padding: 10px 4px 10px; border-radius: 22px; }
  #screen-map .planet-grid { gap: 8px; }
  #screen-map { padding-bottom: 84px; }
  .pg-title { font-size: 17px; letter-spacing: 2px; }
  .pg-icon { width: 28px; height: 28px; border-radius: 9px; }
  .pg-head { margin-bottom: 2px; }
  .sp-label { font-size: 13px; padding: 2px 8px 3px; letter-spacing: 1px; border-width: 2px; }
  .sp-sub { display: none; }   /* 小屏省掉进度行, 保一屏 */
  .sp-badge { font-size: 9px; padding: 1px 6px; }
  .sp-shadow { margin-top: 3px; height: 7px; }
  .sp-crown { width: 22px; height: 22px; }
  .sp-mini.m3 { display: none; }
  .map-toprow { gap: 8px; margin-bottom: 8px; }
  .on-map .hero-banner { padding: 5px 10px; gap: 8px; }
  .on-map #map-hero { width: 46px; height: 54px; }
  .on-map .hero-bubble { font-size: 12px; padding: 5px 10px; line-height: 1.4; }
  .on-map .daily-banner { padding: 6px 8px; gap: 5px; }
  .on-map .daily-chip { font-size: 12px; padding: 3px 9px; }
  .ms-galaxy { width: 130px; height: 130px; }
  .ms-comet { width: 44%; }
}

/* ============================================================
   v185 光之英雄墙 — 主界面主力奥特曼照片墙
   ============================================================ */
.hero-wall { align-items: stretch; gap: 14px; min-height: 176px; }
.hw-stage { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
/* 宽屏: 英雄墙独占一整行, 今日任务收成细条放下排 */
.map-toprow { flex-wrap: wrap; }
.map-toprow .hero-wall { flex: 1 1 100%; }
.map-toprow .daily-banner { flex: 1 1 100%; padding: 7px 14px; }

/* ---- 主展台: 出战英雄 ---- */
.hw-featured { position: relative; display: flex; flex-direction: column; align-items: center; }
.hw-halo {
  position: absolute; top: 50%; left: 50%; width: 170%; height: 120%;
  transform: translate(-50%, -54%); pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255,213,79,.30) 0%, rgba(255,138,101,.12) 42%, transparent 68%);
  animation: hwHalo 4s ease-in-out infinite;
}
@keyframes hwHalo { 50% { opacity: .65; transform: translate(-50%, -54%) scale(1.08); } }
.hw-featured .hero-canvas { position: relative; z-index: 1; animation: hwFloat 5s ease-in-out infinite; }
@keyframes hwFloat { 50% { transform: translateY(-6px); } }
.hw-nameplate {
  position: relative; z-index: 1; margin-top: 6px; text-align: center;
  display: flex; flex-direction: column; gap: 1px;
}
.hw-plate-name { font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,20,.6); white-space: nowrap; }
.hw-plate-rar { font-size: 11px; letter-spacing: 2px; color: #ffd54f; text-shadow: 0 0 8px rgba(255,213,79,.6); }
.hero-wall .hero-bubble { flex: 0 1 auto; min-width: 0; }

/* ---- 英雄墙: 8位主力 ---- */
.hw-roster {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 8px; align-items: stretch; justify-content: space-evenly;
}
.hw-cell {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  flex: 1 1 0; max-width: 96px; aspect-ratio: 7 / 10; align-self: center;
  border: 1.5px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 18px rgba(0,0,16,.4), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: hwFloat 6s ease-in-out infinite;
  background: #141232;
}
.hw-cell:hover { transform: translateY(-4px) scale(1.04); border-color: var(--hw-glow); box-shadow: 0 10px 26px rgba(0,0,16,.5), 0 0 16px var(--hw-glow); z-index: 2; }
.hw-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hw-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 6px 4px;
  background: linear-gradient(180deg, transparent, rgba(8,6,28,.88));
}
.hw-name { font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; }
.hw-rar { font-size: 10px; font-weight: 800; letter-spacing: 1px; flex: 0 0 auto; }
.hw-cell.locked .hw-art { filter: grayscale(.9) brightness(.42) contrast(1.1); }
.hw-cell.locked .hw-name, .hw-cell.locked .hw-rar { opacity: .55; }
.hw-lock {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; opacity: .9; text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.hw-cell.active { border-color: #ffd54f; box-shadow: 0 0 0 2px rgba(255,213,79,.55), 0 8px 24px rgba(255,160,40,.35); animation: none; }
.hw-on {
  position: absolute; top: 5px; left: 5px; z-index: 2;
  font-size: 10px; font-weight: 800; color: #3a2408; letter-spacing: 1px;
  background: linear-gradient(135deg, #ffd54f, #ff8a65);
  padding: 2px 7px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(255,160,40,.5);
}
.hw-tag {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  font-size: 9px; font-weight: 800; color: #efe9ff; letter-spacing: 1px;
  background: rgba(60,40,140,.72); border: 1px solid rgba(200,180,255,.4);
  padding: 2px 6px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* ---- 窄屏: 英雄墙改横滑条 ---- */
@media (max-width: 700px) {
  .hero-wall { flex-direction: column; gap: 10px; }
  .hw-roster {
    display: flex; overflow-x: auto; gap: 8px; padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .hw-roster::-webkit-scrollbar { display: none; }
  .hw-cell { flex: 0 0 74px; aspect-ratio: 7 / 10; animation: none; }
  .hw-name { font-size: 11px; }
}

/* ============================================================
   v185 开机页英雄扇形墙 — 7位主力奥特曼真卡面
   ============================================================ */
.boot-hero-wrap { position: relative; }
.boot-fan {
  position: relative; width: min(92vw, 560px); height: min(44vh, 330px);
  display: flex; align-items: center; justify-content: center;
}
/* 扇阵底部暖光辉映 */
.boot-fan::before {
  content: ''; position: absolute; left: 50%; bottom: -6%; width: 78%; height: 40%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,183,77,.4), rgba(255,138,101,.14) 55%, transparent 75%);
  filter: blur(10px); pointer-events: none;
}
.bf-card {
  position: absolute; width: 27%; max-width: 148px; aspect-ratio: 7 / 10;
  border-radius: 12px; overflow: hidden;
  border: 2.5px solid rgba(255,255,255,.95);
  box-shadow: 0 14px 34px rgba(120,70,20,.28), 0 2px 8px rgba(120,70,20,.18);
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(var(--sc));
  transform-origin: 50% 120%;
  animation: bfIn .7s cubic-bezier(.2,1.4,.4,1) backwards, bfSway 7s ease-in-out infinite;
  background: #fff;
}
@keyframes bfIn {
  from { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 90px)) rotate(0deg) scale(.6); }
}
@keyframes bfSway {
  50% { transform: translate(var(--dx), calc(var(--dy) - 7px)) rotate(var(--rot)) scale(var(--sc)); }
}
.bf-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.bf-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 11px; font-weight: 800; text-align: center; color: #fff;
  padding: 12px 2px 4px; letter-spacing: 1px;
  background: linear-gradient(180deg, transparent, rgba(10,8,30,.82));
  text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden;
}
/* 窄屏收紧扇面 */
@media (max-width: 560px) {
  .boot-fan { height: min(38vh, 300px); --spread: .58; }
  .bf-card { width: 30%; border-radius: 9px; border-width: 2px; }
  .bf-name { font-size: 9px; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .boot-fan { --spread: .8; }
}

/* ============================================================
   v186 开机页重构「光之勇士训练营」— 深空蓝紫·全屏无滚动
   星云/光粒子/速度线/能量流/光之国轮廓 + 能量核心按钮
   ============================================================ */
#screen-boot {
  /* v200 修: 去掉 display:flex —— ID选择器优先级压过.screen{display:none}, 导致开机屏永远显示,
     在所有透明底屏幕(关卡屏等)背后透出扇形卡墙; display交给.screen.active统一管 */
  flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; overflow: hidden;
  background: linear-gradient(168deg, #060a24 0%, #101a4a 34%, #1d1460 66%, #2b1878 100%);
}
.gb-space { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gb-nebula { position: absolute; border-radius: 50%; filter: blur(70px); }
.gb-nebula.n1 { width: 55%; height: 34%; left: -12%; top: -8%; background: rgba(77,208,225,.20); }
.gb-nebula.n2 { width: 48%; height: 30%; right: -10%; top: 22%; background: rgba(179,136,255,.20); }
.gb-nebula.n3 { width: 42%; height: 26%; left: 24%; bottom: -6%; background: rgba(255,110,199,.12); }
.gb-star { position: absolute; border-radius: 50%; background: #dff6ff; box-shadow: 0 0 6px rgba(160,230,255,.9); animation: twinkle 3s infinite ease-in-out; }
/* 速度线: 斜向光痕划过 */
.gb-speed {
  position: absolute; width: 34%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(174,246,255,.85), transparent);
  transform: rotate(-24deg); opacity: 0; animation: gbSpeed 5.2s linear infinite;
}
.gb-speed.s1 { left: -10%; top: 16%; animation-delay: .4s; }
.gb-speed.s2 { left: -14%; top: 38%; animation-delay: 2.1s; width: 26%; }
.gb-speed.s3 { left: -8%; top: 62%; animation-delay: 3.4s; width: 40%; }
.gb-speed.s4 { left: -16%; top: 80%; animation-delay: 1.3s; width: 22%; }
@keyframes gbSpeed {
  0% { transform: translateX(0) rotate(-24deg); opacity: 0; }
  8% { opacity: .9; }
  38% { transform: translateX(150vw) rotate(-24deg); opacity: 0; }
  100% { transform: translateX(150vw) rotate(-24deg); opacity: 0; }
}
/* 能量流 */
.gb-flow { position: absolute; left: 0; width: 100%; height: 22%; opacity: .8; }
.gb-flow.f1 { top: 6%; animation: gbFlow 7s ease-in-out infinite; }
.gb-flow.f2 { bottom: 16%; animation: gbFlow 9s ease-in-out infinite reverse; }
@keyframes gbFlow { 50% { opacity: .35; transform: translateY(10px); } }
/* 光之国轮廓 */
.gb-land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 24%; opacity: .9; }

/* 扇形英雄墙: 悬在标题上方 */
#screen-boot .boot-fan {
  position: relative; z-index: 2;
  width: min(96vw, 880px); height: min(37vh, 300px);
  display: flex; align-items: center; justify-content: center;
  margin-top: -2vh;
}
#screen-boot .boot-fan::before {
  background: radial-gradient(ellipse at center, rgba(77,208,225,.34), rgba(120,90,255,.14) 55%, transparent 75%);
}
#screen-boot .bf-card { width: 15.5%; max-width: 128px; border-color: rgba(210,240,255,.9); box-shadow: 0 14px 34px rgba(0,6,40,.55), 0 0 18px rgba(77,208,225,.22); }

/* 中央标题区 */
.boot-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
#screen-boot .boot-title {
  font-size: clamp(34px, 6.2vw, 62px); letter-spacing: 6px; margin: 1vh 0 0;
  background: linear-gradient(180deg, #ffffff 20%, #cfe9f7 58%, #9fc7e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.2px rgba(255,255,255,.5);
  text-shadow: 0 0 18px rgba(77,208,225,.75), 0 0 46px rgba(77,208,225,.4), 0 4px 18px rgba(0,10,40,.6);
}
#screen-boot .boot-sub { margin: 1.2vh 0 3.2vh; font-size: 12px; letter-spacing: 5px; color: #8fd8ea; font-weight: 700; text-shadow: 0 0 12px rgba(77,208,225,.5); }
#screen-boot .boot-tip { margin-top: 2.4vh; font-size: 14px; color: rgba(200,224,255,.72); font-weight: 600; letter-spacing: 2px; }

/* 能量核心按钮 */
.core-btn {
  position: relative; border: none; cursor: pointer; isolation: isolate;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 36px 8px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #0e2350, #0a1430);
  box-shadow: inset 0 2px 8px rgba(140,220,255,.25), inset 0 -3px 10px rgba(0,8,30,.6), 0 10px 30px rgba(0,8,40,.5);
  font-family: var(--font-cn);
  transition: transform .2s;
}
/* 旋转光环描边: 转角度不转元素(转元素会把环转成竖条) */
@property --coreA { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.core-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px; padding: 3.5px; z-index: 1;
  background: conic-gradient(from var(--coreA), #4dd0e1, #b388ff, #ffd54f, #4dd0e1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: coreSpinA 3.2s linear infinite;
  pointer-events: none;
}
/* 外围能量光晕 */
.core-btn::after {
  content: ''; position: absolute; inset: -16px; border-radius: 999px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(77,208,225,.45), transparent 70%);
  animation: corePulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes coreSpinA { to { --coreA: 360deg; } }
@keyframes corePulse { 50% { opacity: .5; transform: scale(1.1); } }
.core-btn > * { pointer-events: none; }
.core-core {
  width: 52px; height: 52px; flex: 0 0 auto; z-index: 2;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #d8fbff, #4dd0e1 55%, #0e7ea8);
  box-shadow: 0 0 18px rgba(77,208,225,.9), inset 0 -3px 8px rgba(0,40,80,.45);
  animation: corePulse 2s ease-in-out infinite;
}
.core-text {
  z-index: 2;
  font-size: 23px; font-weight: 800; letter-spacing: 5px; color: #eaf9ff;
  text-shadow: 0 0 12px rgba(77,208,225,.8);
}
.core-btn:active { transform: scale(.96); }

/* 窄屏适配 */
@media (max-width: 560px) {
  #screen-boot .boot-fan { height: min(34vh, 250px); --spread: .6; }
  #screen-boot .bf-card { width: 21%; }
  #screen-boot .boot-title { letter-spacing: 3px; }
  .core-core { width: 44px; height: 44px; font-size: 20px; }
  .core-text { font-size: 19px; letter-spacing: 3px; }
  .core-btn { padding: 7px 28px 7px 7px; gap: 10px; }
}
/* 卡面自带名字, 扇阵不再贴标签 */
#screen-boot .bf-name { display: none; }
@media (min-width: 561px) and (max-width: 900px) {
  #screen-boot .boot-fan { --spread: .82; }
}

/* ============================================================
   v187 星系轨道图 — 中央能量核心 + 双层椭圆轨道十星球
   ============================================================ */
#screen-map { padding: 62px 10px 12px; }
#screen-map > .daily-banner { position: relative; z-index: 2; margin: 0 auto 2px; }
#screen-map > .map-progress { position: relative; z-index: 2; margin-top: 2px; }
.orbit-stage { position: relative; flex: 1 1 auto; width: 100%; min-height: 300px; z-index: 1; }
.ob-orbits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ob-o { fill: none; stroke: rgba(160,220,255,.26); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(120,200,255,.30)); }

/* ---- 中央能量核心 ---- */
.ob-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; }
.ob-core::after {
  content: ''; position: absolute; left: 50%; top: 38%; width: 240%; aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(120,230,255,.30), rgba(90,120,255,.12) 45%, transparent 70%);
  animation: corePulse 3s ease-in-out infinite; pointer-events: none;
}
.ob-core-spin {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: calc(100% + 26px); aspect-ratio: 1; border-radius: 50%;
  padding: 4px; box-sizing: border-box;
  background: conic-gradient(from var(--coreA), rgba(77,208,225,.95), rgba(179,136,255,.25), rgba(255,213,79,.8), rgba(77,208,225,.25), rgba(77,208,225,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: coreSpinA 6s linear infinite; pointer-events: none;
}
.ob-core-orb {
  position: relative; width: clamp(92px, 15vmin, 136px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #eaffff 0%, #7fe3f5 30%, #2f7fd8 68%, #1a2a6e 100%);
  box-shadow: 0 0 34px rgba(110,220,255,.55), inset 0 -10px 24px rgba(10,20,80,.5), inset 6px 8px 18px rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  animation: hwFloat 5s ease-in-out infinite;
}
.ob-core-orb img {
  width: 62%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 2.5px solid rgba(255,255,255,.9); box-shadow: 0 0 16px rgba(255,255,255,.55); background: #0d1533;
}
.ob-core-zap {
  position: absolute; bottom: 2%; right: 4%; width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff8e1, #ffd54f 60%, #f57f17);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  box-shadow: 0 0 12px rgba(255,213,79,.8); animation: corePulse 2s ease-in-out infinite;
}
.ob-core-name {
  margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #d8f2ff;
  background: rgba(20,30,70,.45); border: 1px solid rgba(150,220,255,.3); border-radius: 999px;
  padding: 4px 14px; backdrop-filter: blur(8px); white-space: nowrap;
  text-shadow: 0 0 8px rgba(77,208,225,.5);
}

/* ---- 轨道星球 ---- */
.ob-planets { position: absolute; inset: 0; z-index: 3; }
.ob-planet {
  position: absolute; left: var(--px); top: var(--py); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  --spd: clamp(58px, 9vmin, 88px);
  animation: hwFloat 6s ease-in-out infinite;
}
.ob-ring {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: calc(var(--spd) + 18px); aspect-ratio: 1; pointer-events: none; z-index: 1;
}
.ob-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ob-ring-bg { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 2.4; }
.ob-ring-fg { fill: none; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255,255,255,.35)); transition: stroke-dasharray .6s; }
.ob-sphere { filter: drop-shadow(0 0 14px var(--glow)); }
.ob-hero {
  position: absolute; top: -22%; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 46%; aspect-ratio: 1; object-fit: cover; object-position: top center;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.92); background: #0d1533;
  box-shadow: 0 3px 10px rgba(0,0,30,.45);
}
.ob-icon {
  position: absolute; bottom: -7%; right: -9%; z-index: 2;
  width: 31%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--spd) * .17); box-shadow: 0 2px 6px rgba(0,0,20,.3);
}
.ob-name { margin-top: 8px; font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,20,.65); white-space: nowrap; }
.ob-py { font-size: 10px; color: #a9c6e8; letter-spacing: 1px; margin-top: 1px; }
.ob-hint { font-size: 10px; color: #ffd54f; margin-top: 2px; white-space: nowrap; }
.ob-hint.dim { color: #8fa8c8; }
.ob-badge {
  position: absolute; top: -14%; right: -34%; z-index: 3;
  font-size: 10px; font-weight: 800; color: #3a2408; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #ffd54f, #ff8a65); box-shadow: 0 2px 8px rgba(255,160,40,.5);
  white-space: nowrap;
}
.ob-crown { position: absolute; top: -22%; right: -16%; z-index: 3; font-size: 17px; filter: drop-shadow(0 2px 4px rgba(0,0,20,.5)); }
.ob-planet.task .ob-sphere { animation: spPulse 2.2s ease-in-out infinite; }

/* 未解锁: 灰暗 + 小云朵 + 剪影 */
.ob-planet.locked .sp-sphere::before { filter: grayscale(1) brightness(.55); }
.ob-planet.locked .sp-tex { opacity: .35; }
.ob-planet.locked .ob-sphere { filter: none; }
.ob-planet.locked .ob-hero { filter: grayscale(1) brightness(0) opacity(.55); border-color: rgba(255,255,255,.35); }
.ob-planet.locked .ob-icon { opacity: .45; }
.ob-planet.locked .ob-name { color: #9aa4c0; }
.ob-planet.locked .ob-py { color: #6c7796; }
.ob-cloud {
  position: absolute; top: -30%; right: -20%; z-index: 3; font-size: 21px;
  filter: drop-shadow(0 2px 6px rgba(0,0,20,.4));
  animation: hwFloat 3.5s ease-in-out infinite;
}

/* 窄屏微调 */
@media (max-width: 560px) {
  .ob-planet { --spd: clamp(52px, 15vw, 64px); }
  .ob-name { font-size: 13px; margin-top: 6px; }
  .ob-hint { display: none; }
  .ob-core-name { display: none; }
}

/* v187 右缘星球徽标/云朵换左侧防溢出 */
.ob-planet.flip-side .ob-badge { right: auto; left: -34%; }
.ob-planet.flip-side .ob-cloud { right: auto; left: -20%; }
.ob-planet.flip-side .ob-crown { right: auto; left: -16%; }

/* ============================================================
   v188 星系图紧凑化 + 银河漩涡核心(参考图重构) + 防闪
   ============================================================ */
/* 顶部标题 */
.map-galaxy-title {
  position: relative; z-index: 2; margin: 0 0 2px;
  font-size: clamp(20px, 3.2vmin, 28px); font-weight: 800; letter-spacing: 6px;
  color: #f2faff; text-shadow: 0 0 16px rgba(120,220,255,.65), 0 2px 10px rgba(0,10,40,.6);
}

/* ---- 银河漩涡核心(参照图: 玻璃泡+旋涡+金环) ---- */
.ob-core { z-index: 2; }
.ob-core::after {  /* 柔光晕保持 */
  background: radial-gradient(circle, rgba(120,200,255,.32), rgba(90,120,255,.14) 45%, transparent 70%);
}
.ob-core-bubble {
  position: relative; width: clamp(120px, 17.5vmin, 168px); aspect-ratio: 1; border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 46%, #cfefff 0%, #6ec6f5 22%, #3a6fe0 52%, #1a2a7e 76%, #0a1440 100%);
  box-shadow: 0 0 44px rgba(110,190,255,.5), inset 0 0 34px rgba(255,255,255,.3), inset -14px -18px 34px rgba(16,16,80,.45);
  animation: hwFloat 5s ease-in-out infinite;
}
/* 旋涡: 双层对流渐变, 圆内旋转不溢形 */
.ob-swirl {
  position: absolute; inset: -28%;
  background:
    conic-gradient(from 0deg, transparent 0%, rgba(255,222,150,.55) 7%, transparent 15%, rgba(170,225,255,.6) 28%, transparent 40%, rgba(255,214,130,.45) 53%, transparent 64%, rgba(170,225,255,.55) 78%, transparent 90%),
    conic-gradient(from 180deg, transparent 0%, rgba(120,180,255,.4) 12%, transparent 26%, rgba(255,230,170,.35) 44%, transparent 58%, rgba(140,200,255,.4) 72%, transparent 88%);
  filter: blur(7px);
  animation: swirlSpin 16s linear infinite;
}
@keyframes swirlSpin { to { transform: rotate(360deg); } }
/* 玻璃高光 */
.ob-core-hi {
  position: absolute; left: 12%; top: 8%; width: 42%; height: 26%;
  border-radius: 50%; transform: rotate(-24deg);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.75), transparent 70%);
  filter: blur(3px); pointer-events: none;
}
/* 金色斜环 */
.ob-core-goldring {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 158%; height: 46%; transform: translate(-50%, -50%) rotate(-10deg);
  border-radius: 50%; border: 4px solid rgba(255,214,120,.75);
  box-shadow: 0 0 14px rgba(255,200,90,.45), inset 0 0 10px rgba(255,220,140,.3);
  pointer-events: none;
  animation: goldGlow 3.4s ease-in-out infinite;
}
@keyframes goldGlow { 50% { border-color: rgba(255,226,150,.95); box-shadow: 0 0 26px rgba(255,200,90,.7), inset 0 0 14px rgba(255,220,140,.45); } }

/* ---- 星球: 奥特曼做球面主体 ---- */
.ob-planet { --spd: clamp(66px, 10.5vmin, 96px); }
.ob-sphere { filter: drop-shadow(0 0 14px var(--glow)); }
.ob-face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; border-radius: 50%;
}
/* 任务星脉动改纯transform(防filter重绘闪屏) */
.ob-planet.task .ob-sphere { animation: obPulse 2.2s ease-in-out infinite; }
@keyframes obPulse { 50% { transform: scale(1.07); } }
/* 未解锁: 封面暗化但不透明(防轨道线透过来), 加暗色罩层遮挡 */
.ob-planet.locked .ob-face { filter: grayscale(1) brightness(.62); opacity: 1; }
.ob-planet.locked .ob-sphere::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background: rgba(12, 16, 44, .68);
}
.ob-planet.locked .sp-sphere::before { filter: none; }

/* 名字改玻璃胶囊(参考图风格) */
.ob-name {
  margin-top: 10px; padding: 3px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 15px; letter-spacing: 3px;
}
.ob-py { margin-top: 2px; }

/* 窄屏微调 */
@media (max-width: 560px) {
  .ob-planet { --spd: clamp(46px, 13vw, 58px); }
  .ob-name { font-size: 11px; padding: 2px 9px; letter-spacing: 1px; margin-top: 7px; }
  .ob-py { font-size: 9px; }
  .map-galaxy-title { letter-spacing: 3px; }
  .ob-core-bubble { width: clamp(100px, 27vw, 130px); }
}

/* ============================================================
   v189 星系图打磨: 光之国标题/任务卡/星球光影/巨型能量核心
   ============================================================ */
/* ---- 标题「光之国」活泼化 ---- */
.map-galaxy-title {
  font-size: clamp(26px, 4.2vmin, 40px); letter-spacing: 10px;
  background: linear-gradient(180deg, #fff 15%, #ffe9a8 45%, #7fdcff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 22px rgba(140,220,255,.55), 0 4px 16px rgba(20,10,60,.55);
  animation: titleBob 3.6s ease-in-out infinite;
}
@keyframes titleBob { 50% { transform: translateY(-3px) scale(1.015); } }

/* ---- 今日任务: 磨砂任务卡, 大字版 ---- */
.on-map .daily-banner {
  gap: 10px; padding: 9px 16px; border-radius: 20px;
  background: rgba(24,34,84,.42); border: 1.5px solid rgba(140,210,255,.28);
  box-shadow: 0 8px 24px rgba(0,8,40,.35), inset 0 1px 0 rgba(255,255,255,.22);
}
.on-map .daily-banner .daily-title { font-size: 17px; font-weight: 800; color: #ffe9a8; letter-spacing: 1px; text-shadow: 0 0 10px rgba(255,213,79,.4); }
.on-map .daily-chip {
  font-size: 15px; font-weight: 700; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(160,220,255,.3); color: #eaf4ff;
}
.on-map .daily-chip.done { background: rgba(102,187,106,.25); border-color: rgba(165,214,167,.5); }
.on-map .daily-chip.chest { background: rgba(255,213,79,.22); border-color: rgba(255,213,79,.55); color: #ffe9a8; }
.on-map .daily-chip.review { background: rgba(179,136,255,.2); border-color: rgba(179,136,255,.5); }

/* ---- 星球: 光影立体 + 光环 + 拍动浮动 ---- */
.ob-planet { animation: obBob 3.6s ease-in-out infinite; transform: translate(-50%, -50%); }
@keyframes obBob { 50% { transform: translate(-50%, calc(-50% - 8px)); } }
/* 球底阴影 */
.ob-shadow {
  position: absolute; left: 50%; top: calc(var(--spd) + 2px); transform: translateX(-50%);
  width: 74%; height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,4,24,.5), transparent 70%);
  pointer-events: none;
}
/* 球面外圈光线(星系环) */
.ob-halo-ring {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 148%; height: 44%; transform: translate(-50%, -50%) rotate(-14deg);
  border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--c1) 72%, #fff);
  opacity: .55; box-shadow: 0 0 10px color-mix(in srgb, var(--c1) 65%, transparent);
  pointer-events: none;
}
/* 球体立体感加强: 主光源左上 */
.ob-sphere .sp-shade {
  background: linear-gradient(135deg, rgba(255,255,255,.22) 0%, transparent 38%, rgba(8,6,40,.38) 78%, rgba(4,2,28,.5) 100%);
}
.ob-sphere .sp-hi {
  background: radial-gradient(ellipse at 30% 22%, rgba(255,255,255,.85), transparent 46%);
}
.ob-planet.locked .ob-halo-ring { opacity: .18; border-color: #8a90aa; box-shadow: none; }

/* ---- 巨型玻璃能量核心(直径约26%画面宽, 全画面第一视觉) ---- */
.ob-core-bubble {
  width: clamp(150px, min(26vw, 38vh), 400px);
  background: radial-gradient(circle at 42% 38%,
    #ffffff 0%, #eafcff 9%, #a5e4ff 20%, #56b6f0 34%,
    #ffd66e 55%, #f0b23e 66%, #8f7ae0 82%, #3a2f8e 100%);
  box-shadow:
    0 0 60px rgba(120,200,255,.5), 0 0 120px rgba(140,120,255,.28),
    inset 0 0 40px rgba(255,255,255,.45),
    inset -18px -24px 44px rgba(30,16,90,.5),
    inset 12px 14px 30px rgba(255,255,255,.55);
  animation: obBobCore 4.2s ease-in-out infinite;
}
@keyframes obBobCore { 50% { transform: translateY(-7px); } }
/* 能量纹路: 干净有序的顺时针弧纹 */
.ob-swirl {
  inset: -26%; filter: blur(5px); opacity: .8;
  background:
    conic-gradient(from 20deg, transparent 0%, rgba(255,255,255,.5) 5%, transparent 12%, rgba(120,210,255,.45) 26%, transparent 36%, rgba(255,232,170,.5) 50%, transparent 60%, rgba(140,220,255,.4) 74%, transparent 84%, rgba(255,240,200,.4) 93%, transparent 100%);
  animation: swirlSpin 18s linear infinite;
}
/* 弧形闪电 */
.ob-bolt {
  position: absolute; inset: 18%; width: 64%; height: 64%;
  filter: drop-shadow(0 0 6px rgba(190,240,255,.9));
  opacity: .5; animation: boltBreathe 3.8s ease-in-out infinite;
}
@keyframes boltBreathe { 50% { opacity: .85; } }
/* 环形波纹 */
.ob-ripple {
  position: absolute; inset: 20%; border-radius: 50%;
  border: 1.6px solid rgba(220,245,255,.55);
  animation: rippleOut 4.4s ease-out infinite;
}
.ob-ripple.r2 { animation-delay: 2.2s; }
@keyframes rippleOut {
  0% { transform: scale(.55); opacity: 0; }
  25% { opacity: .6; }
  100% { transform: scale(1.25); opacity: 0; }
}
/* 内部细小粒子 */
.ob-dots { position: absolute; inset: 0; }
.ob-dots i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.9);
  animation: twinkle 2.8s infinite ease-in-out;
}
.ob-dots i:nth-child(1) { left: 30%; top: 26%; animation-delay: .2s; }
.ob-dots i:nth-child(2) { left: 58%; top: 20%; animation-delay: .9s; background: #ffe9a8; }
.ob-dots i:nth-child(3) { left: 70%; top: 44%; animation-delay: 1.5s; }
.ob-dots i:nth-child(4) { left: 26%; top: 58%; animation-delay: 2s; background: #ffe9a8; }
.ob-dots i:nth-child(5) { left: 48%; top: 68%; animation-delay: .6s; }
.ob-dots i:nth-child(6) { left: 62%; top: 60%; animation-delay: 2.4s; background: #bfefff; }
/* 左上高光带 / 右下柔影 */
.ob-core-hi {
  left: 9%; top: 7%; width: 52%; height: 30%; transform: rotate(-28deg);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.95), rgba(255,255,255,.25) 55%, transparent 75%);
  filter: blur(4px);
}
.ob-core-sh {
  position: absolute; right: 4%; bottom: 2%; width: 58%; height: 40%;
  border-radius: 50%; transform: rotate(-20deg);
  background: radial-gradient(ellipse at center, rgba(20,10,70,.45), transparent 70%);
  filter: blur(9px); pointer-events: none;
}
/* 三层蓝金呼吸光环 */
.ob-halo {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  animation: haloBreathe 4.6s ease-in-out infinite;
}
.ob-halo.h1 { width: 118%; aspect-ratio: 1; border: 2px solid rgba(140,220,255,.5); box-shadow: 0 0 18px rgba(120,210,255,.3); }
.ob-halo.h2 { width: 140%; aspect-ratio: 1; border: 2px solid rgba(255,214,120,.4); box-shadow: 0 0 22px rgba(255,210,110,.22); animation-delay: 1.5s; }
.ob-halo.h3 { width: 166%; aspect-ratio: 1; border: 1.6px solid rgba(160,150,255,.32); animation-delay: 3s; }
@keyframes haloBreathe { 50% { transform: translate(-50%, -50%) scale(1.045); opacity: .65; } }
/* 克制的放射线 */
.ob-rays {
  position: absolute; left: 50%; top: 50%; width: 210%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(190,230,255,.14) 0deg 3deg, transparent 3deg 24deg);
  -webkit-mask: radial-gradient(circle, transparent 26%, #000 30%, transparent 68%);
  mask: radial-gradient(circle, transparent 26%, #000 30%, transparent 68%);
  opacity: .5; animation: swirlSpin 40s linear infinite reverse; pointer-events: none;
}
/* 核心周围金色粒子/蓝色光点 */
.ob-particle { position: absolute; border-radius: 50%; pointer-events: none; animation: obPart 5s ease-in-out infinite; }
.ob-particle.p1 { left: -8%; top: 20%; width: 6px; height: 6px; background: #ffd54f; box-shadow: 0 0 10px #ffd54f; }
.ob-particle.p2 { right: -6%; top: 30%; width: 5px; height: 5px; background: #8fdcff; box-shadow: 0 0 10px #8fdcff; animation-delay: 1s; }
.ob-particle.p3 { left: 10%; bottom: -4%; width: 4px; height: 4px; background: #ffe9a8; box-shadow: 0 0 8px #ffe9a8; animation-delay: 2s; }
.ob-particle.p4 { right: 12%; bottom: 2%; width: 5px; height: 5px; background: #ffd54f; box-shadow: 0 0 10px #ffd54f; animation-delay: 3s; }
.ob-particle.p5 { left: 46%; top: -10%; width: 4px; height: 4px; background: #bfefff; box-shadow: 0 0 8px #bfefff; animation-delay: 1.6s; }
.ob-particle.p6 { right: 30%; top: -6%; width: 3px; height: 3px; background: #fff; box-shadow: 0 0 8px #fff; animation-delay: 2.6s; }
@keyframes obPart { 50% { transform: translateY(-10px); opacity: .55; } }

/* 旧核心构件停用 */
.ob-core-goldring, .ob-core-spin, .ob-core-orb, .ob-core-zap, .ob-core-name { display: none !important; }
/* 旧进度环构件停用 */
.ob-ring { display: none !important; }

/* 窄屏微调 */
@media (max-width: 560px) {
  .map-galaxy-title { letter-spacing: 5px; }
  .on-map .daily-banner { gap: 6px; padding: 7px 10px; }
  .on-map .daily-banner .daily-title { font-size: 14px; }
  .on-map .daily-chip { font-size: 13px; padding: 5px 11px; }
  .ob-core-bubble { width: clamp(120px, 30vw, 150px); }
}

/* ============================================================
   v190 核心重做: 透明玻璃球+五彩旋风+强光发散; 页面防抖; 去底栏
   ============================================================ */
/* 页面防抖: 星球浮动溢出不再触发滚动条 */
#screen-map { overflow: hidden !important; }
#screen-map > .map-progress { display: none !important; }

/* ---- 透明玻璃能量球 ---- */
.ob-core-bubble {
  background:
    radial-gradient(circle at 40% 36%, rgba(255,255,255,.30) 0%, rgba(190,235,255,.10) 30%, rgba(120,160,255,.05) 55%, rgba(90,70,190,.12) 88%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.16), transparent 42%);
  border: 2px solid rgba(255,255,255,.38);
  box-shadow:
    inset 0 0 46px rgba(255,255,255,.16),
    inset -18px -24px 44px rgba(40,30,120,.22),
    inset 12px 14px 30px rgba(255,255,255,.30),
    0 0 60px rgba(140,200,255,.35);
}
/* 五彩旋风: 彩虹conic双层反向旋转, 中心亮核, 边缘羽化 */
.ob-swirl {
  inset: -18%; filter: blur(7px); opacity: .95;
  background:
    conic-gradient(from 0deg, #ff9a76, #ffd54f, #7cf2c0, #54d8f5, #9a86f5, #ff8fb3, #ff9a76);
  -webkit-mask: radial-gradient(circle, #000 0%, #000 34%, transparent 64%);
  mask: radial-gradient(circle, #000 0%, #000 34%, transparent 64%);
  animation: swirlSpin 12s linear infinite;
}
.ob-swirl2 {
  position: absolute; inset: 6%; border-radius: 50%; filter: blur(4px); opacity: .85;
  background:
    conic-gradient(from 180deg, #54d8f5, #b388ff, #ff8fb3, #ffd54f, #69f0ae, #54d8f5);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 58%);
  mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 58%);
  animation: swirlSpin 9s linear infinite reverse;
}
/* 旋风中心亮核 */
.ob-hotcore {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255,250,220,.9) 30%, rgba(255,220,140,.35) 60%, transparent 75%);
  filter: blur(2px); animation: corePulse 2.6s ease-in-out infinite;
}
/* 强光线发散: 双层对转光束 */
.ob-rays {
  width: 260%; opacity: .85;
  background: repeating-conic-gradient(from 0deg, rgba(200,235,255,.5) 0deg 2.5deg, transparent 2.5deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 20%, rgba(0,0,0,.5) 42%, transparent 66%);
  mask: radial-gradient(circle, #000 20%, rgba(0,0,0,.5) 42%, transparent 66%);
  animation: swirlSpin 46s linear infinite;
}
.ob-rays2 {
  position: absolute; left: 50%; top: 50%; width: 225%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(from 9deg, rgba(255,220,140,.4) 0deg 2deg, transparent 2deg 26deg);
  -webkit-mask: radial-gradient(circle, #000 24%, rgba(0,0,0,.4) 44%, transparent 62%);
  mask: radial-gradient(circle, #000 24%, rgba(0,0,0,.4) 44%, transparent 62%);
  opacity: .7; animation: swirlSpin 60s linear infinite reverse; pointer-events: none;
}
/* 玻璃球闪电/波纹/粒子在五彩上保持清晰 */
.ob-bolt { opacity: .75; filter: drop-shadow(0 0 8px rgba(255,255,255,.95)); }
.ob-ripple { border-color: rgba(255,255,255,.6); }

/* ============================================================
   v191 核心再重做: 真透明玻璃球 + 多彩涡旋 + 粒子光线
   ============================================================ */
/* 真透明玻璃球: 只留玻璃光泽, 背景近乎全透 */
.ob-core-bubble {
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,.24), transparent 40%),
    radial-gradient(circle at 64% 74%, rgba(130,150,255,.10), transparent 55%);
  border: 2px solid rgba(255,255,255,.42);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,.10),
    inset 10px 12px 24px rgba(255,255,255,.22),
    inset -14px -18px 32px rgba(60,50,160,.14),
    0 0 46px rgba(140,200,255,.22);
}
/* 五彩旋风更清透(球透明后旋风是主角) */
.ob-swirl { opacity: .8; filter: blur(6px); }
.ob-swirl2 { opacity: .75; }
/* 多彩涡旋: 3色螺旋线, 整体顺时针缓转 */
.ob-vortex {
  position: absolute; inset: 12%; width: 76%; height: 76%;
  filter: drop-shadow(0 0 6px rgba(200,240,255,.5));
  animation: swirlSpin 20s linear infinite;
}
/* 旧闪电/光束停用 */
.ob-bolt, .ob-rays2 { display: none !important; }
.ob-rays {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  background: none; -webkit-mask: none; mask: none; opacity: 1;
  animation: none; border-radius: 0; transform: none; pointer-events: none;
}
/* 粒子光线: 沿径向外飘的光点 */
.ob-rays i {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: rayDrift 3.8s ease-in infinite;
}
@keyframes rayDrift {
  0% { transform: rotate(var(--ang)) translateX(var(--r0)) scale(.5); opacity: 0; }
  22% { opacity: .95; }
  100% { transform: rotate(var(--ang)) translateX(var(--r1)) scale(1); opacity: 0; }
}

/* ============================================================
   v192 核心照参考图重做: 玻璃球+白亮核心+双色细波纹+金蓝粒子
   ============================================================ */
/* 玻璃球内壁: 只留淡蓝(上)+淡金(右下)氛围色, 近乎全透 */
.ob-core-bubble {
  background:
    radial-gradient(circle at 50% 42%, rgba(170,220,255,.15), transparent 55%),
    radial-gradient(circle at 74% 82%, rgba(255,205,110,.15), transparent 52%),
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.20), transparent 42%);
  border: 2.5px solid rgba(214,238,255,.5);
  box-shadow:
    inset 0 0 46px rgba(200,230,255,.13),
    inset 16px 18px 34px rgba(255,255,255,.20),
    inset -22px -28px 50px rgba(50,40,140,.16),
    0 0 70px rgba(140,200,255,.30);
}
/* 彩虹旋风层彻底停用 */
.ob-swirl, .ob-swirl2, .ob-ripple { display: none !important; }
/* 白亮核心: 更大更爆, 带光晕 bloom */
.ob-hotcore {
  width: 36%; filter: blur(2px);
  background: radial-gradient(circle, #ffffff 0%, #ffffff 30%, rgba(240,250,255,.9) 46%, rgba(170,220,255,.4) 64%, transparent 78%);
}
.ob-hotcore::after {
  content: ''; position: absolute; inset: -60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(190,230,255,.5), transparent 65%);
  animation: corePulse 3s ease-in-out infinite;
}
/* 左上大月牙高光带(玻璃球灵魂) */
.ob-core-hi {
  left: 5%; top: 4%; width: 58%; height: 26%; transform: rotate(-26deg);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.98), rgba(255,255,255,.35) 52%, transparent 78%);
  filter: blur(5px);
}
/* 右下柔影保持克制 */
.ob-core-sh { background: radial-gradient(ellipse at center, rgba(30,20,90,.35), transparent 70%); }
/* 双色细波纹: 慢转, 透明度克制 */
.ob-vortex {
  inset: 14%; width: 72%; height: 72%;
  filter: drop-shadow(0 0 4px rgba(255,230,180,.4));
  animation: swirlSpin 26s linear infinite; opacity: .9;
}
/* 粒子改金/蓝双色, 落位偏波纹弧线 */
.ob-dots i:nth-child(1) { left: 24%; top: 62%; background: #ffd88a; box-shadow: 0 0 6px #ffd88a; }
.ob-dots i:nth-child(2) { left: 62%; top: 24%; background: #9fe6ff; box-shadow: 0 0 6px #9fe6ff; animation-delay: .9s; }
.ob-dots i:nth-child(3) { left: 72%; top: 58%; background: #ffd88a; box-shadow: 0 0 6px #ffd88a; animation-delay: 1.5s; }
.ob-dots i:nth-child(4) { left: 30%; top: 70%; background: #9fe6ff; box-shadow: 0 0 6px #9fe6ff; animation-delay: 2s; }
.ob-dots i:nth-child(5) { left: 50%; top: 72%; background: #ffd88a; box-shadow: 0 0 6px #ffd88a; animation-delay: .6s; }
.ob-dots i:nth-child(6) { left: 66%; top: 68%; background: #cfefff; box-shadow: 0 0 6px #cfefff; animation-delay: 2.4s; }

/* ============================================================
   v194 核心换AI真图: images/core-energy.webp(豆包概念图裁切)
   CSS手绘层全部退役, 外部光环/粒子光线保留
   ============================================================ */
.ob-core-bubble {
  background: none; border: none; box-shadow: none; overflow: visible;
  width: clamp(160px, min(28vw, 40vh), 420px);
}
.ob-core-img {
  width: 100%; aspect-ratio: 1; display: block; border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 70%, transparent 89%);
  mask: radial-gradient(circle, #000 70%, transparent 89%);
  filter: saturate(1.08);
}
/* CSS手绘核心层退役 */
.ob-hotcore, .ob-dots, .ob-core-hi, .ob-core-sh, .ob-vortex { display: none !important; }

/* ============================================================
   v195 核心外圈改斜向椭圆光环(同星球轨道姿态)+收缩扩散
   ============================================================ */
.ob-halo {
  aspect-ratio: auto;
  animation: haloOrbit 4.8s ease-in-out infinite;
}
/* 第一层紧贴球体 */
.ob-halo.h1 {
  width: 138%; height: 52%; border: 2px solid rgba(140,220,255,.5);
  box-shadow: 0 0 18px rgba(120,210,255,.32);
}
/* 第二层略远 */
.ob-halo.h2 {
  width: 168%; height: 64%; border: 2px solid rgba(255,214,120,.38);
  box-shadow: 0 0 22px rgba(255,210,110,.2); animation-delay: 1.6s;
}
/* 第三层更淡 */
.ob-halo.h3 {
  width: 200%; height: 76%; border: 1.6px solid rgba(160,150,255,.26);
  box-shadow: none; animation-delay: 3.2s;
}
/* 斜置(-12°与核心图内光环同向)+收缩扩散 */
@keyframes haloOrbit {
  0%, 100% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: .75; }
  50% { transform: translate(-50%, -50%) rotate(-12deg) scale(1.09); opacity: .4; }
}

/* ============================================================
   v196 前后遮挡分层: 轨道/能量圈 后半在下前半在上; 核心黑圈去除
   ============================================================ */
/* 核心图改真透明PNG, 去掉旧黑边与mask */
.ob-core-img {
  -webkit-mask: none; mask: none;
  filter: saturate(1.08) drop-shadow(0 0 24px rgba(120,200,255,.35));
}
/* 轨道前半段: 盖过核心下缘, 被星球压住 */
.ob-orbits-front { z-index: 3; clip-path: inset(52% 0 0 0); }
.ob-orbits-front .ob-o { stroke: rgba(190,235,255,.34); }
/* 星球层抬高 */
.ob-planets { z-index: 4; }
/* 能量圈前半弧: 与轨道相交的前缘, 盖过星球 */
.ob-core-front {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  clip-path: inset(54% 0 0 0);
}
.ob-core-front .ob-halo { position: absolute; left: 50%; top: 50%; }
/* 能量圈放大到与轨道相交 */
.ob-halo.h1 { width: 150%; height: 58%; }
.ob-halo.h2 { width: 205%; height: 78%; }
.ob-halo.h3 { width: 262%; height: 100%; border-color: rgba(160,150,255,.22); }
/* 后半环与核心同层(z2)保持原样; 前半环动画与后半同步(同delay) */
.ob-core-front .ob-halo.h1 { animation-delay: 0s; }
.ob-core-front .ob-halo.h2 { animation-delay: 1.6s; }
.ob-core-front .ob-halo.h3 { animation-delay: 3.2s; }

/* ============================================================
   v198 小星球自身光环也做前后遮挡: 后半藏球后, 前半绕球前
   ============================================================ */
/* 球面分层: 后环(0) < 封面(1) < 光影罩(2) < 前环(3) */
.ob-face { z-index: 1; }
.ob-sphere .sp-shade, .ob-sphere .sp-hi { z-index: 2; }
.ob-halo-ring { z-index: 0; }
.ob-planet.locked .ob-sphere::after { z-index: 2; }
/* 前弧: 同形同位, 只露下半 */
.ob-halo-front {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 148%; height: 44%; transform: translate(-50%, -50%) rotate(-14deg);
  border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--c1) 72%, #fff);
  opacity: .6; box-shadow: 0 0 10px color-mix(in srgb, var(--c1) 65%, transparent);
  pointer-events: none;
  clip-path: inset(52% 0 0 0);
}
.ob-planet.locked .ob-halo-front { opacity: .2; border-color: #8a90aa; box-shadow: none; }

/* ============================================================
   v199 识字星主界面「光之识字训练营」
   ============================================================ */
.hz-home {
  position: relative; width: 100%; min-height: calc(100vh - 210px);
  display: flex; align-items: center; gap: 18px;
}
/* 橙黄光效(识字星色) */
.hz-home::before, .hz-home::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.hz-home::before { width: 46%; height: 34%; left: -8%; top: -4%; background: rgba(255,160,60,.16); }
.hz-home::after { width: 38%; height: 28%; right: -4%; bottom: 0; background: rgba(255,200,80,.12); }
/* 漂浮汉字拼音 */
.hz-floats { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hz-floats span {
  position: absolute; color: rgba(255,210,130,.5); font-weight: 700;
  text-shadow: 0 0 10px rgba(255,180,80,.4);
  animation: hzFloatY 7s ease-in-out infinite;
}
.hz-floats span:nth-child(3n) { color: rgba(255,170,90,.4); }
.hz-floats span:nth-child(4n) { color: rgba(190,220,255,.42); }
@keyframes hzFloatY { 50% { transform: translateY(-16px) rotate(6deg); opacity: .55; } }

/* 中央主区 */
.hz-main { position: relative; z-index: 2; flex: 1 1 auto; max-width: 620px; }
.hz-title {
  margin: 0; font-size: clamp(24px, 3.6vmin, 36px); letter-spacing: 4px; font-weight: 800;
  background: linear-gradient(180deg, #fff 20%, #ffe9a8 55%, #ffb35c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(255,180,80,.4), 0 4px 16px rgba(20,10,60,.5);
}
.hz-subtitle { margin: 8px 0 18px; font-size: 15px; letter-spacing: 5px; color: #ffd98f; text-shadow: 0 0 12px rgba(255,190,90,.5); }

/* 变身器三卡 */
.hz-tiers { display: flex; gap: 14px; }
.hz-tier {
  position: relative; flex: 1; cursor: pointer; text-align: center;
  padding: 16px 10px 14px; border-radius: 24px;
  background: rgba(255,255,255,.10); border: 1.5px solid rgba(255,210,130,.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,8,40,.35), inset 0 1px 0 rgba(255,255,255,.25), 0 0 20px rgba(255,180,80,.12);
  transition: transform .25s, box-shadow .25s;
}
.hz-tier:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(0,8,40,.45), 0 0 30px rgba(255,190,90,.3); }
.hz-tier-core { position: relative; width: 84px; height: 84px; margin: 0 auto 8px; }
.hz-tier-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.hz-ring-bg { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 3; }
.hz-ring-fg { fill: none; stroke: #ffb35c; stroke-width: 3.6; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(255,180,90,.7)); transition: stroke-dasharray .6s; }
.hz-tier-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; filter: drop-shadow(0 3px 6px rgba(0,0,30,.4));
}
.hz-tier-spin {
  position: absolute; inset: -7px; border-radius: 50%; padding: 2.5px;
  background: conic-gradient(from var(--coreA), rgba(255,200,100,.9), rgba(255,255,255,.15), rgba(255,160,80,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: coreSpinA 4s linear infinite; pointer-events: none;
}
.hz-tier-cloud { position: absolute; top: -14%; right: -16%; font-size: 20px; animation: hwFloat 3.5s ease-in-out infinite; }
.hz-tier-name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 4px; text-shadow: 0 2px 8px rgba(0,0,20,.5); }
.hz-tier-py { font-size: 11px; color: #ffcf8f; letter-spacing: 1px; margin-top: 1px; }
.hz-tier-count { font-size: 12px; color: #cfe0f8; margin-top: 6px; }
.hz-tier-stars { font-size: 14px; margin-top: 3px; letter-spacing: 2px; }
.hz-tier-gate {
  margin-top: 8px; font-size: 11px; font-weight: 700; color: #d8e6ff; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 4px 8px;
}
.hz-tier-gate.can { background: rgba(255,190,90,.22); border-color: rgba(255,200,110,.6); color: #ffe2ae; animation: gateGlow 1.6s ease-in-out infinite; }
.hz-tier-gate.passed { background: rgba(102,187,106,.2); border-color: rgba(165,214,167,.5); color: #c8f0cb; }
@keyframes gateGlow { 50% { box-shadow: 0 0 14px rgba(255,190,90,.55); } }
/* 未解锁卡 */
.hz-tier.locked { filter: grayscale(.75) brightness(.62); border-color: rgba(160,165,190,.3); box-shadow: 0 10px 30px rgba(0,8,40,.3); }
.hz-tier.locked:hover { transform: none; }

/* v201 快捷操作条: 贴近三阶段卡的暖橙玻璃风(替代原顶部五彩按钮条+已删的底部三按钮) */
.hz-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; align-items: center; }
.hz-quick-pill {
  font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #ffe2ae;
  background: rgba(255,190,90,.16); border: 1px solid rgba(255,200,110,.45);
  border-radius: 999px; padding: 7px 13px; text-shadow: 0 0 8px rgba(255,190,90,.35);
}
.hz-quick button {
  border: 1px solid rgba(255,210,130,.3); cursor: pointer; font-family: var(--font-cn);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #ffe9c9;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: .2s;
}
.hz-quick button:hover { background: rgba(255,200,110,.2); border-color: rgba(255,210,130,.55); box-shadow: 0 0 14px rgba(255,190,90,.25); }
.hz-quick button:active { transform: scale(.95); }

/* 右侧破框英雄 */
.hz-hero { position: relative; z-index: 2; flex: 0 0 34%; max-width: 340px; align-self: center; }
.hz-hero-frame {
  position: absolute; inset: 8% 4% 12% 8%; border-radius: 28px;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,210,130,.3);
  backdrop-filter: blur(10px); transform: rotate(3deg);
  box-shadow: 0 18px 44px rgba(0,8,40,.4), inset 0 1px 0 rgba(255,255,255,.2);
}
.hz-hero-img {
  position: relative; width: 100%; display: block; border-radius: 24px;
  transform: rotate(-3deg) translateX(6%) scale(1.08);
  box-shadow: 0 20px 46px rgba(0,8,40,.55), 0 0 34px rgba(255,180,80,.25);
  animation: hzHeroIn .8s cubic-bezier(.2,1.3,.4,1) backwards, hwFloat 5s ease-in-out infinite 1s;
  border: 2px solid rgba(255,230,170,.5);
}
@keyframes hzHeroIn { from { opacity: 0; transform: rotate(-3deg) translateX(46%) scale(1.08); } }
/* 胸口计时器发光 */
.hz-hero-timer {
  position: absolute; left: 52%; top: 34%; width: 9%; aspect-ratio: 1; z-index: 2;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 38% 32%, #eaffff, #54d8f5 60%, #0e7ea8);
  box-shadow: 0 0 16px rgba(90,220,255,.95), 0 0 40px rgba(90,220,255,.5);
  animation: timerPulse 1.8s ease-in-out infinite; pointer-events: none;
}
@keyframes timerPulse { 50% { box-shadow: 0 0 26px rgba(140,235,255,1), 0 0 64px rgba(90,220,255,.7); transform: translate(-50%, -50%) scale(1.18); } }
.hz-hero-tag {
  position: relative; margin-top: 14px; text-align: center; z-index: 2;
  font-size: 13px; font-weight: 700; color: #ffe2ae; letter-spacing: 1px;
  background: rgba(24,34,84,.5); border: 1px solid rgba(255,210,130,.35); border-radius: 999px;
  padding: 6px 14px; backdrop-filter: blur(8px);
}

/* Q版错字兽 */
.hz-beast {
  position: fixed; left: 18px; bottom: 108px; z-index: 3; cursor: pointer;   /* v200 修: 固定定位挂视口左下(底栏之上), 不再被英雄牌/底栏遮挡 */
  width: 74px; height: 64px; border-radius: 46% 46% 42% 42%;
  background: linear-gradient(160deg, #b388ff, #7c5cd6);
  box-shadow: 0 8px 20px rgba(60,30,140,.45), inset 0 3px 8px rgba(255,255,255,.35);
  animation: beastWobble 3.2s ease-in-out infinite;
}
@keyframes beastWobble { 25% { transform: rotate(-4deg) translateY(-3px); } 75% { transform: rotate(4deg) translateY(0); } }
.hz-beast-eye {
  position: absolute; top: 34%; width: 10px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 -2px 3px rgba(0,0,60,.25);
}
.hz-beast-eye::after { content: ''; position: absolute; left: 3px; top: 4px; width: 4px; height: 5px; border-radius: 50%; background: #2a1a5e; }
.hz-beast-eye.l { left: 24%; } .hz-beast-eye.r { right: 24%; }
.hz-beast-mouth {
  position: absolute; left: 50%; top: 62%; width: 22px; height: 10px; transform: translateX(-50%);
  border-radius: 0 0 20px 20px; background: #4a2f9e;
  box-shadow: inset 0 2px 4px rgba(0,0,40,.5);
}

/* 中屏(pad竖): 英雄收窄防破框出血到屏外 */
@media (min-width: 701px) and (max-width: 900px) {
  .hz-hero { flex-basis: 25%; max-width: 190px; }
  .hz-hero-img { transform: rotate(-3deg) scale(1.02); }
  .hz-beast { bottom: 120px; }
}

/* 窄屏: 英雄缩小靠右上, 卡片纵排 */
@media (max-width: 700px) {
  .hz-home { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 16px; }
  .hz-hero { position: absolute; right: 2%; top: 0; width: 27%; max-width: 115px; }   /* v201 再收窄: 别压快捷条 */
  .hz-hero-tag { display: none; }
  .hz-main { max-width: none; padding-top: 8px; }
  .hz-title { font-size: 21px; max-width: 64%; }
  .hz-subtitle { font-size: 12px; margin-bottom: 12px; max-width: 64%; }
  .hz-tiers { gap: 8px; }
  .hz-tier { padding: 10px 6px 10px; border-radius: 18px; }
  .hz-tier-core { width: 58px; height: 58px; }
  .hz-tier-icon { font-size: 24px; }
  .hz-tier-name { font-size: 15px; letter-spacing: 2px; }
  .hz-tier-count { font-size: 10px; }
  .hz-tier-gate { font-size: 9px; padding: 3px 6px; }
  .hz-quick { gap: 6px; margin-bottom: 12px; max-width: 70%; }   /* 给右上英雄让位 */
  .hz-quick-pill, .hz-quick button { font-size: 11px; padding: 6px 10px; }
  .hz-beast { position: absolute; width: 56px; height: 48px; left: auto; right: 2%; bottom: 2%; }   /* 窄屏仍回右下角 */
}

/* v200 识字主界面深空全屏模式: 关卡屏换深空底+放宽版心+顶栏紧凑; v202 mt-mode=数学同款蓝色版 */
#screen-levels.hz-mode {
  background:
    radial-gradient(ellipse 70% 45% at 82% 10%, rgba(255,150,60,.13), transparent 60%),
    radial-gradient(ellipse 55% 40% at 8% 88%, rgba(255,190,90,.10), transparent 62%),
    radial-gradient(ellipse 60% 45% at 15% 8%, rgba(90,120,255,.12), transparent 60%),
    linear-gradient(165deg, #0a0e2e 0%, #141a4a 45%, #1e1456 100%);
}
#screen-levels.mt-mode {
  background:
    radial-gradient(ellipse 70% 45% at 82% 10%, rgba(60,170,255,.16), transparent 60%),
    radial-gradient(ellipse 55% 40% at 8% 88%, rgba(90,220,255,.10), transparent 62%),
    radial-gradient(ellipse 60% 45% at 15% 8%, rgba(120,130,255,.14), transparent 60%),
    linear-gradient(165deg, #081030 0%, #101a4e 45%, #141a5e 100%);
}
#screen-levels.hz-mode .level-map-wrap, #screen-levels.mt-mode .level-map-wrap, #screen-levels.en-mode .level-map-wrap { width: 100%; max-width: 1080px; height: auto; flex: 1 1 auto; display: flex; }
#screen-levels.hz-mode .level-path, #screen-levels.mt-mode .level-path, #screen-levels.en-mode .level-path { flex: 1 1 auto; display: flex; }
#screen-levels.hz-mode .hz-home, #screen-levels.mt-mode .hz-home, #screen-levels.en-mode .en-home { flex: 1 1 auto; }
#screen-levels.hz-mode #levels-actions, #screen-levels.mt-mode #levels-actions, #screen-levels.en-mode #levels-actions { display: none; }   /* v201/v202/v205 原顶部按钮条藏掉, 功能已搬进 hz-quick 贴近三阶段 */

/* ---------- v205 英语主界面绿色主题(en-home复用hz-home骨架, 数学同款) ---------- */
#screen-levels.en-mode {
  background:
    radial-gradient(ellipse 70% 45% at 82% 10%, rgba(80,220,140,.13), transparent 60%),
    radial-gradient(ellipse 55% 40% at 8% 88%, rgba(120,255,180,.09), transparent 62%),
    radial-gradient(ellipse 60% 45% at 15% 8%, rgba(100,240,170,.10), transparent 60%),
    linear-gradient(165deg, #0a1230 0%, #121c4e 45%, #182058 100%);
}
.en-home::before { background: rgba(80,220,140,.16) !important; }
.en-home::after { background: rgba(120,255,180,.11) !important; }
.en-home .hz-floats span { color: rgba(140,240,180,.5); text-shadow: 0 0 10px rgba(90,220,140,.45); }
.en-home .hz-floats span:nth-child(3n) { color: rgba(100,220,150,.42); }
.en-home .hz-floats span:nth-child(4n) { color: rgba(200,255,220,.45); }
.en-home .hz-title {
  background: linear-gradient(180deg, #fff 20%, #d8ffe8 55%, #5eeaa0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(90,220,140,.45), 0 4px 16px rgba(10,30,20,.5);
}
.en-home .hz-subtitle { color: #c8f5d8; text-shadow: 0 0 12px rgba(100,230,150,.55); }
/* 左上ABC星球装饰 */
.en-planet-deco {
  position: absolute; left: 1.2%; top: 1.5%; width: clamp(130px, 17%, 205px); z-index: 1;   /* v205 精抠大球, 放大展示 */
  pointer-events: none; opacity: .95; animation: hwFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(80,220,140,.4));
}
@media (max-width: 700px) {
  .en-planet-deco { display: none; }   /* 窄屏拥挤, 星球回桌面大图值班 */
  .en-home .hz-title { font-size: 16.5px; letter-spacing: 1px; }
}
/* 阶段卡/快捷条绿色(常规文档流, 与识字数学同款) */
.en-tiers .hz-tier { border-color: rgba(120,230,160,.38); box-shadow: 0 10px 30px rgba(0,8,40,.35), inset 0 1px 0 rgba(255,255,255,.25), 0 0 20px rgba(80,220,140,.14); }
.en-tiers .hz-tier:hover { box-shadow: 0 16px 38px rgba(0,8,40,.45), 0 0 30px rgba(110,240,160,.35); }
.en-tiers .hz-ring-fg { stroke: #5eeaa0; filter: drop-shadow(0 0 5px rgba(110,240,160,.75)); }
.en-tiers .hz-tier-spin { background: conic-gradient(from var(--coreA), rgba(140,245,180,.9), rgba(255,255,255,.15), rgba(80,220,140,.9)); }
.en-tiers .hz-tier-py { color: #a8f0c8; }
.en-tiers .hz-tier-count2 { font-size: 12px; color: #8fe8b8; margin-top: 3px; font-weight: 700; }
.en-tiers .hz-tier-gate { color: #dcffea; background: rgba(110,230,160,.09); border-color: rgba(110,230,160,.25); }
.en-tiers .hz-tier-gate.can { background: rgba(110,240,160,.2); border-color: rgba(140,245,180,.6); color: #dcffea; }
.en-quick button { color: #d8ffe8; border-color: rgba(120,230,160,.35); }
.en-quick button:hover { background: rgba(110,230,160,.18); border-color: rgba(140,240,180,.55); box-shadow: 0 0 14px rgba(90,220,140,.3); }
.en-quick .hz-quick-cards { color: #d8ffe8; }
.en-quick .hz-quick-cards i { background: rgba(255,255,255,.12); border-color: rgba(140,240,180,.4); }

/* ---------- v205 英语星域地图绿色变体(en-map复用hzm骨架) ---------- */
.en-map .hzm-tier-tag { color: #d8ffe8; background: rgba(90,220,140,.14); border-color: rgba(120,230,160,.4); text-shadow: 0 0 10px rgba(90,220,140,.4); }
.en-map .hzm-tab { color: #d2f0dc; }
.en-map .hzm-tab.on {
  background: linear-gradient(135deg, #7dedb0, #2ea86a); color: #0a3a20; border-color: rgba(200,255,220,.85);
  box-shadow: 0 0 16px rgba(90,220,140,.5), inset 0 1px 0 rgba(255,255,255,.55);
}
.en-map .hzm-line { stroke: rgba(120,235,165,.8); filter: drop-shadow(0 0 6px rgba(80,220,140,.7)); }
.en-map .hzm-node.done .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #d8ffd8, #5eeaa0 58%, #2ea86a);
  border-color: rgba(210,255,225,.9);
  box-shadow: 0 0 18px rgba(110,240,160,.75), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6);
}
.en-map .hzm-node.done .hzm-num { color: #0a3a20; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.en-map .hzm-node.cur .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #ecfff2, #7dedb0 55%, #2ea86a);
  border-color: #dcffea; animation: hzmPulseG 1.8s ease-out infinite;
}
.en-map .hzm-node.cur .hzm-num { color: #0a3a20; }
@keyframes hzmPulseG {
  0% { box-shadow: 0 0 0 0 rgba(125,237,176,.65), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
  70% { box-shadow: 0 0 0 20px rgba(125,237,176,0), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
  100% { box-shadow: 0 0 0 0 rgba(125,237,176,0), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
}
.en-map .hzm-cards i { background: rgba(235,255,240,.94); color: #1a6a3a; border-color: rgba(90,200,130,.45); }
.en-map .hzm-node.locked .hzm-cards i { background: rgba(200,205,225,.5); color: rgba(90,95,125,.8); border-color: rgba(160,165,190,.35); }
.en-map .hzm-tag { color: #dcffea; border-color: rgba(120,230,160,.4); }
/* 金色光门(与数学同款, 全地图唯一金色) */
.en-map .hzm-node.gate .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #ffb35c 58%, #f08a1d);
  border-color: rgba(255,235,180,.95);
  box-shadow: 0 0 24px rgba(255,170,80,.85), 0 10px 26px rgba(0,8,40,.5), inset 0 2px 0 rgba(255,255,255,.6);
  transform: scale(1.35);
}
.en-map .hzm-node.gate:hover .hzm-circle { transform: scale(1.45); }
.en-map .hzm-node.gate.locked .hzm-circle { filter: grayscale(.6) brightness(.7); }
.en-map .hzm-node.gate .hzm-tag { color: #ffe2ae; border-color: rgba(255,210,130,.5); }
.en-map .hzm-start { background: linear-gradient(135deg, #7dedb0, #2ea86a); color: #0a3a20; box-shadow: 0 10px 26px rgba(60,200,120,.42), inset 0 2px 0 rgba(255,255,255,.6); }
.en-map .hzm-back { border-color: rgba(120,230,160,.4); color: #dcffea; }
.en-map .hzm-back:hover { background: rgba(110,230,160,.16); }

/* ---------- v204 设计图抠图素材接入 ---------- */
/* Q版小男孩(带背景羽化截图): 边缘已渐隐, 不加边框投影, 破框倾斜保留 */
.hz-hero-img.boy {
  border: none; border-radius: 24px; box-shadow: none; background: none;
}
/* 图片版小怪兽: 去掉CSS手绘的紫团子底 */
.hz-beast.hz-beast-img { background: none; box-shadow: none; border-radius: 0; width: 108px; height: auto; }
.hz-beast-img img { width: 100%; display: block; filter: drop-shadow(0 8px 16px rgba(0,8,40,.5)); }
/* 数学主界面左上数字星球装饰 */
.mt-planet-deco {
  position: absolute; left: 1%; top: 1.5%; width: clamp(96px, 13%, 150px); z-index: 1;   /* 收小防压标题 */
  pointer-events: none; opacity: .92; animation: hwFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(80,180,255,.35));
}
@media (max-width: 700px) {
  .hz-beast.hz-beast-img { width: 66px; }
  .mt-planet-deco { width: 74px; top: 1%; }
}

/* v204 学习页背景优化: 淡黄→暖黄浅橙渐变(更亮不刺眼), 边缘淡蓝光晕+星尘, 与深空星球屏平滑过渡 */
#screen-learn {
  background:
    radial-gradient(ellipse 55% 38% at 0% 0%, rgba(140,180,255,.16), transparent 62%),
    radial-gradient(ellipse 55% 38% at 100% 100%, rgba(140,180,255,.14), transparent 62%),
    linear-gradient(160deg, #FFF7E2 0%, #FFEFD6 52%, #FFE4C4 100%);
}
#screen-learn::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle 2px at 8% 18%, rgba(255,255,255,.95), transparent 3px),
    radial-gradient(circle 1.5px at 22% 8%, rgba(190,215,255,.9), transparent 2.5px),
    radial-gradient(circle 2px at 88% 14%, rgba(255,255,255,.9), transparent 3px),
    radial-gradient(circle 1.5px at 94% 34%, rgba(190,215,255,.85), transparent 2.5px),
    radial-gradient(circle 2px at 6% 78%, rgba(190,215,255,.85), transparent 3px),
    radial-gradient(circle 1.5px at 16% 92%, rgba(255,255,255,.9), transparent 2.5px),
    radial-gradient(circle 2px at 92% 82%, rgba(255,255,255,.9), transparent 3px),
    radial-gradient(circle 1.5px at 82% 94%, rgba(190,215,255,.85), transparent 2.5px);
}

/* ---------- v202 数学主界面蓝色主题覆盖(mt-home复用hz-home骨架) ---------- */
.mt-home::before { background: rgba(60,170,255,.18) !important; }
.mt-home::after { background: rgba(90,220,255,.12) !important; }
.mt-home .hz-floats span { color: rgba(130,205,255,.5); text-shadow: 0 0 10px rgba(80,180,255,.45); }
.mt-home .hz-floats span:nth-child(3n) { color: rgba(90,170,255,.42); }
.mt-home .hz-floats span:nth-child(4n) { color: rgba(190,230,255,.45); }
.mt-home .hz-title {
  background: linear-gradient(180deg, #fff 20%, #cfeeff 55%, #54c8f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(80,180,255,.45), 0 4px 16px rgba(10,20,70,.5);
}
.mt-home .hz-subtitle { color: #bfe3ff; text-shadow: 0 0 12px rgba(90,190,255,.55); }
.mt-home .hz-tier { border-color: rgba(120,200,255,.38); box-shadow: 0 10px 30px rgba(0,8,40,.35), inset 0 1px 0 rgba(255,255,255,.25), 0 0 20px rgba(80,180,255,.14); }
.mt-home .hz-tier:hover { box-shadow: 0 16px 38px rgba(0,8,40,.45), 0 0 30px rgba(90,200,255,.35); }
.mt-home .hz-ring-fg { stroke: #54c8f5; filter: drop-shadow(0 0 5px rgba(90,200,255,.75)); }
.mt-home .hz-tier-spin { background: conic-gradient(from var(--coreA), rgba(130,215,255,.9), rgba(255,255,255,.15), rgba(70,170,255,.9)); }
.mt-home .hz-tier-py { color: #aee2ff; }
.mt-home .hz-tier-count { font-size: 12px; color: #cfe0f8; }
.mt-home .hz-tier-age { font-size: 11px; color: #8fc8f0; margin-top: 1px; }
.mt-home .hz-tier-count2 { font-size: 12px; color: #9fd8ff; margin-top: 3px; font-weight: 700; }
@media (max-width: 700px) {
  .mt-home .hz-title { font-size: 16.5px; letter-spacing: 2px; }   /* 标题比识字长2字, 小一号防折断 */
  .mt-home .hz-tier-count, .mt-home .hz-tier-count2 { font-size: 10px; }
  .mt-home .hz-tier-age { font-size: 9px; }
}
.mt-home .hz-tier-gate { color: #d4ecff; background: rgba(120,200,255,.09); border-color: rgba(120,200,255,.25); }
.mt-home .hz-tier-gate.can { background: rgba(90,200,255,.2); border-color: rgba(130,220,255,.6); color: #d8f2ff; }
.mt-home .mt-gates { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.mt-home .mt-gates .hz-tier-gate { margin-top: 0; }
.mt-home .hz-quick-pill { color: #cdeaff; background: rgba(90,190,255,.14); border-color: rgba(110,200,255,.45); text-shadow: 0 0 8px rgba(90,190,255,.4); }
.mt-home .hz-quick button { color: #d8f0ff; border-color: rgba(120,200,255,.32); }
.mt-home .hz-quick button:hover { background: rgba(110,200,255,.18); border-color: rgba(140,215,255,.55); box-shadow: 0 0 14px rgba(90,190,255,.3); }
.mt-home .hz-quick-cards { font-size: 12px; font-weight: 700; color: #cdeaff; letter-spacing: 1px; padding: 4px 2px; }
.mt-home .hz-quick-cards i {
  font-style: normal; margin-left: 5px; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.12); border: 1px solid rgba(140,215,255,.4);
}
.mt-home .hz-quick-cards em { font-style: normal; opacity: .65; font-size: 11px; }
.mt-home .hz-hero-frame { border-color: rgba(120,200,255,.35); }
.mt-home .hz-hero-img { border-color: rgba(180,230,255,.55); box-shadow: 0 20px 46px rgba(0,8,40,.55), 0 0 34px rgba(80,180,255,.3); }
.mt-home .hz-hero-tag { color: #cdeaff; border-color: rgba(120,200,255,.4); background: rgba(20,40,100,.5); }
/* Q版问号兽: 天蓝色错字兽造型 */
.mt-beast { background: linear-gradient(160deg, #7dd8ff, #3a9bd8); }
.mt-beast .mt-beast-q {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  font-size: 18px; font-weight: 900; color: #fff; line-height: 1;
  text-shadow: 0 2px 3px rgba(10,60,110,.4);
}

/* ============================================================
   v201 识字星域关卡地图「启蒙星域图」
   蛇形发光路径 + 三态圆形节点 + 星域标签 + 站岗小奥
   ============================================================ */
.hzm-wrap { position: relative; width: 100%; max-width: 1080px; margin: auto; display: flex; flex-direction: column; justify-content: center; }   /* margin:auto四向吸自由空间: 父容器row/column都能垂直居中 */
.hzm-head { text-align: center; }
.hzm-tier-tag {
  display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: 2px; color: #ffe2ae;
  background: rgba(255,190,90,.14); border: 1px solid rgba(255,200,110,.4); border-radius: 999px;
  padding: 6px 16px; text-shadow: 0 0 10px rgba(255,190,90,.4);
}
.hzm-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 4px 6px; scrollbar-width: none; }
.hzm-tabs::-webkit-scrollbar { display: none; }
.hzm-tab {
  flex: 1 0 auto; min-width: fit-content; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  font-family: var(--font-cn); font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #cfd9f5;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 16px; padding: 7px 10px; text-align: center; white-space: nowrap; transition: .2s;
}
.hzm-tab-r { display: block; font-size: 10px; font-weight: 700; opacity: .72; margin-top: 1px; }
.hzm-tab.on {
  background: linear-gradient(135deg, #ffd54f, #ff9a3c); color: #4a2a08; border-color: rgba(255,235,180,.85);
  box-shadow: 0 0 16px rgba(255,190,90,.5), inset 0 1px 0 rgba(255,255,255,.55);
}
.hzm-tab.on .hzm-tab-r { opacity: .8; }

.hzm-map { position: relative; flex: 0 0 auto; margin-top: 4px; }
.hzm-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hzm-line {
  fill: none; stroke: rgba(255,200,100,.8); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255,190,90,.7));
}

.hzm-node { position: absolute; transform: translate(-50%, -50%); width: 25%; max-width: 240px; text-align: center; cursor: pointer; z-index: 1; }
.hzm-node.cur { z-index: 3; }
.hzm-circle {
  position: relative; width: clamp(58px, 8.5vmin, 86px); height: clamp(58px, 8.5vmin, 86px); margin: 0 auto;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(120,140,220,.5), rgba(40,50,110,.55) 70%);
  border: 2px solid rgba(170,185,235,.4); box-shadow: 0 8px 20px rgba(0,8,40,.4), inset 0 2px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .2s;
}
.hzm-node:hover .hzm-circle { transform: scale(1.07); }
.hzm-num { font-size: clamp(20px, 3.2vmin, 30px); font-weight: 900; color: #eef2ff; text-shadow: 0 2px 6px rgba(10,15,50,.6); }
/* 已通关: 暖金光盘 */
.hzm-node.done .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #ffb35c 58%, #f08a1d);
  border-color: rgba(255,235,180,.9);
  box-shadow: 0 0 18px rgba(255,190,90,.75), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6);
}
.hzm-node.done .hzm-num { color: #5a3208; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
/* 当前关: 金色脉冲 */
.hzm-node.cur .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #fff3c9, #ffc84d 55%, #ff9a1f);
  border-color: #ffe9b0; animation: hzmPulse 1.8s ease-out infinite;
}
.hzm-node.cur .hzm-num { color: #4a2a08; }
@keyframes hzmPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,205,95,.65), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
  70% { box-shadow: 0 0 0 20px rgba(255,205,95,0), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
  100% { box-shadow: 0 0 0 0 rgba(255,205,95,0), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
}
/* 未解锁: 灰暗+小云朵 */
.hzm-node.locked { cursor: not-allowed; }
.hzm-node.locked .hzm-circle { filter: grayscale(.75) brightness(.66); }
.hzm-node.locked:hover .hzm-circle { transform: none; }
.hzm-cloud { position: absolute; top: -16px; right: -10px; font-size: 20px; filter: drop-shadow(0 2px 4px rgba(0,5,30,.4)); animation: hwFloat 3.5s ease-in-out infinite; }
.hzm-star { position: absolute; top: -10px; right: -8px; font-size: 17px; filter: drop-shadow(0 0 5px rgba(255,210,100,.8)); }
/* 站岗小奥(当前关头顶) */
.hzm-curhero { position: absolute; left: 50%; bottom: 88%; transform: translateX(-50%); width: clamp(46px, 6.4vmin, 66px); z-index: 4; pointer-events: none; }   /* 站上头顶不遮编号 */
.hzm-curhero img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block;
  border: 2px solid rgba(255,230,170,.75); box-shadow: 0 0 16px rgba(255,200,100,.65), 0 6px 14px rgba(0,8,40,.5);
  animation: hwFloat 4s ease-in-out infinite;
}
.hzm-curhero .hz-hero-timer { left: 50%; top: 52%; width: 15%; }
/* 节点小字卡 */
.hzm-cards { margin-top: 6px; display: flex; gap: 3px; justify-content: center; flex-wrap: nowrap; }
.hzm-cards i {
  font-style: normal; font-size: 11px; font-weight: 700; color: #6a4d12; line-height: 1;
  background: rgba(255,250,235,.94); border: 1px solid rgba(190,150,70,.45); border-radius: 5px;
  padding: 3px 4px; box-shadow: 0 2px 4px rgba(0,8,40,.3);
  max-width: 4.6em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;   /* v203 修: 长题干在窄屏挤成竖条; v206 放宽容4字成语 */
}
.hzm-node.locked .hzm-cards i { background: rgba(200,205,225,.5); color: rgba(90,95,125,.8); border-color: rgba(160,165,190,.35); }
/* 附加关/门 的名字牌 */
.hzm-tag {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800; color: #ffe9c9;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,210,130,.35); border-radius: 999px; padding: 4px 10px;
  backdrop-filter: blur(6px); white-space: nowrap;
}
.hzm-node.gate .hzm-circle { border-color: rgba(255,210,130,.55); }
.hzm-node.gate.done .hzm-circle { background: radial-gradient(circle at 35% 30%, #d3f2d5, #66bb6a 60%, #43a047); }

/* 底部操作条 */
.hzm-bottom { display: flex; gap: 14px; justify-content: center; align-items: center; padding: 8px 0 6px; flex-wrap: wrap; }
.hzm-start {
  border: none; cursor: pointer; font-family: var(--font-cn);
  font-size: clamp(17px, 2.4vmin, 21px); font-weight: 900; letter-spacing: 3px; color: #4a2a08;
  padding: 15px 42px; border-radius: 999px;
  background: linear-gradient(135deg, #ffd54f, #ff9a3c);
  box-shadow: 0 10px 26px rgba(255,160,50,.42), inset 0 2px 0 rgba(255,255,255,.6);
  transition: transform .2s;
}
.hzm-start:active { transform: scale(.96); }
.hzm-back {
  border: 1.5px solid rgba(255,210,130,.4); cursor: pointer; font-family: var(--font-cn);
  font-size: 14px; font-weight: 700; letter-spacing: 1px; color: #ffe9c9;
  padding: 12px 22px; border-radius: 999px;
  background: rgba(255,255,255,.09); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: .2s;
}
.hzm-back:hover { background: rgba(255,255,255,.17); }
/* 错字兽气泡 */
.hzm-beast-bubble {
  position: fixed; left: 130px; bottom: 118px; z-index: 3; pointer-events: none;   /* v204 图片兽变宽, 气泡右挪 */
  font-size: 13px; font-weight: 800; color: #6a4a12; letter-spacing: 1px;
  background: rgba(255,250,235,.95); border: 1px solid rgba(220,180,90,.5);
  border-radius: 14px 14px 14px 4px; padding: 8px 13px; box-shadow: 0 6px 16px rgba(0,8,40,.35);
}

@media (max-width: 700px) {
  .hzm-tabs { gap: 6px; padding-top: 8px; }
  .hzm-tab { font-size: 11px; padding: 6px 8px; border-radius: 13px; }
  .hzm-cards i { font-size: 9px; padding: 2px 3px; }
  .hzm-tag { font-size: 10px; padding: 3px 8px; }
  .hzm-start { padding: 13px 30px; }
  .hzm-back { font-size: 12px; padding: 10px 16px; }
  .hzm-beast-bubble { display: none; }   /* 窄屏气泡省掉, 小怪兽保留 */
  .hzm-wrap .hz-beast { display: none; }   /* 窄屏星域地图空间紧, 小怪兽回主界面值班 */
}

/* ---------- v203 数学星域地图蓝色变体(mt-map复用hzm骨架) ---------- */
.mt-map .hzm-tier-tag { color: #cdeaff; background: rgba(90,190,255,.14); border-color: rgba(110,200,255,.4); text-shadow: 0 0 10px rgba(90,190,255,.4); }
.mt-map .hzm-tab { color: #cfe3f8; }
.mt-map .hzm-tab.on {
  background: linear-gradient(135deg, #7dd8ff, #3a9bd8); color: #0a2a4a; border-color: rgba(190,235,255,.85);
  box-shadow: 0 0 16px rgba(90,190,255,.5), inset 0 1px 0 rgba(255,255,255,.55);
}
.mt-map .hzm-line { stroke: rgba(110,210,255,.8); filter: drop-shadow(0 0 6px rgba(80,180,255,.7)); }
.mt-map .hzm-node.done .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #cdeeff, #54c8f5 58%, #2a9bd8);
  border-color: rgba(200,240,255,.9);
  box-shadow: 0 0 18px rgba(90,200,255,.75), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6);
}
.mt-map .hzm-node.done .hzm-num { color: #0a2a4a; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.mt-map .hzm-node.cur .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #e8f8ff, #7dd8ff 55%, #3a9bd8);
  border-color: #d8f2ff; animation: hzmPulseB 1.8s ease-out infinite;
}
.mt-map .hzm-node.cur .hzm-num { color: #0a2a4a; }
@keyframes hzmPulseB {
  0% { box-shadow: 0 0 0 0 rgba(120,215,255,.65), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
  70% { box-shadow: 0 0 0 20px rgba(120,215,255,0), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
  100% { box-shadow: 0 0 0 0 rgba(120,215,255,0), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
}
.mt-map .hzm-cards i { background: rgba(230,246,255,.94); color: #12507a; border-color: rgba(90,160,220,.45); }
.mt-map .hzm-node.locked .hzm-cards i { background: rgba(200,205,225,.5); color: rgba(90,95,125,.8); border-color: rgba(160,165,190,.35); }
.mt-map .hzm-tag { color: #d8f0ff; border-color: rgba(120,200,255,.4); }
/* 金色光门: 放大1.35倍+橙金发光(门是数学地图唯一金色元素, 突出终点感) */
.mt-map .hzm-node.gate .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #ffb35c 58%, #f08a1d);
  border-color: rgba(255,235,180,.95);
  box-shadow: 0 0 24px rgba(255,170,80,.85), 0 10px 26px rgba(0,8,40,.5), inset 0 2px 0 rgba(255,255,255,.6);
  transform: scale(1.35);
}
.mt-map .hzm-node.gate:hover .hzm-circle { transform: scale(1.45); }
.mt-map .hzm-node.gate.locked .hzm-circle { filter: grayscale(.6) brightness(.7); }
.mt-map .hzm-node.gate .hzm-tag { color: #ffe2ae; border-color: rgba(255,210,130,.5); }
.mt-map .hzm-start { background: linear-gradient(135deg, #7dd8ff, #3a9bd8); color: #0a2a4a; box-shadow: 0 10px 26px rgba(60,160,230,.42), inset 0 2px 0 rgba(255,255,255,.6); }
.mt-map .hzm-back { border-color: rgba(120,200,255,.4); color: #d8f0ff; }
.mt-map .hzm-back:hover { background: rgba(110,200,255,.16); }

/* ============================================================
   v206 四星球通用主题变量系统(th + th-poem/th-logic/th-idiom/th-pinyin)
   ============================================================ */
.th-poem   { --c1:#9fd8ff; --c2:#5a9ae0; --ink:#0a2a4a; --soft:#d8ecff; --py:#a8d0f8; --glow:rgba(120,190,255,.45); --pulse:rgba(140,200,255,.65); --brd:rgba(140,200,255,.38); --bg1:#0a1230; --bg2:#141c4e; --bg3:#1a2458; --fl:rgba(150,200,255,.5); }
.th-logic  { --c1:#c99aff; --c2:#8a5ae0; --ink:#2a0a4a; --soft:#ecd8ff; --py:#d0a8f8; --glow:rgba(170,110,255,.45); --pulse:rgba(180,130,255,.65); --brd:rgba(180,130,255,.38); --bg1:#120a30; --bg2:#1c144e; --bg3:#241858; --fl:rgba(190,140,255,.5); }
.th-idiom  { --c1:#ffb37a; --c2:#e05a3a; --ink:#4a1a08; --soft:#ffe0c8; --py:#f8c090; --glow:rgba(255,140,90,.45); --pulse:rgba(255,150,100,.65); --brd:rgba(255,170,120,.4);  --bg1:#160e28; --bg2:#221440; --bg3:#2a1848; --fl:rgba(255,170,120,.5); }
.th-pinyin { --c1:#ff9ad0; --c2:#e05a9a; --ink:#4a0a2a; --soft:#ffd8ec; --py:#f8a8d0; --glow:rgba(255,130,190,.45); --pulse:rgba(255,150,200,.65); --brd:rgba(255,150,200,.4); --bg1:#180a30; --bg2:#22144e; --bg3:#2a1858; --fl:rgba(255,160,210,.5); }
/* v217 三星球主题: 典故金/安全青/兴趣彩虹紫 */
.th-story  { --c1:#ffd98a; --c2:#e0a03a; --ink:#4a2c08; --soft:#ffedc8; --py:#f8d090; --glow:rgba(255,200,110,.45); --pulse:rgba(255,205,120,.65); --brd:rgba(255,210,140,.42); --bg1:#141026; --bg2:#1e183e; --bg3:#281e4a; --fl:rgba(255,215,150,.5); }
.th-safety { --c1:#8ef0ff; --c2:#2aa8d8; --ink:#063040; --soft:#d8f6ff; --py:#a0e0f8; --glow:rgba(90,220,255,.45); --pulse:rgba(110,225,255,.65); --brd:rgba(120,220,250,.42); --bg1:#081426; --bg2:#0c2038; --bg3:#12284a; --fl:rgba(140,225,255,.5); }
.th-fun    { --c1:#e8b3ff; --c2:#8a5af0; --ink:#320a4a; --soft:#f2dcff; --py:#d8b0f8; --glow:rgba(200,130,255,.45); --pulse:rgba(205,150,255,.65); --brd:rgba(205,150,255,.42); --bg1:#150a2e; --bg2:#1f1450; --bg3:#291a5c; --fl:rgba(215,160,255,.5); }

/* v217 模块卡(安全2张/兴趣4张2×2) */
.hz-tiers.mods { display: grid; gap: 14px; width: 100%; max-width: 560px; margin-top: 10px; }
.hz-tiers.mods2 { grid-template-columns: 1fr 1fr; }
.hz-tiers.mods4 { grid-template-columns: 1fr 1fr; }
.hz-mod {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border: 1.5px solid var(--brd); border-radius: 20px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,8,40,.4), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .25s, box-shadow .25s;
}
.hz-mod:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(0,8,40,.45), 0 0 30px var(--glow); }
.hz-mod-core { position: relative; width: 64px; height: 64px; flex: 0 0 auto; }
.hz-mod-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; text-shadow: 0 0 12px var(--glow);
}
.hz-mod-info { flex: 1 1 0; min-width: 0; text-align: left; }
.hz-mod-name { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,20,.5); }
.hz-mod-sub { font-size: 11px; color: var(--py); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-mod-bar { height: 7px; margin-top: 7px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.hz-mod-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c1), var(--c2)); box-shadow: 0 0 8px var(--glow); }
.hz-mod-pct { font-size: 11px; color: var(--soft); margin-top: 4px; font-weight: 700; }
.hz-mod .hz-tier-gate { flex: 1 1 100%; margin-top: 4px; font-size: 11.5px; padding: 4px 10px; text-align: center; white-space: nowrap; }
@media (max-width: 700px) {
  .hz-tiers.mods { gap: 9px; max-width: 96%; }
  .hz-mod { padding: 9px 10px; gap: 8px; border-radius: 15px; }
  .hz-mod-core { width: 46px; height: 46px; }
  .hz-mod-icon { font-size: 22px; }
  .hz-mod-name { font-size: 14px; letter-spacing: 1px; }
  .hz-mod-sub { font-size: 9px; }
  .hz-mod-pct { font-size: 9.5px; }
}

/* v217 典故全开放分段卡(神话传说/文化通识) */
.hz-xsecs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.hz-xsec {
  display: flex; align-items: center; gap: 9px; padding: 10px 16px; cursor: pointer;
  background: linear-gradient(135deg, rgba(255,225,160,.16), rgba(255,190,90,.07));
  border: 1.5px solid var(--brd); border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,8,40,.35), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .25s, box-shadow .25s;
}
.hz-xsec:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,8,40,.4), 0 0 24px var(--glow); }
.hz-xsec-icon { font-size: 24px; text-shadow: 0 0 10px var(--glow); }
.hz-xsec-name { font-size: 15px; font-weight: 800; color: var(--soft); letter-spacing: 1px; }
.hz-xsec-sub { font-size: 10px; color: var(--py); }
.hz-xsec-pct { font-size: 11px; font-weight: 700; color: var(--soft); background: rgba(255,255,255,.12); border-radius: 99px; padding: 2px 8px; }
.hz-xsec-go { color: var(--c1); font-size: 14px; }
@media (max-width: 700px) {
  .hz-xsec { padding: 7px 10px; gap: 6px; }
  .hz-xsec-sub { display: none; }
}

/* v217 分区内段签(兴趣: 谜语/急转弯/编程的段切换) */
.hzm-sttabs { display: flex; gap: 8px; flex-wrap: wrap; }
.hzm-sttab {
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 99px; cursor: pointer;
  color: var(--soft); background: rgba(255,255,255,.08); border: 1.5px solid var(--brd);
}
.hzm-sttab.on {
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--ink); border-color: var(--soft);
  box-shadow: 0 0 14px var(--glow), inset 0 1px 0 rgba(255,255,255,.55);
}
.hzm-sttab.locked { opacity: .55; }

/* 结构规则(与hz/mt/en同款) */
#screen-levels.th-mode .level-map-wrap { width: 100%; max-width: 1080px; height: auto; flex: 1 1 auto; display: flex; }
#screen-levels.th-mode .level-path { flex: 1 1 auto; display: flex; }
#screen-levels.th-mode .hz-home { flex: 1 1 auto; }
#screen-levels.th-mode #levels-actions { display: none; }
#screen-levels.th-mode {
  background:
    radial-gradient(ellipse 70% 45% at 82% 10%, var(--glow), transparent 60%),
    radial-gradient(ellipse 55% 40% at 8% 88%, var(--glow), transparent 62%),
    linear-gradient(165deg, var(--bg1) 0%, var(--bg2) 45%, var(--bg3) 100%);
}

/* 主界面元素 */
.th::before { background: var(--glow) !important; }
.th .hz-floats span { color: var(--fl); text-shadow: 0 0 10px var(--glow); }
.th .hz-title {
  background: linear-gradient(180deg, #fff 20%, var(--soft) 55%, var(--c1) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px var(--glow), 0 4px 16px rgba(10,20,70,.5);
}
.th .hz-subtitle { color: var(--soft); text-shadow: 0 0 12px var(--glow); }
.th .hz-tier { border-color: var(--brd); }
.th .hz-ring-fg { stroke: var(--c1); filter: drop-shadow(0 0 5px var(--glow)); }
.th .hz-tier-spin { background: conic-gradient(from var(--coreA), var(--c1), rgba(255,255,255,.15), var(--c2)); }
.th .hz-tier-py { color: var(--py); }
.th .hz-tier-count2 { font-size: 12px; color: var(--py); margin-top: 3px; font-weight: 700; }
.th .hz-tier-gate { color: var(--soft); background: rgba(255,255,255,.08); border-color: var(--brd); }
.th .hz-tier-gate.can { background: rgba(255,255,255,.16); border-color: var(--c1); color: var(--soft); }
.th .hz-quick button { color: var(--soft); border-color: var(--brd); }
.th .hz-quick button:hover { background: rgba(255,255,255,.15); border-color: var(--c1); box-shadow: 0 0 14px var(--glow); }
.th .hz-quick-cards { color: var(--soft); }
.th .hz-quick-cards i { background: rgba(255,255,255,.12); border-color: var(--brd); }
.th-planet {
  position: absolute; left: 1.2%; top: 1.5%; width: clamp(120px, 16%, 190px); z-index: 1;
  pointer-events: none; opacity: .95; animation: hwFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--glow));
}
@media (max-width: 700px) {
  .th-planet { display: none; }
  .th .hz-title { font-size: 16.5px; letter-spacing: 1px; }
}

/* 星域地图元素 */
.th .hzm-tier-tag { color: var(--soft); background: rgba(255,255,255,.09); border-color: var(--brd); text-shadow: 0 0 10px var(--glow); }
.th .hzm-tab { color: var(--soft); }
.th .hzm-tab.on {
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--ink); border-color: var(--soft);
  box-shadow: 0 0 16px var(--glow), inset 0 1px 0 rgba(255,255,255,.55);
}
.th .hzm-line { stroke: var(--c1); filter: drop-shadow(0 0 6px var(--glow)); }
.th .hzm-node.done .hzm-circle {
  background: radial-gradient(circle at 35% 30%, var(--soft), var(--c1) 58%, var(--c2));
  border-color: var(--soft);
  box-shadow: 0 0 18px var(--glow), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6);
}
.th .hzm-node.done .hzm-num { color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.th .hzm-node.cur .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #fff, var(--c1) 55%, var(--c2));
  border-color: var(--soft); animation: hzmPulseTh 1.8s ease-out infinite;
}
.th .hzm-node.cur .hzm-num { color: var(--ink); }
@keyframes hzmPulseTh {
  0% { box-shadow: 0 0 0 0 var(--pulse), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
  70% { box-shadow: 0 0 0 20px rgba(0,0,0,0), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0), 0 8px 22px rgba(0,8,40,.45), inset 0 2px 0 rgba(255,255,255,.6); }
}
.th .hzm-cards i { background: rgba(255,252,245,.94); color: var(--ink); border-color: var(--brd); }
.th .hzm-node.locked .hzm-cards i { background: rgba(200,205,225,.5); color: rgba(90,95,125,.8); border-color: rgba(160,165,190,.35); }
.th .hzm-tag { color: var(--soft); border-color: var(--brd); }
/* 金色光门(通用) */
.th .hzm-node.gate .hzm-circle {
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #ffb35c 58%, #f08a1d);
  border-color: rgba(255,235,180,.95);
  box-shadow: 0 0 24px rgba(255,170,80,.85), 0 10px 26px rgba(0,8,40,.5), inset 0 2px 0 rgba(255,255,255,.6);
  transform: scale(1.35);
}
.th .hzm-node.gate:hover .hzm-circle { transform: scale(1.45); }
.th .hzm-node.gate.locked .hzm-circle { filter: grayscale(.6) brightness(.7); }
.th .hzm-node.gate .hzm-tag { color: #ffe2ae; border-color: rgba(255,210,130,.5); }
.th .hzm-start { background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--ink); box-shadow: 0 10px 26px var(--glow), inset 0 2px 0 rgba(255,255,255,.6); }
.th .hzm-back { border-color: var(--brd); color: var(--soft); }
.th .hzm-back:hover { background: rgba(255,255,255,.14); }

/* ============================================================
   v218 诗词星球参考图重做: 蓝色计数卡 + 诗卷/祥云装饰 + 地图诗韵之门
   ============================================================ */
.th-deco { position: absolute; z-index: 1; pointer-events: none; }
.th-poem .pm-deco-scroll { left: -9%; top: 34%; width: 14%; min-width: 100px; opacity: .92; filter: drop-shadow(0 8px 18px rgba(0,10,50,.5)); }
.th-poem .pm-deco-cloud { right: -2%; top: -3%; width: 19%; opacity: .85; filter: drop-shadow(0 0 16px rgba(140,200,255,.35)); }
@media (max-width: 900px) { .th-poem .pm-deco-scroll, .th-poem .pm-deco-cloud { display: none; } }

.th-poem .hz-tier.pmc {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 10px 14px; border-radius: 22px; overflow: hidden;
  border: 1.5px solid rgba(150,205,255,.45);
  background: linear-gradient(170deg, rgba(110,175,250,.30), rgba(40,80,170,.22) 55%, rgba(20,40,110,.28));
  box-shadow: 0 12px 30px rgba(0,10,50,.45), inset 0 1px 0 rgba(255,255,255,.3), 0 0 26px rgba(120,190,255,.18);
}
.th-poem .hz-tier.pmc2 { background: linear-gradient(170deg, rgba(90,150,230,.22), rgba(35,70,160,.18) 55%, rgba(18,36,100,.24)); }
.th-poem .hz-tier.pmc3 { background: linear-gradient(170deg, rgba(60,100,180,.16), rgba(25,45,120,.16) 55%, rgba(12,24,80,.26)); }
/* 卡面小装饰: 启蒙月亮/成长云朵/进阶云(半透明不压字) */
.th-poem .hz-tier.pmc1::after { content: '🌙'; position: absolute; top: 8%; right: 8%; font-size: 22px; opacity: .8; filter: drop-shadow(0 0 8px rgba(255,240,180,.6)); }
.th-poem .hz-tier.pmc2::after { content: '☁️'; position: absolute; top: 10%; right: 7%; font-size: 20px; opacity: .55; }
.th-poem .hz-tier.pmc3::after { content: '☁️'; position: absolute; bottom: 12%; right: 6%; font-size: 20px; opacity: .4; }
.th-poem .hz-pmc-name { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 5px; text-shadow: 0 2px 10px rgba(0,15,60,.6); }
.th-poem .hz-pmc-py { font-size: 11.5px; color: var(--py); letter-spacing: 1px; }
.th-poem .hz-pmc-age { font-size: 12px; color: var(--soft); opacity: .9; margin-bottom: 4px; }
.th-poem .hz-pmc-circle {
  width: 96px; height: 96px; border-radius: 50%; margin: 6px 0 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: radial-gradient(circle at 35% 28%, rgba(190,225,255,.35), rgba(60,110,210,.28) 60%, rgba(25,50,140,.3));
  border: 2.5px solid rgba(170,215,255,.75);
  box-shadow: 0 0 20px rgba(130,195,255,.4), inset 0 2px 8px rgba(255,255,255,.25);
}
.th-poem .hz-pmc-circle b { font-size: 24px; color: #fff; font-weight: 900; text-shadow: 0 0 12px rgba(140,205,255,.7); }
.th-poem .hz-pmc-circle b i { font-style: normal; font-size: 13px; font-weight: 700; }
.th-poem .hz-pmc-circle span { font-size: 11px; color: var(--soft); font-weight: 700; }
.th-poem .hz-pmc-stars { font-size: 15px; letter-spacing: 2px; margin-top: 4px; color: #ffd98a; text-shadow: 0 0 8px rgba(255,215,140,.5); }
.th-poem .hz-pmc-pill {
  margin-top: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 2px;
  color: #dceeff; background: rgba(255,255,255,.16); border: 1px solid rgba(160,210,255,.5);
  border-radius: 99px; padding: 4px 18px;
}
.th-poem .hz-tier.pmc.locked .hz-pmc-pill { color: #9db4d8; background: rgba(255,255,255,.07); border-color: rgba(140,170,220,.3); }

/* 诗词地图右侧诗韵之门装饰(宽屏时地图和星域签都让出右侧门位) */
@media (min-width: 1101px) {
  .th-poem.hzm-wrap .hzm-map { width: 74%; }
  .th-poem.hzm-wrap .hzm-head { width: 74%; text-align: left; }
  .th-poem.hzm-wrap .hzm-head .hzm-tier-tag { display: block; width: fit-content; margin: 0 auto 6px; }
}
.th .th-mapgate {
  position: absolute; right: -1%; top: 6%; height: 58%; z-index: 1; cursor: pointer;
  filter: drop-shadow(0 0 26px rgba(255,205,110,.45));
  animation: hwFloat 7s ease-in-out infinite;
}
@media (max-width: 1100px) { .th .th-mapgate { display: none; } }

/* ============================================================
   v219 界面颜色过渡优化(诊断方案落地)
   方案一: 深色屏统一深色顶底栏(消灭浅色夹心, 字色同步换浅)
   方案二: 光之传送换屏过渡层
   方案三: 学习页顶部星空渐隐带
   ============================================================ */
/* ---- 方案一: 深色屏(识字/数学/英语/七星球主题)顶底栏沉入深空玻璃 ---- */
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #topbar {
  background: rgba(24, 20, 56, .55); border-bottom: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) .energy-pill {
  color: #FFE082; text-shadow: 0 0 12px rgba(255, 210, 90, .55);
}
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #tabbar {
  background: linear-gradient(180deg, rgba(30, 26, 66, .5), rgba(22, 18, 54, .85));
  border-top: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  justify-content: center; gap: 14px;
}
/* 字颜色联动: 深底浅字(主人点名关照) */
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #tabbar .tab { color: #b9b4e6; flex: 0 1 120px; }
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #tabbar .tab.on {
  color: #fff; background: linear-gradient(135deg, rgba(255, 213, 79, .28), rgba(255, 138, 101, .28));
  box-shadow: 0 0 20px rgba(255, 190, 90, .32), inset 0 1px 0 rgba(255, 255, 255, .3);
}
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #tabbar .tab.tab-center { flex: 0 0 66px; transform: translateY(-12px); }
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #tabbar .tab.tab-center span { color: #fff; font-weight: 800; text-shadow: 0 1px 4px rgba(150, 70, 0, .65); }
/* 幸运抽奖深色屏换"星能金扣"(主人点名: 橙圆钮在深空界面不搭/光晕过曝)——星系屏+星球屏统一 */
.on-map #tabbar .tab.tab-center,
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #tabbar .tab.tab-center {
  background: linear-gradient(160deg, rgba(255, 214, 120, .22), rgba(255, 160, 80, .13));
  border: 1.5px solid rgba(255, 205, 110, .55);
  box-shadow: 0 4px 14px rgba(255, 180, 90, .22), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.on-map #tabbar .tab.tab-center,
.on-map #tabbar .tab.tab-center span,
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #tabbar .tab.tab-center,
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #tabbar .tab.tab-center span {
  color: #ffd98a; font-weight: 800; text-shadow: 0 1px 6px rgba(80, 40, 0, .5);
}
/* 顶栏按钮深空玻璃化(首页/礼物/卡册图标钮) */
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #topbar .icon-btn,
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #topbar button {
  background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2);
}
/* 各模式主题色边缘光(识字橙/数学蓝/英语绿/七星球紫) */
body:has(#screen-levels.hz-mode.active) #tabbar { border-top-color: rgba(255, 190, 110, .38); }
body:has(#screen-levels.mt-mode.active) #tabbar { border-top-color: rgba(130, 205, 255, .38); }
body:has(#screen-levels.en-mode.active) #tabbar { border-top-color: rgba(140, 235, 175, .38); }
body:has(#screen-levels.th-mode.active) #tabbar { border-top-color: rgba(190, 170, 255, .34); }

/* ---- 方案二(v221盖屏式): 光之传送换屏过渡——先盖同色系幕布, 换屏后淡出揭开 ---- */
#warp-veil { position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0; }
#warp-veil.wv-cd { background: #151936; }   /* 深空幕布(贴近星系/星球屏底色) */
#warp-veil.wv-cl { background: #FFF3DA; }   /* 暖米幕布(贴近学习页/浅色屏底色) */
#warp-flash { position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: 0; }
/* 深空→学习页: 幕布揭开瞬间一道温和金光(变身仪式感, 收敛不刺眼) */
#warp-flash.wv-gold {
  background: radial-gradient(circle at 50% 46%, rgba(255, 238, 185, .9) 0%, rgba(255, 205, 110, .5) 26%, rgba(255, 190, 90, 0) 58%);
  animation: wvGold .55s ease-out .06s;
}
@keyframes wvGold { 0% { opacity: 0; } 30% { opacity: .8; } 100% { opacity: 0; } }

/* ---- 方案三: 学习页顶部一抹星空渐隐(从星空落回书桌) ---- */
#screen-learn {
  background:
    linear-gradient(180deg, rgba(21, 25, 64, .5) 0%, rgba(30, 38, 100, .22) 8%, rgba(30, 38, 100, 0) 15%),
    radial-gradient(ellipse 55% 38% at 0% 0%, rgba(140, 180, 255, .16), transparent 62%),
    radial-gradient(ellipse 55% 38% at 100% 100%, rgba(140, 180, 255, .14), transparent 62%),
    linear-gradient(160deg, #FFF7E2 0%, #FFEFD6 52%, #FFE4C4 100%);
}

/* v52 象形字实物图(识字学习页"字像什么"展示) */
.xz-img { height: 44px; width: auto; vertical-align: middle; border-radius: 10px; margin-right: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.14); }

/* v251 看图说话题目配真图 */
#battle-scene img { max-width: 100%; max-height: 220px; border-radius: 16px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* v253 单卡即时练(替代描红): 听音找字秒答一题, 答对盖章+5⚡ */
.quick-check { width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 22px;
  background: rgba(255,213,79,.14); border: 2px dashed rgba(255,167,38,.55);
  grid-column: 1 / -1; }
.qc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qc-label { font-size: 18px; font-weight: 700; color: #E65100; }
.qc-rehear { border: none; background: rgba(255,255,255,.85); border-radius: 999px;
  padding: 6px 14px; font-size: 15px; color: #5D4037; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.qc-rehear:active { transform: scale(.94); }
.qc-opts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.qc-opt { min-width: 78px; min-height: 64px; padding: 8px 16px; border-radius: 18px;
  border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.9);
  font-size: 30px; font-weight: 800; color: #37474F; font-family: inherit;
  box-shadow: 0 4px 10px rgba(50,60,150,.14); transition: transform .15s; }
.qc-opt.qc-hz { font-size: 38px; font-family: "Yuanti SC","YouYuan","幼圆",KaiTi,serif; }
.qc-opt:active { transform: scale(.93); }
.qc-opt.ok { background: #C8E6C9; border-color: #43A047; color: #1B5E20; transform: scale(1.08); }
.qc-opt.bad { background: #FFCDD2; border-color: #E57373; animation: qc-shake .4s; }
@keyframes qc-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 560px) {
  .qc-opt { min-width: 64px; min-height: 56px; font-size: 24px; }
  .qc-opt.qc-hz { font-size: 32px; }
  .qc-label { font-size: 16px; }
}

/* ============================================================
   v63 英语·主题单元旅程(2026-09-16)
   首页: 横滑10岛+宝箱; 单元详情: 五环节步骤卡
   ============================================================ */
.enj-wrap { margin: 14px 0 4px; }
.enj-label { font-size: 14px; color: #9fe8ff; font-weight: 700; letter-spacing: 1px; margin: 2px 0 8px; }
.enj-strip { display: flex; gap: 4px; overflow-x: auto; padding: 26px 6px 16px; scrollbar-width: thin; }
.enj-isle { flex: 0 0 112px; text-align: center; cursor: pointer; }
.enj-scene { width: 100px; height: 100px; margin: 0 auto; border-radius: 26px; display: flex; align-items: center; justify-content: center; font-size: 46px; border: 4px solid rgba(255,255,255,.85); box-shadow: 0 8px 16px rgba(0,20,60,.3); position: relative; transition: transform .18s; }
.enj-isle:not(.lock) .enj-scene:hover { transform: translateY(-4px) scale(1.04); }
.enj-isle.done .enj-scene { box-shadow: 0 8px 18px rgba(255,200,94,.45); }
.enj-isle.cur .enj-scene { animation: enjPulse 1.8s infinite; }
@keyframes enjPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.enj-isle.lock { cursor: not-allowed; }
.enj-isle.lock .enj-scene { filter: grayscale(.85) brightness(.72); }
.enj-nm { margin-top: 6px; font-weight: 700; font-size: 13.5px; color: #eaf2ff; text-shadow: 0 1px 4px rgba(0,10,40,.6); }
.enj-prog { font-size: 11.5px; color: #9fb4d8; }
.enj-pin { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #ffd98a; box-shadow: 0 0 12px rgba(255,217,138,.8); animation: enjBob 1.8s infinite; }
@keyframes enjBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
.enj-line { flex: 0 0 20px; height: 5px; align-self: center; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.8) 0 7px, rgba(255,255,255,.22) 7px 14px); margin-bottom: 40px; }
.enj-chest { flex: 0 0 96px; text-align: center; cursor: pointer; }
.enj-chest .enj-scene { background: linear-gradient(160deg,#8a5a2b,#6b421e); border-color: #ffd98a; box-shadow: 0 0 22px rgba(255,217,138,.5); font-size: 42px; }
.enj-chest.ready .enj-scene { animation: enjPulse 1.4s infinite; }
.enj-divider { margin: 16px 0 4px; font-size: 13px; color: #8fa3c8; letter-spacing: 1px; }
/* 单元详情·五环节 */
.enu-head { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg,#20336b,#2b4a8f); border-radius: 16px; padding: 16px 20px; color: #fff; margin: 8px 0 16px; box-shadow: 0 6px 16px rgba(0,20,60,.3); }
.enu-emoji { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 38px; flex: 0 0 64px; }
.enu-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 4px 2px 12px; }
.enu-step { background: #fff; border-radius: 14px; padding: 16px 12px 14px; text-align: center; border: 2px solid transparent; box-shadow: 0 3px 10px rgba(10,20,60,.22); position: relative; cursor: pointer; }
.enu-step .ic { font-size: 34px; }
.enu-step .sn { font-weight: 700; font-size: 15px; color: #2b2440; margin-top: 4px; }
.enu-step .sd { font-size: 12px; color: #6b6486; margin-top: 2px; line-height: 1.45; }
.enu-step .st { position: absolute; top: -9px; right: -7px; font-size: 15px; background: #fff; border-radius: 50%; width: 26px; height: 26px; line-height: 26px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.enu-step.done { border-color: #8fe0b8; background: #f2fdf7; }
.enu-step.hot { border-color: #ffb04d; background: #fffaf2; box-shadow: 0 0 16px rgba(255,176,77,.45); }
.enu-step.lock { opacity: .55; filter: grayscale(.4); cursor: not-allowed; }
@media (max-width: 560px) {
  .enj-isle { flex: 0 0 96px; }
  .enj-scene { width: 86px; height: 86px; font-size: 40px; border-radius: 22px; }
  .enu-steps { grid-template-columns: repeat(2, 1fr); }
}

/* v68 英语资源馆网格(去三阶段卡) */
.en-libs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.en-libs .stg-portal { margin: 0; position: relative; }
.en-lib-gate { position: absolute; right: 10px; bottom: 8px; font-size: 11.5px; padding: 2px 10px; border-radius: 99px; background: rgba(255,255,255,.55); color: #8a7a55; border: 1px solid rgba(180,150,80,.35); cursor: pointer; }
.en-lib-gate.can { background: #fff3d0; color: #b07400; border-color: #ffcf5e; animation: enjPulse 1.8s infinite; }
.en-lib-gate.passed { background: #e3f6ec; color: #1c8a56; border-color: #8fe0b8; }
@media (max-width: 560px) { .en-libs { grid-template-columns: 1fr; } }

/* ============================================================
   v69 英语首页协调版(2026-09-16 主人: 布局协调/颜色搭配/空白/关卡)
   一套色系: 深空蓝底 + 英语绿青点缀 + 旅程岛为唯一多彩焦点
   ============================================================ */
/* ① 旅程面板化: 玻璃容器把10岛收成一个区域, 与下方资源馆对齐 */
.enj-panel { background: linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); border: 1px solid rgba(142,240,255,.22); border-radius: 20px; padding: 4px 14px 10px; box-shadow: 0 10px 26px rgba(0,15,50,.28), inset 0 1px 0 rgba(255,255,255,.08); }
.enj-label { font-size: 14.5px; color: #8ef0ff; font-weight: 700; letter-spacing: 1px; margin: 10px 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.enj-label-sub { font-size: 12px; font-weight: 400; color: #9fb4d8; letter-spacing: .3px; }
.enj-divider { margin-top: 18px; }
/* 岛卡柔化: 边框改奶白+统一阴影, 多彩只留在场景内 */
.enj-scene { border-color: rgba(255,255,255,.92); box-shadow: 0 6px 14px rgba(0,20,60,.26); }

/* ② 资源馆卡: 弃暖黄改玻璃青(与深空底同族), 图标青光环 */
.en-lib-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.045)); border: 1px solid rgba(142,240,255,.26); border-radius: 18px; padding: 14px 16px; cursor: pointer; position: relative; transition: transform .18s, border-color .18s; }
.en-lib-card:hover { transform: translateY(-3px); border-color: rgba(142,240,255,.55); }
.en-lib-card .stg-portal-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: radial-gradient(circle at 35% 30%, rgba(142,240,255,.35), rgba(87,230,184,.14)); border: 1px solid rgba(142,240,255,.35); }
.en-lib-card .stg-portal-info { flex: 1; min-width: 0; }
.en-lib-card .stg-portal-name { font-size: 16px; font-weight: 700; color: #eef6ff; }
.en-lib-card .stg-open-tag { font-size: 10.5px; color: #57e6b8; border: 1px solid rgba(87,230,184,.5); border-radius: 99px; padding: 0 7px; margin-left: 6px; vertical-align: 2px; }
.en-lib-card .stg-portal-sub { font-size: 12px; color: #9fb4d8; margin-top: 2px; }
.en-lib-card .stg-portal-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); margin-top: 8px; overflow: hidden; }
.en-lib-card .stg-portal-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #57e6b8, #8ef0ff); transition: width .4s; }
.en-lib-card .stg-portal-pct { font-size: 11px; color: #8ba3c8; margin-top: 3px; }
.en-lib-card .stg-portal-go { flex: 0 0 26px; font-size: 18px; color: #8ef0ff; opacity: .85; }
/* 门片统一青绿系 */
.en-lib-gate { right: 12px; bottom: 10px; background: rgba(20,40,80,.55); color: #9fb4d8; border: 1px solid rgba(142,240,255,.3); }
.en-lib-gate.can { background: rgba(87,230,184,.16); color: #57e6b8; border-color: rgba(87,230,184,.55); }
.en-lib-gate.passed { background: rgba(255,217,138,.14); color: #ffd98a; border-color: rgba(255,217,138,.5); }
/* 馆卡底部留白给门片 */
.en-lib-card { padding-bottom: 30px; }

/* ③ 馆内关卡节点: 英语专属绿青系(默认蓝橙留给其他星球) */
#level-path[data-sub="english"] .lp-badge { background: linear-gradient(160deg, #63d6f0, #3aa8d8); border-color: rgba(255,255,255,.85); }
#level-path[data-sub="english"] .lp-node.cur .lp-badge { background: linear-gradient(160deg, #57e6b8, #2fbf92); box-shadow: 0 0 16px rgba(87,230,184,.7); }
#level-path[data-sub="english"] .lp-node.done .lp-badge { background: linear-gradient(160deg, #ffd98a, #ffb04d); }
#level-path[data-sub="english"] .lp-node.gate .lp-badge { background: linear-gradient(160deg, #b39dff, #8a6de8); }
#level-path[data-sub="english"] .lp-svg polyline { stroke: rgba(87,180,230,.55); }
@media (max-width: 560px) {
  .enj-panel { padding: 2px 10px 8px; }
  .en-lib-card { padding: 12px 12px 28px; gap: 10px; }
  .en-lib-card .stg-portal-icon { flex: 0 0 48px; width: 48px; height: 48px; font-size: 26px; }
}

/* v69b 英语副标题避让左上星球装饰 */
.en-home .hz-subtitle { padding-left: 74px; }
@media (max-width: 560px) { .en-home .hz-subtitle { padding-left: 8px; max-width: 62%; } }

/* ============================================================
   v70 图标立体悬浮化(2026-09-16 主人: 图标小一半+多维图形+浮在页面上有阴影)
   手法: 尺寸减半 + 3D倾斜(perspective rotateX) + 顶部受光渐变 +
        椭圆地影(独立呼吸) + 错落慢浮动(奇偶反向) —— 纯CSS无JS
   ============================================================ */
/* ① 旅程岛场景: 100px→58px 立体浮块 */
.enj-isle { flex-basis: 84px; position: relative; }
.enj-scene {
  width: 58px; height: 58px; font-size: 30px; border-radius: 16px;
  border: 2.5px solid rgba(255,255,255,.92);
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.55),          /* 顶部受光 */
    inset 0 -5px 0 rgba(0,0,0,.10),               /* 底部厚度 */
    0 10px 16px rgba(0,20,60,.30);
  transform: perspective(420px) rotateX(10deg) translateY(-8px);
  animation: enjFloat 3.4s ease-in-out infinite;
}
.enj-isle:nth-child(4n+3) .enj-scene { animation-delay: -1.1s; transform: perspective(420px) rotateX(10deg) rotateZ(-3deg) translateY(-8px); }
.enj-isle:nth-child(4n+1) .enj-scene { animation-delay: -2.2s; transform: perspective(420px) rotateX(10deg) rotateZ(3deg) translateY(-8px); }
.enj-isle:not(.lock) .enj-scene:hover { transform: perspective(420px) rotateX(4deg) translateY(-13px) scale(1.08); animation-play-state: paused; }
/* 地影: 浮块正下方椭圆, 浮动时反向呼吸 */
.enj-isle::after, .enj-chest::after {
  content: ''; position: absolute; left: 50%; top: 62px; width: 40px; height: 9px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,10,40,.5), transparent 70%);
  border-radius: 50%; filter: blur(2px);
  animation: enjShadow 3.4s ease-in-out infinite;
}
.enj-isle:nth-child(4n+3)::after { animation-delay: -1.1s; }
.enj-isle:nth-child(4n+1)::after { animation-delay: -2.2s; }
@keyframes enjFloat {
  0%,100% { margin-top: 0; }
  50% { margin-top: -6px; }
}
@keyframes enjShadow {
  0%,100% { transform: translateX(-50%) scaleX(1); opacity: .55; }
  50% { transform: translateX(-50%) scaleX(.78); opacity: .32; }
}
/* emoji本身加投影, 更像立体贴纸 */
.enj-scene { text-shadow: 0 2px 2px rgba(0,0,0,.18); }
/* 当前岛脉冲改微发光(不缩放, 保持浮动感) */
.enj-isle.cur .enj-scene { animation: enjFloat 3.4s ease-in-out infinite, enjGlow 1.8s infinite; }
@keyframes enjGlow { 0%,100% { box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -5px 0 rgba(0,0,0,.10), 0 10px 16px rgba(0,20,60,.30), 0 0 14px rgba(255,217,138,.55); } 50% { box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -5px 0 rgba(0,0,0,.10), 0 10px 16px rgba(0,20,60,.30), 0 0 26px rgba(255,217,138,.95); } }
.enj-pin { top: -26px; width: 32px; height: 32px; }
.enj-nm { font-size: 12.5px; margin-top: 8px; }
.enj-prog { font-size: 10.5px; }
/* 宝箱同步缩小 */
.enj-chest { flex-basis: 76px; }
.enj-chest .enj-scene { font-size: 30px; }

/* ② 资源馆图标: 56px→38px 立体浮块 */
.en-lib-card .stg-portal-icon {
  flex: 0 0 38px; width: 38px; height: 38px; font-size: 21px; border-radius: 11px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.5),
    inset 0 -3px 0 rgba(0,0,0,.10),
    0 6px 10px rgba(0,20,60,.28);
  transform: perspective(300px) rotateX(8deg) translateY(-3px);
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  transition: transform .18s;
}
.en-lib-card:hover .stg-portal-icon { transform: perspective(300px) rotateX(3deg) translateY(-6px) scale(1.06); }

/* ③ 手机端等比 */
@media (max-width: 560px) {
  .enj-isle { flex-basis: 68px; }
  .enj-scene { width: 48px; height: 48px; font-size: 26px; border-radius: 13px; transform: perspective(420px) rotateX(10deg) translateY(-6px); }
  .enj-isle::after, .enj-chest::after { top: 52px; width: 34px; }
  .enj-pin { top: -24px; width: 28px; height: 28px; }
  .en-lib-card .stg-portal-icon { flex: 0 0 34px; width: 34px; height: 34px; font-size: 19px; }
}
.enj-chest { position: relative; }
.enj-nm { white-space: nowrap; }
@media (max-width: 560px) { .enj-nm { font-size: 11.5px; } }

/* ============================================================
   v70b 防抖修正(主人实机反馈"整个界面在抖")
   根因: v70 的 enjFloat 动画 margin-top → 每帧触发 layout 重排, 全屏被带抖
   修正: 浮动并入 transform 关键帧(GPU合成, 不重排), 振幅收窄/节奏放缓
   ============================================================ */
@keyframes enjFloatT {
  0%,100% { transform: perspective(420px) rotateX(10deg) translateY(-8px); }
  50% { transform: perspective(420px) rotateX(10deg) translateY(-12px); }
}
@keyframes enjFloatTL {
  0%,100% { transform: perspective(420px) rotateX(10deg) rotateZ(-3deg) translateY(-8px); }
  50% { transform: perspective(420px) rotateX(10deg) rotateZ(-3deg) translateY(-12px); }
}
@keyframes enjFloatTR {
  0%,100% { transform: perspective(420px) rotateX(10deg) rotateZ(3deg) translateY(-8px); }
  50% { transform: perspective(420px) rotateX(10deg) rotateZ(3deg) translateY(-12px); }
}
.enj-scene { animation: enjFloatT 4.6s ease-in-out infinite; will-change: transform; margin-top: 0 !important; }
.enj-isle:nth-child(4n+3) .enj-scene { animation: enjFloatTL 4.6s ease-in-out infinite; animation-delay: -1.5s; }
.enj-isle:nth-child(4n+1) .enj-scene { animation: enjFloatTR 4.6s ease-in-out infinite; animation-delay: -3.1s; }
.enj-isle.cur .enj-scene { animation: enjFloatT 4.6s ease-in-out infinite, enjGlow 2.4s infinite; }
.enj-isle:nth-child(4n+3).cur .enj-scene { animation: enjFloatTL 4.6s ease-in-out infinite, enjGlow 2.4s infinite; animation-delay: -1.5s, 0s; }
.enj-isle:nth-child(4n+1).cur .enj-scene { animation: enjFloatTR 4.6s ease-in-out infinite, enjGlow 2.4s infinite; animation-delay: -3.1s, 0s; }
.enj-isle:not(.lock) .enj-scene:hover { animation-play-state: paused; transform: perspective(420px) rotateX(4deg) translateY(-13px) scale(1.08); }
/* 地影节奏同步放缓 */
.enj-isle::after, .enj-chest::after { animation: enjShadow 4.6s ease-in-out infinite; will-change: transform, opacity; }
.enj-isle:nth-child(4n+3)::after { animation-delay: -1.5s; }
.enj-isle:nth-child(4n+1)::after { animation-delay: -3.1s; }
/* 尊重系统减动效设置: 开"减少动态效果"的设备全部静止 */
@media (prefers-reduced-motion: reduce) {
  .enj-scene, .enj-isle::after, .enj-chest::after, .enj-pin { animation: none !important; }
}

/* v71 每日游岛二级页: 面板居中放宽 */
.enj-page { margin: 12px auto; max-width: 1060px; }
.enj-page .enj-strip { justify-content: flex-start; }

/* v71b 游岛页充实: 岛屿放大+剧情引言 */
.enj-page .enj-isle { flex-basis: 108px; }
.enj-page .enj-scene { width: 76px; height: 76px; font-size: 40px; border-radius: 20px; }
.enj-page .enj-isle::after, .enj-page .enj-chest::after { top: 82px; width: 52px; height: 11px; }
.enj-page .enj-nm { font-size: 13.5px; }
.enj-page .enj-prog { font-size: 11.5px; }
.enj-page .enj-chest { flex-basis: 100px; }
.enj-page .enj-strip { padding: 34px 10px 20px; }
.enj-intro { margin: 6px 8px 10px; padding: 12px 16px; border-radius: 14px; background: rgba(142,240,255,.08); border: 1px solid rgba(142,240,255,.18); }
.enj-intro-txt { font-size: 13px; color: #c7d6f2; line-height: 1.7; }
.enj-intro-prog { margin-top: 8px; font-size: 13px; color: #8ef0ff; }
.enj-intro-prog b { color: #ffd98a; font-size: 16px; }
@media (max-width: 560px) {
  .enj-page .enj-isle { flex-basis: 84px; }
  .enj-page .enj-scene { width: 60px; height: 60px; font-size: 32px; border-radius: 16px; }
  .enj-page .enj-isle::after, .enj-page .enj-chest::after { top: 66px; width: 40px; }
}

/* v71c 游岛页宽度钉死(手机端面板/引言不超屏) */
.enj-page { width: min(1060px, 96vw); box-sizing: border-box; overflow: hidden; }
.enj-intro { overflow-wrap: anywhere; }

/* ============================================================
   v72 主界面紧凑一页 + 游岛多行排布(2026-09-16 主人两条)
   ============================================================ */
/* ① 主界面紧凑化: 目标=一屏看全(桌面/平板/手机都不滚) */
.en-home .hz-title { font-size: 24px; margin: 2px 0; }
.en-home .hz-subtitle { margin: 2px 0 6px; font-size: 13px; }
.en-home .hz-quick { margin: 4px 0 2px; }
.en-home .enj-divider.enj-label { margin: 8px 0 4px; font-size: 13.5px; }
.en-libs { gap: 8px; margin-top: 4px; }
.en-lib-card { padding: 10px 14px 26px; gap: 10px; border-radius: 16px; }
.en-lib-card .stg-portal-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 19px; border-radius: 10px; }
.en-lib-card .stg-portal-name { font-size: 15px; }
.en-lib-card .stg-portal-sub { font-size: 11.5px; margin-top: 1px; line-height: 1.35; }
.en-lib-card .stg-portal-bar { margin-top: 5px; height: 5px; }
.en-lib-card .stg-portal-pct { font-size: 10.5px; margin-top: 2px; }
.en-lib-gate { bottom: 6px; right: 10px; font-size: 10.5px; padding: 1px 8px; }
.en-home .hz-hero { transform: scale(.92); transform-origin: right top; }
/* 手机: 两列迷你卡(不再单列滚动) */
@media (max-width: 560px) {
  .en-libs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .en-lib-card { padding: 8px 9px 24px; gap: 7px; }
  .en-lib-card .stg-portal-icon { flex-basis: 28px; width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }
  .en-lib-card .stg-portal-name { font-size: 13px; }
  .en-lib-card .stg-portal-sub { font-size: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .en-home .hz-quick-cards { display: none; }   /* 学习卡条手机端让位 */
  .en-home .hz-hero { transform: scale(.7); transform-origin: right top; }
}

/* ② 游岛页: 多行排布(不横拉), 虚线连接器退休 */
.enj-page .enj-strip { flex-wrap: wrap; justify-content: center; overflow-x: visible; row-gap: 30px; column-gap: 6px; padding: 30px 12px 18px; }
.enj-page .enj-line { display: none; }
.enj-page .enj-isle { flex-basis: 112px; }
@media (max-width: 560px) {
  .enj-page .enj-isle { flex-basis: 92px; }
  .enj-page .enj-strip { row-gap: 24px; column-gap: 2px; padding: 26px 6px 14px; }
}

/* v73 游岛固定上6下5(2026-09-16 主人拍板) */
.enj-page .enj-strip { display: grid; grid-template-columns: repeat(6, 1fr); justify-items: center; row-gap: 30px; column-gap: 4px; padding: 30px 12px 20px; overflow-x: visible; }
@media (max-width: 720px) {
  .enj-page .enj-strip { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
}

/* v273 英语学习页文本放大(主人: 英语显示大一些看得清楚) */
.learn-card.en-learn .learn-text { font-size: 24px; line-height: 1.75; font-weight: 600; }
.learn-card.en-learn .learn-title { font-size: 30px; }
@media (max-width: 560px) {
  .learn-card.en-learn .learn-text { font-size: 20px; }
  .learn-card.en-learn .learn-title { font-size: 25px; }
}

/* ============ v288 跟读/TPR(echo)屏: 材料是主角 + 三钮一排小胶囊 ============ */
/* 跟读材料放大居中(原26px太小, 被三枚大卡抢戏到"看不见跟读资料") */
.listen-visual.echo-mode { text-align: center; padding: 8px 0 2px; }
.listen-visual.echo-mode > div[style*="font-size:52px"] { margin-bottom: 4px; }
.listen-visual.echo-mode b { font-size: 44px !important; letter-spacing: 1px; display: inline-block; }
.listen-visual.echo-mode small { font-size: 22px; color: #8a7f6a; }
/* 三钮一排: 摘掉字帖风大卡(min-height92px+田字格虚线), 改紧凑胶囊 */
#listen-opts.echo-row { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; justify-content: center; align-items: center; }
#listen-opts.echo-row .opt {
  min-height: 0 !important; flex: 0 1 auto; width: auto;
  padding: 12px 16px; font-size: 16px; line-height: 1.2; white-space: nowrap;
  border-radius: 999px !important; background: #fff !important;
  box-shadow: 0 4px 0 rgba(229,115,115,.35), 0 6px 14px rgba(0,0,0,.08);
}
#listen-opts.echo-row .opt::before, #listen-opts.echo-row .opt::after { display: none !important; content: none; }
#listen-opts.echo-row .opt:active { transform: scale(.93); }
@media (max-width: 560px) {
  #listen-opts.echo-row .opt { padding: 10px 10px; font-size: 14px; }
  .listen-visual.echo-mode b { font-size: 34px !important; }
  .listen-visual.echo-mode small { font-size: 18px; }
}

/* ============ v289 儿歌真音频播放钮(学习页) ============ */
#song-player { text-align: center; margin: 10px 0 6px; }
.song-play-btn {
  border: none; cursor: pointer; font-family: inherit;
  font-size: 22px; font-weight: 700; color: #fff; padding: 14px 34px; border-radius: 999px;
  background: linear-gradient(135deg, #34d97b, #0ea5a0);
  box-shadow: 0 6px 0 rgba(6,120,110,.45), 0 10px 22px rgba(14,165,160,.35);
  animation: songPulse 1.6s ease-in-out infinite;
}
.song-play-btn:active { transform: scale(.94); }
@keyframes songPulse { 0%,100% { box-shadow: 0 6px 0 rgba(6,120,110,.45), 0 0 0 0 rgba(52,217,123,.45); } 50% { box-shadow: 0 6px 0 rgba(6,120,110,.45), 0 0 0 14px rgba(52,217,123,0); } }
@media (max-width: 560px) { .song-play-btn { font-size: 18px; padding: 12px 26px; } }

/* ============ v299 蒙学诵读馆 ============ */
.mx-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 18px; max-width: 900px; margin: 0 auto; }
.mx-book { background: linear-gradient(160deg, #fff8ea, #ffeec9); border: 2px solid #e8d5a3; border-radius: 18px; padding: 18px 14px; text-align: center; cursor: pointer; transition: transform .15s; box-shadow: 0 4px 0 #d9c491; }
.mx-book:active { transform: scale(.96); }
.mx-book .e { font-size: 40px; }
.mx-book .t { font-size: 20px; font-weight: 800; color: #7a5310; margin: 6px 0 2px; }
.mx-book .a { font-size: 12px; color: #a98c56; }
.mx-book .i { font-size: 12px; color: #99825a; margin-top: 6px; line-height: 1.5; }
.mx-read { max-width: 760px; margin: 0 auto; padding: 0 16px 30px; }
.mx-controls { display: flex; gap: 10px; justify-content: center; padding: 10px 0 14px; flex-wrap: wrap; }
.mx-rows { background: #fffdf5; border: 2px solid #eadfc0; border-radius: 18px; padding: 18px 20px; max-height: 62vh; overflow-y: auto; }
.mx-row { font-family: "Kaiti SC", "KaiTi", "STKaiti", serif; font-size: 24px; line-height: 2.1; color: #4a3b1c; padding: 4px 12px; border-radius: 12px; cursor: pointer; letter-spacing: 2px; }
.mx-row ruby rt { font-size: 11px; color: #b09a6a; letter-spacing: 0; }
.mx-row:active { background: #fff3d6; }
.mx-row.reading { background: linear-gradient(90deg, #ffe9a8, #ffd98a); box-shadow: 0 0 0 2px #f0b429 inset; }
.mx-chapter { font-size: 15px; font-weight: 800; color: #b0761a; margin: 14px 0 2px; padding: 2px 12px; border-left: 4px solid #e8b93f; letter-spacing: 4px; }
@media (max-width: 560px) { .mx-row { font-size: 19px; letter-spacing: 1px; } .mx-books { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; } }

/* ============ v301 磨耳朵绘本馆 ============ */
.eb-shelf { padding: 16px; max-width: 960px; margin: 0 auto; }
.eb-band { font-size: 16px; font-weight: 800; color: #1a4d8f; margin: 14px 4px 8px; }
.eb-band span { font-size: 12px; color: #7a93b5; font-weight: 400; margin-left: 8px; }
.eb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.eb-book { background: #fff; border: 2px solid #cfe0f4; border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .15s; box-shadow: 0 3px 0 #b8cee6; }
.eb-book:active { transform: scale(.96); }
.eb-book img { width: 100%; height: 100px; object-fit: cover; display: block; background: #eef3fa; }
.eb-book .t { font-size: 13px; font-weight: 700; color: #1a3a5c; padding: 6px 8px 2px; line-height: 1.3; }
.eb-book .z { font-size: 11px; color: #8aa0ba; padding: 0 8px 8px; }
.eb-read { max-width: 720px; margin: 0 auto; padding: 0 14px 20px; }
.eb-controls { display: flex; gap: 10px; justify-content: center; padding: 8px 0 12px; flex-wrap: wrap; }
.eb-page { background: #fff; border-radius: 18px; border: 2px solid #d8e6f5; overflow: hidden; box-shadow: 0 6px 18px rgba(30, 70, 120, .12); }
.eb-imgwrap { background: #f4f8fd; text-align: center; }
.eb-imgwrap img { max-width: 100%; max-height: 42vh; object-fit: contain; }
.eb-en { font-size: 22px; font-weight: 700; color: #1a3a5c; text-align: center; padding: 14px 18px 4px; line-height: 1.5; }
.eb-zh { font-size: 14px; color: #7a8fa8; text-align: center; padding: 0 18px 14px; }
.eb-page.reading { box-shadow: 0 0 0 3px #4a9eff, 0 6px 18px rgba(30, 70, 120, .18); }
.eb-nav { display: flex; gap: 10px; justify-content: center; padding: 12px 0 0; }
@media (max-width: 560px) { .eb-en { font-size: 18px; } .eb-imgwrap img { max-height: 34vh; } .eb-grid { grid-template-columns: 1fr 1fr; } }
/* v301b 书架网格修正: 屏默认flex居中把grid挤成单列 */
#screen-enbooks .eb-shelf { width: 100%; align-self: stretch; }
.eb-shelf .eb-grid { width: 100%; }

/* v303 历史故事一页连读: 长文学习卡可滚动 */
.learn-card .learn-text.long { max-height: 46vh; overflow-y: auto; text-align: left; padding: 4px 14px; font-size: 17px; line-height: 2; }
.learn-card.guofeng .learn-text.long { font-size: 19px; }

/* ============================================================
   v306+ UI改造 · 方向A混血版 组件层 (步骤②~⑦一次落地)
   宪法: 全App两种光——深空暮光(导航/地图/战斗/抽卡) + 卡片暖光(学习/练习)
         金色只给奖励; 家长区冷静蓝灰零动画
   ============================================================ */
:root {
  --dur-fast: .15s; --dur-mid: .25s;      /* 过渡时长两档 */
  --gold-deep: #B06A00;                    /* 浅底上的奖励金文字(纯金太浅) */
}

/* ==================== ② 通用组件 ==================== */
/* --- 按钮三档高度: 主52 / 次44 / 图标48 --- */
.btn-primary {
  min-height: 52px; font-size: var(--fs-body);
  background: linear-gradient(135deg, var(--primary-alt), var(--primary));
  box-shadow: 0 6px 16px rgba(255,158,87,.38), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn-big { min-height: 60px; }
.btn-speak {
  min-height: 44px; font-size: var(--fs-body-sm);
  background: linear-gradient(135deg, #8FCBFF, var(--voice));
  box-shadow: 0 4px 14px rgba(110,181,255,.42);
}
.btn-ghost {
  min-height: 44px; font-size: var(--fs-body-sm);
  border: 1.5px solid rgba(107,101,128,.45); color: var(--ink-soft);
}
.on-map .btn-ghost,
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) .btn-ghost {
  color: var(--ink-deep-2); border-color: rgba(201,196,232,.5);
}
.btn-icon { width: 48px; height: 48px; border-radius: var(--r-md); }
.rehear-btn { width: 48px; height: 48px; }

/* --- 卡片: 统一暖光玻璃 + 24圆角 --- */
.learn-card, .quiz-card {
  background: var(--glass-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9);
}

/* --- 弹窗: 浅底暖白卡(圆角统一24) / 深空仪式舱(已有, 标题接token金) --- */
.modal-box { border-radius: var(--r-lg); }
.modal-box h3 { color: var(--gold-deep); }
.modal-box .big-energy { color: var(--gold-deep); }
.ceremony-mode .cer-title { color: var(--gold); }

/* --- toast: 统一顶部胶囊 --- */
#toast { bottom: auto; top: calc(70px + env(safe-area-inset-top)); }
@keyframes toastIn { from { transform: translate(-50%, -20px); opacity: 0; } }

/* --- 底部导航: 中键收敛为56px发光球, 亮度不超主按钮 --- */
#tabbar .tab.tab-center {
  flex: 0 0 56px;   /* 修bug: 原继承flex:1被撑成满宽大椭圆(光晕过曝) */
  width: 56px; height: 56px; min-height: 56px; font-size: 20px;
  transform: translateY(-10px);
  box-shadow: 0 4px 14px rgba(255,180,90,.35);
}
.on-map #tabbar .tab.tab-center,
body:has(#screen-levels:is(.hz-mode, .mt-mode, .en-mode, .th-mode).active) #tabbar .tab.tab-center {
  transform: translateY(-10px); flex-basis: 56px;
}
/* 浅底选中态: 暮橙胶囊(原亮蓝与主色脱节) */
#tabbar .tab.on {
  background: linear-gradient(135deg, #FFB877, var(--primary));
  box-shadow: 0 4px 12px rgba(255,158,87,.35);
}

/* ==================== ③ 首页星空地图 ==================== */
/* 轨道背景降饱和护眼(只滤背景层, 星球图不受影响) */
.map-space { filter: saturate(.78) brightness(.95); }
/* 星球锁定态: 灰紫雾+轮廓, 不再纯黑剪影 */
.ob-planet.locked .ob-hero { filter: grayscale(1) brightness(.55) opacity(.5); border-color: rgba(201,196,232,.4); }
.ob-planet.locked .ob-sphere { filter: drop-shadow(0 0 8px rgba(90,95,143,.5)); }
.ob-planet.locked .ob-name { color: #AAB2D4; }
/* 字号下限12px: 拼音/提示/徽标 */
.ob-py, .ob-hint { font-size: var(--fs-min); }
.ob-badge { font-size: var(--fs-min); padding: 1px 7px; }
.planet-sub, .planet-stars { font-size: var(--fs-min); }

/* ==================== ④ 课程页(关卡路径) ==================== */
.level-node.lock { opacity: .6; filter: saturate(.35); }
.level-node.lock .level-badge { background: linear-gradient(135deg, #8A90B8, var(--lock)); }
.level-node.cur { box-shadow: var(--glow-gold); }

/* ==================== ⑤ 练习页(学习/答题/战斗) ==================== */
/* 答对答错: 语义色统一, 深浅底一致 */
.opt.right { background: rgba(123,216,143,.32); border-color: #57B96E; box-shadow: 0 0 24px rgba(123,216,143,.5); }
.opt.wrong { background: rgba(255,122,122,.22); border-color: var(--err); }
.quiz-head, .learn-head { color: var(--ink-soft); }

/* ==================== ⑥ 奖励页(抽奖/图鉴/宝箱) ==================== */
/* 金色仪式感集中在这里 */
.blind-box { filter: drop-shadow(0 0 22px rgba(255,200,92,.45)); }
.gacha-pity { color: var(--gold-deep); }
.btn-ten {
  background: linear-gradient(135deg, #FFD98A, var(--gold)); color: #3A2B12;
  box-shadow: 0 4px 16px rgba(255,200,92,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
/* 图鉴未获得: 柔化不再死黑 */
.card.locked { filter: grayscale(.85) brightness(.6); }

/* ==================== ⑦ 家长中心(冷静蓝灰, 零渐变零动画) ==================== */
.modal-box.parent-mode {
  animation: none; background: #FFFFFF;
  border: 1px solid #E6E9F0; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(74,85,120,.18);
}
.modal-box.parent-mode h3 {
  color: var(--parent-ink); letter-spacing: 0;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.modal-box.parent-mode p, .modal-box.parent-mode .pin-tip { color: var(--parent-sub); }
.modal-box.parent-mode .btn-primary {
  background: var(--parent-ink); box-shadow: none; border-radius: var(--r-sm);
  font-size: 15px; min-height: 44px;
}
.modal-box.parent-mode .btn-ghost { border-color: #D8DCE6; color: var(--parent-ink); border-radius: var(--r-sm); }
.modal-box.parent-mode .pin-key { background: #F0F2F7; border: 1px solid #E6E9F0; border-radius: var(--r-sm); color: var(--parent-ink); }
.modal-box.parent-mode .pin-key:active { background: #E2E7F0; }
.modal-box.parent-mode .pin-dots i { border-color: var(--parent-sub); }
.modal-box.parent-mode .pin-dots i.on { background: var(--parent-ink); box-shadow: none; }
.modal-box.parent-mode .save-io { background: var(--parent-bg); border: 1px solid #E6E9F0; color: var(--parent-ink); }

/* ==================== 动效统一(④') ==================== */
/* 无障碍: 系统减弱动态时, 关掉漂浮/闪烁/脉冲装饰动画 */
@media (prefers-reduced-motion: reduce) {
  .planet, .ob-planet, .ob-cloud, .star, .ms-star,
  .ob-planet.task .ob-sphere, .level-node.cur, .energy-pill.bump { animation: none !important; }
}

/* ==================== ⑤' 一致性执法: 12px字号下限 ==================== */
/* 原10/11px的注音/徽标/元信息统一抬到12px(方案: 禁10px) */
.card-count, .lp-stars, .hwb-word i, .story-meta, .medal-need, .task-badge,
.learn-badge, .poem-genre, .pi-label, .fog-hint, .money-bill.coin span,
.comic-cap, .hzstory-keys rt { font-size: var(--fs-min); }

/* ============================================================
   v309 主人实机反馈修正: 选项统一 / 中键去黄 / 英语馆紧凑
   ============================================================ */
/* --- 闯关选项统一: 中文一律站酷快乐体, 尺寸收敛两档 --- */
.opt {
  font-family: 'ZKuaile', 'Yuanti SC', 'YouYuan', '幼圆', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 20px; font-weight: 800;
  padding: 16px 14px; border-radius: var(--r-md); min-height: 60px;
}
.opt.loose { letter-spacing: 2px; font-size: 20px; padding-left: 14px; }   /* 原10px字距太散 */
.opt.hzfont {
  font-family: 'ZKuaile', 'Yuanti SC', 'YouYuan', '幼圆', sans-serif;   /* 选项不再楷体(楷体只留学习页大字, 教材标准) */
  font-weight: 800;
}
#battle-opts .opt.hzfont { font-size: 34px; min-height: 68px; }        /* 原48px/76过大 */
#battle-opts .opt.plain-lg { font-size: 22px; }                        /* 原30px过大 */
@media (max-width: 480px) {
  .opt { font-size: 18px; min-height: 54px; padding: 14px 10px; }
  #battle-opts .opt.hzfont { font-size: 28px; min-height: 58px; }
}

/* --- 底部中键去黄: 与主按钮同暮橙渐变(深空金扣不动) --- */
#tabbar .tab.tab-center {
  background: linear-gradient(135deg, #FFB877, var(--primary));
  box-shadow: 0 4px 14px rgba(255,158,87,.35);
}

/* --- 英语星资源馆: 紧凑化 + 手机恢复两列(7馆不再排7行) --- */
.en-libs { gap: 8px; }
.en-lib-card { padding: 10px 12px; gap: 10px; border-radius: var(--r-md); }
.en-lib-card .stg-portal-icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 24px; border-radius: 12px; }
.en-lib-card .stg-portal-name { font-size: 15px; }
.en-lib-card .stg-portal-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en-lib-card .stg-portal-bar { margin-top: 6px; }
.en-lib-card .stg-portal-pct { font-size: var(--fs-min); }
.en-lib-card .stg-open-tag { font-size: var(--fs-min); }
.en-lib-gate { font-size: var(--fs-min); }
@media (max-width: 560px) {
  .en-libs { grid-template-columns: 1fr 1fr; }   /* 覆盖原单列, 两列半高卡 */
  .en-lib-card { flex-direction: column; gap: 6px; padding: 10px 8px; text-align: center; }
  .en-lib-card .stg-portal-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 22px; }
  .en-lib-card .stg-portal-sub, .en-lib-card .stg-portal-pct, .en-lib-card .stg-portal-go { display: none; }
  .en-lib-card .stg-portal-info { width: 100%; }
  .en-lib-gate { position: static; margin-top: 4px; display: inline-block; }
}

/* ============================================================
   v310 实机反馈②: toast深底浅字 / 裸奔选项限宽
   ============================================================ */
/* toast: 深色胶囊配浅字(原继承深色正文=看不见) */
#toast { color: var(--ink-deep); font-weight: 700; }
/* 未包在quiz-card里的选项区(tapdisc/sortcount/river/maze/dmv/clock等)限宽居中 */
.screen > .quiz-opts { max-width: 640px; }
