.motion-fly {
  position: fixed;
  z-index: 81;
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px #23160a8c);
}

.motion-seed {
  position: absolute;
  z-index: 2;
  left: calc(50% - 4px);
  bottom: 15px;
  width: 8px;
  height: 10px;
  border-radius: 70% 35% 70% 45%;
  background: linear-gradient(130deg, #ffe19e, #af753d);
  box-shadow: 0 1px 2px #342111;
  pointer-events: none;
  animation: motion-seed-drop 410ms var(--seed-delay, 0ms) ease-in both;
}

.motion-seed::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid #efc484;
  border-radius: 50%;
  animation: motion-soil-ring 290ms calc(var(--seed-delay, 0ms) + 220ms) ease-out both;
}

.crop-card .plot-scene.is-sprouting img {
  animation: motion-sprout 470ms calc(var(--seed-delay, 0ms) + 220ms) cubic-bezier(.22,.83,.32,1.12) both;
}

@keyframes motion-seed-drop {
  0% { opacity: 0; transform: translateY(-43px) rotate(125deg); }
  16% { opacity: 1; }
  61% { opacity: 1; transform: translateY(0) rotate(-35deg); }
  75% { opacity: 1; transform: translateY(2px) scale(.74); }
  100% { opacity: 0; transform: translateY(2px) scale(.1); }
}
@keyframes motion-soil-ring {
  0% { opacity: 0; transform: scale(.3); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: scale(3.5, 1.7); }
}
@keyframes motion-sprout {
  0% { opacity: 0; transform: translateY(8px) scale(.45, .15); }
  64% { opacity: 1; transform: translateY(-3px) scale(.88, 1.13); }
  82% { transform: translateY(1px) scale(1.03, .93); }
}

.road-fence, .road-puddles {
  position: absolute;
  left: 0;
  width: calc(100% + 64px);
}

.road-fence {
  bottom: 34%;
  height: 16px;
  background:
    repeating-linear-gradient(90deg, #654a33 0 3px, #b99262 3px 6px, transparent 6px 32px),
    linear-gradient(transparent 3px, #c3a071 4px 6px, transparent 6px 10px, #96704e 10px 12px, transparent 12px);
}

.road-puddles, .road-wheel-spray { display: none; }
.road-puddles {
  top: 72%;
  height: 17px;
  background: radial-gradient(ellipse 15px 4px at 17px 66%, #d2e1d2 0 20%, #879598 27% 73%, transparent 88%) 0 0 / 64px 17px;
}

.road-wheel-spray {
  position: absolute;
  bottom: 8px;
  left: -43px;
  width: 40px;
  height: 19px;
  background:
    radial-gradient(circle at 72% 18%, #d9eaf2 0 1.3px, transparent 2px),
    radial-gradient(circle at 39% 27%, #c3dce7 0 1.8px, transparent 2.5px),
    radial-gradient(circle at 53% 63%, #e5edf0 0 1.2px, transparent 2px),
    radial-gradient(circle at 14% 73%, #dae8f1 0 1px, transparent 1.8px);
  opacity: 0;
}

body[data-farm-season="autumn"] :is(.road-puddles, .road-wheel-spray) { display: block; }
.road-stop { transition: opacity 300ms ease, transform 350ms ease; }
.delivery-road[data-phase="depart"] .road-stop-town { opacity: .42; }
.delivery-road[data-phase="field"] .road-stop { opacity: .58; }
.delivery-road[data-phase="approach"] .road-stop-farm,
.delivery-road.has-arrived .road-stop-farm { opacity: .42; }
.delivery-road[data-phase="approach"] .road-stop-town { transform: scale(1.09); }
.delivery-road.has-arrived .road-stop-town { transform: scale(1.12); }
.delivery-road.is-driving { --travel-pace: 1; }
.delivery-road:is([data-phase="depart"], [data-phase="approach"]) { --travel-pace: 1.75; }

.crop-section { position: relative; isolation: isolate; overflow: hidden; }
.farm-atmosphere {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: min(280px, 46%);
  pointer-events: none;
  background: var(--weather-art, none);
  background-size: var(--weather-size, auto);
  opacity: .14;
  mask-image: linear-gradient(#000 20%, transparent 100%);
}

body[data-farm-season="winter"] .farm-atmosphere {
  z-index: -1;
  height: 100%;
  mask-image: linear-gradient(transparent, #000 40%, transparent);
}

@keyframes motion-wheel-spray {
  0%, 43% { opacity: 0; transform: translate(5px, 6px) scale(.55); }
  56% { opacity: .9; }
  80%, 100% { opacity: 0; transform: translate(-12px, -7px) scale(1.2); }
}
@keyframes motion-park {
  35% { transform: translateY(1px) rotate(1.1deg); }
  67% { transform: translateY(-1px) rotate(-.6deg); }
}
@keyframes motion-unlock {
  0% { opacity: 0; transform: translateY(6px) scale(.88); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.04); }
}
@keyframes motion-tab-in {
  from { opacity: .55; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .screen.on.screen-arriving > :not(.scrn-head) { animation: motion-tab-in 210ms ease-out; }
  body.hay-farm-mode #app :is(.pill, .btn-full, .farm-order-deliver, .order-choice-submit, .nav button):active:not(:disabled) {
    transform: translateY(2px) scale(.98);
  }
  .delivery-road.is-driving .road-fence,
  .delivery-road.is-driving .road-puddles { animation: road-pan-64 calc(1.1s * var(--travel-pace)) linear infinite; }
  .delivery-road.is-driving .road-track { animation-duration: calc(.62s * var(--travel-pace)); }
  .delivery-road.is-driving .road-wheel { animation-duration: calc(.48s * var(--travel-pace)); }
  .delivery-road.is-driving .road-wheel-spray { animation: motion-wheel-spray 1.1s ease-out infinite; }
  .delivery-road.has-arrived .road-vehicle { animation: motion-park 380ms ease-out; }
  .delivery-road.has-arrived ~ .farm-order-foot .farm-order-deliver:not([hidden]) { animation: motion-unlock 360ms ease-out; }
  .delivery-road:not(.road-in-view) > *,
  .delivery-road:not(.road-in-view) .road-position * { animation-play-state: paused; }
  .farm-atmosphere { animation: var(--weather-motion, none); }
  body[data-farm-season="autumn"] .crop-card .plot-scene:not(.is-sprouting) .c-img { animation: farm-sway 1.4s ease-in-out 2; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-fly, .motion-seed { display: none; }
  .road-stop { transition: none; }
}
