/* Farm English v4 —— 学习覆盖层样式（孵蛋/收集/连击/任务 全套游戏化 UI） */
#learnRoot, #learnRoot * { box-sizing: border-box; }
#learnRoot {
  position: fixed; inset: 0; z-index: 9999;
  font-family: "CookieRun-Black", "Arial", "PingFang SC", "Microsoft YaHei", sans-serif;
  pointer-events: none;
  color: #3a2a15;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#learnRoot .lp-panel, #learnRoot button, #learnRoot input { pointer-events: auto; }

/* ===== 遮罩 ===== */
.lp-mask {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 3dvh 3vw;
  background: rgba(30, 60, 20, 0.55);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}
.lp-hidden { display: none !important; }

/* ===== 面板 ===== */
.lp-panel {
  position: relative;
  width: min(560px, 94vw);
  max-height: 94dvh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(#fffdf3, #fff3d6);
  border: 6px solid #ffcf5c;
  border-radius: 28px;
  box-shadow: 0 14px 0 #d98a1e, 0 24px 40px rgba(0,0,0,.35);
  padding: 20px 18px 24px;
  text-align: center;
  animation: lp-pop .28s cubic-bezier(.2,1.3,.4,1);
}
@keyframes lp-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lp-title { font-size: clamp(22px, 5.5vw, 32px); color: #e07a12; margin-bottom: 4px; }
.lp-sub   { font-size: clamp(13px, 3.4vw, 17px); color: #7a6a4a; margin-bottom: 12px; }

/* ===== 入口 ===== */
.lp-field { text-align: left; margin: 12px 4px; }
.lp-field label { display: block; font-size: 15px; color: #6b5836; margin-bottom: 6px; }
.lp-input {
  width: 100%; font-size: 20px; padding: 12px 14px;
  border: 3px solid #ffcf5c; border-radius: 16px; background: #fff;
  color: #3a2a15; outline: none;
}
.lp-grades { display: flex; gap: 10px; }
.lp-grade {
  flex: 1; font-size: 18px; padding: 14px 0; border-radius: 16px;
  border: 3px solid #ffcf5c; background: #fff; color: #b07a1e; font-weight: bold;
}
.lp-grade.on { background: #ffcf5c; color: #7a4a00; box-shadow: 0 4px 0 #d98a1e; }

/* ===== 大按钮 ===== */
.lp-btn {
  display: inline-block; font-size: clamp(19px, 5vw, 25px);
  padding: 13px 36px; margin-top: 14px;
  border: none; border-radius: 22px;
  background: linear-gradient(#8fe36b, #52c23c); color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.2);
  box-shadow: 0 7px 0 #3a9a2a; font-weight: bold;
}
.lp-btn:active { transform: translateY(4px); box-shadow: 0 3px 0 #3a9a2a; }
.lp-btn[disabled] { filter: grayscale(.6) opacity(.6); box-shadow: 0 7px 0 #888; }
.lp-btn.lp-orange { background: linear-gradient(#ffc95c, #f59a1e); box-shadow: 0 7px 0 #c47205; }
.lp-btn.lp-orange:active { box-shadow: 0 3px 0 #c47205; }
.lp-mini {
  border: none; background: #eee; color: #777; font-size: 14px;
  padding: 7px 18px; border-radius: 999px; margin-top: 6px;
}

/* ===== HUD（左上角常驻；避让游戏自带的右上角音量/设置按钮）===== */
.lp-hud {
  position: absolute; top: calc(env(safe-area-inset-top, 8px) + 6px); left: 8px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  pointer-events: none;
}
.lp-chip {
  pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); border: 3px solid #ffcf5c; border-radius: 999px;
  padding: 4px 10px; font-size: 15px; color: #b07a1e; font-weight: bold;
  box-shadow: 0 3px 0 rgba(217,138,30,.5);
}
.lp-chip .lp-egg-ico { font-size: 20px; }
.lp-eggbar {
  width: 54px; height: 10px; background: #ffe9bb; border-radius: 999px; overflow: hidden;
  border: 1px solid #eec06a;
}
.lp-eggfill { height: 100%; width: 0%; background: linear-gradient(90deg,#ffd24a,#ff9d2e); border-radius: 999px; transition: width .35s cubic-bezier(.2,1.2,.4,1); }
.lp-chip.lp-queue { background: #ffefc4; animation: lp-pulse 1.1s infinite; }
@keyframes lp-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.lp-chip.lp-fever { border-color: #ff6a3c; color: #e0523c; }
.lp-chest-dot { display:inline-block; min-width:10px; height:10px; border-radius:999px; background:#ff5a4e; margin-left:2px; animation: lp-pulse 1s infinite; }

/* 页面右上角常驻关闭键（免翻到底部找 Back）*/
.lp-x {
  position: fixed; top: calc(env(safe-area-inset-top, 8px) + 8px); right: calc(env(safe-area-inset-right, 8px) + 8px);
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 24px; font-weight: bold; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 10001; cursor: pointer; pointer-events: auto;
  border: 2px solid rgba(255,255,255,.7); box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* 飘字（+金币 / +XP）*/
.lp-float {
  position: absolute; pointer-events: none; z-index: 60;
  font-size: 24px; font-weight: bold; color: #ffb400;
  text-shadow: 0 2px 0 rgba(120,70,0,.4);
  animation: lp-float-up 1.1s ease-out forwards;
}
@keyframes lp-float-up { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-70px) scale(1.25); } }

/* ===== 答题 ===== */
.lp-quiz-emoji { font-size: clamp(68px, 20vw, 120px); line-height: 1.15; margin: 2px 0 4px; }
.lp-quiz-word  { font-size: clamp(26px, 7vw, 40px); color: #2a7ac2; letter-spacing: 1px; margin-bottom: 4px; font-weight: bold; }
.lp-quiz-cn    { font-size: 15px; color: #9a8a6a; margin-bottom: 8px; }
.lp-gap { color: #e0523c; border-bottom: 4px solid #e0523c; padding: 0 4px; }
.lp-speak {
  border: none; background: #eaf4ff; color: #2a7ac2;
  font-size: 20px; padding: 8px 16px; border-radius: 999px; margin-bottom: 10px;
  box-shadow: 0 3px 0 #b9d6f2;
}
.lp-speak:active { transform: translateY(2px); box-shadow: 0 1px 0 #b9d6f2; }
.lp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.lp-opt {
  font-size: clamp(19px, 5vw, 26px); padding: 15px 8px; border-radius: 18px;
  border: 3px solid #ffcf5c; background: #fff; color: #3a2a15; min-height: 62px;
  font-weight: bold;
}
.lp-opt.big { font-size: clamp(38px, 11vw, 60px); }
.lp-opt.right { background: #8fe36b; border-color: #52c23c; color: #fff; animation: lp-bounce .4s; }
.lp-opt.wrong { background: #ff9a8a; border-color: #e0523c; color: #fff; animation: lp-shake .35s; }
@keyframes lp-bounce { 0%{transform:scale(1)} 40%{transform:scale(1.12)} 100%{transform:scale(1)} }
@keyframes lp-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-7px)} 75%{transform:translateX(7px)} }
.lp-feed { font-size: clamp(22px, 6vw, 32px); font-weight: bold; margin-top: 10px; min-height: 38px; }
.lp-feed.good { color: #3a9a2a; }
.lp-feed.bad  { color: #e0523c; }

/* 连击条（题目顶部）*/
.lp-combo {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 30px; font-size: 18px; font-weight: bold; color: #ff7a1e;
  margin-bottom: 2px;
}
.lp-combo .lp-x { font-size: 24px; }
.lp-combo.hot { animation: lp-pulse .8s infinite; color: #ff4d2e; }

/* ===== 拼词：字母格 + 字母块 ===== */
.lp-slots {
  display: flex; gap: 7px; justify-content: center; flex-wrap: wrap;
  min-height: 54px; margin: 10px auto; padding: 4px;
}
.lp-slot {
  width: 46px; height: 50px; border-radius: 12px;
  border: 3px dashed #e8c26a; background: #fffef7;
  font-size: 28px; font-weight: bold; color: #2a7ac2;
  display: flex; align-items: center; justify-content: center;
}
.lp-slot.filled { border-style: solid; border-color: #ffcf5c; background: #fff; }
.lp-slots.ok .lp-slot { border-color: #52c23c; background: #eaffe0; animation: lp-bounce .45s; }
.lp-slots.no .lp-slot { border-color: #e0523c; background: #ffeae6; animation: lp-shake .35s; }
.lp-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 2px; }
.lp-tile {
  font-size: clamp(20px, 6vw, 28px); font-weight: bold; width: 50px; height: 50px;
  border: 3px solid #ffcf5c; border-radius: 12px; background: #fff; color: #3a2a15;
  box-shadow: 0 3px 0 #eec06a;
}
.lp-tile:active { transform: translateY(2px); box-shadow: none; }
.lp-tile:disabled { opacity: .3; box-shadow: none; }

/* ===== 打字键盘 ===== */
.lp-boxes { display: flex; gap: 6px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
.lp-box {
  width: 40px; height: 46px; border-radius: 10px;
  border: 3px solid #e8c26a; background: #fffef7;
  font-size: 26px; font-weight: bold; color: #2a7ac2;
  display: flex; align-items: center; justify-content: center;
}
.lp-box.filled { border-color: #ffcf5c; background: #fff; }
.lp-kb { margin: 6px auto 0; max-width: 420px; }
.lp-kb-row { display: flex; justify-content: center; gap: 5px; margin-bottom: 6px; }
.lp-key {
  flex: 1; max-width: 40px; height: 46px; border-radius: 9px;
  border: 2px solid #ffcf5c; background: #fff; color: #3a2a15;
  font-size: 19px; font-weight: bold; padding: 0;
  box-shadow: 0 2px 0 #eec06a;
}
.lp-key:active { transform: translateY(2px); box-shadow: none; background: #fff3d0; }
.lp-key.wide { max-width: 72px; background: #ffe9bb; font-size: 16px; }

/* ===== 句子排列 ===== */
.lp-sent-built {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center;
  min-height: 52px; margin: 8px 4px; padding: 8px;
  border: 3px dashed #e8c26a; border-radius: 14px; background: #fffef7;
}
.lp-sent-built.ok { border-color: #52c23c; background: #eaffe0; }
.lp-sent-built.no { border-color: #e0523c; background: #ffeae6; animation: lp-shake .35s; }
.lp-sent-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0; }
.lp-stile {
  font-size: clamp(17px, 4.6vw, 22px); font-weight: bold;
  padding: 10px 14px; border-radius: 12px;
  border: 3px solid #ffcf5c; background: #fff; color: #3a2a15;
  box-shadow: 0 3px 0 #eec06a;
}
.lp-stile:active { transform: translateY(2px); box-shadow: none; }
.lp-stile.used { opacity: .25; box-shadow: none; }
.lp-stile.inbuilt { background: #eaf4ff; border-color: #9cc6ec; color: #2a7ac2; box-shadow: 0 3px 0 #b9d6f2; }
.lp-sent-text {
  font-size: clamp(20px, 5.6vw, 28px); font-weight: bold; color: #2a7ac2;
  margin: 12px 6px; line-height: 1.5;
}

/* ===== 闪现词 ===== */
.lp-flash {
  font-size: clamp(34px, 10vw, 54px); font-weight: bold; color: #2a7ac2;
  letter-spacing: 2px; margin: 18px 0; min-height: 64px;
  animation: lp-pop .25s;
}
.lp-flash.gone { visibility: hidden; }

/* ===== 描红 ===== */
.lp-trace-wrap {
  position: relative; width: 100%; height: clamp(120px, 22vh, 180px);
  margin: 10px 0; border: 3px solid #ffcf5c; border-radius: 16px;
  background: #fffef7; overflow: hidden;
}
.lp-trace-guide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: clamp(40px, 13vw, 80px); font-weight: bold; letter-spacing: 4px;
  color: transparent; -webkit-text-stroke: 2px #d9c48a;
  pointer-events: none; user-select: none;
}
.lp-trace-cv { position: absolute; inset: 0; touch-action: none; }

/* ===== 孵蛋 ===== */
.lp-hatch-stage { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lp-hatch-egg { font-size: 110px; line-height: 1.2; animation: lp-wobble .55s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes lp-wobble { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.lp-hatch-egg.crack { animation: lp-crack .5s ease-in-out infinite; }
@keyframes lp-crack { 0%,100% { transform: rotate(-4deg) scale(1); } 25% { transform: rotate(5deg) scale(1.07); } 50% { transform: rotate(-6deg) scale(1.02); } 75% { transform: rotate(4deg) scale(1.09); } }
.lp-pet-reveal { font-size: 120px; line-height: 1.25; animation: lp-reveal .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes lp-reveal { from { transform: scale(.2) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.lp-pet-glow { border-radius: 50%; padding: 14px 22px; }
.lp-r1 .lp-pet-glow { box-shadow: 0 0 34px 10px rgba(155,183,201,.75); }
.lp-r2 .lp-pet-glow { box-shadow: 0 0 40px 14px rgba(58,160,255,.75); }
.lp-r3 .lp-pet-glow { box-shadow: 0 0 46px 18px rgba(180,92,255,.8); }
.lp-r4 .lp-pet-glow { box-shadow: 0 0 60px 24px rgba(255,180,0,.85); animation: lp-glowpulse 1s infinite; }
@keyframes lp-glowpulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
.lp-rarity { font-size: 17px; font-weight: bold; letter-spacing: 2px; margin-top: 6px; }
.lp-pet-name { font-size: clamp(26px, 7vw, 36px); font-weight: bold; color: #3a2a15; margin-top: 2px; }
.lp-new-tag {
  display: inline-block; background: #ff5a4e; color: #fff; font-size: 14px;
  padding: 3px 12px; border-radius: 999px; margin-top: 6px;
  animation: lp-pulse .9s infinite;
}
.lp-dup-tag { display: inline-block; color: #b07a1e; font-size: 15px; margin-top: 6px; font-weight: bold; }

/* 彩带 */
.lp-confetti {
  position: absolute; top: -14px; width: 10px; height: 16px; z-index: 55;
  pointer-events: none; border-radius: 3px;
  animation: lp-fall linear forwards;
}
@keyframes lp-fall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to { transform: translateY(105dvh) rotate(720deg); opacity: .7; }
}

/* ===== 图鉴 / 任务 / 单词书 ===== */
.lp-tabs { display: flex; gap: 6px; margin: 6px 0 12px; }
.lp-tab {
  flex: 1; font-size: 15px; font-weight: bold; padding: 10px 2px;
  border: 3px solid #ffcf5c; border-radius: 14px; background: #fff; color: #b07a1e;
}
.lp-tab.on { background: #ffcf5c; color: #7a4a00; }
.lp-petgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 6px 0; }
.lp-petcell {
  position: relative; background: #fff; border: 3px solid #f2ddad; border-radius: 14px;
  padding: 8px 2px 5px; text-align: center;
}
.lp-petcell .pe { font-size: 34px; line-height: 1.2; }
.lp-petcell .pn { font-size: 11px; color: #7a6a4a; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.lp-petcell.locked { filter: grayscale(1); opacity: .45; }
.lp-petcell.locked .pe { filter: blur(2px); }
.lp-petcell.r2 { border-color: #9cc6ec; background: #f2f8ff; }
.lp-petcell.r3 { border-color: #d4aaff; background: #faf2ff; }
.lp-petcell.r4 { border-color: #ffd24a; background: #fff8e0; box-shadow: 0 0 10px rgba(255,180,0,.5); }
.lp-petcnt {
  position: absolute; top: -6px; right: -5px; background: #ff9d2e; color: #fff;
  font-size: 11px; font-weight: bold; border-radius: 999px; padding: 1px 7px;
}
.lp-album-sum { font-size: 15px; color: #7a6a4a; font-weight: bold; margin: 4px 0 8px; }

.lp-questlist { margin: 4px 0; }
.lp-quest {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 3px solid #f2ddad; border-radius: 16px;
  padding: 10px 12px; margin-bottom: 9px; text-align: left;
}
.lp-quest .qi { font-size: 28px; }
.lp-quest .qmain { flex: 1; }
.lp-quest .qn { font-size: 15px; font-weight: bold; color: #3a2a15; }
.lp-qbar { height: 10px; background: #ffe9bb; border-radius: 999px; overflow: hidden; margin-top: 5px; }
.lp-qfill { height: 100%; background: linear-gradient(90deg,#8fe36b,#52c23c); border-radius: 999px; transition: width .3s; }
.lp-qclaim {
  border: none; border-radius: 12px; font-size: 14px; font-weight: bold;
  padding: 9px 12px; background: #eee; color: #999; min-width: 74px;
}
.lp-qclaim.ready { background: linear-gradient(#ffc95c, #f59a1e); color: #fff; box-shadow: 0 3px 0 #c47205; animation: lp-pulse 1s infinite; }
.lp-qclaim.claimed { background: #d9f2cd; color: #3a9a2a; }
.lp-quest-bonus {
  background: #fff3d0; border: 3px dashed #ffcf5c; border-radius: 16px;
  padding: 10px; margin-top: 4px; font-size: 15px; font-weight: bold; color: #b07a1e;
}

.lp-worldlist { margin: 4px 0; }
.lp-world {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 3px solid #f2ddad; border-radius: 16px;
  padding: 10px 12px; margin-bottom: 8px; text-align: left; width: 100%;
}
.lp-world .wi { font-size: 26px; }
.lp-world .wn { flex: 1; font-size: 15px; font-weight: bold; color: #3a2a15; }
.lp-world .wp { font-size: 13px; color: #b07a1e; font-weight: bold; }
.lp-wordgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.lp-wordcell {
  background: #fff; border: 3px solid #f2ddad; border-radius: 12px;
  padding: 7px 4px; font-size: 15px; font-weight: bold; color: #3a2a15;
}
.lp-wordcell .we { font-size: 24px; display: block; line-height: 1.25; }
.lp-wordcell.m1 { border-color: #d8a869; background: #fff4e4; }   /* 铜 */
.lp-wordcell.m2 { border-color: #b9c4cc; background: #f4f8fa; }   /* 银 */
.lp-wordcell.m3 { border-color: #ffd24a; background: #fff8e0; }   /* 金 */
.lp-medal { font-size: 12px; }

/* ===== 每日礼物 / 连续登录 ===== */
.lp-streak-days { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.lp-sday {
  width: 40px; padding: 7px 0 5px; border-radius: 12px; text-align: center;
  background: #fff; border: 3px solid #f2ddad; font-size: 11px; color: #9a8a6a; font-weight: bold;
}
.lp-sday .de { display: block; font-size: 17px; }
.lp-sday.done { background: #eaffe0; border-color: #8fe36b; color: #3a9a2a; }
.lp-sday.today { background: #fff3d0; border-color: #ffcf5c; color: #b07a1e; animation: lp-pulse 1.2s infinite; }

/* ===== Boss 战 ===== */
.lp-boss-emoji { font-size: clamp(80px, 24vw, 130px); line-height: 1.2; display: inline-block; }
.lp-boss-emoji.hit { animation: lp-bosshit .45s; }
@keyframes lp-bosshit { 0% { transform: scale(1); filter: none; } 30% { transform: scale(.86) rotate(-8deg); filter: brightness(2) saturate(0); } 100% { transform: scale(1); } }
.lp-hp {
  height: 20px; background: #ffd9d4; border: 2px solid #e0523c; border-radius: 999px;
  overflow: hidden; margin: 8px 20px;
}
.lp-hpfill { height: 100%; background: linear-gradient(90deg,#ff8a6a,#e0341c); transition: width .4s cubic-bezier(.2,1.2,.4,1); border-radius: 999px; }
.lp-boss-tag { font-size: 15px; color: #e0523c; font-weight: bold; }

/* ===== 升级全屏庆祝 ===== */
.lp-level-burst {
  position: absolute; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(50, 25, 0, .72); pointer-events: auto;
}
.lp-level-burst .lb1 { font-size: clamp(46px, 14vw, 90px); font-weight: bold; color: #ffd24a; text-shadow: 0 4px 0 #b06a00, 0 8px 24px rgba(0,0,0,.5); animation: lp-reveal .6s cubic-bezier(.2,1.5,.4,1); }
.lp-level-burst .lb2 { font-size: clamp(22px, 7vw, 40px); font-weight: bold; color: #fff; margin-top: 8px; animation: lp-pop .5s .15s both; }
.lp-level-burst .lb3 { font-size: 18px; color: #ffe9bb; margin-top: 12px; animation: lp-pop .5s .3s both; }

/* ===== 提示气泡 ===== */
.lp-toast {
  position: absolute; left: 50%; top: 14%;
  transform: translateX(-50%);
  background: rgba(60,40,10,.92); color: #ffe9bb;
  font-size: 16px; font-weight: bold;
  padding: 12px 22px; border-radius: 999px; z-index: 65;
  pointer-events: none; white-space: nowrap;
  animation: lp-toast-in 2.4s ease forwards;
}
@keyframes lp-toast-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  12%, 82% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ===== 排行榜 / 统计 ===== */
.lp-board { text-align: left; margin: 10px 2px; }
.lp-board h3 { font-size: 18px; color: #e07a12; margin-bottom: 6px; text-align: center; }
.lp-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px; font-size: 16px; margin-bottom: 6px;
  background: #fff7e0;
}
.lp-row.me { background: #ffe4a8; font-weight: bold; }
.lp-rank { width: 28px; text-align: center; font-weight: bold; color: #d98a1e; }
.lp-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-star { color: #e07a12; font-weight: bold; }
.lp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.lp-stat { background: #fff7e0; border-radius: 14px; padding: 12px 8px; text-align: center; }
.lp-stat.big { grid-column: 1 / -1; background: #ffe4a8; }
.lp-stat b { display: block; font-size: clamp(20px, 5.5vw, 28px); color: #e07a12; }
.lp-stat.big b { font-size: clamp(30px, 8vw, 44px); }
.lp-stat span { font-size: 13px; color: #7a6a4a; }
.lp-days { display: flex; align-items: flex-end; gap: 6px; height: 74px; justify-content: center; margin: 8px 0 2px; }
.lp-dayb { width: 30px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lp-dayb .bar { width: 100%; background: linear-gradient(#8fe36b,#52c23c); border-radius: 6px 6px 0 0; min-height: 3px; }
.lp-dayb .lab { font-size: 10px; color: #9a8a6a; font-weight: bold; }
.lp-tricky { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 6px 0; }
.lp-tricky .tk {
  border: 2px solid #ffb4a4; background: #fff0ec; color: #c04a34;
  font-size: 15px; font-weight: bold; border-radius: 999px; padding: 6px 14px;
}

/* ===================== v5 新系统 ===================== */

/* ===== 小伙伴 HUD 芯片 ===== */
.lp-chip.lp-buddy { padding: 3px 10px; }
.lp-chip.lp-buddy .be { font-size: 22px; display: inline-block; }
.lp-chip.lp-buddy.happy .be { animation: lp-bbounce .5s; }
.lp-chip.lp-buddy.sad .be { animation: lp-bsad .7s; }
.lp-chip.lp-buddy.superon { border-color: #ff8ab0; box-shadow: 0 0 12px rgba(255,120,180,.8), 0 3px 0 rgba(217,138,30,.5); }
@keyframes lp-bbounce { 0%{transform:scale(1)} 35%{transform:scale(1.35) rotate(-8deg)} 70%{transform:scale(.95)} 100%{transform:scale(1)} }
@keyframes lp-bsad { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-14deg) translateY(2px)} 75%{transform:rotate(14deg) translateY(2px)} }

/* ===== 小伙伴面板 ===== */
.lp-buddy-big { font-size: 100px; line-height: 1.25; display: inline-block; position: relative; transform: scale(var(--bscale,1)); transition: transform .45s cubic-bezier(.2,1.4,.4,1); }
.lp-buddy-big.aura1 { text-shadow: 0 0 24px rgba(255,210,74,.95); }
.lp-buddy-big.aura2 { animation: lp-hue 2.2s linear infinite; text-shadow: 0 0 30px rgba(180,92,255,.9); }
@keyframes lp-hue { from { filter: hue-rotate(0deg) brightness(1.05); } to { filter: hue-rotate(360deg) brightness(1.05); } }
.lp-bemoji { display: inline-block; }
.lp-bacc { position: absolute; pointer-events: none; z-index: 2; }
.lp-bacc-hat { top: -6px; left: 50%; transform: translateX(-50%); font-size: 46px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.lp-bacc-l { left: -22px; top: 34px; font-size: 32px; animation: lp-pulse 1.2s infinite; }
.lp-bacc-r { right: -22px; top: 34px; font-size: 32px; animation: lp-pulse 1.2s infinite .3s; }
.lp-bacc-scarf { bottom: -4px; left: 50%; transform: translateX(-50%); font-size: 40px; }
.lp-buddy-name { font-size: clamp(22px, 6vw, 30px); font-weight: bold; color: #3a2a15; }
.lp-buddy-lv { font-size: 15px; color: #b07a1e; font-weight: bold; margin: 2px 0 8px; }
.lp-foodbar { height: 20px; background: #ffe9bb; border: 2px solid #eec06a; border-radius: 999px; overflow: hidden; margin: 6px 24px; }
.lp-foodfill { height: 100%; background: linear-gradient(90deg,#ff9d2e,#ff5a4e); border-radius: 999px; transition: width .3s cubic-bezier(.2,1.2,.4,1); }
.lp-feedbtn { font-size: clamp(20px, 5.5vw, 26px); padding: 14px 34px; }
.lp-heart {
  position: absolute; font-size: 26px; pointer-events: none; z-index: 60;
  animation: lp-heart-up 1s ease-out forwards;
}
@keyframes lp-heart-up { from { opacity: 1; transform: translateY(0) scale(.7); } to { opacity: 0; transform: translateY(-60px) scale(1.4); } }
.lp-superbanner {
  background: linear-gradient(90deg,#ff8ab0,#ffd24a); color: #fff; font-weight: bold;
  border-radius: 14px; padding: 8px 12px; margin: 8px 0; font-size: 16px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25); animation: lp-pulse 1s infinite;
}
.lp-buddy-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 8px 0; }

/* ===== 幸运转盘 ===== */
.lp-wheel-wrap { position: relative; width: 270px; height: 270px; margin: 10px auto; }
.lp-wheel {
  position: absolute; inset: 0; border-radius: 50%;
  border: 8px solid #d98a1e; box-shadow: 0 6px 0 #b06a00, inset 0 0 18px rgba(0,0,0,.15);
  transition: transform 3.8s cubic-bezier(.12,.75,.16,1);
}
.lp-wslice {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  font-size: 17px; font-weight: bold; color: #5a3a00; white-space: nowrap;
}
.lp-wslice span { display: inline-block; transform: translate(-50%, -104px); }
.lp-wpoint {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 34px; z-index: 5; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3));
}
.lp-whub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%; background: #fffdf3; border: 4px solid #d98a1e;
  display: flex; align-items: center; justify-content: center; font-size: 26px; z-index: 4;
}
.lp-wheel-result { font-size: clamp(24px, 7vw, 34px); font-weight: bold; color: #e07a12; min-height: 44px; margin-top: 6px; animation: lp-pop .3s; }

/* ===== 宝藏之路 ===== */
.lp-road-season { font-size: 16px; font-weight: bold; color: #b07a1e; margin: 4px 0 8px; }
.lp-road { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0; }
.lp-rnode {
  position: relative; border-radius: 14px; border: 3px solid #f2ddad; background: #fff;
  min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 19px; font-weight: bold; color: #b07a1e; padding: 4px 2px;
}
.lp-rnode small { font-size: 10px; color: #9a8a6a; }
.lp-rnode.done { background: #eaffe0; border-color: #8fe36b; opacity: .65; }
.lp-rnode.cur { border-color: #ffcf5c; background: #fff3d0; animation: lp-pulse 1.2s infinite; }
.lp-rnode.mile { border-color: #ffb400; background: #fff8e0; box-shadow: 0 0 8px rgba(255,180,0,.45); font-size: 22px; }
.lp-road-next { font-size: 15px; font-weight: bold; color: #e07a12; margin: 8px 0 2px; }

/* ===== 贴纸套装 ===== */
.lp-setcard {
  background: #fff; border: 3px solid #f2ddad; border-radius: 16px;
  padding: 10px 10px 8px; margin-bottom: 10px; text-align: left;
}
.lp-setcard.done { border-color: #ffb400; background: #fff8e0; box-shadow: 0 0 10px rgba(255,180,0,.35); }
.lp-sethead { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: bold; color: #3a2a15; }
.lp-sethead .sp { margin-left: auto; color: #b07a1e; }
.lp-setrow { display: flex; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.lp-setpet {
  width: 44px; height: 44px; border-radius: 10px; border: 2px solid #f2ddad; background: #fffdf3;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.lp-setpet.miss { filter: grayscale(1); opacity: .4; font-size: 18px; }
.lp-setdone-tag { color: #3a9a2a; font-weight: bold; }

/* ===== 彩虹狂热（连击 10）===== */
.lp-rainbow-frame {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  border: 10px solid; border-image: linear-gradient(45deg, #ff5a4e, #ffb400, #52c23c, #3aa0ff, #b45cff, #ff5a4e) 1;
  animation: lp-rainbow-pulse .8s linear infinite;
}
@keyframes lp-rainbow-pulse { 0%,100% { opacity: .95; filter: hue-rotate(0deg); } 50% { opacity: .6; filter: hue-rotate(180deg); } }

/* ===== 敲蛋 ===== */
.lp-hatch-egg { border: none; background: none; cursor: pointer; padding: 8px 20px; border-radius: 50%; }
.lp-hatch-egg:active { transform: scale(.92); }
.lp-hatch-egg.g1 { filter: drop-shadow(0 0 18px rgba(155,183,201,.95)); }
.lp-hatch-egg.g2 { filter: drop-shadow(0 0 22px rgba(58,160,255,.95)); }
.lp-hatch-egg.g3 { filter: drop-shadow(0 0 26px rgba(180,92,255,.95)); }
.lp-hatch-egg.g4 { filter: drop-shadow(0 0 30px rgba(255,180,0,1)); animation: lp-glowpulse .8s infinite; }
.lp-hatch-egg.tapped { animation: lp-tap-jolt .18s; }
@keyframes lp-tap-jolt { 0%{transform:scale(1) rotate(0)} 40%{transform:scale(1.14) rotate(-6deg)} 100%{transform:scale(1) rotate(0)} }
.lp-tap-hint { font-size: 17px; font-weight: bold; color: #e07a12; animation: lp-pulse .9s infinite; margin-top: 4px; }
.lp-crackbits { position: absolute; font-size: 20px; pointer-events: none; animation: lp-float-up .6s ease-out forwards; }
.lp-tapring { height: 12px; background: #ffe9bb; border: 2px solid #eec06a; border-radius: 999px; overflow: hidden; margin: 8px 40px 0; }
.lp-tapfill { height: 100%; background: linear-gradient(90deg,#8fe36b,#52c23c); border-radius: 999px; transition: width .15s; }

/* ===== 离线收益 ===== */
.lp-offline-pets { font-size: 44px; letter-spacing: 4px; margin: 8px 0; }

/* ===================== v5.1：宝箱 & 贴纸拼图 & 嗓音 ===================== */

/* 6 个标签变窄 */
.lp-tab { font-size: 12px; padding: 9px 1px; border-width: 2px; border-radius: 12px; }

/* ===== 宝箱开箱 ===== */
.lp-chest-big {
  border: none; background: none; cursor: pointer;
  font-size: 96px; line-height: 1.25; padding: 10px 26px; border-radius: 30px;
}
.lp-chest-big:active { transform: scale(.92); }
.lp-chest-big.cg { filter: drop-shadow(0 0 24px rgba(255,210,74,.95)); animation: lp-glowpulse .8s infinite; }
.lp-chest-big.crb { filter: drop-shadow(0 0 28px rgba(180,92,255,.95)); animation: lp-hue 2s linear infinite; }
.lp-chest-big.tapped { animation: lp-tap-jolt .18s; }
.lp-chest-name { font-size: 17px; font-weight: bold; color: #b07a1e; margin-top: 2px; }
.lp-piece-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 4px; min-height: 60px; }
.lp-piece-card {
  width: 86px; border-radius: 14px; border: 3px solid #f2ddad; background: #fff;
  padding: 7px 4px 6px; animation: lp-reveal .4s cubic-bezier(.2,1.4,.4,1);
}
.lp-piece-card .ce { font-size: 30px; line-height: 1.2; }
.lp-piece-card .cn { font-size: 10px; font-weight: bold; color: #7a6a4a; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lp-piece-card .cs { font-size: 11px; font-weight: bold; }
.lp-piece-card.new { border-color: #52c23c; background: #f2ffe9; }
.lp-piece-card.new .cs { color: #3a9a2a; }
.lp-piece-card.dup { border-color: #d9c8a9; }
.lp-piece-card.dup .cs { color: #b07a1e; }
.lp-piece-card.crown { border-color: #ffb400; background: #fff8e0; box-shadow: 0 0 14px rgba(255,180,0,.8); animation: lp-glowpulse .7s infinite, lp-reveal .4s; }

/* ===== 贴纸拼图网格 ===== */
.lp-scraps { font-size: 15px; font-weight: bold; color: #b07a1e; margin: 2px 0 8px; }
.lp-series-card {
  background: #fff; border: 3px solid #f2ddad; border-radius: 16px;
  padding: 10px; margin-bottom: 10px; text-align: left;
}
.lp-series-card.done { border-color: #ffb400; background: #fff8e0; }
.lp-series-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: bold; color: #3a2a15; }
.lp-series-head .sp { margin-left: auto; color: #b07a1e; font-size: 13px; }
.lp-focus-btn {
  border: 2px solid #ffcf5c; background: #fff; color: #b07a1e;
  font-size: 12px; font-weight: bold; border-radius: 999px; padding: 4px 10px;
}
.lp-focus-btn.on { background: #ffcf5c; color: #7a4a00; }
.lp-stkrow { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.lp-stk {
  position: relative; width: 52px; height: 52px; border-radius: 10px;
  border: 2px solid #f2ddad; background: #fffdf3; padding: 0; overflow: hidden;
}
.lp-stk .se { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.lp-stk.sdone { border-color: #ffb400; box-shadow: 0 0 8px rgba(255,180,0,.5); }
.lp-stk-cover { position: absolute; inset: 0; display: grid; }
.lp-stk-cover .cc { background: #e9dbb8; border: 1px solid #d9c8a9; }
.lp-stk-cover .cc.own { background: transparent; border-color: transparent; }
/* 大拼图（详情页） */
.lp-stkbig-wrap { position: relative; width: 190px; height: 190px; margin: 8px auto; border-radius: 18px; border: 3px solid #f2ddad; background: #fffdf3; overflow: hidden; }
.lp-stkbig-wrap .se { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 120px; }
.lp-stkbig-cover { position: absolute; inset: 0; display: grid; }
.lp-stkbig-cover .cc {
  background: #e9dbb8; border: 1px solid #d9c8a9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; font-weight: bold; color: #9a8a6a; padding: 0; cursor: pointer;
}
.lp-stkbig-cover .cc.own { background: transparent; border-color: transparent; pointer-events: none; }
.lp-stkbig-cover .cc.crownc { color: #d98a1e; }
.lp-stkbig-cover .cc small { font-size: 10px; }
.lp-stk-detail-name { font-size: 18px; font-weight: bold; color: #3a2a15; }
.lp-stk-tier { font-size: 13px; font-weight: bold; margin: 2px 0 4px; }

/* ===== 嗓音选择（Me 页，给家长） ===== */
.lp-voice-list { margin: 6px 0; }
.lp-voice-row {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid #f2ddad; border-radius: 12px;
  padding: 7px 10px; margin-bottom: 6px; text-align: left;
}
.lp-voice-row .vn { flex: 1; font-size: 13px; font-weight: bold; color: #3a2a15; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lp-voice-row .vl { font-size: 11px; color: #9a8a6a; }
.lp-voice-row.on { border-color: #52c23c; background: #f2ffe9; }
.lp-vbtn {
  border: none; border-radius: 999px; font-size: 12px; font-weight: bold;
  padding: 6px 12px; background: #eaf4ff; color: #2a7ac2;
}
.lp-vbtn.use { background: #d9f2cd; color: #3a9a2a; }
.lp-voice-tip { font-size: 12px; color: #9a8a6a; margin: 6px 2px 2px; line-height: 1.5; text-align: left; }

/* ===== Super 抢答 ===== */
.lp-super-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lp-super-bar { flex: 1; height: 16px; background: #ffe4a8; border-radius: 999px; overflow: hidden; }
.lp-super-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #ff6a3c, #ffcf5c); transition: width .25s linear; }
.lp-super-tl { font-size: 18px; font-weight: bold; color: #e0523c; min-width: 42px; }
.lp-super-quick { font-size: 15px; color: #b07a1e; margin-bottom: 8px; }
.lp-super-quick b { color: #e07a12; font-size: 18px; }
.lp-super-earn { font-size: clamp(26px, 7vw, 38px); font-weight: bold; color: #3a9a2a; margin-top: 10px; }
