:root {
  --card-bg: rgba(255, 252, 245, 0.78);
  --card-fg: #4a3b2c;
  --accent: #e0805a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #cfe8ff; }
body { font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--card-fg); }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.card {
  position: fixed;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.15);
  padding: 10px 16px;
}
#hud-time { top: max(16px, env(safe-area-inset-top)); left: 16px; min-width: 120px; }
#clock { font-size: 28px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
#period { font-size: 14px; margin-top: 2px; color: var(--accent); font-weight: 600; }
#date { font-size: 12px; opacity: 0.7; margin-top: 2px; }

#hud-debug {
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  width: min(92vw, 480px);
}
#hud-debug label { font-size: 12px; white-space: nowrap; opacity: 0.8; }
#slider { flex: 1; accent-color: var(--accent); min-width: 0; }
#live {
  border: 0; background: var(--accent); color: #fff; font-weight: 600; font-size: 12px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
#live.active { background: #8bb86a; }
#hint {
  position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px;
  font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); opacity: .85; text-align: right;
  max-width: 40vw;
}

.hidden { display: none !important; }
button.ghost { background: rgba(120, 90, 60, 0.12); color: var(--card-fg); }
#summon { padding: 6px 10px; }

#hud-family { top: calc(max(16px, env(safe-area-inset-top)) + 112px); left: 16px; max-width: 220px; font-size: 13px; line-height: 1.6; }
#hud-family b { font-size: 12px; opacity: .7; display: block; margin-bottom: 2px; }
#hud-family .heal { font-size: 11px; opacity: .65; }

#toast {
  top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  font-size: 14px; font-weight: 600; text-align: center; max-width: 80vw; z-index: 5;
}

#dialog {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(88vw, 360px); padding: 20px 22px; z-index: 10;
  background: rgba(255, 252, 245, 0.95);
}
.dlg-head { display: flex; align-items: center; gap: 14px; }
#dlg-photo {
  width: 96px; height: 96px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff4e2 0%, #ffd9b5 70%, #f2b98d 100%);
  box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(120, 70, 30, .25);
}

#dlg-kicker { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
#dlg-title { font-size: 26px; font-weight: 800; margin: 2px 0 0; }
#dialog p { margin: 6px 0; font-size: 14px; line-height: 1.6; }
#dlg-injury { color: #b5533c; }
#dialog .btns { display: flex; gap: 10px; margin-top: 14px; }
#dialog .btns button {
  flex: 1; border: 0; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff;
}
#dialog .btns button.ghost { background: rgba(120, 90, 60, 0.12); color: var(--card-fg); }

#sound {
  left: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  width: 46px; height: 46px; padding: 0; border: 0; cursor: pointer;
  font-size: 20px; display: grid; place-items: center; z-index: 4;
}
#sound.waiting { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(224, 128, 90, 0.25); } }
@media (max-width: 640px) { #sound { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px); } }

/* ---------- 种菜 ---------- */
#hud-farm { top: 52px; right: 16px; min-width: 150px; max-width: 200px; text-align: right; z-index: 3; }
#coins { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
#inv { font-size: 13px; margin: 4px 0 8px; line-height: 1.6; opacity: .85; }
#sell {
  width: 100%; border: 0; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700;
  background: var(--accent); color: #fff; cursor: pointer;
}
#sell:disabled { background: rgba(120, 90, 60, 0.15); color: rgba(74, 59, 44, .45); cursor: default; }

#picker { z-index: 8; width: 250px; padding: 12px; transform: translate(-50%, -100%); margin-top: -14px; }
#picker::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px;
  background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px;
}
.pk-title { font-weight: 800; font-size: 15px; margin: 2px 4px 8px; }
#pk-list { display: grid; gap: 6px; }
#pk-list button {
  display: grid; grid-template-columns: 34px 1fr; align-items: center; text-align: left; gap: 2px 8px;
  border: 0; border-radius: 12px; padding: 8px 10px; background: rgba(139, 184, 106, .18); color: var(--card-fg); cursor: pointer;
}
#pk-list button:hover:not(:disabled) { background: rgba(139, 184, 106, .35); }
#pk-list button:disabled { opacity: .45; cursor: default; }
#pk-list .e { grid-row: 1 / 3; font-size: 26px; text-align: center; }
#pk-list .n { font-weight: 700; font-size: 14px; }
#pk-list .m { font-size: 11px; opacity: .75; }
#pk-cancel { margin-top: 8px; width: 100%; border: 0; border-radius: 999px; padding: 6px; font-size: 12px; cursor: pointer; }

.float {
  position: fixed; z-index: 9; pointer-events: none; font-weight: 800; font-size: 18px; color: #b8611f;
  text-shadow: 0 0 4px #fff, 0 0 8px #fff; transform: translate(-50%, -50%);
  animation: floatUp 1.6s ease-out forwards;
}
@keyframes floatUp { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -60px; } }
@media (max-width: 640px) { #hud-farm { top: 44px; max-width: 150px; } #hint { display: none; } }

#buy-hen {
  width: 100%; margin-top: 6px; border: 0; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; background: rgba(120, 90, 60, 0.12); color: var(--card-fg);
}
#buy-hen:disabled { opacity: .45; cursor: default; }

/* ---------- 登录 / 账号 ---------- */
/* 登录前：只显示登录界面，游戏界面和画布全部隐藏 */
body:not(.in-game) #scene, body:not(.in-game) .card:not(.auth-card) { display: none !important; }
#auth { display: none; position: fixed; inset: 0; z-index: 100; place-items: center; padding: 16px;
  background: linear-gradient(180deg, #bfe3ff 0%, #e6f4d3 62%, #b9dc9a 100%); }
body.need-login #auth { display: grid; }
body.in-game #auth { display: none; }
.auth-card { position: static; width: min(92vw, 380px); padding: 26px 24px 22px; text-align: center; background: rgba(255, 252, 245, 0.92); }
.auth-card h1 { margin: 4px 0 2px; font-size: 24px; }
.auth-logo { font-size: 44px; line-height: 1; }
.auth-sub { margin: 0 0 14px; font-size: 13px; opacity: .7; }
.auth-card .tabs { display: flex; gap: 6px; background: rgba(120, 90, 60, .1); padding: 4px; border-radius: 999px; margin-bottom: 14px; }
.auth-card .tabs button { flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--card-fg); cursor: pointer; }
.auth-card .tabs button.on { background: #fff; box-shadow: 0 1px 4px rgba(60, 40, 20, .18); }
#auth-form { display: grid; gap: 10px; }
#auth-form input { width: 100%; padding: 11px 14px; font-size: 15px; border: 2px solid rgba(120, 90, 60, .18); border-radius: 12px; background: #fff; color: var(--card-fg); outline: none; }
#auth-form input:focus { border-color: var(--accent); }
#auth-submit { border: 0; border-radius: 12px; padding: 12px; font-size: 15px; font-weight: 800; background: var(--accent); color: #fff; cursor: pointer; }
#auth-submit:disabled { opacity: .6; cursor: default; }
.auth-error { min-height: 18px; font-size: 13px; color: #b5533c; text-align: left; }

#account { top: max(10px, env(safe-area-inset-top)); right: 16px; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; font-size: 13px; z-index: 4; }
#acc-name { font-weight: 700; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#acc-sync { font-size: 15px; }
#acc-out { border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
/* 操作提示挪到右下角，给账号条让位 */
#hint { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; text-align: right; }
#hud-farm { top: 56px; }
@media (max-width: 640px) { #hud-farm { top: 52px; } }

/* ---------- 商店 / 摆放 ---------- */
#open-shop {
  width: 100%; margin-top: 6px; border: 0; border-radius: 999px; padding: 8px 10px; font-size: 13px; font-weight: 800;
  cursor: pointer; background: #8bb86a; color: #fff;
}
#shop { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(94vw, 440px); max-height: min(82vh, 640px);
  display: flex; flex-direction: column; padding: 14px 14px 12px; z-index: 20; background: rgba(255, 252, 245, 0.97); }
.shop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.shop-title { font-size: 17px; font-weight: 800; flex: 1; }
.shop-coins { font-weight: 800; font-variant-numeric: tabular-nums; }
.shop-close { border: 0; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 14px; }
.shop-tabs { display: flex; gap: 6px; background: rgba(120, 90, 60, .1); padding: 4px; border-radius: 999px; margin-bottom: 10px; }
.shop-tabs button { flex: 1; border: 0; background: transparent; padding: 7px 4px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--card-fg); cursor: pointer; }
.shop-tabs button.on { background: #fff; box-shadow: 0 1px 4px rgba(60, 40, 20, .18); }
.shop-list { overflow-y: auto; display: grid; gap: 8px; padding-right: 2px; flex: 1; min-height: 0; }
.shop-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: rgba(139, 184, 106, .13); }
.shop-emoji { font-size: 28px; width: 38px; text-align: center; flex: none; }
.shop-mid { flex: 1; min-width: 0; }
.shop-name { font-weight: 800; font-size: 14px; }
.shop-desc { font-size: 12px; opacity: .75; }
.shop-note { font-size: 12px; color: #4f8a3a; font-weight: 700; }
.shop-owned { font-size: 11px; opacity: .6; margin-top: 2px; }
.shop-right { display: grid; gap: 5px; justify-items: end; flex: none; }
.shop-buy { border: 0; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 800; background: var(--accent); color: #fff; cursor: pointer; min-width: 76px; }
.shop-buy:disabled { background: rgba(120, 90, 60, .15); color: rgba(74, 59, 44, .5); cursor: default; }
.shop-place { border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.shop-done { font-size: 12px; font-weight: 800; color: #4f8a3a; padding: 6px 8px; }
.shop-foot { font-size: 12px; opacity: .7; line-height: 1.5; margin-top: 10px; }

#placing { top: 64px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; z-index: 12; white-space: nowrap; }
.pl-text { font-weight: 800; font-size: 14px; }
#placing button { border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; background: #8bb86a; color: #fff; }
#placing button.ghost { background: rgba(120, 90, 60, 0.12); color: var(--card-fg); }

#decor-menu { z-index: 12; transform: translate(-50%, -100%); margin-top: -10px; padding: 8px 10px; text-align: center; }
.dm-name { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.dm-row { display: flex; gap: 6px; }
.dm-row button { border: 0; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) { #placing { top: 96px; max-width: 96vw; } }

/* ---------- 左侧信息栏：时间 / 小院家人 / 接下来 ---------- */
#hud-left { position: fixed; top: max(16px, env(safe-area-inset-top)); left: 16px; width: 220px; display: flex; flex-direction: column; gap: 10px; z-index: 3; pointer-events: none; }
#hud-left .card { position: static; pointer-events: auto; }
#hud-time { min-width: 0; }
#hud-family { max-width: none; }
body:not(.in-game) #hud-left { display: none; }

.fam-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; cursor: pointer; padding: 2px 0; border-radius: 8px; }
.fam-row:hover { background: rgba(139, 184, 106, .18); }
.fam-row .lv { font-size: 11px; color: #d4537a; font-weight: 700; white-space: nowrap; }
.fam-hint { font-size: 11px; opacity: .55; margin-top: 4px; }

#hud-next { padding: 10px 12px; font-size: 13px; }
#hud-next .nx-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 13px; cursor: pointer; user-select: none; }
#hud-next .nx-head span:last-child { font-size: 11px; opacity: .55; font-weight: 600; }
#hud-next .nx-sec { font-size: 11px; opacity: .6; margin: 8px 0 3px; font-weight: 700; }
#hud-next .nx-row { display: flex; align-items: center; gap: 6px; padding: 3px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer; line-height: 1.35; }
#hud-next .nx-row:hover { background: rgba(139, 184, 106, .2); }
#hud-next .nx-row .e { width: 20px; text-align: center; flex: none; }
#hud-next .nx-row .t { flex: 1; min-width: 0; }
#hud-next .nx-row .d { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .75; white-space: nowrap; }
#hud-next .nx-now .t { font-weight: 700; color: #3f7a2e; }
#hud-next .nx-empty { font-size: 12px; opacity: .6; padding: 4px 0; }
#hud-next.collapsed .nx-body { display: none; }
@media (max-width: 700px) { #hud-left { width: 190px; } }

/* ---------- 猫咪卡片 ---------- */
#cat-card { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(92vw, 380px); max-height: min(84vh, 620px); overflow-y: auto; padding: 18px 18px 14px; z-index: 18; background: rgba(255, 252, 245, 0.97); }
.cc-head { display: flex; align-items: center; gap: 14px; }
.cc-photo { width: 84px; height: 84px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(120, 70, 30, .25);
  background: radial-gradient(circle at 50% 35%, #fff4e2 0%, #ffd9b5 70%, #f2b98d 100%); object-fit: cover; }
.cc-name { font-size: 22px; font-weight: 800; }
.cc-hearts { font-size: 18px; letter-spacing: 2px; color: #e0527a; margin-top: 2px; }
.cc-sub { font-size: 12px; opacity: .7; }
.cc-bar { height: 8px; border-radius: 999px; background: rgba(120, 90, 60, .12); overflow: hidden; margin: 10px 0 4px; }
.cc-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #f29bb3, #e0527a); border-radius: 999px; }
.cc-stat { display: flex; justify-content: space-between; font-size: 12px; opacity: .8; }
.cc-sec { font-weight: 800; font-size: 13px; margin: 14px 0 6px; }
.cc-story { font-size: 13px; line-height: 1.6; padding: 8px 10px; border-radius: 12px; background: rgba(139, 184, 106, .14); margin-bottom: 6px; }
.cc-story.locked { background: rgba(120, 90, 60, .08); opacity: .65; }
.cc-close { margin-top: 10px; width: 100%; border: 0; border-radius: 999px; padding: 9px; font-size: 14px; font-weight: 700; cursor: pointer; }

#toast { white-space: pre-line; }

/* ---------- 天气 ---------- */
#weather { font-size: 13px; margin-top: 2px; font-weight: 600; }
/* 彩虹：盖在画面上方的柔和色带；opacity 由天气系统控制 */
#rainbow {
  position: fixed; left: 50%; top: -4vh; transform: translateX(-50%); width: min(135vw, 1500px); height: 62vh;
  pointer-events: none; opacity: 0; z-index: 1; transition: opacity 3s ease;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, transparent 60%,
    rgba(255, 82, 82, .55) 61%, rgba(255, 159, 67, .55) 64%, rgba(255, 224, 70, .55) 67%, rgba(96, 214, 110, .55) 70%,
    rgba(72, 160, 255, .55) 73%, rgba(160, 100, 255, .55) 76%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%); mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
}

/* 竖屏（手机）：彩虹缩小、抬高、变淡，只在天边露出一道弧，不遮挡院子 */
@media (orientation: portrait) {
  #rainbow { top: 13vh; width: 150vw; height: 32vh; filter: opacity(.88); }
}

/* ---------- 一键收获 ---------- */
#harvest-all {
  width: 100%; margin-bottom: 6px; border: 0; border-radius: 999px; padding: 8px 10px; font-size: 13px; font-weight: 800;
  background: #5fae45; color: #fff; cursor: pointer; transition: transform .15s;
}
#harvest-all:not(:disabled):hover { transform: scale(1.03); }
#harvest-all:disabled { background: rgba(120, 90, 60, .15); color: rgba(74, 59, 44, .5); cursor: default; }
.fly-item { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; font-size: 28px; line-height: 1; will-change: transform;
  filter: drop-shadow(0 3px 4px rgba(60, 40, 20, .35)); }
.fly-item i { position: absolute; left: 100%; top: -4px; font-style: normal; font-size: 13px; font-weight: 800; color: #5b8a3a; background: #fff; border-radius: 999px; padding: 1px 6px; }

/* ---------- 欢迎回来 ---------- */
#welcome { top: 50%; left: 50%; width: min(92vw, 380px); padding: 20px 20px 16px; z-index: 22; background: rgba(255, 252, 245, 0.97);
  transform: translate(-50%, -46%); opacity: 0; transition: opacity .35s ease, transform .35s ease; }
#welcome.show { opacity: 1; transform: translate(-50%, -50%); }
.wb-title { font-size: 20px; font-weight: 800; }
.wb-sub { font-size: 12px; opacity: .65; margin: 2px 0 10px; }
.wb-facts { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(139, 184, 106, .16); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.wb-flavor p { margin: 6px 2px; font-size: 13px; line-height: 1.6; }
.wb-btns { display: flex; gap: 8px; margin-top: 12px; }
.wb-btns button { flex: 1; border: 0; border-radius: 999px; padding: 10px 12px; font-size: 14px; font-weight: 800; cursor: pointer; background: var(--accent); color: #fff; }
.wb-btns .wb-go { background: #5fae45; }
.wb-btns button.ghost { background: rgba(120, 90, 60, 0.12); color: var(--card-fg); }

.cc-helper { font-size: 12px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(120, 90, 60, .08); }
.cc-helper.active { background: rgba(95, 174, 69, .16); color: #3f7a2e; font-weight: 700; }

/* ---------- 面板默认收起（点一下展开，状态会记住） ---------- */
#hud-left { width: auto; max-width: 220px; align-items: flex-start; }
#hud-left .card { max-width: 220px; }
#hud-time { cursor: pointer; }
#hud-time.collapsed { padding: 6px 12px; display: flex; align-items: baseline; gap: 8px; }
#hud-time.collapsed #period, #hud-time.collapsed #date { display: none; }
#hud-time.collapsed #clock { font-size: 18px; }
#hud-time.collapsed #weather { margin: 0; font-size: 12px; }

.fam-head { cursor: pointer; user-select: none; }
#hud-family.collapsed { padding: 6px 12px; }
#hud-family.collapsed b { margin-bottom: 0; }

/* 右侧金币栏：收起时只剩金币 + 三个小图标按钮 */
#hud-farm #coins { cursor: pointer; user-select: none; }
#hud-farm #coins::after { content: ' ▾'; font-size: 11px; opacity: .5; font-weight: 600; }
#hud-farm.compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-width: 0; max-width: none; padding: 8px 10px; }
#hud-farm.compact #coins { grid-column: 1 / -1; font-size: 18px; text-align: right; }
#hud-farm.compact #coins::after { content: ' ▸'; }
#hud-farm.compact #inv, #hud-farm.compact #buy-hen { display: none; }
#hud-farm.compact button { margin: 0; padding: 6px 0; font-size: 0; position: relative; width: auto; min-width: 38px; }
#hud-farm.compact button .ic { font-size: 17px; line-height: 1.2; }
#hud-farm.compact button .tx { display: none; }
#hud-farm.compact #harvest-all[data-n]:not([data-n=""])::after {
  content: attr(data-n); position: absolute; top: -6px; right: -4px; background: #e0805a; color: #fff;
  font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 5px; line-height: 1.3;
}

/* 底部的时间预览条：收起时只剩一个小按钮 */
#dbg-toggle { border: 0; background: rgba(120, 90, 60, .12); border-radius: 50%; width: 28px; height: 28px; flex: none; cursor: pointer; font-size: 14px; padding: 0; }
#hud-debug.collapsed { width: auto; padding: 4px; border-radius: 999px; gap: 0; }
#hud-debug.collapsed > :not(#dbg-toggle) { display: none; }

#hint { transition: opacity 1.5s ease; }
#hint.fade { opacity: 0; }

#hud-next .nx-head { gap: 10px; }

.auth-note { margin: 12px 0 0; font-size: 11px; line-height: 1.5; opacity: .6; }

/* ---------- 语言切换 ---------- */
.auth-card { position: relative; }
.lang-switch { position: absolute; top: 12px; right: 12px; display: flex; gap: 2px; background: rgba(120, 90, 60, .1); border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; background: transparent; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: var(--card-fg); cursor: pointer; }
.lang-switch button.on { background: #fff; box-shadow: 0 1px 3px rgba(60, 40, 20, .2); }
#acc-lang { border: 0; border-radius: 999px; padding: 2px 6px; font-size: 13px; cursor: pointer; }

#hud-farm button .tx { margin-left: .3em; }

/* ---------- 游客模式 ---------- */
#auth-guest { display: block; width: 100%; margin-top: 10px; border: 0; background: transparent; color: var(--card-fg); opacity: .75;
  font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
#auth-guest:hover { opacity: 1; }

/* ---- 线上版：隐藏开发调试工具 ---- */
#hud-debug { display: none !important; }
