:root {
  --night: #06100b;
  --night-2: #0a1b12;
  --panel: rgba(8, 22, 15, .91);
  --panel-solid: #0a1a12;
  --panel-soft: rgba(15, 36, 23, .84);
  --line: rgba(201, 244, 181, .15);
  --line-strong: rgba(126, 245, 160, .4);
  --text: #f6faef;
  --muted: #a6b5a5;
  --green: #74ee91;
  --green-2: #24bf6c;
  --lime: #c5f26b;
  --gold: #f3c65c;
  --soil: #4b2c18;
  --soil-dark: #25140d;
  --cyan: #39d9ff;
  --diamond: #7eeeff;
  --danger: #ff7e6d;
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--night); }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
  color: var(--text);
  background: var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }

.scene { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: var(--night); }
.scene img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; filter: saturate(.82) brightness(.46) contrast(1.05); transform: scale(1.02); }
.scene-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 28%, rgba(247, 195, 83, .12), transparent 28%),
    linear-gradient(180deg, rgba(3, 12, 7, .23), rgba(3, 13, 8, .74) 58%, #06100b 100%),
    linear-gradient(90deg, rgba(3, 12, 7, .72), transparent 38%, rgba(3, 12, 7, .56));
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

.farm-app { min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: calc(10px + env(safe-area-inset-top)) clamp(14px, 2.7vw, 42px) 10px;
  background: rgba(5, 15, 10, .88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .2);
  backdrop-filter: blur(20px) saturate(130%);
}
.back-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin-right: 13px;
  color: #d7ead6;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 20px;
  transition: transform .2s, border-color .2s, background .2s;
}
.back-button:hover { transform: translateX(-2px); border-color: var(--line-strong); background: rgba(116,238,145,.08); }
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #061109;
  background: linear-gradient(135deg, var(--lime), var(--green-2));
  border: 1px solid #dbff9b;
  border-radius: 11px 4px 11px 4px;
  box-shadow: 0 0 24px rgba(116,238,145,.24);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  transform: rotate(-3deg);
}
.brand-lockup > span:last-child { display: flex; flex-direction: column; }
.brand-lockup b { font-family: Impact, "Arial Black", sans-serif; font-size: 20px; letter-spacing: .055em; line-height: 1; }
.brand-lockup small { margin-top: 5px; color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: .2em; }

.resource-strip { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; margin-left: auto; }
.resource-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 12px;
  background: linear-gradient(180deg, rgba(23, 48, 31, .88), rgba(8, 23, 15, .86));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.resource-pill > span:not(.resource-icon) { display: flex; flex-direction: column; min-width: 0; }
.resource-pill small { color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .13em; white-space: nowrap; }
.resource-pill b { margin-top: 2px; font-size: 13px; white-space: nowrap; }
.resource-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  color: #1c1505;
  background: linear-gradient(135deg, #fff0a3, #e5a72c);
  border-radius: 8px 3px 8px 3px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 15px;
  box-shadow: 0 0 16px rgba(243,198,92,.15);
}
.diamond-pill .resource-icon { color: #062133; background: linear-gradient(135deg, #d8fbff, #45cce9 54%, #5e79ff); }
.level-pill { min-width: 54px; justify-content: center; gap: 5px; padding-inline: 10px; border-color: rgba(197,242,107,.32); }
.level-pill span { color: var(--lime); font-size: 9px; font-weight: 900; }
.level-pill b { font-size: 18px; }
.wallet-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 5px 10px 5px 5px;
  color: #cbf7ff;
  background: linear-gradient(145deg, #12283a, #06121d);
  border: 1px solid rgba(83,218,255,.36);
  border-radius: 12px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
}
.wallet-button img { width: 33px; height: 33px; }

.game-shell {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(330px, 390px);
  gap: clamp(16px, 2vw, 28px);
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px) 0 calc(34px + env(safe-area-inset-bottom));
}
.farm-column { min-width: 0; }
.season-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 9px 13px;
  color: #dce9da;
  background: rgba(6,18,11,.76);
  border: 1px solid var(--line);
  border-radius: 13px;
  backdrop-filter: blur(14px);
}
.season-bar > div { display: flex; align-items: center; gap: 9px; }
.season-bar b { font-size: 9px; letter-spacing: .13em; }
.season-bar p { margin: 0 auto 0 0; color: var(--muted); font-size: 10px; }
.season-bar time { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.live-pulse { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(116,238,145,.09), 0 0 15px var(--green); animation: livePulse 1.8s ease-out infinite; }

.farm-board {
  position: relative;
  isolation: isolate;
  min-height: 780px;
  overflow: hidden;
  background: #19361f;
  border: 1px solid rgba(229, 255, 190, .28);
  border-radius: 28px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .58), inset 0 1px rgba(255,255,255,.16);
}
.farm-board::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 5;
  border: 1px solid rgba(255, 244, 190, .13);
  border-radius: 21px;
  pointer-events: none;
}
.farm-world-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04) brightness(.78);
  transform: scale(1.012);
  animation: worldBreathe 18s ease-in-out infinite alternate;
}
.farm-world-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 13, 8, .78) 0, rgba(6, 18, 11, .34) 19%, rgba(4, 11, 7, .06) 45%, rgba(4, 12, 7, .5) 82%, rgba(3, 10, 6, .9) 100%),
    radial-gradient(ellipse at 50% 58%, rgba(255, 205, 93, .06) 0, rgba(5, 17, 10, .06) 48%, rgba(3, 11, 6, .52) 100%),
    linear-gradient(90deg, rgba(3, 11, 7, .38), transparent 24%, transparent 76%, rgba(3, 11, 7, .38));
}
.ambient-particles {
  position: absolute;
  inset: 13% 4% 11%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.ambient-particles i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff3a3;
  box-shadow: 0 0 7px 2px rgba(255, 222, 102, .68);
  opacity: .2;
  animation: fireflyDrift 6.5s ease-in-out infinite;
}
.ambient-particles i:nth-child(1) { left: 8%; top: 26%; animation-delay: -1s; }
.ambient-particles i:nth-child(2) { left: 17%; top: 62%; animation-delay: -3.4s; }
.ambient-particles i:nth-child(3) { left: 28%; top: 44%; animation-delay: -5.1s; }
.ambient-particles i:nth-child(4) { left: 39%; top: 72%; animation-delay: -2.2s; }
.ambient-particles i:nth-child(5) { left: 49%; top: 35%; animation-delay: -6s; }
.ambient-particles i:nth-child(6) { left: 59%; top: 68%; animation-delay: -4.4s; }
.ambient-particles i:nth-child(7) { left: 70%; top: 43%; animation-delay: -.7s; }
.ambient-particles i:nth-child(8) { left: 79%; top: 72%; animation-delay: -3s; }
.ambient-particles i:nth-child(9) { left: 89%; top: 29%; animation-delay: -5.5s; }
.ambient-particles i:nth-child(10) { left: 94%; top: 57%; animation-delay: -1.8s; }
.board-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 290px);
  gap: 28px;
  align-items: end;
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(221, 251, 189, .14);
  background: linear-gradient(105deg, rgba(4, 17, 10, .84), rgba(8, 24, 15, .68) 58%, rgba(4, 15, 9, .82));
  box-shadow: 0 16px 44px rgba(0,0,0,.18);
  backdrop-filter: blur(14px) saturate(125%);
}
.kicker { margin: 0 0 8px; color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .2em; }
.board-header h1, .panel-heading h2, .modal-card h2 { margin: 0; font-family: Impact, "Arial Black", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.board-header h1 { font-size: clamp(30px, 4vw, 50px); line-height: .95; }
.board-copy { max-width: 620px; margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.farm-progress > span { display: block; margin-bottom: 9px; color: #d9e7d7; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-align: right; }
.farm-progress > span b { color: var(--lime); font-size: 18px; }
.progress-track { height: 8px; padding: 2px; overflow: hidden; background: rgba(0,0,0,.36); border: 1px solid var(--line); border-radius: 99px; }
.progress-track i { display: block; width: 11.11%; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--lime)); border-radius: inherit; box-shadow: 0 0 15px rgba(197,242,107,.38); transition: width .35s ease; }
.farm-progress small { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin-top: 9px; color: #829181; font-size: 8px; }
.farm-progress small b { color: #dbe8d8; }
.farm-progress em { color: #c5d3c2; font-style: normal; }

.farm-playfield {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 565px;
  padding: 16px clamp(16px, 3vw, 30px) 26px;
}
.world-status-rail {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(680px, 96%);
  margin: 0 auto;
}
.world-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 11px;
  color: #eef9e8;
  background: linear-gradient(180deg, rgba(6, 22, 14, .74), rgba(4, 15, 9, .56));
  border: 1px solid rgba(224, 252, 193, .18);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.world-chip > span { color: #ffe178; font-size: 16px; text-shadow: 0 0 12px rgba(255,211,92,.45); }
.world-chip:nth-child(2) > span { color: var(--cyan); }
.world-chip:nth-child(3) > span { color: var(--green); }
.world-chip p { display: flex; flex-direction: column; margin: 0; }
.world-chip small { color: #9eafa0; font-size: 5.5px; font-weight: 900; letter-spacing: .13em; white-space: nowrap; }
.world-chip b { margin-top: 2px; font-size: 8px; letter-spacing: .06em; white-space: nowrap; }

.selected-seed {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(700px, 94%);
  margin: 13px auto 0;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(7, 25, 14, .82), rgba(8, 22, 14, .62));
  border: 1px solid rgba(194, 250, 134, .34);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.09);
  backdrop-filter: blur(11px);
}
.seed-orb { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; background: linear-gradient(145deg, rgba(237,255,181,.16), rgba(55,142,72,.16)); border: 1px solid rgba(222,255,168,.22); border-radius: 11px; font-size: 22px; filter: drop-shadow(0 6px 7px rgba(0,0,0,.25)); }
.selected-seed > span:nth-child(2) { display: flex; flex-direction: column; }
.selected-seed small { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.selected-seed b { margin-top: 2px; font-size: 13px; }
.seed-owned { margin-left: auto; color: var(--muted); font-size: 10px; }
.seed-owned b { color: var(--lime); font-size: 14px; }
.selected-seed button, .board-footer button {
  min-height: 34px;
  padding: 0 12px;
  color: #07140b;
  background: var(--lime);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .09em;
}

.plot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(9px, 1.2vw, 14px);
  width: min(760px, 100%);
  margin: auto;
  padding: 24px 10px 18px;
  perspective: 1000px;
}
.plot {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1.48 / 1;
  padding: 10px;
  overflow: hidden;
  color: #f9f4dd;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(255, 212, 114, .18), transparent 52%),
    linear-gradient(180deg, rgba(102, 73, 36, .78), rgba(56, 31, 17, .94)),
    repeating-linear-gradient(0deg, var(--soil-dark) 0 9px, var(--soil) 9px 13px, #3c2114 13px 18px);
  border: 2px solid rgba(241, 205, 122, .42);
  border-radius: 18px 18px 25px 25px;
  box-shadow:
    inset 0 8px 18px rgba(0,0,0,.3),
    inset 0 -5px rgba(26, 14, 7, .52),
    0 9px 0 rgba(43, 28, 14, .72),
    0 17px 28px rgba(0,0,0,.34);
  cursor: pointer;
  transform: rotateX(2deg);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease;
}
.plot::before { content: ""; position: absolute; inset: 5px; z-index: -1; border: 1px dashed rgba(255, 229, 159, .13); border-radius: 13px 13px 19px 19px; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.16)); }
.plot:hover { transform: translateY(-5px) rotateX(2deg) scale(1.015); border-color: rgba(222,255,133,.7); box-shadow: inset 0 8px 20px rgba(0,0,0,.23), inset 0 -5px rgba(26,14,7,.46), 0 10px 0 rgba(43,28,14,.66), 0 24px 34px rgba(0,0,0,.38); }
.plot-number { position: absolute; left: 10px; top: 9px; color: rgba(255,255,255,.48); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.plot-icon { display: grid; place-items: center; min-height: 45px; font-size: clamp(29px, 3.2vw, 46px); filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.plot-title { margin-top: 3px; font-size: 10px; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.plot-subtitle { margin-top: 4px; color: rgba(255,255,255,.67); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.plot.empty .plot-icon { color: rgba(236,255,213,.72); font-family: sans-serif; font-size: 29px; text-shadow: 0 0 20px rgba(181,255,113,.26); }
.plot.empty { background: radial-gradient(ellipse at 50% 28%, rgba(255,221,127,.13), transparent 50%), repeating-linear-gradient(0deg, rgba(37,21,12,.9) 0 9px, rgba(83,49,25,.9) 9px 13px, rgba(55,30,16,.94) 13px 18px); border-style: dashed; }
.plot.locked { color: #909e91; background: linear-gradient(145deg, rgba(18,33,24,.86), rgba(5,14,9,.92)); border-color: rgba(193,233,196,.14); box-shadow: inset 0 0 26px rgba(0,0,0,.34), 0 8px 0 rgba(8,20,12,.7), 0 16px 24px rgba(0,0,0,.28); filter: saturate(.34); }
.plot.locked.next-lock { color: #e2f2dc; border-color: rgba(197,242,107,.38); box-shadow: inset 0 0 28px rgba(125,217,107,.07), 0 8px 0 rgba(8,20,12,.72), 0 0 24px rgba(197,242,107,.08); filter: none; }
.plot.locked .plot-icon { font-size: 25px; filter: none; }
.plot.locked .plot-subtitle { color: var(--gold); }
.plot.growing { border-color: rgba(116,238,145,.42); }
.plot.stage-seedling .plot-icon { color: #a9f680; filter: drop-shadow(0 6px 10px rgba(68,255,103,.42)); animation: cropBob 3.2s ease-in-out infinite; }
.plot.stage-growing .plot-icon { filter: drop-shadow(0 8px 12px rgba(83,255,121,.34)); animation: cropBob 2.7s ease-in-out infinite; }
.plot.stage-ripening { border-color: rgba(255, 213, 93, .52); }
.plot.stage-ripening .plot-icon { filter: drop-shadow(0 8px 12px rgba(255,204,78,.42)); animation: cropBob 2.35s ease-in-out infinite; }
.plot.ready { border-color: var(--lime); box-shadow: inset 0 0 30px rgba(116,238,145,.13), 0 0 0 1px rgba(197,242,107,.18), 0 0 24px rgba(116,238,145,.2); animation: readyGlow 1.8s ease-in-out infinite; }
.plot.ready .plot-icon { animation: cropBob 1.65s ease-in-out infinite; }
.plot.ready .plot-title { color: var(--lime); }
.plot.ready::after { content: "HARVEST"; position: absolute; right: 8px; top: 8px; padding: 4px 6px; color: #071209; background: var(--lime); border-radius: 5px; font-size: 6px; font-weight: 950; letter-spacing: .09em; }
.growth-track { width: min(90px, 72%); height: 5px; margin-top: 7px; overflow: hidden; background: rgba(0,0,0,.44); border-radius: 99px; }
.growth-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--lime)); border-radius: inherit; transition: width 1s linear; }

.valley-stamp {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  width: min(720px, 94%);
  margin: auto auto 0;
  color: rgba(246, 255, 225, .5);
  border-top: 1px solid rgba(237,255,198,.14);
  padding: 9px 2px 0;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .18em;
}
.valley-stamp b { color: rgba(126,238,255,.58); }

.farm-fx-layer { position: absolute; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; }

/* Playable homestead map */
.farm-board { min-height: 0; background: #102719; }
.farm-map {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  background: #274625;
  border-top: 1px solid rgba(240,255,205,.12);
  border-bottom: 1px solid rgba(240,255,205,.12);
}
.farm-map .farm-world-art {
  z-index: 0;
  filter: saturate(1.08) contrast(1.04) brightness(.82);
}
.farm-map .farm-world-vignette {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,13,8,.46), rgba(4,12,7,.02) 28%, rgba(4,12,7,.04) 70%, rgba(3,11,6,.54)),
    radial-gradient(ellipse at 50% 50%, rgba(255,214,116,.06), transparent 48%, rgba(2,10,5,.28) 100%);
}
.farm-map .ambient-particles { z-index: 2; }
.farm-map .world-status-rail {
  position: absolute;
  top: 2.2%;
  left: 50%;
  z-index: 8;
  width: auto;
  max-width: 65%;
  margin: 0;
  transform: translateX(-50%);
}
.farm-map .world-chip { background: rgba(4,17,10,.72); }
.map-buildings { display: contents; }

.map-building {
  position: absolute;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(122px, 16.5%, 164px);
  min-height: 55px;
  padding: 7px 8px;
  color: #f4faeb;
  background: linear-gradient(145deg, rgba(4,18,10,.9), rgba(8,27,16,.78));
  border: 1px solid rgba(229,255,193,.28);
  border-radius: 14px 6px 14px 6px;
  box-shadow: 0 12px 26px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.09);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(9px) saturate(130%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}
.map-building:hover { transform: translateY(-3px) scale(1.025); border-color: rgba(216,255,128,.68); box-shadow: 0 17px 34px rgba(0,0,0,.45), 0 0 24px rgba(177,239,91,.12); }
.map-building > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.map-building small { color: var(--green); font-size: 5.5px; font-weight: 950; letter-spacing: .16em; }
.map-building b { margin-top: 2px; overflow: hidden; font-size: 8px; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.map-building em { margin-top: 3px; color: #bdcbb9; font-size: 5.5px; font-style: normal; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.building-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #142007;
  background: linear-gradient(145deg, #eafa95, #78dc6d);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 10px 4px 10px 4px;
  box-shadow: 0 0 18px rgba(159,239,95,.28);
  font-size: 18px;
  font-style: normal;
}
.map-building.active::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--green);
  animation: livePulse 1.8s ease-out infinite;
}
.map-building.locked { color: #b8c1b7; background: linear-gradient(145deg, rgba(13,22,18,.86), rgba(4,12,8,.84)); border-color: rgba(197,220,205,.16); filter: saturate(.45); }
.map-building.locked small { color: #ffcc74; }
.map-building.locked .building-icon { color: #bdd4d1; background: linear-gradient(145deg, #334b47, #152421); border-color: rgba(213,242,236,.2); box-shadow: none; }
.building-market { left: 2.2%; top: 16%; }
.building-barn { right: 2.2%; top: 16%; }
.building-greenhouse { left: 2.2%; bottom: 11%; }
.building-house { right: 2.2%; bottom: 11%; }
.building-workshop { left: 2.2%; top: 47%; }

.farm-field-zone {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 14%;
  bottom: 2.5%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.field-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  margin: 0 auto 5px;
  padding: 6px 10px;
  color: #f5f6de;
  background: linear-gradient(90deg, rgba(42,25,11,.88), rgba(75,47,20,.78));
  border: 1px solid rgba(255,218,130,.36);
  border-radius: 7px 7px 3px 3px;
  box-shadow: 0 7px 15px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.11);
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .14em;
}
.field-sign b { color: #dffb9d; font-size: 6px; }
.farm-field-zone .plot-grid { width: min(520px, 80%); margin: 0 auto; padding: 5px 4px 10px; gap: clamp(7px, .9vw, 11px); }
.farm-field-zone .plot { aspect-ratio: 1.55 / 1; min-height: 0; border-radius: 13px 13px 19px 19px; }
.farm-field-zone .plot-icon { min-height: 32px; font-size: clamp(24px, 2.6vw, 39px); }
.farm-field-zone .plot-title { font-size: clamp(6.5px, .8vw, 9px); }
.farm-field-zone .plot-subtitle { font-size: clamp(5.2px, .65vw, 7px); }
.farm-field-zone .selected-seed {
  width: min(560px, 94%);
  margin-top: auto;
  padding-block: 7px;
  background: linear-gradient(90deg, rgba(4,18,9,.89), rgba(7,25,14,.78));
}
.farm-field-zone .seed-orb { width: 32px; height: 32px; flex-basis: 32px; font-size: 19px; }

.harvest-particle {
  position: absolute;
  left: var(--fx-x);
  top: var(--fx-y);
  color: #fff2a2;
  font-size: var(--fx-size, 19px);
  filter: drop-shadow(0 0 8px rgba(255,231,112,.9));
  animation: harvestBurst .9s cubic-bezier(.17,.75,.34,1) forwards;
}
.plant-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 28px;
  height: 14px;
  border: 2px solid rgba(180,255,107,.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: plantRipple .72s ease-out forwards;
  pointer-events: none;
}

.board-footer { position: relative; z-index: 3; display: flex; align-items: center; gap: 24px; padding: 15px clamp(16px, 3vw, 30px); background: linear-gradient(90deg, rgba(3,13,8,.91), rgba(8,25,15,.82), rgba(3,13,8,.92)); border-top: 1px solid rgba(222,255,185,.16); box-shadow: 0 -14px 35px rgba(0,0,0,.2); backdrop-filter: blur(14px); }
.board-footer > div { display: flex; align-items: center; gap: 9px; }
.board-footer > div > span { display: grid; place-items: center; width: 30px; height: 30px; color: var(--lime); background: rgba(197,242,107,.08); border-radius: 8px; }
.board-footer p { display: flex; flex-direction: column; margin: 0; }
.board-footer b { font-size: 9px; }
.board-footer small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.board-footer button { margin-left: auto; }

.farm-notice { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 15px; background: rgba(9,24,16,.82); border: 1px solid var(--line); border-radius: 13px; backdrop-filter: blur(12px); }
.farm-notice > span { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; color: #0a1b0e; background: var(--gold); border-radius: 50%; font-family: Georgia, serif; font-size: 20px; font-weight: 900; }
.farm-notice p { display: flex; flex-direction: column; margin: 0; }
.farm-notice b { color: #fae6a8; font-size: 8px; letter-spacing: .13em; }
.farm-notice small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }

.control-dock {
  align-self: start;
  min-height: 680px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.dock-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 7px; background: rgba(0,0,0,.2); border-bottom: 1px solid var(--line); }
.dock-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  color: #829286;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.dock-tabs button span { font-size: 13px; }
.dock-tabs button i { display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; color: #09120b; background: var(--lime); border-radius: 99px; font-size: 7px; font-style: normal; }
.dock-tabs button.active { color: #07120a; background: linear-gradient(135deg, var(--lime), var(--green)); box-shadow: 0 7px 20px rgba(116,238,145,.16); }
.dock-panel { padding: 22px 18px 24px; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.panel-heading h2 { font-size: 26px; }
.panel-heading > span { padding: 6px 7px; color: #94a391; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 6px; font-size: 7px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.panel-heading > span b { color: var(--lime); }
.panel-intro { margin: 13px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.crop-list, .barn-list { display: flex; flex-direction: column; gap: 8px; }
.crop-card, .barn-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px;
  background: linear-gradient(110deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, background .2s, transform .2s;
}
.crop-card:hover, .barn-card:hover { transform: translateX(-2px); border-color: rgba(116,238,145,.32); background: rgba(116,238,145,.055); }
.crop-card.selected { border-color: var(--lime); background: rgba(197,242,107,.075); box-shadow: 0 0 0 1px rgba(197,242,107,.1); }
.crop-card.locked { opacity: .52; filter: saturate(.35); }
.crop-emoji { display: grid; place-items: center; width: 46px; height: 46px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; font-size: 26px; }
.crop-info { min-width: 0; }
.crop-info > b { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.crop-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 5px; color: #899989; font-size: 7px; }
.crop-meta span:first-child { color: #bfe8c1; }
.crop-stock { margin-top: 6px; color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.crop-actions { display: flex; flex-direction: column; gap: 5px; min-width: 76px; }
.crop-actions button, .barn-actions button {
  min-height: 29px;
  padding: 0 8px;
  color: #08150b;
  background: var(--lime);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .07em;
}
.crop-actions button.secondary { color: #dff4dc; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.crop-actions button:disabled, .barn-actions button:disabled { color: #768178; background: rgba(255,255,255,.04); cursor: not-allowed; }
.crop-lock { color: var(--gold); font-size: 8px; font-weight: 900; text-align: right; }
.barn-card { grid-template-columns: 46px minmax(0, 1fr) auto; }
.barn-actions { display: grid; grid-template-columns: 1fr; gap: 5px; min-width: 72px; }
.barn-actions button:last-child { color: #dff4dc; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.empty-state { padding: 42px 18px; color: #829085; background: rgba(255,255,255,.02); border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.empty-state span { display: block; margin-bottom: 9px; font-size: 34px; opacity: .7; }
.empty-state b { display: block; color: #d5e1d2; font-size: 11px; }
.empty-state p { margin: 6px 0 0; font-size: 9px; line-height: 1.45; }

.pool-card { padding: 18px; background: radial-gradient(circle at 86% 18%, rgba(197,242,107,.14), transparent 42%), linear-gradient(135deg, #14341f, #0b1b12); border: 1px solid rgba(197,242,107,.23); border-radius: 15px; }
.pool-card > small { color: #a5b5a3; font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.pool-card strong { display: block; margin: 8px 0 7px; font-size: 28px; line-height: 1; }
.pool-card em { color: var(--lime); font-size: 9px; font-style: normal; letter-spacing: .08em; }
.pool-card p { margin: 0; color: #9aae9a; font-size: 8px; line-height: 1.45; }
.your-rank { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 11px 0; padding: 11px; background: rgba(126,238,153,.065); border: 1px solid rgba(126,238,153,.2); border-radius: 12px; }
.your-rank > span { display: grid; place-items: center; width: 40px; height: 40px; color: var(--lime); background: rgba(197,242,107,.08); border-radius: 10px; font-size: 11px; font-weight: 950; }
.your-rank > div { display: flex; flex-direction: column; }
.your-rank small { color: #7f927f; font-size: 6px; font-weight: 900; letter-spacing: .11em; }
.your-rank b { margin-top: 4px; font-size: 10px; }
.your-rank strong { color: var(--diamond); font-size: 11px; }
.rank-list { display: flex; flex-direction: column; gap: 5px; }
.rank-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; min-height: 36px; padding: 6px 9px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); border-radius: 8px; }
.rank-row > span { color: #7f8e80; font-size: 9px; font-weight: 900; }
.rank-row b { color: #c9d6c7; font-size: 9px; }
.rank-row small { color: var(--lime); font-size: 8px; font-weight: 900; }
.rank-row:first-child { background: rgba(243,198,92,.065); border-color: rgba(243,198,92,.19); }
.rank-row:first-child > span, .rank-row:first-child small { color: var(--gold); }
.reward-disclaimer { margin: 13px 0 0; padding: 10px; color: #a4aaa2; background: rgba(255,198,84,.055); border: 1px solid rgba(255,198,84,.14); border-radius: 9px; font-size: 8px; line-height: 1.45; }

.mobile-tabs { display: none; }
.modal-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(2, 8, 5, .78); backdrop-filter: blur(12px); }
.modal-card { position: relative; width: min(430px, 100%); padding: 30px; overflow: hidden; background: radial-gradient(circle at 50% 0, rgba(116,238,145,.12), transparent 42%), #0a1a12; border: 1px solid rgba(197,242,107,.26); border-radius: 22px; box-shadow: 0 35px 110px rgba(0,0,0,.65); text-align: center; animation: modalIn .25s ease-out; }
.modal-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; color: #b9c7b8; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 20px; }
.modal-symbol { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 15px; color: var(--lime); background: rgba(197,242,107,.08); border: 1px solid rgba(197,242,107,.19); border-radius: 18px; font-size: 32px; }
.modal-card h2 { font-size: 30px; }
.modal-card > p:not(.kicker):not(.wallet-status) { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.modal-price { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 20px 0; padding: 14px; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 13px; }
.modal-price b { font-size: 20px; }
.modal-price small { color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.modal-actions button, .wallet-connect { min-height: 44px; border-radius: 10px; cursor: pointer; font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.modal-actions .secondary { color: #b8c5b6; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.modal-actions .primary { color: #07130a; background: linear-gradient(135deg, var(--lime), var(--green)); border: 0; }
.wallet-logo { width: 78px; height: 78px; margin: 0 auto 15px; filter: drop-shadow(0 12px 30px rgba(44,220,255,.24)); }
.wallet-card { border-color: rgba(83,218,255,.28); }
.wallet-card .kicker { color: var(--cyan); }
.wallet-info { display: flex; flex-direction: column; gap: 7px; margin: 17px 0; padding: 12px; background: rgba(20,54,75,.2); border: 1px solid rgba(83,218,255,.15); border-radius: 12px; text-align: left; }
.wallet-info > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; min-height: 26px; }
.wallet-info span { color: #829aa8; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.wallet-info code, .wallet-info b { overflow: hidden; color: #dcf8ff; font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.wallet-status { min-height: 18px; margin: 13px 0; color: #9fb4bd; font-size: 9px; line-height: 1.45; }
.wallet-status.error { color: #ff9c90; }
.wallet-status.success { color: #77efae; }
.wallet-connect { width: 100%; color: #04141b; background: linear-gradient(135deg, #7eeeff, #37bde8); border: 0; }
.wallet-install { display: inline-block; margin-top: 13px; color: var(--cyan); font-size: 9px; font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 130; max-width: min(420px, calc(100% - 28px)); padding: 12px 16px; color: #07120a; background: var(--lime); border-radius: 10px; box-shadow: 0 16px 50px rgba(0,0,0,.5); font-size: 10px; font-weight: 900; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { color: white; background: #c74a43; }

@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(116,238,145,.35), 0 0 14px var(--green); } 100% { box-shadow: 0 0 0 9px transparent, 0 0 14px var(--green); } }
@keyframes readyGlow { 0%,100% { box-shadow: inset 0 0 30px rgba(116,238,145,.1), 0 0 18px rgba(116,238,145,.12); } 50% { box-shadow: inset 0 0 35px rgba(116,238,145,.18), 0 0 32px rgba(116,238,145,.28); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes worldBreathe { from { transform: scale(1.012); } to { transform: scale(1.035); } }
@keyframes fireflyDrift {
  0%, 100% { opacity: .12; transform: translate3d(0, 8px, 0) scale(.75); }
  35% { opacity: .9; transform: translate3d(11px, -12px, 0) scale(1.15); }
  70% { opacity: .35; transform: translate3d(-8px, -23px, 0) scale(.9); }
}
@keyframes cropBob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes harvestBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--fx-dx)), calc(-50% + var(--fx-dy))) rotate(var(--fx-rotation)) scale(1.25); }
}
@keyframes plantRipple { from { opacity: .9; transform: translate(-50%, -50%) scale(.3); } to { opacity: 0; transform: translate(-50%, -50%) scale(4.2); } }

@media (max-width: 1180px) {
  .game-shell { grid-template-columns: minmax(500px, 1fr) 340px; width: calc(100% - 28px); gap: 14px; }
  .resource-pill { padding-inline: 9px; }
  .board-header { gap: 18px; }
  .plot-grid { gap: 9px; }
}

@media (max-width: 980px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar { position: relative; flex-wrap: wrap; gap: 9px; }
  .brand-lockup { min-width: 0; }
  .resource-strip { width: 100%; justify-content: stretch; order: 2; margin: 0; }
  .resource-pill { flex: 1 1 0; }
  .wallet-button { margin-left: auto; }
  .game-shell { display: block; width: min(760px, calc(100% - 24px)); padding-top: 13px; }
  .farm-board { min-height: 0; }
  .map-building { width: 140px; }
  .farm-field-zone { left: 19%; right: 19%; }
  .control-dock { min-height: 0; margin-top: 14px; }
  .mobile-tabs { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 58px; padding: 6px; background: rgba(6,17,11,.94); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 18px 60px rgba(0,0,0,.62); backdrop-filter: blur(20px); }
  .mobile-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #849486; background: transparent; border: 0; border-radius: 11px; font-size: 8px; font-weight: 850; }
  .mobile-tabs button span { font-size: 15px; }
  .mobile-tabs button.active { color: #07120a; background: var(--lime); }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

@media (max-width: 650px) {
  .topbar { padding-left: 10px; padding-right: 10px; }
  .brand-lockup b { font-size: 17px; }
  .brand-lockup small { letter-spacing: .12em; }
  .resource-strip { display: grid; grid-template-columns: 52px 1fr 1fr 48px; gap: 5px; }
  .resource-pill { min-height: 42px; padding: 5px 7px; gap: 5px; }
  .resource-icon { width: 23px; height: 23px; flex-basis: 23px; font-size: 12px; }
  .resource-pill small { font-size: 5.5px; letter-spacing: .07em; }
  .resource-pill b { font-size: 10px; }
  .wallet-button { width: 46px; padding: 5px; justify-content: center; }
  .wallet-button img { width: 31px; height: 31px; }
  .wallet-button span { display: none; }
  .game-shell { width: calc(100% - 14px); }
  .season-bar { gap: 9px; }
  .season-bar p { display: none; }
  .season-bar time { margin-left: auto; }
  .farm-board { min-height: 0; border-radius: 18px; }
  .farm-board::before { inset: 5px; border-radius: 14px; }
  .farm-world-art { object-position: 50% center; filter: saturate(1.03) contrast(1.04) brightness(.78); }
  .farm-world-vignette { background: linear-gradient(180deg, rgba(3,13,8,.4) 0, transparent 32%, rgba(3,10,6,.3) 100%); }
  .board-header { display: block; padding: 20px 17px; background: linear-gradient(180deg, rgba(3,15,8,.9), rgba(5,18,10,.68)); }
  .board-header h1 { font-size: 35px; }
  .board-copy { font-size: 10px; }
  .farm-progress { margin-top: 18px; }
  .farm-progress > span { text-align: left; }
  .farm-progress small { justify-content: flex-start; }
  .farm-map { display: block; aspect-ratio: auto; min-height: 0; padding-bottom: 8px; background: linear-gradient(180deg, #13291b, #07140d); }
  .farm-map .farm-world-art { position: relative; inset: auto; z-index: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; animation: none; }
  .farm-map .farm-world-vignette { bottom: auto; z-index: 1; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .farm-map .ambient-particles { bottom: auto; z-index: 2; height: 50%; }
  .farm-map .world-status-rail { display: none; }
  .map-buildings { position: relative; z-index: 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 10px 9px 2px; }
  .map-building { position: relative; inset: auto; width: auto; min-height: 48px; padding: 6px; border-radius: 11px 5px 11px 5px; }
  .map-building:hover { transform: translateY(-1px); }
  .map-building b { font-size: 7px; }
  .map-building em { font-size: 5px; }
  .building-icon { width: 29px; height: 29px; flex-basis: 29px; font-size: 15px; }
  .building-workshop { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .farm-field-zone { left: 20%; right: 20%; top: 5px; bottom: auto; z-index: 6; height: auto; }
  .field-sign { width: 100%; margin-bottom: 2px; padding: 3px 5px; font-size: 4.5px; }
  .field-sign b { font-size: 4.5px; }
  .farm-field-zone .plot-grid { width: 100%; padding: 2px 0 4px; gap: 4px; }
  .farm-field-zone .plot { aspect-ratio: 1.72 / 1; min-height: 0; padding: 2px; border-radius: 8px 8px 11px 11px; box-shadow: inset 0 4px 9px rgba(0,0,0,.28), inset 0 -2px rgba(26,14,7,.45), 0 2px 0 rgba(43,28,14,.62), 0 5px 9px rgba(0,0,0,.25); }
  .farm-field-zone .plot::before { inset: 2px; border-radius: 6px 6px 9px 9px; }
  .farm-field-zone .plot-number { left: 4px; top: 3px; font-size: 4px; }
  .farm-field-zone .plot-icon { min-height: 17px; font-size: 18px; }
  .farm-field-zone .plot-title { margin-top: 0; font-size: 4.8px; }
  .farm-field-zone .plot-subtitle { margin-top: 1px; font-size: 4px; }
  .farm-field-zone .growth-track { width: 66%; height: 2px; margin-top: 2px; }
  .farm-field-zone .plot.ready::after { display: none; }
  .farm-field-zone .selected-seed { width: 100%; min-height: 30px; margin-top: 1px; padding: 3px 5px; gap: 4px; border-radius: 8px; }
  .farm-field-zone .seed-orb { width: 24px; height: 24px; flex-basis: 24px; font-size: 15px; }
  .farm-field-zone .selected-seed small { font-size: 4.5px; }
  .farm-field-zone .selected-seed b { font-size: 7px; }
  .farm-field-zone .selected-seed button { min-height: 24px; padding-inline: 6px; font-size: 5px; }
  .farm-field-zone .seed-owned { display: none; }
  .world-status-rail { width: 100%; gap: 5px; }
  .world-chip { flex: 1 1 0; justify-content: center; gap: 5px; padding: 6px 5px; }
  .world-chip > span { font-size: 13px; }
  .world-chip small { font-size: 4.7px; letter-spacing: .08em; }
  .world-chip b { font-size: 6.8px; }
  .selected-seed { width: calc(100% - 6px); margin-inline: auto; padding: 8px; gap: 7px; }
  .seed-orb { width: 34px; height: 34px; flex-basis: 34px; }
  .selected-seed button { padding-inline: 8px; }
  .plot-grid { gap: 7px; padding: 18px 2px 16px; }
  .plot { aspect-ratio: .98 / 1; padding: 6px 3px; border-width: 1px; border-radius: 12px 12px 16px 16px; box-shadow: inset 0 7px 16px rgba(0,0,0,.3), inset 0 -4px rgba(26,14,7,.5), 0 5px 0 rgba(43,28,14,.68), 0 11px 18px rgba(0,0,0,.32); }
  .plot:hover { transform: translateY(-2px); }
  .plot-number { left: 7px; top: 6px; font-size: 6px; }
  .plot-icon { min-height: 33px; font-size: 28px; }
  .plot-title { max-width: 92%; overflow: hidden; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
  .plot-subtitle { font-size: 6.3px; }
  .plot.ready::after { right: 4px; top: 4px; padding: 3px 4px; font-size: 5px; }
  .growth-track { height: 4px; margin-top: 5px; }
  .valley-stamp { width: calc(100% - 8px); font-size: 5px; }
  .board-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  .board-footer > div > span { display: none; }
  .board-footer b { font-size: 7.5px; }
  .board-footer small { font-size: 6px; }
  .board-footer button { grid-column: 1 / -1; width: 100%; margin: 0; }
  .farm-notice { align-items: flex-start; padding: 11px; }
  .control-dock { border-radius: 16px; }
  .dock-panel { padding: 18px 12px 20px; }
  .panel-heading h2 { font-size: 23px; }
  .crop-card, .barn-card { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
  .crop-emoji { width: 42px; height: 42px; font-size: 23px; }
  .crop-actions { min-width: 68px; }
  .modal-card { padding: 27px 18px 20px; }
}

@media (max-width: 380px) {
  .brand-lockup small { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 21px; }
  .back-button { width: 34px; height: 34px; flex-basis: 34px; margin-right: 4px; }
  .resource-strip { grid-template-columns: 46px 1fr 1fr 42px; }
  .resource-pill { padding-inline: 5px; }
  .resource-icon { display: none; }
  .level-pill { min-width: 0; }
  .seed-owned { display: none; }
  .plot-title { font-size: 6.7px; }
  .plot-subtitle { font-size: 5.8px; }
}

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