/* 单词星球 宠物版 v3：在 wordplanet-v2.css 基础上追加（v2 文件不改动） */
.lvBadge{flex:0 0 auto;background:#fff;border-radius:18px;height:56px;padding:0 10px;display:flex;align-items:center;font-weight:900;font-size:17px;box-shadow:0 4px 14px #6c4fd822;white-space:nowrap}
@media(max-width:420px){.lvBadge{height:48px;font-size:15px;padding:0 7px;border-radius:16px}.bar .starCount{display:none}}
/* 宠物 */
.petStage{position:relative;width:100%;display:flex;justify-content:center;align-items:flex-end;min-height:230px}
.petWrap{width:min(72vw,280px);aspect-ratio:1/1;position:relative;cursor:pointer;touch-action:manipulation}
.petWrap svg{width:100%;height:100%;display:block;overflow:visible}
.petWrap.small{width:120px}
.petWrap.tiny{width:84px}
.petWrap .anim{transform-box:fill-box;transform-origin:50% 90%;animation:bob 2.6s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0) scale(1,1)}50%{transform:translateY(-5px) scale(1.01,.99)}}
.petWrap.happy .anim,.petWrap.jump .anim{animation:jump .7s ease-out 2}
@keyframes jump{0%,100%{transform:translateY(0) scale(1)}30%{transform:translateY(0) scale(1.08,.9)}60%{transform:translateY(-34px) scale(.95,1.06)}}
.petWrap.eat .anim{animation:chomp .22s ease-in-out 4}
@keyframes chomp{50%{transform:scale(1.07,.93)}}
.petWrap.refuse .anim{animation:nope .3s ease-in-out 3}
@keyframes nope{25%{transform:rotate(-6deg)}75%{transform:rotate(6deg)}}
.petWrap.wave .anim{animation:wave .45s ease-in-out 4}
@keyframes wave{25%{transform:rotate(-9deg)}75%{transform:rotate(9deg)}}
.petWrap.spin .anim{animation:spin 1s ease-in-out 1}
@keyframes spin{to{transform:rotate(360deg)}}
.petWrap.flip .anim{animation:flip 1.1s ease-in-out 1}
@keyframes flip{0%{transform:translateY(0) rotate(0)}40%{transform:translateY(-60px) rotate(180deg)}80%,100%{transform:translateY(0) rotate(360deg)}}
.petWrap.dance .anim{animation:dance .5s ease-in-out 4}
@keyframes dance{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(-14px) rotate(-8deg)}75%{transform:translateX(14px) rotate(8deg)}}
.petWrap.rainbow .anim{animation:rainbow 1.6s linear 2,jump .8s ease-out 2}
@keyframes rainbow{to{filter:hue-rotate(360deg)}}
.petWrap.hug .anim{animation:hug .6s ease-in-out 3}
@keyframes hug{50%{transform:scale(1.12,.92)}}
.petWrap.sleep .anim{animation:breathe 3.4s ease-in-out infinite}
@keyframes breathe{50%{transform:scale(1.03,.97)}}
.petWrap.grow .anim{animation:grow 1.2s ease-out 1}
@keyframes grow{0%{transform:scale(.75)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
.zzz{position:absolute;right:8%;top:6%;font-size:28px;font-weight:900;color:#7a6bd0;animation:zz 2.4s ease-in-out infinite}
@keyframes zz{0%{opacity:0;transform:translate(0,10px)}50%{opacity:1}100%{opacity:0;transform:translate(16px,-20px)}}
.bubble{position:absolute;left:50%;top:-6px;transform:translateX(-50%);background:#fff;border-radius:20px;padding:8px 14px;font-weight:900;font-size:18px;box-shadow:0 6px 18px #6c4fd826;white-space:nowrap;max-width:94vw;overflow:hidden;text-overflow:ellipsis;z-index:3}
.bubble::after{content:"";position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);border:10px solid transparent;border-top-color:#fff;border-bottom:0}
.petRoom.night{background:radial-gradient(circle at 80% 10%,#fffbe0 0,#fffbe000 12%),linear-gradient(180deg,#3b3477,#6656b3);border-radius:30px;color:#fff}
.petRoom{width:100%;border-radius:30px;padding:12px 10px 8px;display:flex;flex-direction:column;align-items:center;gap:8px;transition:background .6s}
.petName{font-size:24px;font-weight:950;display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap}
.meters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:620px}@media(min-width:600px){.meters{grid-template-columns:repeat(4,minmax(0,1fr))}}
.meter{background:#fff;border-radius:16px;padding:6px 8px;display:flex;align-items:center;gap:6px;box-shadow:0 3px 10px #6c4fd814;color:var(--ink);min-width:0}
.meter .ic{font-size:20px;flex:0 0 auto}
.meter .track{flex:1;height:12px;border-radius:10px;background:#efe9fb;overflow:hidden;min-width:0}
.meter .fill{height:100%;border-radius:10px;background:linear-gradient(90deg,#ffb938,#ff7e5f);transition:width .5s}
.meter.xp .fill{background:linear-gradient(90deg,#8f6cf0,#5aa8ff)}
.meter.goal .fill{background:linear-gradient(90deg,#3ec5a2,#22a466)}
.tray{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;min-height:72px;align-items:center}
.food{position:relative;width:72px;height:72px;border-radius:22px;background:#fff;font-size:40px;padding:0;display:grid;place-items:center;box-shadow:0 6px 0 #e0d6f7;color:var(--ink);touch-action:none}
.food .n{position:absolute;right:-6px;top:-6px;background:var(--red);color:#fff;font-size:14px;min-width:24px;height:24px;border-radius:12px;display:grid;place-items:center;padding:0 5px}
.food.drag{position:fixed;z-index:90;pointer-events:none;box-shadow:0 12px 30px #0003;transform:scale(1.1)}
.flyFood{position:fixed;z-index:90;font-size:42px;pointer-events:none;transition:transform .55s cubic-bezier(.5,-.3,.6,1),opacity .55s}
.actions4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;max-width:560px}
.act{min-height:84px;border-radius:24px;font-size:38px;background:#fff;color:var(--ink);box-shadow:0 6px 16px #6c4fd822;position:relative;padding:4px}
.act.main{background:var(--purple);color:#fff}
.act .dotN{position:absolute;right:6px;top:6px;background:var(--red);color:#fff;font-size:13px;min-width:22px;height:22px;border-radius:11px;display:grid;place-items:center;padding:0 4px}
.chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.chipS{background:#fff;border-radius:16px;padding:6px 12px;font-weight:900;font-size:16px;box-shadow:0 3px 10px #6c4fd814;color:var(--ink)}
.craveBubble{display:flex;gap:6px;align-items:center}
.craveBubble b{background:#fff3d6;border-radius:10px;padding:0 6px}
/* 创建 / 打扮 */
.studio{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.pickGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;max-width:600px}
.pick{background:#fff;border-radius:22px;padding:6px;min-height:96px;border:4px solid transparent;box-shadow:0 5px 14px #6c4fd81c;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;position:relative}
.pick.sel{border-color:var(--gold);background:#fff8e6}
.pick .lock{position:absolute;inset:0;border-radius:18px;background:#ffffffc8;display:grid;place-items:center;font-size:15px;font-weight:900;color:#7a6f92}
.pick svg{width:100%;max-width:90px;height:auto}
.pick .em{font-size:36px}
.pick small{font-size:12px;font-weight:800;color:var(--muted)}
.swatches{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.swatch{width:56px;height:56px;border-radius:50%;border:5px solid #fff;box-shadow:0 4px 12px #0002;padding:0;min-width:56px}
.swatch.sel{outline:5px solid var(--gold);outline-offset:2px}
.nameRow{display:flex;gap:8px;width:100%;max-width:520px}
.nameRow input{flex:1;min-width:0;min-height:56px;border-radius:18px;border:3px solid #ddd2f6;font-size:22px;padding:6px 14px;font-weight:800;text-align:center}
.names{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;max-width:600px}
.names button{background:#fff;color:var(--ink);min-height:52px;border-radius:16px;font-size:18px;box-shadow:0 3px 10px #6c4fd818}
.names button.sel{background:#fff3d6;outline:3px solid var(--gold)}
.stepTitle{font-size:22px;font-weight:950;display:flex;align-items:center;gap:8px}
/* 覆盖层 */
.over{position:fixed;inset:0;z-index:85;background:linear-gradient(180deg,#efe8fff2,#fff3e4f2);display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.over[hidden]{display:none}
.overBox{width:100%;max-width:520px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.overTitle{font-size:28px;font-weight:950;margin:0;line-height:1.3;word-break:break-word}
.overSub{font-size:18px;font-weight:800;color:var(--muted);margin:0}
.over.night{background:linear-gradient(180deg,#3b3477f5,#6656b3f5);color:#fff}
.over.night .overSub{color:#e6defc}
.unlockIcon{font-size:64px}
/* 复习 */
.craveCards{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.crave{background:#fff;border-radius:20px;min-width:72px;min-height:72px;padding:6px 10px;display:grid;place-items:center;font-size:30px;font-weight:950;color:var(--purple2);box-shadow:0 5px 14px #6c4fd81c}
.crave.done{background:#dff7ea}
.locked{background:linear-gradient(145deg,#cfc8df,#a79fbd)!important;box-shadow:none!important;cursor:not-allowed}
.locked .soon{position:absolute;right:10px;top:8px;background:#ffffffaa;color:#4b4363;border-radius:12px;padding:2px 8px;font-size:13px}
.moreSoon{text-align:center;color:var(--muted);font-weight:800;margin:0 0 12px}
@media(max-width:420px){.act{min-height:72px;font-size:32px}.food{width:64px;height:64px;font-size:34px}.pickGrid{gap:6px}.pick{min-height:84px}.meters{gap:5px}.meter{padding:5px 6px}.meter .ic{font-size:17px}}
@media(min-width:700px) and (min-height:900px){.petWrap{width:330px}.act{min-height:110px;font-size:50px}.food{width:88px;height:88px;font-size:50px}}
.planet.nextPlanet{outline:5px solid var(--gold);outline-offset:3px}
.pickGrid.big{grid-template-columns:repeat(2,minmax(0,1fr));max-width:460px}.pickGrid.big .pick{min-height:150px}.pickGrid.big .pick svg{max-width:140px}.pickGrid.big small{font-size:16px}
@media(min-width:700px){.pickGrid.big{grid-template-columns:repeat(4,minmax(0,1fr));max-width:720px}}
/* ===== 44 课完整课程（任务3） ===== */
.planets .stageHead{grid-column:1/-1;margin:10px 4px 0;font-size:20px;font-weight:900;color:var(--ink,#3b2a6b);display:flex;align-items:center;gap:8px}
.planet .pl.long{font-size:28px;letter-spacing:1px}
.choice.long{font-size:44px}
.choices.wordChoices{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
.choice.word{font-size:40px;min-height:96px;text-transform:none;word-break:break-word}
.bigLetter.trickyWord{line-height:1.1;white-space:nowrap}
.key{word-break:keep-all}
@media(min-width:700px){.choice.word{font-size:52px}}
@media(max-width:480px){.slots{gap:6px;flex-wrap:wrap}.slot{width:52px;height:68px;font-size:40px}}
#tkBox{width:100%;display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0}
#tkBox .choices.wordChoices{width:100%;max-width:620px;grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:420px){#tkBox .choices.wordChoices{grid-template-columns:repeat(2,minmax(0,1fr))}.choice.word{font-size:34px}}
@media(max-width:480px){.bar:has(#dots .dot:nth-child(5)) .lvBadge{display:none}}
