/* 萌萌的种菜农场 —— 卡通农场视觉 */
:root {
  --orange: #FF8A3D;
  --orange-d: #E86F1F;
  --orange-dd: #C85A13;
  --cream: #FFF8EC;
  --paper: #FFFDF8;
  --ink: #3D2A1E;
  --ink-2: #6B5443;
  --muted: #9C8270;
  --line: #F0DCC2;
  --green: #57B94B;
  --green-d: #3E9636;
  --sky: #8DD7FF;
  --gold: #F7B731;
  --red: #E8553F;
  --soil-1: #9A6139;
  --soil-2: #784427;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(140, 96, 48, 0.12);
}

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

html { min-height: 100%; background: #F1DFC6; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(1200px 520px at 50% -8%, #FFF4DF 0%, rgba(255, 244, 223, 0) 68%),
    linear-gradient(160deg, #F6E6CE 0%, #EBD4B6 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }

button { font-family: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: linear-gradient(180deg, #FFF8EB 0%, #FFF1DB 100%);
  overflow: hidden;
}

.views { position: relative; min-height: 100vh; min-height: 100dvh; }
.view { display: none; }
.view.active { display: block; animation: viewIn 0.28s ease both; }
@keyframes viewIn { from { opacity: 0.55; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.mp-icon { flex: 0 0 auto; }

.avatar {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  overflow: hidden;
  background: #FFE7C8;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(150, 100, 50, 0.18);
}
.avatar svg, .avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar img { z-index: 1; }
.avatar.sm { width: 36px; height: 36px; border-radius: 12px; }
.avatar.lg { width: 66px; height: 66px; border-radius: 20px; border-width: 3px; }

/* ---------- 顶部场景 ---------- */
.hero {
  position: relative;
  height: 286px;
  height: clamp(232px, 62vw, 286px);
  overflow: hidden;
  background: #A8E0FF;
}
.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-svg > * { pointer-events: none; }

.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 0;
}
.hud-player {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 190px;
  padding: 4px 9px 4px 4px;
  border-radius: 17px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 252, 244, 0.93);
  box-shadow: 0 4px 0 rgba(140, 96, 48, 0.16);
}
.hud-pinfo { min-width: 0; flex: 1 1 auto; }
.hud-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-lvrow { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.hud-lv {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #FFA45B, var(--orange));
  padding: 1px 5px;
  border-radius: 7px;
  letter-spacing: 0.01em;
}
.hud-exp {
  display: block;
  flex: 1 1 auto;
  max-width: 74px;
  height: 5px;
  border-radius: 4px;
  background: #F0DFC9;
  overflow: hidden;
}
.hud-exp i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #FFC94D, #FF8A3D);
  transition: width 0.35s ease;
}
.hud-res { display: flex; gap: 5px; flex: 0 0 auto; }
.res-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 0 9px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  background: rgba(255, 252, 244, 0.94);
  box-shadow: 0 4px 0 rgba(140, 96, 48, 0.16);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1;
}
.res-pill .mp-icon { width: 16px; height: 16px; }
.res-pill.coin .mp-icon { color: #F2A51C; }
.res-pill.water .mp-icon { color: #3DA5EE; }
.res-pill:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(140, 96, 48, 0.16); }

/* ---------- 农场主体 ---------- */
.farm-panel {
  position: relative;
  z-index: 4;
  margin-top: -30px;
  padding: 12px 16px calc(104px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(120% 70px at 50% 0, #FFFDF7 0%, rgba(255, 253, 247, 0) 100%),
    linear-gradient(180deg, #FFF9EE 0%, #FFF0DA 100%);
  box-shadow: 0 -10px 26px rgba(120, 80, 30, 0.16);
}

.member-strip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  text-align: left;
  background: linear-gradient(135deg, #FFB25D 0%, #FF8A3D 55%, #F5742A 100%);
  box-shadow: 0 4px 0 #D96A1F, inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}
.member-strip::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.member-strip.on {
  background: linear-gradient(135deg, #8FD46A 0%, #57B94B 55%, #3E9636 100%);
  box-shadow: 0 4px 0 #2F7C2A, inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.member-strip:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(160, 80, 20, 0.6); }
.ms-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.24);
  flex: 0 0 auto;
}
.ms-icon .mp-icon { width: 19px; height: 19px; color: #fff; }
.ms-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ms-main b { font-size: 12.5px; font-weight: 900; letter-spacing: 0.01em; }
.ms-main small { font-size: 10px; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-side {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 6px 4px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.ms-side .mp-icon { width: 13px; height: 13px; }

.buff-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1.5px dashed #D5B9F2;
  background: #F8F0FF;
  color: #8A56C4;
  font-size: 10px;
  font-weight: 800;
}
.buff-strip .mp-icon { width: 14px; height: 14px; color: #A05BE8; }

.quest {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 16px;
  border: 2px solid #FFE3C2;
  background: #FFFDF8;
  box-shadow: 0 2px 0 rgba(200, 160, 110, 0.12);
}
.quest-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: #EAF7DF;
  color: var(--green-d);
  flex: 0 0 auto;
}
.quest-icon .mp-icon { width: 20px; height: 20px; }
.quest-main { flex: 1 1 auto; min-width: 0; }
.quest-title { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.quest-title b { color: var(--ink); font-size: 12.5px; margin-left: 2px; }
.quest-bar { height: 6px; margin-top: 5px; border-radius: 4px; background: #F1E3D1; overflow: hidden; }
.quest-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FFD25E, #FF9A45); transition: width 0.3s ease; }
.quest-claim {
  flex: 0 0 auto;
  min-width: 58px;
  height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #FFB25D, #FF8A3D);
  box-shadow: 0 3px 0 #D96A1F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.quest-claim .mp-icon { width: 14px; height: 14px; }
.quest-claim:disabled { background: #EADCC9; color: #B5A08B; box-shadow: 0 3px 0 #D8C6AF; }
.quest-claim.done { background: #EAF7DF; color: var(--green-d); box-shadow: none; font-size: 11px; }
.quest-claim:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #D96A1F; }

.action-row {
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  gap: 9px;
  margin-top: 9px;
}
.act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.02em;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.act .mp-icon { width: 20px; height: 20px; }
.act-side {
  color: #7A5B42;
  background: #FFFDF8;
  border: 2px solid #F3D9BC;
  box-shadow: 0 4px 0 #E7CDB0;
}
.act-side .mp-icon { color: var(--orange); }
.act-water {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, #FFB05F 0%, #FF8A3D 58%, #F5742A 100%);
  border: 2px solid #FFC98F;
  box-shadow: 0 5px 0 #D96A1F, inset 0 1px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
}
.act-water::after {
  content: "";
  position: absolute;
  top: -18px;
  left: -10%;
  width: 120%;
  height: 30px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}
.act-water .mp-icon { width: 23px; height: 23px; color: #EAF8FF; filter: drop-shadow(0 1px 0 rgba(150, 70, 0, 0.25)); }
.act-main-label { font-size: 15.5px; line-height: 1.1; }
.act-sub { font-size: 9.5px; font-weight: 700; opacity: 0.92; }
.act:active { transform: translateY(3px); box-shadow: 0 1px 0 #D96A1F; }
.act-side:active { box-shadow: 0 1px 0 #E7CDB0; }

.seed-strip { margin-top: 10px; }
.seed-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--orange-d);
  font-size: 11px;
  font-weight: 800;
}
.link-btn .mp-icon { width: 14px; height: 14px; }
.seed-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.seed-chips::-webkit-scrollbar { display: none; }
.seed-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 57px;
  padding: 4px 5px 3px;
  border: 2px solid #F1DDC4;
  border-radius: 14px;
  background: #FFFDF8;
  color: var(--ink-2);
  box-shadow: 0 2px 0 rgba(200, 160, 110, 0.14);
}
.seed-chip.sel {
  border-color: var(--orange);
  background: #FFF2E2;
  box-shadow: 0 3px 0 #FFD0A6;
}
.seed-chip:active { transform: translateY(2px); }
.chip-art { width: 27px; height: 27px; }
.chip-art .crop-svg { width: 100%; height: 100%; }
.chip-name { font-size: 10.5px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.chip-cost {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 9px;
  font-weight: 800;
  color: #C88A2A;
  background: #FFF6E2;
  padding: 1px 5px;
  border-radius: 7px;
}
.chip-cost .mp-icon { width: 9px; height: 9px; }
.seed-chip.next {
  justify-content: center;
  color: #C3AE97;
  border-style: dashed;
  background: #FFF9F0;
  box-shadow: none;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 48px;
}
.seed-chip.next .mp-icon { width: 15px; height: 15px; color: #C3AE97; }

.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.quick-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  border-radius: 14px;
  border: 2px solid #F0D9BE;
  background: #FFFDF8;
  color: #6E5139;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 3px 0 #E7D0B5;
}
.quick-btn .mp-icon { width: 18px; height: 18px; color: var(--orange); }
.quick-btn.on { background: #F4FBEF; border-color: #B9DEA9; box-shadow: 0 3px 0 #A9D197; color: #356B2C; }
.quick-btn.on .mp-icon { color: var(--green-d); }
.quick-btn em {
  position: absolute;
  top: -7px;
  right: 7px;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #FFB25D, #FF8A3D);
  padding: 1px 5px;
  border-radius: 6px;
  box-shadow: 0 1px 0 #D96A1F;
}
.quick-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #E7D0B5; }

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 11px 2px 7px;
}
.sec-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.sec-title .mp-icon { width: 18px; height: 18px; color: var(--orange); }
.field-count { font-size: 10.5px; font-weight: 700; color: var(--muted); }

.field { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.04;
  min-height: 92px;
  padding: 0;
  border: 3px solid #8A5636;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(80% 55% at 50% 16%, rgba(255, 230, 190, 0.18) 0%, rgba(255, 230, 190, 0) 70%),
    linear-gradient(180deg, var(--soil-1) 0%, var(--soil-2) 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.12), 0 4px 0 #5A3018;
  transition: transform 0.08s ease;
  touch-action: manipulation;
}
.plot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(70, 40, 20, 0.18) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 32%, rgba(70, 40, 20, 0.16) 32% 35%, transparent 35% 65%, rgba(70, 40, 20, 0.16) 65% 68%, transparent 68%);
  pointer-events: none;
}
.plot:active { transform: translateY(2px); }
.plot .mp-icon { width: 22px; height: 22px; }

.plot-art {
  position: absolute;
  z-index: 2;
  left: 6%;
  right: 6%;
  bottom: 12%;
  height: 68%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 4px 2px rgba(40, 20, 0, 0.28));
  pointer-events: none;
}
.plot-art .crop-svg { width: 100%; height: 100%; }
.plot-tag {
  position: absolute;
  z-index: 3;
  top: 5px;
  right: 5px;
  padding: 2px 5px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  color: #FFF4E4;
  background: rgba(52, 26, 10, 0.5);
  backdrop-filter: blur(3px);
  line-height: 1.2;
  white-space: nowrap;
}
.plot-progress {
  position: absolute;
  z-index: 3;
  left: 7px;
  right: 7px;
  bottom: 7px;
  height: 5px;
  border-radius: 4px;
  background: rgba(40, 20, 8, 0.38);
  overflow: hidden;
}
.plot-progress i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #C8E86A, #64C24A);
  transition: width 0.6s linear;
}
.plot-drop {
  position: absolute;
  z-index: 3;
  top: 5px;
  left: 5px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 9px;
  background: rgba(73, 176, 240, 0.85);
  color: #fff;
}
.plot-drop .mp-icon { width: 12px; height: 12px; }

.plot.empty {
  border-color: #8A5636;
  background:
    radial-gradient(70% 55% at 50% 42%, #A97044 0%, #8A5636 62%, #784427 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 240, 214, 0.22), 0 4px 0 #5A3018;
}
.plot.empty .plot-plus {
  position: absolute;
  z-index: 2;
  top: 27%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #FFE3BE;
  background: rgba(255, 240, 214, 0.2);
  border: 2px dashed rgba(255, 231, 200, 0.7);
}
.plot.empty .plot-plus .mp-icon { width: 22px; height: 22px; }
.plot-label {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 15%;
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
  color: rgba(255, 240, 218, 0.86);
}
.plot.locked {
  border-color: #B99B7C;
  background:
    repeating-linear-gradient(45deg, #C9AC8C 0 9px, #BE9F7E 9px 18px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 4px 0 #8F7154;
}
.plot.locked::before { display: none; }
.plot-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #7A5B42;
  background: rgba(255, 248, 238, 0.2);
}
.plot-lock .mp-icon { width: 20px; height: 20px; }
.plot-lock b { font-size: 9.5px; font-weight: 900; letter-spacing: 0.02em; }

.plot.ready {
  border-color: #FFD36B;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.18), 0 0 0 3px rgba(255, 211, 107, 0.28), 0 4px 0 #5A3018;
  animation: plotReady 1.6s ease-in-out infinite;
}
.plot.ready .plot-tag { background: linear-gradient(135deg, #FFB25D, #FF8A3D); color: #fff; }
@keyframes plotReady {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.plot.ready .plot-art { animation: cropBob 1.8s ease-in-out infinite; }
@keyframes cropBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}
.plot-ready-dot {
  position: absolute;
  z-index: 4;
  top: -1px;
  right: -1px;
  width: 19px;
  height: 19px;
  border-radius: 0 12px 0 12px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #7A4A12;
  background: #FFD36B;
  box-shadow: 0 2px 4px rgba(90, 50, 10, 0.25);
}

.field-tip {
  margin: 9px 0 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #B29A83;
  letter-spacing: 0.01em;
}

/* ---------- 通用页面 ---------- */
.page-pad { padding: 16px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }

.wallet-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 20px;
  background:
    radial-gradient(90% 120% at 100% 0, rgba(255, 182, 88, 0.25) 0%, rgba(255, 182, 88, 0) 60%),
    linear-gradient(135deg, #FFFDF8, #FFF3E0);
  border: 2px solid #F4DFC4;
  box-shadow: 0 4px 0 rgba(200, 160, 110, 0.14);
}
.wallet-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.wallet-label { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.wallet-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 21px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wallet-value .mp-icon { width: 20px; height: 20px; color: #F2A51C; }
.wallet-link {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 8px 9px;
  border: 2px solid #FFD7B3;
  border-radius: 12px;
  background: #FFF6E9;
  color: var(--orange-d);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.wallet-link .mp-icon { width: 14px; height: 14px; }
.wallet-link:active { transform: translateY(1px); }

.member-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 11px;
  padding: 13px 14px;
  border: 0;
  border-radius: 20px;
  text-align: left;
  color: #fff;
  background:
    radial-gradient(120% 140% at 92% 8%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #FFB25D 0%, #FF8A3D 55%, #F5742A 100%);
  box-shadow: 0 6px 0 #D96A1F, inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.member-card:active { transform: translateY(3px); box-shadow: 0 3px 0 #D96A1F; }
.mc-crown {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.24);
  flex: 0 0 auto;
}
.mc-crown .mp-icon { width: 24px; height: 24px; color: #FFF3D3; }
.mc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-main b { font-size: 14px; font-weight: 900; }
.mc-main small { font-size: 10.5px; opacity: 0.94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-price {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--orange-d);
  white-space: nowrap;
}
.mc-price i { font-style: normal; font-size: 9.5px; font-weight: 700; color: #B38A63; }

.shop-sec { margin-top: 18px; }
.sec-sub { margin: 5px 2px 9px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }

.item-list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 2px solid #F3DFC6;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(200, 160, 110, 0.12);
}
.item-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #FFF4E4;
  flex: 0 0 auto;
}
.item-ic .mp-icon { width: 23px; height: 23px; }
.item-info { flex: 1 1 auto; min-width: 0; }
.item-info b { display: block; font-size: 13px; font-weight: 900; color: var(--ink); }
.item-info p { margin-top: 2px; font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.item-owned { display: inline-block; margin-top: 3px; font-size: 9.5px; font-weight: 800; color: var(--orange-d); background: #FFF1DE; padding: 1px 6px; border-radius: 6px; }
.buy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  height: 34px;
  padding: 0 8px;
  border: 2px solid #FFC994;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFF5E8, #FFE9D2);
  color: #D9661A;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 3px 0 #F0B57C;
}
.buy-btn .mp-icon { width: 13px; height: 13px; color: #E8A21C; }
.buy-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #F0B57C; }

.upgrade-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 2px dashed #EFC79A;
  background: linear-gradient(135deg, #FFFDF8, #FFF3E1);
}
.upgrade-info { flex: 1 1 auto; min-width: 0; }
.upgrade-info b { display: block; font-size: 13px; font-weight: 900; }
.upgrade-info p { margin-top: 2px; font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.upgrade-info small { display: inline-flex; align-items: center; gap: 2px; margin-top: 3px; font-size: 10px; font-weight: 800; color: var(--orange-d); }
.upgrade-info small .mp-icon { width: 11px; height: 11px; color: #E8A21C; }
.upgrade-btn {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #8FD46A, #5FBE4A);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 3px 0 #3E9636;
}
.upgrade-btn:disabled { background: #E7DCCD; color: #B5A28D; box-shadow: 0 3px 0 #D6C7B4; }
.upgrade-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #3E9636; }
.mat-list { margin-top: 9px; }

.fine-print { margin: 12px 4px 0; font-size: 9.5px; line-height: 1.6; color: #B49C85; text-align: center; }
.hint { margin: 12px 4px 0; font-size: 10px; line-height: 1.55; color: #B29A83; text-align: center; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn .mp-icon { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #FFB05F, #FF8A3D 60%, #F5742A);
  border: 2px solid #FFC98F;
  box-shadow: 0 4px 0 #D96A1F;
}
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #D96A1F; }
.btn-ghost {
  color: #6E5139;
  background: #FFFDF8;
  border: 2px solid #F0D9BE;
  box-shadow: 0 4px 0 #E7D0B5;
}
.btn-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 #E7D0B5; }
.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #FF8C77, #E8553F);
  border: 2px solid #FFB2A3;
  box-shadow: 0 4px 0 #B63B29;
}
.btn-danger:active { transform: translateY(3px); box-shadow: 0 1px 0 #B63B29; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; }
.btn:disabled:active { transform: none; }

/* ---------- 仓库 ---------- */
.wh-hero {
  padding: 14px;
  border-radius: 20px;
  border: 2px solid #F4DFC4;
  background:
    radial-gradient(110% 120% at 100% 0, rgba(255, 197, 112, 0.22) 0%, rgba(255, 197, 112, 0) 55%),
    linear-gradient(135deg, #FFFDF8, #FFF2DE);
  box-shadow: 0 4px 0 rgba(200, 160, 110, 0.14);
}
.wh-top { display: flex; align-items: flex-start; gap: 10px; }
.wh-title { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 900; }
.wh-title .mp-icon { width: 21px; height: 21px; color: var(--orange); }
.wh-top p { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.wh-coins {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 11px;
  background: #FFF6E4;
  border: 1.5px solid #FFE2B8;
  font-size: 13px;
  font-weight: 900;
  color: #C88A2A;
  white-space: nowrap;
}
.wh-coins .mp-icon { width: 15px; height: 15px; color: #F2A51C; }
.cap-bar {
  height: 10px;
  margin-top: 13px;
  border-radius: 6px;
  background: #F1E3D1;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(120, 80, 30, 0.12);
}
.cap-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FFD25E, #FF8A3D); transition: width 0.35s ease; }
.cap-text { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10px; font-weight: 700; color: var(--muted); }
.wh-btns { display: flex; gap: 9px; margin-top: 12px; }
.wh-btns .btn { flex: 1 1 0; }
.wh-list { display: flex; flex-direction: column; gap: 8px; margin-top: 13px; }
.wh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 16px;
  border: 2px solid #F3DFC6;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(200, 160, 110, 0.1);
}
.wh-art {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 14px;
  flex: 0 0 auto;
}
.wh-art .crop-svg { width: 100%; height: 100%; }
.wh-info { flex: 1 1 auto; min-width: 0; }
.wh-name { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; font-weight: 900; }
.wh-info small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.qchip { font-size: 9px; font-weight: 900; padding: 1px 5px; border-radius: 6px; }
.mut-chip { font-size: 9px; font-weight: 900; color: #fff; padding: 1px 5px; border-radius: 6px; background: linear-gradient(135deg, #FF8CB0, #F2576C); }
.sell-btn {
  flex: 0 0 auto;
  min-width: 56px;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #8FD46A, #5FBE4A);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 3px 0 #3E9636;
}
.sell-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #3E9636; }
.empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 38px 20px 26px;
  margin-top: 13px;
  border-radius: 20px;
  border: 2px dashed #EFD8BC;
  background: #FFFBF4;
  text-align: center;
}
.empty-box > .mp-icon { width: 40px; height: 40px; color: #E0C7A6; }
.empty-box b { font-size: 14px; font-weight: 900; color: #8A6E54; }
.empty-box p { font-size: 11px; color: var(--muted); }
.empty-box .btn { margin-top: 9px; min-height: 38px; font-size: 12px; }
.upgrade-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #FFF8EC;
  border: 2px solid #F2E0C7;
}
.upgrade-strip > div { flex: 1 1 auto; min-width: 0; }
.upgrade-strip b { display: block; font-size: 12px; font-weight: 900; }
.upgrade-strip small { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.upgrade-strip small .mp-icon { width: 11px; height: 11px; color: #E8A21C; }
.mini-btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 11px;
  border: 2px solid #FFD7B3;
  border-radius: 10px;
  background: #FFF6E9;
  color: var(--orange-d);
  font-size: 11px;
  font-weight: 900;
}
.mini-btn:disabled { color: #B5A28D; border-color: #E7DCCD; background: #F6F0E7; }
.mini-btn:active:not(:disabled) { transform: translateY(1px); }

/* ---------- 收藏集 ---------- */
.col-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-radius: 22px;
  border: 2px solid #F4DFC4;
  background:
    radial-gradient(100% 130% at 0 0, rgba(143, 212, 106, 0.25) 0%, rgba(143, 212, 106, 0) 55%),
    linear-gradient(135deg, #FFFDF8, #FFF3E0);
  box-shadow: 0 4px 0 rgba(200, 160, 110, 0.14);
}
.col-ring {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(var(--orange) var(--p, 0%), #F0E3D2 0);
  display: grid;
  place-items: center;
}
.col-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #FFFCF5;
  box-shadow: inset 0 1px 3px rgba(150, 110, 60, 0.1);
}
.col-ring > span { position: relative; z-index: 1; font-size: 20px; font-weight: 900; color: var(--ink); line-height: 1; }
.col-ring small { font-size: 10px; font-weight: 800; color: var(--muted); }
.col-hero-main { flex: 1 1 auto; min-width: 0; }
.col-title { font-size: 17px; font-weight: 900; }
.col-hero-main > p { margin-top: 3px; font-size: 10.5px; line-height: 1.45; color: var(--muted); }
.col-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 7px; }
.col-meta span { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; color: #8A6E54; }
.col-meta .mp-icon { width: 12px; height: 12px; color: var(--orange); }
.col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.col-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 148px;
  padding: 10px 8px 9px;
  border: 2px solid #F3DFC6;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 3px 0 rgba(200, 160, 110, 0.12);
  text-align: center;
}
.col-card:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(200, 160, 110, 0.12); }
.col-art { width: 66px; height: 66px; margin-top: 2px; }
.col-art .crop-svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 2px rgba(90, 60, 20, 0.16)); }
.col-card.undiscovered .col-art { filter: grayscale(1) opacity(0.4); }
.col-name { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 900; color: var(--ink); }
.col-card.undiscovered .col-name { color: #A78E76; }
.col-name .mp-icon { width: 12px; height: 12px; color: #B5A08B; }
.col-pips { display: flex; gap: 3px; margin-top: 3px; }
.pip { width: 9px; height: 9px; border-radius: 50%; background: #EEE1D0; box-shadow: inset 0 1px 1px rgba(120, 90, 50, 0.12); }
.pip.on { background: var(--qc, #FF8A3D); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 1px 2px rgba(90, 60, 20, 0.25); }
.col-count { font-size: 9.5px; font-weight: 700; color: var(--muted); }
.col-mut {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 8.5px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #FF8CB0, #F2576C);
  padding: 1px 5px;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(180, 40, 70, 0.4);
}
.col-lock {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 8px;
  background: #F1E6D6;
  color: #B5A08B;
}
.col-lock .mp-icon { width: 12px; height: 12px; }

/* ---------- 我的 ---------- */
.me-card {
  padding: 16px;
  border-radius: 22px;
  border: 2px solid #F4DFC4;
  background:
    radial-gradient(110% 130% at 100% 0, rgba(255, 182, 88, 0.22) 0%, rgba(255, 182, 88, 0) 55%),
    linear-gradient(135deg, #FFFDF8, #FFF3E0);
  box-shadow: 0 4px 0 rgba(200, 160, 110, 0.14);
}
.me-top { display: flex; align-items: center; gap: 12px; }
.me-id { flex: 1 1 auto; min-width: 0; }
.me-name { font-size: 19px; font-weight: 900; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-sub { margin-top: 2px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.me-exp { height: 7px; margin-top: 7px; border-radius: 5px; background: #F0E1CD; overflow: hidden; max-width: 190px; }
.me-exp i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FFC94D, #FF8A3D); transition: width 0.35s ease; }
.me-exp-t { margin-top: 3px; font-size: 9.5px; font-weight: 700; color: #B29A83; }
.icon-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid #F0D9BE;
  background: #FFFDF8;
  color: var(--orange);
  box-shadow: 0 2px 0 #E7D0B5;
}
.icon-btn .mp-icon { width: 18px; height: 18px; }
.icon-btn:active { transform: translateY(2px); box-shadow: none; }
.me-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.me-chips span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 9px;
  background: #FFF7EA;
  border: 1px solid #F2E0C7;
  font-size: 10px;
  font-weight: 800;
  color: #8A6E54;
}
.me-chips .mp-icon { width: 12px; height: 12px; color: var(--orange); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.stat {
  padding: 12px 13px;
  border-radius: 16px;
  border: 2px solid #F3DFC6;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(200, 160, 110, 0.12);
}
.stat b { display: block; font-size: 20px; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; line-height: 1.15; }
.stat b small { font-size: 11px; color: var(--muted); font-weight: 800; }
.stat span { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; color: var(--muted); }

.settings { margin-top: 12px; border-radius: 18px; border: 2px solid #F3DFC6; background: var(--paper); overflow: hidden; box-shadow: 0 2px 0 rgba(200, 160, 110, 0.12); }
.set-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid #F6EADB;
  background: none;
  text-align: left;
}
.set-row:last-child { border-bottom: 0; }
.set-row:active { background: #FFF8EC; }
.set-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #FFF1DE; color: var(--orange); flex: 0 0 auto; }
.set-ic .mp-icon { width: 18px; height: 18px; }
.set-ic.danger { background: #FFECE8; color: #D9482F; }
.set-main { flex: 1 1 auto; min-width: 0; }
.set-main b { display: block; font-size: 13px; font-weight: 900; color: var(--ink); }
.set-main small { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }
.switch { flex: 0 0 auto; width: 40px; height: 24px; padding: 2px; border-radius: 13px; background: #E8DAC9; transition: background 0.2s ease; }
.switch i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(90, 60, 20, 0.25); transition: transform 0.2s ease; }
.switch.on { background: linear-gradient(135deg, #8FD46A, #57B94B); }
.switch.on i { transform: translateX(16px); }
.set-arrow { flex: 0 0 auto; color: #C3AE97; }
.set-arrow .mp-icon { width: 18px; height: 18px; }

.foot-note { margin: 22px 0 0; text-align: center; font-size: 9.5px; line-height: 1.7; color: #C0A892; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 480px;
  margin: 0 auto;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 250, 242, 0.97);
  border-top: 1px solid #F0DCC2;
  box-shadow: 0 -6px 18px rgba(150, 110, 70, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 3px 2px;
  border: 0;
  background: none;
  color: #B39A85;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 0.15s ease, transform 0.1s ease;
}
.tab .mp-icon { width: 23px; height: 23px; }
.tab.active { color: var(--orange-d); }
.tab.active .mp-icon { color: var(--orange); }
.tab.active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}
.tab:active { transform: scale(0.94); }

/* ---------- 弹层 ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet-root.open { pointer-events: auto; }
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(48, 28, 10, 0.44);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.sheet-root.open .sheet-mask { opacity: 1; }
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFFCF5, #FFF8ED);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -14px 40px rgba(60, 35, 10, 0.28);
  overflow: hidden;
  transform: translateY(102%);
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.3, 1);
  padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
}
.sheet.in { transform: translateY(0); }
.sheet-grab { width: 38px; height: 4px; margin: 8px auto 0; border-radius: 3px; background: #E5D3BD; flex: 0 0 auto; }
.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 18px 9px;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(240, 220, 194, 0.5);
}
.sheet-head h3 { font-size: 18px; font-weight: 900; letter-spacing: -0.01em; color: var(--ink); }
.sheet-head p { margin-top: 3px; font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.sheet-x {
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #F5E9DA;
  color: #8A6E54;
}
.sheet-x .mp-icon { width: 17px; height: 17px; }
.sheet-x:active { transform: scale(0.94); }
.sheet-body { flex: 1 1 auto; min-height: 0; padding: 12px 18px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-actions {
  display: flex;
  gap: 9px;
  padding: 10px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(240, 220, 194, 0.6);
  background: #FFFBF3;
  flex: 0 0 auto;
}
.sheet-actions .btn { flex: 1 1 0; }
.sheet-text { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.sheet-text.center { text-align: center; }
.sheet-text.accent { color: var(--orange-d); font-weight: 800; margin-bottom: 10px; }
.sheet-text b { color: var(--ink); }
.sheet-text b.accent, .accent { color: var(--orange-d); }

/* 种子列表 */
.seed-list { display: flex; flex-direction: column; gap: 8px; }
.seed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #F3DFC6;
  border-radius: 15px;
  background: var(--paper);
  text-align: left;
}
.seed-row.sel { border-color: #FFB060; background: #FFF4E5; box-shadow: 0 0 0 2px rgba(255, 138, 61, 0.12); }
.seed-row.locked { opacity: 0.62; }
.seed-row:active { transform: translateY(1px); }
.seed-art { flex: 0 0 auto; width: 46px; height: 46px; }
.seed-art .crop-svg { width: 100%; height: 100%; }
.seed-info { flex: 1 1 auto; min-width: 0; }
.seed-info b { display: block; font-size: 13.5px; font-weight: 900; color: var(--ink); }
.seed-info small { display: block; margin-top: 1px; font-size: 9.5px; line-height: 1.4; color: var(--muted); }
.seed-meta { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-top: 3px; font-size: 9px; font-weight: 800; color: #C88A2A; }
.seed-meta .mp-icon { width: 11px; height: 11px; }
.seed-lock { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 900; color: #A78E76; }
.seed-lock .mp-icon { width: 13px; height: 13px; }
.seed-check { flex: 0 0 auto; color: var(--orange); }
.seed-check .mp-icon { width: 20px; height: 20px; }

/* 作物详情 */
.ps-art { width: 92px; height: 92px; margin: 2px auto 0; }
.ps-art .crop-svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 4px rgba(90, 60, 20, 0.18)); }
.ps-name { margin-top: 3px; text-align: center; font-size: 17px; font-weight: 900; }
.ps-left { margin-top: 2px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ps-bar { height: 8px; margin: 10px 8px 0; border-radius: 5px; background: #F0E1CD; overflow: hidden; }
.ps-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FFD25E, #FF8A3D); }
.ps-note { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 8px; font-size: 9.5px; color: #B29A83; }
.ps-note .mp-icon { width: 12px; height: 12px; color: #7CC8F2; }
.ps-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.ps-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 4px;
  border: 2px solid #F0D9BE;
  border-radius: 14px;
  background: var(--paper);
  color: #6E5139;
  box-shadow: 0 3px 0 #E7D0B5;
}
.ps-btn .mp-icon { width: 20px; height: 20px; color: var(--orange); }
.ps-btn span { font-size: 11.5px; font-weight: 900; }
.ps-btn small { font-size: 8.5px; color: var(--muted); }
.ps-btn.danger .mp-icon { color: #D9482F; }
.ps-btn:disabled { opacity: 0.5; }
.ps-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #E7D0B5; }
.sheet-body > .btn-block { margin-top: 13px; }

/* 加速卡列表 */
.card-list { display: flex; flex-direction: column; gap: 8px; }
.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 2px solid #F3DFC6;
  border-radius: 14px;
  background: var(--paper);
  text-align: left;
}
.card-row:disabled { opacity: 0.5; }
.card-row:active:not(:disabled) { transform: translateY(1px); }
.card-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #FFF1DE; color: var(--orange); flex: 0 0 auto; }
.card-ic .mp-icon { width: 18px; height: 18px; }
.card-info { flex: 1 1 auto; min-width: 0; }
.card-info b { display: block; font-size: 12.5px; font-weight: 900; }
.card-info small { display: block; margin-top: 1px; font-size: 9.5px; color: var(--muted); }
.card-count { flex: 0 0 auto; font-size: 12px; font-weight: 900; color: var(--orange-d); }
.card-list + .btn { margin-top: 12px; }

/* 升级 */
.level-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 0 6px;
}
.level-big {
  display: inline-block;
  padding: 4px 18px;
  border-radius: 18px;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFB25D, #FF8A3D 60%, #F5742A);
  box-shadow: 0 5px 0 #D96A1F;
  text-shadow: 0 2px 0 rgba(180, 90, 10, 0.35);
}
.level-coins { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 900; color: #C88A2A; }
.level-coins .mp-icon { width: 14px; height: 14px; color: #F2A51C; }
.unlock-list { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.unlock-list span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #F4FBEF;
  border: 1.5px solid #CFE8C2;
  color: #3E7A34;
  font-size: 11.5px;
  font-weight: 800;
}
.unlock-list .mp-icon { width: 15px; height: 15px; color: var(--green-d); }

/* 会员 */
.member-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px 13px;
  border-radius: 18px;
  background:
    radial-gradient(110% 140% at 50% 0, rgba(255, 213, 133, 0.55) 0%, rgba(255, 213, 133, 0) 65%),
    linear-gradient(135deg, #FFF9EC, #FFF0D8);
  border: 2px solid #FFDFB4;
  text-align: center;
}
.mh-crown {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, #FFC95D, #FF9A3D);
  color: #fff;
  box-shadow: 0 4px 0 #E07A22;
}
.mh-crown .mp-icon { width: 27px; height: 27px; }
.mh-title { margin-top: 6px; font-size: 16px; font-weight: 900; color: var(--ink); }
.mh-price { display: flex; align-items: baseline; gap: 3px; color: var(--orange-d); }
.mh-price b { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.mh-price span { font-size: 11px; font-weight: 700; color: #B38A63; }
.mh-days { font-size: 10px; font-weight: 800; color: var(--green-d); background: #EAF7DF; padding: 2px 8px; border-radius: 7px; }
.perk-list { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.perk { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; background: #FFFAF1; border: 1.5px solid #F4E3CB; }
.perk > .mp-icon { width: 20px; height: 20px; color: var(--orange); flex: 0 0 auto; }
.perk span { display: flex; flex-direction: column; gap: 1px; }
.perk b { font-size: 12px; font-weight: 900; color: var(--ink); }
.perk small { font-size: 9.5px; color: var(--muted); }

/* 改名 */
.name-field { display: flex; flex-direction: column; gap: 11px; }
.name-field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 2px solid #F0D9BE;
  border-radius: 14px;
  background: #FFFDF8;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  outline: none;
}
.name-field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.14); }
.name-field input::placeholder { color: #C3AE97; font-weight: 600; }

/* 图鉴详情 */
.detail-hero { text-align: center; }
.detail-art { display: block; width: 88px; height: 88px; margin: 0 auto 4px; }
.detail-art .crop-svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 4px rgba(90, 60, 20, 0.16)); }
.detail-hero > p { font-size: 11px; line-height: 1.55; color: var(--muted); }
.detail-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 7px; }
.detail-meta span { font-size: 9.5px; font-weight: 800; color: #8A6E54; background: #FFF6E8; padding: 3px 7px; border-radius: 7px; }
.tier-list { display: flex; flex-direction: column; gap: 6px; margin-top: 13px; }
.tier-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 11px;
  background: #FFFAF2;
  border: 1.5px solid #F4E5D2;
}
.tier-row.off { opacity: 0.55; }
.tier-badge { flex: 0 0 auto; font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 7px; }
.tier-mult { flex: 1 1 auto; font-size: 9.5px; font-weight: 700; color: var(--muted); }
.tier-count { flex: 0 0 auto; font-size: 9.5px; font-weight: 800; color: #8A6E54; }
.detail-hero + .tier-list + .btn { margin-top: 14px; }

/* ---------- Toast / 特效 ---------- */
.toast-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 84vw;
  padding: 9px 14px;
  border-radius: 13px;
  background: rgba(58, 39, 24, 0.94);
  color: #FFF8EC;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 8px 22px rgba(50, 30, 10, 0.3);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast .mp-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.toast.ok { background: rgba(58, 122, 48, 0.96); }
.toast.ok .mp-icon { color: #D8F7C6; }
.toast.err { background: rgba(181, 67, 47, 0.96); }
.toast.err .mp-icon { color: #FFE2D9; }
.toast.info .mp-icon { color: #FFD88F; }

.fx-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.float-txt {
  position: fixed;
  z-index: 101;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 900;
  color: #FFF4CE;
  text-shadow: 0 2px 0 rgba(120, 70, 10, 0.7);
  animation: floatUp 0.95s ease-out forwards;
  white-space: nowrap;
}
.float-txt.exp { color: #D9FFB8; }
.float-txt.coin { color: #FFE08A; }
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
  22% { opacity: 1; transform: translate(-50%, -60%) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -170%) scale(1); }
}
.confetti {
  position: absolute;
  top: -18px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  animation: confettiFall 1.7s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}
@keyframes confettiFall {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translateY(105vh) rotate(540deg); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 360px) {
  .hero { height: 232px; }
  .hud { padding-left: 9px; padding-right: 9px; gap: 5px; }
  .hud-player { max-width: 160px; }
  .hud-name { font-size: 11.5px; }
  .res-pill { font-size: 11.5px; padding: 0 7px; }
  .farm-panel { padding-left: 12px; padding-right: 12px; }
  .field { gap: 7px; }
  .plot { min-height: 84px; border-width: 2.5px; }
  .act-water .act-main-label { font-size: 14px; }
  .seed-chip { min-width: 52px; }
  .ms-main small { display: none; }
  .stat b { font-size: 18px; }
  .col-ring { width: 68px; height: 68px; }
  .col-art { width: 58px; height: 58px; }
}

@media (min-width: 520px) {
  .app { box-shadow: 0 0 50px rgba(90, 60, 20, 0.18); }
  .tabbar { border-radius: 0; }
}

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