/* ============================================================
   芽芽岛 · 视觉系统
   暖奶油纸感 + 手绘圆角 + 低饱和糖果色
   ============================================================ */
:root {
  --cream: #FFF7E8;
  --paper: #FFFCF5;
  --paper-2: #FFF4DF;
  --ink: #443C4E;
  --ink-soft: #7C7185;
  --ink-faint: #A89EAC;
  --line: rgba(68, 60, 78, .10);
  --coral: #F2788F;
  --coral-deep: #D95873;
  --green: #59B98A;
  --green-deep: #2E8A60;
  --yellow: #F2C94C;
  --blue: #4C9FD8;
  --purple: #8E7CC3;
  --orange: #F19A4A;
  --teal: #45B8B0;
  --shadow-sm: 0 4px 14px rgba(76, 58, 73, .07);
  --shadow: 0 14px 34px rgba(76, 58, 73, .12);
  --shadow-lg: 0 28px 70px rgba(76, 58, 73, .18);
  --r-sm: 16px;
  --r: 24px;
  --r-lg: 34px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-display: "ZCOOL KuaiLe", ui-rounded, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(76, 159, 216, .6); outline-offset: 4px; border-radius: 12px; }
button:disabled { cursor: default; }
svg { display: block; }
p, h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; }
::selection { background: #FFD465; color: var(--ink); }
[hidden] { display: none !important; }
.icon { width: 24px; height: 24px; flex: none; }

.boot {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 20px;
  background: radial-gradient(circle at 50% 40%, #FFFDF7, var(--cream));
  color: var(--ink-soft); font-size: 14px; letter-spacing: .08em;
}
.boot-sprout { width: 58px; height: 58px; border-radius: 50%; background: #FFF1D6; position: relative; animation: boot-bob 1.6s ease-in-out infinite; }
.boot-sprout span:first-child { position: absolute; left: 24px; top: 21px; width: 16px; height: 16px; border-radius: 50%; background: #FFF8E8; box-shadow: inset 0 0 0 2px var(--ink); }
.boot-sprout span:last-child { position: absolute; left: 27px; top: 8px; width: 14px; height: 10px; border-radius: 10px 2px 10px 2px; background: var(--green); transform: rotate(-20deg); }
@keyframes boot-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.noscript { max-width: 560px; margin: 20vh auto; padding: 24px; background: var(--paper); border-radius: var(--r); text-align: center; }

/* ---------------- 首页天空 ---------------- */
.home { position: relative; min-height: 100vh; padding-bottom: calc(32px + var(--safe-bottom)); }
.home-sky {
  position: absolute; inset: 0 0 auto; height: 640px; overflow: hidden; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, #BFE5F2 0%, #DDF2F0 42%, #F4F6E6 72%, var(--cream) 100%);
}
.home-sun { position: absolute; right: 7%; top: calc(60px + var(--safe-top)); width: 126px; opacity: .95; animation: sun-turn 26s linear infinite; }
.home-cloud { position: absolute; width: 150px; opacity: .82; animation: drift 28s ease-in-out infinite; }
.home-cloud.c1 { left: 4%; top: 150px; width: 170px; animation-delay: -7s; }
.home-cloud.c2 { right: 24%; top: 88px; width: 105px; opacity: .55; animation-delay: -13s; }
.home-cloud.c3 { left: 38%; top: 36px; width: 80px; opacity: .45; animation-delay: -3s; }
.home-hills { position: absolute; bottom: -1px; left: 0; right: 0; height: 240px; }
.home-hills span { position: absolute; border-radius: 50% 50% 0 0; display: block; }
.home-hills span:nth-child(1) { left: -12%; bottom: -160px; width: 72%; height: 390px; background: #CFE9C9; opacity: .8; transform: rotate(7deg); }
.home-hills span:nth-child(2) { right: -18%; bottom: -190px; width: 78%; height: 430px; background: #E4F0D3; transform: rotate(-5deg); }
.home-hills span:nth-child(3) { left: 28%; bottom: -210px; width: 55%; height: 350px; background: #F1F5DE; opacity: .8; }
@keyframes drift { 0%,100% { transform: translateX(0) } 50% { transform: translateX(26px) } }
@keyframes sun-turn { to { transform: rotate(360deg) } }

.home-head {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  padding: calc(22px + var(--safe-top)) 42px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 55px; height: 55px; display: grid; place-items: center; background: rgba(255, 252, 245, .82); border: 2px solid rgba(255,255,255,.8); border-radius: 18px; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.brand-mark svg { width: 45px; height: 45px; }
.brand-text { display: grid; gap: 1px; }
.brand-text b { font-size: 22px; letter-spacing: .08em; }
.brand-text small { font-size: 11px; color: #547065; letter-spacing: .06em; }
.head-actions { display: flex; gap: 10px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 252, 245, .86); border: 1.5px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm); color: var(--ink-soft); transition: transform .16s, background .16s, color .16s;
}
.round-btn:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.round-btn:active { transform: scale(.94); }
.round-btn.glass { backdrop-filter: blur(10px); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  padding: 34px 42px 8px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center; gap: 12px; min-height: 380px;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; background: rgba(255, 252, 245, .8); border: 1.5px solid rgba(255,255,255,.9); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #527566; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(89,185,138,.18); }
.hero h1 { margin-top: 18px; font-size: clamp(34px, 4.3vw, 56px); line-height: 1.18; letter-spacing: -.02em; font-weight: 800; }
.hero h1 em { font-style: normal; color: #C94E69; position: relative; display: inline-block; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: 2px; height: 13px; border-radius: 50%; background: rgba(242, 201, 76, .55); z-index: -1; transform: rotate(-1.4deg); }
.hero-sub { margin-top: 16px; font-size: 14.5px; line-height: 1.85; color: #5E6F68; }
.hero-btn {
  margin-top: 22px; min-height: 60px; padding: 0 24px 0 20px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 12px; justify-content: space-between;
  color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(135deg, #F58A9D, #E8607D);
  box-shadow: 0 14px 28px rgba(213, 84, 110, .26), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .18s, box-shadow .18s;
}
.hero-btn span { display: inline-flex; align-items: center; gap: 10px; }
.hero-btn svg { width: 21px; height: 21px; }
.hero-btn .btn-arrow { margin-left: 20px; opacity: .85; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 34px rgba(213, 84, 110, .3); }
.hero-btn:active { transform: scale(.98); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: #6D7B72; font-size: 11.5px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 5px; }
.hero-badges .icon { width: 15px; height: 15px; color: #6D9A7C; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 330px; }
.hero-sprout { position: relative; z-index: 3; width: min(280px, 100%); background: none; filter: drop-shadow(0 18px 22px rgba(72, 81, 62, .12)); transition: transform .2s; }
.hero-sprout:hover { transform: scale(1.02); }
.hero-sprout.wave { animation: sprout-wave .7s ease; }
.hero-sprout .sprout { width: 100%; height: auto; }
@keyframes sprout-wave { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-4deg) } 50% { transform: rotate(4deg) } 75% { transform: rotate(-2deg) } }
.hero-ground { position: absolute; z-index: 1; bottom: 28px; width: 72%; height: 44px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(89,185,138,.28), rgba(89,185,138,0) 70%); }
.float-shape { position: absolute; border-radius: 12px; opacity: .8; animation: floaty 5.5s ease-in-out infinite; }
.fs1 { width: 26px; height: 26px; background: var(--yellow); left: 10%; top: 17%; transform: rotate(12deg); }
.fs2 { width: 18px; height: 18px; border-radius: 50%; background: var(--coral); right: 12%; top: 30%; animation-delay: -1.2s; }
.fs3 { width: 30px; height: 30px; border-radius: 50% 50% 50% 8px; background: var(--teal); left: 16%; bottom: 18%; animation-delay: -2.4s; transform: rotate(-18deg); }
.fs4 { width: 14px; height: 14px; background: var(--purple); right: 18%; bottom: 24%; animation-delay: -3.2s; transform: rotate(40deg); }
@keyframes floaty { 0%,100% { translate: 0 0 } 50% { translate: 0 -13px } }
.hello-bubble {
  position: absolute; right: -6px; top: 30px; padding: 8px 13px; border-radius: 14px 14px 14px 4px;
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.hero-sprout:hover .hello-bubble, .hero-sprout.wave .hello-bubble { opacity: 1; transform: translateY(0); }

/* ---------------- 今日状态 ---------------- */
.home-meta { position: relative; z-index: 2; max-width: 1180px; margin: 6px auto 0; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #68766D; font-size: 12px; }
.home-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.home-meta .icon { width: 16px; height: 16px; color: var(--green-deep); }
.text-btn { display: inline-flex; align-items: center; gap: 6px; color: #6E6378; font-size: 12.5px; font-weight: 700; padding: 7px 10px; border-radius: 10px; transition: background .16s, color .16s; }
.text-btn:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.text-btn .icon { width: 17px; height: 17px; }

/* ---------------- 小岛列表 ---------------- */
.islands { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 30px 42px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 25px; letter-spacing: .02em; }
.section-head p { margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.section-count { font-size: 11px; color: var(--ink-faint); background: rgba(255,255,255,.56); padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7); }
.island-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.island-card {
  --c: var(--coral); --soft: #FFE4EA; --deep: #C94E69;
  position: relative; min-height: 254px; padding: 14px 16px 13px; text-align: left; overflow: hidden;
  border-radius: 28px; border: 1.5px solid rgba(255,255,255,.9);
  background:
    radial-gradient(circle at 88% 4%, rgba(255,255,255,.55), transparent 38%),
    linear-gradient(155deg, #FFFDF7 0%, var(--soft) 100%);
  box-shadow: 0 8px 24px rgba(76, 58, 73, .08), inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.island-card::after { content: ""; position: absolute; right: -26px; bottom: -36px; width: 120px; height: 120px; border-radius: 50%; background: var(--soft); opacity: .55; filter: blur(1px); }
.island-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(76, 58, 73, .14); }
.island-card:active { transform: scale(.985); }
.island-art { position: absolute; right: 3px; top: 3px; width: 134px; height: 116px; opacity: .98; transition: transform .3s; }
.island-card:hover .island-art { transform: translateY(-3px) rotate(1deg); }
.island-art svg { width: 100%; height: 100%; }
.island-body { position: relative; z-index: 1; margin-top: 88px; display: grid; gap: 5px; max-width: 90%; }
.island-title { font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.island-blurb { font-size: 12px; color: #6B6572; line-height: 1.5; }
.island-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.island-tags em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--deep); background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.75); border-radius: 6px; padding: 2px 7px; }
.island-tags i { font-style: normal; font-size: 10px; color: #8A7F8F; padding: 3px 2px; }
.island-foot { position: relative; z-index: 1; margin-top: auto; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.island-plays { font-size: 10px; color: #8C8293; }
.sticker-dots { display: inline-flex; gap: 4px; }
.sticker-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(68,60,78,.10); box-shadow: inset 0 1px 1px rgba(0,0,0,.06); }
.sticker-dots i.on { background: var(--c); box-shadow: 0 0 0 2px rgba(255,255,255,.65), 0 2px 5px rgba(0,0,0,.08); }
.sticker-dots i { transition: background .2s; }

.sticker-book {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 16px 22px;
  background: linear-gradient(135deg, #FFFCF5, #FFF1D8); border: 1.5px dashed #E7CFA9; border-radius: 26px;
  text-align: left; transition: transform .18s, background .18s; position: relative; overflow: hidden;
}
.sticker-book:hover { transform: translateY(-2px); background: #FFFDF8; }
.book-art { position: relative; width: 100px; height: 62px; flex: none; }
.book-art .sticker-art { position: absolute; width: 62px; height: 62px; filter: drop-shadow(0 4px 6px rgba(76,58,73,.12)); }
.book-art .b1 { left: 0; top: 4px; transform: rotate(-10deg); }
.book-art .b2 { left: 24px; top: 0; transform: rotate(5deg); z-index: 2; }
.book-art .b3 { left: 48px; top: 7px; transform: rotate(13deg); }
.book-copy { display: grid; gap: 2px; min-width: 0; }
.book-copy b { font-size: 17px; }
.book-copy span { font-size: 12px; color: var(--ink-soft); }
.book-copy em { font-style: normal; font-size: 10.5px; color: #A5947D; }
.sticker-book > .icon { margin-left: auto; color: #B59C78; width: 26px; height: 26px; }

/* ---------------- 亲子任务 ---------------- */
.offline-card {
  position: relative; z-index: 2; max-width: 1180px; margin: 18px auto 0; padding: 20px 24px;
  display: flex; align-items: center; gap: 18px;
  background: #FFFDF7; border: 1.5px solid #F0E2CB; border-radius: 26px; box-shadow: var(--shadow-sm);
}
.offline-icon { width: 54px; height: 54px; flex: none; border-radius: 18px; display: grid; place-items: center; background: #FFF0D2; color: #B9852D; }
.offline-icon .icon { width: 27px; height: 27px; }
.offline-copy { min-width: 0; flex: 1; }
.offline-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #B9852D; }
.offline-copy p { margin-top: 3px; font-size: 15px; font-weight: 700; line-height: 1.55; }
.offline-copy small { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-faint); }
.offline-card .round-btn { width: 42px; height: 42px; flex: none; background: #FFF7E9; border-color: #F0E2CB; }

.home-foot {
  position: relative; z-index: 2; max-width: 1180px; margin: 30px auto 0; padding: 20px 42px 0;
  border-top: 1px solid rgba(68,60,78,.07); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  color: var(--ink-faint); font-size: 10.5px;
}
.home-foot .text-btn { font-size: 11px; }
.foot-copy { margin-left: auto; }

/* ---------------- 游戏外壳 ---------------- */
body.in-game { overflow: hidden; }
.game-view { min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--soft, #FFF4DF) 0%, #FFF9EE 62%, #FFF7E8 100%); position: relative; overflow: hidden; }
.game-bar {
  width: 100%; max-width: 1120px; margin: 0 auto; padding: calc(12px + var(--safe-top)) 24px 6px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 12px; z-index: 30;
}
.game-bar .round-btn { background: rgba(255,252,245,.72); border-color: rgba(255,255,255,.9); backdrop-filter: blur(8px); }
.game-heading { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.game-heading-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.game-heading h2 { font-size: 18px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-heading-top span { font-size: 10.5px; color: var(--deep, var(--ink-soft)); font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.6); white-space: nowrap; }
.game-progress { display: flex; gap: 5px; }
.game-progress i { width: 16px; height: 4px; border-radius: 99px; background: rgba(68,60,78,.12); transition: width .3s, background .3s; }
.game-progress i.done { background: var(--c, var(--coral)); }
.game-progress i.now { background: var(--c, var(--coral)); animation: prog-pulse 1.8s ease-in-out infinite; }
@keyframes prog-pulse { 0%,100% { opacity: 1; width: 16px } 50% { opacity: .55; width: 24px } }
.game-stage { width: 100%; max-width: 1120px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; position: relative; min-height: 0; }

.game-prompt {
  position: relative; z-index: 20; width: min(560px, calc(100% - 28px)); margin: 6px auto 0;
  display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px;
  background: rgba(255,253,247,.94); border: 2px solid #fff; border-radius: 20px;
  box-shadow: 0 8px 24px rgba(76,58,73,.10); backdrop-filter: blur(8px);
}
.game-prompt.floating-prompt { position: relative; flex: none; }
.prompt-speak { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--soft, #FFF3D6); color: var(--deep, #8D6A2F); transition: transform .15s; }
.prompt-speak:hover { transform: scale(1.06); }
.prompt-speak .icon, .prompt-speak svg { width: 19px; height: 19px; }
.game-prompt div { display: grid; gap: 1px; min-width: 0; }
.game-prompt b { font-size: 14.5px; line-height: 1.35; }
.game-prompt span { font-size: 10.5px; color: var(--ink-soft); line-height: 1.4; }

/* ---------------- 场景通用 ---------------- */
.scene-sky { position: absolute; inset: 0 0 auto; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.scene-sun { position: absolute; right: 5%; top: 2%; width: 96px; opacity: .92; animation: sun-turn 30s linear infinite; }
.scene-cloud { position: absolute; width: 116px; opacity: .8; animation: drift 24s ease-in-out infinite; }
.scene-cloud.sc1 { left: 5%; top: 12%; }
.scene-cloud.sc2 { right: 20%; top: 4%; width: 76px; opacity: .5; animation-delay: -8s; }
.scene-hill { position: absolute; border-radius: 50% 50% 0 0; bottom: -24%; }
.gh1 { left: -12%; width: 70%; height: 46%; background: #D6EBCB; opacity: .75; }
.gh2 { right: -16%; width: 66%; height: 40%; background: #EDF3D8; }
.sprout-guide { width: 58px; height: 58px; flex: none; }
.sprout-guide svg { width: 100%; height: 100%; }

/* ---------------- 花园 ---------------- */
.garden-scene { position: relative; min-height: 560px; padding: 8px 20px 16px; display: flex; flex-direction: column; }
.garden-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 16px 0; }
.garden-counter { display: inline-flex; align-items: baseline; gap: 5px; padding: 8px 14px; border-radius: 999px; background: rgba(255,253,247,.82); border: 1.5px solid #fff; box-shadow: var(--shadow-sm); color: var(--ink-soft); font-size: 11px; }
.garden-counter b { font-size: 22px; color: var(--coral-deep); line-height: 1; }
.garden-hint { display: flex; align-items: center; gap: 4px; max-width: 210px; }
.garden-hint span { font-size: 10px; color: #677566; background: rgba(255,255,255,.6); border-radius: 12px 12px 12px 3px; padding: 7px 10px; line-height: 1.5; }
.garden-field { position: relative; z-index: 2; flex: 1; display: grid; align-content: end; justify-items: center; gap: 0 4px; padding: 18px 0 0; max-width: 760px; width: 100%; margin: 0 auto; }
.garden-field.six { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); }
.garden-field.four { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); max-width: 480px; }
.flower { position: relative; height: clamp(148px, 23vh, 210px); width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; background: none; transform: translateY(var(--h, 0px)); }
.flower-bloom { position: relative; width: clamp(78px, 11vw, 102px); height: clamp(78px, 11vw, 102px); z-index: 3; margin-bottom: -2px; transition: transform .3s; }
.flower-stem { width: 7px; height: 48%; border-radius: 6px; background: linear-gradient(90deg, #438B58, #63B378); margin-top: -6px; box-shadow: inset 1px 0 0 rgba(255,255,255,.25); }
.flower-leaf { position: absolute; bottom: 21%; width: 34px; height: 19px; background: #6FBE7C; border: 2px solid #3D8051; z-index: 2; }
.flower-leaf.fl { left: calc(50% - 37px); border-radius: 20px 3px 20px 3px; transform: rotate(16deg); }
.flower-leaf.fr { right: calc(50% - 37px); border-radius: 3px 20px 3px 20px; transform: rotate(-16deg); }
.flower-core { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); z-index: 4; transition: width .45s cubic-bezier(.34,1.56,.64,1), height .45s cubic-bezier(.34,1.56,.64,1); box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.flower-face { opacity: 0; transition: opacity .3s .2s; position: absolute; inset: 0; display: grid; place-items: center; }
.flower-face i { position: absolute; top: 42%; width: 3px; height: 4px; border-radius: 50%; background: var(--ink); }
.flower-face i:first-child { left: 28%; } .flower-face i:nth-child(2) { right: 28%; }
.flower-face em { position: absolute; top: 57%; width: 10px; height: 6px; border-bottom: 2px solid var(--ink); border-radius: 0 0 8px 8px; }
.petal { position: absolute; left: 50%; top: 50%; width: 34%; height: 46%; border-radius: 50% 50% 45% 45%; background: var(--c); border: 2.5px solid var(--ink); opacity: 0; transform: translate(-50%,-50%) rotate(var(--rot)) translateY(-3%) scale(.15); transform-origin: 50% 50%; transition: transform .5s cubic-bezier(.34,1.4,.64,1), opacity .25s; z-index: 2; }
.petal.p1 { --rot: 0deg; } .petal.p2 { --rot: 60deg; } .petal.p3 { --rot: 120deg; }
.petal.p4 { --rot: 180deg; } .petal.p5 { --rot: 240deg; } .petal.p6 { --rot: 300deg; }
.flower.bloom .petal { opacity: 1; transform: translate(-50%,-50%) rotate(var(--rot)) translateY(-42%) scale(1); }
.flower.bloom .flower-core { width: 42px; height: 42px; }
.flower.bloom .flower-face { opacity: 1; }
.flower.just-bloomed .flower-bloom { animation: bloom-pop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes bloom-pop { 0% { transform: scale(.72) } 60% { transform: scale(1.08) } 100% { transform: scale(1) } }
.flower.wiggle { animation: flower-wiggle .5s ease; }
@keyframes flower-wiggle { 0%,100% { transform: translateY(var(--h)) rotate(0) } 30% { transform: translateY(var(--h)) rotate(-3deg) } 65% { transform: translateY(var(--h)) rotate(3deg) } }
.flower { animation: flower-sway 4.8s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes flower-sway { 0%,100% { rotate: -0.6deg } 50% { rotate: 0.8deg } }
.garden-bottom { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 4px; min-height: 52px; }
.garden-note { font-size: 10px; color: #7D8C78; opacity: .8; }
.garden-rainbow { display: flex; gap: 3px; align-items: flex-end; height: 0; overflow: hidden; transition: height .8s ease; }
.garden-rainbow i { width: 10px; height: 34px; border-radius: 10px 10px 0 0; background: var(--coral); }
.garden-rainbow i:nth-child(2) { background: var(--orange); height: 28px; }
.garden-rainbow i:nth-child(3) { background: var(--yellow); height: 22px; }
.garden-rainbow i:nth-child(4) { background: var(--green); height: 16px; }
.garden-rainbow i:nth-child(5) { background: var(--blue); height: 10px; }
.all-bloomed .garden-rainbow { height: 36px; }
.garden-butterfly { position: absolute; left: 12%; top: 38%; width: 28px; height: 22px; opacity: 0; z-index: 4; }
.garden-butterfly i { position: absolute; width: 15px; height: 20px; border-radius: 50% 50% 50% 10%; background: var(--yellow); border: 2px solid var(--ink); top: 0; }
.garden-butterfly i:first-child { left: -8px; transform: rotate(-24deg); }
.garden-butterfly i:last-child { right: -8px; transform: rotate(24deg); }
.all-bloomed .garden-butterfly { opacity: 1; animation: butterfly-fly 7s ease-in-out infinite; }
@keyframes butterfly-fly { 0% { transform: translate(0,0) } 25% { transform: translate(40vw,-40px) } 50% { transform: translate(70vw,10px) } 75% { transform: translate(30vw,-20px) } 100% { transform: translate(0,0) } }

/* ---------------- 躲猫猫 ---------------- */
.peek-scene { position: relative; min-height: 580px; padding: 8px 20px 18px; overflow: hidden; }
.forest-sky { background: linear-gradient(180deg, #DFF3E9 0%, #F2F7E3 58%, #FBF7E8 100%); }
.forest-tree { position: absolute; bottom: 0; width: 130px; height: 360px; opacity: .5; }
.forest-tree.ft1 { left: -2%; }
.forest-tree.ft2 { right: -3%; transform: scale(.82); opacity: .35; }
.forest-tree::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 16px; height: 170px; transform: translateX(-50%); border-radius: 8px; background: #B98D6C; }
.forest-tree i { position: absolute; left: 50%; width: 120px; height: 120px; transform: translateX(-50%); border-radius: 46% 54% 50% 50%; background: #9ED3A6; }
.forest-tree i:nth-child(1) { bottom: 120px; }
.forest-tree i:nth-child(2) { bottom: 185px; width: 98px; height: 96px; background: #ADDCAF; }
.forest-tree i:nth-child(3) { bottom: 240px; width: 70px; height: 70px; background: #BCE4B8; }
.fh1 { left: -12%; width: 68%; height: 30%; background: #CBE6C0; }
.fh2 { right: -14%; width: 62%; height: 26%; background: #E4EFD0; }
.peek-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 12px 0; }
.peek-round { font-size: 11px; color: #4F735B; background: rgba(255,255,255,.65); border-radius: 999px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.8); }
.peek-round b { font-size: 17px; color: #2E8A60; }
.peek-guide { display: flex; align-items: center; gap: 2px; max-width: 190px; }
.peek-guide span { font-size: 10px; line-height: 1.5; color: #587663; background: rgba(255,255,255,.58); border-radius: 12px 12px 3px 12px; padding: 7px 10px; }
.peek-field { position: relative; z-index: 4; display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 4vw, 42px); min-height: 340px; padding-top: 10px; }
.bush { position: relative; width: clamp(100px, 21vw, 180px); height: clamp(150px, 26vh, 208px); background: none; display: flex; align-items: flex-end; justify-content: center; }
.bush-shadow { position: absolute; bottom: 2px; width: 90%; height: 24px; border-radius: 50%; background: rgba(59, 92, 58, .16); filter: blur(2px); z-index: 0; }
.bush-body { position: relative; z-index: 3; width: 100%; height: 74%; background: linear-gradient(160deg, #6BC184, #439B63); border: 2.5px solid #317548; border-radius: 46% 54% 38% 42%; box-shadow: inset 0 8px 0 rgba(255,255,255,.16), 0 8px 0 rgba(46,100,60,.10); }
.bush-body .leaf { position: absolute; background: #7BCC8F; border: 2px solid #3A8A54; border-radius: 50%; }
.bush-body .l1 { width: 44%; height: 30%; left: -9%; top: 15%; transform: rotate(-22deg); }
.bush-body .l2 { width: 38%; height: 26%; right: -7%; top: 10%; transform: rotate(19deg); }
.bush-body .l3 { width: 30%; height: 22%; left: 8%; bottom: -8%; transform: rotate(10deg); }
.bush-body .l4 { width: 34%; height: 24%; right: 4%; bottom: -9%; transform: rotate(-12deg); }
.bush-body .l5 { width: 30%; height: 22%; left: 38%; top: -12%; background: #8AD59B; }
.bush-face { position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%); display: flex; gap: 16%; width: 38%; justify-content: center; opacity: .55; }
.bush-face i { width: 7px; height: 9px; border-radius: 50%; background: #2E6340; }
.bush.preview .bush-body { animation: bush-shiver 1.3s ease; }
.bush.preview .peek-animal { opacity: 1; transform: translate(-50%, -54%) scale(1); }
.bush.found .peek-animal { opacity: 1; transform: translate(-50%, -72%) scale(1.06); animation: animal-hooray 1s cubic-bezier(.34,1.56,.64,1); }
.bush.hint .bush-body { animation: bush-shiver 1.2s ease infinite; box-shadow: 0 0 0 6px rgba(255,255,255,.35), inset 0 8px 0 rgba(255,255,255,.16); }
.bush.wiggle .bush-body { animation: bush-wiggle .45s ease; }
@keyframes bush-shiver { 0%,100% { transform: translateX(0) } 20% { transform: translateX(-3px) } 40% { transform: translateX(3px) } 60% { transform: translateX(-2px) } 80% { transform: translateX(2px) } }
@keyframes bush-wiggle { 0%,100% { transform: rotate(0) } 30% { transform: rotate(-4deg) } 70% { transform: rotate(4deg) } }
@keyframes animal-hooray { 0% { transform: translate(-50%,-40%) scale(.85) } 55% { transform: translate(-50%,-88%) scale(1.12) } 100% { transform: translate(-50%,-72%) scale(1.06) } }
.animal-slot { position: absolute; left: 0; right: 0; bottom: 46%; display: flex; justify-content: center; z-index: 2; pointer-events: none; }
.peek-animal { width: clamp(80px, 15vw, 128px); opacity: 0; transform: translate(-50%, 10%) scale(.65); transition: opacity .25s, transform .45s cubic-bezier(.34,1.4,.64,1); filter: drop-shadow(0 6px 8px rgba(50,70,45,.12)); }
.peek-animal svg { width: 100%; height: auto; }
.peek-bottom { position: relative; z-index: 5; display: grid; place-items: center; gap: 6px; padding-top: 8px; }
.peek-hint { font-size: 11px; color: #6D7C6A; background: rgba(255,255,255,.6); padding: 5px 12px; border-radius: 999px; }
.peek-found { display: flex; align-items: baseline; gap: 8px; padding: 8px 18px; background: #FFFDF6; border-radius: 16px; box-shadow: var(--shadow-sm); animation: found-in .45s cubic-bezier(.34,1.56,.64,1); }
.found-name { font-weight: 800; font-size: 16px; color: #2E8A60; }
.found-sound { font-size: 11px; color: var(--ink-soft); }
@keyframes found-in { from { opacity: 0; transform: translateY(10px) scale(.9) } to { opacity: 1; transform: none } }
.fireflies { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fireflies i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #FFE89A; box-shadow: 0 0 10px 3px rgba(255,232,154,.55); left: calc(var(--i) * 14% + 5%); top: calc(40% + var(--i) * 3%); animation: firefly 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); opacity: .7; }
@keyframes firefly { 0%,100% { transform: translate(0,0); opacity: .2 } 50% { transform: translate(18px,-24px); opacity: .95 } }

/* ---------------- 小餐馆 ---------------- */
.cafe-scene { position: relative; min-height: 590px; padding: 6px 20px 16px; overflow: hidden; background: linear-gradient(180deg, #FFEFD6 0%, #FFF8E8 64%, #FFF4DE 100%); }
.cafe-wall { position: absolute; inset: 0 0 auto; height: 100%; pointer-events: none; overflow: hidden; }
.cafe-awning { position: absolute; left: 0; right: 0; top: 0; height: 48px; background: repeating-linear-gradient(90deg, #F7B2A0 0 46px, #FFF6E4 46px 92px); opacity: .55; }
.cafe-awning::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 16px; background: radial-gradient(circle at 23px -3px, transparent 14px, #FFF6E4 15px) 0 0/46px 16px repeat-x; opacity: .8; }
.cafe-lamp { position: absolute; right: 9%; top: 36px; width: 46px; height: 74px; }
.cafe-lamp::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 56px; background: #B9946B; }
.cafe-lamp i { position: absolute; bottom: 0; left: 0; width: 46px; height: 26px; border-radius: 50% 50% 10px 10px; background: #F7D488; border: 2px solid #B9946B; box-shadow: 0 8px 26px rgba(247,212,136,.8); }
.cafe-menu { position: absolute; left: 5%; top: 62px; padding: 8px 10px; font-size: 9px; line-height: 1.4; color: #8C6A49; text-align: center; background: #FFF9EC; border: 2px solid #D8B88F; border-radius: 5px; transform: rotate(-3deg); box-shadow: var(--shadow-sm); }
.cafe-window { position: absolute; right: 4%; bottom: 26%; width: 100px; height: 120px; border: 5px solid #E8C79D; border-radius: 8px; background: #CDEAF1; opacity: .5; }
.cafe-window i { position: absolute; background: #E8C79D; }
.cafe-window i:nth-child(1) { left: 50%; top: 0; bottom: 0; width: 4px; }
.cafe-window i:nth-child(2) { top: 50%; left: 0; right: 0; height: 4px; }
.cafe-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 0; }
.cafe-round { font-size: 11px; color: #9B6B34; background: rgba(255,255,255,.7); padding: 6px 12px; border-radius: 999px; border: 1px solid #fff; }
.cafe-round b { font-size: 16px; color: #BC6520; }
.cafe-stars { display: flex; gap: 5px; }
.cafe-stars i { width: 9px; height: 9px; border-radius: 50%; background: rgba(188,101,32,.15); }
.cafe-stars i.on { background: #F19A4A; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.cafe-bear-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.order-bubble { position: relative; width: min(460px, 92%); display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 9px; background: #FFFDF7; border: 2px solid #fff; border-radius: 18px 18px 18px 5px; box-shadow: var(--shadow-sm); }
.order-bubble::after { content: ""; position: absolute; left: 32px; bottom: -9px; width: 16px; height: 16px; background: #FFFDF7; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.order-bubble p { font-size: 14px; font-weight: 700; line-height: 1.45; }
.cafe-bear { width: min(230px, 46vw); margin-top: 2px; }
.cafe-bear svg { width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(120,80,40,.10)); }
.cafe-bear .chew { animation: chew 1.4s ease-in-out; }
@keyframes chew { 0%,100% { transform: translateY(0) } 30% { transform: translateY(4px) scale(1.02) } 60% { transform: translateY(0) } }
.cafe-table { position: absolute; bottom: 8px; width: min(280px, 60vw); height: 40px; border-radius: 50%; background: #E8C79D; border: 2px solid #C9A275; z-index: -1; }
.plate { position: absolute; left: 32%; top: -8px; width: 48px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #E3D6C4; }
.cup { position: absolute; right: 30%; top: -14px; width: 24px; height: 22px; border-radius: 3px 3px 9px 9px; background: #8CCBC7; border: 2px solid #4B9B96; }
.bear-hearts { position: absolute; left: 50%; top: 20%; width: 1px; height: 1px; pointer-events: none; }
.bear-hearts i { position: absolute; width: 14px; height: 14px; background: var(--coral); transform: rotate(45deg) scale(0); border-radius: 3px; }
.bear-hearts i::before, .bear-hearts i::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); }
.bear-hearts i::before { left: -7px; } .bear-hearts i::after { top: -7px; }
.bear-hearts.on i { animation: heart-up 1.4s ease-out forwards; }
.bear-hearts.on i:nth-child(2) { animation-delay: .18s; left: 24px; } .bear-hearts.on i:nth-child(3) { animation-delay: .34s; left: -22px; }
@keyframes heart-up { 0% { transform: translateY(0) rotate(45deg) scale(0); opacity: 0 } 20% { opacity: 1; transform: translateY(-10px) rotate(45deg) scale(1) } 100% { transform: translateY(-80px) rotate(45deg) scale(.7); opacity: 0 } }
.cafe-tray { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(600px, 100%); margin: 2px auto 0; padding: 10px; border-radius: 26px; background: rgba(255,253,247,.55); border: 1.5px solid rgba(255,255,255,.8); }
.cafe-tray .food-card { min-height: 104px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--soft); border: 2px solid #fff; border-radius: 18px; text-align: left; box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; animation: food-in .35s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes food-in { from { opacity: 0; transform: translateY(12px) scale(.92) } to { opacity: 1; transform: none } }
.food-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(76,58,73,.12); }
.food-card:active { transform: scale(.96); }
.food-img { width: clamp(54px, 10vw, 74px); height: clamp(54px, 10vw, 74px); flex: none; }
.food-img svg { width: 100%; height: 100%; }
.food-name { font-size: 13px; font-weight: 700; }
.food-card.shake { animation: card-shake .4s ease; }
@keyframes card-shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-5px) rotate(-1deg) } 75% { transform: translateX(5px) rotate(1deg) } }
.food-card.eaten { animation: food-eaten .6s ease forwards; }
@keyframes food-eaten { 0% { transform: scale(1); opacity: 1 } 45% { transform: translateY(-20px) scale(1.06); opacity: 1 } 100% { transform: translateY(-110px) scale(.4); opacity: 0 } }
.cafe-feedback { position: relative; z-index: 3; margin-top: 8px; text-align: center; font-size: 11.5px; color: #8A6D4E; min-height: 20px; }

/* ---------------- 数数小火车 ---------------- */
.count-scene { position: relative; min-height: 590px; padding: 6px 20px 14px; overflow: hidden; background: linear-gradient(180deg, #D8EEF9 0%, #EDF7F5 52%, #FBF7E8 100%); }
.count-sky .scene-sun { right: 8%; top: 3%; }
.ch1 { left: -14%; width: 72%; height: 32%; background: #CDE8C3; }
.ch2 { right: -16%; width: 68%; height: 28%; background: #E2EFCE; }
.count-top { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 0; }
.count-card { display: flex; align-items: center; gap: 6px; padding: 7px 14px 7px 11px; background: rgba(255,253,247,.9); border: 2px solid #fff; border-radius: 18px; box-shadow: var(--shadow-sm); color: #53707C; font-size: 11px; }
.count-card b { font-size: 28px; line-height: 1; color: #2A6E9E; }
.count-dots { display: flex; gap: 3px; margin-left: 2px; }
.count-dots i { width: 6px; height: 6px; border-radius: 50%; background: #C6DDE8; }
.count-dots i.on { background: #4C9FD8; }
.count-round { font-size: 10.5px; color: #51707C; background: rgba(255,255,255,.65); padding: 5px 11px; border-radius: 999px; }
.count-round b { font-size: 15px; color: #2A6E9E; }
.count-field { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-height: 300px; padding: 0 2%; }
.apple-tree { position: relative; width: clamp(200px, 30vw, 280px); height: clamp(280px, 46vh, 360px); flex: none; background: none; }
.tree-glow { position: absolute; left: 50%; bottom: 4%; width: 80%; height: 24px; transform: translateX(-50%); border-radius: 50%; background: rgba(88,150,82,.18); filter: blur(4px); }
.tree-trunk { position: absolute; left: 50%; bottom: 7%; width: 34px; height: 38%; transform: translateX(-50%); background: linear-gradient(90deg, #9A6A45, #B9855B, #8E5D3B); border-radius: 8px; border: 2px solid #7A4E32; }
.tree-crown { position: absolute; left: 50%; top: 2%; width: 92%; height: 64%; transform: translateX(-50%); }
.tree-crown i { position: absolute; border-radius: 48% 52% 50% 50%; background: #6CBD79; border: 2px solid #418A50; }
.tree-crown i:nth-child(1) { left: 4%; top: 18%; width: 46%; height: 48%; background: #75C782; }
.tree-crown i:nth-child(2) { right: 2%; top: 10%; width: 50%; height: 52%; background: #5FB66F; }
.tree-crown i:nth-child(3) { left: 22%; top: 0; width: 52%; height: 46%; background: #8AD596; }
.tree-crown i:nth-child(4) { left: 12%; bottom: 2%; width: 52%; height: 42%; background: #67BE76; }
.tree-crown i:nth-child(5) { right: 8%; bottom: 0; width: 48%; height: 38%; background: #55AE67; }
.tree-apples { position: absolute; left: 50%; top: 6%; width: 90%; height: 58%; transform: translateX(-50%); }
.tree-apples i { position: absolute; width: clamp(22px, 4.4vw, 34px); height: clamp(22px, 4.4vw, 34px); animation: apple-bob 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
.tree-apples i svg { width: 100%; height: 100%; }
.tree-apples i:nth-child(1) { left: 10%; top: 26%; } .tree-apples i:nth-child(2) { left: 33%; top: 8%; }
.tree-apples i:nth-child(3) { left: 61%; top: 13%; } .tree-apples i:nth-child(4) { left: 78%; top: 34%; }
.tree-apples i:nth-child(5) { left: 19%; top: 52%; } .tree-apples i:nth-child(6) { left: 46%; top: 42%; }
.tree-apples i:nth-child(7) { left: 66%; top: 56%; } .tree-apples i:nth-child(8) { left: 37%; top: 68%; }
@keyframes apple-bob { 0%,100% { transform: translateY(0) rotate(-2deg) } 50% { transform: translateY(-4px) rotate(2deg) } }
.apple-tree.shake .tree-crown { animation: tree-shake .5s ease; }
@keyframes tree-shake { 0%,100% { transform: translateX(-50%) rotate(0) } 25% { transform: translateX(-50%) rotate(-2deg) } 75% { transform: translateX(-50%) rotate(2deg) } }
.tree-tip { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 700; color: #3E7A50; background: rgba(255,255,255,.72); padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.count-basket { position: relative; margin-bottom: 70px; width: 86px; flex: none; text-align: center; }
.count-basket span { display: block; font-size: 34px; font-weight: 800; color: #2A6E9E; line-height: 1; }
.count-basket small { font-size: 9.5px; color: #63808A; }
.train-track { position: absolute; left: 0; right: 0; bottom: 22px; height: 8px; border-top: 4px dotted rgba(90,90,80,.18); z-index: 1; }
.train { position: relative; z-index: 5; display: flex; align-items: flex-end; gap: 3px; width: 100%; padding: 0 4% 8px; transition: transform 2.1s cubic-bezier(.4,0,.7,1), opacity .4s; }
.train.depart { transform: translateX(125vw); }
.engine { position: relative; width: clamp(66px, 10vw, 92px); height: clamp(82px, 12vw, 108px); flex: none; }
.engine-body { position: absolute; bottom: 18px; left: 0; width: 100%; height: 46%; background: #E85D5D; border: 2.5px solid #4B4353; border-radius: 8px 14px 8px 8px; }
.engine-cab { position: absolute; left: 4px; bottom: 54%; width: 56%; height: 38%; background: #FFE4D6; border: 2.5px solid #4B4353; border-radius: 8px 10px 3px 3px; }
.engine-cab::after { content: ""; position: absolute; left: 20%; top: 18%; width: 50%; height: 42%; background: #BFE5F2; border: 2px solid #4B4353; border-radius: 4px; }
.engine-chimney { position: absolute; right: 6%; bottom: 58%; width: 18%; height: 20%; background: #4B4353; border-radius: 4px 4px 0 0; }
.engine-wheel { position: absolute; bottom: 4px; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #4B4353; border: 2px solid #2E2938; }
.engine-wheel::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: #B9C4CC; }
.engine-wheel.w1 { left: 10%; } .engine-wheel.w2 { right: 12%; }
.engine-smoke { position: absolute; right: 2%; bottom: 82%; width: 15px; height: 15px; border-radius: 50%; background: rgba(255,255,255,.8); opacity: 0; }
.train:not(.depart) .engine-smoke { animation: smoke 2.8s ease-out infinite; }
.engine-smoke.s2 { animation-delay: 1.4s !important; }
@keyframes smoke { 0% { transform: translate(0,0) scale(.5); opacity: 0 } 25% { opacity: .7 } 100% { transform: translate(10px,-26px) scale(1.5); opacity: 0 } }
.wagons { display: flex; align-items: flex-end; gap: 2px; flex: 1; min-width: 0; }
.wagon { position: relative; flex: 1; min-width: 0; max-width: 90px; height: clamp(58px, 9vw, 74px); }
.wagon-body { position: absolute; inset: 12px 0 10px; background: #5B9BD5; border: 2.5px solid #4B4353; border-radius: 6px; box-shadow: inset 0 6px 0 rgba(255,255,255,.18); }
.wagon:nth-child(2n) .wagon-body { background: #7FB5DF; }
.wagon-apple { position: absolute; left: 50%; top: -2px; width: clamp(26px, 5vw, 38px); transform: translate(-50%, 0) scale(0); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.wagon-apple svg { width: 100%; height: auto; }
.wagon.filled .wagon-apple { transform: translate(-50%, -8px) scale(1); }
.wagon-wheel { position: absolute; bottom: 0; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #4B4353; }
.wagon-wheel::after { content: ""; position: absolute; inset: 33%; border-radius: 50%; background: #B9C4CC; }
.wagon-wheel.w1 { left: 10%; } .wagon-wheel.w2 { right: 10%; }
.wagon-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: rgba(255,255,255,.75); font-size: 10px; font-weight: 800; }
.wagon.counting { animation: wagon-count .5s ease; }
@keyframes wagon-count { 0%,100% { transform: translateY(0) } 40% { transform: translateY(-10px) } }
.count-feedback { position: relative; z-index: 4; text-align: center; font-size: 11px; color: #5D7B85; min-height: 18px; }

/* ---------------- 形状小屋 ---------------- */
.shapes-scene { position: relative; min-height: 590px; padding: 6px 20px 14px; overflow: hidden; background: linear-gradient(180deg, #EEE8FA 0%, #F7F2FC 54%, #FFF9EE 100%); }
.shape-sky .scene-sun { opacity: .8; }
.sh1 { left: -14%; width: 68%; height: 30%; background: #DCD3F0; }
.sh2 { right: -16%; width: 64%; height: 26%; background: #E9E3F4; }
.shape-top { position: relative; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 12px 0; }
.shape-round { font-size: 11px; color: #6B5A91; background: rgba(255,255,255,.66); padding: 6px 12px; border-radius: 999px; border: 1px solid #fff; }
.shape-round b { font-size: 16px; color: #5E4C96; }
.shape-guide { display: flex; align-items: center; gap: 2px; max-width: 188px; }
.shape-guide span { font-size: 10px; line-height: 1.5; color: #6A6180; background: rgba(255,255,255,.6); padding: 7px 10px; border-radius: 12px 12px 3px 12px; }
.shape-work { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 1; padding-top: 4px; }
.shape-house { position: relative; width: min(340px, 74vw); height: min(300px, 46vh); min-height: 240px; }
.house-roof { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform: translateX(-50%); border-left: min(190px, 41vw) solid transparent; border-right: min(190px, 41vw) solid transparent; border-bottom: min(96px, 21vw) solid #B6A4D8; filter: drop-shadow(0 4px 0 rgba(75,67,83,.08)); }
.house-roof::after { content: ""; position: absolute; left: calc(min(190px, 41vw) * -1 + 9px); top: min(96px, 21vw); width: calc(min(380px, 82vw) - 18px); height: 9px; border-radius: 4px; background: #9A86C7; }
.house-chimney { position: absolute; right: 15%; top: 10px; width: 34px; height: 50px; background: #D9CCEB; border: 2.5px solid #4B4353; border-radius: 4px 4px 0 0; z-index: -1; }
.house-body { position: absolute; left: 8%; right: 8%; top: min(88px, 19vw); bottom: 0; background: #FFF7E8; border: 3px solid #4B4353; border-radius: 10px 10px 14px 14px; box-shadow: inset 0 8px 0 rgba(255,255,255,.6); }
.house-holes { position: absolute; left: 9%; right: 9%; top: 12%; display: flex; align-items: center; justify-content: space-around; gap: 4px; }
.shape-hole { position: relative; width: clamp(64px, 13vw, 88px); height: clamp(64px, 13vw, 88px); display: grid; place-items: center; background: none; }
.hole-inner, .hole-filled { position: absolute; inset: 0; transition: opacity .25s, transform .3s; }
.hole-inner svg, .hole-filled svg { width: 100%; height: 100%; }
.hole-filled { opacity: 0; transform: scale(.7); }
.shape-hole.filled .hole-inner { opacity: .15; }
.shape-hole.filled .hole-filled { opacity: 1; transform: scale(1); }
.shape-hole.drop-hover { filter: drop-shadow(0 0 10px rgba(142,124,195,.65)); }
.shape-hole.shake { animation: hole-shake .4s ease; }
@keyframes hole-shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }
.house-door { position: absolute; left: 41%; bottom: 0; width: 20%; height: 38%; background: #C9A275; border: 2.5px solid #4B4353; border-radius: 50px 50px 0 0; }
.house-door::after { content: ""; position: absolute; right: 16%; top: 48%; width: 5px; height: 5px; border-radius: 50%; background: #F2C94C; }
.house-window { position: absolute; right: 10%; bottom: 20%; width: 17%; aspect-ratio: 1; background: #BFE5F2; border: 2.5px solid #4B4353; border-radius: 4px; }
.house-window::before, .house-window::after { content: ""; position: absolute; background: #4B4353; }
.house-window::before { left: 50%; top: 0; bottom: 0; width: 2px; } .house-window::after { top: 50%; left: 0; right: 0; height: 2px; }
.shape-house.complete { animation: house-done .9s cubic-bezier(.34,1.56,.64,1); }
@keyframes house-done { 0%,100% { transform: translateY(0) } 35% { transform: translateY(-14px) } 60% { transform: translateY(0) } }
.shape-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.shape-sparkles i { position: absolute; width: 9px; height: 9px; background: #F2C94C; border-radius: 2px; opacity: 0; left: calc(15% + var(--i) * 9%); top: calc(18% + (var(--i) % 3) * 14%); }
.shape-sparkles.on i { animation: sparkle-pop 1.2s ease-out infinite; animation-delay: calc(var(--i) * .08s); }
@keyframes sparkle-pop { 0% { opacity: 0; transform: scale(.2) rotate(0) } 35% { opacity: 1; transform: scale(1) rotate(45deg) } 100% { opacity: 0; transform: scale(.5) rotate(90deg) } }
.shape-tray-wrap { position: relative; z-index: 4; width: 100%; max-width: 620px; }
.shape-tray-label { text-align: center; font-size: 9.5px; color: #7A6B91; margin-bottom: 2px; }
.shape-tray { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 3vw, 22px); padding: 8px 12px; background: rgba(255,253,247,.66); border: 2px dashed #C9B9E4; border-radius: 24px; min-height: 112px; }
.shape-piece { position: relative; width: clamp(76px, 14vw, 100px); height: clamp(88px, 16vw, 108px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: none; touch-action: none; transition: transform .16s; }
.shape-piece svg { width: clamp(60px, 11vw, 82px); height: clamp(60px, 11vw, 82px); filter: drop-shadow(0 5px 7px rgba(76,58,73,.14)); transition: transform .18s; }
.shape-piece:hover svg { transform: translateY(-3px) rotate(-2deg); }
.shape-piece.selected { background: rgba(255,255,255,.65); border-radius: 18px; box-shadow: 0 0 0 3px var(--c), 0 8px 18px rgba(76,58,73,.12); }
.shape-piece.selected svg { transform: translateY(-4px) scale(1.04); }
.shape-piece.placed { opacity: .28; transform: scale(.85); pointer-events: none; }
.shape-piece.shake { animation: piece-shake .4s ease; }
@keyframes piece-shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-5px) rotate(-3deg) } 75% { transform: translateX(5px) rotate(3deg) } }
.piece-name { font-size: 10px; font-weight: 700; color: #6F6384; margin-top: 2px; }
.shape-ghost { position: fixed; z-index: 999; pointer-events: none; opacity: .9; transform: rotate(-5deg) scale(1.06); background: rgba(255,255,255,.4); border-radius: 18px; }
.shape-feedback { position: relative; z-index: 4; text-align: center; font-size: 11px; color: #75688A; min-height: 18px; }

/* ---------------- 情绪天气站 ---------------- */
.feel-scene { position: relative; min-height: 600px; padding: 6px 20px 14px; overflow: hidden; background: linear-gradient(180deg, #FFF0C9 0%, #FFF8E6 52%, #FFF8EC 100%); }
.feel-sky { position: absolute; inset: 0; pointer-events: none; }
.feel-cloud { position: absolute; width: 120px; height: 38px; border-radius: 30px; background: rgba(255,255,255,.62); }
.feel-cloud::before, .feel-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.feel-cloud::before { width: 52px; height: 52px; left: 18px; top: -24px; } .feel-cloud::after { width: 38px; height: 38px; right: 18px; top: -16px; }
.feel-cloud.fc1 { left: 4%; top: 6%; } .feel-cloud.fc2 { right: 8%; top: 10%; transform: scale(.7); } .feel-cloud.fc3 { left: 42%; top: 3%; transform: scale(.5); opacity: .6; }
.feel-sun { position: absolute; right: 5%; top: 2%; width: 70px; height: 70px; border-radius: 50%; background: #FFD465; box-shadow: 0 0 0 12px rgba(255,212,101,.16), 0 0 0 26px rgba(255,212,101,.08); }
.feel-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 12px 0; }
.feel-round { font-size: 11px; color: #9A7420; background: rgba(255,255,255,.66); padding: 6px 12px; border-radius: 999px; border: 1px solid #fff; }
.feel-round b { font-size: 16px; color: #A77B12; }
.feel-guide { display: flex; align-items: center; gap: 2px; max-width: 190px; }
.feel-guide span { font-size: 10px; line-height: 1.5; color: #877242; background: rgba(255,255,255,.6); padding: 7px 10px; border-radius: 12px 12px 3px 12px; }
.feel-scene-card { position: relative; z-index: 3; width: min(520px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; background: rgba(255,253,247,.9); border: 2px solid #fff; border-radius: 24px; box-shadow: var(--shadow-sm); }
.feel-art { width: clamp(96px, 20vw, 160px); flex: none; }
.feel-art svg { width: 100%; height: auto; }
.feel-text { font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.feel-scene-card.done { box-shadow: 0 0 0 3px rgba(242,201,76,.55), var(--shadow-sm); }
.feel-question { position: relative; z-index: 3; text-align: center; font-size: 11.5px; font-weight: 700; color: #8A7138; margin-top: 8px; }
.feel-faces { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(520px, 100%); margin: 6px auto 0; }
.feel-face { display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; background: var(--soft); border: 2px solid #fff; border-radius: 20px; box-shadow: var(--shadow-sm); text-align: left; transition: transform .16s, box-shadow .16s, opacity .2s; }
.feel-face:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(76,58,73,.12); }
.feel-face .face-img { width: clamp(48px, 9vw, 64px); flex: none; } .face-img svg { width: 100%; height: 100%; }
.face-name { font-size: 15px; font-weight: 800; }
.face-weather { margin-left: auto; font-size: 9px; color: #8A7C6A; background: rgba(255,255,255,.6); padding: 3px 7px; border-radius: 99px; }
.feel-face.correct { box-shadow: 0 0 0 3px var(--c), var(--shadow-sm); }
.feel-face.dim { opacity: .35; }
.feel-face.shake { animation: card-shake .4s ease; }
.feel-action { position: relative; z-index: 4; width: min(520px, 100%); margin: 8px auto 0; padding: 10px 12px; background: #FFFDF7; border: 2px solid #fff; border-radius: 20px; box-shadow: var(--shadow); animation: panel-in .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px) scale(.96) } to { opacity: 1; transform: none } }
.action-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--ink-faint); }
.action-head b { font-size: 12px; color: var(--deep); }
.action-btn { width: 100%; margin-top: 6px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 14px; background: var(--soft); border: 1.5px solid #fff; transition: transform .16s; }
.action-btn:hover { transform: translateY(-2px); }
.action-btn.done { opacity: .6; transform: none; }
.action-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c); }
.action-icon .icon { width: 20px; height: 20px; }
.action-label { font-size: 14px; font-weight: 800; }
.action-text { margin-top: 6px; font-size: 10.5px; line-height: 1.55; color: var(--ink-soft); }
.action-anim { position: absolute; right: 14px; bottom: 10px; width: 44px; height: 44px; pointer-events: none; }
.action-anim i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
.feel-action.doing .action-anim i { animation: breathe 2.4s ease-out infinite; }
.feel-action.doing .action-anim i:nth-child(2) { animation-delay: .6s; }
.feel-action.doing .action-anim i:nth-child(3) { animation-delay: 1.2s; }
@keyframes breathe { 0% { transform: scale(.4); opacity: .8 } 100% { transform: scale(1.8); opacity: 0 } }
.feel-feedback { position: relative; z-index: 3; text-align: center; font-size: 10.5px; color: #8C7B5D; margin-top: 6px; min-height: 16px; }
.feel-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.feel-sparkles i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #F2C94C; left: calc(8% + var(--i) * 9%); top: calc(30% + (var(--i) % 4) * 10%); opacity: .5; animation: floaty 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }

/* ---------------- 音乐 ---------------- */
.music-scene { position: relative; min-height: 590px; padding: 6px 20px 14px; overflow: hidden; background: linear-gradient(180deg, #D9F4F1 0%, #EDF9F4 54%, #FFF9EE 100%); }
.music-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.music-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.mb1 { width: 300px; height: 300px; left: -100px; top: 10%; background: #C8ECE5; }
.mb2 { width: 240px; height: 240px; right: -80px; top: 28%; background: #D9F1E6; }
.music-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: #FDF3DC; border-radius: 50% 50% 0 0 / 18% 18% 0 0; opacity: .8; }
.music-note { position: absolute; font-size: 26px; color: #6FC7BF; opacity: .6; animation: note-float 6s ease-in-out infinite; }
.music-note.n1 { left: 7%; top: 18%; } .music-note.n2 { right: 8%; top: 26%; animation-delay: -2s; font-size: 34px; } .music-note.n3 { left: 16%; bottom: 24%; animation-delay: -4s; }
@keyframes note-float { 0%,100% { transform: translateY(0) rotate(-6deg) } 50% { transform: translateY(-14px) rotate(6deg) } }
.music-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 0; }
.music-round { font-size: 11px; color: #2E7A76; background: rgba(255,255,255,.66); padding: 6px 12px; border-radius: 999px; border: 1px solid #fff; white-space: nowrap; }
.music-round b { font-size: 16px; color: #22827C; }
.music-pattern { display: flex; align-items: center; gap: 7px; min-height: 28px; padding: 4px 10px; background: rgba(255,255,255,.55); border-radius: 999px; }
.music-pattern i { width: 20px; height: 20px; border-radius: 50%; background: rgba(69,184,176,.18); position: relative; transition: transform .15s, background .15s; }
.music-pattern i.drum { background: rgba(232,93,93,.18); }
.music-pattern i::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgba(69,184,176,.5); }
.music-pattern i.drum::after { background: rgba(232,93,93,.6); }
.music-pattern i.on { transform: scale(1.35); box-shadow: 0 0 0 3px #fff; }
.music-pattern i.hit { background: #45B8B0; } .music-pattern i.hit::after { background: #fff; }
.music-stage { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr) minmax(0, .85fr); align-items: end; gap: clamp(6px, 2vw, 24px); flex: 1; padding: 12px 0 4px; }
.instrument { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 8px; border-radius: 26px; background: rgba(255,253,247,.55); border: 2px solid rgba(255,255,255,.8); box-shadow: var(--shadow-sm); transition: transform .15s, background .15s; touch-action: manipulation; }
.instrument:hover { transform: translateY(-3px); background: rgba(255,253,247,.9); }
.instrument svg { width: 100%; max-width: 160px; height: auto; }
.instrument .inst-name { font-size: 11px; font-weight: 800; color: #33716C; }
.instrument.pulse { animation: inst-pulse .4s ease; background: #FFFDF7; }
@keyframes inst-pulse { 0%,100% { transform: scale(1) } 40% { transform: scale(1.05) rotate(-2deg) } }
.inst-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(242,201,76,.35), transparent 65%); opacity: 0; transition: opacity .2s; }
.instrument.pulse .inst-glow { opacity: 1; }
.xylophone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding: 12px 8px 8px; border-radius: 26px; background: rgba(255,253,247,.6); border: 2px solid rgba(255,255,255,.8); box-shadow: var(--shadow-sm); }
.xylo-bar { position: relative; width: var(--w); height: clamp(24px, 4.2vw, 34px); border-radius: 10px; background: var(--c); border: 2.5px solid #4B4353; box-shadow: inset 0 4px 0 rgba(255,255,255,.3), 0 3px 0 rgba(0,0,0,.08); transition: transform .1s; }
.xylo-bar i { position: absolute; left: 50%; top: 50%; width: 18%; height: 34%; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(255,255,255,.35); }
.xylo-bar:nth-child(even) { transform: translateX(6%); }
.xylo-bar:active, .xylo-bar.ring { transform: translateX(4%) scale(1.04); filter: brightness(1.08); }
.xylo-name { font-size: 11px; font-weight: 800; color: #33716C; margin-top: 3px; }
.xylo-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(242,201,76,.4), transparent 65%); opacity: .5; pointer-events: none; }
.music-bottom { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 4px; }
.listen-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px; background: #FFFDF7; color: #22827C; font-size: 12px; font-weight: 800; box-shadow: var(--shadow-sm); border: 2px solid #fff; }
.listen-btn .icon { width: 18px; height: 18px; }
.music-feedback { font-size: 11px; color: #5D7C78; min-height: 18px; text-align: center; }
.music-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.music-sparkles i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #FFD465; left: calc(6% + var(--i) * 10%); top: calc(20% + (var(--i) % 3) * 14%); animation: floaty 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.5s); opacity: .65; }

/* ---------------- 完成弹层 ---------------- */
.finish-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(58, 50, 66, .32); backdrop-filter: blur(9px); opacity: 0; transition: opacity .3s; overflow-y: auto; }
.finish-overlay.show { opacity: 1; }
.finish-card { position: relative; width: min(460px, 100%); margin: auto; padding: 26px 24px 22px; background: var(--paper); border-radius: 32px; box-shadow: var(--shadow-lg); text-align: center; transform: translateY(16px) scale(.96); transition: transform .35s cubic-bezier(.34,1.56,.64,1); overflow: hidden; }
.finish-overlay.show .finish-card { transform: none; }
.finish-sticker { width: 128px; height: 128px; margin: 0 auto 2px; animation: sticker-in .7s cubic-bezier(.34,1.56,.64,1) .1s both; }
.finish-sticker .sticker-art { width: 100%; height: 100%; filter: drop-shadow(0 10px 14px rgba(76,58,73,.16)); }
@keyframes sticker-in { from { transform: scale(.3) rotate(-18deg); opacity: 0 } to { transform: scale(1) rotate(0); opacity: 1 } }
.finish-kicker { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: #B9852D; }
.finish-card h2 { margin-top: 2px; font-size: 30px; letter-spacing: .04em; }
.finish-text { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.finish-tip { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #FFF4DF; text-align: left; }
.finish-tip b { display: block; font-size: 10px; color: #B9852D; letter-spacing: .06em; margin-bottom: 3px; }
.finish-tip span { font-size: 11px; line-height: 1.65; color: #6E5D47; }
.finish-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.primary-btn, .soft-btn, .danger-btn { min-height: 48px; padding: 0 18px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13.5px; font-weight: 800; transition: transform .16s, box-shadow .16s, background .16s; }
.primary-btn { background: var(--coral); color: #fff; box-shadow: 0 8px 18px rgba(213,84,110,.22); }
.primary-btn:hover { transform: translateY(-2px); background: #E8607D; }
.soft-btn { background: #FFF4DF; color: #7E6240; border: 1.5px solid #F0DFC3; }
.soft-btn:hover { background: #FFEDD1; }
.danger-btn { background: #FFF0F0; color: #C84A4A; border: 1.5px solid #F4D2D2; }
.primary-btn .icon, .soft-btn .icon { width: 18px; height: 18px; }
.finish-stickers { margin-top: 10px; color: var(--ink-soft); font-size: 11px; }
.finish-confetti { position: absolute; inset: 0; pointer-events: none; }
.finish-confetti i { position: absolute; left: 50%; top: 30%; width: 7px; height: 11px; border-radius: 2px; background: var(--coral); opacity: 0; }
.finish-confetti i:nth-child(3n) { background: var(--yellow); }
.finish-confetti i:nth-child(3n+1) { background: var(--green); }
.finish-confetti i:nth-child(4n) { background: var(--blue); }
.finish-overlay.show .finish-confetti i { animation: confetti 1.4s ease-out forwards; animation-delay: calc(var(--i) * 18ms); }
@keyframes confetti { 0% { opacity: 0; transform: translate(0,0) rotate(0) } 15% { opacity: 1 } 100% { opacity: 0; transform: translate(calc(-160px + var(--i) * 26px), calc(120px + (var(--i) % 4) * 34px)) rotate(calc(var(--i) * 42deg)) } }
.error-card { margin: auto; text-align: center; padding: 30px; background: var(--paper); border-radius: 24px; }

/* ---------------- 弹层 / 家长 ---------------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(58,50,66,.38); backdrop-filter: blur(8px); opacity: 0; transition: opacity .22s; overflow-y: auto; }
.modal-backdrop.in { opacity: 1; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F6EFE2; color: var(--ink-soft); flex: none; transition: background .15s; }
.modal-close:hover { background: #EFE5D3; color: var(--ink); }
.gate-card { position: relative; width: min(430px, 100%); margin: auto; padding: 34px 30px 24px; background: var(--paper); border-radius: 30px; box-shadow: var(--shadow-lg); text-align: center; transform: translateY(12px) scale(.97); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.modal-backdrop.in .gate-card { transform: none; }
.gate-card .modal-close { position: absolute; right: 16px; top: 16px; }
.gate-icon { width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-items: center; background: #FFF0D2; color: #B9852D; }
.gate-icon .icon { width: 32px; height: 32px; }
.gate-kicker { font-size: 10px; font-weight: 800; letter-spacing: .2em; color: #B9852D; }
.gate-card h2 { margin-top: 3px; font-size: 25px; }
.gate-sub { margin-top: 8px; font-size: 12px; color: var(--ink-soft); line-height: 1.8; }
.hold-btn { position: relative; width: 100%; min-height: 62px; margin-top: 20px; border-radius: 18px; overflow: hidden; background: #F7EFE2; border: 2px solid #EBDCC4; color: #7E6240; font-size: 14px; font-weight: 800; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #F7D488, #F2C94C); transition: width .08s linear; }
.hold-label { position: relative; z-index: 1; }
.gate-foot { margin-top: 14px; font-size: 10px; color: var(--ink-faint); line-height: 1.7; }

.parent-panel, .sticker-panel { width: min(900px, 100%); max-height: min(90dvh, 900px); margin: auto; display: flex; flex-direction: column; background: var(--paper); border-radius: 30px; box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(10px); transition: transform .25s; }
.modal-backdrop.in .parent-panel, .modal-backdrop.in .sticker-panel { transform: none; }
.parent-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); flex: none; }
.parent-title { display: flex; align-items: center; gap: 12px; }
.parent-badge { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #FFF0D2; color: #B9852D; flex: none; }
.parent-badge.yellow { background: #FFF3C4; color: #A77B12; }
.parent-badge .icon { width: 24px; height: 24px; }
.parent-title h2 { font-size: 21px; }
.parent-title p { font-size: 10.5px; color: var(--ink-soft); margin-top: 1px; }
.parent-tabs { display: flex; gap: 4px; padding: 10px 22px; background: #FBF4E7; border-bottom: 1px solid var(--line); flex: none; }
.parent-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #857A6C; transition: background .15s, color .15s; }
.parent-tabs button .icon { width: 17px; height: 17px; }
.parent-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.parent-body { padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.panel-kicker { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #B9852D; }
.big-num { display: block; font-size: 44px; line-height: 1.1; letter-spacing: -.03em; }
.big-num small { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-left: 4px; }
.muted { font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; }
.overview-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.time-ring { width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--yellow) calc(var(--p) * 1%), #F2E8D6 0); position: relative; }
.time-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--paper); }
.time-ring span { position: relative; font-size: 15px; font-weight: 800; color: #9A7420; }
.limit-bar { height: 8px; border-radius: 99px; background: #F3EADB; margin-top: 12px; overflow: hidden; }
.limit-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #F7D488, #F2C94C); transition: width .4s; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat-card { padding: 11px 12px; border-radius: 14px; background: #FBF5EA; }
.stat-card b { display: block; font-size: 21px; line-height: 1.2; }
.stat-card span { font-size: 9.5px; color: var(--ink-soft); }
.panel-h { font-size: 13px; margin: 20px 0 8px; letter-spacing: .03em; }
.week-chart { display: flex; align-items: flex-end; gap: 8px; height: 124px; padding: 8px 10px 0; background: #FBF5EA; border-radius: 16px; }
.week-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; }
.week-bar { width: 100%; max-width: 28px; border-radius: 7px 7px 3px 3px; background: #E7DAC5; position: relative; transition: height .4s; }
.week-col.today .week-bar { background: linear-gradient(180deg, #F7D488, #F2C94C); }
.week-bar i { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); font-style: normal; font-size: 8.5px; color: #8C7B63; }
.week-col em { font-style: normal; font-size: 9px; color: #9B8D79; }
.week-col.today em { color: #A77B12; font-weight: 800; }
.chart-note { font-size: 9.5px; color: var(--ink-faint); margin-top: 6px; }
.domain-list { display: grid; gap: 7px; }
.domain-row { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 8px; font-size: 10.5px; }
.domain-row > span:first-child { color: #6D6475; }
.domain-track { height: 8px; border-radius: 99px; background: #F3EADB; overflow: hidden; }
.domain-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8ED3C8, #45B8B0); }
.domain-row em { font-style: normal; font-size: 9.5px; color: var(--ink-faint); text-align: right; }
.empty-note { padding: 14px; border-radius: 14px; background: #FBF5EA; font-size: 10.5px; color: #8C7E6D; line-height: 1.7; }
.played-list { display: grid; gap: 6px; }
.played-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #FBF5EA; }
.played-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.played-item div { flex: 1; min-width: 0; } .played-item b { display: block; font-size: 11.5px; } .played-item small { font-size: 9px; color: var(--ink-faint); }
.played-sticker { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; color: #B9852D; }
.played-sticker .icon { width: 12px; height: 12px; }
.privacy-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 18px; padding: 10px 12px; border-radius: 12px; background: #F1F7F2; color: #5D7C65; font-size: 9.5px; line-height: 1.65; }
.privacy-note .icon { width: 14px; height: 14px; margin-top: 1px; flex: none; }
.age-note { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 10px 13px; border-radius: 13px; background: #FFF4DF; margin-bottom: 12px; }
.age-note b { font-size: 12px; color: #8E6A2B; } .age-note span { font-size: 10.5px; color: #8C7B5D; }
.tip-grid { display: grid; gap: 8px; }
.tip-card { position: relative; padding: 13px 14px 13px 46px; border-radius: 15px; background: #FBF5EA; }
.tip-num { position: absolute; left: 13px; top: 13px; font-size: 10px; font-weight: 800; color: #B9852D; }
.tip-card h3 { font-size: 12.5px; }
.tip-card p { margin-top: 3px; font-size: 10.5px; line-height: 1.7; color: #6D6475; }
.offline-inline { display: flex; gap: 10px; margin-top: 12px; padding: 13px; border-radius: 15px; background: #F1F7F2; }
.offline-inline-icon { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: #DFF2E3; color: var(--green-deep); }
.offline-inline-icon .icon { width: 19px; height: 19px; }
.offline-inline b { font-size: 11px; color: var(--green-deep); }
.offline-inline p { font-size: 11px; margin-top: 2px; line-height: 1.6; }
.offline-inline small { font-size: 9px; color: #7C957F; }
.principle-list { display: grid; gap: 1px; border-radius: 15px; overflow: hidden; background: #EFE5D4; }
.principle { display: flex; gap: 11px; padding: 11px 13px; background: #FBF5EA; }
.principle > span { font-size: 9px; font-weight: 800; color: #B9852D; padding-top: 2px; }
.principle b { font-size: 11.5px; } .principle p { font-size: 10px; line-height: 1.7; color: #6D6475; margin-top: 2px; }
.ref-list { display: grid; gap: 6px; padding-left: 16px; }
.ref-list li { font-size: 9.5px; line-height: 1.65; color: #756B7E; }
.ref-foot { margin-top: 10px; font-size: 9px; line-height: 1.65; color: #A0949F; }
.setting-group { padding: 4px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.setting-group:last-of-type { border-bottom: 0; }
.setting-group h3 { font-size: 13px; }
.setting-note { font-size: 10px; line-height: 1.7; color: var(--ink-soft); margin: 3px 0 9px; }
.segmented { display: flex; gap: 6px; background: #F5EDDF; padding: 4px; border-radius: 13px; }
.segmented button { flex: 1; min-height: 38px; border-radius: 10px; font-size: 11.5px; font-weight: 700; color: #877C6C; }
.segmented button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; }
.switch-row b { display: block; font-size: 11.5px; } .switch-row span { display: block; font-size: 9.5px; color: var(--ink-faint); }
.switch { width: 46px; height: 27px; border-radius: 99px; background: #E4DACB; position: relative; flex: none; transition: background .2s; }
.switch i { position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.12); transition: transform .2s; }
.switch.on { background: var(--green); } .switch.on i { transform: translateX(19px); }
.reset-confirm { margin-top: 10px; padding: 12px; background: #FFF0F0; border-radius: 13px; }
.reset-confirm p { font-size: 10.5px; color: #A94B4B; margin-bottom: 8px; }
.reset-confirm button { min-height: 38px; font-size: 11px; margin-right: 6px; }
.about-box { padding: 14px; border-radius: 15px; background: #FBF5EA; }
.about-box b { font-size: 11.5px; } .about-box p { font-size: 10px; line-height: 1.7; color: #6D6475; margin-top: 4px; } .about-box span { display: block; margin-top: 6px; font-size: 8.5px; color: var(--ink-faint); }

/* ---------------- 贴纸册 ---------------- */
.sticker-intro { padding: 12px 22px 0; font-size: 10.5px; line-height: 1.7; color: var(--ink-soft); flex: none; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; padding: 14px 22px 8px; overflow-y: auto; }
.sticker-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; background: #FBF5EA; border-radius: 18px; border: 2px solid transparent; transition: transform .16s, border .16s; }
.sticker-cell.got { background: linear-gradient(180deg, #FFFDF7, var(--soft)); border-color: #fff; box-shadow: var(--shadow-sm); }
.sticker-cell:hover { transform: translateY(-3px); }
.sticker-img { width: 78px; height: 78px; display: grid; place-items: center; }
.sticker-img .sticker-art { width: 100%; height: 100%; }
.sticker-cell.got .sticker-art { filter: drop-shadow(0 5px 7px rgba(76,58,73,.12)); }
.sticker-lock { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #EEE6D9; color: #B7AB9B; }
.sticker-lock .icon { width: 22px; height: 22px; }
.sticker-cell b { font-size: 11.5px; }
.sticker-cell small { font-size: 8.5px; color: var(--ink-faint); }
.cell-dots { display: flex; gap: 3px; margin-top: 1px; }
.cell-dots i { width: 5px; height: 5px; border-radius: 50%; background: #E0D5C5; } .cell-dots i.on { background: var(--c, var(--coral)); }
.sticker-foot { padding: 10px 22px 20px; display: flex; justify-content: center; flex: none; }
.sticker-foot .primary-btn { min-width: 220px; }

/* ---------------- 休息提醒 ---------------- */
.rest-card { width: min(420px, 100%); margin: auto; padding: 26px 28px 22px; background: var(--paper); border-radius: 30px; box-shadow: var(--shadow-lg); text-align: center; }
.rest-art { width: 130px; margin: 0 auto 4px; } .rest-art svg { width: 100%; height: auto; }
.rest-card h2 { font-size: 24px; margin-top: 3px; }
.rest-card p { margin-top: 7px; font-size: 12px; line-height: 1.8; color: var(--ink-soft); }
.rest-actions { display: grid; gap: 8px; margin-top: 16px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1.25fr .75fr; min-height: 340px; }
  .hero-visual { min-height: 280px; }
  .island-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticker-book { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .home-head { padding: calc(14px + var(--safe-top)) 18px 0; }
  .brand-mark { width: 47px; height: 47px; border-radius: 15px; }
  .brand-mark svg { width: 39px; height: 39px; }
  .brand-text b { font-size: 19px; }
  .brand-text small { font-size: 9.5px; }
  .round-btn { width: 43px; height: 43px; }
  .head-actions { gap: 7px; }
  .home-sun { width: 86px; top: calc(52px + var(--safe-top)); right: 3%; }
  .home-cloud.c1 { width: 116px; top: 130px; left: -2%; }
  .home-cloud.c2 { width: 76px; top: 72px; right: 16%; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 24px 18px 8px; }
  .hero-visual { position: absolute; right: 2%; top: 24px; width: 138px; min-height: 150px; opacity: .96; }
  .hero-visual .float-shape { display: none; }
  .hero-ground { bottom: 12px; }
  .hero-sprout { width: 138px; }
  .hello-bubble { display: none; }
  .hero-copy { position: relative; z-index: 4; padding-right: 105px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); margin-top: 13px; }
  .hero-sub { font-size: 12.5px; margin-top: 11px; line-height: 1.75; }
  .hero-btn { min-height: 54px; font-size: 14.5px; padding: 0 16px 0 14px; margin-top: 16px; width: 100%; }
  .hero-btn .btn-arrow { margin-left: auto; }
  .hero-badges { gap: 6px 12px; margin-top: 12px; font-size: 10px; }
  .home-meta { padding: 0 18px; margin-top: 2px; font-size: 10.5px; }
  .islands { padding: 24px 18px 0; }
  .section-head h2 { font-size: 21px; }
  .section-head p { font-size: 10.5px; }
  .section-count { display: none; }
  .island-grid { gap: 10px; }
  .island-card { min-height: 224px; padding: 11px 12px 10px; border-radius: 22px; }
  .island-art { width: 104px; height: 92px; right: 0; top: 2px; }
  .island-body { margin-top: 72px; }
  .island-title { font-size: 16px; }
  .island-blurb { font-size: 10.5px; }
  .island-tags em { font-size: 8.5px; padding: 2px 5px; }
  .island-tags i { font-size: 8.5px; }
  .island-foot { padding-top: 8px; }
  .island-plays { font-size: 8.5px; }
  .sticker-dots i { width: 7px; height: 7px; }
  .sticker-book { padding: 12px 14px; border-radius: 22px; gap: 10px; }
  .book-art { width: 74px; height: 52px; }
  .book-art .sticker-art { width: 50px; height: 50px; }
  .book-art .b2 { left: 16px; } .book-art .b3 { left: 33px; }
  .book-copy b { font-size: 14.5px; }
  .book-copy span { font-size: 10px; }
  .book-copy em { display: none; }
  .offline-card { margin: 14px 18px 0; padding: 14px 15px; gap: 12px; border-radius: 21px; }
  .offline-icon { width: 44px; height: 44px; border-radius: 14px; }
  .offline-copy p { font-size: 12.5px; }
  .offline-copy small { font-size: 9.5px; }
  .home-foot { margin-top: 22px; padding: 16px 18px 0; font-size: 9.5px; gap: 5px 12px; }
  .foot-copy { width: 100%; margin-left: 0; }
  .home-sky { height: 540px; }

  .game-bar { padding: calc(8px + var(--safe-top)) 12px 4px; grid-template-columns: 42px minmax(0,1fr) 42px; gap: 8px; }
  .game-heading h2 { font-size: 16px; }
  .game-heading-top span { font-size: 9px; padding: 2px 6px; }
  .game-progress i { width: 12px; } .game-progress i.now { width: 18px; }
  .game-prompt { width: calc(100% - 20px); padding: 7px 12px 7px 8px; border-radius: 17px; margin-top: 4px; }
  .prompt-speak { width: 34px; height: 34px; }
  .game-prompt b { font-size: 12.5px; }
  .game-prompt span { font-size: 9.5px; }
  .garden-scene, .peek-scene, .cafe-scene, .count-scene, .shapes-scene, .feel-scene, .music-scene { padding-left: 10px; padding-right: 10px; min-height: calc(100dvh - 100px); }
  .garden-top { padding: 6px 8px 0; }
  .garden-hint { max-width: 150px; }
  .garden-hint .sprout-guide { width: 42px; height: 42px; }
  .garden-hint span { font-size: 8.5px; padding: 5px 7px; }
  .garden-counter { font-size: 9px; padding: 6px 10px; }
  .garden-counter b { font-size: 18px; }
  .flower { height: clamp(128px, 21vh, 180px); }
  .flower-bloom { width: clamp(68px, 20vw, 88px); height: clamp(68px, 20vw, 88px); }
  .flower-leaf.fl { left: calc(50% - 30px); width: 28px; height: 16px; }
  .flower-leaf.fr { right: calc(50% - 30px); width: 28px; height: 16px; }
  .garden-note { font-size: 9px; }
  .garden-field { gap: 0; }

  .peek-top, .cafe-top, .count-top, .shape-top, .feel-top { padding: 6px 6px 0; }
  .peek-guide, .shape-guide, .feel-guide { max-width: 138px; }
  .peek-guide .sprout-guide, .shape-guide .sprout-guide, .feel-guide .sprout-guide { width: 40px; height: 40px; }
  .peek-guide span, .shape-guide span, .feel-guide span { font-size: 8.5px; padding: 5px 7px; }
  .peek-field { gap: 4px; min-height: 290px; }
  .bush { width: clamp(92px, 27vw, 118px); height: 176px; }
  .bush-face { opacity: .4; }
  .peek-animal { width: clamp(74px, 20vw, 96px); }
  .peek-bottom { padding-top: 2px; }

  .cafe-bear { width: min(190px, 40vw); }
  .cafe-table { width: 190px; }
  .order-bubble { padding: 8px 10px 8px 7px; border-radius: 15px 15px 15px 4px; }
  .order-bubble p { font-size: 12px; }
  .cafe-tray { gap: 7px; padding: 7px; border-radius: 20px; }
  .cafe-tray .food-card { min-height: 86px; padding: 5px 7px; gap: 5px; border-radius: 15px; }
  .food-img { width: 48px; height: 48px; }
  .food-name { font-size: 11px; }
  .cafe-feedback { font-size: 10px; }

  .count-field { min-height: 256px; }
  .apple-tree { width: clamp(168px, 46vw, 220px); height: clamp(234px, 36vh, 300px); }
  .count-basket { margin-bottom: 54px; width: 56px; }
  .count-basket span { font-size: 26px; }
  .count-basket small { font-size: 8px; }
  .count-card { padding: 5px 10px; gap: 4px; font-size: 9px; border-radius: 14px; }
  .count-card b { font-size: 22px; }
  .count-round { font-size: 9px; padding: 4px 8px; }
  .count-round b { font-size: 13px; }
  .train { padding: 0 2% 6px; }
  .engine { width: 58px; height: 80px; }
  .wagon { height: 54px; max-width: 64px; }
  .train-track { bottom: 14px; }
  .count-feedback { font-size: 9.5px; }

  .shape-house { width: min(290px, 84vw); height: 250px; }
  .house-roof { border-left-width: min(160px, 42vw); border-right-width: min(160px, 42vw); border-bottom-width: min(82px, 22vw); }
  .house-roof::after { left: calc(min(160px, 42vw) * -1 + 8px); top: min(82px, 22vw); width: calc(min(320px, 84vw) - 16px); }
  .house-body { top: min(76px, 20vw); left: 6%; right: 6%; }
  .shape-hole { width: clamp(56px, 16vw, 72px); height: clamp(56px, 16vw, 72px); }
  .shape-tray { gap: 4px; padding: 6px; min-height: 96px; border-radius: 19px; }
  .shape-piece { width: clamp(64px, 20vw, 82px); height: clamp(76px, 22vw, 92px); }
  .shape-piece svg { width: clamp(50px, 15vw, 66px); height: clamp(50px, 15vw, 66px); }
  .piece-name { font-size: 8.5px; }
  .shape-feedback { font-size: 9.5px; }

  .feel-scene-card { padding: 6px 10px 6px 6px; border-radius: 18px; gap: 6px; }
  .feel-art { width: 82px; }
  .feel-text { font-size: 11.5px; line-height: 1.55; }
  .feel-question { font-size: 10px; margin-top: 6px; }
  .feel-faces { gap: 6px; }
  .feel-face { padding: 4px 7px 4px 4px; border-radius: 15px; }
  .feel-face .face-img { width: 42px; }
  .face-name { font-size: 12.5px; }
  .face-weather { font-size: 8px; padding: 2px 5px; }
  .feel-action { padding: 8px 10px; border-radius: 16px; }
  .action-label { font-size: 12.5px; }
  .action-text { font-size: 9.5px; }

  .music-stage { gap: 5px; padding: 6px 0 2px; }
  .instrument { padding: 5px; border-radius: 18px; }
  .instrument .inst-name, .xylo-name { font-size: 9px; }
  .xylophone { padding: 7px 5px 5px; border-radius: 18px; gap: 2px; }
  .xylo-bar { height: 22px; border-width: 2px; border-radius: 7px; }
  .music-pattern i { width: 15px; height: 15px; }
  .music-round { font-size: 9px; padding: 4px 8px; }
  .music-round b { font-size: 13px; }
  .listen-btn { padding: 8px 14px; font-size: 11px; }
  .music-feedback { font-size: 9.5px; }

  .finish-card { padding: 22px 18px 18px; border-radius: 26px; }
  .finish-card h2 { font-size: 25px; }
  .finish-sticker { width: 106px; height: 106px; }
  .finish-tip { padding: 10px 12px; }
  .finish-tip span { font-size: 10px; }
  .finish-actions { margin-top: 12px; }
  .primary-btn, .soft-btn { min-height: 44px; font-size: 12px; }

  .modal-backdrop { padding: 10px; }
  .gate-card { padding: 28px 20px 20px; border-radius: 25px; }
  .gate-card h2 { font-size: 22px; }
  .parent-panel, .sticker-panel { max-height: 94dvh; border-radius: 24px; }
  .parent-head { padding: 14px 15px 10px; }
  .parent-tabs { padding: 8px 15px; gap: 1px; overflow-x: auto; }
  .parent-tabs button { padding: 8px 10px; font-size: 10.5px; white-space: nowrap; }
  .parent-body { padding: 14px 15px 20px; }
  .big-num { font-size: 37px; }
  .time-ring { width: 70px; height: 70px; }
  .stat-card b { font-size: 18px; }
  .week-chart { gap: 5px; height: 110px; }
  .sticker-grid { padding: 10px 15px 6px; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .sticker-img { width: 64px; height: 64px; }
  .sticker-cell b { font-size: 10.5px; }
  .sticker-foot { padding: 8px 15px 15px; }
  .sticker-foot .primary-btn { min-width: 180px; }
}
@media (max-width: 390px) {
  .hero-copy { padding-right: 88px; }
  .hero-visual { width: 116px; right: 1%; }
  .hero-sprout { width: 116px; }
  .hero h1 { font-size: 29px; }
  .hero-badges span:nth-child(3) { display: none; }
  .island-card { min-height: 210px; }
  .island-art { width: 92px; height: 82px; }
  .island-body { margin-top: 64px; }
  .island-title { font-size: 15px; }
  .island-blurb { font-size: 9.5px; }
  .island-tags i { display: none; }
  .book-art { width: 58px; height: 46px; }
  .book-art .sticker-art { width: 44px; height: 44px; }
  .book-art .b2 { left: 9px; } .book-art .b3 { left: 22px; }
  .garden-field.six { grid-template-columns: repeat(2, 1fr); }
  .garden-field.six .flower:nth-child(5), .garden-field.six .flower:nth-child(6) { height: 120px; }
  .count-card .count-dots { display: none; }
  .feel-text { font-size: 10.5px; }
  .face-weather { display: none; }
}
@media (max-height: 680px) and (orientation: landscape) {
  .game-stage, .garden-scene, .peek-scene, .cafe-scene, .count-scene, .shapes-scene, .feel-scene, .music-scene { min-height: 0; }
  .garden-scene, .peek-scene, .cafe-scene, .count-scene, .shapes-scene, .feel-scene, .music-scene { padding-bottom: 6px; }
  .flower { height: 128px; }
  .shape-house { height: 200px; }
  .cafe-bear { width: 160px; }
  .music-stage { min-height: 210px; }
  .game-prompt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
[data-calm="1"] .home-cloud, [data-calm="1"] .float-shape, [data-calm="1"] .garden-butterfly,
[data-calm="1"] .fireflies i, [data-calm="1"] .music-note, [data-calm="1"] .feel-sparkles i,
[data-calm="1"] .music-sparkles i, [data-calm="1"] .tree-apples i, [data-calm="1"] .flower,
[data-calm="1"] .scene-sun { animation: none !important; }
[data-calm="1"] .finish-confetti { display: none; }

/* ---------------- 首次欢迎 ---------------- */
.welcome {
  position: relative; min-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(26px + var(--safe-top)) 18px calc(20px + var(--safe-bottom));
  background: linear-gradient(180deg, #C9E9F4 0%, #E7F5ED 48%, #FFF7E8 100%);
}
.welcome-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.w-sun { position: absolute; right: 6%; top: 4%; width: 118px; opacity: .95; animation: sun-turn 30s linear infinite; }
.w-cloud { position: absolute; width: 140px; opacity: .7; animation: drift 26s ease-in-out infinite; }
.w-cloud.wc1 { left: 2%; top: 16%; animation-delay: -6s; }
.w-cloud.wc2 { right: 12%; top: 40%; width: 90px; opacity: .45; animation-delay: -14s; }
.w-hill { position: absolute; border-radius: 50% 50% 0 0; bottom: -12%; }
.w-hill.h1 { left: -18%; width: 84%; height: 34%; background: #CFE9C9; opacity: .85; transform: rotate(5deg); }
.w-hill.h2 { right: -20%; width: 86%; height: 40%; background: #E6F1D6; transform: rotate(-4deg); }
.welcome-card {
  position: relative; z-index: 2; width: min(470px, 100%);
  padding: 24px 32px 22px; text-align: center;
  background: rgba(255, 252, 245, .88); border: 1.5px solid rgba(255,255,255,.95);
  border-radius: 36px; box-shadow: 0 30px 70px rgba(65, 92, 76, .16); backdrop-filter: blur(14px);
}
.welcome-art { position: relative; width: 160px; height: 150px; margin: 0 auto 4px; display: grid; place-items: center; }
.welcome-art .sprout { width: 150px; height: 150px; filter: drop-shadow(0 14px 18px rgba(72,81,62,.13)); animation: welcome-bob 4.2s ease-in-out infinite; }
@keyframes welcome-bob { 0%,100% { transform: translateY(0) rotate(-1deg) } 50% { transform: translateY(-7px) rotate(1deg) } }
.orbit { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(242,201,76,.15); }
.orbit.o1 { left: 2%; top: 24%; }
.orbit.o2 { right: 3%; top: 18%; width: 7px; height: 7px; background: var(--coral); box-shadow: 0 0 0 5px rgba(242,120,143,.12); }
.orbit.o3 { right: 8%; bottom: 20%; width: 6px; height: 6px; background: var(--teal); box-shadow: 0 0 0 5px rgba(69,184,176,.12); }
.welcome-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: .24em; color: #7B937E; }
.welcome h1 { margin-top: 5px; font-size: 38px; line-height: 1.2; letter-spacing: .01em; }
.welcome h1 em { font-style: normal; color: #C94E69; }
.welcome-sub { margin-top: 8px; font-size: 12px; line-height: 1.75; color: #5F6F66; }
.age-question { margin-top: 16px; font-size: 11px; font-weight: 800; color: #7E8E7D; letter-spacing: .06em; }
.age-choices { display: grid; gap: 8px; margin-top: 7px; }
.age-btn {
  display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 9px 13px;
  background: #FFFDF7; border: 2px solid #F3E7D2; border-radius: 19px; text-align: left;
  box-shadow: var(--shadow-sm); transition: transform .16s, border-color .16s, box-shadow .16s;
}
.age-btn:hover { transform: translateY(-2px); border-color: #F2C94C; box-shadow: 0 12px 24px rgba(76,58,73,.11); }
.age-btn:active { transform: scale(.985); }
.age-emoji { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 23px; border-radius: 14px; background: #F2F8EB; }
.age-btn > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.age-btn b { font-size: 16px; }
.age-btn small { font-size: 10px; color: #8A8192; }
.age-btn > .icon { width: 20px; height: 20px; color: #B5A58E; }
.welcome-note { margin-top: 12px; font-size: 8.5px; line-height: 1.6; color: #A3989F; }
.welcome-foot { position: relative; z-index: 2; margin-top: 12px; font-size: 8px; color: #8BA095; text-align: center; }
@media (max-width: 720px) {
  .welcome { justify-content: flex-start; padding-top: calc(20px + var(--safe-top)); }
  .welcome-card { padding: 16px 18px 16px; border-radius: 28px; }
  .welcome-art { width: 120px; height: 110px; margin-bottom: 0; }
  .welcome-art .sprout { width: 112px; height: 112px; }
  .welcome h1 { font-size: 32px; }
  .welcome-sub { font-size: 11px; }
  .age-question { margin-top: 12px; }
  .age-btn { min-height: 58px; padding: 7px 10px; border-radius: 16px; }
  .age-emoji { width: 36px; height: 36px; font-size: 20px; border-radius: 12px; }
  .age-btn b { font-size: 14.5px; }
  .age-btn small { font-size: 9px; }
  .w-sun { width: 82px; right: 3%; top: 2%; }
  .w-cloud.wc1 { width: 100px; top: 12%; }
  .welcome-foot { font-size: 7.5px; }
}
@media (max-height: 760px) {
  .welcome-card { padding-top: 12px; padding-bottom: 12px; }
  .welcome-art { width: 96px; height: 88px; }
  .welcome-art .sprout { width: 90px; height: 90px; }
  .welcome h1 { font-size: 30px; }
  .age-btn { min-height: 54px; }
}

/* 展示字体：站酷快乐体（自托管子集） */
.welcome h1, .hero h1, .section-head h2, .island-title, .game-heading h2,
.finish-card h2, .gate-card h2, .parent-title h2, .brand-text b,
.sticker-book b, .offline-copy p, .rest-card h2, .age-btn b, .book-copy b,
.parent-tabs button, .setting-group h3, .tip-card h3, .principle b {
  font-family: var(--font-display); font-weight: 400; letter-spacing: .015em;
}
.hero h1 { letter-spacing: .01em; }

/* ============================================================
   布局修订：让每个小游戏真正填满一屏
   ============================================================ */
.game-stage { min-height: 0; overflow: hidden; }
.garden-scene, .peek-scene, .cafe-scene, .count-scene, .shapes-scene, .feel-scene, .music-scene {
  height: 100%; min-height: 0 !important; overflow: hidden;
}
.hero h1 em { z-index: 0; }
.home-meta { flex-wrap: wrap; }

/* 首页第 7 座岛：横向特色卡 */
.island-card:nth-child(7) {
  grid-column: 1 / -1; min-height: 190px; flex-direction: row; align-items: center;
  background:
    radial-gradient(circle at 82% 22%, rgba(255,255,255,.6), transparent 36%),
    linear-gradient(120deg, #FFFDF7 0%, var(--soft) 75%);
}
.island-card:nth-child(7) .island-art { width: 230px; height: 180px; right: 4%; top: 6px; }
.island-card:nth-child(7) .island-body { margin-top: 0; max-width: 52%; gap: 6px; }
.island-card:nth-child(7) .island-title { font-size: 23px; }
.island-card:nth-child(7) .island-foot { position: absolute; left: 16px; bottom: 13px; right: auto; gap: 12px; }

/* 花园：紧凑、居中、有草地 */
.garden-scene::before {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -30px; height: 150px;
  background: radial-gradient(ellipse at 50% 100%, #D7EDBE 0%, #E9F4D6 55%, rgba(233,244,214,0) 78%);
  z-index: 1; pointer-events: none;
}
.garden-field { flex: 1; align-content: center; grid-template-rows: repeat(2, auto) !important; gap: 8px 2px; min-height: 0; }
.flower { height: clamp(164px, 24vh, 214px); }
.flower-bloom { width: clamp(86px, 25vw, 108px); height: clamp(86px, 25vw, 108px); }
.garden-bottom { margin-top: auto; }
.garden-butterfly { left: 5%; top: 25%; width: 34px; height: 28px; }
.garden-butterfly::before { content: ""; position: absolute; left: 50%; top: 4px; width: 4px; height: 20px; transform: translateX(-50%); border-radius: 4px; background: #4B4353; z-index: 2; }
.garden-butterfly::after { content: ""; position: absolute; left: 50%; top: -2px; width: 16px; height: 10px; transform: translateX(-50%); border-top: 2px solid #4B4353; border-radius: 50%; z-index: 2; }
.garden-butterfly i { border-radius: 60% 40% 55% 45%; }

/* 躲猫猫：把草丛放进画面下半部，动物更贴近草丛 */
.peek-scene { display: flex; flex-direction: column; }
.peek-field { flex: 1; min-height: 0; align-items: flex-end; padding: 0 0 4px; }
.peek-bottom { margin-top: auto; padding-bottom: 6px; }
.bush { width: clamp(102px, 27vw, 164px); height: clamp(164px, 25vh, 208px); }
.bush-face { opacity: .62; }
.bush-face i { width: 6px; height: 8px; }
.forest-tree { width: 92px; height: 220px; bottom: 6%; opacity: .2; }
.forest-tree.ft2 { opacity: .14; }
.forest-tree i { width: 84px; height: 84px; }
.forest-tree i:nth-child(2) { width: 66px; height: 64px; bottom: 160px; }
.forest-tree i:nth-child(3) { width: 46px; height: 44px; bottom: 210px; }
.forest-tree::before { height: 110px; width: 12px; }
.animal-slot { bottom: 50%; }

/* 小餐馆 */
.cafe-scene { display: flex; flex-direction: column; }
.cafe-bear-wrap { flex: 1; justify-content: center; min-height: 0; }
.cafe-bear { width: min(210px, 42vw); position: relative; z-index: 2; margin-top: 0; }
.cafe-table { z-index: 0; bottom: 2px; }
.cafe-window { display: none; }
.cafe-menu { display: none; }
.cafe-top { flex: none; }
.cafe-tray { margin-top: auto; flex: none; width: min(560px, 100%); }
.cafe-tray.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cafe-tray.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cafe-tray .food-card { flex-direction: column; justify-content: center; text-align: center; gap: 0; min-height: 124px; padding: 8px 6px; }
.cafe-tray.three .food-card { min-height: 136px; }
.cafe-tray .food-img { width: clamp(50px, 13vw, 70px); height: clamp(50px, 13vw, 70px); }
.cafe-tray .food-name { font-size: 12px; margin-top: 0; }
.cafe-feedback { flex: none; margin-top: 4px; padding-bottom: 2px; }

/* 数数小火车 */
.count-scene { display: flex; flex-direction: column; }
.count-field { flex: 1; min-height: 0; align-items: flex-end; }
.apple-tree { height: clamp(278px, 42vh, 342px); }
.count-basket { margin-bottom: 46px; }
.train { margin-top: auto; justify-content: center; flex: none; }
.count-feedback { flex: none; }
.count-scene .scene-sky { z-index: 0; }
.count-field, .count-top, .count-feedback { z-index: 3; }

/* 形状小屋 */
.shapes-scene { display: flex; flex-direction: column; }
.shape-work { flex: 1; }
.shape-tray-wrap { flex: none; margin-top: auto; }
.shape-feedback { flex: none; }

/* 情绪天气站 */
.feel-scene { display: flex; flex-direction: column; }
.feel-bottom { position: relative; z-index: 3; margin-top: auto; padding: 8px 0 4px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.feel-bottom-faces { display: flex; }
.feel-bottom-faces svg { width: 34px; height: 34px; margin-left: -9px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.75); }
.feel-bottom-faces svg:first-child { margin-left: 0; }
.feel-bottom p { font-size: 9.5px; color: #927E57; letter-spacing: .02em; }
.feel-action { flex: none; }

/* 音乐小乐队 */
.music-scene { display: flex; flex-direction: column; }
.music-stage { flex: 1; align-items: center; min-height: 0; }
.music-bottom { flex: none; margin-top: auto; }
.instrument { padding: 10px 8px 8px; }
.instrument svg { max-width: 170px; }
.xylophone { padding-top: 14px; }
.music-floor { height: 42%; }

/* 欢迎页：视口内居中 */
.welcome { justify-content: center; }
.age-emoji svg { width: 100%; height: 100%; }
.age-emoji.one { background: #EEF7E8; }
.age-emoji.two { background: #E6F4EA; }

@media (max-width: 720px) {
  .island-card:nth-child(7) { min-height: 154px; }
  .island-card:nth-child(7) .island-art { width: 142px; height: 122px; right: 3%; top: 8px; }
  .island-card:nth-child(7) .island-body { margin-top: 0; max-width: 58%; gap: 3px; }
  .island-card:nth-child(7) .island-title { font-size: 18px; }
  .island-card:nth-child(7) .island-blurb { font-size: 10px; }
  .island-card:nth-child(7) .island-foot { left: 12px; bottom: 9px; }
  .garden-field { gap: 2px 0; }
  .flower { height: clamp(146px, 22vh, 186px); }
  .garden-butterfly { top: 20%; }
  .peek-field { align-items: flex-end; }
  .bush { width: clamp(94px, 26vw, 120px); height: 172px; }
  .forest-tree { width: 62px; height: 170px; opacity: .16; }
  .forest-tree.ft2 { opacity: .1; }
  .forest-tree i { width: 58px; height: 58px; }
  .forest-tree i:nth-child(2) { width: 46px; height: 44px; bottom: 118px; }
  .forest-tree i:nth-child(3) { width: 32px; height: 30px; bottom: 152px; }
  .forest-tree::before { height: 78px; width: 9px; }
  .cafe-bear { width: min(186px, 40vw); }
  .cafe-tray .food-card { min-height: 112px; padding: 6px 5px; }
  .cafe-tray.three .food-card { min-height: 118px; }
  .cafe-tray .food-img { width: 52px; height: 52px; }
  .cafe-tray .food-name { font-size: 10.5px; }
  .cafe-tray { gap: 6px; }
  .apple-tree { height: clamp(232px, 35vh, 292px); }
  .count-basket { margin-bottom: 34px; }
  .shape-house { height: min(268px, 40vh); min-height: 242px; }
  .shape-work { padding-top: 0; }
  .feel-bottom { padding-top: 5px; }
  .feel-bottom p { font-size: 8.5px; }
  .feel-bottom-faces svg { width: 28px; height: 28px; }
  .music-stage { padding: 4px 0 2px; }
  .instrument svg { max-width: 120px; }
  .xylophone { justify-content: center; }
  .welcome { justify-content: center; }
}
@media (max-width: 390px) {
  .island-card:nth-child(7) .island-art { width: 120px; height: 108px; }
  .island-card:nth-child(7) .island-title { font-size: 17px; }
  .cafe-bear { width: 168px; }
  .bush { width: 92px; height: 164px; }
}

/* 让游戏场景真正占满一屏（修复百分比高度在 flex 中不生效） */
body.in-game, body.in-game #app { height: 100dvh; overflow: hidden; }
.game-view { height: 100dvh; min-height: 100dvh; }
.game-stage { flex: 1 1 0; min-height: 0; height: auto; }
.game-stage > .garden-scene, .game-stage > .peek-scene, .game-stage > .cafe-scene,
.game-stage > .count-scene, .game-stage > .shapes-scene, .game-stage > .feel-scene,
.game-stage > .music-scene { flex: 1 1 auto; height: auto; min-height: 0; }

/* 细节：小火车、情绪角、音乐指挥、餐馆桌面、形状草地 */
.count-field { align-items: center; }
.count-basket { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 0; align-self: center; }
.basket-art { position: relative; display: block; width: 74px; height: 50px; margin-bottom: 2px; background: repeating-linear-gradient(90deg, #D9A45E 0 7px, #C98A45 7px 14px); border: 2.5px solid #4B4353; border-radius: 5px 5px 18px 18px; box-shadow: inset 0 5px 0 rgba(255,255,255,.25); }
.basket-art::before { content: ""; position: absolute; left: -6px; right: -6px; top: -9px; height: 13px; border: 2.5px solid #4B4353; border-radius: 50%; background: #E8BE7A; }
.basket-art i { position: absolute; left: 50%; top: -14px; width: 44px; height: 20px; transform: translateX(-50%); border: 2.5px solid #4B4353; border-bottom: 0; border-radius: 50% 50% 0 0; }
.count-basket > span[data-basket] { font-size: 30px; margin-top: -2px; }
.count-birds { position: absolute; right: 8%; top: 18%; width: 60px; height: 60px; pointer-events: none; }
.count-birds i { position: absolute; width: 16px; height: 8px; border-top: 2px solid #7E9CA6; border-radius: 50%; }
.count-birds i:nth-child(1) { left: 0; top: 14px; transform: rotate(-8deg); }
.count-birds i:nth-child(2) { left: 22px; top: 6px; transform: rotate(5deg) scale(.8); }
.count-birds i:nth-child(3) { left: 38px; top: 30px; transform: rotate(-3deg) scale(.65); }

.cafe-table { position: relative; left: auto; right: auto; bottom: auto; width: min(250px, 55vw); height: 30px; margin: -28px auto 0; flex: none; }
.cafe-tray { margin-bottom: 2px; }

.shape-work { justify-content: flex-end; padding-bottom: 2px; position: relative; }
.shape-work::before {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -8px; height: 96px;
  background: radial-gradient(ellipse at 50% 100%, #D7EBC5, #EBF4D9 58%, rgba(235,244,217,0) 80%);
  border-radius: 50% 50% 0 0; pointer-events: none;
}
.shape-house { margin-top: auto; z-index: 1; }
.shape-tray { background: rgba(255,253,247,.78); }

.feel-calm { position: relative; flex: 1; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.calm-sprout { width: clamp(96px, 22vw, 126px); position: relative; z-index: 2; filter: drop-shadow(0 8px 10px rgba(120,90,60,.10)); }
.calm-cushion { position: absolute; bottom: 12%; width: 150px; height: 34px; border-radius: 50%; background: #F2C94C; border: 2.5px solid #C79B22; box-shadow: inset 0 8px 0 rgba(255,255,255,.25); }
.calm-cloud { position: absolute; width: 74px; height: 24px; border-radius: 30px; background: rgba(255,255,255,.7); }
.calm-cloud::before, .calm-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.calm-cloud::before { width: 32px; height: 32px; left: 12px; top: -15px; } .calm-cloud::after { width: 24px; height: 24px; right: 10px; top: -10px; }
.calm-cloud.cc1 { left: 8%; top: 22%; } .calm-cloud.cc2 { right: 6%; top: 38%; transform: scale(.75); }
.calm-heart { position: absolute; width: 12px; height: 12px; background: #F08CAE; transform: rotate(45deg); border-radius: 2px; animation: floaty 4s ease-in-out infinite; }
.calm-heart::before, .calm-heart::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: inherit; }
.calm-heart::before { left: -6px; } .calm-heart::after { top: -6px; }
.calm-heart.ch1 { left: 28%; top: 24%; animation-delay: -1s; }
.calm-heart.ch2 { right: 26%; top: 18%; transform: rotate(45deg) scale(.7); animation-delay: -2.2s; }
.calm-heart.ch3 { right: 33%; bottom: 20%; transform: rotate(45deg) scale(.5); animation-delay: -3.1s; }
.calm-label { position: relative; z-index: 2; margin-top: -2px; font-size: 9px; color: #9A8564; letter-spacing: .05em; }

.music-conductor { position: absolute; z-index: 4; left: 50%; top: 8%; width: 110px; height: 130px; transform: translateX(-50%); pointer-events: none; }
.conductor-spot { position: absolute; left: 50%; bottom: -10px; width: 100px; height: 24px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(242,201,76,.45), transparent 70%); }
.conductor-sprout { width: 100%; position: relative; z-index: 2; filter: drop-shadow(0 6px 8px rgba(50,90,80,.12)); animation: conductor-bob 2.2s ease-in-out infinite; }
.conductor-baton { position: absolute; z-index: 3; right: 6px; top: 40px; width: 34px; height: 2.5px; border-radius: 4px; background: #8C6B45; transform-origin: 0 50%; animation: baton 2.2s ease-in-out infinite; }
.conductor-baton::after { content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 8px; border-radius: 50%; background: #F2C94C; }
.conductor-note { position: absolute; right: -8px; top: 12px; font-size: 20px; color: #45B8B0; animation: floaty 3.2s ease-in-out infinite; }
@keyframes conductor-bob { 0%,100% { transform: translateY(0) rotate(-2deg) } 50% { transform: translateY(-4px) rotate(2deg) } }
@keyframes baton { 0%,100% { transform: rotate(-18deg) } 50% { transform: rotate(18deg) } }

@media (max-width: 720px) {
  .count-basket { transform: scale(.9); }
  .basket-art { width: 62px; height: 42px; }
  .count-basket > span[data-basket] { font-size: 24px; }
  .cafe-table { width: 190px; height: 24px; margin-top: -24px; }
  .shape-work::before { height: 82px; bottom: -10px; }
  .feel-calm { min-height: 86px; }
  .calm-sprout { width: 84px; }
  .calm-cushion { width: 120px; height: 26px; bottom: 10%; }
  .calm-label { font-size: 8px; }
  .music-conductor { width: 82px; height: 100px; top: 5%; }
  .conductor-baton { right: 2px; top: 30px; width: 26px; }
}
@media (max-height: 700px) {
  .music-conductor { display: none; }
  .feel-calm { min-height: 62px; }
  .calm-sprout { width: 68px; }
}

/* 餐馆：熊与桌子成为一组 */
.cafe-figure { position: relative; display: flex; flex-direction: column; align-items: center; flex: none; }
.cafe-table {
  position: relative; left: auto; right: auto; bottom: auto; top: auto;
  width: min(260px, 62vw); height: 20px; margin: -42px auto 0; flex: none; z-index: 3;
  background: linear-gradient(180deg, #E2B579, #C99555); border: 2.5px solid #4B4353;
  border-radius: 9px 9px 5px 5px; box-shadow: 0 7px 0 rgba(120, 80, 40, .10);
}
.cafe-table::before { content: ""; position: absolute; left: 12%; right: 12%; top: 100%; height: 34px; border-left: 9px solid #B9855B; border-right: 9px solid #B9855B; }
.cafe-table .plate { left: 33%; top: -16px; width: 54px; height: 16px; }
.cafe-table .cup { right: 27%; top: -24px; }
.cafe-bear { position: relative; z-index: 2; }
.cafe-bear-wrap { padding-top: 4px; }
.order-bubble { margin-bottom: 2px; }

/* 形状：整组居中，减少空洞 */
.shapes-scene { justify-content: flex-start; }
.shape-work { flex: none; margin-top: 12px; padding-bottom: 0; justify-content: flex-end; }
.shape-house { height: min(300px, 43vh); min-height: 250px; }
.shape-tray-wrap { margin-top: 4px; }
.shape-feedback { margin-top: 2px; }

/* 情绪：芽芽与坐垫成为一组 */
.calm-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.calm-cushion { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: 158px; height: 34px; z-index: 0; }
.calm-sprout { position: relative; z-index: 2; margin-bottom: 14px; }
.calm-label { position: relative; z-index: 2; margin-top: 0; }
.calm-heart.ch3 { bottom: 32%; }

/* 音乐指挥站到舞台中央上方 */
.music-conductor { top: 17%; }
.music-stage { margin-top: -8px; }

@media (max-width: 720px) {
  .cafe-table { width: 200px; height: 17px; margin-top: -36px; }
  .cafe-table::before { height: 26px; border-left-width: 7px; border-right-width: 7px; }
  .cafe-table .plate { width: 44px; height: 13px; left: 34%; top: -13px; }
  .cafe-table .cup { top: -19px; width: 20px; height: 18px; }
  .shape-work { margin-top: 8px; }
  .shape-house { height: 260px; min-height: 240px; }
  .shape-tray-wrap { margin-top: 2px; }
  .calm-cushion { width: 120px; height: 26px; bottom: 12px; }
  .calm-sprout { margin-bottom: 12px; }
  .music-conductor { top: 14%; }
}

/* 形状整组居中 */
.shape-work { margin-top: auto; }
.shape-tray-wrap { margin-top: 4px; }
.shape-feedback { margin-bottom: auto; }

/* 餐馆墙面装饰 */
.cafe-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cafe-frame { position: absolute; left: 7%; top: 31%; width: 82px; height: 96px; background: #FFF9EC; border: 5px solid #D8B88F; border-radius: 5px; box-shadow: 4px 5px 0 rgba(120,80,40,.08); transform: rotate(-3deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.frame-cake { position: relative; width: 42px; height: 30px; background: #F7C6CF; border: 2px solid #4B4353; border-radius: 4px 4px 7px 7px; }
.frame-cake::before { content: ""; position: absolute; left: -2px; right: -2px; top: -6px; height: 9px; border-radius: 50%; background: #FFF3C4; border: 2px solid #4B4353; }
.frame-cake::after { content: ""; position: absolute; left: 50%; top: -16px; width: 2px; height: 10px; background: #4B4353; box-shadow: 3px -3px 0 -1px #F2C94C; }
.cafe-frame b { font-size: 6px; color: #9A7A55; letter-spacing: .08em; }
.cafe-shelf { position: absolute; right: 7%; top: 36%; width: 96px; height: 10px; background: #D8B88F; border: 2px solid #B9946B; border-radius: 3px; }
.cafe-shelf i { position: absolute; bottom: 8px; width: 20px; height: 24px; background: #C9E6E1; border: 2px solid #6B9E98; border-radius: 4px 4px 7px 7px; }
.cafe-shelf i:nth-child(1) { left: 4px; background: #F7D488; border-color: #B08A3E; }
.cafe-shelf i:nth-child(2) { left: 32px; height: 18px; background: #F3B6C4; border-color: #B77988; }
.cafe-shelf i:nth-child(3) { left: 60px; width: 16px; height: 27px; background: #C9E6E1; }
.cafe-shelf em { position: absolute; left: 82px; bottom: 8px; width: 9px; height: 16px; background: #C9E6E1; border: 2px solid #6B9E98; border-radius: 4px; }
.cafe-plant { position: absolute; right: 5%; bottom: 28%; width: 58px; height: 74px; }
.cafe-plant b { position: absolute; left: 50%; bottom: 0; width: 34px; height: 30px; transform: translateX(-50%); background: #D9A45E; border: 2px solid #9A6A3A; border-radius: 4px 4px 10px 10px; }
.cafe-plant i { position: absolute; left: 50%; bottom: 24px; width: 16px; height: 38px; border-radius: 50% 50% 45% 45%; background: #6FBE7C; border: 2px solid #418A50; transform-origin: 50% 100%; }
.cafe-plant i:nth-child(1) { transform: translateX(-50%) rotate(-28deg); }
.cafe-plant i:nth-child(2) { transform: translateX(-50%) rotate(0deg); background: #7FC98D; }
.cafe-plant i:nth-child(3) { transform: translateX(-50%) rotate(28deg); }

/* 指挥棒移到右手边，不再挡住脸 */
.conductor-baton { right: -24px; top: 48px; width: 30px; }
.conductor-sprout { transform-origin: 50% 100%; }

@media (max-width: 720px) {
  .cafe-frame { width: 62px; height: 74px; left: 5%; top: 33%; border-width: 4px; }
  .frame-cake { width: 32px; height: 23px; }
  .frame-cake::before { top: -5px; height: 7px; }
  .cafe-frame b { font-size: 5px; }
  .cafe-shelf { width: 76px; right: 5%; top: 38%; }
  .cafe-shelf i { width: 15px; height: 19px; }
  .cafe-shelf i:nth-child(1) { left: 3px; } .cafe-shelf i:nth-child(2) { left: 24px; height: 15px; } .cafe-shelf i:nth-child(3) { left: 45px; width: 13px; height: 22px; }
  .cafe-shelf em { left: 63px; width: 7px; height: 14px; }
  .cafe-plant { width: 44px; height: 60px; bottom: 30%; }
  .cafe-plant b { width: 26px; height: 24px; }
  .cafe-plant i { width: 13px; height: 30px; }
  .conductor-baton { right: -19px; top: 42px; width: 24px; }
}

.big-num { font-family: var(--font); font-weight: 800; }

/* 去掉容易与点单气泡重叠的相框和架子，保留绿植与挂钟 */
.cafe-frame, .cafe-shelf { display: none; }
.cafe-clock { position: absolute; left: 50%; top: 25.5%; width: 44px; height: 44px; transform: translateX(-50%); border-radius: 50%; background: #FFFDF7; border: 3px solid #B9946B; box-shadow: 0 4px 10px rgba(120,80,40,.10); }
.cafe-clock i { position: absolute; left: 50%; top: 50%; width: 2px; height: 12px; background: #6B5A48; transform-origin: 50% 100%; transform: translate(-50%,-100%) rotate(35deg); }
.cafe-clock b { position: absolute; left: 50%; top: 50%; width: 2px; height: 9px; background: #6B5A48; transform-origin: 50% 100%; transform: translate(-50%,-100%) rotate(140deg); }
.cafe-clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #B9946B; transform: translate(-50%,-50%); }
@media (max-width: 720px) { .cafe-clock { width: 36px; height: 36px; top: 26%; border-width: 2px; } .cafe-clock i { height: 9px; } .cafe-clock b { height: 7px; } }
.cafe-clock { top: 21.5%; }
@media (max-width: 720px) { .cafe-clock { top: 21.5%; } }

/* 花苞也是小角色：未开花时有一张困困的小脸和轻轻的光圈 */
.flower-core { width: 34px; height: 34px; }
.flower.bloom .flower-core { width: 44px; height: 44px; }
.flower:not(.bloom) .flower-core { animation: bud-breathe 2.4s ease-in-out infinite; }
.flower:not(.bloom) .flower-core::before {
  content: ""; position: absolute; left: 30%; top: 40%; width: 3.2px; height: 3.2px; border-radius: 50%;
  background: var(--ink); box-shadow: 13px 0 0 var(--ink); z-index: 5;
}
.flower:not(.bloom) .flower-core::after {
  content: ""; position: absolute; left: 50%; top: 56%; width: 9px; height: 5px;
  transform: translateX(-50%); border-bottom: 2px solid var(--ink); border-radius: 0 0 9px 9px; z-index: 5;
}
.flower.bloom .flower-core::before, .flower.bloom .flower-core::after { opacity: 0; }
.flower:not(.bloom) .flower-bloom::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px;
  transform: translate(-50%,-50%); border-radius: 50%; border: 2px solid rgba(255,255,255,.75);
  animation: bud-ring 2.4s ease-out infinite; pointer-events: none;
}
@keyframes bud-breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.08); } 50% { box-shadow: 0 0 0 8px rgba(255,255,255,0), inset 0 -3px 0 rgba(0,0,0,.08); } }
@keyframes bud-ring { 0% { transform: translate(-50%,-50%) scale(.8); opacity: .8; } 70%,100% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; } }

/* 桌面/大屏：把花园放大，避免小屏元素被拉得太散 */
@media (min-width: 900px) {
  .garden-field { max-width: 900px; }
  .flower { height: 248px; }
  .flower-bloom { width: 132px; height: 132px; }
  .flower-core { width: 38px; height: 38px; }
  .flower.bloom .flower-core { width: 50px; height: 50px; }
  .flower-stem { height: 52%; }
  .flower-leaf { width: 42px; height: 23px; bottom: 24%; }
  .flower-leaf.fl { left: calc(50% - 44px); }
  .flower-leaf.fr { right: calc(50% - 44px); }
}
