:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #344733;
  background: #f6f4e9;
  font-synthesis: none;
  --green: #527345;
  --muted: #7b8470;
  --line: #e2e4d6;
  --cream: #fffdf5;
  --gold: #c3943b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a97437;
  outline-offset: 3px;
}
button:hover:not(:disabled) {
  filter: brightness(0.96);
}
[hidden] {
  display: none !important;
}
.app {
  display: flex;
  min-height: 100vh;
}
.rail {
  width: 78px;
  flex: none;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  padding: 25px 10px;
  background: #eeefdf;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand-mark {
  font-family: Georgia, serif;
  font-size: 36px;
  text-decoration: none;
  position: relative;
  line-height: 1.2;
  color: #537445;
}
.brand-mark span {
  font-size: 25px;
  margin-left: -7px;
}
.brand-mark i {
  position: absolute;
  width: 9px;
  height: 15px;
  background: #8aaa65;
  transform: rotate(35deg);
  top: -6px;
  left: 15px;
  border-radius: 9px 0;
}
.rail-line {
  height: 1px;
  width: 28px;
  background: #d8ddc9;
  margin: 9px 0;
}
.rail-button {
  width: 45px;
  height: 45px;
  border-radius: 13px;
  color: #839173;
  font-size: 24px;
  display: grid;
  place-items: center;
}
.rail-button.selected {
  background: #dae4c8;
  color: #4a6e3e;
}
.rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 7px;
}
.workspace {
  flex: 1;
  min-width: 0;
  padding: 0 38px;
}
.topbar {
  height: 101px;
  display: flex;
  align-items: center;
  gap: 29px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-right: auto;
}
.wordmark svg {
  width: 38px;
  height: 42px;
}
.wordmark span {
  font-family: Georgia, serif;
  font-size: 25px;
  letter-spacing: -1px;
  color: #546e45;
}
.wordmark b {
  font-weight: normal;
}
.wordmark small {
  display: block;
  font: 8px system-ui;
  letter-spacing: 2.1px;
  color: #8c947c;
  margin-top: 5px;
}
.wallet {
  display: flex;
  align-items: center;
  gap: 9px;
}
.coin {
  display: grid;
  place-items: center;
  background: #ead798;
  border: 3px solid #dbc17a;
  outline: 2px solid #f4e8b9;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #a98132;
}
.wallet b {
  font-size: 20px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.wallet small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.level-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.level-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 37px;
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
  background: #dfe7c9;
  color: #637d48;
  font-size: 15px;
  font-weight: bold;
}
.level-box > div {
  width: 135px;
}
.level-box span:not(.level-badge) {
  font-size: 10px;
  display: block;
  font-weight: 650;
}
.xp-track {
  height: 5px;
  background: #e2e5d1;
  border-radius: 9px;
  margin: 6px 0 4px;
  overflow: hidden;
}
.xp-track div {
  height: 100%;
  background: #8fa85c;
  border-radius: 9px;
  transition: width 0.3s;
}
.level-box small {
  font-size: 8px;
  color: #8a927d;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5d9b7;
  border: 3px solid #fff9e8;
  font:
    14px Georgia,
    serif;
  color: #8b7955;
}
main {
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 26px;
  gap: 12px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: #8a9678;
  margin: 0 0 9px;
}
h1 {
  font:
    normal clamp(25px, 2.5vw, 37px) / 1.2 Georgia,
    serif;
  letter-spacing: -0.8px;
  margin: 0;
  color: #3b5138;
}
.intro {
  font-size: 12px;
  color: #828a77;
  margin: 10px 0 0;
}
.weather {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.weather > span {
  font-size: 36px;
  color: #d2ad56;
}
.weather small {
  display: block;
  letter-spacing: 1.4px;
  font-size: 7px;
  margin-top: 6px;
  color: #919984;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 27px;
  margin-bottom: 25px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs button {
  height: 44px;
  white-space: nowrap;
  padding: 0 1px;
  font-size: 11px;
  color: #828976;
  position: relative;
}
.tabs button.active {
  font-weight: 700;
  color: #527345;
}
.tabs button.active:after {
  content: "";
  height: 3px;
  background: #73915b;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 3px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 26px;
}
.farm-column {
  min-width: 0;
}
.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 13px;
  gap: 10px;
}
.field-heading h2 {
  font-size: 12px;
  font-weight: 650;
  margin: 0;
}
.field-tag {
  font-size: 9px;
  color: #8b957d;
}
.field-tag i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8ca56a;
  margin-right: 5px;
}
.farm-scene {
  position: relative;
  aspect-ratio: 1000/650;
  background: #9cbb77;
  border: 1px solid #c2cea5;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 6px 20px #556d3810;
}
.landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-label {
  position: absolute;
  top: 4%;
  left: 4%;
  font-size: 7px;
  letter-spacing: 2px;
  color: #637f60;
  background: #f8f4dc8c;
  padding: 7px 9px;
  border-radius: 5px;
}
.plots {
  position: absolute;
  left: 22%;
  right: 23%;
  top: 43%;
  bottom: 14%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 6px;
  transform: rotate(-2deg);
}
.plot {
  padding: 0;
  position: relative;
  border-radius: 7px;
  border: 2px solid #bfa275;
  background: repeating-linear-gradient(
    0deg,
    #a7865c 0,
    #a7865c 2px,
    #af9065 3px,
    #af9065 11px
  );
  box-shadow: 0 3px 0 #7d704a4d;
  min-width: 0;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.plot:not(.locked):hover {
  transform: translateY(-3px);
  filter: brightness(1.07);
}
.plot.empty {
  background: repeating-linear-gradient(
    0deg,
    #b7976d 0,
    #b7976d 2px,
    #c5a77a 3px,
    #c5a77a 10px
  );
}
.plot.locked {
  background: #93ad6d88;
  border: 1px dashed #708e5366;
  box-shadow: none;
  color: #536d3caa;
  font-size: 13px;
}
.plot.ready {
  border-color: #eed47b;
  box-shadow:
    0 0 0 2px #f4df9677,
    0 3px 0 #88724255;
}
.plot svg {
  position: absolute;
  width: 88%;
  height: 110%;
  bottom: 8%;
  left: 6%;
  filter: drop-shadow(0 2px 1px #4d51372b);
  pointer-events: none;
}
.plot.stage-1 svg {
  transform: scale(0.52);
  transform-origin: 50% 90%;
}
.plot.stage-2 svg {
  transform: scale(0.72);
  transform-origin: 50% 90%;
}
.plot.stage-3 svg {
  transform: scale(0.87);
  transform-origin: 50% 90%;
}
.plot-time {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  font-size: 8px;
  color: #fff5d8;
  text-shadow: 0 1px 2px #4b3d22;
  font-weight: 650;
}
.plot-progress {
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #725d4133;
  border-radius: 2px;
  overflow: hidden;
}
.plot-progress i {
  display: block;
  height: 100%;
  background: #d5df8a;
}
.plot-water {
  position: absolute;
  top: 1px;
  right: 3px;
  color: #b8e0d5;
  font-size: 10px;
}
.empty-mark {
  color: #f4e3bd88;
  font-size: 18px;
}
.scene-note {
  position: absolute;
  bottom: 3%;
  left: 4%;
  font:
    italic 10px Georgia,
    serif;
  color: #587341;
}
.scene-note span {
  font-size: 18px;
  margin-right: 6px;
}
.decor-slots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.decor-slot {
  position: absolute;
  width: 7%;
  height: 12%;
  pointer-events: auto;
  padding: 0;
  border-radius: 50%;
  color: #607d4777;
}
.decor-slot:empty {
  border: 1px dashed #77965044;
}
.decor-slot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.decor-slot:nth-child(1) {
  left: 13%;
  top: 60%;
}
.decor-slot:nth-child(2) {
  left: 79%;
  top: 53%;
}
.decor-slot:nth-child(3) {
  left: 14%;
  top: 77%;
}
.decor-slot:nth-child(4) {
  left: 80%;
  top: 75%;
}
.decor-slot:nth-child(5) {
  left: 36%;
  top: 29%;
}
.decor-slot:nth-child(6) {
  left: 59%;
  top: 29%;
}
.ranch-art {
  position: absolute;
  right: 4%;
  top: 58%;
  width: 11%;
  display: flex;
}
.ranch-art svg {
  width: 55%;
}
.toolbox {
  margin-top: 17px;
  background: #fbfaf1;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px 19px;
}
.tool-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.tool-label .eyebrow {
  margin: 0;
  font-size: 8px;
}
.tool-label strong {
  font-size: 9px;
  font-weight: 500;
  color: #849075;
}
.tools {
  display: flex;
  gap: 6px;
  margin: 13px 0 15px;
}
.tools button {
  border: 1px solid #dfe3cf;
  background: #f5f5e9;
  color: #7e876d;
  border-radius: 7px;
  min-height: 44px;
  flex: 1;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.tools button span {
  font-size: 22px;
}
.tools button.active {
  background: #e4ebd4;
  border-color: #b5c796;
  color: #527345;
  font-weight: 700;
}
.tools button[data-tool="water"] span {
  transform: rotate(145deg);
  color: #78a3a2;
}
.seed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #8a947b;
  border-top: 1px solid #e4e6d9;
  padding-top: 10px;
}
.text-button {
  color: #6b8256;
  font-size: 10px;
  min-height: 36px;
  padding: 0 3px;
}
.seed-picker {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 5px;
}
.seed {
  min-width: 85px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e6e6d7;
  border-radius: 8px;
  padding: 5px 8px;
  min-height: 48px;
  position: relative;
  color: #7b866d;
  background: #fffdf5;
}
.seed.selected {
  border-color: #9cb47c;
  background: #edf1dc;
  color: #547344;
}
.seed svg {
  width: 28px;
  height: 33px;
  flex: none;
}
.seed b {
  font-size: 9px;
  display: block;
  font-weight: 650;
}
.seed small {
  font-size: 8px;
  color: #90967d;
}
.farm-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
  color: #919980;
  padding: 6px 2px;
}
.farm-footer > span {
  margin-right: auto;
}
.farm-footer a {
  font-size: 9px;
  text-decoration: none;
}
.side-panel {
  padding-top: 26px;
  min-width: 0;
}
h2,
h3,
p {
  overflow-wrap: anywhere;
}
.panel-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fcfbf3;
  padding: 19px;
  margin-bottom: 15px;
}
.panel-card h2 {
  font:
    20px Georgia,
    serif;
  margin: 3px 0 10px;
  letter-spacing: -0.3px;
}
.panel-card h3 {
  font-size: 11px;
  margin: 0 0 7px;
}
.panel-card p {
  font-size: 10px;
  line-height: 1.7;
  color: #889078;
  margin: 0 0 12px;
}
.panel-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8c967c;
  margin-bottom: 15px;
}
.tiny-badge {
  font-size: 8px;
  background: #eceddd;
  color: #7d8b63;
  letter-spacing: 0;
  padding: 4px 6px;
  border-radius: 4px;
}
.guide-card {
  background: #ebefdb;
  border-color: #dce3ca;
  position: relative;
  overflow: hidden;
}
.guide-card:after {
  content: "❧";
  position: absolute;
  font-size: 88px;
  color: #dce4c5;
  right: -8px;
  bottom: 20px;
  pointer-events: none;
}
.guide-card > * {
  position: relative;
  z-index: 1;
}
.guide-card .primary {
  width: 100%;
}
.primary,
.secondary,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 11px;
  gap: 5px;
}
.primary {
  background: #64834f;
  color: #fff9e7;
  box-shadow: 0 2px 0 #415f3544;
}
.secondary {
  background: #f0efdf;
  border: 1px solid #dadfca;
  color: #718259;
}
.small-button {
  font-size: 10px;
  padding: 7px 10px;
  min-height: 44px;
  background: #edf0dd;
  border: 1px solid #dbe2c9;
  color: #658050;
}
.order {
  border-bottom: 1px solid #e8e9db;
  padding: 12px 0;
}
.order:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.order:first-of-type {
  padding-top: 0;
}
.order-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  margin-bottom: 10px;
}
.portrait {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 3px solid #f6ecd1;
  border-radius: 50%;
  font:
    15px Georgia,
    serif;
  color: #8f795a;
  background: #ded3ad;
}
.order-head small {
  display: block;
  font-size: 8px;
  color: #969c85;
  margin-top: 3px;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-item svg {
  width: 32px;
  height: 36px;
}
.order-item b {
  font-size: 10px;
}
.order-item small {
  display: block;
  font-size: 9px;
  color: #919a7f;
  margin-top: 2px;
}
.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 4px;
}
.reward {
  color: #b39548;
  font-size: 9px;
}
.order-actions {
  display: flex;
  gap: 3px;
}
.renew {
  width: 35px;
  min-height: 44px;
  color: #859472;
  font-size: 18px;
}
.shop-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.shop-tabs button {
  font-size: 9px;
  border-radius: 5px;
  padding: 7px 8px;
  min-height: 36px;
  background: #eeefdf;
}
.shop-tabs button.active {
  background: #dfe8cc;
  color: #537544;
}
.item {
  border-top: 1px solid #e8e9dc;
  padding: 13px 0;
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 9px;
  align-items: start;
}
.item svg {
  width: 42px;
  height: 48px;
}
.item h3 {
  font-size: 11px;
  margin: 2px 0 4px;
}
.item p {
  font-size: 9px;
  margin: 0 0 8px;
  line-height: 1.6;
}
.item-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.item-buttons .small-button {
  min-height: 36px;
  font-size: 9px;
}
.item-meta {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: #9b9f85;
  font-size: 8px;
  margin-bottom: 7px;
}
.empty-state {
  padding: 18px 0;
  text-align: center;
  color: #9aa086;
  font-size: 11px;
  line-height: 1.8;
}
.stock-count {
  display: inline-block;
  font-size: 9px;
  color: #879173;
  background: #f0efdf;
  padding: 3px 6px;
  border-radius: 4px;
}
.notice {
  font-size: 10px;
  line-height: 1.7;
  padding: 12px;
  border: 1px dashed #d8dfc5;
  background: #f4f5e8;
  border-radius: 8px;
  color: #8b947c;
  margin-top: 12px;
}
.expansion-card {
  background: #f1eedc;
}
.progress-track {
  height: 5px;
  background: #e6e8d7;
  border-radius: 5px;
  margin: 10px 0;
  overflow: hidden;
}
.progress-track div {
  height: 100%;
  background: #9ab477;
}
.achievement {
  border-top: 1px solid #e6e8d7;
  padding: 13px 0;
}
.achievement h3 {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.achievement .small-button {
  width: 100%;
}
.select-row {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 12px 0;
}
.select-row select {
  flex: 1;
  min-width: 0;
}
.site-footer {
  max-width: 1500px;
  margin: 28px auto 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 25px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9a9f89;
}
.site-footer > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer button {
  font-size: 9px;
  min-height: 36px;
}
.version {
  font-size: 8px;
  background: #eaeedc;
  padding: 3px 5px;
  border-radius: 3px;
}
.session-banner {
  padding: 12px;
  background: #f1dfb8;
  border: 1px solid #d3b575;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 12px;
}
.session-banner button {
  text-decoration: underline;
  min-height: 44px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 480px);
  padding: 14px 22px;
  background: #3d5938;
  color: #fff9df;
  font-size: 12px;
  border-radius: 11px;
  box-shadow: 0 8px 30px #344b3625;
  z-index: 20;
  pointer-events: none;
}
.toast.error {
  background: #8e6549;
}
.toast:not([hidden]) {
  animation: toast-in 0.2s ease-out;
}
dialog {
  border: 1px solid #dce1ce;
  border-radius: 18px;
  background: #fffdf3;
  color: #43573c;
  width: min(92vw, 470px);
  padding: 27px;
  box-shadow: 0 25px 100px #273e3533;
}
dialog::backdrop {
  background: #2c43386b;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.modal-heading h2 {
  font:
    normal 27px Georgia,
    serif;
  margin: 0;
}
.close {
  min-width: 44px;
  min-height: 44px;
  font-size: 27px;
  color: #8b957b;
}
.modal-copy {
  font-size: 12px;
  line-height: 1.8;
  color: #7c876f;
}
.modal-art {
  height: 100px;
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}
.modal-art svg {
  width: 95px;
  height: 100px;
}
.modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.modal-actions > * {
  flex: 1;
}
label {
  font-size: 11px;
  color: #77866b;
  display: block;
  margin: 14px 0 6px;
}
input[type="text"],
select,
input[type="number"] {
  border: 1px solid #d9dfc9;
  border-radius: 7px;
  background: #f8f8ec;
  padding: 11px;
  width: 100%;
  color: #4e6643;
  min-height: 44px;
}
input[type="range"] {
  width: 100%;
  accent-color: #729357;
}
input[type="file"] {
  max-width: 100%;
  font-size: 11px;
}
input[type="checkbox"] {
  accent-color: #6b8b52;
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 12px;
}
.help-step {
  display: flex;
  gap: 10px;
  margin: 13px 0;
  font-size: 12px;
  line-height: 1.6;
}
.help-step b {
  display: grid;
  place-items: center;
  flex: none;
  background: #e9efda;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  color: #7c965d;
}
.help-step p {
  margin: 0;
}
.reserved {
  color: #b38d43;
}
.inventory-quantity {
  width: 56px !important;
  padding: 6px !important;
  min-height: 36px !important;
  font-size: 10px !important;
}
.readonly .tools,
.readonly #seed-picker,
.readonly .plots {
  opacity: 0.65;
}
.readonly
  button[data-action]:not([data-action="takeover"]):not(
    [data-action="export"]
  ):not([data-action="exportRaw"]) {
  pointer-events: none;
  opacity: 0.5;
}
@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1600px) {
  .workspace {
    padding: 0 55px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }
  .panel-card {
    padding: 23px;
  }
  .plots {
    gap: 9px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    padding: 0 23px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .rail {
    width: 65px;
  }
  .topbar {
    gap: 20px;
  }
  .tabs {
    gap: 20px;
  }
  .plot-time {
    font-size: 7px;
  }
  .plots {
    gap: 4px;
  }
  .seed-picker {
    flex-wrap: wrap;
    overflow: visible;
  }
  .seed {
    flex: 0 0 calc(25% - 6px);
    min-width: 0;
  }
  .tools button {
    flex-direction: column;
    gap: 0;
  }
  .tool-label strong {
    font-size: 8px;
  }
  .panel-card {
    padding: 16px;
  }
  .farm-footer {
    flex-wrap: wrap;
    gap: 6px;
  }
  .farm-footer > span {
    flex-basis: 100%;
  }
  .weather {
    display: none;
  }
}
@media (max-width: 850px) {
  .rail {
    display: none;
  }
  .workspace {
    padding: 0 20px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .topbar {
    height: 85px;
  }
  .wordmark span {
    font-size: 22px;
  }
  .level-box {
    min-width: 130px;
  }
  .level-box > div {
    width: 95px;
  }
  .topbar {
    gap: 16px;
  }
  .avatar {
    display: none;
  }
  .tabs {
    gap: 22px;
  }
  .plots {
    left: 19%;
    right: 20%;
    top: 42%;
    bottom: 12%;
  }
  .scene-note {
    font-size: 8px;
  }
  .toolbox {
    padding: 13px;
  }
  .tools {
    gap: 4px;
  }
  .tools button {
    font-size: 9px;
  }
  .scene-label {
    font-size: 6px;
    padding: 5px;
  }
  .seed b {
    font-size: 8px;
  }
  .seed {
    padding: 5px 4px;
  }
  .seed svg {
    width: 22px;
  }
}
@media (max-width: 680px) {
  .workspace {
    padding: 0 15px;
  }
  .topbar {
    height: 79px;
    gap: 12px;
  }
  .wordmark {
    gap: 4px;
  }
  .wordmark svg {
    width: 29px;
  }
  .wordmark span {
    font-size: 20px;
  }
  .wordmark small {
    font-size: 6px;
    letter-spacing: 1.6px;
  }
  .level-box {
    min-width: 0;
    gap: 5px;
  }
  .level-box > div {
    width: 60px;
  }
  .level-box span:not(.level-badge) {
    font-size: 8px;
  }
  .level-badge {
    width: 28px;
    height: 32px;
    font-size: 13px;
  }
  .level-box small {
    font-size: 7px;
  }
  .wallet {
    gap: 6px;
  }
  .wallet b {
    font-size: 17px;
  }
  .wallet small {
    font-size: 8px;
  }
  .coin {
    width: 24px;
    height: 24px;
    font-size: 11px;
    border-width: 2px;
  }
  .page-heading {
    padding: 24px 0 17px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.6px;
  }
  h1 {
    font-size: 28px;
  }
  .intro {
    font-size: 11px;
  }
  .tabs {
    margin-bottom: 18px;
    gap: 22px;
  }
  .tabs button {
    font-size: 11px;
    min-height: 44px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .field-heading {
    margin-bottom: 10px;
  }
  .field-heading h2 {
    font-size: 11px;
  }
  .field-tag {
    font-size: 8px;
  }
  .farm-scene {
    aspect-ratio: 0.9;
    border-radius: 13px;
  }
  .landscape {
    object-fit: cover;
    width: 126%;
    max-width: none;
    left: -13%;
  }
  .plots {
    left: 4%;
    right: 4%;
    top: 40%;
    bottom: 6%;
    gap: 3px;
  }
  .plot-time {
    font-size: 8px;
  }
  .plot {
    border-radius: 5px;
  }
  .scene-label {
    left: 4%;
    top: 4%;
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  .scene-note {
    bottom: 3%;
    font-size: 9px;
  }
  .ranch-art {
    right: 0;
    top: 57%;
    width: 12%;
  }
  .decor-slot:nth-child(1) {
    left: 3%;
    top: 26%;
  }
  .decor-slot:nth-child(2) {
    left: 18%;
    top: 26%;
  }
  .decor-slot:nth-child(3) {
    left: 33%;
    top: 26%;
  }
  .decor-slot:nth-child(4) {
    left: 48%;
    top: 26%;
  }
  .decor-slot:nth-child(5) {
    left: 63%;
    top: 26%;
  }
  .decor-slot:nth-child(6) {
    left: 78%;
    top: 26%;
  }
  .decor-slot {
    width: 14%;
    min-height: 44px;
    height: 12%;
  }
  .toolbox {
    padding: 15px;
    margin-top: 12px;
  }
  .tool-label .eyebrow {
    font-size: 7px;
  }
  .tool-label strong {
    font-size: 8px;
  }
  .tools button {
    min-height: 49px;
    font-size: 10px;
  }
  .seed-picker {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .seed {
    flex: 0 0 94px;
    padding: 7px;
  }
  .seed svg {
    width: 27px;
  }
  .seed b {
    font-size: 9px;
  }
  .tools button span {
    font-size: 22px;
  }
  .side-panel {
    padding-top: 15px;
  }
  .panel-card {
    padding: 19px;
  }
  .panel-card h2 {
    font-size: 23px;
  }
  .panel-card p {
    font-size: 12px;
  }
  .panel-card h3 {
    font-size: 12px;
  }
  .order-head {
    font-size: 12px;
  }
  .order-head small {
    font-size: 10px;
  }
  .order-item b {
    font-size: 12px;
  }
  .order-item small,
  .reward {
    font-size: 10px;
  }
  .item p {
    font-size: 11px;
  }
  .item-meta {
    font-size: 10px;
  }
  .item h3 {
    font-size: 13px;
  }
  .item-buttons .small-button {
    font-size: 11px;
    min-height: 44px;
  }
  .item {
    grid-template-columns: 50px 1fr;
    padding: 15px 0;
  }
  .item svg {
    width: 46px;
    height: 52px;
  }
  .shop-tabs button {
    min-height: 44px;
    font-size: 11px;
  }
  .small-button {
    font-size: 11px;
    min-height: 44px;
  }
  .farm-footer {
    font-size: 9px;
  }
  .farm-footer .text-button {
    font-size: 9px;
    min-height: 44px;
  }
  .farm-footer a {
    margin-left: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .site-footer {
    margin-top: 16px;
    font-size: 8px;
    gap: 10px;
  }
  .site-footer > span {
    gap: 5px;
  }
  .site-footer button {
    font-size: 8px;
  }
  .primary,
  .secondary {
    font-size: 12px;
  }
  .session-banner {
    font-size: 11px;
  }
  .order-foot {
    gap: 10px;
  }
  .panel-eyebrow {
    font-size: 9px;
  }
  .toast {
    bottom: 16px;
    font-size: 12px;
    width: max-content;
  }
  .plot svg {
    height: 116%;
    width: 100%;
    left: 0;
  }
  .inventory-quantity {
    min-height: 44px !important;
  }
  .renew {
    width: 44px;
  }
  .guide-card:after {
    font-size: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Account entry shares the farm palette and stays readable on narrow screens. */
.login-page { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(100%,540px); padding:clamp(20px,5vw,40px); border-radius:24px; background:#fffdf6; box-shadow:0 12px 45px #31432218; text-align:center; }
.login-card img { width:100%; height:auto; border-radius:16px; }
.login-card h1 { font-size:clamp(1.6rem,5vw,2.4rem); line-height:1.2; }
.login-card p { line-height:1.65; }
.login-card .primary { width:100%; min-height:48px; }
.login-card a { color:#426735; }
#login-status { min-height:3em; }
.ranch-art svg { max-width:40px; }
