/* 数感小镇 —— 糖系暖色儿童界面 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffeef1 0%, #fff7e0 100%);
  color: #5b4a4f;
  overflow: hidden;
  user-select: none;
}
button { font-family: inherit; border: none; cursor: pointer; touch-action: manipulation; }
.hidden { display: none !important; }

#app { height: 100%; position: relative; }
.screen { display: none; height: 100%; flex-direction: column; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto; }
.screen.active { display: flex; }

/* ---------- 启动页 ---------- */
#scrBoot { align-items: center; justify-content: center; text-align: center; }
.boot-sun { font-size: 64px; animation: bob 2.4s ease-in-out infinite; }
.boot-sun .asset-icon { width: 84px; height: 84px; }
.boot-title { font-size: 44px; margin: 8px 0 4px; color: #e46a8b; letter-spacing: 6px; }
.boot-sub { font-size: 18px; color: #a98a94; margin: 0 0 30px; }
.big-btn {
  min-height: 76px; min-width: 240px; padding: 0 34px; border-radius: 38px;
  font-size: 24px; font-weight: 700; color: #fff; letter-spacing: 2px;
  background: linear-gradient(180deg, #ff9db4, #f96f92);
  box-shadow: 0 6px 0 #d95576, 0 10px 18px rgba(233, 100, 130, .35);
}
.big-btn.small { min-height: 60px; min-width: 190px; font-size: 19px; margin: 8px 6px 0; }
.big-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #d95576; }
.small-btn {
  min-height: 48px; padding: 0 18px; border-radius: 24px; font-size: 15px; color: #7a5560;
  background: #fff; box-shadow: 0 3px 0 #e8cdd4;
}
.small-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #e8cdd4; }
.small-btn.danger { color: #d24b62; }

/* ---------- 顶栏 ---------- */
.hud { display: flex; align-items: center; gap: 8px; padding: 6px 2px 10px; }
.hud-chip {
  background: #fff; border-radius: 20px; padding: 8px 14px; font-size: 15px; font-weight: 700;
  color: #b06a7d; box-shadow: 0 2px 6px rgba(214, 148, 165, .25);
}
.parent-btn {
  margin-left: auto; width: 48px; height: 48px; border-radius: 50%; font-size: 22px;
  background: #fff; box-shadow: 0 2px 6px rgba(214, 148, 165, .25); opacity: .85;
}
.sub-hud { display: flex; align-items: center; gap: 12px; padding: 4px 2px 10px; }
.sub-hud h2 { font-size: 21px; margin: 0; color: #c25f7c; }
.back-btn, .speak-btn {
  width: 56px; height: 56px; border-radius: 18px; font-size: 24px; background: #fff;
  box-shadow: 0 3px 0 #e8cdd4; flex: none;
}
.speak-btn { margin-left: auto; }

/* ---------- 小镇 ---------- */
.decor-strip { display: flex; gap: 6px; min-height: 34px; font-size: 24px; padding: 2px 4px; flex-wrap: wrap; }
.decor-strip span { animation: pop-in .6s ease; }
.town-sky {
  position: relative; border-radius: 26px; padding: 14px; text-align: center;
  background: linear-gradient(180deg, #cdeeff, #e8f9ff 70%, #fff3d9);
  background-image: url(../assets/town-banner.webp), linear-gradient(180deg, #cdeeff, #e8f9ff 70%, #fff3d9);
  background-size: cover, cover;
  background-position: center 6%, center;
  box-shadow: inset 0 0 0 4px #ffffffaa; margin-bottom: 12px; overflow: hidden;
}
.town-cloud { position: absolute; font-size: 34px; opacity: .8; animation: drift 9s linear infinite; }
.town-cloud.c1 { top: 6px; left: 4%; }
.town-cloud.c2 { top: 30px; right: 6%; animation-duration: 13s; }
.daily-btn {
  min-height: 70px; min-width: 70%; border-radius: 35px; font-size: 22px; font-weight: 800; color: #8a5a00;
  background: linear-gradient(180deg, #ffe08a, #ffc94d); box-shadow: 0 5px 0 #e8a62e;
}
.daily-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #e8a62e; }
.street { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.street2 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 12px; }
.place-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 10px;
  border-radius: 22px; background: #fff; box-shadow: 0 4px 0 #f0d9de;
  font-size: 44px; color: #8a6470;
}
.place-card span { font-size: 15px; font-weight: 700; }
.place-card:active { transform: translateY(3px); box-shadow: 0 1px 0 #f0d9de; }
.place-card.house { background: #fff4dc; }
.place-card.tower { background: #efe4ff; }
.place-progress { font-size: 13px; color: #c98fa0; letter-spacing: 2px; }

/* ---------- 关卡选择 ---------- */
.stage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; padding-top: 8px; }
.stage-btn {
  min-height: 96px; border-radius: 24px; background: #fff; box-shadow: 0 4px 0 #f0d9de;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.stage-btn b { font-size: 22px; color: #d9668a; }
.stage-btn span { font-size: 13px; color: #b58e9a; }
.stage-btn.locked { background: #f1e8ea; color: #c4b0b6; box-shadow: 0 3px 0 #ddd0d4; }
.stage-btn:active:not(.locked) { transform: translateY(3px); }
.stage-btn.done { background: #fff8e0; }

/* ---------- 游戏区 ---------- */
.g-dots { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 auto; }
.g-dots i { width: 15px; height: 15px; border-radius: 50%; background: #ffffff; box-shadow: inset 0 0 0 2px #eeccd4; }
.g-dots i.ok { background: #7ed491; box-shadow: none; }
.g-dots i.no { background: #f3b0af; box-shadow: none; }
.g-dots i.cur { background: #ffd35e; box-shadow: inset 0 0 0 2px #eab83e; }
.g-prompt {
  background: #fff; border-radius: 24px; padding: 16px 20px; font-size: 21px; font-weight: 700;
  color: #6d5560; text-align: center; margin: 6px 0 12px; box-shadow: 0 3px 10px rgba(214, 148, 165, .2);
  min-height: 60px; display: flex; align-items: center; justify-content: center;
}
.g-box {
  flex: 1; background: rgba(255, 255, 255, .75); border-radius: 26px; padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  position: relative; min-height: 300px;
}
.g-box.locked { pointer-events: none; }

/* 通用选项按钮 */
.opt-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.opt-btn {
  min-width: 88px; min-height: 88px; border-radius: 24px; font-size: 38px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #8fd0ff, #56aef5); box-shadow: 0 5px 0 #3d8fd2;
}
.opt-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #3d8fd2; }
.opt-btn.wrong { background: #d8d2d4; box-shadow: 0 3px 0 #b9b0b3; animation: shake .4s; }
.opt-btn.green { background: linear-gradient(180deg, #93e2a4, #57c76e); box-shadow: 0 5px 0 #3ea455; }
.opt-btn.pink { background: linear-gradient(180deg, #ffb1c4, #ff7fa0); box-shadow: 0 5px 0 #e26286; }
.opt-btn.gold { background: linear-gradient(180deg, #ffd97a, #ffb943); box-shadow: 0 5px 0 #e09a28; }

/* 喂喂小动物 */
.feed-scene { display: flex; align-items: center; justify-content: center; gap: 22px; padding-top: 26px; }
.feed-animal { font-size: 84px; position: relative; }
.feed-bubble {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px;
  white-space: nowrap; background: #fff; border-radius: 16px; padding: 6px 14px;
  font-size: 24px; font-weight: 800; color: #d9668a; box-shadow: 0 3px 8px rgba(0,0,0,.12);
}
.feed-count { font-size: 30px; font-weight: 800; color: #57a05e; min-width: 60px; text-align: center; }
.candy-tray { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 620px; }
.candy { font-size: 40px; background: #fff; border-radius: 16px; padding: 8px 10px; box-shadow: 0 3px 0 #f0d9de; }
.candy.fed { opacity: 0; transform: scale(.3) translateY(-70px); transition: all .5s ease; pointer-events: none; }
.submit-btn {
  min-height: 64px; min-width: 180px; border-radius: 32px; font-size: 20px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #93e2a4, #57c76e); box-shadow: 0 5px 0 #3ea455;
}

/* 哪边多 */
.compare-row { display: flex; gap: 18px; align-items: stretch; }
.compare-side {
  min-width: 150px; min-height: 220px; border-radius: 24px; background: #fff; box-shadow: 0 4px 0 #f0d9de;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px;
}
.compare-side .items { font-size: 30px; line-height: 1.5; max-width: 200px; text-align: center; }
.compare-mid { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.compare-equal {
  min-height: 70px; min-width: 90px; border-radius: 20px; font-size: 16px; font-weight: 700; color: #7a5560;
  background: #fff; box-shadow: 0 4px 0 #f0d9de;
}

/* 神奇泡泡 */
.magic-bubble {
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffffcc, #bde9ff88 45%, #8fd0ff99);
  box-shadow: inset 0 0 24px #ffffff, 0 8px 20px rgba(120, 190, 240, .35);
  display: flex; align-items: center; justify-content: center; font-size: 44px; letter-spacing: 3px;
  animation: bob 2s ease-in-out infinite;
}
.magic-bubble.gone { visibility: hidden; animation: none; }

/* 分糖果 */
.split-total { font-size: 38px; letter-spacing: 4px; }
.plates { display: flex; gap: 26px; }
.plate { min-width: 150px; min-height: 130px; border-radius: 50%/38%; background: #fff; box-shadow: 0 4px 0 #f0d9de;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding: 12px; font-size: 26px; gap: 2px; }
.plate .q-mark { font-size: 40px; color: #e0a3b3; font-weight: 800; }

/* 小火车 */
.train-engine { font-size: 64px; }
.train-car { font-size: 40px; background: #fff; border-radius: 18px; padding: 10px 16px; box-shadow: 0 4px 0 #f0d9de; min-height: 74px; min-width: 120px; }
.train-car.in { animation: pop-in .6s ease; }
.train-num { font-size: 26px; font-weight: 800; color: #6d5560; background: #fff; border-radius: 14px; padding: 6px 14px; }

/* 串珠珠 */
.bead-string { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bead { font-size: 44px; }
.bead-hole { width: 62px; height: 62px; border-radius: 50%; border: 4px dashed #e0a3b3; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #e0a3b3; }
.bead-string .opt-btn { min-width: 74px; min-height: 74px; font-size: 36px; border-radius: 50%; }

/* ---------- 小屋 ---------- */
.house-room {
  border-radius: 26px; min-height: 250px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; position: relative; padding: 18px; margin-bottom: 12px;
}
.room-default { background: linear-gradient(180deg, #fff3e0, #ffe3ec); box-shadow: inset 0 0 0 4px #ffffffaa; }
.room-spring {
  background-image: url(../assets/room-spring.webp), linear-gradient(180deg, #ffe4f1, #e9ffe4);
  background-size: cover, cover; background-position: center, center;
}
.room-ocean {
  background-image: url(../assets/room-ocean.webp), linear-gradient(180deg, #d8f3ff, #d0f0ff);
  background-size: cover, cover; background-position: center, center;
}
.room-night {
  background-image: url(../assets/room-night.webp), linear-gradient(180deg, #3d3a66, #6d5a8e);
  background-size: cover, cover; background-position: center, center;
}
.room-night .pet-caption { color: #ffe9b8; }
.pet-view { font-size: 96px; animation: bob 2.6s ease-in-out infinite; position: relative; }
.pet-view .asset-icon { width: 150px; height: 150px; }
.pet-hat { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: 44px; }
.pet-caption { font-size: 16px; color: #a98a94; }
.feed-btn {
  min-height: 58px; padding: 0 24px; border-radius: 29px; font-size: 17px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #ff9db4, #f96f92); box-shadow: 0 4px 0 #d95576;
}
.feed-btn:disabled { background: #dcd2d5; box-shadow: 0 3px 0 #c4b8bc; }
.shop-title { margin: 6px 4px; font-size: 17px; color: #c25f7c; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.shop-item {
  border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #f0d9de; min-height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.shop-item .e { font-size: 34px; }
.shop-item .n { font-size: 13px; color: #8a6470; font-weight: 700; }
.shop-item .c { font-size: 12px; color: #e0a12e; font-weight: 700; }
.shop-item.owned { background: #eafaf0; }
.shop-item.worn { outline: 4px solid #ffd35e; }
.house-decors { position: absolute; top: 10px; right: 14px; font-size: 26px; display: flex; gap: 6px; }

/* ---------- 家长中心 ---------- */
.tabs { display: flex; gap: 8px; padding-bottom: 10px; flex-wrap: wrap; }
.tab-btn {
  min-height: 44px; padding: 0 16px; border-radius: 22px; background: #fff; color: #8a6470;
  font-size: 15px; font-weight: 700; box-shadow: 0 2px 0 #e8cdd4;
}
.tab-btn.active { background: #f96f92; color: #fff; box-shadow: 0 3px 0 #d95576; }
.pane { display: none; flex-direction: column; gap: 12px; }
.pane.active { display: flex; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.stat-card { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-card b { font-size: 22px; color: #d9668a; }
.stat-card span { font-size: 13px; color: #a98a94; }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item { background: #fff; border-radius: 14px; padding: 10px 14px; font-size: 14px; color: #6d5560; display: flex; justify-content: space-between; }
#radarCanvas { width: 100%; max-width: 520px; align-self: center; background: #fff; border-radius: 20px; }
.radar-tip { font-size: 13px; color: #a98a94; text-align: center; margin: 4px 0 0; }
.mistake-list { display: flex; flex-direction: column; gap: 8px; }
.mistake-item { background: #fff; border-radius: 14px; padding: 10px 14px; font-size: 14px; color: #6d5560; display: flex; justify-content: space-between; gap: 10px; }
.mistake-item .due { color: #e0a12e; font-weight: 700; white-space: nowrap; }
.set-row { background: #fff; border-radius: 16px; padding: 12px 16px; font-size: 15px; color: #6d5560; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.set-row input[type="number"] { width: 90px; height: 40px; border: 2px solid #f0d9de; border-radius: 10px; font-size: 16px; padding: 0 8px; }
.set-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 覆盖层 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(91, 74, 79, .45); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.end-card, .rest-card, .gate-card {
  background: #fff; border-radius: 28px; padding: 28px 26px; text-align: center; max-width: 400px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.fb-icon { font-size: 84px; animation: pop-in .5s ease; }
.end-stars { font-size: 44px; letter-spacing: 6px; }
.end-text { font-size: 20px; font-weight: 700; color: #6d5560; margin-bottom: 10px; }
.rest-icon { font-size: 72px; }
.rest-card p { font-size: 18px; color: #6d5560; line-height: 1.7; margin: 6px 0 10px; }
.gate-card h3 { margin: 0; color: #c25f7c; }
.gate-q { font-size: 26px; font-weight: 800; color: #6d5560; margin: 8px 0; }
.gate-input { width: 140px; height: 56px; border: 3px solid #f0d9de; border-radius: 14px; font-size: 24px; text-align: center; }
.gate-btns { display: flex; gap: 12px; margin-top: 10px; align-items: center; }
#ovFeed { background: transparent; pointer-events: none; }
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 60;
  background: rgba(91, 74, 79, .88); color: #fff; border-radius: 22px; padding: 12px 22px;
  font-size: 16px; font-weight: 700; animation: pop-in .3s ease; max-width: 86%; text-align: center;
}
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.fx-star { position: absolute; top: -40px; font-size: 26px; animation: fall 1.3s ease-in forwards; }

/* ---------- 动画 ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(60px); } }
@keyframes pop-in { 0% { transform: scale(.4); opacity: 0; } 80% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes fall { to { transform: translateY(110vh) rotate(320deg); opacity: .6; } }

/* 平板横屏优化 */
@media (min-width: 700px) {
  .street, .street2 { grid-template-columns: repeat(4, 1fr); }
  .g-box { min-height: 380px; }
  .boot-title { font-size: 56px; }
}

/* ---------- 美术资产（图片加载成功前显示 emoji，失败永不破界面） ---------- */
.asset-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.asset-emoji { line-height: 1; }
.asset-img { display: none; width: 100%; height: 100%; object-fit: contain; }
.asset-icon.has-img .asset-img { display: block; }
.asset-icon.has-img .asset-emoji { display: none; }
.place-card .asset-icon { width: 56px; height: 56px; }
.hud-chip .asset-icon { width: 20px; height: 20px; }

/* ---------- 数字迷宫 ---------- */
.maze-wrap {
  display: grid; gap: 0; background: #fff; border-radius: 18px; padding: 8px;
  box-shadow: 0 4px 0 #f0d9de; width: fit-content;
}
.maze-cell {
  width: 64px; height: 64px; position: relative; display: flex;
  align-items: center; justify-content: center; background: #fffdf6;
}
.maze-num {
  width: 34px; height: 34px; border-radius: 50%; background: #ffd35e; color: #7a5200;
  font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.maze-num.done { background: #7ed491; color: #fff; }
.maze-num.bad { animation: shake .4s; background: #f3b0af; color: #fff; }
.maze-goal { font-size: 26px; }
.maze-me { position: absolute; font-size: 26px; animation: bob 1.6s ease-in-out infinite; z-index: 2; }
.maze-bubble {
  background: #fff; border-radius: 18px; padding: 8px 18px; font-size: 18px; font-weight: 800;
  color: #d9668a; box-shadow: 0 3px 8px rgba(214,148,165,.25); margin-bottom: 6px;
}

/* ---------- 图形数独 ---------- */
.sud-wrap { display: grid; gap: 3px; background: #e7bcc9; border: 4px solid #e7bcc9; border-radius: 14px; }
.sud-cell {
  width: 60px; height: 60px; background: #fff; border: none; font-size: 30px;
  display: flex; align-items: center; justify-content: center; color: #6d5560;
}
.sud-cell.sud-vb { border-right: 4px solid #d95576; }
.sud-cell.sud-hb { border-bottom: 4px solid #d95576; }
.sud-cell.sud-fixed { color: #8a6470; }
.sud-cell.sud-blank { background: #fff8e0; color: #d0b9a8; }
.sud-cell.sud-blank.sel { outline: 4px solid #56aef5; background: #eaf6ff; }
.sud-cell.sud-in { animation: pop-in .4s ease; background: #eafaf0; }
.sud-cell.sud-no { animation: shake .4s; background: #f3b0af; }
.sud-palette { margin-top: 4px; }
.sud-palette .sud-sym { min-width: 70px; min-height: 62px; font-size: 28px; }

/* ---------- 舒尔特方格 ---------- */
.sch-wrap { display: grid; gap: 6px; }
.sch-btn {
  width: 66px; height: 66px; border-radius: 14px; background: #fff; box-shadow: 0 4px 0 #f0d9de;
  font-size: 26px; font-weight: 800; color: #6d5560; display: flex; align-items: center; justify-content: center;
}
.sch-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #f0d9de; }
.sch-btn.sch-done { background: #eafaf0; color: #b8d8c0; box-shadow: none; }
.sch-btn.sch-no { animation: shake .4s; background: #fdecec; }

/* ---------- 记忆翻牌 ---------- */
.flip-grid { display: grid; gap: 10px; }
.flip-card {
  width: 76px; height: 88px; border-radius: 14px; background: #fff;
  box-shadow: 0 4px 0 #f0d9de; position: relative;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.flip-card:active { transform: translateY(3px); box-shadow: 0 1px 0 #f0d9de; }
.flip-back { font-size: 34px; }
.flip-card .flip-num-face, .flip-card .flip-qty-face { display: none; }
.flip-card.open .flip-back, .flip-card.matched .flip-back { display: none; }
.flip-card.open .flip-num-face, .flip-card.open .flip-qty-face,
.flip-card.matched .flip-num-face, .flip-card.matched .flip-qty-face { display: flex; }
.flip-num-face { font-size: 40px; font-weight: 800; color: #d95576; }
.flip-qty-face {
  font-size: 20px; flex-wrap: wrap; justify-content: center; align-content: center;
  gap: 0 2px; max-width: 66px; line-height: 1.1;
}
.flip-card.matched { background: #eafaf0; box-shadow: none; animation: pop-in .4s ease; }

/* ---------- 分一分 ---------- */
.share-tray {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 4px 0 #f0d9de;
  min-height: 56px; max-width: 420px; margin-bottom: 10px;
}
.share-candy {
  font-size: 26px; width: 52px; height: 52px; border-radius: 50%;
  background: #fff4d6; display: flex; align-items: center; justify-content: center;
}
.share-candy.picked { background: #ffd35e; transform: scale(1.15); box-shadow: 0 0 0 4px #ffe9a8; }
.share-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.share-basket {
  width: 108px; min-height: 120px; border-radius: 16px; background: #fff;
  box-shadow: 0 4px 0 #f0d9de; display: flex; flex-direction: column;
  align-items: center; padding: 8px 6px; position: relative;
}
.share-face { font-size: 34px; line-height: 1.2; }
.share-pile { display: flex; flex-wrap: wrap; gap: 0 2px; font-size: 17px; justify-content: center; min-height: 20px; }
.share-count {
  position: absolute; top: -8px; right: -8px; background: #d95576; color: #fff;
  border-radius: 50%; width: 30px; height: 30px; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.share-basket.share-nudge { animation: shake .4s; }
.share-basket.share-bad { animation: shake .4s; background: #fdecec; box-shadow: 0 4px 0 #f3b0af; }
.share-submit { margin-top: 12px; }
.share-submit.ready { background: #7ed491; }

/* ---------- 跳跳数 ---------- */
.skip-river {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 48px 8px 20px; background: #e8f6ff;
  border-radius: 18px; margin-bottom: 10px; position: relative; overflow: hidden;
}
.skip-river::after { content: '💧'; position: absolute; right: 10px; bottom: 6px; opacity: .5; font-size: 22px; }
.lily {
  width: 66px; height: 66px; border-radius: 50%; background: #7ed491; color: #1d5e2f;
  font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 #5cb871; position: relative;
}
.lily-q { background: #fff; color: #d0b9a8; box-shadow: 0 4px 0 #f0d9de; }
.lily-in { animation: pop-in .4s ease; background: #ffd35e; color: #7a5200; box-shadow: 0 4px 0 #f0b344; }
.skip-frog { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-size: 30px; animation: bob 1.6s ease-in-out infinite; }
