* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #f7e9dc;
  font-family: "Yuanti SC", "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  touch-action: none; overscroll-behavior: none;
  user-select: none; -webkit-user-select: none;
}
#app { position: fixed; inset: 0; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
/* 午后暖光滤镜，向封面色调靠拢 */
#app::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 75% 60% at 38% 32%, rgba(255, 213, 150, .22), rgba(255, 190, 140, .06) 55%, transparent 75%);
  mix-blend-mode: soft-light;
}
/* 柔和暗角，聚焦画面中心 */
#app::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 90% 85% at 50% 46%, transparent 58%, rgba(122, 84, 60, .16) 100%);
}
.hidden { opacity: 0 !important; pointer-events: none !important; }
.hud-btn.hidden { opacity: 0 !important; pointer-events: none !important; }
.hud-btn:not(.hidden) { opacity: 1 !important; pointer-events: auto !important; }

/* ---------- HUD ---------- */
#hud {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 60px);
  display: flex; justify-content: space-between; align-items: flex-end;
  transition: opacity .6s;
  pointer-events: none;
}
#hud > * { pointer-events: auto; }
#mood-wrap { display: none; }

/* 消化凭证：划掉的烦恼飘走 */
.worry-tag.resolved {
  background: rgba(242, 249, 242, .94);
  border-color: rgba(150, 185, 155, .55);
  color: #8ba58f;
  text-decoration: line-through;
  animation: resolve-float 1.5s ease-out forwards;
}
@keyframes resolve-float {
  0%   { transform: translate(-50%, -50%) scale(.5); opacity: 0; }
  18%  { transform: translate(-50%, -95%) scale(1); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(-50%, -280%) scale(1); opacity: 0; }
}

/* 升级 toast */
.level-toast {
  position: absolute; z-index: 6;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #fff6e0, #ffe9c2);
  border: 1.5px solid rgba(220, 170, 90, .65);
  color: #9a7440; font-size: 15px; letter-spacing: 2px;
  padding: 13px 28px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 24px rgba(220, 170, 90, .4);
  pointer-events: none;
  animation: toast-in .4s cubic-bezier(.3, 1.4, .6, 1), toast-out .6s ease-in 2.7s forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -30%) scale(.7); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translate(-50%, -85%); }
}

/* ---------- 烦恼词条（飞向嘴边被吃掉） ---------- */
.worry-tag {
  position: absolute; z-index: 4; transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 252, 247, .95);
  border: 1.5px solid rgba(190, 160, 140, .55);
  color: #8a7264; font-size: 14px; letter-spacing: 1px;
  padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 12px rgba(160, 120, 90, .2);
  pointer-events: none;
  animation: worry-pop .95s ease-out forwards;
}
/* 自定义烦恼：暖金标签 */
.worry-tag.custom {
  background: linear-gradient(135deg, #fff6e0, #ffeec9);
  border-color: rgba(220, 170, 90, .6);
  color: #9a7440;
  box-shadow: 0 4px 14px rgba(220, 170, 90, .3);
}
/* 飞向团子嘴边，越变越小被啊呜掉 */
.worry-tag.fly {
  transition: left .6s cubic-bezier(.55, -.1, .7, .4), top .6s ease-in,
              transform .6s ease, opacity .25s ease .4s;
  transform: translate(-50%, -50%) scale(.22) rotate(10deg) !important;
  opacity: 0;
}
/* 团子被 rua 时，标签先在头顶漂浮等待（JS 驱动上下浮动） */
.worry-tag.hover {
  transition: left .45s ease, top .45s ease, transform .45s ease, opacity .3s;
  transform: translate(-50%, -150%) scale(1) !important;
  opacity: 1;
}
@keyframes worry-pop {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  18%  { transform: translate(-50%, -60%) scale(1.08); opacity: 1; }
  30%  { transform: translate(-50%, -68%) scale(1); }
  100% { transform: translate(-50%, -150%) scale(1); opacity: 1; }
}

/* ---------- 糯糯的回复气泡 ---------- */
.reply-bubble {
  position: absolute; z-index: 4; transform: translate(-50%, -100%);
  background: rgba(255, 253, 249, .97);
  border: 1.5px solid rgba(190, 160, 140, .5);
  color: #a0785f; font-size: 13px; letter-spacing: 1px;
  padding: 9px 18px; border-radius: 18px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(160, 120, 90, .18);
  pointer-events: none;
  animation: bubble-in .3s ease-out, bubble-out .5s ease-in 1.9s forwards;
}
.reply-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -7px;
  width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: inherit; border-right: 1.5px solid rgba(190, 160, 140, .5);
  border-bottom: 1.5px solid rgba(190, 160, 140, .5);
}
@keyframes bubble-in {
  from { opacity: 0; transform: translate(-50%, -88%) scale(.7); }
  to   { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}
@keyframes bubble-out {
  to { opacity: 0; transform: translate(-50%, -125%); }
}

/* ---------- 喂烦恼按钮（底部大 pill） ---------- */
#hud-btns { display: none; }   /* 旧容器不用了 */
#feed-btn {
  position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  left: 50%; transform: translateX(-50%);
  border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; letter-spacing: 2px; color: #fff;
  padding: 13px 28px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, #ffb3c6, #ff8fab);
  box-shadow: 0 6px 22px rgba(255, 143, 171, .4), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s, box-shadow .15s;
  animation: feed-pulse 3s ease-in-out infinite;
}
@keyframes feed-pulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(255, 143, 171, .4), inset 0 1px 0 rgba(255,255,255,.35); }
  50% { box-shadow: 0 6px 35px rgba(255, 143, 171, .65), inset 0 1px 0 rgba(255,255,255,.35); }
}
#feed-btn:active { transform: translateX(-50%) scale(.94); }
#feed-mask {
  position: absolute; inset: 0; z-index: 8;
  background: rgba(122, 84, 60, .28); backdrop-filter: blur(2px);
  transition: opacity .3s;
}
#feed-panel {
  position: absolute; left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  width: min(84vw, 340px);
  background: rgba(255, 252, 247, .97);
  border-radius: 24px; padding: 22px 22px 18px;
  box-shadow: 0 12px 40px rgba(140, 100, 75, .3);
  animation: panel-in .28s cubic-bezier(.3, 1.4, .6, 1);
}
@keyframes panel-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
#feed-title {
  font-size: 15px; color: #a08570; letter-spacing: 2px;
  text-align: center; margin-bottom: 14px;
}
#feed-input {
  width: 100%; border: 1.5px solid #ecd9c6; border-radius: 14px;
  padding: 12px 14px; font-size: 15px; font-family: inherit;
  color: #8a7264; background: #fffdf9; outline: none;
}
#feed-input:focus { border-color: #ffb3c6; }
#feed-input::placeholder { color: #d3bdab; }
#feed-actions { display: flex; gap: 10px; margin-top: 16px; }
#feed-actions button {
  flex: 1; border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; letter-spacing: 2px; padding: 12px 0; border-radius: 999px;
  transition: transform .15s;
}
#feed-actions button:active { transform: scale(.94); }
#feed-cancel { background: #f3e8dc; color: #b09a86; }
#feed-ok {
  background: linear-gradient(135deg, #ffb3c6, #ff8fab); color: #fff;
  box-shadow: 0 4px 14px rgba(255, 143, 171, .4);
}
#music-btn {
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(255, 250, 244, .75); backdrop-filter: blur(8px);
  color: #d4a08a; font-size: 18px; line-height: 40px; text-align: center;
  box-shadow: 0 2px 8px rgba(180, 140, 110, .15);
  cursor: pointer; transition: transform .15s, background .2s;
  position: fixed; left: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 5;
}
#music-btn:hover { background: rgba(255, 250, 244, .9); }
#music-btn:active { transform: scale(.88); }
#music-btn.off { color: #c5b3a4; }

/* 喂养指南按钮（左上角，独立定位不依赖 hud） */
.hud-btn { pointer-events: auto !important; }
#guide-btn {
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: rgba(255, 250, 244, .78); backdrop-filter: blur(8px);
  font-size: 20px; line-height: 42px; text-align: center;
  box-shadow: 0 2px 10px rgba(180, 140, 110, .18);
  cursor: pointer; transition: transform .15s, background .2s, opacity .4s;
  position: fixed; left: 12px; top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 6;
  opacity: 1; display: block;
}
#guide-btn:hover { background: rgba(255, 250, 244, .92); transform: scale(1.08); }
#guide-btn:active { transform: scale(.85); }
#guide-btn.hidden { display: none !important; }

/* 喂养指南面板 — 卡通纸质风格 */
#guide-panel {
  position: fixed; inset: 0; z-index: 6;
  background: rgba(122, 84, 60, .3); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s;
}
#guide-inner {
  width: min(84vw, 320px);
  background: url("assets/A_cute_cartoon_paper_texture_b_2026-07-23T08-54-48.png") center / cover;
  border-radius: 12px; padding: 22px 20px 18px;
  box-shadow: 0 10px 32px rgba(140, 100, 75, .35), inset 0 0 0 1px rgba(200, 175, 150, .2);
  position: relative;
  animation: guide-in .4s cubic-bezier(.3, 1.4, .6, 1);
}
@keyframes guide-in {
  from { opacity: 0; transform: translateY(-16px) scale(.9) rotate(-2deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
/* 顶部胶带 */
#guide-inner::before {
  content: ""; position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 62px; height: 16px;
  background: linear-gradient(90deg, rgba(255,190,170,.5), rgba(255,220,180,.6), rgba(255,190,170,.5));
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
#guide-title {
  font-size: 20px; font-weight: 700; color: #8a6250; letter-spacing: 4px;
  text-align: center; margin-bottom: 12px;
  text-shadow: 0 1px 0 #fff, 0 3px 6px rgba(160, 120, 90, .2);
  padding-bottom: 10px; border-bottom: 1px dashed #e8d9c4;
}
#guide-list {
  margin: 0; padding: 0; list-style: none;
  color: #7a5a48; font-size: 13.5px; line-height: 2.0;
}
#guide-list li { padding: 1px 0; }
#guide-list b { color: #d07a96; }
#guide-hint {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed #e8d9c4;
  font-size: 11px; color: #c4a06f; text-align: center;
  letter-spacing: 1px;
}

/* ---------- 底部提示 ---------- */
#hint {
  position: absolute; z-index: 5; white-space: nowrap;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 250, 244, .8); backdrop-filter: blur(6px);
  color: #a08570; font-size: 13px; letter-spacing: 2px;
  padding: 10px 22px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(180, 140, 110, .15);
  transition: opacity 1.2s;
}

/* ---------- 深呼吸引导 ---------- */
#breath-ui {
  position: absolute; z-index: 7; text-align: center;
  top: calc(env(safe-area-inset-top, 0px) + 96px); left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 250, 244, .92); backdrop-filter: blur(6px);
  padding: 12px 28px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(180, 140, 110, .2);
  transition: opacity .4s;
}
#breath-phase { font-size: 17px; color: #8a6250; letter-spacing: 4px; }
#breath-round { font-size: 11px; color: #b08d78; letter-spacing: 2px; margin-top: 3px; }
#breath-skip {
  margin-top: 5px; border: none; background: none; cursor: pointer;
  color: #c4a892; font-size: 11px; letter-spacing: 1px; font-family: inherit;
}

/* ---------- 团子递出的折叠信件 ---------- */
#feedback-letter {
  position: absolute; z-index: 8;
  width: 54px; height: 40px;
  cursor: pointer;
  transition: transform .25s ease;
  animation: letter-float 2.5s ease-in-out infinite;
}
#feedback-letter:hover {
  transform: scale(1.12);
}
#feedback-letter .letter-body {
  width: 100%; height: 100%;
  background:
    linear-gradient(170deg, #fdf6e8 0%, #f5ead4 100%);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(120, 95, 70, .25), inset 0 0 0 1px rgba(210, 190, 165, .3);
  position: relative;
  overflow: hidden;
}
#feedback-letter .letter-body::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(180,160,140,.06) 7px, rgba(180,160,140,.06) 8px);
}
/* 折叠线——上下各一条，像折过的信纸 */
#feedback-letter .letter-body::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: 50%; height: 1px;
  background: rgba(160, 130, 100, .15);
  box-shadow: 0 -13px 0 rgba(160, 130, 100, .1), 0 13px 0 rgba(160, 130, 100, .1);
}
/* 封口蜡印 */
#feedback-letter .letter-seal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #e8a0b4, #d07a96);
  box-shadow: 0 1px 3px rgba(160, 80, 110, .3);
  z-index: 1;
}
#feedback-letter .letter-seal::after {
  content: "♥"; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px; color: rgba(255, 255, 255, .7);
}
@keyframes letter-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
/* 展开动画——像信纸从折叠处向上下展开（先横后纵，更像真实展开） */
#note-card.unfolding {
  animation: letter-unfold .7s cubic-bezier(.25, 1.1, .35, 1) forwards;
  transform-origin: top center;
}
@keyframes letter-unfold {
  0%   { opacity: 0; transform: translateX(-50%) scaleY(.02) scaleX(.7) rotate(-1.5deg); }
  15%  { opacity: 1; transform: translateX(-50%) scaleY(.05) scaleX(.85) rotate(-1.5deg); }
  40%  { opacity: 1; transform: translateX(-50%) scaleY(.3) scaleX(.95) rotate(-1.5deg); }
  70%  { opacity: 1; transform: translateX(-50%) scaleY(.75) scaleX(1) rotate(-1.5deg); }
  100% { opacity: 1; transform: translateX(-50%) scaleY(1) scaleX(1) rotate(-1.5deg); }
}

/* ---------- 糯糯的小纸条 ---------- */
#note-card {
  position: absolute; z-index: 7;
  left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
  transform: translateX(-50%) rotate(-1.5deg);
  width: min(84vw, 300px);
  border-radius: 4px;
  padding: 22px 18px 18px;
  /* 多层纸张质感：纤维纹 + 暖光 + 微颗粒 */
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.8) 0, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E"),
    linear-gradient(175deg, #fef9f0 0%, #f9f0e0 50%, #f5e9d8 100%);
  box-shadow:
    0 1px 2px rgba(100, 75, 55, .08),
    0 4px 12px rgba(100, 75, 55, .15),
    0 12px 32px rgba(100, 75, 55, .2),
    inset 0 0 0 1px rgba(200, 175, 150, .25),
    inset 0 0 40px rgba(255, 240, 210, .3);
  transition: opacity .3s, transform .3s;
  overflow: visible;
}
/* 四角小贴纸（kawaii stickers） */
#note-card::before {
  content: "★"; position: absolute;
  top: -8px; left: 12px;
  font-size: 16px; color: #f9c5a0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.1));
}
#note-card::after {
  content: "✦"; position: absolute;
  bottom: -6px; right: 16px;
  font-size: 14px; color: #f5b8b8;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.1));
}
#note-tape {
  position: absolute; top: -10px; left: 50%;
  width: 96px; height: 22px;
  transform: translateX(-50%) rotate(-1deg);
  background: linear-gradient(90deg, rgba(255,190,170,.55), rgba(255,220,180,.65), rgba(255,190,170,.55));
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  /* washi 胶带纹理密线 */
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,.18) 2px, rgba(255,255,255,.18) 4px),
    linear-gradient(90deg, rgba(255,190,170,.55), rgba(255,220,180,.65), rgba(255,190,170,.55));
}
#note-title { font-size: 14px; color: #b08d78; letter-spacing: 2px; text-align: center; margin-bottom: 10px; }
#note-steps { margin: 0; padding: 0; color: #8a7264; font-size: 13.5px; line-height: 2.1; }
#note-steps p { margin: 0; padding: 4px 0; }
#note-joke {
  font-size: 12px; color: #c4a06f; text-align: center;
  border-top: 1px dashed #e8d9c4; padding-top: 8px; margin-bottom: 12px;
}
#note-ok {
  display: block; margin: 0 auto; border: none; cursor: pointer; font-family: inherit;
  font-size: 13px; letter-spacing: 2px; color: #fff;
  padding: 9px 28px; border-radius: 999px;
  background: linear-gradient(135deg, #ffb3c6, #ff8fab);
  box-shadow: 0 4px 12px rgba(255, 143, 171, .35);
}

/* 贴在脑门上的纸条 */
.worry-tag.pinned {
  animation: none;
  border: none;
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: 12.5px;
  letter-spacing: .3px;
  pointer-events: none;
  /* 纸条本体由内部 .pin-paper 提供 */
}
.worry-tag.pinned .pin-paper {
  position: relative;
  padding: 10px 16px 9px;
  border-radius: 1px;
  color: #6b5a50;
  white-space: nowrap;
  line-height: 1.35;
  /* 仿手写纸：暖白底 + 纤维纹 + 横线 */
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 15px, rgba(180,160,140,.07) 15px, rgba(180,160,140,.07) 16px),
    radial-gradient(ellipse at 30% 20%, rgba(255,250,240,.6), transparent 70%),
    linear-gradient(170deg, #fdf6e8 0%, #f9f0dc 60%, #f5ead4 100%);
  /* 纸张边缘：不规则微撕 + 投影 */
  box-shadow:
    0 1px 2px rgba(120, 95, 70, .12),
    0 3px 8px rgba(120, 95, 70, .15),
    inset 0 0 0 1px rgba(210, 190, 165, .35),
    inset 0 0 20px rgba(255, 245, 225, .5);
  /* 轻微纸张卷角 */
  clip-path: polygon(2% 0, 98% 0, 100% 4%, 99% 96%, 97% 100%, 3% 100%, 0 96%, 1% 4%);
}
/* 纸条底部阴影渐变——增强"贴在圆弧表面"的感觉 */
.worry-tag.pinned .pin-paper::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to top, rgba(160, 130, 100, .08), transparent);
  border-radius: 0 0 1px 1px;
  pointer-events: none;
}
/* 胶带——贴在纸条顶部，半透明有褶皱感 */
.worry-tag.pinned .pin-tape {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(var(--tape-rot, -3deg));
  width: 38px; height: 15px;
  background: rgba(255, 220, 170, .45);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(180, 150, 110, .12);
}
.worry-tag.pinned .pin-tape::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255, 255, 255, .12) 3px, rgba(255, 255, 255, .12) 5px),
    linear-gradient(90deg, rgba(255,255,255,.15), transparent 30%, transparent 70%, rgba(255,255,255,.15));
  border-radius: 1px;
}
/* 胶带两端微微翘起 */
.worry-tag.pinned .pin-tape::after {
  content: ""; position: absolute;
  left: -2px; top: -1px; width: 4px; height: 4px;
  background: rgba(255, 220, 170, .3);
  border-radius: 50%;
  box-shadow: 36px 0 0 0 rgba(255, 220, 170, .3);
}
@keyframes pin-wobble {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--tilt, -2deg)) scale(var(--s, 1)); }
  25%      { transform: translate(-50%, -48%) rotate(calc(var(--tilt, -2deg) + 1deg)) scale(var(--s, 1)); }
  75%      { transform: translate(-50%, -52%) rotate(calc(var(--tilt, -2deg) - 1deg)) scale(var(--s, 1)); }
}

/* 花园点击小提示 */
.garden-tip {
  position: absolute; z-index: 6;
  transform: translate(-50%, -130%);
  background: rgba(255, 252, 247, .96);
  border: 1.5px solid rgba(190, 160, 140, .5);
  color: #8a7264; font-size: 12px; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 12px rgba(160, 120, 90, .2);
  pointer-events: none;
  animation: tip-in .25s ease-out, bubble-out .4s ease-in 2.2s forwards;
}
.garden-tip s { color: #b3a190; }
@keyframes tip-in {
  from { opacity: 0; transform: translate(-50%, -110%) scale(.8); }
  to   { opacity: 1; transform: translate(-50%, -130%) scale(1); }
}

/* ---------- 标题页 ---------- */
#title-screen { position: absolute; inset: 0; z-index: 10; transition: opacity .9s ease; }
#title-bg { position: absolute; inset: 0; background: url("assets/title-art.png") center / cover no-repeat; }
#title-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 247, 238, .15) 0%,
    rgba(255, 247, 238, 0) 40%,
    rgba(255, 244, 232, .88) 78%,
    #fff4e8 100%);
}
#title-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 28px calc(env(safe-area-inset-bottom, 0px) + 36px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
#game-title {
  font-size: 52px; font-weight: 700; color: #8a6250; letter-spacing: 10px;
  text-shadow: 0 2px 0 #fff, 0 6px 24px rgba(190, 140, 110, .25);
  margin-bottom: 8px;
}
#game-sub { font-size: 15px; color: #b08d78; letter-spacing: 4px; margin-bottom: 18px; }

#start-btn {
  border: none; cursor: pointer; font-family: inherit;
  font-size: 19px; letter-spacing: 6px; color: #fff;
  padding: 16px 58px 16px 64px; border-radius: 999px;
  background: linear-gradient(135deg, #ffb3c6, #ff8fab);
  box-shadow: 0 8px 24px rgba(255, 143, 171, .45), inset 0 2px 0 rgba(255, 255, 255, .4);
  animation: pulse 2.2s ease-in-out infinite;
  transition: transform .15s;
}
#start-btn:active { transform: scale(.93); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 143, 171, .45), inset 0 2px 0 rgba(255,255,255,.4); }
  50%      { box-shadow: 0 8px 38px rgba(255, 143, 171, .72), inset 0 2px 0 rgba(255,255,255,.4); }
}
#title-tip { margin-top: 14px; font-size: 12px; color: #c4a892; letter-spacing: 2px; }
