/* ==============================
   农场收菜12 · 竖屏 H5
   成品农场场景 + 卡通游戏界面
   ============================== */

:root {
  --orange: #FF8A3D;
  --orange-deep: #E4671B;
  --orange-soft: #FFE3C4;
  --cream: #FFF7E8;
  --cream-2: #FFFCF5;
  --brown: #462C12;
  --brown-2: #7B5A36;
  --brown-3: #A68560;
  --green: #55A947;
  --green-deep: #347C33;
  --line: rgba(102, 67, 27, .14);
  --shadow: 0 10px 26px rgba(48, 29, 8, .25);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #7FB9D6;
  color: var(--brown);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

body { user-select: none; -webkit-user-select: none; }

button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ---------- 场景 ---------- */
.scene {
  position: fixed;
  inset: 0;
  background: #8FC9E8 url("assets/farm-scene.png") center center / cover no-repeat;
  transform: scale(1.012);
  transform-origin: center;
}

.scene-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 61, 94, .28) 0%, rgba(13, 61, 94, 0) 22%),
    radial-gradient(120% 60% at 50% 30%, rgba(255, 255, 255, 0) 55%, rgba(30, 30, 8, .16) 100%);
}

.app::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  z-index: 12;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 247, 232, 0) 0%, rgba(255, 247, 232, .42) 20%, rgba(255, 247, 232, .92) 36%, #FFF7E8 48%, #FFF7E8 100%);
}

/* ---------- 顶部资源 ---------- */
.hud {
  position: fixed;
  z-index: 40;
  top: calc(9px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  padding: 0 4px;
  display: flex;
  gap: 8px;
}

.pill {
  flex: 1;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px 0 8px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, #FFFEF8 0%, #F8E7C6 100%);
  box-shadow: 0 6px 16px rgba(57, 34, 8, .28), inset 0 1px 0 #fff;
  color: var(--brown);
  transition: transform .12s ease;
}

.pill:active { transform: translateY(1px) scale(.985); }

.pill-ico {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .12);
}

.pill-coin .pill-ico { background: radial-gradient(circle at 35% 30%, #FFF0A8, #FFC22E); color: #976000; }
.pill-fert .pill-ico { background: radial-gradient(circle at 35% 30%, #E8FBFF, #82D8FA); color: #147BA5; }
.pill-ico .mp-icon { width: 19px; height: 19px; }

.pill-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1; }
.pill-copy small { font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #9E7D56; margin-bottom: 2px; }
.pill-copy b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.pill-plus {
  margin-left: auto;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #7BCB60, #4CA53C);
  box-shadow: 0 2px 0 #347C33, inset 0 1px 0 rgba(255, 255, 255, .5);
}

.pill-plus .mp-icon { width: 15px; height: 15px; }

/* ---------- 限时挑战条 ---------- */
.challenge {
  position: fixed;
  z-index: 39;
  top: calc(56px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  padding: 0 4px;
}

.challenge-inner {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 7px 7px 12px;
  border-radius: 15px;
  color: #FFF7E8;
  background: linear-gradient(135deg, rgba(40, 29, 14, .88), rgba(62, 46, 23, .78));
  border: 1px solid rgba(255, 216, 154, .45);
  box-shadow: 0 6px 18px rgba(25, 16, 5, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.ch-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #FFDF9E;
  white-space: nowrap;
}

.ch-tag .mp-icon { width: 15px; height: 15px; }

.ch-time {
  font-size: 19px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: #FFE06A;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .22);
  line-height: 1;
}

.ch-score {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 10px;
  color: #D9C5A4;
  white-space: nowrap;
}

.ch-score b {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ch-combo {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFB55D, #FF7A28);
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.ch-btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(180deg, #FFAE57, #FF7A28);
  box-shadow: 0 3px 0 #C55714, inset 0 1px 0 rgba(255, 255, 255, .45);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ch-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #C55714; }
.ch-btn .mp-icon { width: 15px; height: 15px; }

.ch-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, .14);
}

.ch-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #FFE06A, #FF9E3D);
  transition: width .2s linear;
}

.ch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74E06A;
  box-shadow: 0 0 0 3px rgba(116, 224, 106, .18);
  animation: dotPulse 1.1s infinite;
}

.ch-idle-copy { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 700; color: #E8D8BC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 通用视图 ---------- */
.view { position: fixed; z-index: 20; }

.view-farm {
  top: calc(108px + env(safe-area-inset-top));
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  padding: 0 16px 8px;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}

.view-farm.show { display: flex; }

.view-panel {
  top: calc(108px + env(safe-area-inset-top));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  padding: 0 10px calc(86px + env(safe-area-inset-bottom));
  display: none;
  z-index: 36;
}

.view-panel.show { display: block; }

/* ---------- 地块 ---------- */
.plots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  width: 100%;
  margin-bottom: 4px;
}

.plot {
  position: relative;
  height: clamp(112px, 17vh, 158px);
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: #fff;
  background: #6B4A2F;
  box-shadow: 0 9px 22px rgba(39, 26, 10, .32), inset 0 0 0 3px rgba(255, 255, 255, .82);
  transition: transform .12s ease, box-shadow .2s ease;
  isolation: isolate;
}

.plot:active { transform: scale(.962); }

.plot-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: filter .25s ease, transform .25s ease;
}

.plot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 12, 4, .02) 34%, rgba(25, 15, 5, .76) 100%);
  pointer-events: none;
}

.plot.empty {
  background:
    radial-gradient(ellipse at 50% 58%, rgba(54, 33, 16, .88) 0 25%, rgba(54, 33, 16, 0) 26%),
    repeating-linear-gradient(116deg, rgba(255, 255, 255, .028) 0 7px, rgba(0, 0, 0, 0) 7px 15px),
    linear-gradient(180deg, #916039 0%, #744925 62%, #5C3A1D 100%);
}

.plot.empty::after {
  background: linear-gradient(180deg, rgba(255, 221, 164, .06), rgba(35, 21, 8, .32));
}

.plot-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.plot-empty .plus {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8A521B;
  background: linear-gradient(180deg, #FFF6D6, #FFD87C);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3), inset 0 -2px 0 rgba(171, 100, 23, .3);
  animation: emptyBreathe 2.2s ease-in-out infinite;
}

.plot-empty .plus .mp-icon { width: 22px; height: 22px; }
.plot-empty b { font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.plot-empty small { font-size: 10.5px; color: #FFE3B0; font-weight: 700; }

.plot-top {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.crop-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  background: rgba(27, 17, 6, .55);
  border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.state-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #6FC65C, #469B39);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  white-space: nowrap;
}

.state-tag.grow {
  color: #7B542B;
  background: linear-gradient(180deg, #FFF7E5, #F3DFB9);
}

.state-tag .mp-icon { width: 12px; height: 12px; }

.plot-bottom {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: 9px;
}

.plot-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .55);
  line-height: 1.1;
}

.plot-name .rarity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}

.plot-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 800;
  color: #FFE9C9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.plot-sub .fertilizer-hint {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #A9ECFF;
}

.plot-sub .fertilizer-hint .mp-icon { width: 12px; height: 12px; }

.p-bar {
  height: 5px;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .22);
}

.p-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFE06A, #FFA84E);
  transition: width .2s linear;
}

.plot.ready {
  box-shadow: 0 0 0 3px #FFE06A, 0 0 24px rgba(255, 188, 62, .62), 0 10px 24px rgba(39, 26, 10, .3), inset 0 0 0 2px #fff;
  animation: readyGlow 1.8s ease-in-out infinite;
}

.plot.ready .plot-art { animation: cropBob 1.7s ease-in-out infinite; }
.plot.ready .state-tag { background: linear-gradient(180deg, #FFC24C, #FF7A28); }

.ready-burst {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 2px solid rgba(255, 226, 120, .85);
  animation: burst 1.6s ease-out infinite;
  pointer-events: none;
}

.plot.waiting .plot-art { filter: brightness(.72) saturate(.7); }
.plot.waiting .state-tag { background: rgba(255, 255, 255, .3); color: #fff; }

.pop {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
  font-size: 22px;
  font-weight: 900;
  color: #FFE36A;
  text-shadow: 0 2px 0 #A55512, 0 0 12px rgba(255, 211, 74, .8);
  pointer-events: none;
  animation: popUp .92s ease-out forwards;
  white-space: nowrap;
}

/* ---------- 农场底部操作 ---------- */
.farm-actions {
  display: flex;
  gap: 9px;
  width: 100%;
  margin-bottom: 0;
}

.action-main {
  flex: 1;
  height: 52px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #FFAD55, #FF7A28);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 6px 0 #C55714, 0 11px 20px rgba(120, 50, 0, .3);
  transition: transform .1s ease, box-shadow .1s ease;
}

.action-main .mp-icon { width: 21px; height: 21px; }

.action-main:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #C55714, 0 5px 12px rgba(120, 50, 0, .25);
}

.action-main.running {
  background: linear-gradient(180deg, #8BD06B, #4FA33F);
  box-shadow: 0 6px 0 #337A2C, 0 11px 20px rgba(30, 85, 20, .28);
  animation: runningPulse 1.6s ease-in-out infinite;
}

.action-side {
  flex: 0 0 106px;
  height: 52px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--brown);
  background: linear-gradient(180deg, #FFFDF6, #F7E4C2);
  border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 5px 0 #C8A575, 0 9px 16px rgba(74, 46, 14, .24);
  font-size: 11px;
  font-weight: 900;
  transition: transform .1s ease;
}

.action-side:active { transform: translateY(3px); box-shadow: 0 2px 0 #C8A575; }
.action-side .mp-icon { width: 22px; height: 22px; color: #B06D25; }
.action-side b { font-size: 17px; line-height: 1; }
.action-side small { display: block; font-size: 9px; color: #9A7B55; line-height: 1.2; }

.farm-tip {
  min-height: 34px;
  width: 100%;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #775733;
  background: rgba(255, 249, 236, .88);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 4px 12px rgba(57, 37, 12, .16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.farm-tip .mp-icon { width: 15px; height: 15px; color: #B06D25; }

/* ---------- 底部导航 ---------- */
.dock {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(100% - 20px, 460px);
  height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 6px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, .95);
  background: linear-gradient(180deg, #FFFDF7 0%, #F8E6C6 100%);
  box-shadow: 0 10px 26px rgba(50, 30, 8, .32), inset 0 1px 0 #fff;
}

.dock-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 15px;
  color: #A1835E;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  transition: transform .12s ease, background .18s ease, color .18s ease;
}

.dock-btn .mp-icon { width: 23px; height: 23px; }
.dock-btn:active { transform: scale(.94); }

.dock-btn.on {
  color: #D65E0B;
  background: linear-gradient(180deg, #FFEFD2, #FFDCA9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 2px 6px rgba(173, 92, 15, .16);
}

.dock-btn.on::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 16px;
  height: 3px;
  border-radius: 99px;
  background: #FF8A3D;
}

.dock-badge {
  position: absolute;
  top: 5px;
  right: 15px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  background: #F26345;
  border: 1px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}

/* ---------- 面板 ---------- */
.panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 25px 25px 0 0;
  border: 2px solid rgba(255, 255, 255, .95);
  border-bottom: 0;
  background:
    radial-gradient(90% 36% at 100% 0%, rgba(255, 206, 133, .25), transparent 70%),
    linear-gradient(180deg, #FFFDF7 0%, #FFF5E1 100%);
  box-shadow: 0 -12px 38px rgba(42, 26, 8, .26);
  animation: panelIn .26s cubic-bezier(.2, .9, .3, 1);
}

.panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.panel-title { display: flex; align-items: center; gap: 10px; min-width: 0; }

.panel-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 5px 12px rgba(80, 45, 10, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.panel-mark .mp-icon { width: 24px; height: 24px; }
.panel-mark.shop { background: linear-gradient(135deg, #FFB45F, #FF7A28); }
.panel-mark.codex { background: linear-gradient(135deg, #78C96A, #3E8F3A); }
.panel-mark.friends { background: linear-gradient(135deg, #75BEF2, #3A86C9); }

.panel-title h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--brown);
}

.panel-title p {
  margin: 2px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  color: #9A7B55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.head-count {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #4E8E3C;
  background: #E8F6DE;
  border: 1px solid #BFE3AD;
}

.panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 13px 13px 30px;
}

/* ---------- 商店 ---------- */
.shop-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(125deg, #6A4A25, #8A612F);
  box-shadow: 0 6px 16px rgba(73, 46, 15, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
  margin-bottom: 13px;
}

.shop-balance .mp-icon { width: 21px; height: 21px; color: #FFD35E; }
.shop-balance small { font-size: 10.5px; font-weight: 700; color: #E8D6B6; }
.shop-balance b { margin-left: auto; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.shop-balance .barn-total { margin-left: 4px; font-size: 10px; color: #E8D6B6; font-weight: 700; }

.shop-section { margin-bottom: 16px; }

.shop-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 3px 8px;
  font-size: 12px;
  font-weight: 900;
  color: #6C4C28;
}

.shop-section-head .mp-icon { width: 17px; height: 17px; color: #B06D25; }
.shop-section-head span { margin-left: auto; font-size: 10px; font-weight: 700; color: #A68560; }

.seed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  margin-bottom: 8px;
  border-radius: 17px;
  background: #FFFDF8;
  border: 1px solid rgba(145, 103, 53, .16);
  box-shadow: 0 4px 12px rgba(83, 52, 17, .08);
}

.seed-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background-color: #E9D6B8;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75), 0 3px 8px rgba(75, 48, 15, .16);
}

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

.seed-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 900;
  color: #4A2F13;
}

.rarity {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .02em;
}

.rarity.common { color: #47823A; background: #E8F5DF; border: 1px solid #C5E5B6; }
.rarity.rare { color: #2E6FA7; background: #E2F1FB; border: 1px solid #BBDDF4; }
.rarity.epic { color: #8548B3; background: #F2E5FA; border: 1px solid #DCC3EE; }

.seed-meta {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #9A7B55;
}

.seed-meta b { color: #6C4C28; font-weight: 900; }

.buy-btn {
  flex: 0 0 auto;
  min-width: 62px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(180deg, #FFAD55, #FF7A28);
  box-shadow: 0 3px 0 #C55714, inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .1s ease;
}

.buy-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #C55714; }
.buy-btn .mp-icon { width: 14px; height: 14px; }
.buy-btn:disabled { filter: grayscale(.65); opacity: .6; }

.fert-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 17px;
  background: linear-gradient(135deg, #EAF9FF, #D7F1FD);
  border: 1px solid #B9E4F5;
  box-shadow: 0 4px 12px rgba(36, 107, 140, .1);
}

.fert-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #76D2F5, #2C9BCD);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 4px 8px rgba(25, 100, 133, .2);
}

.fert-icon .mp-icon { width: 26px; height: 26px; }
.fert-info { flex: 1; min-width: 0; }
.fert-info b { display: block; font-size: 14px; font-weight: 900; color: #1F607C; }
.fert-info span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; color: #4B8CA6; }

.sell-empty {
  padding: 22px 12px;
  text-align: center;
  border-radius: 17px;
  background: #FFFDF8;
  border: 1px dashed #DCC9A8;
  color: #A68560;
  font-size: 12px;
  font-weight: 700;
}

.sell-total {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 9px;
  border-radius: 14px;
  background: #FFF3D8;
  border: 1px solid #F0D7A8;
  font-size: 11px;
  font-weight: 800;
  color: #8A652E;
}

.sell-total b { color: #D26B12; font-size: 16px; }
.sell-all {
  margin-left: auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 11px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(180deg, #FFAD55, #FF7A28);
  box-shadow: 0 3px 0 #C55714;
}

.sell-all:active { transform: translateY(2px); box-shadow: 0 1px 0 #C55714; }

.sell-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  margin-bottom: 8px;
  border-radius: 15px;
  background: #FFFDF8;
  border: 1px solid rgba(145, 103, 53, .14);
}

.sell-row .seed-thumb { flex-basis: 46px; width: 46px; height: 46px; border-radius: 12px; }
.sell-info { flex: 1; min-width: 0; }
.sell-info b { display: block; font-size: 13px; font-weight: 900; }
.sell-info span { font-size: 10px; font-weight: 700; color: #9A7B55; }
.sell-btns { display: flex; gap: 5px; }

.mini-btn {
  height: 34px;
  min-width: 44px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 900;
  color: #8A5A1C;
  background: #FFE8BE;
  border: 1px solid #F1D09A;
}

.mini-btn.primary { color: #fff; background: linear-gradient(180deg, #FFAD55, #FF7A28); border-color: #E4772A; }
.mini-btn:active { transform: translateY(1px); }

/* ---------- 图鉴 ---------- */
.rarity-group { margin-bottom: 17px; }

.rarity-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px 8px;
}

.rarity-head b { font-size: 13px; font-weight: 900; color: #4A2F13; }
.rarity-head .rarity { font-size: 9.5px; }

.rarity-reward {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  color: #A15D14;
  background: #FFF0D0;
  border: 1px solid #F2D49C;
}

.rarity-reward.done { color: #438536; background: #E9F7E1; border-color: #C4E5B4; }
.rarity-reward .mp-icon { width: 12px; height: 12px; }

.codex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.codex-card {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: #FFFDF8;
  border: 1px solid rgba(145, 103, 53, .16);
  box-shadow: 0 4px 12px rgba(83, 52, 17, .08);
  padding: 7px;
}

.codex-art {
  position: relative;
  height: 92px;
  border-radius: 12px;
  background-color: #E9D6B8;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .65);
}

.codex-card.locked .codex-art { filter: grayscale(1) brightness(.58) blur(.6px); }

.codex-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #FFF2D4;
  background: rgba(29, 18, 6, .35);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
}

.codex-lock .mp-icon { width: 22px; height: 22px; }

.codex-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 233, 134, .38), transparent 62%);
}

.codex-info {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 3px 2px;
}

.codex-info b { font-size: 12.5px; font-weight: 900; color: #4A2F13; }
.codex-info span { margin-left: auto; font-size: 10px; font-weight: 800; color: #9A7B55; }
.codex-count { color: #D26B12 !important; }

.codex-progress-note {
  padding: 10px 12px;
  margin-bottom: 13px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
  color: #79552C;
  background: #FFFDF8;
  border: 1px solid rgba(145, 103, 53, .14);
}

.codex-progress-note b { color: #D26B12; }

/* ---------- 好友 ---------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  margin-bottom: 14px;
  border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 226, 163, .28), transparent 60%),
    linear-gradient(125deg, #E87825, #F7A64A);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 7px 18px rgba(155, 76, 12, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.profile-avatar {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #FFE7C4;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 10px rgba(92, 46, 7, .3);
}

.profile-info { min-width: 0; }
.profile-info b { display: block; font-size: 16px; font-weight: 900; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-info span { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; color: #FFEACF; }

.profile-stats { margin-left: auto; display: flex; gap: 12px; text-align: center; }
.profile-stats b { display: block; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.profile-stats span { font-size: 9px; font-weight: 700; color: #FFEACF; }

.friend-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 9px;
  border-radius: 17px;
  background: #FFFDF8;
  border: 1px solid rgba(145, 103, 53, .16);
  box-shadow: 0 4px 12px rgba(83, 52, 17, .08);
}

.friend-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #E9F5D9;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), 0 2px 6px rgba(75, 48, 15, .15);
}

.friend-info { flex: 1; min-width: 0; }
.friend-info b { display: block; font-size: 13.5px; font-weight: 900; color: #4A2F13; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-info span { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; color: #9A7B55; }
.friend-info .ready-text { color: #4E8E3C; }

.friend-btn {
  flex: 0 0 auto;
  height: 38px;
  min-width: 76px;
  padding: 0 10px;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #7CC96B, #4E9E44);
  box-shadow: 0 3px 0 #347C33, inset 0 1px 0 rgba(255, 255, 255, .35);
}

.friend-btn.waiting { color: #8A6A45; background: #F1E4CE; box-shadow: 0 3px 0 #D5BE9B; }
.friend-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #347C33; }
.friend-btn .mp-icon { width: 15px; height: 15px; }

.friend-note {
  font-size: 10px;
  font-weight: 700;
  color: #A68560;
  line-height: 1.55;
  padding: 2px 4px 10px;
}

/* ---------- 弹层 ---------- */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-wrap[hidden] { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(23, 14, 4, .58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}

.modal-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  border: 2px solid rgba(255, 255, 255, .95);
  border-bottom: 0;
  background:
    radial-gradient(100% 40% at 50% 0%, rgba(255, 214, 148, .3), transparent 72%),
    linear-gradient(180deg, #FFFDF8 0%, #FFF3DB 100%);
  box-shadow: 0 -18px 60px rgba(20, 12, 4, .4);
  animation: sheetUp .28s cubic-bezier(.2, .9, .3, 1);
}

.sheet-grip {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: #E2CFAF;
  margin: 0 auto 12px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.modal-title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--brown);
}

.modal-title-row p { margin: 2px 0 0; font-size: 10.5px; font-weight: 700; color: #9A7B55; }

.modal-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8A6A45;
  background: #F6E8D0;
  border: 1px solid #E8D4B4;
}

.modal-close .mp-icon { width: 18px; height: 18px; }

/* 选择种子 */
.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: #FFFDF9;
  border: 1px solid rgba(145, 103, 53, .16);
  box-shadow: 0 3px 9px rgba(83, 52, 17, .06);
}

.pick-row .seed-thumb { flex-basis: 54px; width: 54px; height: 54px; }
.pick-info { flex: 1; min-width: 0; }
.pick-info b { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 900; }
.pick-info span { display: block; margin-top: 3px; font-size: 10px; font-weight: 700; color: #9A7B55; }
.pick-info span b { display: inline; font-size: 10px; color: #D26B12; }

.pick-btn {
  flex: 0 0 auto;
  min-width: 82px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(180deg, #FFAD55, #FF7A28);
  box-shadow: 0 3px 0 #C55714;
  line-height: 1.15;
}

.pick-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #C55714; }
.pick-btn:disabled { filter: grayscale(.6); opacity: .55; box-shadow: none; }

/* 离线 / 结算 */
.modal-hero { text-align: center; padding: 4px 2px 0; }

.hero-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 10px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #FFC25C, #FF7A28);
  box-shadow: 0 9px 20px rgba(211, 112, 22, .3), inset 0 2px 0 rgba(255, 255, 255, .5);
  transform: rotate(-4deg);
}

.hero-icon .mp-icon { width: 36px; height: 36px; }
.hero-icon.green { background: linear-gradient(140deg, #8BD06B, #3F8F38); box-shadow: 0 9px 20px rgba(64, 133, 48, .28), inset 0 2px 0 rgba(255, 255, 255, .5); }
.hero-icon.blue { background: linear-gradient(140deg, #7ED5F5, #2E96C8); box-shadow: 0 9px 20px rgba(36, 124, 160, .26), inset 0 2px 0 rgba(255, 255, 255, .5); }

.modal-hero h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #43290F;
}

.modal-hero .hero-sub {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #9A7B55;
  line-height: 1.5;
}

.result-score {
  margin: 13px auto 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 9px 20px 10px;
  border-radius: 18px;
  background: #FFF0CF;
  border: 1px solid #F0D29A;
  box-shadow: inset 0 1px 0 #fff;
  font-size: 36px;
  font-weight: 900;
  color: #D26B12;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.result-score span { font-size: 12px; color: #A4783E; font-weight: 800; }

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 0 14px;
}

.reward-cell {
  padding: 9px 4px;
  border-radius: 14px;
  background: #FFFDF8;
  border: 1px solid rgba(145, 103, 53, .14);
}

.reward-cell b { display: block; font-size: 17px; font-weight: 900; color: #4A2F13; font-variant-numeric: tabular-nums; }
.reward-cell span { display: block; margin-top: 2px; font-size: 9.5px; font-weight: 700; color: #A68560; }

.reward-cell.highlight b { color: #D26B12; }

.btn {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .1s ease, box-shadow .1s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #FFAD55, #FF7A28);
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: 0 5px 0 #C55714, 0 9px 16px rgba(120, 50, 0, .22);
}

.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #C55714; }

.btn-ghost {
  margin-top: 8px;
  color: #8A5A1C;
  background: #FFF6E4;
  border: 1px solid #EBD3AC;
  box-shadow: 0 3px 0 #E2C79D;
}

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

/* 好友农场小格 */
.friend-farm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #E9F6FF, #D6EEFB);
  border: 1px solid #BCE0F1;
}

.friend-farm-head .friend-avatar { flex-basis: 46px; width: 46px; height: 46px; }
.friend-farm-head b { display: block; font-size: 14px; font-weight: 900; color: #265E7A; }
.friend-farm-head span { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; color: #4B8CA6; }
.friend-farm-timer {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: #2E6FA7;
  background: #FFF;
  border: 1px solid #C5E3F3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-plot {
  position: relative;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, .8);
  box-shadow: 0 3px 8px rgba(75, 48, 15, .16);
  color: #fff;
  transition: transform .1s ease;
}

.mini-plot:active { transform: scale(.95); }
.mini-plot.empty {
  background:
    radial-gradient(ellipse at 50% 58%, rgba(54, 33, 16, .8) 0 28%, rgba(54, 33, 16, 0) 29%),
    linear-gradient(180deg, #8A5A34, #5F3D21);
}

.mini-plot.empty .mini-tag {
  color: #E5CDAA;
  background: rgba(35, 22, 9, .5);
}

.mini-plot .mini-tag {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  color: #fff;
  background: rgba(28, 17, 6, .58);
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.mini-plot.mature { box-shadow: 0 0 0 2px #FFD966, 0 0 14px rgba(255, 191, 55, .5); }
.mini-plot.mature .mini-tag { background: linear-gradient(180deg, #FFC24C, #FF7A28); }
.mini-plot.mature.locked { filter: saturate(.55) brightness(.82); box-shadow: 0 0 0 2px rgba(255, 217, 102, .5); }
.mini-plot.taken { filter: grayscale(.8) brightness(.65); }

.friend-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: #FFFDF8;
  border: 1px solid rgba(145, 103, 53, .14);
  font-size: 11px;
  font-weight: 800;
  color: #775733;
}

.friend-progress b { color: #D26B12; }
.friend-progress .mp-icon { width: 15px; height: 15px; color: #6FAE4F; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  width: min(100%, 480px);
  padding: 0 16px;
}

.toast {
  max-width: 100%;
  padding: 9px 15px;
  border-radius: 999px;
  color: #FFF7E8;
  background: rgba(39, 26, 12, .92);
  border: 1px solid rgba(255, 231, 188, .28);
  box-shadow: 0 6px 18px rgba(20, 12, 4, .3);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  animation: toastIn .24s cubic-bezier(.2, .9, .3, 1);
}

.toast.out { animation: toastOut .28s ease forwards; }

/* ---------- 动画 ---------- */
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}

@keyframes readyGlow {
  0%, 100% { box-shadow: 0 0 0 3px #FFE06A, 0 0 20px rgba(255, 188, 62, .5), 0 10px 24px rgba(39, 26, 10, .3), inset 0 0 0 2px #fff; }
  50% { box-shadow: 0 0 0 4px #FFF0A2, 0 0 34px rgba(255, 196, 60, .82), 0 10px 24px rgba(39, 26, 10, .3), inset 0 0 0 2px #fff; }
}

@keyframes cropBob {
  0%, 100% { transform: scale(1.03) translateY(0); }
  50% { transform: scale(1.06) translateY(-3px); }
}

@keyframes burst {
  0% { transform: scale(.7); opacity: .9; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes emptyBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.04); }
}

@keyframes popUp {
  0% { transform: translate(-50%, 6px) scale(.7); opacity: 0; }
  18% { transform: translate(-50%, -2px) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -46px) scale(1); opacity: 0; }
}

@keyframes runningPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes panelIn {
  from { transform: translateY(22px); opacity: .2; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes sheetUp {
  from { transform: translateY(60px); opacity: .4; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toastIn {
  from { transform: translateY(12px) scale(.94); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toastOut {
  to { transform: translateY(8px) scale(.96); opacity: 0; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 359px) {
  .hud, .challenge { padding: 0 4px; }
  .pill { height: 45px; gap: 5px; padding: 0 6px; }
  .pill-ico { flex-basis: 27px; width: 27px; height: 27px; }
  .pill-copy b { font-size: 16px; }
  .pill-copy small { font-size: 8px; }
  .pill-plus { flex-basis: 20px; width: 20px; height: 20px; }
  .view-farm { padding: 0 12px 8px; }
  .plots { gap: 9px; }
  .plot { height: clamp(105px, 16.5vh, 150px); }
  .action-side { flex-basis: 96px; }
  .action-main { font-size: 13px; }
  .dock { width: min(100% - 14px, 460px); }
  .codex-art { height: 84px; }
}

@media (max-height: 640px) {
  .farm-tip { min-height: 30px; font-size: 10px; }
  .action-main, .action-side { height: 47px; }
  .plot { height: clamp(102px, 16vh, 140px); }
  .farm-actions { margin-bottom: 6px; }
  .plots { gap: 8px; margin-bottom: 7px; }
}

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