/* 本地字体：确保没有系统中文字体的预览环境也能正常显示 */
@font-face {
  font-family: 'ZCOOL KuaiLe';
  src: url('fonts/zcool-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('fonts/noto-400.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 种子信差 · 手绘治愈系竖屏游戏 */
:root {
  --orange: #FF8A3D;
  --orange-deep: #E46A1F;
  --orange-soft: #FFB36C;
  --cream: #FFF6E4;
  --cream-2: #FFEFD3;
  --paper: #FFFBF1;
  --brown: #6B4429;
  --brown-2: #8B6040;
  --brown-3: #A9825F;
  --leaf: #8FBE52;
  --leaf-deep: #6E9B3E;
  --pink: #F49AA2;
  --sky: #A9DCF5;
  --ink: #4A3428;
  --line: #F0D3AB;
  --shadow: 0 12px 28px rgba(76, 46, 22, .20);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #9FD7F2;
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
  background:
    radial-gradient(120% 60% at 50% 0%, #D7F3FF 0%, #A9DCF5 42%, #D9B98D 74%, #9E6A43 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Yuanti SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #FFC46B; outline-offset: 3px; }

.app {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #B9E4F7;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

@media (min-width: 620px) {
  .app {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 30px 80px rgba(46, 28, 12, .45);
  }
}

.screen { position: absolute; inset: 0; }
.hidden { display: none !important; }

/* ================= 通用小控件 ================= */
.mp-icon { flex: none; }

.round-soft {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .92);
  background: linear-gradient(180deg, #FFFDF7 0%, #FFEFD6 100%);
  color: #8B5C3B;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 0 rgba(142, 94, 48, .22), 0 9px 18px rgba(72, 48, 26, .18), inset 0 1px 0 #fff;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  z-index: 8;
}
.round-soft .mp-icon { width: 26px; height: 26px; }
.round-soft:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(142, 94, 48, .22), 0 4px 8px rgba(72, 48, 26, .18), inset 0 1px 0 #fff;
}
.round-soft.small { width: 46px; height: 46px; }
.round-soft.small .mp-icon { width: 23px; height: 23px; }

.icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #EAD2AE;
  background: #FFF9EC;
  color: #8B6040;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 rgba(150, 100, 55, .12);
  cursor: pointer;
  transition: transform .12s;
}
.icon-btn:active { transform: translateY(2px); }
.icon-btn .mp-icon { width: 21px; height: 21px; }

.btn {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
}
.btn .mp-icon { width: 20px; height: 20px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #FFB168 0%, #FF8A3D 100%);
  box-shadow: 0 4px 0 #D96A22, 0 9px 18px rgba(255, 138, 61, .32), inset 0 1px 0 rgba(255, 255, 255, .5);
  text-shadow: 0 1px 0 rgba(160, 70, 10, .25);
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #D96A22, 0 4px 9px rgba(255, 138, 61, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-ghost {
  color: #8B5A34;
  background: linear-gradient(180deg, #FFFBF1, #FFEFD6);
  border: 1.5px solid #E9CBA2;
  box-shadow: 0 3px 0 rgba(160, 110, 60, .16);
}
.btn-ghost:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(160, 110, 60, .16); }
.btn-soft {
  color: #5F8738;
  background: linear-gradient(180deg, #F4FBE8, #E3F2CE);
  border: 1.5px solid #C9DFA9;
  box-shadow: 0 3px 0 rgba(100, 140, 55, .16);
}
.btn-soft:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(100, 140, 55, .16); }

/* ================= 首页 ================= */
.home { overflow: hidden; background: #BFE8FA; }

.home-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  transform: scale(1.015);
  animation: artIn 1.2s ease both;
}

.home-cloud {
  position: absolute;
  top: -46px;
  width: 210px;
  height: 190px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 46% 46%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .62) 46%, rgba(255, 255, 255, 0) 72%);
  filter: blur(5px);
  opacity: .85;
  z-index: 1;
}
.home-cloud.left { left: -64px; }
.home-cloud.right { right: -64px; }

.home-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(115% 68% at 50% 34%, rgba(255, 255, 255, 0) 52%, rgba(54, 39, 26, .14) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 70%, rgba(60, 41, 24, .24) 100%);
}

.home-top {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

/* 首页工具钮：由 layoutHome() 按画面坐标贴合绘本里的圆形图标 */
.home-tool {
  position: absolute;
  left: 12px;
  top: calc(var(--sat) + 12px);
  pointer-events: auto;
  z-index: 10;
  color: #7C4A2A;
  border-color: #FFF9E9;
  background:
    radial-gradient(circle at 36% 28%, #FFFEF8 0%, #FFF8E7 52%, #FCEACB 100%);
  box-shadow:
    0 3px 0 rgba(142, 94, 48, .20),
    0 8px 18px rgba(72, 48, 26, .20),
    inset 0 0 0 1.5px rgba(224, 176, 112, .32),
    inset 0 1px 0 #fff;
}
.home-tool::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(196, 145, 83, .30);
  pointer-events: none;
}
.home-tool .mp-icon { width: 48%; height: 48%; }
.home-tool:active { transform: translateY(3px) scale(.97); }
#bookBtn { left: auto; right: 12px; }

.play-hot {
  position: absolute;
  left: 50%;
  top: 77.8%;
  width: 26vw;
  height: 26vw;
  z-index: 8;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  touch-action: manipulation;
}
.play-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 168, .42) 0%, rgba(255, 226, 140, .16) 46%, rgba(255, 226, 140, 0) 70%);
  animation: playGlow 3.4s ease-in-out infinite;
  pointer-events: none;
}
.play-ring {
  position: absolute;
  inset: -3.5%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 249, 220, .72);
  box-shadow: 0 0 20px rgba(255, 232, 158, .5), inset 0 0 18px rgba(255, 240, 190, .32);
  animation: playPulse 2.8s ease-out infinite;
  pointer-events: none;
}
.play-flash {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  transition: opacity .16s;
  pointer-events: none;
}
.play-hot::after {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(120, 70, 20, 0) 46%, rgba(120, 70, 20, .20) 100%);
  opacity: 0;
  transition: opacity .12s;
  pointer-events: none;
}
.play-hot:active { transform: translate(-50%, -50%) scale(.955); }
.play-hot:active .play-flash { opacity: 1; }
.play-hot:active::after { opacity: 1; }

.play-tag {
  position: absolute;
  left: 50%;
  top: 84%;
  z-index: 8;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 6px 5px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .92);
  background: linear-gradient(180deg, #FFFDF6 0%, #FFF3DC 62%, #FFEAC8 100%);
  color: #7C4A22;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow:
    0 3px 0 rgba(150, 95, 40, .20),
    0 8px 18px rgba(90, 50, 20, .22),
    inset 0 1px 0 #fff;
  pointer-events: none;
  animation: tagIn .7s .2s cubic-bezier(.2, .8, .3, 1) both, tagBob 3.2s 1s ease-in-out infinite;
  transition: opacity .2s ease, transform .2s ease;
}
.play-tag.is-tucked {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px) scale(.92);
}
.pt-stamp {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFFDF6;
  background: linear-gradient(180deg, #FFC079, #FF954A);
  box-shadow: inset 0 -2px 0 rgba(174, 88, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.pt-stamp .mp-icon { width: 14px; height: 14px; }
.pt-text { transform: translateY(-.5px); }

/* 底部：植物图鉴手账条 */
.home-journal {
  position: absolute;
  left: 50%;
  bottom: calc(var(--sab) + 11px);
  transform: translateX(-50%);
  z-index: 9;
  width: calc(100% - 36px);
  max-width: 346px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 8px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, .90);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, .97) 0%, rgba(255, 244, 224, .97) 100%);
  box-shadow:
    0 3px 0 rgba(146, 94, 47, .20),
    0 10px 22px rgba(70, 40, 20, .26),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  cursor: pointer;
  text-align: left;
  transition: transform .12s ease;
  animation: journalIn .75s .28s cubic-bezier(.2, .8, .3, 1) both;
}
.home-journal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  border: 1px dashed rgba(198, 146, 85, .30);
  pointer-events: none;
}
.home-journal:active { transform: translateX(-50%) translateY(2px) scale(.985); }
.hj-mark {
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #608B37;
  background: linear-gradient(180deg, #F3FBE6 0%, #D9EFC0 100%);
  border: 1px solid rgba(160, 198, 113, .55);
  box-shadow: inset 0 -2px 0 rgba(110, 150, 65, .12), inset 0 1px 0 #fff;
}
.hj-mark .mp-icon { width: 19px; height: 19px; }
.hj-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hj-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.hj-name {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .5px;
  color: #7A4826;
  line-height: 1;
}
.hj-count { font-size: 10px; color: #B08B67; line-height: 1; white-space: nowrap; }
.hj-count b { font-family: "Noto Sans SC", sans-serif; font-size: 13px; font-weight: 900; color: #D2691E; }
.hj-count i { font-style: normal; }
.hj-dots { display: flex; align-items: center; gap: 4px; height: 8px; }
.hj-dot {
  width: 7px;
  height: 7px;
  border-radius: 0 100% 0 100%;
  background: #EBD8BD;
  transform: rotate(-10deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: background .3s ease, transform .3s ease;
}
.hj-dot.on { background: linear-gradient(135deg, #BDE194, #77AC41); transform: rotate(-10deg) scale(1.12); }
.hj-depth {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 8px;
  border-left: 1px dashed rgba(198, 146, 85, .42);
  color: #A98561;
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
}
.hj-depth .mp-icon { width: 13px; height: 13px; color: #C08A52; margin-right: 1px; }
.hj-depth b { font-family: "Noto Sans SC", sans-serif; font-size: 14px; font-weight: 900; color: #875632; }
.hj-depth i { font-style: normal; }
.hj-go { flex: none; color: #C9A477; display: grid; place-items: center; }
.hj-go .mp-icon { width: 17px; height: 17px; }

.home-motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.home-motes span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFF6D8;
  box-shadow: 0 0 6px 1px rgba(255, 240, 190, .85);
  opacity: 0;
  animation: moteFloat linear infinite;
}

.home-leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.home-leaves span {
  position: absolute;
  top: -20px;
  width: 11px;
  height: 11px;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #B7DC8C, #7FAF48);
  opacity: .55;
  animation: leafFall linear infinite;
  filter: drop-shadow(0 1px 1px rgba(60, 90, 30, .2));
}

/* ================= 游戏 ================= */
.game { background: #B97A4C; overflow: hidden; touch-action: none; }
#soilCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.game-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 46%, rgba(0, 0, 0, 0) 54%, rgba(46, 25, 10, .30) 100%),
    linear-gradient(180deg, rgba(38, 22, 12, .25) 0%, rgba(38, 22, 12, 0) 13%, rgba(38, 22, 12, 0) 80%, rgba(38, 22, 12, .30) 100%);
}

.mole-wrap {
  position: absolute;
  left: 50%;
  top: 44%;
  width: clamp(122px, 37vw, 176px);
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  will-change: transform;
}
.mole-inner {
  width: 100%;
  transform-origin: 50% 82%;
  filter: drop-shadow(0 9px 10px rgba(52, 29, 13, .28));
  animation: idleBob 3.6s ease-in-out infinite;
}
.mole { display: block; width: 100%; height: auto; overflow: visible; }
.paw { transform-box: fill-box; transform-origin: 50% 50%; }

.mole-wrap.digging .mole-inner { animation: moleDig .20s ease-in-out infinite alternate; }
.mole-wrap.digging .paw-l { animation: pawL .26s ease-in-out infinite alternate; }
.mole-wrap.digging .paw-r { animation: pawR .26s ease-in-out infinite alternate; }
.mole-wrap.waiting .mole-inner { animation: moleWait 1.2s ease-in-out infinite; }

.game-top {
  position: absolute;
  top: calc(var(--sat) + 12px);
  left: 14px;
  right: 14px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.game-top .round-soft { pointer-events: auto; }

.depth-chip {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 248, 232, .93);
  border: 1.5px solid rgba(255, 255, 255, .8);
  box-shadow: 0 5px 14px rgba(60, 35, 15, .22), inset 0 1px 0 #fff;
  color: #7A4B2B;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dc-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #FFC17E, #FF9C4F);
  box-shadow: inset 0 -2px 0 rgba(180, 90, 20, .25);
}
.dc-ico .mp-icon { width: 19px; height: 19px; }
.depth-num { display: flex; align-items: baseline; gap: 2px; }
.depth-num b { font-size: 18px; font-weight: 900; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.depth-num em { font-style: normal; font-size: 10px; font-weight: 700; color: #A57C58; }

.dig-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--sab) + 28px);
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 11px;
  border-radius: 999px;
  background: rgba(68, 44, 28, .80);
  border: 1.5px solid rgba(255, 240, 210, .28);
  color: #FFF3DC;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(40, 22, 8, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: hintFloat 2.4s ease-in-out infinite;
  transition: opacity .3s, transform .3s;
}
.dig-hint .mp-icon { width: 18px; height: 18px; color: #FFD37A; }
.dig-hint.off { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }

.toast {
  position: absolute;
  left: 50%;
  top: calc(var(--sat) + 76px);
  transform: translate(-50%, -8px);
  z-index: 35;
  max-width: 84%;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(62, 40, 25, .92);
  border: 1px solid rgba(255, 238, 205, .22);
  color: #FFF5E4;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 18px rgba(30, 18, 8, .3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.deliver-card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--sab) + 12px);
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 24px;
  border: 2px solid #F3D3A7;
  background: linear-gradient(180deg, #FFFCF4, #FFF1D9);
  box-shadow: 0 14px 30px rgba(55, 30, 10, .34), inset 0 1px 0 #fff;
  animation: cardIn .38s cubic-bezier(.2, .9, .3, 1.15);
}
.dc-seal {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #FFF6E4;
  background: linear-gradient(180deg, #FFB168, #FF8A3D);
  box-shadow: 0 4px 0 #D96A22, inset 0 1px 0 rgba(255, 255, 255, .45);
}
.dc-seal .mp-icon { width: 27px; height: 27px; }
.dc-copy { flex: 1; min-width: 0; }
.dc-kicker { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; color: #B57D4B; }
.dc-kicker b { color: #E0702A; }
.dc-copy h3 { margin: 2px 0 1px; font-size: 19px; line-height: 1.2; color: #5E3C26; letter-spacing: .5px; }
.dc-rare { margin: 0; font-size: 10.5px; color: #A57C58; font-weight: 600; }
.dc-btn { flex: none; width: 88px; min-height: 50px; padding: 0; font-size: 16px; }

/* ================= 弹层通用 ================= */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px calc(var(--sab) + 10px);
  background: rgba(46, 30, 19, .48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.overlay.center {
  align-items: center;
  padding: calc(var(--sat) + 14px) 12px calc(var(--sab) + 14px);
}
#bookOverlay { z-index: 50; }
#puzzleOverlay { z-index: 54; }
#howOverlay, #pauseOverlay { z-index: 58; }
#storyOverlay { z-index: 64; }
#adOverlay { z-index: 72; }

.sheet {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, #FFFCF4, #FFF6E6);
  box-shadow: 0 24px 54px rgba(40, 22, 8, .40), inset 0 1px 0 #fff;
  animation: sheetUp .38s cubic-bezier(.2, .9, .25, 1.08);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 20px 6px;
  flex: none;
}
.sheet-kicker {
  margin: 0 0 3px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: #C07B3C;
  text-transform: uppercase;
}
.sheet-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: .8px;
  color: #5E3C26;
}
.sheet-sub {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #997354;
}

/* ================= 解谜 ================= */
.puzzle-sheet { max-height: 95dvh; }
.pz-body {
  flex: 1;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pz-foot {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(14px + var(--sab));
}
.pz-foot .btn { flex: 1; min-height: 47px; font-size: 14px; }

.stuck-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  border: 2px solid #F0D0A5;
  background: linear-gradient(180deg, #FFFCF3, #FFF0D6);
  box-shadow: 0 -8px 44px rgba(50, 30, 10, .40), inset 0 1px 0 #fff;
  animation: stuckIn .3s cubic-bezier(.2, .9, .3, 1.15);
}
.stuck-title { margin: 0; font-size: 18px; font-weight: 900; color: #5E3C26; letter-spacing: .5px; }
.stuck-sub { margin: 0 0 4px; font-size: 11.5px; line-height: 1.6; color: #997354; }
.stuck-panel .btn { width: 100%; min-height: 46px; font-size: 14px; }
.stuck-close {
  border: 0;
  background: transparent;
  color: #A9825F;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 0;
  cursor: pointer;
}

/* ---- 迷宫 ---- */
.maze-board {
  display: grid;
  width: min(342px, 84vw);
  padding: 8px;
  border-radius: 20px;
  border: 2px solid #8B5632;
  background: #B47B4B;
  box-shadow: inset 0 4px 12px rgba(60, 30, 8, .35), 0 10px 22px rgba(80, 40, 10, .18);
  touch-action: manipulation;
}
.maze-cell {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #E6C08F 0%, #D6A66F 100%);
  cursor: pointer;
  overflow: hidden;
}
.maze-cell:nth-child(2n) { background: linear-gradient(160deg, #E2B986 0%, #D2A06A 100%); }
.maze-cell.visited::after {
  content: "";
  position: absolute;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(126, 78, 42, .22);
  box-shadow: 0 0 0 3px rgba(126, 78, 42, .07);
}
.maze-cell.hint { background: #FFE7B4; box-shadow: inset 0 0 0 2px #FFC46B; }
.maze-cell.hint::before {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: #FFC46B;
  animation: hintDot .9s infinite alternate;
}
.maze-player {
  width: 62%;
  height: 62%;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 38% 30%, #9C857B, #6E5A54 72%);
  box-shadow: 0 2px 3px rgba(50, 30, 20, .3), inset 0 2px 0 rgba(255, 255, 255, .18);
  position: relative;
  z-index: 2;
  animation: playerBob 1.8s ease-in-out infinite;
}
.maze-player::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 28%;
  height: 20%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #F49AA2;
  box-shadow: -7px -9px 0 -2px #3E302C, 7px -9px 0 -2px #3E302C;
}
.maze-player::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: -14%;
  height: 30%;
  border-radius: 50% 50% 20% 20%;
  background: #F6C445;
  box-shadow: inset 0 -2px 0 #E0A62B;
}
.maze-goal {
  width: 76%;
  height: 76%;
  display: grid;
  place-items: center;
  color: #6E9B3E;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 205, .95), rgba(255, 236, 157, .35) 58%, rgba(255, 236, 157, 0) 72%);
  animation: goalGlow 1.8s ease-in-out infinite;
  z-index: 2;
}
.maze-goal .mp-icon { width: 70%; height: 70%; filter: drop-shadow(0 0 4px rgba(140, 200, 80, .85)); }
.maze-finished .maze-cell { transition: background .3s; }

/* ---- 土壤拼图 ---- */
.swap-board {
  --puzzle-img: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: min(326px, 80vw);
  padding: 7px;
  border-radius: 20px;
  border: 2px solid #744426;
  background: #8D5A36;
  box-shadow: inset 0 4px 12px rgba(50, 25, 8, .35), 0 10px 22px rgba(80, 40, 10, .18);
  touch-action: manipulation;
}
.swap-tile {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background-size: 300% 300%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.swap-tile.selected {
  transform: scale(.93);
  box-shadow: inset 0 0 0 3px #FFB45E, 0 0 14px rgba(255, 176, 80, .85);
  z-index: 2;
}
.swap-tile.pop { animation: tilePop .28s ease; }
.swap-board.showing-target::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 14px;
  background-image: var(--puzzle-img);
  background-size: 100% 100%;
  opacity: .62;
  pointer-events: none;
  animation: hintFade 2.4s ease both;
}
.swap-board.solved { animation: boardWin .5s ease; }
.swap-board.solved .swap-tile { box-shadow: inset 0 0 0 2px rgba(190, 240, 140, .9), 0 0 16px rgba(150, 210, 90, .6); }
.swap-caption, .trace-caption, .memory-caption {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #A57C58;
  text-align: center;
}

/* ---- 纹路连线 ---- */
.trace-wrap {
  position: relative;
  width: min(330px, 82vw);
  aspect-ratio: 1;
  border-radius: 22px;
  border: 2px solid #8D5B35;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 244, 215, .65), rgba(255, 244, 215, 0) 44%),
    radial-gradient(circle at 70% 74%, rgba(104, 62, 30, .25), rgba(104, 62, 30, 0) 55%),
    linear-gradient(160deg, #E4BC8C, #C88E5C 62%, #B27645);
  box-shadow: inset 0 4px 14px rgba(60, 30, 8, .28), 0 10px 22px rgba(80, 40, 10, .18);
  overflow: hidden;
  touch-action: none;
}
.trace-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trace-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(38px, 10.4vw, 47px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #C69A62;
  background: linear-gradient(180deg, #FFFCF2, #FFE9C6);
  color: #8A5A32;
  font-size: 14px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 rgba(110, 70, 35, .30), inset 0 1px 0 #fff;
  cursor: pointer;
  z-index: 3;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.trace-node.next { animation: nodePulse 1.15s ease-in-out infinite; }
.trace-node.done {
  color: #fff;
  border-color: #6E9B3E;
  background: linear-gradient(180deg, #C8E79C, #8FBE52);
  box-shadow: 0 0 16px rgba(143, 190, 82, .75), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.trace-node.hint { animation: nodePulse .55s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(255, 196, 107, .55), 0 0 22px rgba(255, 170, 70, .9); }
.trace-node:active { transform: translate(-50%, -50%) scale(.94); }
.trace-wrap.shake { animation: shake .38s ease; }

/* ---- 光点顺序 ---- */
.memory-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.memory-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  width: min(266px, 66vw);
}
.memory-pad {
  aspect-ratio: 1;
  border: 0;
  border-radius: 24px;
  background: var(--pad-bg);
  box-shadow: 0 6px 0 var(--pad-shadow), inset 0 2px 0 rgba(255, 255, 255, .55);
  position: relative;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.memory-pad::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 -3px 6px rgba(120, 80, 30, .12);
}
.memory-pad.lit {
  transform: translateY(-2px) scale(1.035);
  filter: brightness(1.13) saturate(1.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 0 28px var(--pad-glow), inset 0 2px 0 rgba(255, 255, 255, .7);
}
.memory-pad:active { transform: translateY(3px) scale(.98); }
.memory-progress { display: flex; gap: 7px; align-items: center; min-height: 10px; }
.memory-dot { width: 9px; height: 9px; border-radius: 50%; background: #E3C9A6; transition: .2s; }
.memory-dot.on { background: var(--orange); box-shadow: 0 0 8px rgba(255, 138, 61, .8); }
.memory-status { font-size: 12.5px; line-height: 1.5; font-weight: 700; color: #8B6244; text-align: center; min-height: 20px; }

/* ================= 植物故事 ================= */
.story-sheet {
  max-width: 400px;
  padding: 24px 22px calc(20px + var(--sab));
  text-align: center;
  overflow-y: auto;
  background:
    radial-gradient(110% 60% at 50% 0%, #FFF9E9 0%, #FFF4DE 46%, #FFE9C6 100%);
}
.story-x { position: absolute; top: 14px; right: 14px; }
.story-kicker {
  margin: 8px 0 0;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 2.2px;
  color: #C07B3C;
}
.story-art-wrap { position: relative; width: 172px; height: 172px; margin: 4px auto 0; }
.story-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 148, .80) 0%, rgba(255, 226, 148, .28) 48%, rgba(255, 226, 148, 0) 70%);
  animation: haloPulse 3s ease-in-out infinite;
}
.story-art {
  position: absolute;
  inset: 13px;
  display: grid;
  place-items: center;
  animation: sproutIn .85s cubic-bezier(.18, .9, .3, 1.25);
}
.story-art svg { width: 100%; height: 100%; overflow: visible; }
.spark {
  position: absolute;
  width: 13px;
  height: 13px;
  background: #FFD66E;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  animation: sparkTwinkle 2.4s ease-in-out infinite;
}
.spark.s1 { top: 16%; left: 3%; animation-delay: .2s; }
.spark.s2 { top: 30%; right: 0; transform: scale(.7); animation-delay: .9s; }
.spark.s3 { bottom: 12%; left: 12%; transform: scale(.6); animation-delay: 1.5s; }
.story-name {
  margin: 2px 0 6px;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #5E3C26;
}
.story-text {
  margin: 0 auto 12px;
  max-width: 310px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #7A573E;
  text-align: left;
  background: rgba(255, 255, 255, .52);
  border: 1.5px dashed #E8C9A0;
  border-radius: 16px;
  padding: 12px 14px;
}
.story-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 auto 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #FFEFD3;
  border: 1.5px solid #EBCBA3;
  color: #A06A3B;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}
.story-btn { width: 100%; }

/* ================= 图鉴 ================= */
.book-sheet { height: min(90dvh, 760px); }
.book-head { padding-bottom: 0; }
.book-stats { display: flex; align-items: stretch; gap: 9px; padding: 12px 18px 4px; flex: none; }
.book-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1.5px solid #EFD3AC;
  background: #FFF2D9;
}
.bs-num { font-size: 22px; font-weight: 900; color: #7A4A26; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bs-label { font-size: 9.5px; font-weight: 700; color: #A57C58; }
.book-stamp {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 74px;
  border-radius: 16px;
  border: 1.5px dashed #D9B285;
  background: #FFF9EE;
  color: #A57C58;
  font-size: 9px;
  font-weight: 800;
}
.book-stamp .mp-icon { width: 22px; height: 22px; color: #C98A45; }

.book-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  align-content: start;
  padding: 10px 18px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.book-card {
  position: relative;
  width: 100%;
  min-height: 138px;
  cursor: pointer;
  padding: 10px 9px 9px;
  border-radius: 20px;
  border: 1.5px solid #F1D8B6;
  background: #FFF9EE;
  box-shadow: 0 4px 12px rgba(120, 80, 40, .08), inset 0 1px 0 #fff;
  text-align: center;
}
.book-card.locked { background: #F7EBD9; border-style: dashed; }
.book-art { width: 74px; height: 74px; margin: 0 auto 2px; }
.book-art svg { width: 100%; height: 100%; }
.book-card h4 { margin: 2px 0 2px; font-size: 13.5px; color: #6B4429; letter-spacing: .5px; }
.book-card p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: #A07B5D;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card.locked .book-art { filter: grayscale(1) brightness(.92); opacity: .26; }
.book-card.locked h4 { color: #B08A65; }
.book-lock {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #FFF9EC;
  color: #B08A65;
  box-shadow: 0 1px 3px rgba(120, 80, 40, .15);
}
.book-lock .mp-icon { width: 13px; height: 13px; }
.book-card.collectable:active { transform: scale(.98); }
.book-note {
  flex: none;
  margin: 0;
  padding: 9px 20px calc(12px + var(--sab));
  background: linear-gradient(180deg, rgba(255, 246, 230, 0), #FFF6E6 40%);
  position: relative;
  z-index: 1;
  font-size: 10.5px;
  line-height: 1.6;
  color: #A98361;
  text-align: center;
}

/* ================= 暂停 ================= */
.pause-sheet { max-width: 360px; padding: 26px 22px calc(22px + var(--sab)); text-align: center; }
.pause-mole {
  width: 66px;
  height: 66px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8A5A2E;
  background: linear-gradient(180deg, #FFE4A9, #FFC46B);
  box-shadow: 0 6px 0 rgba(190, 130, 50, .25), inset 0 2px 0 rgba(255, 255, 255, .6);
}
.pause-mole .mp-icon { width: 34px; height: 34px; }
.pause-sheet h2 { margin: 2px 0 4px; font-size: 24px; color: #5E3C26; letter-spacing: 1px; }
.pause-sub { margin: 0 0 14px; font-size: 12px; line-height: 1.6; color: #997354; }
.pause-stats { display: flex; gap: 9px; margin: 0 0 16px; }
.pause-stats > div { flex: 1; padding: 9px; border-radius: 16px; border: 1.5px solid #EFD3AC; background: #FFF2D9; }
.pause-stats b { display: block; font-size: 22px; color: #7A4A26; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pause-stats span { font-size: 9.5px; font-weight: 700; color: #A57C58; }
.pause-sheet .btn { width: 100%; margin-top: 9px; }

/* ================= 玩法说明 ================= */
.how-sheet { max-width: 420px; }
.how-list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 8px 18px 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.how-list::-webkit-scrollbar { display: none; }
.how-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1.5px solid #F1D8B6;
  background: #FFF9EE;
}
.how-ico {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #E07A2E;
  background: #FFE8C4;
  box-shadow: inset 0 -2px 0 rgba(200, 140, 70, .15);
}
.how-ico .mp-icon { width: 22px; height: 22px; }
.how-item h4 { margin: 1px 0 3px; font-size: 13.5px; color: #6B4429; }
.how-item p { margin: 0; font-size: 10.5px; line-height: 1.6; color: #9B7759; }
.sound-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 18px 10px;
  padding: 9px 14px;
  border-radius: 16px;
  border: 1.5px solid #EFD3AC;
  background: #FFF2D9;
}
.sound-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: #7A4A2A; }
.sound-label .mp-icon { width: 19px; height: 19px; color: #C07B3C; }
.sound-tip { font-size: 10px; font-style: normal; font-weight: 700; color: #B08A64; letter-spacing: .2px; }
.pause-sound-row { margin: 0 0 6px; text-align: left; }
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #D9C2A4;
  transition: background .2s;
  cursor: pointer;
}
.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  transition: left .2s;
}
.switch.on { background: #8FBE52; }
.switch.on span { left: 25px; }
.how-sheet > .btn-primary { flex: none; margin: 0 18px calc(16px + var(--sab)); }
.how-sheet > .sound-row { flex: none; }

/* ================= 模拟广告 ================= */
.ad-sheet { max-width: 340px; padding: 24px 22px calc(22px + var(--sab)); text-align: center; }
.ad-art { position: relative; width: 170px; height: 118px; margin: 4px auto 6px; }
.ad-seed {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 34px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #D8A66E, #A9703E);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3);
}
.ad-sprout {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 4px;
  height: 58px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #7FAF48;
  transform-origin: bottom center;
  animation: adGrow 2.4s ease-in-out infinite;
}
.ad-sprout::before, .ad-sprout::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 34px;
  height: 20px;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #B7DC8C, #7FAF48);
}
.ad-sprout::before { right: 2px; transform: rotate(-18deg); }
.ad-sprout::after { left: 2px; top: 22px; transform: scaleX(-1) rotate(-12deg); }
.ad-sheet h2 { margin: 4px 0 4px; font-size: 22px; color: #5E3C26; }
.ad-sub { margin: 0 0 6px; font-size: 12px; color: #997354; }
.ad-count { font-size: 42px; font-weight: 900; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.ad-note { margin: 8px 0 0; font-size: 9.5px; letter-spacing: .6px; color: #B79A7B; }

/* ================= 动效 ================= */
@keyframes artIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }
@keyframes playGlow {
  0%, 100% { transform: scale(.92); opacity: .55; }
  50% { transform: scale(1.08); opacity: .95; }
}
@keyframes playPulse {
  0% { transform: scale(.95); opacity: .8; }
  65% { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}
@keyframes tagIn {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}
@keyframes tagBob { 0%, 100% { margin-top: 0; } 50% { margin-top: -3px; } }
@keyframes journalIn {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}
@keyframes moteFloat {
  0% { transform: translate3d(0, 26px, 0) scale(.5); opacity: 0; }
  16% { opacity: .75; }
  70% { opacity: .55; }
  100% { transform: translate3d(20px, -138px, 0) scale(1.15); opacity: 0; }
}
@keyframes leafFall {
  0% { transform: translate3d(0, -6vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .55; }
  100% { transform: translate3d(28px, 108vh, 0) rotate(320deg); opacity: 0; }
}
@keyframes idleBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3px) rotate(.6deg); } }
@keyframes moleDig { from { transform: translateY(1px) rotate(-1.1deg); } to { transform: translateY(-2px) rotate(1.1deg); } }
@keyframes moleWait { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-4px) rotate(-1.5deg); } }
@keyframes pawL { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(4px) rotate(-10deg); } }
@keyframes pawR { from { transform: translateY(4px) rotate(10deg); } to { transform: translateY(0) rotate(0deg); } }
@keyframes hintFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes stuckIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes playerBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7%); } }
@keyframes goalGlow { 0%, 100% { transform: scale(.94); filter: brightness(1); } 50% { transform: scale(1.04); filter: brightness(1.1); } }
@keyframes hintDot { from { transform: scale(.7); opacity: .5; } to { transform: scale(1.1); opacity: 1; } }
@keyframes tilePop { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes boardWin { 0% { transform: scale(1); } 45% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes hintFade { 0% { opacity: 0; } 15% { opacity: .62; } 75% { opacity: .62; } 100% { opacity: 0; } }
@keyframes nodePulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 4px 0 rgba(110, 70, 35, .30), 0 0 0 0 rgba(255, 196, 107, .55); } 50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 4px 0 rgba(110, 70, 35, .30), 0 0 0 9px rgba(255, 196, 107, 0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-.6deg); } 40% { transform: translateX(6px) rotate(.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes haloPulse { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes sproutIn { 0% { opacity: 0; transform: scale(.35) translateY(16px); } 65% { opacity: 1; transform: scale(1.06) translateY(0); } 100% { transform: scale(1); } }
@keyframes sparkTwinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(25deg); } }
@keyframes adGrow { 0%, 100% { transform: translateX(-50%) scaleY(.72); } 50% { transform: translateX(-50%) scaleY(1); } }

@media (max-width: 360px) {
  .sheet-head { padding: 17px 16px 5px; }
  .sheet-head h2 { font-size: 22px; }
  .pz-foot { padding-left: 14px; padding-right: 14px; }
  .book-grid { padding-left: 14px; padding-right: 14px; gap: 9px; }
  .book-art { width: 66px; height: 66px; }
  .book-card { min-height: 128px; }
  .story-text { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* ================= 标题/按钮使用手绘字体 ================= */
.sheet-head h2,
.story-name,
.play-tag,
.home-journal,
.btn,
.dc-copy h3,
.book-card h4,
.pause-sheet h2,
.sheet-kicker,
.stuck-title,
.dc-kicker,
.ad-sheet h2,
.ad-count,
.hj-count b {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
}
.hj-count b,
.book-stat .bs-num,
.depth-num b {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
}

/* ================= 新增：种子档位 / 障碍反馈 / 小动物支线 ================= */
.seed-satchel {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .88);
  background: rgba(255, 248, 232, .94);
  box-shadow: 0 5px 14px rgba(60, 35, 15, .18), inset 0 1px 0 #fff;
  color: #7A4B2B;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.seed-satchel .mp-icon { width: 18px; height: 18px; color: #A96FC4; }
.seed-satchel b { font-size: 14px; font-weight: 900; line-height: 1; }
.seed-satchel em { font-style: normal; font-size: 9px; font-weight: 700; color: #A57C58; }
.seed-satchel.hidden { display: none !important; }

.dc-title-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dc-title-row h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-tier {
  flex: none;
  padding: 2px 6px;
  border: 1px solid #C07B3C66;
  border-radius: 999px;
  color: #C07B3C;
  background: #C07B3C1f;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.dc-fresh { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
#freshText {
  flex: none;
  color: #A57C58;
  font-size: 9.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dc-fresh-bar {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #EFE2CE;
  box-shadow: inset 0 1px 2px rgba(109, 75, 42, .14);
}
.dc-fresh-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; transition: width .18s linear, background .3s; }
.deliver-card.low .dc-fresh-bar { animation: freshPulse .8s ease-in-out infinite; }
.deliver-card.withered {
  border-color: #D9C7B0;
  background: linear-gradient(180deg, #F4EEE3, #E9DFD2);
  filter: saturate(.4);
}
.deliver-card.withered .dc-seal { background: #B9A48F; box-shadow: 0 4px 0 #94816F, inset 0 1px 0 rgba(255,255,255,.4); }
.deliver-card.withered .dc-btn { width: 96px; font-size: 14px; }

.mole-wrap.blocked .mole-inner { animation: moleBlocked .9s ease-in-out infinite; }
.mole-wrap.hit .mole-inner { animation: moleHit .14s ease-out; }

#animalOverlay { z-index: 66; }
.animal-sheet {
  position: relative;
  max-width: 420px;
  padding: 22px 18px 20px;
  text-align: center;
  overflow: auto;
}
.animal-x { position: absolute; right: 12px; top: 12px; z-index: 3; }
.animal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 2px;
  color: #C0773B;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}
.animal-kicker .mp-icon { width: 15px; height: 15px; }
.animal-portrait {
  position: relative;
  width: 118px;
  height: 110px;
  margin: 0 auto -4px;
  filter: drop-shadow(0 7px 10px rgba(95, 58, 27, .14));
}
.animal-portrait svg { display: block; width: 100%; height: 100%; }
.animal-name { margin: 0 0 6px; color: #5E3C26; font-size: 23px; letter-spacing: 1px; }
.animal-text {
  max-width: 315px;
  margin: 0 auto;
  color: #8C6C4F;
  font-size: 12.5px;
  line-height: 1.8;
}
.animal-quest {
  margin-top: 14px;
  padding: 12px;
  border: 1.5px solid #EBD5B5;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFDF6, #FFF6E7);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(151, 103, 57, .06);
}
.aq-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #96704E; font-size: 10.5px; font-weight: 800; }
.aq-head b { color: #E0702A; font-size: 12px; font-variant-numeric: tabular-nums; }
.aq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.aq-cell {
  position: relative;
  height: 52px;
  padding: 0;
  border: 1.5px solid #D9B184;
  border-radius: 14px;
  background: linear-gradient(180deg, #E9C69C, #C99362);
  box-shadow: 0 3px 0 #A9744A, inset 0 1px 0 rgba(255, 247, 226, .45);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.aq-cell:active { transform: translateY(2px); box-shadow: 0 1px 0 #A9744A; }
.aq-cell.berry { background: linear-gradient(180deg, #F9E6C7, #EBC99B); border-color: #C9A06E; }
.aq-cell.empty { background: #D8C0A2; box-shadow: 0 2px 0 #B39A7C; }
.aq-cell.empty .mp-icon { width: 18px; height: 18px; color: #9E845F; }
.aq-berry {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF9A9A, #E45555);
  box-shadow: 0 2px 0 #B33C3C, 0 0 12px rgba(242, 109, 109, .45);
}
.aq-berry::before { content: ""; position: absolute; left: 5px; top: -5px; width: 9px; height: 6px; border-radius: 100% 0 100% 0; background: #7FAF48; transform: rotate(-18deg); }
.aq-echo { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.aq-pad {
  height: 56px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 4px 0 rgba(105, 66, 32, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: transform .08s, filter .12s, box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
}
.aq-pad.pad-0 { background: linear-gradient(180deg, #FFC49C, #FF9A64); }
.aq-pad.pad-1 { background: linear-gradient(180deg, #FFE5A0, #FFCF66); }
.aq-pad.pad-2 { background: linear-gradient(180deg, #C3E8AA, #96CF77); }
.aq-pad.pad-3 { background: linear-gradient(180deg, #B4E2F7, #7FC7EA); }
.aq-pad.lit { transform: scale(1.045); filter: brightness(1.2); box-shadow: 0 0 22px rgba(255, 226, 145, .9), inset 0 1px 0 #fff; }
.aq-status { margin: 9px 0 0; color: #A18060; font-size: 10.5px; line-height: 1.5; }
.aq-pack { display: flex; align-items: flex-end; justify-content: center; gap: 20px; height: 84px; margin-top: 4px; }
.aq-seed {
  width: 62px;
  height: 78px;
  display: grid;
  place-items: end center;
  padding: 0 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.aq-seed span {
  display: block;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(145deg, #EFD0A3, #B97C4C);
  box-shadow: 0 4px 0 #8C5B34, inset 0 2px 0 rgba(255, 244, 220, .55);
  transition: transform .12s, filter .12s;
}
.aq-seed.size-0 span { width: 20px; height: 24px; }
.aq-seed.size-1 span { width: 31px; height: 36px; }
.aq-seed.size-2 span { width: 43px; height: 49px; }
.aq-seed:active span { transform: translateY(2px); }
.aq-seed.picked span { filter: brightness(1.12); box-shadow: 0 0 0 3px rgba(143, 190, 82, .5), 0 4px 0 #8C5B34; }
.animal-reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 320px;
  margin: 12px auto 0;
  color: #A18060;
  font-size: 10.5px;
  line-height: 1.6;
}
.animal-reward .mp-icon { width: 16px; height: 16px; color: #A96FC4; flex: none; }
.animal-done { width: 100%; margin-top: 13px; min-height: 50px; }
.animal-done.hidden { display: none !important; }

/* 深层多步骤解谜的步骤头 */
.combo-wrap { display: flex; flex-direction: column; flex: 1; width: 100%; min-height: 0; }
.combo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin: 2px 0 9px; }
.combo-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid #E6D0B0;
  border-radius: 999px;
  color: #B09474;
  background: #F4E7D1;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}
.combo-step b {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #DCC4A4;
  font-size: 8.5px;
}
.combo-step.active { color: #6C472D; border-color: #F0B06B; background: #FFF4DF; box-shadow: 0 2px 0 rgba(202, 124, 58, .16); }
.combo-step.active b { background: #FF8A3D; }
.combo-step.done { color: #6E8F45; border-color: #CFE0AC; background: #EDF6DC; }
.combo-step.done b { background: #8FBE52; }
.combo-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.combo-stage > * { max-width: 100%; }
.combo-tip { margin: 8px 0 0; color: #A18060; font-size: 10.5px; line-height: 1.5; text-align: center; }
.combo-wrap.done .combo-stage { animation: boardWin .5s ease both; }

@keyframes freshPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes moleBlocked { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(2px) rotate(-1.4deg); } }
@keyframes moleHit { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(2px) scale(1.035, .975); } 100% { transform: translateY(0) scale(1); } }

@media (max-width: 360px) {
  .seed-satchel em { display: none; }
  .animal-sheet { padding-left: 14px; padding-right: 14px; }
  .animal-portrait { width: 100px; height: 94px; }
  .aq-cell { height: 46px; }
  .aq-pack { gap: 14px; }
}

/* ================= 地下探索：左右挖 + 起跳 ================= */
.play-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--sab) + 14px);
  z-index: 18;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}
.play-controls.hidden { display: none; }
.move-pad { display: flex; gap: 10px; pointer-events: auto; }
.pad-btn {
  width: 64px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  border: 2px solid rgba(255, 240, 214, .82);
  border-radius: 21px;
  color: #6A4325;
  background: linear-gradient(160deg, #FFF9EC, #FFE7C4);
  box-shadow: 0 5px 0 rgba(105, 62, 28, .30), 0 10px 20px rgba(46, 26, 10, .24), inset 0 1px 0 #fff;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.pad-btn .mp-icon { width: 26px; height: 26px; color: #B96D34; }
.pad-btn span { font: 800 9px/1 "Noto Sans SC", sans-serif; letter-spacing: 1px; color: #9A6A44; }
.pad-btn.pressed { transform: translateY(4px) scale(.96); box-shadow: 0 1px 0 rgba(105, 62, 28, .3), inset 0 2px 5px rgba(120, 72, 34, .18); }
.jump-btn {
  width: 78px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 2px solid rgba(255, 240, 214, .92);
  border-radius: 50%;
  color: #FFF6E4;
  background: linear-gradient(165deg, #FFC078, #FF8A3D 62%, #F0762A);
  box-shadow: 0 6px 0 #C75D1C, 0 12px 24px rgba(60, 28, 6, .34), inset 0 2px 0 rgba(255, 255, 255, .5);
  text-shadow: 0 1px 1px rgba(130, 60, 12, .35);
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  pointer-events: auto;
}
.jump-btn .mp-icon { width: 30px; height: 30px; color: #FFF6E4; }
.jump-btn span { font: 800 12px/1.1 "ZCOOL KuaiLe", "Noto Sans SC", sans-serif; letter-spacing: 1px; }
.jump-btn.pressed { transform: translateY(4px) scale(.95); box-shadow: 0 1px 0 #C75D1C, inset 0 3px 7px rgba(130, 60, 12, .28); }

/* 提示条放在操作按钮上方，宽度自动折行 */
.dig-hint {
  bottom: calc(var(--sab) + 112px);
  max-width: calc(100% - 26px);
  padding: 9px 15px 10px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  font-size: 11.5px;
}

/* 根须平台上的种子提示光 */
.gem-ring {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2px dashed rgba(255, 224, 150, .7);
  border-radius: 50%;
  pointer-events: none;
}

/* ================= 鼹鼠换装 ================= */
.wardrobe-sheet { max-height: 96dvh; }
.wardrobe-preview {
  position: relative;
  height: 206px;
  margin: 0 0 15px;
  border: 2px solid #F0D5AC;
  border-radius: 23px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .85), transparent 26%),
    radial-gradient(circle at 80% 24%, rgba(255, 241, 186, .55), transparent 30%),
    linear-gradient(180deg, #DDF0EA 0%, #F2F7DE 52%, #E6C499 52%, #C99764 100%);
  box-shadow: inset 0 0 26px rgba(108, 70, 34, .14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.wardrobe-preview::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -46px;
  height: 130px;
  border-radius: 50% 50% 0 0 / 32% 32% 0 0;
  background: radial-gradient(circle at 16% 30%, #D7AA78 0 3px, transparent 4px), radial-gradient(circle at 68% 48%, #B98358 0 4px, transparent 5px), linear-gradient(180deg, #D6A672, #B98155);
  background-size: 79px 67px, 113px 91px, auto;
}
.wardrobe-halo {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 190px;
  height: 190px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 196, .8), rgba(255, 246, 196, 0) 68%);
}
.wardrobe-mole {
  position: relative;
  z-index: 2;
  width: 128px;
  height: 178px;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 9px rgba(58, 34, 14, .26));
  animation: wardrobeBob 3.4s ease-in-out infinite;
}
.wardrobe-mole svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wardrobe-preview > p {
  position: relative;
  z-index: 3;
  margin: 0 0 9px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #7A5232;
  background: rgba(255, 250, 235, .8);
  font-size: 9.5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(90, 55, 22, .12);
}
.outfit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2px 0 8px;
  color: #7A4F30;
}
.outfit-head b { font-size: 13px; letter-spacing: .8px; }
.outfit-head span { color: #B08A68; font-size: 9.5px; font-weight: 700; }
.outfit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}
.outfit-cell {
  position: relative;
  min-height: 92px;
  padding: 7px 3px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  border: 1.6px solid #EAD1AA;
  border-radius: 16px;
  color: #704A30;
  background: #FFFCF3;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  box-shadow: 0 2px 0 rgba(150, 100, 52, .10);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.outfit-cell:active { transform: translateY(2px) scale(.98); }
.outfit-cell.on {
  border-color: #FF8A3D;
  background: linear-gradient(180deg, #FFF8EA, #FFEDD3);
  box-shadow: 0 3px 0 rgba(217, 106, 34, .22), inset 0 0 0 2px rgba(255, 185, 120, .32);
}
.outfit-cell.locked { opacity: .64; }
.outfit-thumb { width: 100%; height: 48px; display: block; }
.outfit-thumb svg { display: block; width: 100%; height: 100%; overflow: visible; }
.outfit-cell b { font-size: 10.5px; font-weight: 800; line-height: 1.2; text-align: center; }
.outfit-state { color: #A68463; font-size: 8px; line-height: 1.25; text-align: center; }
.outfit-cell.on .outfit-state { color: #E0702A; font-weight: 800; }
.outfit-lock {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  color: #B0875F;
  background: rgba(255, 249, 233, .9);
  border-radius: 50%;
  padding: 2px;
}
.outfit-tip {
  margin: 0 0 2px;
  padding: 9px 11px;
  border: 1px dashed #E4C9A2;
  border-radius: 13px;
  color: #A07C5C;
  background: rgba(255, 250, 236, .7);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
  transition: color .2s, background .2s;
}
.outfit-tip.show { color: #D26822; background: #FFF0D9; border-color: #F0B87E; }
@keyframes wardrobeBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (max-width: 360px) {
  .pad-btn { width: 56px; height: 56px; border-radius: 18px; }
  .jump-btn { width: 68px; height: 68px; }
  .play-controls { padding: 0 12px; }
  .dig-hint { bottom: calc(var(--sab) + 98px); font-size: 10.5px; }
  .outfit-grid { gap: 6px; }
  .outfit-cell { min-height: 86px; }
  .outfit-thumb { height: 42px; }
}

/* ================= 水土推种（物理解谜） ================= */
.push-wrap {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.push-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 3px;
  width: min(100%, 322px);
  aspect-ratio: 7 / 8;
  padding: 6px;
  border: 2px solid #7C4E2C;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 226, 185, .16), transparent 34%),
    linear-gradient(180deg, #6D462A, #4E311C);
  box-shadow: 0 8px 0 rgba(80, 48, 24, .28), 0 14px 24px rgba(60, 34, 12, .2), inset 0 0 0 1px rgba(255, 232, 196, .16);
  touch-action: manipulation;
}
.push-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #35210F;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.push-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #9CE2F2, #55B7D6 58%, #3795B8);
  transition: opacity .2s;
}
.push-cell.wet::before { opacity: 1; }
.push-cell.wet { box-shadow: inset 0 0 0 1px rgba(202, 246, 255, .32); }
.push-cell.soil {
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 229, 190, .34) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 64%, rgba(104, 62, 30, .35) 0 2px, transparent 2.6px),
    linear-gradient(155deg, #C59160, #A36E41 62%, #87552F);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 186, .22), inset 0 3px 0 rgba(255, 233, 200, .18);
}
.push-cell.soil:active { filter: brightness(1.08); }
.push-cell.stone {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 247, 232, .3) 0 2px, transparent 3px),
    linear-gradient(150deg, #AFA294, #7F7264 56%, #5E5348);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, .18), inset 0 -3px 0 rgba(46, 38, 30, .3);
}
.push-cell.stone::before { display: none; }
.push-cell.movable { box-shadow: inset 0 0 0 2px rgba(255, 218, 149, .38); }
.push-cell.selected { box-shadow: inset 0 0 0 2.5px #FFD37A, 0 0 12px rgba(255, 206, 112, .55); z-index: 3; }
.push-cell.selected .push-rock { animation: pushRockWiggle .5s ease-in-out infinite; }
.push-cell.has-seed { z-index: 2; }
.push-cell.root { background: linear-gradient(180deg, #6A4528, #4A2E18); }
.push-cell.root.wet::before { opacity: .72; }
.push-cell.source { background: linear-gradient(180deg, #44707C, #2F5462); }
.push-cell.hint { animation: pushHint .75s ease-in-out infinite; z-index: 4; }

.push-soil-dot {
  position: absolute;
  left: 22%; top: 58%;
  width: 18%;
  height: 12%;
  border-radius: 50%;
  background: rgba(94, 56, 26, .34);
  box-shadow: 0 0 0 1px rgba(255, 226, 186, .08);
  z-index: 1;
}
.push-rock {
  position: absolute;
  inset: 3px;
  z-index: 2;
  border-radius: 46% 54% 48% 52% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 250, 236, .42) 0 2px, transparent 4px),
    linear-gradient(150deg, #B3A595, #7E7162 55%, #584D41);
  box-shadow: inset -2px -3px 0 rgba(43, 35, 28, .28), inset 2px 2px 0 rgba(255, 244, 224, .18), 0 2px 3px rgba(20, 12, 6, .3);
}
.push-cell.movable .push-rock { outline: 1.5px dashed rgba(255, 224, 165, .6); outline-offset: -4px; }
.push-seed {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 46%;
  height: 58%;
  transform: translate(-50%, -50%) rotate(-16deg);
  border-radius: 52% 48% 46% 54% / 62% 60% 40% 38%;
  background: linear-gradient(150deg, #FFF3C0, #FFD166 55%, #E9A032);
  box-shadow: 0 2px 4px rgba(70, 40, 12, .3), inset -1px -2px 0 rgba(172, 106, 31, .32), inset 1px 1px 0 #FFF9E0;
  animation: pushSeedFloat 1.7s ease-in-out infinite;
}
.push-seed::after {
  content: "";
  position: absolute;
  left: 22%;
  top: 16%;
  width: 24%;
  height: 30%;
  border-radius: 50%;
  background: rgba(255, 253, 232, .8);
}
.push-drop, .push-root, .push-bloom {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}
.push-drop .mp-icon { width: 58%; height: 58%; color: #DFF9FF; filter: drop-shadow(0 1px 2px rgba(18, 76, 94, .45)); }
.push-root .mp-icon { width: 64%; height: 64%; color: #A9D274; filter: drop-shadow(0 1px 2px rgba(28, 48, 16, .5)); }
.push-bloom { z-index: 4; }
.push-bloom .mp-icon { width: 80%; height: 80%; color: #FFE39A; animation: pushBloom .6s ease both; }
.push-cell.bloom { background: linear-gradient(180deg, #6E9B3E, #4F7429); }

.push-caption {
  max-width: 330px;
  margin: 10px auto 0;
  padding: 0 4px;
  color: #A18060;
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

@keyframes pushHint {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 226, 160, .2), 0 0 0 rgba(255, 214, 128, .0); }
  50% { box-shadow: inset 0 0 0 2px #FFE1A0, 0 0 14px rgba(255, 214, 128, .6); }
}
@keyframes pushRockWiggle { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.5px); } }
@keyframes pushSeedFloat { 0%, 100% { transform: translate(-50%, -52%) rotate(-16deg); } 50% { transform: translate(-50%, -46%) rotate(-12deg); } }
@keyframes pushBloom { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
