/* ============================================================
 * style.css — 天才农场 H5 重制版
 * 目标：还原卡通木牌风格，竖屏优先，兼容桌面
 * ============================================================ */

:root {
  --wood-dark: #6b3f1d;
  --wood: #a8682f;
  --wood-light: #d99a4e;
  --gold: #f5c542;
  --green: #5cb531;
  --green-dark: #3d8a1e;
  --blue: #38a8e8;
  --danger: #e0483a;
  --cream: #fff6e0;
  --panel-bg: #fff3d6;
}

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

html, body {
  height: 100%;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #2b1c0e;
  color: #4a2f16;
  overflow: hidden;
  user-select: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #8fd6f5 0%, #bfe9a8 42%, #7cc45a 100%);
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}

.hidden { display: none !important; }

.screen { position: absolute; inset: 0; overflow: hidden; }

/* ---------------- 登录页 ---------------- */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #6fbc50 url('../assets/img/createrole_bg.jpg') center center / cover no-repeat;
}
.login-screen::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(20, 45, 15, .35);  /* 压暗背景，让表单更清晰 */
  pointer-events: none;
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 26px 24px 22px;
  background: linear-gradient(180deg, #a8692f, #7c471d);
  border: 5px solid #5e3212;
  border-radius: 22px;
  box-shadow: 0 12px 0 #4a270e, 0 18px 30px rgba(0,0,0,.4), inset 0 0 0 3px rgba(255,220,150,.25);
}
.login-card::before {
  content: '🌿 🍃 🌿';
  position: absolute; top: -18px; left: 0; right: 0;
  text-align: center; font-size: 20px; letter-spacing: 40px; opacity: .85;
}
/* 复用原版木牌纹理作为卡片底纹（低透明度，不干扰表单） */
.login-card::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: 16px;
  background: url('../assets/img/login_bg.png') center center / cover no-repeat;
  opacity: .12;
}
.game-logo { text-align: center; margin-bottom: 20px; position: relative; z-index: 1; }
.logo-crown { font-size: 48px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.game-logo h1 {
  font-size: 46px; line-height: 1.1; letter-spacing: 3px;
  color: #ffe45e; -webkit-text-stroke: 2px #6b3a12;
  text-shadow: 0 4px 0 #b45f16, 0 6px 6px rgba(0,0,0,.5);
  font-weight: 900;
}
.logo-sub { color: #ffe9b0; font-size: 12px; letter-spacing: 2px; margin-top: 4px; opacity: .85; }
.logo-deco { font-size: 22px; margin-top: 6px; letter-spacing: 6px; }

.login-tabs { display: flex; gap: 6px; margin: 4px 0 10px; }
.login-tab {
  flex: 1; text-align: center; padding: 8px; cursor: pointer; font-size: 13px; font-weight: bold;
  color: #ffe9b8; background: rgba(0,0,0,.2); border: 2px solid transparent; border-radius: 10px;
}
.login-tab.active { background: #f0d49a; color: #6b3a17; border-color: #ffe45e; }
.code-btn {
  flex-shrink: 0; font-size: 11px; font-weight: bold; color: #6b3a17; cursor: pointer;
  background: linear-gradient(180deg, #ffd95e, #e8a51c); border: 2px solid #b5760a;
  border-radius: 8px; padding: 5px 8px;
}
.code-btn:disabled { opacity: .55; cursor: not-allowed; }
.login-error { color: #ffb4a8; font-size: 12px; min-height: 18px; margin-top: 6px; text-align: center; }

.field-label { display: block; color: #ffe9b8; font-size: 15px; font-weight: bold; margin: 14px 0 6px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
#loginForm { position: relative; z-index: 1; }
.input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #fff6df; border: 3px solid #5e3212; border-radius: 12px;
  padding: 0 12px; height: 46px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.15);
}
.input-icon { font-size: 18px; }
.input-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; color: #4a2f16; font-weight: bold;
}
.avatar-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; justify-content: center; }
.avatar-option {
  width: 44px; height: 44px; font-size: 24px;
  background: #f6dfa8; border: 3px solid #5e3212; border-radius: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .12s, box-shadow .12s;
}
.avatar-option.selected { border-color: #ffe45e; box-shadow: 0 0 0 3px #ffe45e, 0 3px 8px rgba(0,0,0,.4); transform: scale(1.08); }
.avatar-option:active { transform: scale(.94); }

.btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: bold;
  border-radius: 12px; padding: 12px 18px; font-size: 16px;
  color: #fff; transition: transform .1s, filter .1s;
  box-shadow: 0 4px 0 rgba(0,0,0,.3);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #7ed957, #4ba525); border: 2px solid #2f7015; box-shadow: 0 5px 0 #2f7015; }
.btn-gold { background: linear-gradient(180deg, #ffd95e, #e8a51c); color: #5e3212; border: 2px solid #b5760a; box-shadow: 0 5px 0 #b5760a; }
.btn-blue { background: linear-gradient(180deg, #6fd0f7, #2e9ad6); border: 2px solid #1c6e9e; box-shadow: 0 5px 0 #1c6e9e; }
.btn-danger { background: linear-gradient(180deg, #ff8a7d, #d93d2f); border: 2px solid #a3291d; box-shadow: 0 5px 0 #a3291d; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.btn-block { width: 100%; margin-top: 20px; padding: 14px; font-size: 19px; }
.login-tip { text-align: center; color: #f0d49a; font-size: 11px; margin-top: 14px; opacity: .8; }

/* ---------------- 游戏主界面 ---------------- */
.game-screen { display: flex; flex-direction: column; }

.topbar {
  background: linear-gradient(180deg, #8a5224, #6b3a17);
  border-bottom: 4px solid #4a2710;
  padding: 8px 10px 6px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  z-index: 5;
}
.topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.player-badge { display: flex; align-items: center; gap: 5px; position: relative; }
.avatar {
  width: 44px; height: 44px; border-radius: 10px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #ffe9a8, #e8be6a);
  border: 3px solid #4a2710; box-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.player-meta { display: flex; flex-direction: column; gap: 2px; }
.vip { font-size: 10px; color: #ffe45e; font-weight: bold; background: rgba(0,0,0,.25); padding: 1px 5px; border-radius: 6px; }
.lv { font-size: 12px; color: #fff3d6; font-weight: bold; }
.exp-wrap { width: 92px; }
.exp-label { font-size: 9px; color: #ffe9b8; margin-bottom: 2px; white-space: nowrap; }
.exp-bar { height: 10px; background: #3d210d; border: 2px solid #4a2710; border-radius: 6px; overflow: hidden; }
.exp-fill { height: 100%; width: 0%; background: linear-gradient(180deg, #6ee7ff, #2e9ad6); transition: width .4s; }

.resources { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-left: auto; justify-content: flex-end; }
.res {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: bold; color: #fff6df;
  background: rgba(0,0,0,.22); padding: 2px 6px; border-radius: 8px;
  white-space: nowrap;
}
.res-icon { font-size: 14px; }

.sound-btn {
  flex-shrink: 0; width: 30px; height: 30px; margin-left: 2px;
  background: rgba(0,0,0,.25); border: 2px solid #8a5224; border-radius: 8px;
  font-size: 15px; cursor: pointer; line-height: 1;
}
.sound-btn:active { transform: scale(.9); }

/* 功能按钮区 */
.quick-actions {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  padding: 8px 8px 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.15), transparent);
}
.qa-btn {
  position: relative;
  min-width: 62px; padding: 7px 6px 5px;
  background: linear-gradient(180deg, #fff6dc, #f0d49a);
  border: 2px solid #8a5224; border-radius: 12px;
  box-shadow: 0 3px 0 #6b3a17;
  cursor: pointer; text-align: center;
  transition: transform .1s;
}
.qa-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #6b3a17; }
.qa-btn .qa-icon { display: block; font-size: 22px; line-height: 1; }
.qa-btn .qa-label { display: block; font-size: 10px; color: #5e3212; font-weight: bold; margin-top: 3px; }
.qa-btn .qa-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--danger); color: #fff; font-size: 9px; font-weight: bold;
  border-radius: 9px; padding: 1px 5px; border: 2px solid #fff3d6;
}

/* 农场场景 */
.farm-scene {
  flex: 1 1 0; min-height: 0; position: relative; overflow-y: auto; overflow-x: hidden;
  padding: 10px 12px 16px;
  background:
    linear-gradient(180deg, rgba(169,228,247,.55) 0%, rgba(205,238,180,.45) 30%, rgba(134,201,95,.55) 100%),
    url('../assets/img/createrole_bg.jpg') center center / cover no-repeat;
}
.farm-scene::-webkit-scrollbar { width: 0; }
.sky-deco { position: absolute; top: 20px; left: 0; right: 0; font-size: 22px; opacity: .55; pointer-events: none; }
.farm-title {
  text-align: center; font-size: 18px; font-weight: 900; color: #fff6df;
  text-shadow: 0 2px 0 #4a7a26, 0 3px 5px rgba(0,0,0,.35);
  margin: 2px 0 12px;
}
.farm-decoration {
  display: none; text-align: center; margin: -4px 0 8px;
  animation: decoIn .3s ease-out;
}
@keyframes decoIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.deco-icon { font-size: 28px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.deco-name { font-size: 10px; color: #3d5c1e; font-weight: bold; }
.land-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 430px; margin: 0 auto;
}
.land {
  position: relative; aspect-ratio: 1 / 0.86;
  border-radius: 14px; cursor: pointer;
  border: 4px solid #5e3212;
  box-shadow: 0 5px 0 #4a2710, inset 0 0 0 3px rgba(255,255,255,.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; transition: transform .12s, box-shadow .12s;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 8px, transparent 8px 16px);
}
.land:active { transform: translateY(3px); box-shadow: 0 2px 0 #4a2710; }
.land-soil { position: absolute; inset: 0; opacity: .35; }
.land-crop { font-size: 40px; line-height: 1; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); z-index: 1; transition: transform .2s; }
.land.ripe .land-crop { animation: ripePulse 1s ease-in-out infinite alternate; }
@keyframes ripePulse { from { transform: scale(1); } to { transform: scale(1.14) rotate(-4deg); } }
.land-seedling { font-size: 34px; opacity: .9; }
.land-status {
  position: absolute; bottom: 3px; left: 4px; right: 4px;
  font-size: 9px; font-weight: bold; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.8); text-align: center; z-index: 2;
}
.land-badges { position: absolute; top: 3px; right: 4px; display: flex; gap: 2px; font-size: 13px; z-index: 2; }
.land-progress {
  position: absolute; bottom: 0; left: 0; height: 5px;
  background: linear-gradient(90deg, #7ee36a, #4ba525); z-index: 3; transition: width .3s;
}
.land-lvtag {
  position: absolute; top: 3px; left: 4px; font-size: 9px; z-index: 2;
  background: rgba(0,0,0,.35); color: #ffe9b8; padding: 0 4px; border-radius: 5px;
}
.land.empty::after {
  content: '＋'; position: absolute; font-size: 34px; color: rgba(255,255,255,.5); font-weight: 300;
}
.farm-hint {
  text-align: center; font-size: 11px; color: #3d5c1e; margin-top: 12px;
  background: rgba(255,255,255,.55); display: inline-block; padding: 4px 12px;
  border-radius: 10px; position: relative; left: 50%; transform: translateX(-50%);
}

/* 底部菜单 */
.bottom-nav {
  display: flex; justify-content: space-around; align-items: center;
  background: linear-gradient(180deg, #8a5224, #5e3212);
  border-top: 4px solid #4a2710;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 5; flex-wrap: wrap; gap: 2px 0;
}
.nav-btn {
  flex: 1 1 16%; min-width: 48px; text-align: center; cursor: pointer;
  padding: 3px 1px; border-radius: 10px; transition: background .15s;
}
.nav-btn:active { background: rgba(255,255,255,.15); }
.nav-btn .nav-icon { font-size: 21px; line-height: 1; }
.nav-btn .nav-label { font-size: 9px; color: #ffe9b8; font-weight: bold; display: block; margin-top: 2px; }

/* ---------------- 弹窗 ---------------- */
.modal-overlay {
  position: absolute; inset: 0; z-index: 50;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(2px);
}
.modal-panel {
  width: 100%; max-width: 400px; max-height: 86vh;
  display: flex; flex-direction: column;
  background: var(--panel-bg);
  border: 5px solid #6b3a17; border-radius: 20px;
  box-shadow: 0 12px 0 #4a2710, 0 20px 40px rgba(0,0,0,.5), inset 0 0 0 3px rgba(255,255,255,.5);
  animation: modalIn .22s ease-out;
}
@keyframes modalIn { from { transform: scale(.85) translateY(20px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: 12px 40px; flex-shrink: 0;
  background: linear-gradient(180deg, #ffd95e, #e8a51c);
  border-bottom: 4px solid #b5760a; border-radius: 14px 14px 0 0;
}
.modal-header h2 { font-size: 20px; color: #6b3a17; font-weight: 900; text-shadow: 0 1px 0 #fff2c0; }
.modal-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 3px solid #8a5224; border-radius: 50%;
  background: #fff3d6; color: #6b3a17; font-size: 15px; font-weight: bold; cursor: pointer;
}
.modal-body { padding: 14px; overflow-y: auto; flex: 1; }
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-thumb { background: #c89a5a; border-radius: 4px; }

/* 弹窗通用卡片 */
.info-card {
  background: #fffaf0; border: 2px solid #d9b26e; border-radius: 12px;
  padding: 10px; margin-bottom: 10px;
}
.section-title { font-size: 14px; font-weight: bold; color: #8a5224; margin: 4px 0 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.item-card {
  background: linear-gradient(180deg, #fff, #fff2d5);
  border: 2px solid #c99a5a; border-radius: 12px;
  padding: 10px 6px; text-align: center; cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.item-card:active { transform: scale(.95); }
.item-card.locked { opacity: .55; }
.item-card .item-icon { font-size: 30px; line-height: 1.1; }
.item-card .item-name { font-size: 12px; font-weight: bold; color: #5e3212; margin-top: 3px; }
.item-card .item-price { font-size: 11px; color: #b5760a; font-weight: bold; margin-top: 2px; }
.item-card .item-meta { font-size: 10px; color: #7a5836; margin-top: 2px; }

.list-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-bottom: 1px dashed #d9b26e;
}
.list-row:last-child { border-bottom: none; }
.list-row .row-icon { font-size: 24px; }
.list-row .row-info { flex: 1; font-size: 12px; color: #5e3212; }
.list-row .row-info b { display: block; font-size: 13px; }
.list-row .row-info small { color: #946a3c; font-size: 10px; }
.empty-text { text-align: center; color: #a58256; font-size: 13px; padding: 20px 0; }

.tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 3px solid #d9b26e; }
.tab {
  flex: 1; text-align: center; padding: 7px 4px; cursor: pointer;
  font-size: 13px; font-weight: bold; color: #946a3c;
  border-radius: 8px 8px 0 0;
}
.tab.active { background: #f0d49a; color: #6b3a17; }

/* 转盘 */
.wheel { position: relative; width: 260px; height: 260px; margin: 10px auto; }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 26px; z-index: 3; color: var(--danger); }
.wheel-disc {
  width: 100%; height: 100%; border-radius: 50%;
  border: 6px solid #b5760a; position: relative; overflow: hidden;
  background: conic-gradient(#ffd95e 0deg 45deg, #ffe9a8 45deg 90deg, #ffd95e 90deg 135deg, #ffe9a8 135deg 180deg, #ffd95e 180deg 225deg, #ffe9a8 225deg 270deg, #ffd95e 270deg 315deg, #ffe9a8 315deg 360deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  transition: transform 3.2s cubic-bezier(.15,.7,.2,1);
}
.wheel-label {
  position: absolute; width: 50%; height: 50%; left: 25%; top: 0;
  transform-origin: 50% 100%; display: flex; align-items: flex-start; justify-content: center;
  font-size: 13px; padding-top: 12px; color: #6b3a17; font-weight: bold;
}
.wheel-label.coord {
  width: auto; height: auto; left: 0; top: 0; padding: 0;
  transform: translate(-50%, -50%); transform-origin: center;
  display: block; text-align: center; font-size: 12px; line-height: 1.2;
  white-space: nowrap;
}
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%; z-index: 4;
  background: linear-gradient(180deg, #ff8a5e, #e0483a);
  border: 4px solid #fff3d6; color: #fff; font-weight: 900; font-size: 18px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,.4);
}
.wheel-center:active { transform: translate(-50%,-50%) scale(.92); }
.wheel-status { text-align: center; font-size: 12px; color: #946a3c; margin: 6px 0; }
.wheel-result { text-align: center; font-size: 16px; font-weight: bold; color: #b5760a; min-height: 24px; }

/* Toast */
.toast {
  position: absolute; z-index: 100; top: 42%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(40,22,8,.92); color: #fff6df; padding: 12px 20px;
  border-radius: 14px; font-size: 14px; font-weight: bold; text-align: center;
  max-width: 80%; box-shadow: 0 6px 18px rgba(0,0,0,.5);
  animation: toastIn .2s ease-out;
  pointer-events: none;
}
.toast.success { border: 2px solid #7ed957; }
.toast.fail { border: 2px solid #ff8a7d; }
@keyframes toastIn { from { transform: translate(-50%,-40%) scale(.8); opacity: 0; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }

/* 小屏适配 */
@media (max-width: 380px) {
  .game-logo h1 { font-size: 38px; }
  .land-crop { font-size: 32px; }
  .res { font-size: 10px; }
  .nav-btn .nav-icon { font-size: 18px; }
  .nav-btn .nav-label { font-size: 8px; }
}

/* ============================================================
 * 天气 / 昼夜主题（由 weather.js 设置 data-weather / data-night）
 * ============================================================ */
.weather-badge {
  display: inline-block; font-size: 15px; cursor: pointer; margin-left: 4px;
  background: rgba(255,255,255,.55); border-radius: 10px; padding: 0 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* 土地立体质感增强 */
.land {
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.16) 0 20%, transparent 21%),
    repeating-linear-gradient(115deg, rgba(0,0,0,.07) 0 6px, transparent 6px 13px),
    linear-gradient(160deg, rgba(255,255,255,.12) 0%, rgba(0,0,0,.18) 100%);
  box-shadow: 0 6px 0 rgba(0,0,0,.45), 0 9px 12px rgba(0,0,0,.3), inset 0 0 0 3px rgba(255,255,255,.14), inset 0 -8px 12px rgba(0,0,0,.2);
}
.land-crop { text-shadow: 0 3px 2px rgba(0,0,0,.35), 0 0 8px rgba(255,255,255,.15); }

/* ☀️ 晴天（默认，暖色调） */
#app[data-weather="sunny"] .farm-scene {
  filter: saturate(1.08) brightness(1.02);
}
#app[data-weather="sunny"] .land::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 70% 15%, rgba(255,245,180,.35) 0 30%, transparent 60%);
}

/* ☁️ 阴天 / 雾：降低饱和度与亮度 */
#app[data-weather="cloudy"] .farm-scene,
#app[data-weather="foggy"] .farm-scene {
  filter: saturate(.72) brightness(.88);
}
#app[data-weather="foggy"] .farm-scene::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(230,235,240,.5), rgba(230,235,240,.15));
}

/* 🌧️ 雨天：蓝灰调 + 雨丝动画 */
#app[data-weather="rainy"] .farm-scene,
#app[data-weather="stormy"] .farm-scene {
  filter: saturate(.85) brightness(.8) hue-rotate(8deg);
}
#app[data-weather="rainy"] .farm-scene::after,
#app[data-weather="stormy"] .farm-scene::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: repeating-linear-gradient(15deg, transparent 0 8px, rgba(190,220,255,.35) 8px 9px, transparent 9px 18px);
  animation: rainfall .6s linear infinite;
}
@keyframes rainfall { from { background-position: 0 0; } to { background-position: -30px 90px; } }
#app[data-weather="rainy"] .land,
#app[data-weather="stormy"] .land { box-shadow: 0 6px 0 rgba(0,0,0,.5), inset 0 0 0 3px rgba(150,190,230,.2), inset 0 -8px 14px rgba(0,0,0,.3); }

/* ❄️ 雪天：冷白调 */
#app[data-weather="snowy"] .farm-scene {
  filter: saturate(.6) brightness(1.05) hue-rotate(10deg);
}
#app[data-weather="snowy"] .farm-scene::after {
  content: '❄ ❄ ❄'; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  font-size: 20px; letter-spacing: 90px; color: rgba(255,255,255,.8);
  animation: snowfall 4s linear infinite;
}
@keyframes snowfall { from { transform: translateY(-10%); } to { transform: translateY(100%); } }

/* 🌙 夜晚：暗色调 + 星空，土地变暗 */
#app[data-night="1"] .farm-scene {
  filter: saturate(.7) brightness(.55) hue-rotate(190deg);
}
#app[data-night="1"] .farm-scene::before {
  content: '✦  ✦   ✦    ✦  ✦'; position: absolute; top: 6px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,220,.8); font-size: 13px; pointer-events: none;
}
#app[data-night="1"] .land { filter: brightness(.8); }
#app[data-night="1"] .land-crop { filter: brightness(.85); }

/* 顶部栏夜间微调 */
#app[data-night="1"] .topbar { filter: brightness(.85); }
