/* ============================================================
 * 金铲铲农场 · 样式
 * 农场部分：田园绿（自定义）
 * 排位 / 结算 / 英雄页 / 排行榜：照抄《金铲铲模拟器》（浅金主题）
 * ============================================================ */
[hidden] { display: none !important; }

:root {
  /* 金铲铲主题（照抄《金铲铲模拟器》style.css） */
  --bg:          #f0dc9a;
  --bg-deep:     #e6cf88;
  --panel:       #fffdf2;
  --panel-2:     #fdf6dd;
  --panel-3:     #f7ecc4;
  --line:        #a8791f;
  --line-soft:   #d4bd75;
  --gold:        #a8791f;
  --gold-dim:    #8a6318;
  --gold-bright: #5c4410;
  --teal:        #7a5c1a;
  --teal-dim:    #b89a55;
  --danger:      #b03030;
  --danger-text: #8a2424;
  --text:        #3d3010;
  --text-dim:    #6b5a2e;
  --text-mute:   #8f7f52;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  min-height: 100%; max-width: 100%;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
img, canvas, video, table { max-width: 100%; }
.log-item, .settle-note, .mask-info, .lb-name { overflow-wrap: anywhere; word-break: break-word; }

#app {
  max-width: 480px; margin: 0 auto; min-height: 100vh;
  background: var(--bg); position: relative; overflow-x: hidden;
}
/* 子页面背景纹理（农场页有不透明背景，不受影响） */
body::before {
  content: '';
  position: fixed; top: 0; left: 50%;
  width: 480px; max-width: 100%; height: 100%;
  transform: translateX(-50%);
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(255,255,255,.55), transparent 62%),
    radial-gradient(120% 70% at 50% 110%, rgba(168,121,31,.13), transparent 66%),
    repeating-linear-gradient(0deg, rgba(168,121,31,.07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(168,121,31,.07) 0 1px, transparent 1px 34px);
  pointer-events: none; z-index: 0;
}
.view {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh;
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
}
.page-view { align-items: stretch; }

/* ============================================================
 * 通用按钮 / 子页头 / Tabs（照抄《金铲铲模拟器》）
 * ============================================================ */
.btn {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--text);
  border-radius: 12px; padding: 10px 17px;
  font-size: 14.5px; cursor: pointer; user-select: none;
  transition: transform .1s, filter .15s; white-space: nowrap;
}
.btn:active { transform: scale(.97); filter: brightness(1.15); }
.btn-primary {
  background: linear-gradient(180deg, #f2d472, #c9a227);
  border-color: var(--gold-dim); color: #3d2a00; font-weight: 700;
}
.btn-big { width: 100%; padding: 12px 14px; font-size: 14.5px; border-radius: 13px; }
.btn-danger { border-color: var(--danger); color: var(--danger-text); }
.btn-pause {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  width: 38px; height: 38px; border-radius: 50%; font-size: 15px; cursor: pointer;
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
}
.btn-pause:active { transform: scale(.92); }

.page-head {
  width: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; margin-bottom: 8px;
}
.page-title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  margin: 0; font-size: 18px; font-weight: 800; color: var(--gold-bright);
  white-space: nowrap;
}
.btn-close {
  margin-left: auto; position: relative; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--text-dim); font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.btn-close:active { transform: scale(.92); color: var(--gold-bright); border-color: var(--gold); }
.title-gem { color: var(--teal); font-size: .82em; margin-left: 2px; }

/* Tabs：默认整行等分 */
.tabs { width: 100%; display: flex; gap: 6px; margin-bottom: 8px; }
.tabs-wrap { flex-wrap: wrap; }
.tabs-small .tab { font-size: 12px; padding: 6px 4px; }
.tab {
  flex: 1; padding: 8px 6px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(176,48,48,.25);
  background: rgba(255,255,255,.30);
  color: var(--text-dim); font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
.tab.active { background: rgba(176,48,48,.16); color: var(--gold-bright); border-color: var(--gold); }

/* ============================================================
 * 农场主界面
 * ============================================================ */
.farm-view {
  padding: 0; align-items: stretch; min-height: 0;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #cdecc0 0%, #e6f5dd 34%, #d4ecc4 100%);
}

/* ---------- 顶栏：三行 ---------- */
.top-bar {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: 8px 8px 7px; flex: none;
  background: linear-gradient(180deg, #3f8b3b, #2f6b2f);
  color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.18); z-index: 5;
}
.top-title { text-align: center; }
.farm-name {
  display: block; text-align: center;
  font-size: 16px; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.farm-name::first-letter { color: #ffe28a; }
.shovel-logo {
  display: inline-block; width: 20px; height: 20px; object-fit: contain;
  vertical-align: -5px; margin-right: 4px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.top-status { display: flex; align-items: center; gap: 8px; }
.farm-lv-row { flex: 2 1 0; display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; min-width: 0; }
.lv-badge { font-size: 11px; background: rgba(255,255,255,.22); padding: 1px 6px; border-radius: 9px; white-space: nowrap; flex-shrink: 0; }
.lv-badge b { font-size: 12px; color: #ffe28a; }
.exp-bar { flex: 1 1 auto; height: 8px; background: rgba(0,0,0,.28); border-radius: 4px; overflow: hidden; min-width: 24px; }
.exp-fill { height: 100%; width: 0; background: linear-gradient(90deg, #ffe97a, #f5c542); border-radius: 4px; transition: width .3s; }
.exp-text { font-size: 9px; opacity: .92; white-space: nowrap; flex-shrink: 0; }
.coin-pill {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(180deg, #ffd76a, #ffb42e);
  border: 1px solid #fff6d8; padding: 2px 7px 2px 5px; border-radius: 14px;
  font-weight: 800; font-size: 12px; color: #6d4100;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); white-space: nowrap; min-width: 0;
}
.coin-ico {
  display: inline-block; width: 16px; height: 16px; flex-shrink: 0;
  background: url('images/jcc.png') center / contain no-repeat;
  border: none; box-shadow: none; border-radius: 0;
}
.s-coin { width: 12px; height: 12px; display: inline-block; margin-right: 2px; vertical-align: -2px; }
/* 内联金铲铲币图标（英雄页 / 结算页价格） */
.coin-img { display: inline-block; width: 14px; height: 14px; object-fit: contain; vertical-align: -2px; margin: 0 1px; }
.top-actions { display: flex; gap: 5px; }
.act-btn {
  flex: 1 1 0; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.16); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; min-width: 0;
  transition: transform .1s, background .2s;
}
.act-btn:active { transform: scale(.95); background: rgba(255,255,255,.28); }
.act-ico { font-size: 14px; flex-shrink: 0; }
/* 第四行：总游玩人数 / 排位总胜场（照金铲铲 .home-count：胶囊居中） */
.farm-counts { display: flex; justify-content: center; align-items: center; width: 100%; }
.farm-counts .count-pill {
  display: inline-block; max-width: 100%; overflow: hidden;
  background: rgba(255,253,242,.94);
  border: 1px solid rgba(168,121,31,.45);
  border-radius: 999px; padding: 5px 14px;
  font-size: 11px; color: var(--text-dim); white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.farm-counts b { color: var(--gold-bright); font-size: 1.04em; }
/* 第五行：三连关注引导栏 */
.follow-bar {
  width: 100%; margin-top: 1px; padding: 4px 8px;
  background: rgba(255,253,242,.94); border: 1px solid rgba(168,121,31,.45);
  border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--gold-bright);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.follow-bar b { color: #b03030; font-size: 11px; }
.follow-bar:active { transform: scale(.98); }

.shovel-hint { text-align: center; font-size: 12px; color: #8a5a1f; background: #ffe9bd; padding: 4px; border-bottom: 1px solid #f2d9a4; flex: none; }

/* ---------- 田地 ---------- */
.field-wrap { flex: 1; overflow-y: auto; min-height: 0; padding: 9px; -webkit-overflow-scrolling: touch; }
.field { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; max-width: 580px; margin: 0 auto; }
.plot {
  position: relative; aspect-ratio: 1; border-radius: 10px; min-width: 0;
  background: linear-gradient(180deg, #f7dfae, #eac27d);
  border: 2px solid #c79a54;
  box-shadow: inset 0 2px 4px rgba(255,255,255,.5), 0 2px 4px rgba(0,0,0,.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: visible; user-select: none; -webkit-user-select: none; transition: transform .1s;
}
.plot:active { transform: scale(.95); }
.plot.locked { background: repeating-linear-gradient(45deg, #8a8a8a, #8a8a8a 6px, #7a7a7a 6px, #7a7a7a 12px); border-color: #6b6b6b; }
.plot.locked .lock-ico { font-size: 19px; }
.plot.locked .lock-cost { font-size: 9px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); margin-top: 2px; }
.plot.empty .empty-ico { font-size: 17px; opacity: .4; }
.plot.empty .empty-tip {
  font-size: 7px; color: #8a6a33; margin-top: 2px; text-align: center; line-height: 1.15;
  max-width: 96%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plot .crop-avatar {
  width: 58%; aspect-ratio: 1; max-width: 52px; border-radius: 8px; object-fit: cover;
  border: 2px solid rgba(255,255,255,.75); box-shadow: 0 1px 3px rgba(0,0,0,.25);
  background: #4c7a3a;
}
.plot .crop-fallback {
  width: 58%; aspect-ratio: 1; max-width: 52px; border-radius: 8px;
  display: none; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #5a9b45, #2f6b2f); color: #ffe28a;
  font-weight: 900; font-size: 15px; border: 2px solid rgba(255,255,255,.7);
}
.plot .grow-bar { width: 84%; height: 5px; background: rgba(0,0,0,.15); border-radius: 3px; margin-top: 3px; overflow: hidden; }
.plot .grow-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6ccb46, #3f9e2f); border-radius: 3px; transition: width .3s; }
.plot .grow-time { font-size: 8px; color: #5c4322; margin-top: 1px; }
.plot.ready { animation: readyPulse 1.2s ease-in-out infinite; border-color: #ffb52e; background: linear-gradient(180deg, #ffe9ad, #f6d483); }
.plot.ready .ready-ico { font-size: 20px; line-height: 1; }
.plot.ready .ready-tip { font-size: 9px; color: #a06a10; font-weight: 800; }
@keyframes readyPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,181,46,.65); } 50% { box-shadow: 0 0 0 5px rgba(255,181,46,0); } }
.plot .plant-tag { position: absolute; top: 1px; right: 2px; font-size: 8px; background: rgba(0,0,0,.45); color: #fff; padding: 0 4px; border-radius: 4px; }
.plot .tag-gold { background: #d98f00; }
.plot .tag-exp { background: #3a8fd4; }

.float-txt {
  position: absolute; left: 50%; top: -8px; transform: translateX(-50%);
  font-weight: 900; font-size: 16px; color: #ff1f1f; pointer-events: none;
  text-shadow: -1px 0 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, 0 1px 0 #fff, 0 0 4px rgba(255,255,255,.9);
  animation: floatUp .9s ease-out forwards; z-index: 5; white-space: nowrap;
}
@keyframes floatUp { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-20px); } }
.plot.pop { animation: plotPop .25s ease; }
@keyframes plotPop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- 底部面板 ---------- */
.bottom-panel {
  background: #fff; border-top: 2px solid #3f8b3b;
  box-shadow: 0 -2px 8px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
  height: 39vh; min-height: 196px; flex: none;
}
.bottom-tabs { display: flex; }
.bottom-tabs .tab {
  flex: 1; padding: 10px 0; font-size: 13px; font-weight: 700;
  color: #7a7a7a; background: #f2f2f2;
  border: none; border-radius: 0; border-bottom: 3px solid transparent;
}
.bottom-tabs .tab.active { color: #2f7d32; background: #fff; border-bottom-color: #3f9e2f; }
.bottom-tabs .tab-shovel { flex: 0 0 84px; font-size: 12px; }
.bottom-tabs .tab-shovel.on { background: #ffe4c4; color: #b45f00; border-bottom-color: #ff9a3c; }
.panel-body { flex: 1; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; padding: 8px 8px 24px; }

.seed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding-bottom: 8px; }
.seed-card {
  position: relative; border: 2px solid #d8d8d8; border-radius: 10px; background: #fff;
  padding: 6px 3px 5px; text-align: center; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .1s, border-color .2s;
}
.seed-card:active { transform: scale(.94); }
.seed-card .s-avatar-wrap { position: relative; width: 42px; height: 42px; }
.seed-card .s-avatar {
  width: 42px; height: 42px; border-radius: 9px; object-fit: cover;
  background: #4c7a3a; border: 2px solid #e6ddc2;
}
.seed-card .s-fallback {
  width: 42px; height: 42px; border-radius: 9px;
  display: none; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #5a9b45, #2f6b2f); color: #ffe28a;
  font-weight: 900; font-size: 15px;
}
.seed-card .s-tier {
  position: absolute; left: -3px; top: -3px; font-size: 8px; font-weight: 800;
  background: #4a4a4a; color: #fff; padding: 0 4px; border-radius: 5px;
}
.seed-card .s-name { font-size: 10px; color: #333; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; width: 100%; }
.seed-card .s-info { font-size: 8px; color: #8a8a8a; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.seed-card .s-count { position: absolute; top: 1px; right: 3px; font-size: 11px; font-weight: 800; color: #2f7d32; text-shadow: 0 1px 0 #fff; }
.seed-card .s-price { font-size: 10px; font-weight: 800; color: #b06a00; }
.seed-card .s-type { font-size: 8px; padding: 0 5px; border-radius: 6px; color: #fff; }
.seed-card .s-type.gold { background: #d98f00; }
.seed-card .s-type.exp { background: #3a8fd4; }
.seed-card.selected { border-color: #3f9e2f; box-shadow: 0 0 0 2px #a8e6a0; background: #f4fff1; }
.seed-card.locked { opacity: .52; background: #efefef; }
.seed-card .s-lock { font-size: 9px; color: #888; line-height: 1.25; }
.bag-empty { text-align: center; color: #999; font-size: 13px; padding: 30px 0; }

/* ============================================================
 * 排位页（照抄《金铲铲模拟器》）
 * ============================================================ */
.game-top { width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.game-title {
  flex: 1; text-align: center; font-size: 16px; font-weight: 700; white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #fff8cd 0%, #f4ce5e 38%, #c9971c 60%, #8a6318 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.7)) drop-shadow(0 1px 3px rgba(105,75,12,.5));
}
.attr-grid { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.stamina-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,253,242,.80); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 10px 12px;
}
.stamina-name { font-size: 12.5px; color: var(--teal); flex: 0 0 auto; }
.stamina-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(61,48,16,.18); overflow: hidden; }
.stamina-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #c9a227, #8a6318); transition: width .25s; }
.stamina-val { font-size: 13px; color: var(--gold-bright); flex: 0 0 auto; }
.attr-row3 { display: flex; gap: 8px; }
.attr-card {
  flex: 1; min-width: 0;
  background: rgba(255,253,242,.80); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 9px 6px; text-align: center;
}
.attr-name { font-size: 11px; color: var(--text-mute); white-space: nowrap; }
.attr-val { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--gold-bright); white-space: nowrap; }

.team-box {
  width: 100%; margin-top: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.team-box.scroll { max-height: 240px; overflow-y: auto; }
.team-row {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,253,242,.80); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 8px 10px;
  font-size: 12.5px; white-space: nowrap;
}
.team-row > * { flex: 0 0 auto; }
.team-name {
  display: flex; align-items: center; gap: 5px;
  color: var(--text); font-weight: 700; min-width: 0;
}
.team-name b { overflow: hidden; text-overflow: ellipsis; }
.team-lv { color: var(--teal); }
.team-attr { color: var(--text-dim); }
.team-power { margin-left: auto; color: var(--gold-bright); font-weight: 700; }
.team-row.team-empty { justify-content: center; color: var(--text-mute); }

.manual-tip { margin-top: 10px; font-size: 12px; color: var(--gold); }
.log-box {
  width: 100%; margin-top: 10px;
  background: rgba(255,253,242,.62);
  border: 1px solid rgba(168,121,31,.30);
  border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.log-item {
  font-size: 13px; line-height: 1.55;
  padding: 6px 9px; border-radius: 8px;
  background: rgba(255,253,242,.70); color: #4a3a14;
}
.log-item.year { background: transparent; color: #3d4a5c; font-size: 12.5px; }
.log-item.brk { background: rgba(90,169,255,.14); border: 1px solid rgba(90,169,255,.4); color: #0d5c46; }
.log-item.ev1 { background: rgba(110,150,220,.12); border: 1px solid rgba(110,150,220,.3); color: #22406e; }
.log-item.ev2 { background: rgba(180,120,220,.12); border: 1px solid rgba(180,120,220,.35); color: #58307e; }
.log-item.ev3 { background: rgba(255,70,85,.14); border: 1px solid rgba(255,70,85,.4); color: #7a1f28; }
.log-item.ev4 { background: rgba(230,80,80,.16); border: 1px solid rgba(230,80,80,.45); color: #8a1f26; }
.log-item.red { background: rgba(255,60,60,.16); border: 1px solid rgba(255,60,60,.5); color: #9a2020; font-weight: 700; }
.log-item.dead { background: rgba(180,60,60,.15); border: 1px solid rgba(180,60,60,.4); color: #7a2a20; }
.log-item.god { background: rgba(123,211,200,.18); border: 1px solid rgba(123,211,200,.5); color: #0a5348; font-weight: 700; }
.log-item.rainbow {
  background: linear-gradient(90deg, rgba(255,90,90,.26), rgba(255,200,80,.26), rgba(110,220,120,.26), rgba(90,160,255,.26), rgba(180,120,255,.26));
  background-size: 400% 100%;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-weight: 700;
  animation: rainbowShift 1.2s linear infinite;
}
@keyframes rainbowShift { 0% { background-position: 0% 0; } 100% { background-position: 400% 0; } }
#view-pk .log-box { flex: 1 1 auto; min-height: 120px; }

/* PK 对手面板 */
.foe-box {
  width: 100%; margin-top: 8px;
  border: 1px solid var(--line-soft); border-radius: 12px;
  background: linear-gradient(180deg, rgba(168,121,31,.12), rgba(255,253,242,.75));
  padding: 8px 10px; flex: none;
}
.foe-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.foe-title { font-size: 12.5px; font-weight: 800; color: var(--gold-bright); }
.foe-syn { font-size: 11px; color: var(--text-mute); }
.foe-line { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-dim); margin-bottom: 6px; }
.foe-line b { color: var(--text); }
.foe-pows { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.foe-item { display: flex; align-items: baseline; gap: 4px; font-size: 11px; }
.foe-name { color: var(--text-dim); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foe-pow { color: var(--teal); font-weight: 700; }

/* ============================================================
 * 结算（照抄《金铲铲模拟器》）
 * ============================================================ */
#view-settle {
  justify-content: center; align-items: center;
  padding-top: 8px; padding-bottom: 8px; min-height: 100vh;
}
.settle-box {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, rgba(255,253,242,.96), rgba(253,246,221,.96));
  border: 1px solid rgba(168,121,31,.38);
  border-radius: 16px;
  padding: 18px 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.settle-title { text-align: center; font-size: 22px; font-weight: 700; color: var(--text); white-space: nowrap; }
.settle-title.god {
  color: transparent;
  background: linear-gradient(90deg,#ff5f5f,#ffd75e,#6fdc8c,#6fb0ff,#c78cff);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 14px rgba(255,70,85,.5));
}
.settle-title.died { color: var(--danger-text); }
.settle-rows { display: flex; flex-direction: column; }
.s-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px dashed rgba(168,121,31,.30);
  font-size: 14px;
}
.s-row:last-child { border-bottom: none; }
.s-row span { color: var(--text-mute); }
.s-row b { color: var(--text); }
.settle-note { font-size: 12.5px; color: var(--gold); text-align: center; }
.settle-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 2px; }
.settle-btns .btn-big { padding: 11px 6px; font-size: 14.5px; border-radius: 11px; }

.settle-cmp { display: flex; flex-direction: column; width: 100%; }
.cmp-row {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 6px 4px; font-size: 13.5px;
  border-bottom: 1px dashed rgba(168,121,31,.25);
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row .cmp-k { flex: 0 0 auto; margin-right: auto; color: var(--text-mute); font-size: 12.5px; }
.cmp-row .cmp-me { flex: 0 0 auto; color: var(--gold-bright); font-weight: 700; white-space: nowrap; }
.cmp-row .cmp-vs { flex: 0 0 auto; color: var(--text-mute); font-size: 11px; font-style: normal; }
.cmp-row .cmp-foe { flex: 0 0 auto; color: var(--danger-text); font-weight: 700; white-space: nowrap; }
.settle-versus-title { margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--teal); font-weight: 700; }
.settle-versus {
  display: flex; flex-direction: column; gap: 4px; width: 100%;
  background: rgba(255,253,242,.55); border: 1px solid rgba(168,121,31,.28);
  border-radius: 12px; padding: 9px 10px;
}
.vs-side { display: flex; flex-direction: column; gap: 3px; }
.vs-row { display: flex; align-items: center; gap: 6px; font-size: 11.5px; white-space: nowrap; }
.vs-row > * { flex: 0 0 auto; }
.vs-row .vs-name { color: var(--text); font-weight: 700; min-width: 0; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.vs-row .vs-pow { margin-left: auto; font-weight: 700; }
.vs-side.me .vs-pow { color: var(--gold-bright); }
.vs-side.foe .vs-pow { color: var(--danger-text); }
.vs-label { font-size: 11px; color: var(--text-mute); }
.vs-divider { height: 1px; margin: 3px 0; background: linear-gradient(90deg, transparent, var(--danger), transparent); }
.vs-pos, .vs-star, .vs-lv, .vs-train { color: var(--text-dim); }

/* ============================================================
 * 英雄页（保持原版外观，仅把两行筛选 tab 改成占满整行）
 * ============================================================ */
#view-heroes { padding: 0 0 22px; background: #edf6e6; }
#view-heroes .page-head {
  height: 52px; min-height: 52px; margin-bottom: 0;
  background: linear-gradient(180deg, #3f8b3b, #2f6b2f);
}
#view-heroes .page-title { color: #fff; font-size: 16px; }
#view-heroes .title-gem { color: #ffe28a; font-size: .82em; }
#view-heroes .btn-close { background: rgba(255,255,255,.18); color: #fff; border: none; }

.hero-coach-row { padding: 8px 10px 0; }
.btn-coach {
  width: 100%;
  background: linear-gradient(180deg, #fff5cd, #ffe6a0);
  border: 1px solid #e3c66a; color: #7a5400;
  font-size: 11px; font-weight: 700; border-radius: 9px;
  padding: 8px 6px; text-align: center;
}
.btn-coach:active { transform: scale(.98); }

.deck-title { padding: 10px 11px 5px; font-size: 12px; font-weight: 800; color: #4a5a42; }
.deck-sub { font-size: 10px; color: #8a9a80; font-weight: 500; margin-left: 5px; }
/* 出战阵容：3+2 布局；每张卡三行（名字 / ★星 Lv / 天赋·爆发），头像在左 */
.deck-current { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 0 10px; }
.deck-current5 .deck-slot { grid-column: span 2; }
.deck-current5 .deck-slot:nth-child(4) { grid-column: 2 / span 2; }
.deck-current5 .deck-slot:nth-child(5) { grid-column: 4 / span 2; }
.deck-slot {
  position: relative; background: #fbfff8; border: 2px solid #9ec98c; border-radius: 10px;
  padding: 8px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-width: 0; text-align: center; cursor: pointer;
}
.deck-slot.empty {
  border-style: dashed; border-color: #cddfc2; background: #fff;
  min-height: 112px;
}
.deck-slot .slot-avatar {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #4c7a3a;
  display: flex; align-items: center; justify-content: center; color: #ffe28a;
  font-weight: 900; font-size: 16px; flex: 0 0 auto;
}
.deck-slot .slot-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; align-items: center; }
.deck-slot .slot-line1 { width: 100%; text-align: center; font-size: 12px; font-weight: 800; color: #2f4a28; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-slot .slot-line2 { text-align: center; font-size: 11px; font-weight: 700; color: #b06a00; line-height: 1.2; }
.deck-slot .slot-line3 { width: 100%; text-align: center; font-size: 10px; color: #5a6b52; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-slot .slot-x {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: #e8b0b0; color: #6b2020; font-size: 11px; line-height: 20px; text-align: center;
  border: 1px solid #d89494;
}
.deck-slot .slot-empty { font-size: 22px; color: #c8d8be; }
.deck-info { padding: 6px 11px 7px; font-size: 10px; color: #9aaa90; }

/* ⚠ 牌库两行 tab：等分占满整行（全部 + 6 职业 / 全部 + 10 档位） */
#view-heroes .tabs {
  display: flex; gap: 4px; padding: 4px 10px 0; width: 100%;
  overflow: visible; margin-bottom: 4px;
}
#view-heroes .tabs .btab {
  flex: 1 1 0; min-width: 0; padding: 6px 0; border-radius: 7px;
  background: #e3efdc; color: #6a7a60; font-weight: 700;
  font-size: 10px; white-space: nowrap; border: none;
}
#view-heroes .tabs .btab.active { background: #2f7d32; color: #fff; }
#view-heroes #hero-tier-tabs .btab { font-size: 9.5px; }

.deck-pool-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 11px 5px; font-size: 12px; font-weight: 800; color: #4a5a42;
}
/* 英雄牌库：3 列；每张卡三行（名字 / ★星 Lv / 天赋·爆发），头像在左，不再压字体 */
.deck-pool {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px; padding: 0 9px 20px;
}
.hero-card {
  position: relative; background: #fff; border: 1px solid #dbe8d2; border-radius: 10px;
  padding: 8px 6px; display: flex; flex-direction: column; align-items: center;
  gap: 3px; min-width: 0; text-align: center; cursor: pointer;
}
.hero-card:active { transform: scale(.97); }
.hero-card.locked { background: #f0f0ee; filter: grayscale(1); opacity: .55; }
.hero-card.in-team {
  border: 2px solid #c0392b;
  background: #fff8f6;
  box-shadow: 0 0 0 2px rgba(192,57,43,.22), 0 0 10px rgba(192,57,43,.25);
}
.hero-card .hc-avatar { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #4c7a3a; flex: 0 0 auto; }
.hero-card .hc-fallback {
  width: 48px; height: 48px; border-radius: 8px; display: none;
  align-items: center; justify-content: center; flex: 0 0 auto;
  background: linear-gradient(160deg, #5a9b45, #2f6b2f); color: #ffe28a; font-weight: 900; font-size: 18px;
}
.hero-card .hc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; align-items: center; }
.hero-card .hc-line1 { width: 100%; text-align: center; font-size: 12px; font-weight: 800; color: #2f4a28; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card .hc-line2 { text-align: center; font-size: 11px; font-weight: 700; color: #b06a00; line-height: 1.2; white-space: nowrap; }
.hero-card .hc-line3 { width: 100%; text-align: center; font-size: 10px; color: #5a6b52; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card .hc-tier { position: absolute; left: 3px; top: 3px; }
#view-heroes .chip { height: 16px; min-width: 19px; padding: 0 4px; font-size: 9px; }

/* 档位胶囊与名字颜色（照抄） */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 17px; border-radius: 9px; padding: 0 6px;
  font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap;
  flex: 0 0 auto; vertical-align: middle;
}
.chip-t1  { background: #d8d8d8; color: #3a3a3a; }
.chip-t2  { background: #6b6b6b; color: #f2f2f2; }
.chip-t3  { background: #a8d8b0; color: #1f4a28; }
.chip-t4  { background: #3d7a4a; color: #eaf7ee; }
.chip-t5  { background: #a8cfe8; color: #1a3c55; }
.chip-t6  { background: #2f5f8a; color: #eaf3fb; }
.chip-t7  { background: #7b5aa6; color: #f4eefc; }
.chip-t8  { background: #d4a72c; color: #3a2a00; }
.chip-t9  { background: #a8322a; color: #fdeeed; }
.chip-t10 {
  background: linear-gradient(90deg,#ff4d4f,#ff9800,#ffeb3b,#4caf50,#00bcd4,#3f51b5,#9c27b0);
  background-size: 300% 100%; color: #fff;
  box-shadow: 0 0 6px rgba(255,70,85,.55);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  animation: rainbowShift 2.6s linear infinite;
}
.nt1  { color: #c9c9c9; } .nt2  { color: #9aa0a6; } .nt3  { color: #a8d8b0; }
.nt4  { color: #6fc98a; } .nt5  { color: #a8cfe8; } .nt6  { color: #6aa9e0; }
.nt7  { color: #b48ce0; } .nt8  { color: #ff4655; } .nt9  { color: #ff7a72; }
.nt10 { color: #ffd75e; }

/* ============================================================
 * 排行榜（照抄《金铲铲模拟器》）
 * ============================================================ */
#rank-board { gap: 4px; }
#rank-board .tab { min-width: 0; font-size: 11px; padding: 7px 1px; overflow: hidden; text-overflow: ellipsis; }
.lb-note { width: 100%; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.rank-fate-note { width: 100%; font-size: 12px; color: var(--gold); margin-bottom: 8px; line-height: 1.6; }
.lb-body { width: 100%; max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
/* 排行榜页：列表区撑满剩余高度，底部不留空白 */
#view-rank { min-height: 100vh; }
#view-rank .lb-body {
  flex: 1 1 auto; max-height: none;
  background: rgba(255,253,242,.55);
  border: 1px solid rgba(168,121,31,.24);
  border-radius: 12px;
  padding: 8px;
}
#view-rank .lb-body > .lb-tip { margin: auto 0; }
.lb-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: rgba(255,253,242,.78); border: 1px solid rgba(168,121,31,.24);
  border-radius: 10px; font-size: 13px;
}
.lb-rank { flex: 0 0 30px; text-align: center; font-weight: 800; color: var(--text-mute); }
.lb-rank.top { color: var(--gold-bright); }
.lb-rank.r1 { color: #c98a00; } .lb-rank.r2 { color: #8a9aaa; } .lb-rank.r3 { color: #b5793f; }
.lb-user { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.lb-avatar { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; background: #e6ddc2; }
.lb-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-score { margin-left: auto; color: var(--gold-bright); font-weight: 700; white-space: nowrap; }
.lb-tip { text-align: center; color: var(--text-mute); font-size: 13px; padding: 22px 0; }

/* ============================================================
 * 每日签到（日历，参考《百世修仙模拟器》）
 * ============================================================ */
#view-sign { justify-content: flex-start; }
#view-sign .sign-head,
#view-sign .sign-week,
#view-sign .sign-grid,
#view-sign .sign-btns,
#view-sign .sign-note { width: calc(100% - 28px); }
.sign-head { display: flex; align-items: baseline; margin: 4px 0 10px; }
.sign-ym { font-size: 15px; font-weight: 700; color: var(--gold-bright); }
.sign-stat { margin-left: auto; font-size: 12.5px; color: var(--teal); }
.sign-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 5px; }
.sign-week span { text-align: center; font-size: 11.5px; color: var(--text-mute); }
.sign-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.sg {
  position: relative; aspect-ratio: 1 / 1; border-radius: 9px;
  border: 1px solid rgba(168,121,31,.20);
  background: rgba(255,253,242,.72);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--text-dim);
}
.sg.blank { border: none; background: none; }
.sg.future { opacity: .35; }
.sg.miss { color: var(--danger-text); border-color: rgba(176,48,48,.25); }
.sg.done {
  background: linear-gradient(180deg, rgba(201,151,28,.30), rgba(201,151,28,.12));
  border-color: var(--gold); color: var(--gold-bright); font-weight: 700;
}
.sg.done::after {
  content: ''; position: absolute; right: 3px; bottom: 3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.sg.today {
  border-color: var(--teal);
  box-shadow: 0 0 10px rgba(168,121,31,.45);
  color: var(--text); font-weight: 700;
  animation: sgPulse 1.4s ease-in-out infinite;
}
.sg.today.done { border-color: var(--gold); box-shadow: 0 0 10px rgba(168,121,31,.55); animation: none; }
@keyframes sgPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(168,121,31,.30); }
  50%      { box-shadow: 0 0 16px rgba(168,121,31,.70); }
}
.sign-btns { margin-top: 14px; }
.sign-note { margin-top: 10px; font-size: 11.5px; line-height: 1.7; color: var(--text-mute); text-align: center; }
.sign-note b { color: var(--gold-bright); }
.btn[disabled], .btn.gray { opacity: .55; cursor: default; }

/* ============================================================
 * 设置
 * ============================================================ */
.settings-body { width: 100%; }
.set-card {
  background: rgba(255,253,242,.86); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 11px 13px; margin-bottom: 9px;
}
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; }
.set-label { font-size: 13px; color: var(--text); }
.set-label2 { font-size: 12px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.set-tip { font-size: 10px; color: var(--text-mute); margin-top: 6px; line-height: 1.5; }
.set-switch { position: relative; width: 44px; height: 25px; flex-shrink: 0; }
.set-switch input { display: none; }
.set-switch .track { position: absolute; inset: 0; background: #c8b98a; border-radius: 13px; transition: background .2s; }
.set-switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; background: #fff; border-radius: 50%; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.set-switch input:checked + .track { background: var(--gold); }
.set-switch input:checked + .track::after { left: 22px; }
.btn-sm {
  font-size: 12px; padding: 6px 13px; border-radius: 8px;
  background: linear-gradient(180deg, #f2d472, #c9a227);
  border: 1px solid var(--gold-dim); color: #3d2a00; font-weight: 700;
}
.btn-sm.wide { width: 100%; padding: 9px; margin-top: 7px; }
.btn-sm:active { transform: scale(.96); }
.speed-label { display: flex; align-items: center; font-size: 13px; color: var(--text); }
.speed-label b { margin-left: auto; color: var(--gold-bright); }
.speed-range { width: 100%; margin-top: 8px; accent-color: var(--gold); }
.help-body p { font-size: 12px; line-height: 1.65; color: var(--text-dim); margin-bottom: 3px; }

/* ============================================================
 * 弹层 / 英雄详情 / 通用
 * ============================================================ */
.overlay, .mask {
  position: fixed; inset: 0; background: rgba(40,30,8,.5); z-index: 20;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.overlay-card, .mask-box {
  background: var(--panel); border-radius: 14px; width: 100%; max-width: 420px;
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(168,121,31,.35);
  box-shadow: 0 8px 30px rgba(0,0,0,.35); animation: cardIn .2s ease;
}
/* ⚠ 不做透明度入场：部分 WebView / 无头环境动画时钟停在第一帧会让整层永远 opacity:0 */
@keyframes cardIn { 0% { transform: translateY(20px); } 100% { transform: none; } }
.mask-title { font-size: 16px; font-weight: 800; text-align: center; color: var(--gold-bright); padding: 16px 14px 6px; }
.mask-info { font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.6; padding: 0 14px 10px; }
/* 关注加速弹层 */
.follow-box { max-width: 400px; }
.follow-rows { display: flex; flex-direction: column; gap: 8px; padding: 4px 14px; }
.follow-action { display: flex; align-items: center; font-size: 13px; width: 100%; }
.fb-state { margin-left: auto; font-size: 11.5px; }
.fb-state.done { color: #2f7d32; }
.fb-state.todo { color: var(--text-mute); }
.fb-total { text-align: center; color: var(--gold-bright); }
.mask-box > .btn { margin: 3px 14px; }
.mask-box > .btn:last-child { margin-bottom: 14px; }
/* 回顾征程（照抄《金铲铲模拟器》） */
.review-box { width: 320px; max-width: 88vw; max-height: 80vh; overflow: hidden; }
.review-log {
  flex: 1; min-height: 180px; max-height: 55vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 5px;
  background: rgba(255,253,242,.70); border: 1px solid rgba(168,121,31,.26);
  border-radius: 10px; padding: 10px;
  margin: 0 14px 10px;
}
.review-log .log-item { font-size: 12.5px; }
.levelup-card { padding: 22px 18px; align-items: center; text-align: center; }
.lvup-title { font-size: 20px; font-weight: 900; color: var(--gold-dim); margin-bottom: 6px; }
.lvup-info { font-size: 15px; color: var(--text-dim); margin-bottom: 12px; }
.lvup-unlock-label { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.lvup-seeds { margin-bottom: 16px; width: 100%; max-height: 40vh; overflow-y: auto; }
.lvup-seed { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px; font-size: 14px; font-weight: 700; background: var(--panel-2); border-radius: 8px; margin-bottom: 5px; }
.lvup-avatar { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; background: #4c7a3a; }
.lvup-seed .s-type { font-size: 9px; padding: 1px 6px; border-radius: 6px; color: #fff; }
.lvup-seed .s-type.gold { background: #d98f00; }
.lvup-seed .s-type.exp { background: #3a8fd4; }
.confirm-card { padding: 20px; align-items: center; text-align: center; }
.confirm-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.confirm-text { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.confirm-btns { display: flex; gap: 10px; width: 100%; }
.confirm-btns .btn { flex: 1; }

/* 英雄详情 */
.hero-detail-box { position: relative; padding: 16px; max-width: 380px; overflow-y: auto; }
.decision-x {
  position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel-3); color: var(--text-dim); font-size: 12px; z-index: 2;
  border: 1px solid var(--line-soft);
}
.hero-detail-head { display: flex; gap: 12px; align-items: center; padding-right: 24px; }
.hero-detail-avatar { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; background: #4c7a3a; flex-shrink: 0; border: 2px solid #e6ddc2; }
.hero-detail-fb { display: none; align-items: center; justify-content: center; color: #ffe28a; font-weight: 900; font-size: 24px; background: linear-gradient(160deg, #5a9b45, #2f6b2f); }
.hero-detail-info { min-width: 0; }
.hero-detail-name { font-size: 18px; font-weight: 900; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-detail-tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.hero-detail-star { font-size: 12px; color: var(--gold-dim); font-weight: 800; margin-top: 3px; }
.hero-detail-stats { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hd-stat { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px 8px; }
.hd-stat span { display: block; font-size: 9px; color: var(--text-mute); }
.hd-stat b { font-size: 14px; color: var(--gold-bright); }
.hero-detail-btns { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.hero-detail-btns .btn { flex: none; padding: 10px; font-size: 12px; }
.hero-detail-btns .btn.ghost { background: var(--panel-3); color: var(--text-dim); }
.hero-detail-note { font-size: 10px; color: var(--text-mute); line-height: 1.5; margin-top: 8px; text-align: center; }

/* 匹配中 */
.match-mask {
  position: fixed; inset: 0; z-index: 30; background: rgba(40,30,8,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff8dd;
}
.match-spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid rgba(255,226,138,.25); border-top-color: #ffe28a;
  animation: spin .9s linear infinite; margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.match-text { font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.match-sub { font-size: 11px; color: #d8c48a; margin-top: 8px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%);
  background: rgba(60,44,10,.92); color: #fff8dd; font-size: 13px;
  padding: 9px 18px; border-radius: 20px; z-index: 40;
  max-width: 82vw; text-align: center; animation: toastIn .2s ease;
}
@keyframes toastIn { 0% { opacity: 0; transform: translateX(-50%) translateY(8px); } 100% { opacity: 1; transform: none; } }

/* 桌面端（#app 固定 480 宽，仅放大农场格子） */
@media (min-width: 640px) {
  .plot .crop-avatar { max-width: 60px; }
}
