/* 种菜2 · 竖屏种菜经营小游戏 */
:root {
  --orange: #FF8A3D;
  --orange-2: #FFB05C;
  --orange-deep: #E4691E;
  --gold: #FFC53D;
  --gold-deep: #D88B0E;
  --green: #62C24B;
  --green-deep: #3F9B31;
  --brown: #6B3E1D;
  --brown-2: #8C5A2E;
  --ink: #3C2A1A;
  --muted: #8C755D;
  --cream: #FFF8E8;
  --card: #FFFCF5;
  --line: rgba(139, 90, 43, .16);
  --shadow: 0 10px 26px rgba(112, 76, 39, .12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 50% 0%, #CFEBFF 0%, #EEF8E0 48%, #E7D6B9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

button:focus-visible {
  outline: 2px solid #E4691E;
  outline-offset: 2px;
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

.game-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(115% 42% at 50% 0%, #C8EDFF 0%, rgba(234, 249, 226, .9) 44%, rgba(251, 242, 220, 0) 72%),
    linear-gradient(180deg, #EAF8FF 0%, #F1F8E5 22%, #FBF2DE 50%, #F7EAD3 100%);
  box-shadow: 0 0 60px rgba(75, 52, 24, .2);
}

.game-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(rgba(139, 90, 43, .055) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ---------- 顶部状态栏 ---------- */
.hud {
  position: relative;
  z-index: 20;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + var(--safe-top)) 16px 7px;
}

.hud-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2.5px solid #FFD36B;
  border-radius: 50%;
  background: #F8E8C8;
  box-shadow: 0 3px 9px rgba(95, 60, 20, .26);
}

.lv-badge {
  position: absolute;
  right: -9px;
  bottom: -4px;
  padding: 1px 5px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFB05C, #FF7A2B);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(180, 80, 20, .35);
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.player-meta b {
  overflow: hidden;
  max-width: 92px;
  color: #4A2F18;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
  white-space: nowrap;
}

.player-meta span {
  color: #8A6A48;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.hud-wallet {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 9px;
  border: 1.5px solid rgba(255, 209, 120, .5);
  border-radius: 999px;
  background: linear-gradient(180deg, #5A3A1F, #3E2411);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 8px rgba(70, 45, 20, .26);
}

.wallet-pill b {
  color: #FFF3D2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.coin-img {
  width: 19px;
  height: 19px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 1px 1px rgba(90, 50, 0, .4));
}

.cash-pill {
  border-color: rgba(190, 255, 160, .45);
  background: linear-gradient(180deg, #396B34, #244B23);
}

.cash-pill .yen {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 236, 150, .16);
  color: #FFE27A;
  font-size: 11px;
  font-weight: 900;
}

.wallet-pill.is-bump {
  animation: walletBump .35s ease;
}

@keyframes walletBump {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.08); }
}

/* ---------- 滚动区 ---------- */
.screen-wrap {
  position: relative;
  z-index: 5;
  flex: 1 1 auto;
  padding: 4px 16px calc(118px + var(--safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.screen-wrap::-webkit-scrollbar {
  display: none;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: viewIn .26s ease both;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 菜园主视觉 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10.2;
  border: 2px solid rgba(255, 226, 174, .95);
  border-radius: 22px;
  background: #8FCB67;
  box-shadow: 0 8px 0 rgba(139, 90, 43, .08), 0 14px 28px rgba(95, 60, 20, .18);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.015);
  border-radius: 20px;
}

.hero-shade {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(45, 25, 10, .2) 0%, transparent 28%, transparent 58%, rgba(45, 25, 10, .52) 100%);
}

.hero-top {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 224, 170, .42);
  border-radius: 999px;
  background: rgba(61, 38, 18, .62);
  color: #FFF6E0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-tag .mp-icon {
  width: 14px;
  height: 14px;
  color: #FFD26A;
}

.hero-mult {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(218, 163, 62, .55);
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFCF2, #FFECC3);
  color: #7A4A12;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(80, 50, 20, .2);
}

.hero-bottom {
  position: absolute;
  right: 11px;
  bottom: 9px;
  left: 11px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #FFF4DA;
  font-size: 10.5px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.hero-hint .mp-icon {
  width: 14px;
  height: 14px;
  color: #AEE3FF;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

/* ---------- 区段标题 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 2px 9px;
}

.section-title {
  min-width: 0;
}

.section-title h2 {
  margin: 0;
  color: #4A2F18;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.2;
  text-shadow: 0 1px 0 #fff;
}

.section-title p {
  margin: 3px 0 0;
  color: #8C7054;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}

.upgrade-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid #E89B22;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFD777, #FFB53F);
  color: #5A3408;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 3px 0 #C97C12, 0 5px 10px rgba(200, 130, 20, .24);
  transition: transform .12s ease, box-shadow .12s ease;
}

.upgrade-btn .mp-icon {
  width: 15px;
  height: 15px;
}

.upgrade-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C97C12;
}

.upgrade-btn.is-poor {
  filter: saturate(.72);
  opacity: .9;
}

.upgrade-btn.is-max {
  border-color: #CDBFA8;
  background: #E8DDC8;
  color: #8B7A63;
  box-shadow: 0 2px 0 #BFB09A;
}

/* ---------- 菜地 ---------- */
.plots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plot {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  text-align: left;
  border: 1.5px solid rgba(139, 90, 43, .2);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFDF5, #FFF6E3);
  box-shadow: 0 4px 0 rgba(139, 90, 43, .1), 0 8px 16px rgba(112, 76, 39, .1);
  transition: transform .12s ease, box-shadow .12s ease;
}

.plot:active {
  transform: translateY(2px) scale(.985);
  box-shadow: 0 2px 0 rgba(139, 90, 43, .1);
}

.plot-art {
  position: relative;
  height: 99px;
  background-color: #8B5A2B;
  background-position: center;
  background-size: cover;
}

.plot-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(40, 20, 5, .06), transparent 35%, transparent 65%, rgba(40, 20, 5, .22));
}

.plot.ripe .plot-art {
  animation: ripeGlow 2.2s ease-in-out infinite;
}

@keyframes ripeGlow {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(255, 220, 100, 0); }
  50% { box-shadow: inset 0 0 22px 2px rgba(255, 220, 100, .5); }
}

.plot-price {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 92px;
  height: 31px;
  padding: 0 8px;
  border: 1.5px solid #E9C386;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFDF5, #FFEFCF);
  color: #7A4A12;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(80, 50, 20, .22);
  transform: translateX(-50%);
}

.plot-price img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.plot-ready {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 1px 6px;
  border: 1px solid #E89B22;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFD36A, #FFA92E);
  color: #5A3408;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(120, 70, 10, .25);
}

.plot-grow-tag {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 31px;
  padding: 0 8px;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(50, 30, 10, .58);
  color: #FFF6E4;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(40, 20, 5, .2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateX(-50%);
}

.plot-info {
  padding: 6px 8px 8px;
}

.plot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.plot-name {
  overflow: hidden;
  color: #4A2F18;
  font-size: 12.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plot-timer {
  color: #3F8F32;
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plot-timer.ready {
  color: #D8760D;
}

.plot-bar {
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #EFE0C4;
}

.plot-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8ED96B, #4EB33A);
  transition: width .5s linear;
}

.plot.ripe .plot-bar i {
  background: linear-gradient(90deg, #FFD76A, #FF9F2E);
}

.plot.empty .plot-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(70, 40, 15, .18) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 62%, rgba(70, 40, 15, .14) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 82%, rgba(70, 40, 15, .12) 0 1.5px, transparent 3px),
    linear-gradient(180deg, #AD7442, #8A552C);
  background-size: 34px 34px, 48px 48px, 40px 40px, 100% 100%;
}

.plot.empty .plot-art::after {
  background: linear-gradient(180deg, rgba(40, 20, 5, .06), transparent 50%, rgba(40, 20, 5, .2));
}

.empty-plus {
  position: relative;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px dashed #C78C3E;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 248, 224, .97), rgba(255, 226, 170, .92));
  color: #8A5518;
  box-shadow: 0 3px 7px rgba(60, 30, 5, .22);
}

.empty-plus .mp-icon {
  width: 23px;
  height: 23px;
}

.empty-label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  z-index: 2;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(50, 30, 10, .5);
  color: #FFF1D3;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
  transform: translateX(-50%);
}

/* ---------- 菜仓 ---------- */
.barn {
  margin-top: 13px;
  padding: 12px;
  border: 1.5px solid rgba(139, 90, 43, .18);
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFDF6, #FFF4DE);
  box-shadow: 0 4px 0 rgba(139, 90, 43, .08), 0 10px 20px rgba(112, 76, 39, .1);
}

.barn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 88px;
}

.barn-head b {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #4A2F18;
  font-size: 13px;
  font-weight: 900;
}

.barn-head b .mp-icon {
  width: 16px;
  height: 16px;
  color: #B9792B;
}

.barn-head span {
  overflow: hidden;
  color: #9A7E61;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.barn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin: 8px 0 10px;
}

.barn-empty {
  align-self: center;
  color: #A78D70;
  font-size: 10.5px;
  line-height: 1.5;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px 0 3px;
  border: 1px solid #E4CFA8;
  border-radius: 999px;
  background: #F4E8D0;
  color: #6B4A26;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.chip img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border: 1px solid #fff;
  border-radius: 50%;
}

.chip.milk {
  padding-left: 6px;
  color: #3F6E86;
  background: #EAF6FC;
  border-color: #C6E2EF;
}

.chip.milk svg {
  width: 16px;
  height: 16px;
}

.sell-btn {
  width: 100%;
  height: 44px;
  border: 1.5px solid #3C8F2B;
  border-radius: 14px;
  background: linear-gradient(180deg, #7BD45C, #4FAF38);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 80, 0, .25);
  box-shadow: 0 4px 0 #2F7A22, 0 7px 12px rgba(47, 122, 34, .2);
  transition: transform .12s ease, box-shadow .12s ease;
}

.sell-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2F7A22;
}

.sell-btn.is-empty {
  border-color: #CDBFA7;
  background: #E2D7C3;
  color: #8C7C66;
  text-shadow: none;
  box-shadow: 0 3px 0 #BDAF97;
}

/* ---------- 提示 ---------- */
.tip-card {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed #D9C49E;
  border-radius: 16px;
  background: rgba(255, 252, 241, .78);
  color: #7D644A;
  font-size: 10.5px;
  line-height: 1.55;
}

.tip-card .mp-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #E58A2B;
}

.tip-card p {
  margin: 0;
}

.tip-card b {
  color: #B56A16;
}

/* ---------- 厨房 ---------- */
.kitchen-hero {
  position: relative;
  overflow: hidden;
  height: 208px;
  border: 2px solid #F5DFB6;
  border-radius: 22px;
  background: #A9713F;
  box-shadow: 0 8px 0 rgba(139, 90, 43, .08), 0 14px 26px rgba(95, 60, 20, .16);
}

.kitchen-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
  border-radius: 20px;
}

.kitchen-shade {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(40, 20, 5, .22), transparent 32%, transparent 54%, rgba(40, 20, 5, .68) 100%);
}

.kitchen-top {
  position: absolute;
  top: 10px;
  left: 10px;
}

.kitchen-bottom {
  position: absolute;
  right: 11px;
  bottom: 10px;
  left: 11px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.kitchen-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.kitchen-copy b {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.kitchen-copy span {
  color: #FFE9C0;
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.kitchen-up {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  height: 34px;
  padding: 0 11px;
  border: 1.5px solid #E89B22;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFD777, #FFB53F);
  color: #5A3408;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 3px 0 #C97C12;
}

.kitchen-up:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C97C12;
}

.kitchen-up .mp-icon {
  width: 14px;
  height: 14px;
}

.kitchen-up em {
  font-style: normal;
}

.kitchen-up.is-poor {
  filter: saturate(.72);
  opacity: .92;
}

.kitchen-up.is-max {
  border-color: #CDBFA8;
  background: #E8DDC8;
  color: #8B7A63;
  box-shadow: 0 2px 0 #BFB09A;
}

.recipes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recipe {
  display: flex;
  gap: 9px;
  padding: 9px;
  border: 1.5px solid rgba(139, 90, 43, .18);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFDF6, #FFF5E2);
  box-shadow: 0 4px 0 rgba(139, 90, 43, .08), 0 8px 16px rgba(112, 76, 39, .08);
}

.recipe-art {
  position: relative;
  flex: 0 0 auto;
  width: 82px;
  height: 105px;
  overflow: hidden;
  border-radius: 13px;
  background: #E7D2B2;
}

.recipe-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-art .recipe-lv {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(60, 38, 16, .66);
  color: #FFF5DC;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.recipe-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.recipe-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.recipe-title b {
  overflow: hidden;
  color: #4A2F18;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-price {
  flex: 0 0 auto;
  color: #D8760D;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.recipe-desc {
  margin: 0;
  overflow: hidden;
  color: #9A7E61;
  font-size: 9.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.needs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 1px;
}

.need {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border: 1px solid #E6D2AE;
  border-radius: 6px;
  background: #F3E7D1;
  color: #6B4A26;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.5;
}

.need img {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.need svg {
  width: 13px;
  height: 13px;
}

.need.lack {
  border-color: #F2C0B4;
  background: #FCE5DF;
  color: #C3452C;
}

.cook-btn {
  height: 32px;
  margin-top: auto;
  border: 1.5px solid #E37F16;
  border-radius: 10px;
  background: linear-gradient(180deg, #FFC76A, #FF9A2E);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(140, 60, 0, .3);
  box-shadow: 0 3px 0 #C4680E;
  transition: transform .12s ease, box-shadow .12s ease;
}

.cook-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C4680E;
}

.recipe.locked .recipe-art img {
  filter: grayscale(.75) brightness(.8);
}

.recipe.locked .cook-btn {
  border-color: #CFC0A8;
  background: #E4DAC8;
  color: #8B7A63;
  text-shadow: none;
  box-shadow: 0 2px 0 #BFB09A;
}

.recipe.locked .cook-btn:active {
  transform: none;
  box-shadow: 0 2px 0 #BFB09A;
}

/* ---------- 集市 ---------- */
.market-sign {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  padding: 12px 13px;
  overflow: hidden;
  border: 2px solid #F0D8AA;
  border-radius: 20px;
  background: linear-gradient(135deg, #FFF6DA, #FFE5AE 55%, #FFD48C);
  box-shadow: 0 6px 0 rgba(180, 120, 30, .12), 0 12px 22px rgba(160, 110, 20, .12);
}

.market-sign > div {
  flex: 1;
  min-width: 0;
}

.market-sign-icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1.5px solid #E8B35A;
  border-radius: 13px;
  background: linear-gradient(180deg, #FFB05C, #F27A2C);
  color: #FFF5D8;
  box-shadow: 0 3px 0 #C95F1C;
}

.market-sign-icon .mp-icon {
  width: 23px;
  height: 23px;
}

.market-sign h2 {
  margin: 0;
  color: #5A3408;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}

.market-sign p {
  margin: 2px 0 0;
  color: #8C6228;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.market-sign-flower {
  position: relative;
  z-index: 1;
  margin-left: auto;
  color: #E86A8C;
  opacity: .9;
  transform: rotate(12deg);
}

.market-sign-flower .mp-icon {
  width: 30px;
  height: 30px;
}

.shops {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.shop-card {
  display: flex;
  gap: 10px;
  padding: 9px;
  overflow: hidden;
  border: 1.5px solid rgba(139, 90, 43, .2);
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFDF6, #FFF5E3);
  box-shadow: 0 5px 0 rgba(139, 90, 43, .08), 0 10px 20px rgba(112, 76, 39, .1);
}

.shop-art {
  position: relative;
  flex: 0 0 auto;
  width: 124px;
  height: 144px;
  overflow: hidden;
  border-radius: 14px;
  background: #B9D8A0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.shop-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shop-art::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(40, 20, 5, .08), transparent 42%, rgba(40, 20, 5, .3));
}

.shop-status {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(60, 38, 16, .62);
  color: #FFF5DC;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.shop-status.open {
  border-color: rgba(160, 255, 130, .55);
  background: linear-gradient(180deg, #5EBB46, #3D912D);
  color: #F4FFEE;
}

.shop-pending {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border: 1.5px solid #E9C386;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFDF5, #FFEFCF);
  color: #7A4A12;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(60, 35, 10, .25);
}

.shop-pending img {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.shop-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 2px 2px 2px 0;
}

.shop-name {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4A2F18;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.3;
}

.shop-name .mp-icon {
  width: 17px;
  height: 17px;
}

.shop-name .flower-ico { color: #E86A8C; }
.shop-name .pet-ico { color: #4F91E8; }

.shop-desc {
  flex: 1;
  margin: 3px 0 7px;
  color: #8C7054;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
}

.shop-btn {
  width: 100%;
  height: 38px;
  border: 1.5px solid #E37F16;
  border-radius: 11px;
  background: linear-gradient(180deg, #FFC76A, #FF9A2E);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(140, 60, 0, .3);
  box-shadow: 0 3px 0 #C4680E;
  transition: transform .12s ease, box-shadow .12s ease;
}

.shop-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C4680E;
}

.shop-btn.collect {
  border-color: #3C8F2B;
  background: linear-gradient(180deg, #7BD45C, #4FAF38);
  text-shadow: 0 1px 0 rgba(0, 80, 0, .25);
  box-shadow: 0 3px 0 #2F7A22;
}

.shop-btn.collect:active {
  box-shadow: 0 1px 0 #2F7A22;
}

.shop-btn.is-poor {
  filter: saturate(.65);
  opacity: .9;
}

.shop-btn.is-idle {
  border-color: #CDBFA7;
  background: #E2D7C3;
  color: #8C7C66;
  text-shadow: none;
  box-shadow: 0 3px 0 #BDAF97;
}

.exchange-card {
  position: relative;
  margin-top: 13px;
  padding: 14px;
  overflow: hidden;
  border: 1.5px solid #EBC77E;
  border-radius: 20px;
  background: linear-gradient(160deg, #FFF8DE, #FFE7A9);
  box-shadow: 0 5px 0 rgba(201, 153, 60, .18), 0 12px 22px rgba(160, 110, 20, .12);
}

.exchange-card::before {
  position: absolute;
  top: -12px;
  right: -4px;
  content: "¥";
  color: rgba(190, 130, 30, .12);
  font-size: 108px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transform: rotate(8deg);
}

.exchange-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exchange-top b {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #5A3408;
  font-size: 13px;
  font-weight: 900;
}

.exchange-top b .mp-icon {
  width: 17px;
  height: 17px;
  color: #B9792B;
}

.exchange-top span {
  color: #8C6228;
  font-size: 9.5px;
  font-weight: 800;
}

.cash-amount {
  position: relative;
  z-index: 1;
  margin: 5px 0 2px;
  color: #7A4A12;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.cash-bar {
  position: relative;
  z-index: 1;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(180, 120, 30, .18);
  border-radius: 99px;
  background: rgba(255, 255, 255, .55);
}

.cash-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #FFD35C, #FF9C2E);
  transition: width .35s ease;
}

.cash-hint {
  position: relative;
  z-index: 1;
  margin: 5px 0 9px;
  color: #8C6A3A;
  font-size: 10px;
  font-weight: 700;
}

.exchange-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 41px;
  border: 1.5px solid #E37F16;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFC76A, #FF9A2E);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(140, 60, 0, .3);
  box-shadow: 0 3px 0 #C4680E;
}

.exchange-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C4680E;
}

.exchange-btn.is-poor {
  border-color: #CDBFA7;
  background: #E2D7C3;
  color: #8C7C66;
  text-shadow: none;
  box-shadow: 0 3px 0 #BDAF97;
}

.cash-note {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: #9C7B4A;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

/* ---------- 牧场 ---------- */
.ranch-locked {
  margin-top: 4px;
  padding: 30px 18px 26px;
  border: 1.5px dashed #CDB48A;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFDF6, #F4EBD9);
  text-align: center;
  box-shadow: var(--shadow);
}

.lock-circle {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  place-items: center;
  border: 2px solid #DDCDB2;
  border-radius: 50%;
  background: linear-gradient(180deg, #F3EAD9, #E6D8C0);
  color: #9D8667;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .7), 0 4px 10px rgba(100, 70, 30, .12);
}

.lock-circle .mp-icon {
  width: 30px;
  height: 30px;
}

.ranch-locked h3 {
  margin: 0;
  color: #4A2F18;
  font-size: 18px;
  font-weight: 900;
}

.ranch-locked p {
  margin: 7px 0 16px;
  color: #8C7054;
  font-size: 11.5px;
  line-height: 1.7;
}

.ranch-locked p b {
  color: #C56A16;
}

.go-garden-btn {
  height: 40px;
  padding: 0 22px;
  border: 1.5px solid #E37F16;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFC76A, #FF9A2E);
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(140, 60, 0, .3);
  box-shadow: 0 3px 0 #C4680E;
}

.go-garden-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C4680E;
}

.ranch-hero {
  position: relative;
  height: 266px;
  overflow: hidden;
  border: 2px solid #EAD8B4;
  border-radius: 22px;
  background: linear-gradient(180deg, #BFE9FF 0%, #DDF5E8 40%, #8ED05F 41%, #6DB54A 100%);
  box-shadow: 0 8px 0 rgba(90, 130, 60, .1), 0 14px 26px rgba(70, 100, 40, .16);
}

.ranch-sun {
  position: absolute;
  top: 36px;
  right: 68px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF9C9, #FFD45E 65%, #FFB93D);
  box-shadow: 0 0 30px rgba(255, 220, 100, .85);
}

.ranch-cloud {
  position: absolute;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
}

.ranch-cloud::before,
.ranch-cloud::after {
  position: absolute;
  bottom: 2px;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.ranch-cloud::before {
  left: 9px;
  width: 22px;
  height: 22px;
}

.ranch-cloud::after {
  right: 10px;
  width: 17px;
  height: 17px;
}

.rc1 {
  top: 92px;
  left: 30px;
  width: 58px;
}

.rc2 {
  top: 62px;
  left: 152px;
  width: 42px;
  opacity: .65;
  transform: scale(.8);
}

.ranch-hill {
  position: absolute;
  bottom: 66px;
  border-radius: 50% 50% 0 0;
  background: #A6DB77;
  opacity: .6;
}

.rh1 {
  left: -40px;
  width: 220px;
  height: 80px;
}

.rh2 {
  right: -50px;
  width: 240px;
  height: 92px;
  background: #96D168;
}

.ranch-barn {
  position: absolute;
  bottom: 76px;
  left: 18px;
  width: 74px;
  height: 48px;
  border-radius: 4px;
  background: linear-gradient(180deg, #D35E45, #B54733);
  box-shadow: 0 4px 8px rgba(80, 40, 20, .2);
}

.ranch-barn::before {
  position: absolute;
  top: -20px;
  left: -6px;
  width: 0;
  height: 0;
  content: "";
  border-right: 43px solid transparent;
  border-bottom: 22px solid #A93E2D;
  border-left: 43px solid transparent;
}

.ranch-barn::after {
  position: absolute;
  bottom: 0;
  left: 29px;
  width: 16px;
  height: 26px;
  content: "";
  border-radius: 3px 3px 0 0;
  background: #7A321F;
}

.ranch-fence {
  position: absolute;
  right: 0;
  bottom: 44px;
  left: 0;
  height: 44px;
  background: repeating-linear-gradient(90deg, transparent 0 22px, #B7793E 22px 30px, transparent 30px 52px);
  opacity: .85;
}

.ranch-fence::before,
.ranch-fence::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  border-radius: 3px;
  background: #C08A4E;
  box-shadow: 0 1px 0 rgba(80, 40, 10, .25);
}

.ranch-fence::before { top: 9px; }
.ranch-fence::after { top: 27px; }

.ranch-hero-top {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ranch-count {
  padding: 4px 9px;
  border: 1px solid rgba(218, 163, 62, .55);
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFCF2, #FFECC3);
  color: #7A4A12;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(80, 50, 20, .2);
}

.cow-wrap {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 2;
  width: 208px;
  filter: drop-shadow(0 10px 6px rgba(40, 30, 10, .18));
  animation: cowFloat 3.4s ease-in-out infinite;
}

@keyframes cowFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.cow-svg {
  display: block;
  width: 100%;
  height: auto;
}

.ranch-panel {
  margin-top: 12px;
  padding: 13px;
  border: 1.5px solid rgba(139, 90, 43, .18);
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFDF6, #FFF4DE);
  box-shadow: 0 4px 0 rgba(139, 90, 43, .08), 0 10px 20px rgba(112, 76, 39, .09);
}

.milk-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.milk-bottle {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1.5px solid #C9E2EF;
  border-radius: 15px;
  background: linear-gradient(180deg, #F4FBFF, #E3F4FC);
  box-shadow: inset 0 1px 0 #fff, 0 3px 6px rgba(70, 130, 160, .13);
}

.milk-bottle svg {
  width: 28px;
  height: 28px;
}

.milk-info {
  flex: 1;
  min-width: 0;
}

.milk-num {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.milk-num b {
  color: #3F6E86;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.milk-num span {
  color: #8C9FA9;
  font-size: 10.5px;
  font-weight: 700;
}

.milk-num i {
  font-style: normal;
}

.milk-info p {
  margin: 1px 0 6px;
  color: #9A8064;
  font-size: 9.5px;
  line-height: 1.4;
}

.milk-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #E8EEF0;
}

.milk-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #9FDDF4, #5DB7DE);
  transition: width .4s linear;
}

.collect-milk-btn {
  width: 100%;
  height: 42px;
  margin-top: 11px;
  border: 1.5px solid #3C8F2B;
  border-radius: 13px;
  background: linear-gradient(180deg, #7BD45C, #4FAF38);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 80, 0, .25);
  box-shadow: 0 3px 0 #2F7A22;
}

.collect-milk-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2F7A22;
}

.collect-milk-btn.is-idle {
  border-color: #CDBFA7;
  background: #E2D7C3;
  color: #8C7C66;
  text-shadow: none;
  box-shadow: 0 3px 0 #BDAF97;
}

.cow-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cow-shop-head b {
  display: block;
  color: #4A2F18;
  font-size: 13px;
  font-weight: 900;
}

.cow-shop-head span {
  display: block;
  margin-top: 1px;
  color: #9A7E61;
  font-size: 9.5px;
}

.cow-dots {
  display: flex;
  gap: 4px;
}

.cow-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1.5px solid #D8C7A9;
  border-radius: 50%;
  background: #F4EBD9;
  color: #B7A184;
}

.cow-dot.filled {
  border-color: #E0B268;
  background: linear-gradient(180deg, #FFE6B3, #FFC96A);
  color: #8A5518;
  box-shadow: 0 2px 4px rgba(180, 110, 20, .2);
}

.cow-dot .mp-icon {
  width: 14px;
  height: 14px;
}

.buy-cow-btn {
  width: 100%;
  height: 41px;
  margin-top: 10px;
  border: 1.5px solid #E37F16;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFC76A, #FF9A2E);
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(140, 60, 0, .3);
  box-shadow: 0 3px 0 #C4680E;
}

.buy-cow-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C4680E;
}

.buy-cow-btn.is-poor {
  filter: saturate(.68);
  opacity: .92;
}

.buy-cow-btn.is-max {
  border-color: #CDBFA7;
  background: #E2D7C3;
  color: #8C7C66;
  text-shadow: none;
  box-shadow: 0 3px 0 #BDAF97;
}

/* ---------- 底部导航 ---------- */
.tabbar {
  position: relative;
  z-index: 40;
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  padding: 7px 8px calc(7px + var(--safe-bottom));
  border-top: 1px solid rgba(139, 90, 43, .15);
  background: linear-gradient(180deg, rgba(255, 250, 238, .97), rgba(255, 244, 224, .99));
  box-shadow: 0 -8px 24px rgba(112, 76, 39, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tab {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0 3px;
  border-radius: 14px;
  color: #9C8264;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  transition: color .15s ease, background .15s ease;
}

.tab .mp-icon {
  width: 23px;
  height: 23px;
  transition: transform .15s ease;
}

.tab.is-active {
  color: #E4691E;
}

.tab.is-active .mp-icon {
  transform: translateY(-1px) scale(1.08);
}

.tab.is-active::before {
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  content: "";
  border-radius: 3px;
  background: linear-gradient(90deg, #FFC14D, #FF8A3D);
}

.tab:active {
  background: #FFF1D8;
}

.tab-lock {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #B7A184;
  color: #fff;
  font-style: normal;
  box-shadow: 0 1px 3px rgba(80, 50, 20, .25);
}

.tab-lock .mp-icon {
  width: 8px;
  height: 8px;
}

.tab-lock.is-off {
  display: none;
}

/* ---------- 收获大按钮 ---------- */
.harvest-fab {
  position: absolute;
  right: 16px;
  bottom: calc(96px + var(--safe-bottom));
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 86px;
  height: 94px;
  transition: transform .12s ease, opacity .2s ease;
}

.harvest-fab .basket {
  display: grid;
  width: 78px;
  height: 78px;
  overflow: hidden;
  place-items: center;
  border: 3px solid #FFF1C9;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #FFEFA8, #FFC23D 55%, #E8921B);
  box-shadow: 0 6px 0 #C97712, 0 12px 22px rgba(190, 110, 10, .35);
}

.harvest-fab .basket img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
}

.harvest-fab .fab-label {
  position: absolute;
  bottom: 9px;
  left: 50%;
  z-index: 2;
  padding: 2px 11px;
  border: 1.5px solid #E28B10;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFD15C, #FFA21F);
  color: #5A3408;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(150, 80, 5, .3);
  transform: translateX(-50%);
}

.harvest-fab .fab-badge {
  position: absolute;
  top: 0;
  right: 1px;
  z-index: 3;
  display: grid;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #FFF4D8;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF6B5A, #E23B2C);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(180, 40, 20, .4);
}

.harvest-fab:active {
  transform: scale(.95);
}

.harvest-fab.is-sell .basket {
  border-color: #E8FFD2;
  background: radial-gradient(circle at 35% 28%, #CFF3A8, #7BD45C 55%, #4C9E36);
  box-shadow: 0 6px 0 #367A24, 0 12px 22px rgba(50, 130, 30, .3);
}

.harvest-fab.is-sell .fab-label {
  border-color: #3F9B31;
  background: linear-gradient(180deg, #A8E87C, #5DBB46);
  color: #fff;
}

.harvest-fab.is-empty .basket {
  filter: grayscale(.5);
  opacity: .82;
}

.harvest-fab.is-hidden {
  display: none;
}

/* ---------- 选种子弹层 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(40, 24, 10, .44);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sheet-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: 100%;
  max-width: 520px;
  padding: 10px 14px calc(16px + var(--safe-bottom));
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #FFFDF7, #FFF4DE);
  box-shadow: 0 -12px 40px rgba(40, 24, 10, .28);
  transform: translateY(102%);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}

.sheet-mask.show .sheet {
  transform: none;
}

.sheet-grab {
  width: 38px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 99px;
  background: #E0CEB0;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sheet-head b {
  display: block;
  color: #4A2F18;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.sheet-head span {
  display: block;
  margin-top: 2px;
  color: #9A7E61;
  font-size: 10px;
  line-height: 1.4;
}

.sheet-close {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #E4D2B3;
  border-radius: 50%;
  background: #F7EEDC;
  color: #8C6A44;
}

.sheet-close .mp-icon {
  width: 17px;
  height: 17px;
}

.seed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 58vh;
  padding-bottom: 2px;
  overflow-y: auto;
  scrollbar-width: none;
}

.seed-list::-webkit-scrollbar {
  display: none;
}

.seed-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  text-align: left;
  border: 1.5px solid #E6D2AE;
  border-radius: 15px;
  background: linear-gradient(180deg, #FFFDF7, #FFF6E4);
  box-shadow: 0 3px 0 rgba(139, 90, 43, .07);
  transition: transform .12s ease, box-shadow .12s ease;
}

.seed-option:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(139, 90, 43, .07);
}

.seed-art {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1.5px solid #E8D3AE;
  border-radius: 13px;
  background: #E7D2B2;
}

.seed-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seed-copy {
  flex: 1;
  min-width: 0;
}

.seed-copy b {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #4A2F18;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.3;
}

.seed-copy b em {
  padding: 0 5px;
  border-radius: 999px;
  background: #EAF5DF;
  color: #4A8F35;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.6;
}

.seed-copy p {
  margin: 2px 0 0;
  overflow: hidden;
  color: #9A7E61;
  font-size: 9.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seed-value {
  flex: 0 0 auto;
  text-align: right;
}

.seed-value b {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #C56A16;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.seed-value b img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.seed-value span {
  display: block;
  margin-top: 1px;
  color: #4A8F35;
  font-size: 9px;
  font-weight: 800;
}

/* ---------- 吐司和特效 ---------- */
.toast {
  position: fixed;
  bottom: calc(98px + var(--safe-bottom));
  left: 50%;
  z-index: 110;
  max-width: 88vw;
  padding: 9px 16px;
  border: 1px solid rgba(255, 220, 160, .2);
  border-radius: 999px;
  background: rgba(58, 36, 18, .93);
  color: #FFF6E2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transform: translate(-50%, 12px);
  transition: opacity .22s ease, transform .22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 105;
  overflow: hidden;
  pointer-events: none;
}

.fx {
  position: fixed;
  z-index: 106;
  color: #FFD35C;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 2px 0 #8A4A00, 0 0 10px rgba(255, 190, 40, .6);
  white-space: nowrap;
  animation: fxUp .95s ease-out forwards;
}

.fx.fx-green {
  color: #B9F58A;
  text-shadow: 0 2px 0 #2E6A1E, 0 0 10px rgba(120, 230, 90, .5);
}

.fx.fx-white {
  color: #FFF8E8;
  text-shadow: 0 2px 0 #7A4A12, 0 0 10px rgba(255, 210, 130, .5);
}

@keyframes fxUp {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.8); }
  15% { opacity: 1; transform: translate(-50%, -8px) scale(1.12); }
  100% { opacity: 0; transform: translate(-50%, -76px) scale(1); }
}

.confetti {
  position: fixed;
  z-index: 106;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFly .95s ease-out forwards;
}

@keyframes confettiFly {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.6); }
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 360px) {
  .player-meta {
    display: none;
  }

  .wallet-pill {
    padding: 0 7px;
  }

  .wallet-pill b {
    font-size: 12px;
  }

  .hero {
    aspect-ratio: 16 / 10.8;
  }

  .plot-art {
    height: 88px;
  }

  .shop-art {
    width: 106px;
    height: 136px;
  }

  .cow-wrap {
    width: 186px;
  }
}

@media (min-width: 521px) {
  .game-shell {
    border-radius: 0;
  }
}

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