body {
  background: radial-gradient(ellipse at 70% 12%, #46584a, transparent 55%), #203636;
}
.orchard-home {
  background:
    linear-gradient(90deg, #173c31ed, #254d3988 54%, transparent),
    url(assets/swarm-orchard.webp) center/cover;
  border-radius: 15px;
  border: 2px solid #8aab80;
  aspect-ratio: 3;
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: clamp(20px, 4vw, 48px);
  margin: 16px 0;
}
.orchard-home > div {
  max-width: 53%;
}
.orchard-home h1 {
  font: 700 clamp(35px, 5.4vw, 65px)/1 var(--pixel);
  color: #fff4b7;
  margin: 4px 0;
}
.orchard-home p {
  margin: 5px 0 15px;
  color: #fffae3;
}
.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.routes a {
  padding: 12px;
  background: #354e43;
  border: 1.5px solid #95a78b;
  border-radius: 9px;
  text-decoration: none;
}
.routes strong,
.routes small {
  display: block;
}
.routes strong {
  font: 700 24px var(--pixel);
  margin: 4px 0;
}
.orchard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(265px, 0.84fr);
  gap: 14px;
  align-items: start;
}
.playfield {
  background: #f6ecd2;
  color: #374936;
  border: 2px solid #a49b72;
  border-radius: 12px;
  overflow: hidden;
}
.map-status {
  padding: 7px 13px;
  background: #2a4e43;
  color: #fdf2c6;
  font-weight: 850;
}
#meadow {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.83;
  min-height: 215px;
  background: #b7d88b url(assets/swarm-orchard.webp) center/100% 100%;
  border-bottom: 1px solid #8a9777;
  touch-action: manipulation;
  outline-offset: -4px;
  overflow: hidden;
}
#meadow:focus-visible {
  outline: 3px dashed #185845;
}
.station {
  position: absolute;
  transform: translate(-50%, -52%);
  border-radius: 8px;
  background: #fff3cced;
  color: #344035;
  border: 1.5px solid #695e42;
  font: 800 14px var(--body, sans-serif);
  padding: 3px 6px;
  box-shadow: 0 2px #716d44;
  text-align: center;
}
.station b {
  display: block;
  font: 700 21px/1 var(--pixel);
  color: #6e4d2e;
}
.station.near {
  background: #ffe098;
  outline: 2px solid #487754;
  outline-offset: 2px;
}
.orchard-cat {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -75%);
  width: clamp(31px, 5.4vw, 59px);
  aspect-ratio: 1;
  pointer-events: none;
}
.orchard-cat i {
  display: block;
  width: 100%;
  height: 100%;
  background-size: 400% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 1px #3a433765);
}
.orchard-cat.michi i {
  background-image: url(assets/michi-idle.webp);
}
.orchard-cat.koko i,
.orchard-cat.pip i {
  background-image: url(assets/koko-idle.webp);
}
.orchard-cat.walking.michi i {
  background-image: url(assets/michi-walk.webp);
}
.orchard-cat.walking.koko i {
  background-image: url(assets/koko-walk.webp);
}
.orchard-cat.walking i,
.orchard-cat.travel i {
  animation: paws 0.44s steps(3, end) infinite alternate;
}
.orchard-cat.face-left i {
  transform: scaleX(-1);
}
.orchard-cat span {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  font: 800 11px sans-serif;
  color: white;
  white-space: nowrap;
  background: #2b4c3dee;
  padding: 1px 4px;
  border-radius: 5px;
}
.orchard-cat.pip i {
  filter: sepia(0.5) brightness(1.45);
}
#scouts .orchard-cat {
  width: clamp(26px, 4vw, 46px);
  transition:
    left 0.5s,
    top 0.5s;
}
@keyframes paws {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .orchard-cat.walking i,
  .orchard-cat.travel i {
    animation: none;
  }
  #scouts .orchard-cat {
    transition: none;
  }
}
.map-controls {
  font-size: 0.89rem;
  margin: 0;
  padding: 6px 12px;
  background: #e1e7ce;
}
#controls,
#receipts {
  padding: 8px 13px;
}
#receipts:empty {
  display: none;
}
#controls .mini {
  color: #496b48;
}
#controls h2,
#receipts h3 {
  font: 700 23px var(--pixel);
  margin: 3px 0;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 34px;
}
.action-row p,
.job {
  width: 100%;
  margin: 3px 0;
}
.job > b {
  display: inline-block;
  min-width: 42px;
}
.job button {
  margin-right: 4px;
}
.action-row button,
.reset {
  font: 750 15px var(--body, sans-serif);
  border-radius: 5px;
  border: 1px solid #859276;
  background: #fff8dc;
  color: #354c39;
  min-height: 36px;
  padding: 5px 9px;
}
.action-row button[aria-pressed='true'] {
  background: #35624a;
  color: #fff5ce;
}
#message {
  border-left: 3px solid #92ac77;
  background: #e5ebd4;
  padding: 7px 9px;
  margin: 7px 0 1px;
}
#receipts ul {
  margin: 3px 0;
  padding-left: 22px;
}
.reset {
  margin: 0 12px 10px;
}
.sr {
  width: 1px;
  height: 1px;
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
}
@media (max-width: 750px) {
  .orchard-grid {
    grid-template-columns: 1fr;
  }
  .orchard-home > div {
    max-width: 80%;
  }
  .orchard-home {
    aspect-ratio: auto;
  }
  .routes {
    grid-template-columns: 1fr;
  }
  .station {
    font-size: 11px;
  }
  .station b {
    font-size: 17px;
  }
  #meadow {
    min-height: 205px;
  }
  .action-row button {
    min-height: 40px;
  }
}
