/* Farm */

.fm-login { text-align: center; }
.fm-login-art { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.fm-login-art svg { width: 70px; height: 70px; }
.fm-login-art svg:nth-child(2) { transform: translateY(-6px) rotate(4deg); }
.fm-login-art svg:first-child { transform: rotate(-8deg); }
.fm-card { padding: 16px; }
.fm-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-weight: 700; color: var(--muted); }
.fm-top b { color: var(--ink); }
.fm-ask { margin: 12px 0 10px; text-align: center; font: 600 1.45rem/1.2 var(--font-display); min-height: 1.75rem; }
.fm-ask b { text-transform: uppercase; letter-spacing: .02em; -webkit-text-stroke: .4px var(--ink); }

.fm-field {
  position: relative;
  height: 360px;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  background:
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(70, 120, 40, .13) 34px 38px),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .25), transparent 40%),
    linear-gradient(180deg, #9be36f, #6fc24c);
}
.fm-field.busy .fm-b { pointer-events: none; }
.fm-field.shake { animation: fm-shake .35s ease; }
@keyframes fm-shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.fm-b {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  filter: drop-shadow(0 4px 0 rgba(29, 27, 22, .55));
  -webkit-tap-highlight-color: transparent;
}
.fm-b svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fm-b:hover { filter: drop-shadow(0 6px 0 rgba(29, 27, 22, .55)) brightness(1.06); }
.fm-b:active { filter: drop-shadow(0 1px 0 rgba(29, 27, 22, .55)); }
.fm-b:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 8px; }

.fm-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.fm-msg p:not(.loading) { margin: 0; padding: 12px 18px; font-weight: 700; background: rgba(255, 255, 255, .88); border: 2.5px solid var(--ink); border-radius: 16px; }
.fm-icon { width: 96px; height: 96px; margin-bottom: 12px; filter: drop-shadow(0 4px 0 rgba(29, 27, 22, .35)); }
.fm-turn { animation: fm-turn 2.4s ease-in-out infinite; }
@keyframes fm-turn { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }

.fm-harvest {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 26px 16px; border: 3px solid var(--ink); border-radius: 22px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 6px 0 var(--ink);
  font: inherit; color: var(--ink); cursor: pointer;
  animation: fm-ready 1s ease-in-out infinite;
}
.fm-harvest:hover { background: #fff3c4; }
.fm-harvest:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); animation: none; }
.fm-harvest-art { width: 132px; height: 132px; margin-bottom: 4px; }
.fm-harvest span:last-child { font: 700 1.3rem/1 var(--font-display); color: #1f9d55; }

.fm-pop {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  font: 700 1.2rem/1 var(--font-display);
  color: #fff;
  -webkit-text-stroke: 1px var(--ink);
  pointer-events: none;
  animation: fm-pop .9s ease-out forwards;
}
.fm-pop .fm-drop { width: .85em; height: 1em; vertical-align: -.1em; }
@keyframes fm-pop { to { transform: translate(-50%, -160%); opacity: 0; } }

.fm-plot { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.fm-crop {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: 132px;
  padding: 6px 6px 8px;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(180deg, #dff1ff, #fffaf0 70%);
  font: inherit;
  color: var(--ink);
}
.fm-plant-svg { display: block; width: 92px; height: 92px; }
.fm-crop-t { font-weight: 800; font-size: .8rem; text-align: center; }
.fm-crop-t i { font-style: normal; text-transform: capitalize; }
button.fm-crop { cursor: pointer; box-shadow: 0 5px 0 var(--ink); animation: fm-ready 1s ease-in-out infinite; }
button.fm-crop:hover { background: linear-gradient(180deg, #fff3c4, #fffaf0 70%); }
button.fm-crop:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); animation: none; }
@keyframes fm-ready { 50% { transform: translateY(-5px) rotate(-2deg); } }

.fm-prog { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fm-prog-t { font: 600 1.1rem/1 var(--font-display); }
.fm-drops { display: flex; gap: 5px; }
.fm-drops i {
  flex: 1;
  max-width: 30px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--card);
}
.fm-drops i.on { background: #4d9dff; }
.fm-help { text-align: center; font-size: .92rem; margin: 14px auto 0; max-width: 56ch; }

@media (max-width: 560px) {
  .fm-field { height: 320px; }
  .fm-ask { font-size: 1.25rem; }
  .fm-crop { width: 108px; }
  .fm-plant-svg { width: 76px; height: 76px; }
  .fm-icon { width: 80px; height: 80px; }
  .fm-harvest-art { width: 112px; height: 112px; }
  .fm-drops { gap: 3px; }
  .fm-drops i { height: 18px; }
}

/* ------------------------------------------------------------ dark mode (see the end of assets/css/style.css) */
html[data-dark] .fm-harvest:hover { background: #3a3220; }

/* what every crop sells for */
.fm-vals { margin-top: 14px; padding: 14px 16px; }
.fm-vals-h { font: 600 1.1rem/1.2 var(--font-display); }
.fm-vals-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.fm-val { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 2px solid transparent; border-radius: 14px; background: var(--soft); text-align: center; }
.fm-val.on { border-color: var(--ink); background: var(--accent); color: #1d1b16; }
.fm-val-art { width: 44px; height: 44px; }
.fm-val i { font-style: normal; font-size: .85rem; text-transform: capitalize; }
.fm-val b { font: 700 1rem/1.1 var(--font-display); }
