/* 小象数学演示版：沿用界面设计稿的颜色和字体 */
:root {
  --blue: #2457C5; --blue-2: #1E4FB4; --navy: #17233F; --navy-2: #22335A;
  --orange: #C2410C; --sun: #FFC845; --ink: #17233F; --muted: #4B5875;
  --cream: #FFFBF3; --cool: #F3F6FC; --line: #DDE3EF; --sand: #EFE6CF;
  --green-bg: #E3F5DF; --green: #7CC573; --green-ink: #1F5C2C;
  --red-bg: #FFE3DC; --red-ink: #8A2B14; --hint-bg: #FFF4D6; --hint-ink: #6B4100;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #E9EEF8; font-family: "Noto Sans SC", system-ui, sans-serif; color: var(--ink); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
#app { max-width: 430px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; background: var(--cream); position: relative; }
#app.cool { background: var(--cool); }
#app.night { background: var(--navy); color: #FFFFFF; }
.num { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; }
.fun { font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pad { padding: 0 16px; }

/* 顶栏 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 16px 8px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--sand); background: #FFFFFF; display: flex; align-items: center; justify-content: center; flex: none; }
.round.solid { background: var(--blue); border: 0; color: #FFFFFF; }
.round.off { background: #FFFFFF; color: var(--muted); border: 2px solid var(--line); }
.night .round { background: var(--navy-2); border: 0; color: #FFFFFF; }
.round svg { width: 24px; height: 24px; }
.title { font-size: 22px; color: var(--blue-2); text-align: center; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #FFFFFF; border: 2px solid #F3E3B5; border-radius: 999px; padding: 4px 10px; font-size: 15px; font-weight: 700; }
.chip svg { width: 20px; height: 20px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.tag.learn { background: #FFE9DA; color: #8A3B07; }
.tag.know { background: var(--green-bg); color: var(--green-ink); }
.dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.dots span { width: 18px; height: 9px; border-radius: 5px; background: #E6DCC2; }
.dots span.done { background: var(--blue); }
.dots span.now { background: var(--orange); }
.cool .dots span { background: var(--line); }
.cool .dots span.done { background: var(--blue); }
.cool .dots span.now { background: var(--orange); }

/* 小象说话 */
.say { display: flex; align-items: flex-end; gap: 8px; padding: 6px 16px 0; }
.say svg.ele { width: 78px; height: 72px; flex: none; }
.bubble { flex: 1; background: #FFFFFF; border: 2px solid #D5E2FA; border-radius: 22px 22px 22px 6px; padding: 12px 14px; font-size: 18px; font-weight: 700; line-height: 1.45; }

/* 游戏区 */
.stage { margin: 16px 16px 0; border-radius: 28px; background: #EAF7E6; padding: 18px; position: relative; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.stage.blue { background: #DDEBFF; }
.stage.dark { background: var(--navy); color: #FFFFFF; }
.stage.white { background: #FFFFFF; border: 1px solid var(--line); }

.answers { display: flex; justify-content: center; gap: 16px; margin: 22px 16px 0; flex-wrap: wrap; }
.ans { width: 96px; height: 96px; border-radius: 28px; background: #FFFFFF; border: 4px solid #D5E2FA; font-size: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .12s; }
.ans:active { transform: scale(.96); }
.ans small { font-family: "Noto Sans SC", sans-serif; font-size: 14px; font-weight: 700; }
.ans.right { background: var(--green); border-color: #3F8F38; color: #FFFFFF; }
.ans.wrong { background: var(--red-bg); border-color: #E39A86; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.note { margin: 18px 16px 0; border-radius: 18px; padding: 12px 14px; font-size: 15px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.note.good { background: var(--green-bg); color: var(--green-ink); border: 2px solid var(--green); font-weight: 700; }
.note.hint { background: var(--hint-bg); color: var(--hint-ink); border: 2px solid #E9B949; }
.note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

.foot { margin-top: auto; padding: 16px 16px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: #6B7A99; }
.night .foot { color: #A7B5D3; }

/* 芒果、苹果、花、十格框、石头 */
.basket { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 300px; }
.fruit { width: 58px; height: 52px; border: 0; background: none; padding: 0; position: relative; }
.fruit i { position: absolute; left: 0; top: 6px; width: 58px; height: 46px; border-radius: 50% 50% 46% 54%; background: #FFB020; border: 3px solid #D9861A; }
.fruit b { position: absolute; left: 28px; top: 0; width: 16px; height: 9px; border-radius: 0 12px 0 12px; background: #5BAA4F; }
.fruit em { position: absolute; left: 15px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF; font-style: normal; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.apple { width: 40px; height: 38px; position: relative; display: inline-block; }
.apple i { position: absolute; left: 0; top: 4px; width: 40px; height: 34px; border-radius: 50%; background: #D93D42; }
.apple b { position: absolute; left: 22px; top: 0; width: 12px; height: 7px; border-radius: 0 10px 0 10px; background: #5BAA4F; }
.apple em { position: absolute; left: 10px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; font-style: normal; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.plates { display: flex; align-items: center; gap: 10px; }
.plate { background: #FFFFFF; border-radius: 50%; padding: 14px 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 132px; min-height: 100px; align-content: center; }
.plus { font-size: 34px; color: var(--muted); }
.flowers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.flowers .group { display: flex; gap: 4px; padding: 4px; border-radius: 12px; }
.flowers .group.mark { background: #CFEBC6; }
.qmark { width: 40px; height: 40px; border-radius: 50%; border: 3px dashed var(--orange); display: inline-flex; align-items: center; justify-content: center; color: var(--orange); font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; }
.frame { display: grid; grid-template-columns: repeat(5, 1fr); border: 4px solid #FFFFFF; border-radius: 10px; overflow: hidden; width: 300px; max-width: 100%; }
.frame span { height: 58px; border-right: 3px solid #FFFFFF; border-bottom: 3px solid #FFFFFF; display: flex; align-items: center; justify-content: center; }
.frame span:nth-child(5n) { border-right: 0; }
.frame span:nth-child(n+6) { border-bottom: 0; }
.frame span i { width: 36px; height: 36px; border-radius: 50%; background: var(--sun); }
.frame.cover span i { visibility: hidden; }
.frame.light { border-color: var(--navy); background: #FFFFFF; width: 260px; max-width: 100%; }
.frame.light span { height: 44px; border-color: var(--navy); }
.frame.light span i { width: 26px; height: 26px; background: var(--blue); }
.frame.light span i.moved { background: var(--orange); outline: 3px solid var(--sun); }
.frame.light span i.other { background: var(--orange); }
.stones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; }
.stone { height: 50px; border-radius: 50%; background: #FFFFFF; border: 4px solid #9AA6C0; display: flex; align-items: center; justify-content: center; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; }
.stone.gap { background: var(--hint-bg); border: 4px dashed var(--orange); color: var(--orange); }
.stone.near { border-color: var(--blue); }

/* 数字键盘（7–12 岁） */
.eq { margin: 14px 16px 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 48px; }
.eq .op { color: var(--muted); }
.slot { min-width: 84px; height: 66px; border-radius: 16px; border: 3px dashed var(--orange); display: inline-flex; align-items: center; justify-content: center; color: var(--orange); font-size: 38px; padding: 0 8px; }
.slot.filled { border: 3px solid #E9B949; background: var(--hint-bg); color: var(--ink); }
.slot.right { border-color: #3F8F38; background: var(--green); color: #FFFFFF; }
.slot.wrong { border-color: #E39A86; background: var(--red-bg); color: var(--red-ink); animation: shake .35s; }
.keys { margin: 12px 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key { height: 54px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 24px; }
.key.soft { background: var(--cool); font-family: "Noto Sans SC", sans-serif; font-size: 16px; font-weight: 700; color: var(--muted); }
.key.go { background: var(--orange); border: 0; color: #FFFFFF; font-family: "Noto Sans SC", sans-serif; font-size: 17px; font-weight: 700; }
.night .key { background: var(--navy-2); border: 0; color: #FFFFFF; }
.night .key.soft { background: #2B3D66; color: #C9D6EE; }
.night .key.go { background: var(--sun); color: var(--navy); }
.grid-arr { display: grid; gap: 4px; }
.grid-arr i { width: 30px; height: 30px; border-radius: 6px; background: var(--blue); display: block; }
.rowsum { font-size: 13px; color: var(--blue-2); }

/* 地图和卡片 */
.hero { padding: 6px 16px 0; }
.hero h1 { margin: 0; font-size: 30px; font-weight: 400; }
.cards { display: flex; flex-direction: column; gap: 12px; margin: 16px 16px 0; }
.card { display: flex; align-items: center; gap: 14px; background: #FFFFFF; border: 2px solid var(--line); border-radius: 22px; padding: 14px; text-align: left; width: 100%; }
.card.now { border-color: var(--orange); }
.card.locked { opacity: .55; }
.card .badge { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.card.now .badge { background: var(--orange); border: 4px solid var(--sun); }
.card.locked .badge { background: #FFFFFF; border: 3px dashed #A9C3F7; color: var(--muted); }
.card .info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.card .info b { font-size: 17px; }
.card .stars { color: #B7791F; letter-spacing: 2px; font-size: 15px; }
.big { display: flex; flex-direction: column; gap: 8px; border-radius: 26px; padding: 20px; text-align: left; border: 0; width: 100%; color: #FFFFFF; }
.big b { font-size: 26px; font-family: "ZCOOL KuaiLe", sans-serif; font-weight: 400; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 20px; border-radius: 18px; border: 0; background: var(--orange); color: #FFFFFF; font-size: 18px; font-weight: 700; width: 100%; }
.btn.ghost { background: #FFFFFF; color: var(--blue-2); border: 2px solid var(--line); }
.btn.sm { min-height: 44px; font-size: 15px; width: auto; flex: none; white-space: nowrap; }
.row { display: flex; gap: 10px; }
.panel { margin: 12px 16px 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.panel h3 { margin: 0 0 8px; font-size: 16px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; font-size: 14px; }
.seg button.on { background: var(--blue); color: #FFFFFF; border-color: var(--blue); }
.boat { position: relative; height: 52px; border-radius: 26px; background: #9CCBF5; margin-top: 6px; }
.boat .hull { position: absolute; top: 4px; width: 64px; height: 44px; transition: left .4s; }
.boat .flag { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.hp { height: 16px; border-radius: 8px; background: var(--navy-2); overflow: hidden; }
.hp i { display: block; height: 16px; border-radius: 8px; background: #D93D42; transition: width .3s; }
.timer { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--sun); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.crab { position: relative; width: 180px; height: 120px; flex: none; }
.crab .body { position: absolute; left: 22px; top: 34px; width: 136px; height: 86px; border-radius: 50% 50% 44% 44%; background: #D93D42; }
.crab .cl { position: absolute; top: 0; width: 52px; height: 44px; background: #D93D42; }
.crab .cl.l { left: 0; border-radius: 50% 50% 10% 50%; transform: rotate(-18deg); }
.crab .cl.r { right: 0; border-radius: 50% 50% 50% 10%; transform: rotate(18deg); }
.crab .eye { position: absolute; top: 54px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; }
.crab .eye::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.crab.hit { animation: shake .3s; }
.stars-big { display: flex; justify-content: center; align-items: flex-end; gap: 6px; }
.stars-big svg { width: 80px; height: 80px; }
.stars-big svg.mid { width: 104px; height: 104px; }
.stars-big svg.off path { fill: #3D5FA8; stroke: #5B7BC4; }
.gate { display: flex; gap: 8px; align-items: center; }
.gate input { flex: 1; min-width: 0; width: 100%; min-height: 48px; border-radius: 14px; border: 2px solid var(--line); font-size: 22px; padding: 0 12px; font-family: "Baloo 2", sans-serif; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 3–6 岁：9 个世界的地图 ---------- */
.worlds { display: flex; flex-direction: column; gap: 14px; margin: 14px 16px 0; }
.world { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 12px; }
.world-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.world-h .fun { font-size: 18px; color: var(--blue-2); }
.world-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lvl { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; border: 2px solid var(--line); background: var(--cream); min-height: 96px; }
.lvl b { font-size: 13px; line-height: 1.3; text-align: center; }
.lvl .lvl-n { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.lvl .lvl-n svg { width: 18px; height: 18px; }
.lvl .lvl-s { font-size: 12px; color: #B7791F; letter-spacing: 1px; min-height: 16px; }
.lvl.now { border-color: var(--orange); background: #FFF4EC; }
.lvl.now .lvl-n { background: var(--orange); box-shadow: 0 0 0 3px var(--sun); }
.lvl.locked { opacity: .5; }
.lvl.locked .lvl-n { background: #FFFFFF; border: 2px dashed #A9C3F7; color: var(--muted); }

/* ---------- 新题型 ---------- */
.ans.wide { width: 104px; }
.ans.wide small, .ans small { font-size: 15px; }
.answers.four { gap: 10px; }
.answers.four .ans { width: 76px; height: 84px; border-radius: 22px; }
.seqrow { display: flex; gap: 10px; }
.seqrow .stone { width: 56px; height: 56px; }
.stage.dark .stone { background: #FFFFFF; color: var(--ink); }
.ducks { display: flex; align-items: flex-end; gap: 8px; }
.flag { color: var(--orange); display: flex; align-items: center; margin-right: 2px; }
.duck { position: relative; width: 50px; height: 70px; display: inline-block; }
.duck i { position: absolute; left: 4px; bottom: 0; width: 44px; height: 34px; border-radius: 50% 50% 40% 40%; background: #FFD84D; }
.duck b { position: absolute; left: 14px; bottom: 26px; width: 28px; height: 28px; border-radius: 50%; background: #FFD84D; }
.duck b::after { content: ""; position: absolute; left: -9px; top: 12px; width: 12px; height: 7px; border-radius: 4px; background: #F28C28; }
.duck b::before { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.duck.hat::before { content: ""; position: absolute; left: 18px; top: -2px; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 20px solid var(--orange); z-index: 1; }
.duck em { position: absolute; left: 16px; bottom: -22px; font-style: normal; font-size: 15px; color: var(--blue-2); width: 20px; text-align: center; }
.stage .ducks { padding-bottom: 18px; }
.dotcard { display: grid; grid-template-columns: repeat(3, 14px); gap: 5px; justify-content: center; }
.dotcard i { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); }
.ans.card-dots { height: 110px; gap: 6px; }
.ans.card-dots small { font-size: 16px; color: var(--blue-2); }
.blocks { display: flex; align-items: flex-end; gap: 18px; }
.blocks .seen { display: grid; grid-template-columns: repeat(3, 34px); gap: 5px; }
.blocks i { width: 34px; height: 34px; border-radius: 7px; background: var(--blue); display: block; }
.blocks .cloth { min-width: 110px; min-height: 90px; border-radius: 50px 50px 16px 16px; background: var(--orange); display: flex; flex-wrap: wrap; gap: 5px; align-content: center; justify-content: center; padding: 10px; }
.blocks .cloth b { color: #FFFFFF; font-size: 40px; }
.blocks .cloth.peek { background: #FFE9DA; border: 3px dashed var(--orange); }
.blocks i.hid { background: transparent; border: 3px dashed var(--blue); }
.frame.empty-num span em { font-style: normal; font-size: 15px; color: var(--orange); }
.wide-plate { width: auto; max-width: 300px; border-radius: 40px; gap: 8px; padding: 16px; }
.cookie { width: 40px; height: 40px; border-radius: 50%; background: #C98B4B; border: 3px solid #A26A33; position: relative; display: inline-flex; align-items: center; justify-content: center; }
.cookie.eaten { background: #F1EBDB; border-style: dashed; border-color: #C9B796; }
.cookie.eaten::after { content: ""; position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; }
.cookie em { font-style: normal; color: #FFFFFF; font-size: 16px; }
.goods { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.good { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--cream); border: 2px solid #F3E3B5; border-radius: 18px; padding: 10px 14px; }
.good i { width: 46px; height: 46px; border-radius: 50%; display: block; }
.good b { font-size: 15px; }
.good .price { font-size: 20px; color: #7A4A00; }
.paid { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #E3F5DF; border: 2px solid var(--green); border-radius: 18px; padding: 12px 16px; color: var(--green-ink); }
.paid b { font-size: 28px; }
.coins { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 300px; }
.coin { width: 32px; height: 32px; border-radius: 50%; background: #FFD84D; border: 3px solid #B7791F; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #5C3B00; }
.coin.used { background: #E5E7EB; border-color: #9AA6C0; color: #6B7A99; }
.scene { position: relative; width: 220px; height: 200px; }
.scene .box { position: absolute; left: 75px; top: 70px; width: 70px; height: 60px; border-radius: 8px; background: #C98B4B; border: 3px solid #A26A33; }
.scene .cat { position: absolute; width: 50px; height: 50px; }
.scene .cat i { position: absolute; left: 4px; top: 10px; width: 42px; height: 38px; border-radius: 50%; background: #6B7A99; }
.scene .cat::before, .scene .cat::after { content: ""; position: absolute; top: 2px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 16px solid #6B7A99; }
.scene .cat::before { left: 6px; }
.scene .cat::after { right: 6px; }
.pos-up .cat { left: 85px; top: 14px; }
.pos-down .cat { left: 85px; top: 140px; }
.pos-left .cat { left: 14px; top: 76px; }
.pos-right .cat { left: 156px; top: 76px; }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.pick.four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 260px; }
.pick .pick-btn { width: 100%; height: 104px; border-radius: 24px; }

/* ---------- 其他语言：英文标题用 Baloo，高棉文用 Noto Sans Khmer / Kantumruy Pro ---------- */
.lang-seg { gap: 4px; }
.lang-seg button { min-height: 36px; padding: 0 10px; font-size: 13px; }
.lang-seg button[lang="km"] { font-family: "Noto Sans Khmer", sans-serif; }
.lang-seg button[lang="zh-CN"] { font-family: "Noto Sans SC", sans-serif; }
html[lang="en"] .fun, html[lang="en"] .big b { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; }
html[lang="km"] body, html[lang="km"] .ans small, html[lang="km"] .key.soft, html[lang="km"] .key.go { font-family: "Noto Sans Khmer", "Noto Sans SC", system-ui, sans-serif; }
html[lang="km"] body { line-height: 1.6; }
html[lang="km"] .fun, html[lang="km"] .big b { font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif; font-weight: 700; }

/* ---------- 家庭会员：皇冠、请家长、选方案、开通 ---------- */
.lvl.vip { background: #FFF8E6; border-color: #F3D27A; }
.lvl.vip .lvl-n { background: var(--sun); color: #7A4A00; }
.lvl.vip .lvl-s { color: #7A4A00; letter-spacing: 0; font-weight: 700; }
.card.vip { border-color: #F3D27A; background: #FFF8E6; }
.card.vip .badge { background: var(--sun); color: #7A4A00; }
.card.vip .stars { color: #7A4A00; letter-spacing: 0; font-weight: 700; }
.member-strip { margin: 12px 16px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #FFF8E6; border: 2px solid #F3D27A; border-radius: 18px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: #5C3B00; }
.member-strip > svg { width: 24px; height: 24px; flex: none; color: #B7791F; }
.member-strip span { flex: 1; min-width: 160px; }
.member-strip .btn { background: var(--navy); }
.member-strip.warn { background: #FFF1E6; border-color: #F2A36B; color: #7A2E05; }
.member-strip.ended { background: #FFE9E3; border-color: #E99780; color: #8A2B14; }
.member-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #7A4A00; background: #FFF4D6; border-radius: 999px; padding: 4px 12px 4px 8px; margin-top: 10px; }
.member-chip svg { width: 18px; height: 18px; }
.ask { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 20px 24px; }
.ask-pic { position: relative; margin-top: 20px; }
.ask-crown { position: absolute; right: -6px; top: -4px; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: #7A4A00; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #FFFFFF; }
.ask-crown svg { width: 30px; height: 30px; }
.ask-sub { font-size: 16px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; max-width: 320px; }
.ask-btns { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
.gets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.gets li { display: flex; gap: 8px; align-items: flex-start; }
.gets svg { width: 20px; height: 20px; flex: none; color: var(--green-ink); margin-top: 2px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 16px 0; }
.plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: #FFFFFF; border: 2px solid var(--line); border-radius: 20px; padding: 16px 14px 14px; min-height: 150px; }
.plan b { font-size: 16px; }
.plan-price { font-size: 34px; line-height: 1.1; color: var(--navy); }
.plan-price small { font-size: 14px; color: var(--muted); font-family: inherit; font-weight: 600; margin-left: 2px; }
.plan .small { color: var(--muted); line-height: 1.4; }
.plan.on { border-color: var(--blue); box-shadow: 0 0 0 3px #CFE0FF; }
.plan-tag { position: absolute; top: -11px; right: 12px; background: var(--orange); color: #FFFFFF; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.plan-dot { position: absolute; right: 12px; bottom: 12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.plan.on .plan-dot { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.plan-dot svg { width: 14px; height: 14px; }
.rules p { margin: 0 0 6px; line-height: 1.6; color: var(--muted); }
.rules p:last-child { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.pad.stack { margin-top: 14px; }
.form label, .form .label { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 6px; }
.form label:first-child { margin-top: 0; }
.form input { width: 100%; min-height: 48px; border-radius: 14px; border: 2px solid var(--line); font-size: 17px; padding: 0 12px; font-family: inherit; color: var(--ink); background: #FFFFFF; }
.form input:focus { outline: 3px solid #CFE0FF; border-color: var(--blue); }
.form .seg button { min-width: 52px; }
.ok-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green-ink); display: inline-flex; align-items: center; justify-content: center; }
.ok-mark svg { width: 30px; height: 30px; }
.ok-mark.big { width: 96px; height: 96px; background: var(--green); color: #FFFFFF; }
.ok-mark.big svg { width: 52px; height: 52px; }
.order-no { font-size: 30px; letter-spacing: 1px; color: var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.contact.tg { background: #229ED9; }
.btn.contact.fb { background: #0866FF; }
.demo-hint { color: #7A4A00; background: #FFF4D6; border-radius: 10px; padding: 6px 10px; margin: 8px 0 0; display: inline-block; }
.panel.member h3 { display: flex; align-items: center; gap: 6px; }
.panel.member h3 svg { width: 20px; height: 20px; color: #B7791F; }
.panel.member { border: 2px solid #F3D27A; background: #FFFCF2; }
.panel.member.warn { border-color: #F2A36B; background: #FFF6EE; }
.panel.member.ended { border-color: #E99780; background: #FFF3EF; }
.demo-panel { border-style: dashed; }

/* ---------- 7–12 岁的新题型 ---------- */
.qtext { margin: 10px 16px 0; font-size: 16px; line-height: 1.55; color: var(--ink); font-weight: 600; }
.qtext.big { font-size: 22px; text-align: center; margin-top: 40px; line-height: 1.5; }
.ans-row { gap: 8px; }
.ans-row .pre { font-size: 26px; color: var(--muted); }
.ans-row .unit { font-size: 18px; color: var(--muted); font-family: inherit; font-weight: 700; }
.frac { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; vertical-align: middle; font-size: 26px; }
.frac i { font-style: normal; padding: 0 6px 3px; border-bottom: 3px solid currentColor; }
.frac b { padding: 3px 6px 0; }
.frac .slot { min-width: 48px; height: 44px; font-size: 26px; }
.ans .frac { font-size: 24px; }
.sticks { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; justify-content: center; max-width: 330px; }
.bundle { position: relative; display: inline-flex; gap: 1px; padding-bottom: 16px; }
.bundle i { width: 4px; height: 54px; background: #C98B3B; border-radius: 2px; }
.bundle b { position: absolute; left: -2px; right: -2px; top: 22px; height: 8px; background: #C2410C; border-radius: 4px; }
.bundle em { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 12px; font-style: normal; color: #1E4FB4; }
.stick { width: 4px; height: 54px; background: #C98B3B; border-radius: 2px; margin-bottom: 16px; }
.rooms { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 330px; }
.room { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 6px; border: 2px solid #A9C3F7; border-radius: 10px; background: #FFFFFF; max-width: 90px; }
.room.loose { max-width: 320px; border-style: dashed; }
.room i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.digital { margin: 10px auto 0; font-size: 40px; background: var(--navy); color: #7CF5A8; border-radius: 14px; padding: 2px 20px; letter-spacing: 2px; }
.clockcap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.clockcap b { font-size: 20px; }
.arrow { font-size: 30px; color: var(--muted); }
.meter { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.mstick { height: 28px; width: 100px; background: repeating-linear-gradient(90deg, #FFE9A8 0 10px, #F3D27A 10px 20px); border: 2px solid #B7791F; border-radius: 4px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cmbit { height: 28px; background: #CFE0FF; border: 2px solid var(--blue); border-radius: 4px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.base10 { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; justify-content: center; max-width: 330px; }
.base10 .flat { width: 50px; height: 50px; background-color: #FFB020; background-image: linear-gradient(#C2410C 1px, transparent 1px), linear-gradient(90deg, #C2410C 1px, transparent 1px); background-size: 5px 5px; border: 1px solid #C2410C; }
.base10 .rod { width: 6px; height: 50px; background-color: #7CC573; background-image: linear-gradient(#1F5C2C 1px, transparent 1px); background-size: 6px 5px; border: 1px solid #1F5C2C; }
.base10 .gap { width: 10px; }
.base10 .cubes { display: inline-grid; grid-template-columns: repeat(3, 8px); gap: 2px; }
.base10 .cubes i { width: 8px; height: 8px; background: #2457C5; }
.vert { display: inline-flex; flex-direction: column; align-items: flex-end; font-size: 34px; line-height: 1.15; }
.vrow { display: grid; grid-template-columns: 30px repeat(3, 30px); text-align: center; }
.vrow.cols { font-size: 13px; color: var(--muted); font-family: inherit; font-weight: 700; }
.vrow.ans { display: flex; justify-content: flex-end; margin-top: 6px; }
.vop { color: var(--orange); }
.vline { width: 120px; border-top: 3px solid var(--ink); margin-top: 4px; }
.areamodel { display: flex; flex-direction: column; align-items: flex-end; }
.am-top { display: flex; font-size: 18px; color: var(--muted); }
.am-top span { text-align: center; }
.am-body { display: flex; align-items: stretch; height: 80px; }
.am-side { width: 30px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); }
.am-a, .am-b { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; border: 2px solid var(--ink); }
.am-a { background: #CFE0FF; }
.am-b { background: #FFE0C2; border-left: 0; min-width: 44px; }
.bottles { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.brow { display: flex; gap: 4px; padding: 4px 8px; border-radius: 8px; background: #FFFFFF; }
.brow.wrap { flex-wrap: wrap; max-width: 300px; justify-content: center; }
.brow.left { background: #FFE9E3; border: 2px dashed #E99780; }
.brow i { width: 10px; height: 22px; border-radius: 4px 4px 3px 3px; background: #2457C5; }
.strip { display: grid; height: 54px; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; }
.strip i { position: relative; border-right: 2px solid var(--ink); background: #FFFFFF; }
.strip i:last-child { border-right: 0; }
.strip em { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-size: 11px; font-style: normal; }
.fcol { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 34px; }
.hgrid { display: grid; grid-template-columns: repeat(10, 18px); grid-auto-flow: column; grid-template-rows: repeat(10, 18px); gap: 2px; padding: 4px; background: #17233F; border-radius: 6px; }
.hgrid i { background: #FFFFFF; }
.hgrid i.on { background: #FFB020; }
.tag-price { display: flex; align-items: center; gap: 14px; font-size: 40px; }
.tag-price s { color: var(--muted); }
.tag-price .off { background: var(--orange); color: #FFFFFF; border-radius: 12px; padding: 0 12px; font-size: 30px; }
.fx { font-size: 30px; color: var(--navy); }
.scale { position: relative; width: 300px; height: 130px; }
.scale .pans { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; }
.scale .pan { width: 120px; min-height: 56px; border-bottom: 6px solid #6B7A99; border-radius: 0 0 40px 40px; display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.scale .beam { position: absolute; top: 62px; left: 50px; right: 50px; height: 6px; background: #6B7A99; border-radius: 3px; }
.scale .post { position: absolute; top: 62px; left: 145px; width: 10px; height: 66px; background: #6B7A99; border-radius: 3px; }
.qbox { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--sun); color: #7A4A00; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; }
.wt { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; background: var(--navy); color: #FFFFFF; font-size: 20px; }
.wt.big { font-size: 26px; min-width: 52px; height: 44px; }
.towers { position: relative; display: flex; gap: 16px; align-items: flex-end; justify-content: center; padding-top: 20px; }
.tower { position: relative; display: flex; flex-direction: column-reverse; gap: 2px; }
.tower i { width: 34px; height: 16px; background: #FFB020; border: 1px solid #C2410C; border-radius: 3px; }
.tower em { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 14px; }
.meanline { position: absolute; left: -6px; right: -6px; border-top: 3px dashed #C2410C; }

/* ---------- 地图上的全部 30 关 ---------- */
.world-row.full { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lvl.t { position: relative; min-height: 78px; padding: 6px 2px; gap: 3px; border-radius: 14px; }
.lvl.t b { font-size: 11px; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.lvl.t .lvl-n { width: 30px; height: 30px; font-size: 15px; }
.lvl.t .lvl-s { font-size: 10px; min-height: 12px; }
.lvl.dsg { background: #FFFFFF; border: 1.5px dashed #C9D6EE; }
.lvl.dsg .lvl-n { background: #EEF1F7; color: var(--muted); }
.lvl.dsg b { font-weight: 600; color: var(--muted); }
.mini-crown { position: absolute; top: 3px; right: 4px; color: #B7791F; }
.mini-crown svg { width: 13px; height: 13px; }
.legend { margin: 10px 16px 0; display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.legend .sw-built { background: var(--cream); border: 2px solid var(--line); }
.legend .sw-dsg { background: #FFFFFF; border: 1.5px dashed #C9D6EE; }
.design-card .dc-head { display: flex; gap: 12px; align-items: center; }
.design-card .dc-no { width: 54px; height: 54px; border-radius: 50%; background: #EEF1F7; color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; border: 2px dashed #C9D6EE; }
.design-card .dc-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.design-card .dc-text { margin: 0; font-size: 16px; line-height: 1.7; }

/* ---------- 窄手机（320–360 像素宽）：图跟着缩，不出框 ---------- */
svg.fit { width: 100%; max-width: 340px; height: auto; }
.pick-btn svg, .ans svg { max-width: 100%; height: auto; }
.stage > * { max-width: 100%; }
@media (max-width: 360px) {
  .stage { margin: 12px 12px 0; padding: 12px; }
  .plates { gap: 6px; }
  .plate { width: 104px; padding: 10px 6px; zoom: .85; }
  .ducks { zoom: .8; }
  .answers { gap: 10px; margin: 18px 12px 0; }
  .ans { width: 84px; height: 84px; font-size: 38px; }
  .keys { margin-left: 12px; margin-right: 12px; }
  .world { padding: 10px 8px; }
  .world-row.full { gap: 4px; }
  .lvl.t { padding: 5px 1px; }
  .lvl.t b { font-size: 10px; }
}

/* ---------- 正式版：谁在玩、登录、孩子们、周报、断网提示 ---------- */
.who { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.who-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; }
.auth-tabs { width: 100%; }
.auth-tabs button { flex: 1; }
.kid-row { justify-content: space-between; }
.big.kid b { font-size: 30px; }
.wk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wk-grid div { background: #EAF1FF; border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.wk-grid b { font-size: 26px; color: #1E4FB4; line-height: 1.1; }
.sync-note { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 50; max-width: 400px; width: calc(100% - 24px);
  background: #17233F; color: #FFFFFF; border-radius: 14px; padding: 10px 14px; font-size: 13px; line-height: 1.5; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ---------- 3–6 岁通用题（kind "kid"） ---------- */
.kstage { overflow: hidden; }
.kstage.covered > *:not(.kagain) { visibility: hidden; }
.kstage.covered { background: #DDEBFF; }
.kgroup { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.kgroup.grid { display: grid; grid-template-columns: repeat(5, auto); gap: 6px; }
.kgroup.pile { gap: 0; max-width: 140px; }
.kgroup.pile .kit { transform: rotate(var(--r)); margin: -6px -4px; }
.kgroup.scatter { position: relative; display: block; width: 100%; height: 190px; }
.kgroup.scatter.tall { height: 250px; }
.kgroup.scatter .kit { position: absolute; transform: translate(-50%, -50%); }
.kit { position: relative; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: none; border: 0; padding: 0; line-height: 1; transition: transform .15s, opacity .2s; }
button.kit { cursor: pointer; }
button.kit:active { transform: scale(.92); }
.kgroup.scatter button.kit:active { transform: translate(-50%, -50%) scale(.92); }
.kit .emo { font-size: 38px; }
.kit .num { position: absolute; right: -4px; top: -6px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--blue); color: #FFFFFF; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 14px; font-style: normal; display: flex; align-items: center; justify-content: center; }
.kit.lit { animation: kpop .4s; filter: drop-shadow(0 0 8px #FFC845); }
.kit.got { opacity: .25; }
.kit.found { background: var(--green-bg); }
.kit.found .num { background: var(--green-ink); }
.kit.glow { background: var(--hint-bg); box-shadow: 0 0 0 3px var(--orange); }
@keyframes kpop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
.kgroup.scatter .kit.lit { animation: none; }
.ksides { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.kside { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; background: rgba(255,255,255,.55); border-radius: 20px; padding: 10px 4px; }
.kside .kit { width: 40px; height: 44px; }
.kside .kit .emo { font-size: 30px; }
.kvs { color: var(--muted); font-weight: 800; }
.kagain { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dice { display: grid; grid-template-columns: repeat(3, 26px); grid-template-rows: repeat(3, 26px); gap: 8px; padding: 16px; background: #FFFFFF; border-radius: 22px; border: 3px solid #C9D6EE; box-shadow: 0 6px 0 #C9D6EE; }
.dice i { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); }
.stairs { display: flex; align-items: flex-end; gap: 3px; height: 200px; width: 100%; max-width: 330px; }
.stairs span { flex: 1 1 0; position: relative; background: #C8A66A; border-radius: 6px 6px 0 0; border-top: 4px solid #8D6B33; display: flex; justify-content: center; }
.stairs .ele-on { position: absolute; bottom: 100%; font-size: 30px; line-height: 1; }
.stairs .num { position: absolute; top: 4px; font-family: "Baloo 2", sans-serif; font-weight: 800; font-style: normal; font-size: 13px; color: #FFFFFF; }
.kbasket { position: relative; display: flex; align-items: center; justify-content: center; }
.kbasket .num { position: absolute; bottom: 4px; background: var(--navy); color: #FFFFFF; border-radius: 12px; padding: 0 10px; font-family: "Baloo 2", sans-serif; font-size: 22px; }
.kcollect { gap: 16px; }
.kto { width: 100%; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.6); border-radius: 20px; padding: 8px 10px; min-height: 70px; }
.kto-e { font-size: 48px; flex: 0 0 auto; }
.kto .kgroup { justify-content: flex-start; flex: 1 1 auto; }
.kto .kit { width: 38px; height: 40px; }
.kto .kit .emo { font-size: 28px; }
.kmini .kgroup { gap: 1px; grid-template-columns: repeat(4, auto); }
.kmini .kit { width: 20px; height: 20px; }
.kmini .kit .emo { font-size: 17px; }
.ans.card-dots .kmini { display: flex; justify-content: center; }
.kseq { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 360px) {
  .kit { width: 44px; height: 44px; }
  .kit .emo { font-size: 32px; }
  .kside .kit { width: 32px; height: 38px; }
  .kside .kit .emo { font-size: 25px; }
  .stairs { height: 170px; }
}

/* 世界 2、3 的画：形状、拼图、绳子、杯子、跷跷板 */
.kit { width: auto; height: auto; min-width: 52px; min-height: 52px; }
.kmini .kit, .kside .kit, .kto .kit { min-width: 0; min-height: 0; }
.kit.art { padding: 4px; }
.kit.ref { outline: 3px dashed #9AA6C0; outline-offset: 2px; border-radius: 12px; }
button.kit.pickme { background: rgba(255,255,255,.7); border: 3px solid #D5E2FA; border-radius: 18px; padding: 6px; }
button.kit.pickme.right { background: var(--green); border-color: #3F8F38; }
button.kit.pickme.wrong { background: var(--red-bg); border-color: #E39A86; animation: shake .35s; }
.kgroup.ground { align-items: flex-end; gap: 12px; border-bottom: 4px solid #8DBE7F; padding: 0 8px 2px; flex-wrap: nowrap; }
.kgroup.col { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
.kgroup.line { justify-content: flex-start; flex-wrap: nowrap; gap: 0; width: 100%; }
.kgroup.line .kit { min-width: 0; width: 34px; }
.kgroup.line .kit .emo { font-size: 30px; }
.kgroup.seq { gap: 4px; align-items: center; }
.kgroup.seq .kit { min-width: 44px; }
.kq { width: 44px; height: 44px; border-radius: 12px; border: 3px dashed var(--orange); color: var(--orange); background: var(--hint-bg); display: flex; align-items: center; justify-content: center; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 26px; }
.kshape { display: block; overflow: visible; }
.kpeek { position: relative; display: inline-block; }
.kpeek i { position: absolute; background: #8DBE7F; border-radius: 18px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.08); }
.kpeek.left i { left: -8px; top: -8px; bottom: -8px; width: 58%; }
.kpeek.right i { right: -8px; top: -8px; bottom: -8px; width: 58%; }
.kpeek.top i { left: -8px; right: -8px; top: -8px; height: 58%; }
.kbox { display: block; border-radius: 4px; }
.kcut { position: relative; display: inline-block; }
.kscis { position: absolute; right: -14px; top: -10px; font-size: 26px; }
.kpair { display: inline-flex; gap: 6px; align-items: center; }
.kbar { display: block; height: 16px; border-radius: 8px; background: var(--c); max-width: 100%; }
.kbar.rope { height: 12px; background: repeating-linear-gradient(115deg, var(--c) 0 8px, rgba(255,255,255,.35) 8px 10px), var(--c); }
.kbar.pencil { height: 18px; border-radius: 3px 0 0 3px; position: relative; margin-right: 18px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.kbar.pencil::after { content: ""; position: absolute; right: -18px; top: 0; border-left: 18px solid #E8C9A0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.kvbar { display: block; width: 30px; border-radius: 8px 8px 2px 2px; }
.ktower { display: flex; flex-direction: column-reverse; gap: 2px; }
.ktower i { display: block; width: 30px; height: 14px; border-radius: 3px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.kcup { display: flex; align-items: flex-end; border: 3px solid #6B7A99; border-top: 0; border-radius: 0 0 10px 10px; background: rgba(255,255,255,.6); overflow: hidden; }
.kcup i { display: block; width: 100%; background: #7DB7F0; }
.kseesaw { position: relative; display: block; width: 220px; height: 96px; }
.kseesaw .plank { position: absolute; left: 0; right: 0; top: 46px; height: 10px; background: #8D6B33; border-radius: 5px; display: flex; justify-content: space-between; transition: transform .3s; }
.kseesaw .plank.l { transform: rotate(-13deg); }
.kseesaw .plank.r { transform: rotate(13deg); }
.kseesaw .plank b { font-size: 38px; line-height: 1; margin-top: -40px; font-weight: 400; }
.kseesaw .pivot { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 38px solid #C2410C; }
.kmeasure { display: flex; flex-direction: column; gap: 6px; }
.kmeasure .clips { display: flex; }
.kmeasure .clips span { position: relative; width: 28px; font-size: 24px; text-align: center; line-height: 1.1; }
.kmeasure .clips .num { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); right: auto; }
.kdot { display: block; width: 26px; height: 12px; border-radius: 6px; margin-bottom: 2px; }
.ans.card-dots .kshape, .ans.card-dots .kpic { max-width: 84px; height: auto; }
@media (max-width: 360px) {
  .kseesaw { width: 190px; }
  .kgroup.ground { gap: 6px; }
}
.kside .kgroup.grid { grid-template-columns: repeat(3, auto); gap: 2px; }
@media (max-width: 360px) {
  .ans.card-dots { height: 100px; }
  .kmini .kit { width: 16px; height: 16px; }
  .kmini .kit .emo { font-size: 14px; }
  .ans.card-dots .kshape, .ans.card-dots .kpic { max-width: 68px; max-height: 68px; }
}
.kbar.tagged { height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.kbar.tagged b { font-size: 26px; font-weight: 400; line-height: 1; }
.kgroup.col .kit { min-height: 0; padding: 0; }

/* 家长页：每个世界一行，30 关用小方块 */
.lrow { padding: 8px 0; border-bottom: 1px solid #EEF1F7; font-size: 14px; }
.lrow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lrow-head > span:first-child { min-width: 0; }
.lrow-sum { color: #8A5A00; font-size: 13px; white-space: nowrap; }
.lrow-cells { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; margin-top: 6px; max-width: 330px; }
.lrow-cells i { display: block; aspect-ratio: 1; border-radius: 3px; background: #EEF1F7; }
.lrow-cells i.s1 { background: #FBE3A6; }
.lrow-cells i.s2 { background: #F3C04F; }
.lrow-cells i.s3 { background: #D99A0B; }

/* 我的小岛 */
.chip-btn { border: 0; cursor: pointer; font: inherit; }
.isle-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #2E9E5B; }
.isle-btn .small { opacity: .9; font-weight: 500; }
.isle-scene { position: relative; margin: 12px 16px 0; height: 230px; border-radius: 28px; background: linear-gradient(#BFE3FF, #7DB7F0); overflow: hidden; }
.isle-sand { position: absolute; left: 8%; right: 8%; top: 22%; bottom: 8%; border-radius: 50%; background: radial-gradient(#F7E3A1 60%, #E8C873); box-shadow: 0 0 0 10px rgba(255,255,255,.35); }
.isle-ele { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); }
.isle-it { position: absolute; transform: translate(-50%, -50%); font-size: 34px; line-height: 1; }
.isle-shop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.isle-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 20px; background: #FFFFFF; border: 3px solid #E3E8F2; font: inherit; color: var(--ink); cursor: pointer; text-align: center; }
.isle-card .isle-e { font-size: 34px; line-height: 1.1; }
.isle-card b { font-size: 15px; }
.isle-card .small { color: var(--muted); }
.isle-card.can { border-color: #7CC573; }
.isle-card.can .small { color: var(--green-ink); font-weight: 700; }
.isle-card.have { background: var(--green-bg); border-color: transparent; cursor: default; }
.isle-voucher { margin-top: 16px; }
.isle-bar { height: 12px; border-radius: 6px; background: #EEF1F7; overflow: hidden; }
.isle-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFC845, #D99A0B); }

/* 世界 1–3：数字按钮下面的小圆点（5 个一行） */
.ans.dotted { gap: 4px; line-height: 1; }
.ndots { display: grid; grid-template-columns: repeat(5, 7px); gap: 3px; justify-content: center; }
.ndots i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.ans.right .ndots i { background: #FFFFFF; }
