@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap");
:root {
  --ink: #264d3b;
  --muted: #778073;
  --paper: #fafaf5;
  --line: #e3e7da;
  --green: #3a6a4c;
  --light: #eef3e4;
  --yellow: #ebc266;
  --coral: #ce785e;
  --shadow: 0 12px 40px #2445300d;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: #f3f5ed;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
button {
  border: 0;
  background: transparent;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #d49145;
  outline-offset: 4px;
}
button:hover:not(:disabled) {
  filter: brightness(0.97);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: Fraunces, Georgia, serif;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 500;
}
h2 {
  font-size: 23px;
  font-weight: 600;
}
h3 {
  font-size: 19px;
}
small {
  font-size: 12px;
}
.art {
  display: inline-block;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
  flex-shrink: 0;
  max-width: 100%;
}
.art-pending {
  width: 32px;
  height: 32px;
}
.animated-art {
  background-size: calc(var(--frames) * 100%) 100%;
  animation: sprite var(--speed) steps(var(--frames)) infinite;
}
.frame-animation { position: relative; overflow: hidden; }
.frame-track { display: flex; width: calc(100% * var(--frames)); height: 100%; animation: frame-track var(--speed) steps(var(--frames)) infinite; }
.frame-track img { width: calc(100% / var(--frames)); height: 100%; object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
@keyframes frame-track { to { transform: translateX(-100%); } }
@keyframes sprite {
  to {
    background-position: calc(var(--frames) * 100% / (var(--frames) - 1)) 0;
  }
}
.topbar {
  height: 94px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 30px;
  letter-spacing: -1.2px;
  min-width: 240px;
}
.brand small {
  display: block;
  font:
    9px "DM Sans",
    sans-serif;
  font-weight: 700;
  letter-spacing: 2.1px;
  margin-top: 4px;
}
.brand-mark .art {
  width: 44px;
  height: 46px;
}
.resources {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-end;
  flex: 1;
}
.resource {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  background: #f0f2e9;
  border: 1px solid #e4e8da;
  border-radius: 12px;
  min-width: 92px;
}
.resource .art {
  height: 27px;
  width: 27px;
}
.resource strong {
  font-size: 16px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.resource small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.resource.level {
  min-width: 145px;
  background: #e6eddf;
}
.resource.level .level-badge {
  border-radius: 50%;
  background: var(--green);
  color: white;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.resource .mini-progress {
  height: 3px;
  width: 76px;
  margin-top: 5px;
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 23px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.workspace {
  display: grid;
  grid-template-columns: 99px minmax(0, 1fr) 300px;
  min-height: calc(100vh - 94px);
}
.rail {
  padding: 25px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.rail-spacer {
  min-height: 20px;
  flex: 1;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 3px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #788273;
  min-height: 69px;
}
.nav-item .art {
  width: 31px;
  height: 30px;
}
.nav-item.active,
.nav-item:hover {
  background: #e8eedc;
  color: var(--ink);
}
.main {
  padding: 28px 28px 14px;
  min-width: 0;
}
.farm-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #849077;
  margin-bottom: 7px;
}
.season-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fffaf0;
  border: 1px solid #e9e2cb;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 11px;
  white-space: nowrap;
}
.season-pill .art {
  width: 23px;
  height: 23px;
}
.farm-card {
  background: var(--paper);
  border: 1px solid #d7dfcb;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.farm-topline,
.farm-bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 11px;
}
.farm-topline {
  border-bottom: 1px solid #d7dfcb;
}
.farm-topline > span:first-child {
  font-weight: 700;
}
.farm-topline > span:last-child {
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #73a461;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.farm-scroll {
  width: 100%;
  height: 510px;
  overflow: auto;
  position: relative;
  background: #a7c978;
  scrollbar-width: thin;
  scrollbar-color: #7c9c59 #bcd59b;
}
.farm-world {
  width: 900px;
  height: 730px;
  position: relative;
  overflow: hidden;
  transform-origin: 0 0;
  background: #a7c978;
  isolation: isolate;
}
.environment {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.terrain-tile {
  position: absolute;
  width: 64px;
  height: 64px;
}
.scene-prop {
  position: absolute;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}
.world-objects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.world-objects button {
  pointer-events: auto;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 80px;
  height: 90px;
  border-radius: 12px;
  padding: 0;
}
.world-objects button:hover {
  background: #ffffee38;
  outline: 2px solid #ffffce9c;
}
.world-objects button > .art {
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 3px 0 #41623524);
}
.world-objects button > .animal-sprite { width: 48px; height: 48px; }
.world-objects .farm-helper > .art { width: 36px; height: 45px; }
.world-label {
  font-size: 10px;
  background: #fff9e9ed;
  border: 1px solid #e3d9b6;
  padding: 3px 7px;
  white-space: nowrap;
  border-radius: 5px;
  color: #42563a;
}
.object-ready {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff6bb;
  border-radius: 50%;
  padding: 3px 6px;
  font-size: 12px;
  box-shadow: 0 2px 4px #274e3c25;
}
.field {
  position: absolute;
  left: 252px;
  top: 190px;
  display: grid;
  grid-template-columns: repeat(6, 58px);
  grid-auto-rows: 65px;
  gap: 4px;
  z-index: 3;
}
.plot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 65px;
  border: 1px solid #63884544;
  border-radius: 3px;
  transition:
    filter 0.12s,
    outline 0.12s;
  background: #5b412522;
  isolation: isolate;
}
.plot .soil {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
  inset: 0;
  z-index: -1;
}
.plot > .crop-art {
  width: 59px;
  height: 59px;
  align-self: flex-end;
  margin-bottom: 11px;
  pointer-events: none;
}
.plot .sprout-stage {
  width: 39px;
  height: 39px;
}
.plot .seed-stage {
  width: 21px;
  height: 21px;
}
.plot:hover {
  outline: 2px solid #fff5c0;
  z-index: 4;
}
.plot.selected {
  outline: 2px solid #fff5c0;
  box-shadow: 0 0 0 4px #54683b44;
}
.plot.ready {
  box-shadow: inset 0 0 0 1px #f2d38466;
}
.plot.ready .crop-art:not(.animated-art) {
  animation: crop-sway 2.3s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.plot-label {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  font-size: 9px;
  color: #fff9e9;
  text-shadow: 0 1px 2px #2c4328;
  text-align: center;
  line-height: 1.3;
}
.plot .crop-progress {
  position: absolute;
  bottom: 14px;
  width: 36px;
  height: 3px;
  background: #59452770;
  border-radius: 3px;
}
.crop-progress i {
  height: 100%;
  display: block;
  background: #dfde8c;
  border-radius: 3px;
}
.plot .water-indicator {
  position: absolute;
  left: 2px;
  top: 2px;
  font-size: 9px;
  color: #d6f5f7;
}
.plot .ready-mark {
  position: absolute;
  right: 1px;
  top: -3px;
  width: 18px;
  height: 18px;
  background: #fff4b6;
  border: 1px solid #d6b856;
  border-radius: 50%;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.plot .untilled-label {
  font-size: 17px;
  color: #e7f0d2;
}
.plot .empty-label {
  font-size: 13px;
  color: #edebc5a6;
}
.ambience {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.cloud {
  position: absolute;
  width: 180px;
  opacity: 0.55;
  animation: drift 100s linear infinite;
}
.butterfly {
  position: absolute;
  width: 20px;
  animation: flutter 12s ease-in-out infinite;
}
.bird {
  position: absolute;
  width: 22px;
  animation: drift 26s linear infinite;
}
.leaf {
  position: absolute;
  width: 13px;
  animation: fall 16s linear infinite;
}
.rain {
  position: absolute;
  width: 12px;
  animation: fall 1.3s linear infinite;
  opacity: 0.5;
}
.night-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: #14255a;
  opacity: 0;
  z-index: 6;
  mix-blend-mode: multiply;
  transition: opacity 3s;
}
.area-sign {
  position: absolute;
  left: 33px;
  bottom: 35px;
  color: #436035;
  font-size: 11px;
  letter-spacing: 1.5px;
  z-index: 4;
}
.area-sign small {
  display: block;
  font-family: Fraunces, serif;
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 5px;
}
.expansion-sign {
  position: absolute;
  right: 32px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5eed4e6;
  border: 1px solid #d0c796;
  box-shadow: 0 3px 0 #617b4533;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 11px;
  z-index: 7;
}
.expansion-sign .art {
  width: 25px;
  height: 25px;
}
.expansion-sign small {
  display: block;
  color: #869269;
  margin-top: 3px;
  font-size: 10px;
}
.farm-zoom {
  display: flex;
  position: absolute;
  right: 17px;
  top: 15px;
  border-radius: 7px;
  background: #fffef0df;
  z-index: 10;
  box-shadow: 0 2px 6px #294e3c1f;
  overflow: hidden;
}
.farm-zoom button {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-right: 1px solid #dfe5d2;
}
.farm-zoom button:nth-child(2) {
  font-size: 10px;
}
.farm-bottomline {
  font-size: 11px;
  padding: 13px 17px;
}
.farm-bottomline > span {
  color: var(--muted);
}
.text-button {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  padding: 0;
}
.text-button span {
  margin-left: 8px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fafbf6;
  border: 1px solid var(--line);
  border-radius: 15px;
  margin: 15px auto 0;
  padding: 9px 13px;
  max-width: 580px;
  box-shadow: var(--shadow);
}
.tool {
  min-width: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 10px;
  color: #808773;
  position: relative;
  font-size: 10px;
}
.tool .art {
  width: 32px;
  height: 32px;
}
.tool.active {
  background: #e8eedc;
  border-color: #b8cba6;
  color: var(--green);
}
.tool-key {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 8px;
  opacity: 0.55;
}
.toolbar-separator {
  height: 35px;
  width: 1px;
  background: var(--line);
  margin: 0 4px;
}
.seed-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  font-size: 10px;
  gap: 3px;
}
.seed-picker .art {
  width: 30px;
  height: 30px;
}
.below-farm {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8a9381;
  margin-top: 15px;
  gap: 12px;
}
.below-farm .live-dot {
  width: 5px;
  height: 5px;
}
.sidebar {
  border-left: 1px solid var(--line);
  background: #fafbf5;
  padding: 29px 21px;
}
.welcome-card {
  background: #edf1df;
  border: 1px solid #dbe4c8;
  border-radius: 13px;
  padding: 18px;
  min-height: 168px;
}
.welcome-card .welcome-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.welcome-card .art {
  width: 42px;
  height: 42px;
}
.welcome-card h2 {
  font-size: 21px;
}
.welcome-card p {
  font-size: 12px;
  line-height: 1.75;
  color: #728060;
}
.welcome-card .tutorial-progress {
  display: flex;
  gap: 4px;
  margin-top: 15px;
}
.tutorial-progress i {
  height: 3px;
  width: 25px;
  border-radius: 2px;
  background: #cbd7b9;
}
.tutorial-progress i.done {
  background: #63844d;
}
.side-section {
  margin-top: 28px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: 20px;
}
.section-title .text-button {
  font-size: 10px;
}
.order-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
.avatar {
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eee9d9;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar .art {
  width: 40px;
  height: 43px;
}
.order-preview .order-text {
  flex: 1;
}
.order-preview strong {
  font-size: 12px;
  display: block;
}
.order-preview small {
  display: block;
  font-size: 10px;
  color: #8d9584;
  margin-top: 5px;
}
.order-reward {
  font-size: 12px;
  color: #a38539;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}
.order-reward .art {
  width: 16px;
  height: 16px;
}
.quest-preview {
  margin: 15px 0;
}
.quest-preview header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 7px;
}
.quest-preview header span:last-child {
  color: #8b967d;
  font-size: 10px;
}
.mini-progress {
  background: #e1e6d6;
  height: 5px;
  border-radius: 10px;
  overflow: hidden;
}
.mini-progress i {
  display: block;
  background: #85a267;
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s;
}
.festival-card {
  position: relative;
  text-align: left;
  border: 1px solid #e2dec7;
  background: #f2ecd7;
  border-radius: 12px;
  margin-top: 27px;
  padding: 17px 14px;
  display: flex;
  width: 100%;
  gap: 6px;
  align-items: center;
  overflow: hidden;
}
.festival-card > .art {
  width: 44px;
  height: 64px;
}
.festival-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.festival-card strong {
  font-family: Fraunces, serif;
  font-size: 20px;
  font-weight: 500;
  display: block;
}
.festival-card small {
  font-size: 10px;
  color: #8d8b6c;
  display: block;
  margin-top: 9px;
}
.context-panel {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 16px 19px;
  border: 1px solid var(--line);
  background: #fafbf6;
  border-radius: 12px;
}
.context-panel > .art {
  width: 50px;
  height: 50px;
}
.context-copy {
  flex: 1;
  min-width: 0;
}
.context-copy h3 {
  font-size: 18px;
  margin-bottom: 5px;
}
.context-copy p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.context-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.button {
  background: var(--green);
  color: #fff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  padding: 11px 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 40px;
}
.button.secondary {
  background: #e9eedf;
  color: var(--ink);
}
.button.danger {
  background: #b65e4c;
}
.button.gold {
  background: #e6bd60;
  color: #584922;
}
.button .art {
  width: 18px;
  height: 18px;
}
.button.small {
  font-size: 11px;
  padding: 8px 11px;
  min-height: 33px;
}
.art-status {
  padding: 12px 16px;
  background: #fff5d8;
  border: 1px solid #e8d599;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 20px;
  border-radius: 9px;
}
dialog {
  border: 1px solid #dbe2d0;
  border-radius: 20px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(860px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  box-shadow: 0 30px 120px #123c3240;
  overflow: auto;
}
dialog::backdrop {
  background: #183b3059;
  backdrop-filter: blur(5px);
}
.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  z-index: 3;
}
.modal-head h2 {
  font-size: 28px;
}
.modal-head .eyebrow {
  font-size: 9px;
}
#modal-body {
  padding: 23px 28px 28px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.tab {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}
.tab.active {
  background: #e5ecd8;
  color: var(--green);
  font-weight: 700;
}
.panel-intro {
  font-size: 14px;
  color: #7a856f;
  line-height: 1.75;
  margin-bottom: 21px;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.item-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffef9;
  padding: 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}
.item-card.locked {
  background: #f0f2e9;
}
.item-card > .art {
  width: 62px;
  height: 64px;
  align-self: center;
  margin: 4px 0 13px;
}
.item-card h3 {
  font-size: 18px;
  line-height: 1.3;
}
.item-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0 12px;
  flex: 1;
}
.item-card .button {
  width: 100%;
  margin-top: 12px;
}
.item-card .badge {
  font-size: 9px;
  padding: 4px 6px;
  position: absolute;
  top: 10px;
  right: 10px;
}
.badge {
  border-radius: 5px;
  background: #e9efdc;
  color: #6c8254;
  font-size: 10px;
  padding: 4px 7px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.rare {
  background: #ece8f5;
  color: #8b75a6;
}
.badge.gold {
  background: #f8eecb;
  color: #ad8b37;
}
.item-meta {
  font-size: 11px;
  color: #839071;
  line-height: 1.9;
}
.item-meta strong {
  color: var(--ink);
}
.item-controls {
  display: flex;
  width: 100%;
  gap: 5px;
  margin-top: 10px;
}
.item-controls .button {
  margin: 0;
}
.item-card .mini-progress {
  width: 100%;
  margin-top: 10px;
}
.split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.split-row:last-child {
  border-bottom: 0;
}
.split-row .art {
  width: 42px;
  height: 42px;
}
.row-copy {
  flex: 1;
}
.row-copy strong {
  font-size: 14px;
}
.row-copy p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 4px;
}
.empty-state {
  text-align: center;
  padding: 34px 22px;
  border: 1px dashed #cdd8bd;
  border-radius: 14px;
  background: #f0f4e7;
}
.empty-state .art {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}
.empty-state h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto 18px;
}
.recipe {
  font-size: 12px;
  line-height: 1.8;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff2e7;
  margin-top: 10px;
  width: 100%;
}
.recipe.missing {
  color: #b07b5d;
}
.order-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}
.order-card > .avatar {
  width: 62px;
  height: 67px;
}
.order-card > .avatar .art {
  width: 60px;
  height: 66px;
}
.order-card .row-copy > small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.order-card blockquote {
  font-family: Fraunces, serif;
  font-size: 15px;
  margin: 12px 0;
  color: #8c997b;
  font-style: italic;
}
.delivery-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.delivery-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f0f3e6;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
}
.delivery-item .art {
  width: 24px;
  height: 24px;
}
.delivery-item.missing {
  color: #b07655;
}
.order-card .order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.order-card .order-footer > span {
  font-size: 12px;
  color: #9a843f;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin: 22px 0;
}
.setting-row h3 {
  font-size: 18px;
}
.setting-row p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 4px;
}
.switch {
  width: 42px;
  height: 25px;
  background: #d6dfc9;
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
}
.switch:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 19px;
  height: 19px;
  background: white;
  border-radius: 50%;
  transition: transform 0.15s;
}
.switch[aria-checked="true"] {
  background: var(--green);
}
.switch[aria-checked="true"]:after {
  transform: translateX(17px);
}
.info-box {
  background: #edf1e2;
  padding: 18px 20px;
  border: 1px solid #dae2ca;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.8;
  margin: 16px 0;
}
.info-box strong {
  display: block;
  margin-bottom: 3px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.stat {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 9px;
  background: #fffef9;
}
.stat strong {
  font-family: Fraunces, serif;
  font-size: 29px;
  display: block;
  margin-bottom: 6px;
}
.stat small {
  color: var(--muted);
  font-size: 11px;
}
.section-heading {
  margin: 25px 0 13px;
}
.collection-entry {
  filter: grayscale(1);
  opacity: 0.45;
}
.collection-entry.found {
  filter: none;
  opacity: 1;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
kbd {
  font:
    11px "DM Sans",
    sans-serif;
  border: 1px solid #d6deca;
  background: white;
  border-radius: 4px;
  padding: 3px 6px;
  margin-right: 8px;
  color: var(--ink);
}
.toasts {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100;
  pointer-events: none;
  width: min(90vw, 520px);
}
.toast {
  background: #244e3ef5;
  color: white;
  border: 1px solid #75936a;
  padding: 13px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px #203c382f;
  font-size: 13px;
  text-align: center;
  animation: toast-in 0.25s ease-out;
}
.toast.error {
  background: #9b614b;
}
.harvest-popup {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  padding: 7px 10px;
  background: #fff9e7;
  color: #43623c;
  border: 1px solid #d8d5a8;
  border-radius: 8px;
  box-shadow: 0 3px 9px #274e3c22;
  font-size: 12px;
  font-weight: 700;
  animation: pop-up 1.4s ease-out forwards;
  white-space: nowrap;
}
.harvest-popup .art {
  width: 20px;
  height: 20px;
}
.celebration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 101;
  overflow: hidden;
}
.celebration .art {
  position: absolute;
  top: -40px;
  width: 18px;
  animation: confetti 2s ease-in forwards;
}
.reduced-motion *,
.reduced-motion *:before,
.reduced-motion *:after {
  animation: none !important;
  transition: none !important;
}
.reduced-motion .harvest-popup {
  opacity: 1;
}
@keyframes crop-sway {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}
@keyframes drift {
  from {
    transform: translateX(-240px);
  }
  to {
    transform: translateX(1100px);
  }
}
@keyframes flutter {
  0%,
  100% {
    transform: translate(0, 0);
  }
  30% {
    transform: translate(40px, -20px);
  }
  70% {
    transform: translate(-25px, 15px);
  }
}
@keyframes fall {
  from {
    transform: translate(0, -60px);
  }
  to {
    transform: translate(90px, 650px);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pop-up {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translateY(-10px) scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-60px);
  }
}
@keyframes confetti {
  to {
    transform: translateY(100vh) rotate(240deg);
    opacity: 0;
  }
}
@media (min-width: 1500px) {
  .main {
    padding: 34px 42px 20px;
  }
  .sidebar {
    padding: 34px 26px;
  }
  .workspace {
    grid-template-columns: 110px minmax(0, 1fr) 325px;
  }
  .farm-scroll {
    height: 610px;
  }
  .farm-world {
    width: 100%;
    min-width: 900px;
  }
  .field {
    left: 31%;
    top: 190px;
  }
  .farm-heading {
    margin-bottom: 27px;
  }
  .farm-card {
    max-width: 1200px;
  }
  .context-panel {
    max-width: 1200px;
  }
}
@media (max-width: 1190px) {
  .topbar {
    padding: 0 18px;
    gap: 12px;
  }
  .brand {
    min-width: 195px;
    font-size: 27px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1.7px;
  }
  .resources {
    gap: 6px;
  }
  .resource {
    min-width: 76px;
    padding: 8px 9px;
  }
  .resource .art {
    width: 22px;
    height: 22px;
  }
  .resource.level {
    min-width: 116px;
  }
  .resource .mini-progress {
    width: 56px;
  }
  .workspace {
    grid-template-columns: 80px minmax(0, 1fr) 250px;
  }
  .main {
    padding: 25px 18px 16px;
  }
  .sidebar {
    padding: 26px 16px;
  }
  .nav-item {
    font-size: 10px;
  }
  .farm-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  h1 {
    font-size: 27px;
  }
  .farm-scroll {
    height: 480px;
  }
  .toolbar {
    gap: 2px;
    padding: 7px;
  }
  .tool {
    min-width: 55px;
    padding: 6px 7px;
  }
  .resource.storage {
    display: none;
  }
}
@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .sidebar {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-left: 0;
    padding: 10px 20px 30px;
    background: transparent;
  }
  .welcome-card {
    display: none;
  }
  .side-section {
    margin: 0;
  }
  .festival-card {
    grid-column: span 2;
    margin: 0;
  }
  .main {
    padding-bottom: 20px;
  }
  .rail {
    grid-row: span 2;
  }
  .farm-scroll {
    height: 510px;
  }
  .brand {
    min-width: 170px;
    font-size: 25px;
  }
  .brand small {
    display: none;
  }
  .brand-mark .art {
    width: 35px;
    height: 38px;
  }
  .resource.energy {
    display: none;
  }
  .context-panel {
    margin-top: 17px;
  }
  .below-farm {
    font-size: 10px;
  }
  .main .farm-heading {
    flex-wrap: nowrap;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 116px;
    align-items: flex-start;
    padding: 14px 16px;
    position: relative;
  }
  .brand {
    font-size: 25px;
  }
  .brand-mark .art {
    width: 29px;
    height: 29px;
  }
  .topbar > .icon-button {
    margin-left: auto;
    width: 30px;
    height: 30px;
  }
  .resources {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    justify-content: space-between;
    gap: 5px;
  }
  .resource {
    border-radius: 8px;
    min-width: 0;
    flex: 1;
    padding: 5px 9px;
    gap: 6px;
    min-height: 38px;
  }
  .resource strong {
    font-size: 13px;
  }
  .resource small {
    display: none;
  }
  .resource .art {
    width: 22px;
    height: 22px;
  }
  .resource.level {
    min-width: 95px;
  }
  .resource.level .level-badge {
    height: 24px;
    width: 24px;
    font-size: 11px;
  }
  .resource .mini-progress {
    width: 40px;
  }
  .resource.energy {
    display: flex;
  }
  .resource.energy strong {
    font-size: 12px;
  }
  .resource.energy .art {
    width: 18px;
    height: 18px;
  }
  .workspace {
    display: block;
    min-height: 0;
  }
  .rail {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding: 6px 5px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 30px #244e3c0a;
  }
  .rail .nav-item {
    min-height: 48px;
    flex: 1;
    padding: 4px 3px;
    gap: 3px;
    font-size: 9px;
    border-radius: 9px;
  }
  .rail .nav-item .art {
    width: 24px;
    height: 24px;
  }
  .rail-spacer {
    display: none;
  }
  .rail .nav-item:nth-of-type(4),
  .rail .nav-item:nth-of-type(8) {
    display: none;
  }
  .main {
    padding: 21px 13px 14px;
  }
  .farm-heading {
    margin-bottom: 17px;
  }
  .farm-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  h1 {
    font-size: 23px;
    letter-spacing: -0.6px;
  }
  .season-pill {
    font-size: 9px;
    padding: 6px 8px;
    gap: 4px;
  }
  .season-pill .art {
    width: 18px;
    height: 18px;
  }
  .farm-scroll {
    height: 410px;
  }
  .farm-world {
    width: 900px;
    height: 730px;
  }
  .field {
    left: 252px;
    top: 190px;
  }
  .farm-topline {
    padding: 12px;
    font-size: 10px;
  }
  .farm-topline > span:last-child {
    font-size: 9px;
  }
  .farm-bottomline {
    padding: 12px;
    font-size: 9px;
  }
  .farm-bottomline .text-button {
    font-size: 9px;
  }
  .toolbar {
    border-radius: 12px;
    margin-top: 11px;
    padding: 7px 3px;
    gap: 0;
    justify-content: space-evenly;
  }
  .tool {
    min-width: 43px;
    padding: 5px 6px;
    font-size: 9px;
  }
  .tool .art {
    width: 27px;
    height: 27px;
  }
  .tool-key {
    display: none;
  }
  .toolbar-separator {
    margin: 0 2px;
  }
  .seed-picker {
    font-size: 9px;
    padding: 4px;
  }
  .seed-picker .art {
    width: 27px;
    height: 27px;
  }
  .below-farm {
    font-size: 8px;
    gap: 4px;
    margin-top: 12px;
  }
  .context-panel {
    padding: 13px;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 86px;
  }
  .context-panel > .art {
    width: 39px;
    height: 39px;
  }
  .context-copy h3 {
    font-size: 17px;
  }
  .context-copy p {
    font-size: 11px;
  }
  .context-actions {
    margin-left: auto;
  }
  .context-actions .button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .sidebar {
    display: block;
    padding: 5px 16px 95px;
  }
  .sidebar .side-section {
    margin: 22px 0;
  }
  .sidebar .festival-card {
    margin-top: 23px;
  }
  .order-preview {
    padding: 12px 0;
  }
  .section-title h2 {
    font-size: 22px;
  }
  .section-title .text-button {
    font-size: 12px;
  }
  .order-preview strong {
    font-size: 14px;
  }
  .order-preview small {
    font-size: 12px;
  }
  .quest-preview header {
    font-size: 13px;
  }
  .quest-preview header span:last-child {
    font-size: 12px;
  }
  .festival-card .eyebrow {
    font-size: 9px;
  }
  .festival-card small {
    font-size: 12px;
  }
  .festival-card > .art {
    width: 57px;
    height: 64px;
  }
  .welcome-card {
    display: block;
    margin-top: 10px;
    min-height: 0;
  }
  .welcome-card .welcome-top {
    margin-bottom: 5px;
  }
  .welcome-card p {
    font-size: 13px;
  }
  dialog {
    width: calc(100vw - 18px);
    max-height: 89vh;
    border-radius: 16px;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-head h2 {
    font-size: 26px;
  }
  #modal-body {
    padding: 20px 16px;
  }
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .item-card {
    padding: 13px;
  }
  .item-card h3 {
    font-size: 17px;
  }
  .item-card p {
    font-size: 12px;
  }
  .item-card .button {
    font-size: 11px;
    padding: 10px 7px;
  }
  .tabs {
    gap: 3px;
  }
  .tab {
    font-size: 12px;
    padding: 8px 10px;
  }
  .order-card {
    padding: 15px;
    gap: 10px;
  }
  .order-card > .avatar {
    width: 44px;
    height: 50px;
  }
  .order-card > .avatar .art {
    width: 43px;
    height: 49px;
  }
  .order-card .order-footer {
    flex-wrap: wrap;
  }
  .order-card .order-footer .button {
    width: 100%;
  }
  .stats-grid {
    gap: 7px;
  }
  .stat {
    padding: 15px 5px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat small {
    font-size: 10px;
  }
  .toasts {
    bottom: 84px;
  }
  .setting-row {
    gap: 15px;
  }
  .shortcut-grid {
    grid-template-columns: 1fr;
  }
  .split-row .button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .panel-intro {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.scene-prop > .art {
  width: 100%;
  height: 100%;
}
.plot-effect {
  position: absolute;
  width: 70px;
  height: 80px;
  z-index: 15;
  pointer-events: none;
}
.plot-effect > .art {
  width: 100%;
  height: 100%;
}
@media (min-width: 981px) and (max-height: 850px) {
  .farm-scroll {
    height: clamp(280px, calc(100vh - 425px), 420px);
  }
  .main {
    padding-top: 21px;
  }
  .farm-heading {
    margin-bottom: 16px;
  }
  .farm-world {
    zoom: 0.8;
  }
  .toolbar {
    margin-top: 11px;
  }
  .farm-bottomline {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
