:root {
  --ink: #3f2f1f;
  --ink-2: #6f5a42;
  --ink-3: #9b8569;
  --paper: #fffaf0;
  --paper-2: #f8ecd6;
  --line: #e5d0ad;
  --orange: #ff8a3d;
  --orange-deep: #e96e1d;
  --gold: #f0b64f;
  --green: #6b9a4c;
  --shadow: 0 10px 26px rgba(61, 39, 15, .18);
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #241b12;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
  background:
    radial-gradient(circle at 50% 20%, #4a3a27 0%, #241b12 68%);
}

button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
svg { display: block; }

.app {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #e8dcc4;
  isolation: isolate;
}
@media (min-width: 600px) {
  .app { box-shadow: 0 0 70px rgba(0, 0, 0, .55); }
}

/* ============ 场景 ============ */
.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #dce4d5;
}
.scene-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(100vh * 0.6664));
  width: max(100%, calc(100dvh * 0.6664));
  aspect-ratio: 853 / 1280;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.scene-art {
  position: absolute;
  inset: 0;
  background-image: url("images/gen/gptimg_1795323505_look.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.scene-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 55%, rgba(52, 38, 18, .14) 100%),
    linear-gradient(180deg, rgba(255, 240, 210, .10), transparent 30%);
}

.scrim-top {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 184px;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(249, 239, 219, .99) 0%,
    rgba(249, 239, 219, .98) 50%,
    rgba(249, 239, 219, .9) 68%,
    rgba(249, 239, 219, .52) 84%,
    rgba(249, 239, 219, .18) 94%,
    transparent 100%);
}
.scrim-bottom {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(0deg,
    rgba(244, 229, 201, .98) 0%,
    rgba(244, 229, 201, .95) 30%,
    rgba(244, 229, 201, .72) 55%,
    rgba(244, 229, 201, .28) 78%,
    transparent 100%);
}

/* ============ 顶部 HUD ============ */
.hud {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: calc(10px + env(safe-area-inset-top)) 13px 0;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }

.player-card {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .85);
  background: linear-gradient(180deg, rgba(255, 251, 241, .92), rgba(247, 233, 205, .82));
  box-shadow: 0 5px 16px rgba(74, 48, 20, .16), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  text-align: left;
  transition: transform .14s ease;
}
.player-card:active { transform: scale(.97); }

.avatar {
  position: relative;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff9ec, 0 0 0 3.5px #d8a55f, 0 3px 8px rgba(80, 50, 20, .25);
}
.avatar-face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #d9c2a4;
  background-image: url("images/gen/gptimg_1795323505_look.png");
  background-size: 573px 860px;
  background-position: -24px -24px;
  background-repeat: no-repeat;
}
.avatar-ring {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -8px 12px rgba(90, 55, 20, .13);
  pointer-events: none;
}
.player-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.player-text b {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #442f1b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.player-text em {
  margin-top: 3px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: .35px;
  color: #97795a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  min-width: 79px;
  padding: 0 10px 0 3px;
  border-radius: 999px;
  border: 1px solid #dcbd8d;
  background: linear-gradient(180deg, #fffaf0, #f3e1c0);
  box-shadow: 0 3px 8px rgba(74, 46, 18, .15), inset 0 1px 0 #fff;
}
.wallet-pill.bump { animation: walletBump .42s ease; }
.wallet-ico {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff3d3;
  box-shadow: inset 0 0 0 1px rgba(184, 124, 40, .22);
}
.wallet-ico svg { width: 20px; height: 20px; }
.wallet-ico.fish-ico { background: #e5f4ef; }
.wallet-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #563a1c;
  font-variant-numeric: tabular-nums;
}

/* ============ 提示 ============ */
.hint-ribbon {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom));
  transform: translate(-50%, 6px);
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 32px);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 220, .32);
  background: rgba(58, 41, 24, .64);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  box-shadow: 0 5px 16px rgba(45, 29, 12, .18);
  color: #fff4dd;
  font-size: 11px;
  letter-spacing: .3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.hint-ribbon.show { opacity: 1; transform: translate(-50%, 0); }
.hint-ribbon .mp-icon { width: 14px; height: 14px; color: #ffd79a; flex: 0 0 14px; }

/* ============ 底部玩法栏 ============ */
.dock {
  position: absolute;
  z-index: 7;
  left: 13px;
  right: 13px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: 83px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 5px 11px;
  border-radius: 25px;
  border: 1px solid #e0c69a;
  background:
    linear-gradient(180deg, rgba(255, 250, 238, .97), rgba(243, 226, 197, .96));
  box-shadow:
    0 12px 30px rgba(63, 40, 16, .27),
    inset 0 1px 0 #fffdf6,
    inset 0 -4px 10px rgba(158, 111, 55, .09);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dock::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(182, 139, 84, .35), transparent);
  pointer-events: none;
}
.dock-btn {
  position: relative;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #5c432b;
}
.dock-disc {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #ddc194;
  background: radial-gradient(circle at 35% 24%, #fffdf7 0%, #f2dfbc 66%, #e6ca9b 100%);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #d6b27c, 0 5px 10px rgba(85, 55, 25, .17);
  transition: transform .12s ease, box-shadow .12s ease;
}
.dock-disc svg { width: 31px; height: 31px; }
.dock-btn:active .dock-disc {
  transform: translateY(2px) scale(.96);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #d6b27c, 0 2px 5px rgba(85, 55, 25, .14);
}
.dock-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #65482c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.dock-badge {
  position: absolute;
  top: 0;
  left: calc(50% + 8px);
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid #fff5e3;
  background: linear-gradient(180deg, #ff9e51, #ef6f1e);
  box-shadow: 0 2px 6px rgba(200, 90, 20, .5);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.dock-badge[hidden] { display: none; }

/* ============ 菜畦与鱼塘热点 ============ */
.plot-layer, .deco-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.plot-spot {
  position: absolute;
  width: 66px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  pointer-events: auto;
  font-family: var(--font-sans);
  filter: drop-shadow(0 6px 7px rgba(43, 28, 12, .26));
  transition: transform .16s ease;
}
.plot-spot:active { transform: translate(-50%, -50%) scale(.94); }
.plot-spot.empty { opacity: .94; }
.spot-badge {
  position: relative;
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #e9d4ad;
  background: radial-gradient(circle at 35% 25%, rgba(255, 253, 245, .98), rgba(246, 231, 204, .97));
  box-shadow: inset 0 1px 0 #fff, inset 0 -5px 9px rgba(150, 100, 45, .10);
}
.spot-badge::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(#ffbf57 calc(var(--p, 0) * 1%), rgba(86, 61, 32, .15) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  opacity: 0;
  transition: opacity .2s;
}
.plot-spot.growing .spot-badge::before { opacity: 1; }
.plot-spot.empty .spot-badge {
  width: 46px;
  height: 46px;
  border: 2px dashed rgba(190, 150, 96, .85);
  background: rgba(255, 250, 236, .66);
  box-shadow: 0 3px 10px rgba(62, 42, 18, .10);
}
.plot-spot.empty .spot-badge .mp-icon { width: 22px; height: 22px; color: #a67c48; }
.spot-art { width: 41px; height: 41px; display: grid; place-items: center; }
.spot-art svg { width: 100%; height: 100%; overflow: visible; }
.spot-time {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 243, 217, .55);
  background: rgba(67, 46, 25, .88);
  color: #fff0cf;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.spot-tag {
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 220, .35);
  background: rgba(70, 48, 26, .72);
  color: #fff8e8;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1.35;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.plot-spot.ripe .spot-badge {
  border-color: #f7c35c;
  box-shadow: 0 0 0 4px rgba(255, 211, 122, .35), 0 0 20px rgba(255, 170, 62, .75), inset 0 1px 0 #fff;
  animation: ripeGlow 1.9s ease-in-out infinite;
}
.plot-spot.ripe .spot-tag {
  border-color: #ffd9a6;
  background: linear-gradient(180deg, #ff9f4c, #ee6d1e);
  box-shadow: 0 3px 8px rgba(220, 100, 22, .4);
  animation: tagBounce 1.2s ease-in-out infinite;
}
.plot-spot.pulse .spot-badge { animation: spotPulse 1.9s ease-in-out infinite; }

.fish-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  filter: drop-shadow(0 4px 8px rgba(26, 53, 48, .25));
  transition: transform .16s ease;
}
.fish-spot:active { transform: translate(-50%, -50%) scale(.93); }
.bobber-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.ripple {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .7);
  animation: rippleOut 2.8s ease-out infinite;
}
.ripple.r2 { animation-delay: 1.4s; }
.bobber {
  position: relative;
  width: 12px;
  height: 21px;
  border-radius: 7px 7px 5px 5px;
  background: linear-gradient(180deg, #ff8650 0 50%, #fff7e6 50% 100%);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
  animation: bobFloat 2s ease-in-out infinite;
}
.bobber::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -19px;
  width: 1px;
  height: 19px;
  background: rgba(255, 255, 255, .55);
}

/* ============ 小院装饰物 ============ */
.deco-prop {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 7px 6px rgba(38, 27, 12, .28));
  animation: propIn .58s cubic-bezier(.2, 1.5, .45, 1) both;
}
.deco-prop svg { width: 100%; height: auto; overflow: visible; }
.prop-label {
  position: absolute;
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 243, 216, .4);
  background: rgba(61, 43, 24, .8);
  color: #fff2d8;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.deco-prop.just .prop-label { animation: propLabel 3.2s ease forwards; }

/* ============ 花瓣 ============ */
.petals { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.petal {
  position: absolute;
  top: -26px;
  width: 9px;
  height: 7px;
  border-radius: 70% 20% 70% 20%;
  background: linear-gradient(135deg, #ffd8e0, #f5a7ba);
  opacity: 0;
  animation: petalFall linear infinite;
  will-change: transform;
}

/* ============ 面板 ============ */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(43, 28, 13, .38);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute;
  z-index: 31;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 560px;
  max-height: 81vh;
  max-height: 81dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  border-radius: 27px 27px 0 0;
  border-top: 1px solid rgba(255, 253, 246, .9);
  background: linear-gradient(180deg, #fffaf0 0%, #f9eeda 100%);
  box-shadow: 0 -16px 45px rgba(47, 30, 12, .3), inset 0 1px 0 #fff;
  transform: translate(-50%, 106%);
  pointer-events: none;
  transition: transform .34s cubic-bezier(.22, .9, .28, 1);
}
.sheet.open { transform: translate(-50%, 0); pointer-events: auto; }
.sheet::before {
  content: "";
  position: absolute;
  inset: 8px 10px auto;
  height: 60px;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .9), transparent 70%);
  pointer-events: none;
}
.sheet-grip {
  flex: 0 0 auto;
  width: 42px;
  height: 5px;
  margin: 8px auto 2px;
  border-radius: 999px;
  background: #dcc6a3;
  box-shadow: inset 0 1px 2px rgba(120, 85, 40, .2);
}
.sheet-head {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 18px 9px;
}
.sheet-titles h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #3b2a18;
}
.sheet-titles p {
  margin: 3px 0 0;
  font-size: 11px;
  letter-spacing: .4px;
  color: #9b8264;
}
.icon-btn {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #e2cba7;
  background: linear-gradient(180deg, #fffdf7, #f4e4c8);
  box-shadow: 0 2px 5px rgba(90, 60, 25, .1), inset 0 1px 0 #fff;
  color: #7d6242;
}
.icon-btn:active { transform: scale(.93); }
.icon-btn .mp-icon { width: 18px; height: 18px; }
.sheet-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 3px 16px calc(18px + env(safe-area-inset-bottom));
}

/* ============ 菜园面板 ============ */
.seed-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2px 2px 7px;
}
.seed-label b { font-size: 12.5px; letter-spacing: .5px; color: #6b5031; }
.seed-label em { font-style: normal; font-size: 10px; color: #aa9070; }
.seed-tray {
  display: flex;
  gap: 8px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.seed-tray::-webkit-scrollbar { display: none; }
.seed-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 6px;
  border-radius: 15px;
  border: 1.5px solid #e6d0aa;
  background: #fffbf2;
  box-shadow: 0 2px 0 rgba(180, 140, 90, .14);
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.seed-chip:active { transform: scale(.96); }
.seed-chip.active {
  border-color: #e9863b;
  background: linear-gradient(180deg, #fff6e2, #ffe8c6);
  box-shadow: 0 0 0 2px rgba(255, 138, 61, .16), 0 3px 8px rgba(200, 120, 40, .16);
}
.seed-thumb {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #f6fbe9, #e3eed2);
  border: 1px solid rgba(120, 150, 90, .2);
}
.seed-thumb svg { width: 29px; height: 29px; }
.seed-txt { display: flex; flex-direction: column; line-height: 1.25; }
.seed-txt b { font-size: 12.5px; color: #4c3822; }
.seed-txt em { font-style: normal; font-size: 9px; color: #a08a6c; margin-top: 2px; }

.plot-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
  padding: 9px 11px;
  border-radius: 18px;
  border: 1px solid #e8d7b9;
  background: rgba(255, 252, 244, .92);
  box-shadow: 0 4px 10px rgba(100, 70, 30, .06), inset 0 1px 0 #fff;
}
.plot-row.ripe {
  border-color: #efc077;
  background: linear-gradient(180deg, #fffaf0, #fff0d3);
  box-shadow: 0 5px 14px rgba(210, 140, 50, .15), inset 0 1px 0 #fff;
}
.plot-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid #e6d4b4;
  background: radial-gradient(circle at 50% 35%, #fbf6e9, #efe1c8);
}
.plot-thumb svg { width: 39px; height: 39px; }
.plot-meta { flex: 1 1 auto; min-width: 0; }
.plot-meta b { display: block; font-size: 13.5px; color: #493520; letter-spacing: .3px; }
.plot-meta .plot-status { display: block; margin-top: 2px; font-size: 10.5px; color: #8f7a61; }
.plot-bar { height: 5px; margin-top: 6px; border-radius: 99px; background: #eee0c9; overflow: hidden; }
.plot-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #a9cc77, #5f9445);
  transition: width .5s linear;
}
.plot-bar.hide { visibility: hidden; }

.mini-btn {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid #d9aa6e;
  background: linear-gradient(180deg, #fff8e9, #f7e2bd);
  box-shadow: 0 2px 0 #d7b384, inset 0 1px 0 #fff;
  color: #7a4a1f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: transform .1s;
}
.mini-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #d7b384; }
.mini-btn.harvest {
  border-color: #e0701e;
  background: linear-gradient(180deg, #ffb163, #f3822c);
  box-shadow: 0 3px 0 #c65b14, inset 0 1px 0 rgba(255, 255, 255, .4);
  color: #fff;
  text-shadow: 0 1px 1px rgba(150, 70, 10, .3);
}
.mini-btn:disabled {
  border-color: #dfcfb2;
  background: #f2e8d6;
  box-shadow: none;
  color: #9f8e77;
}

.garden-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 1px 2px 9px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(240, 226, 201, .6);
  color: #94795a;
  font-size: 10px;
  line-height: 1.5;
}
.garden-tip .mp-icon { width: 13px; height: 13px; flex: 0 0 13px; color: #b28753; }

/* ============ 钓鱼面板 ============ */
.fish-hero {
  position: relative;
  height: 196px;
  border-radius: 21px;
  overflow: hidden;
  border: 1px solid #d9c3a1;
  background-color: #7ea9a2;
  background-image:
    linear-gradient(180deg, rgba(245, 238, 214, .10), rgba(35, 74, 66, .16) 65%, rgba(25, 58, 52, .35)),
    url("images/gen/gptimg_1795323505_look.png");
  background-size: cover, cover;
  background-position: center top, 82% 61%;
  box-shadow: inset 0 0 34px rgba(20, 50, 44, .22);
}
.fish-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 10%, transparent 45%, rgba(20, 43, 36, .2) 100%);
  pointer-events: none;
}
.fish-float {
  position: absolute;
  left: 52%;
  top: 55%;
  width: 13px;
  height: 22px;
  border-radius: 7px 7px 5px 5px;
  background: linear-gradient(180deg, #ff8a52 0 52%, #fff6e4 52%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .28);
  transition: transform .4s ease;
}
.fish-float::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: 1.5px;
  height: 34px;
  background: rgba(255, 255, 255, .55);
}
.fish-float::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 55px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5);
  animation: fishRipple 2.6s ease-out infinite;
}
.fish-hero.waiting .fish-float { animation: floatDip 1.3s ease-in-out infinite; }
.fish-hero.bite .fish-float { animation: floatBite .16s linear infinite; }
.fish-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 4px 2px;
  text-align: center;
  font-size: 12.5px;
  color: #6e563b;
  letter-spacing: .3px;
}
.fish-status b { color: #d2651c; font-weight: 800; }
.fish-status .mp-icon { width: 15px; height: 15px; color: #b58650; }

.timing-wrap { padding: 2px 2px 10px; animation: fadeUp .3s ease both; }
.timing-track {
  position: relative;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #dcc29a;
  background:
    repeating-linear-gradient(90deg, rgba(150, 115, 70, .12) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #f6e9d0, #efdfc1);
  box-shadow: inset 0 2px 6px rgba(120, 85, 40, .16);
  overflow: hidden;
}
.timing-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffd77e, #f3a23b);
  box-shadow: 0 0 12px rgba(255, 156, 54, .55), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.timing-zone::after {
  content: "收";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #8b4a12;
}
.timing-marker {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 5px;
  margin-left: -2.5px;
  border-radius: 99px;
  background: #fffdf6;
  box-shadow: 0 0 0 1.5px rgba(120, 75, 25, .5), 0 0 9px rgba(255, 255, 255, .9);
}
.timing-hint {
  margin: 7px 2px 0;
  text-align: center;
  font-size: 10px;
  color: #9b8264;
  letter-spacing: .3px;
}

.primary-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 15px;
  border: 1px solid #e07322;
  background: linear-gradient(180deg, #ffa95c, #f27c28);
  box-shadow: 0 4px 0 #c85f16, 0 8px 18px rgba(210, 105, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
  color: #fffdf6;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 1px 1px rgba(150, 70, 10, .3);
  transition: transform .1s, box-shadow .1s;
}
.primary-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c85f16, 0 4px 10px rgba(210, 105, 30, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.primary-btn.ready { animation: readyPulse 1s ease-in-out infinite; }
.primary-btn:disabled {
  border-color: #d8c4a4;
  background: linear-gradient(180deg, #f3e7d3, #e8d7ba);
  box-shadow: inset 0 1px 0 #fff;
  color: #a28d70;
  text-shadow: none;
  animation: none;
}
.primary-btn .mp-icon { width: 19px; height: 19px; }

.bite-timer {
  height: 5px;
  margin: 1px 2px 11px;
  border-radius: 99px;
  background: #eeddc0;
  box-shadow: inset 0 1px 2px rgba(130, 95, 50, .12);
  overflow: hidden;
}
.bite-timer i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffb264, #e8582b);
  animation: biteCountdown 1.6s linear forwards;
}
.fish-actions { display: flex; gap: 9px; }
.fish-actions .primary-btn { flex: 1 1 60%; }
.ghost-btn {
  height: 48px;
  padding: 0 16px;
  border-radius: 15px;
  border: 1.5px solid #dcbd8d;
  background: linear-gradient(180deg, #fffdf6, #f6e7cd);
  box-shadow: 0 3px 0 #d9b985, inset 0 1px 0 #fff;
  color: #7d5c38;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ghost-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #d9b985; }

.catch-card { padding: 4px 0 12px; text-align: center; animation: catchIn .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.catch-rays {
  position: relative;
  width: 168px;
  height: 128px;
  margin: 0 auto 2px;
  display: grid;
  place-items: center;
}
.catch-rays::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 120, .55), transparent 68%);
  animation: raysSpin 14s linear infinite;
}
.catch-rays svg { position: relative; width: 140px; height: 108px; filter: drop-shadow(0 9px 11px rgba(45, 74, 66, .28)); }
.catch-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: 5px;
  color: #3d2c1a;
}
.catch-note { margin: 3px 0 0; font-size: 11px; color: #a08a6c; letter-spacing: .5px; }
.catch-reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #eccf9c;
  background: #fff5dc;
  color: #b26a1c;
  font-size: 12.5px;
  font-weight: 800;
}
.catch-reward svg { width: 17px; height: 17px; }
.catch-actions { display: flex; gap: 9px; margin-top: 13px; }
.catch-actions .primary-btn { flex: 1 1 auto; }
.catch-actions .ghost-btn { flex: 0 0 auto; }

/* ============ 布置面板 ============ */
.deco-intro {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 1px 2px 11px;
  padding: 8px 11px;
  border-radius: 13px;
  border: 1px solid #ead7b6;
  background: linear-gradient(180deg, #fffbf1, #f7ecd7);
  color: #8b7152;
  font-size: 10.5px;
  line-height: 1.55;
}
.deco-intro .mp-icon { width: 15px; height: 15px; flex: 0 0 15px; color: #cf8b44; }
.deco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 10px;
  border-radius: 18px;
  border: 1px solid #e8d5b4;
  background: rgba(255, 252, 244, .94);
  box-shadow: 0 4px 10px rgba(100, 70, 30, .07), inset 0 1px 0 #fff;
}
.deco-card.placed {
  border-color: #cdd9b8;
  background: linear-gradient(180deg, #fbfdf5, #f0f5e8);
}
.deco-thumb {
  width: 100%;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 13px;
  border: 1px solid rgba(220, 198, 165, .55);
  background:
    radial-gradient(ellipse at 50% 78%, rgba(150, 130, 85, .18), transparent 64%),
    radial-gradient(circle at 50% 38%, #fdf7ea, #f1e2c8);
}
.deco-thumb svg { width: 76px; height: 76px; }
.deco-card b { font-size: 13px; color: #4c3721; letter-spacing: .5px; }
.deco-card em { margin: 2px 0 7px; font-style: normal; font-size: 9.5px; color: #a08a6c; text-align: center; line-height: 1.4; }
.deco-card .mini-btn { width: 100%; padding: 6px 4px; font-size: 11px; }
.deco-card.placed .mini-btn {
  border-color: #b9cba0;
  background: linear-gradient(180deg, #f5faec, #e6efd8);
  box-shadow: 0 2px 0 #c4d3b1;
  color: #6e8a52;
}
.deco-cost-ico { display: inline-block; width: 11px; height: 11px; margin: 0 2px -1px 0; border-radius: 50%; background: #f7c95e; box-shadow: inset 0 0 0 2px #b97a24; }

/* ============ 改名 ============ */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 41;
  background: rgba(43, 28, 13, .45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
  position: absolute;
  z-index: 42;
  left: 50%;
  top: 50%;
  width: calc(100% - 52px);
  max-width: 330px;
  padding: 22px 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 253, 247, .9);
  background: linear-gradient(180deg, #fffaf0, #f8ecd7);
  box-shadow: 0 24px 60px rgba(35, 22, 9, .4), inset 0 1px 0 #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -47%) scale(.95);
  transition: opacity .24s ease, transform .24s cubic-bezier(.2, 1.2, .4, 1);
}
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-seal {
  width: 42px;
  height: 42px;
  margin: -42px auto 10px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  transform: rotate(-4deg);
  border: 2px solid #fff4df;
  background: linear-gradient(160deg, #e2703b, #c64d21);
  box-shadow: 0 5px 12px rgba(150, 60, 20, .35);
  color: #fff3df;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
}
.modal h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 1.5px;
  color: #3c2b19;
}
.modal p { margin: 5px 0 15px; font-size: 10.5px; color: #a08a6c; letter-spacing: .3px; }
.modal input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border-radius: 13px;
  border: 1.5px solid #e1c9a4;
  outline: none;
  background: #fffdf7;
  box-shadow: inset 0 2px 5px rgba(140, 105, 60, .09);
  color: #4a3520;
  font-size: 15px;
  letter-spacing: 1px;
  text-align: center;
}
.modal input:focus { border-color: #e9964d; box-shadow: 0 0 0 3px rgba(255, 138, 61, .14); }
.modal-actions { display: flex; gap: 9px; margin-top: 14px; }
.modal-actions .primary-btn { height: 44px; flex: 1 1 auto; font-size: 13.5px; letter-spacing: 1px; }
.modal-actions .ghost-btn { height: 44px; flex: 0 0 88px; }

/* ============ 飘字 / Toast ============ */
.fly-layer { position: absolute; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.float-gain {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 215, .55);
  background: rgba(62, 43, 23, .8);
  box-shadow: 0 4px 12px rgba(30, 20, 8, .25);
  color: #ffd98a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
  animation: floatGain 1.15s ease-out forwards;
}
.float-gain.green { color: #cdeaa9; }
.toast {
  position: absolute;
  z-index: 50;
  left: 50%;
  top: calc(86px + env(safe-area-inset-top));
  max-width: calc(100% - 44px);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 243, 217, .22);
  background: rgba(52, 36, 20, .9);
  box-shadow: 0 9px 24px rgba(30, 19, 8, .26);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff3da;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .3px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -7px);
  transition: opacity .24s ease, transform .24s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 动画 ============ */
@keyframes walletBump {
  0%, 100% { transform: scale(1); }
  38% { transform: scale(1.08); }
}
@keyframes ripeGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 211, 122, .28), 0 0 16px rgba(255, 170, 62, .6), inset 0 1px 0 #fff; }
  50% { box-shadow: 0 0 0 6px rgba(255, 211, 122, .36), 0 0 26px rgba(255, 170, 62, .9), inset 0 1px 0 #fff; }
}
@keyframes tagBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes spotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 205, 120, .5); }
  50% { box-shadow: 0 0 0 8px rgba(255, 205, 120, 0); }
}
@keyframes rippleOut {
  0% { transform: scale(.55); opacity: .85; }
  100% { transform: scale(1.25); opacity: 0; }
}
@keyframes bobFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(4px) rotate(2deg); }
}
@keyframes propIn {
  0% { opacity: 0; transform: translate(-50%, -100%) scale(.55); }
  100% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}
@keyframes petalFall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: .85; }
  70% { opacity: .7; }
  100% { transform: translate3d(-70px, 105vh, 0) rotate(520deg); opacity: 0; }
}
@keyframes fishRipple {
  0% { transform: translateX(-50%) scale(.5); opacity: .9; }
  100% { transform: translateX(-50%) scale(1.5); opacity: 0; }
}
@keyframes floatDip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes floatBite {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 3px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-1px, 2px); }
}
@keyframes readyPulse {
  0%, 100% { box-shadow: 0 4px 0 #c85f16, 0 8px 18px rgba(210, 105, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .45); }
  50% { box-shadow: 0 4px 0 #c85f16, 0 0 24px rgba(255, 154, 60, .65), inset 0 1px 0 rgba(255, 255, 255, .45); }
}
@keyframes catchIn {
  0% { opacity: 0; transform: scale(.82) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes raysSpin { to { transform: rotate(360deg); } }
@keyframes floatGain {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.8); }
  16% { opacity: 1; transform: translate(-50%, -60%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(.94); }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes biteCountdown {
  0% { width: 100%; }
  100% { width: 0%; }
}
@keyframes propLabel {
  0%, 8% { opacity: 0; transform: translateX(-50%) translateY(4px); }
  18%, 74% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-3px); }
}

@media (max-height: 700px) {
  .hud { padding-top: calc(7px + env(safe-area-inset-top)); }
  .avatar { flex-basis: 38px; width: 38px; height: 38px; }
  .avatar-face { background-size: 506px 760px; background-position: -21px -21px; }
  .dock { height: 76px; }
  .dock-btn { height: 66px; }
  .dock-disc { width: 43px; height: 43px; }
  .dock-disc svg { width: 28px; height: 28px; }
  .sheet { max-height: 86vh; max-height: 86dvh; }
  .fish-hero { height: 168px; }
  .hint-ribbon { bottom: calc(101px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .petal, .ripple, .bobber, .plot-spot.ripe .spot-badge, .plot-spot.ripe .spot-tag, .primary-btn.ready { animation: none !important; }
}
