/* Engine `move` (DESIGN §13.1, §5.10): every selector starts with `.mo-` (state classes `.is-*` allowed). Package D.
   Trg mreža: the crane and its hook, the hanging figure with its red dot, foundations, arrow footprints, trees, the toy
   car; and (redraw) the same drawing look as `grid`. Motion is transform / opacity; no filters. */

/* ---------------------------------------------------------------- paper, crane, figure */
.mo-paper { fill: #FFFBF1; stroke: #D9CDF2; stroke-width: 3; }
.mo-ghost { fill: none; stroke: #8650E6; stroke-width: 2.6; stroke-dasharray: 7 5; opacity: .55; stroke-linejoin: round; }
.mo-shadow { fill: rgba(36, 38, 59, .14); }
.mo-win { fill: #BDEBFA; }
.mo-hang { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.mo-mov { cursor: grab; }
.mo-mov.is-grab .mo-hang { transform: translateY(-3px); }
.mo-hang.is-lifted { animation: mo-lift .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes mo-lift { from { transform: translateY(8px) rotate(3deg); } }
.mo-mov.is-crooked .mo-hang { transform: translate(3px, 6px) rotate(4deg); transform-box: fill-box; transform-origin: center; }
.mo-mov.is-land .mo-hang { animation: mo-land .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mo-land { from { transform: translateY(-10px); } 60% { transform: translateY(2px) scaleY(.96); } }
.mo-dot { animation: mo-dot 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mo-dot { 50% { transform: scale(1.18); } }

/* ---------------------------------------------------------------- foundation, footprints, trees */
.mo-found-slab { fill: #C9CDD8; }
.mo-found-edge { fill: none; stroke: #5B6578; stroke-width: 3; stroke-dasharray: 8 5; stroke-linejoin: round; }
.mo-found-dot { fill: none; stroke: #EC4A3D; stroke-width: 3; stroke-dasharray: 4 3; }
.mo-found.is-stage .mo-found-slab { fill: #E8D9B5; }
.mo-reveal { animation: mo-reveal .9s ease-out; }
@keyframes mo-reveal { from { opacity: 0; } 30% { opacity: 1; } }
.mo-reveal .mo-found-slab { fill: #FFE27A; }
.mo-chev { fill: none; stroke: #8650E6; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.mo-foot.is-last .mo-chev { stroke: #6A38C4; }
.mo-foot.is-plan .mo-chev, .mo-foot.is-trail .mo-chev { stroke: #B9A6F0; }
.mo-foot.is-hint .mo-chev { stroke: #F5A300; opacity: .8; }
.mo-foot.is-demo { animation: mo-pop .3s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: var(--d, 0s); }
.mo-foot.is-play .mo-chev { stroke: #17A565; stroke-width: 4.6; }
.mo-foot.is-play { animation: mo-pop .35s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: center; }
@keyframes mo-pop { from { transform: scale(.4); opacity: 0; } }
.mo-step-bg { fill: #fff; stroke: #B9A6F0; stroke-width: 2; }
.mo-step-n { font-weight: 900; font-size: 16px; fill: #6A38C4; }
.mo-hint-ring { fill: rgba(255, 197, 61, .3); stroke: #F5A300; stroke-width: 4; animation: mo-breathe .9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mo-breathe { 50% { transform: scale(1.2); opacity: .4; } }
.mo-hint { animation: mo-btn-pulse .9s ease-in-out infinite; }
@keyframes mo-btn-pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 197, 61, .55); } }
.mo-ring { fill: rgba(236, 74, 61, .18); stroke: #EC4A3D; stroke-width: 3; stroke-dasharray: 5 4; animation: mo-breathe 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* ---------------------------------------------------------------- the payoff */
.mo-dust { fill: #E2D6C0; animation: mo-dust .7s ease-out forwards; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes mo-dust { from { transform: translate(0, 0) scale(.4); opacity: .9; } to { transform: translate(var(--dx, 0), -14px) scale(1.5); opacity: 0; } }
.mo-walker.is-in { transition: opacity .4s; opacity: 0; }
.mo-road { fill: #8E94A8; }
.mo-road-line { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 10 8; }
.mo-street { animation: mo-fade .3s ease-out backwards; }
@keyframes mo-fade { from { opacity: 0; } }
.mo-note-up { animation: mo-note 1.4s ease-out forwards; animation-delay: var(--d, 0s); opacity: 0; }
@keyframes mo-note { 10% { opacity: 1; } to { transform: translate(var(--x, 0), -80px); opacity: 0; } }
.mo-orig.is-gone { transition: opacity .6s; opacity: .25; }
.mo-redraw-pay { animation: mo-fade .4s ease-out backwards; }

/* ---------------------------------------------------------------- the road sign (back t3) */
.mo-sign-slot { fill: #DCE8FF; stroke: #fff; stroke-width: 2.4; stroke-dasharray: 5 4; }
.mo-sign-q { font-weight: 900; font-size: 22px; fill: #fff; }

/* ---------------------------------------------------------------- redraw: the drawing (./sketch.js, the `grid` look) */
.mo-peg { fill: #B7BFD1; stroke: #24263B; stroke-width: 1.8; }
.mo-peg-sh { fill: rgba(36, 38, 59, .18); }
.mo-peg-hi { fill: #fff; opacity: .8; }
.mo-ln { stroke-linecap: round; fill: none; }
.mo-ln-pen { stroke: #3B4A6B; }
.mo-ln-given { stroke: #6A38C4; }
.mo-ln-ses { stroke: #F29A2E; }
.mo-ln-fig { stroke: #6A38C4; }
.mo-ln.is-new { stroke-dasharray: var(--len) var(--len); animation: mo-draw .32s ease-out backwards; }
@keyframes mo-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.mo-ends circle { fill: #3B4A6B; }
.mo-band-o { stroke: #C2457A; stroke-linecap: round; }
.mo-band-i { stroke: #FF8FB8; stroke-linecap: round; }
.mo-fill { fill: #ECE2FF; stroke: none; }
.mo-fill.is-band { fill: rgba(236, 106, 156, .2); }
.mo-stray { stroke: #FF9636; stroke-linecap: round; opacity: .45; animation: mo-blink 1s ease-in-out infinite; }
@keyframes mo-blink { 50% { opacity: .15; } }
.mo-xh circle { fill: #FF9DB8; stroke: #24263B; stroke-width: 2.2; }
.mo-xh path { stroke: #24263B; stroke-width: 2.6; stroke-linecap: round; }
.mo-hint-run { stroke: #FFC53D; stroke-linecap: round; opacity: .7; }
.mo-glow { animation: mo-btn-pulse .9s ease-in-out infinite; }
.mo-snap { animation: mo-snap .5s ease-in forwards; }
.mo-snap .mo-band-o, .mo-snap .mo-ln { stroke: #FF9636; }
@keyframes mo-snap { 30% { opacity: 1; } to { opacity: 0; } }
.mo-fall { animation: mo-fall 1s cubic-bezier(.5, 0, .9, .6) forwards; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
.mo-crumble.is-short .mo-fall { animation-duration: .42s; }
.mo-fall .is-wrong { stroke: #FF9636; }
@keyframes mo-fall { 15% { transform: translateY(-4px) rotate(0); } to { transform: translateY(120px) rotate(var(--r, 20deg)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mo-dot, .mo-hint-ring, .mo-hint, .mo-ring, .mo-stray, .mo-glow { animation: none !important; }
}
html[data-motion="reduce"] :is(.mo-dot, .mo-hint-ring, .mo-hint, .mo-ring, .mo-stray, .mo-glow, .mo-ln.is-new) { animation: none !important; }
/* the four arrows stay one row in the short dock (4 × 48 px + 3 × 4 px) */
html[data-layout="short"] .mo-frame .st-tools { gap: 4px; flex-wrap: nowrap; }
.mo-fill.is-wait { fill: rgba(23, 165, 101, .14); }
