/* Gentle life for Little Haven and Little Orbit: a soft settle when something is set down, and a slow sway or drift while it sits.
   Small, quiet and never needed to understand the game. Only when the device allows motion AND Calm motion is off.
   Kept out of games.css, which stays animation-free for every other page. */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduced"]) .tile.just-placed { animation: hoto-settle .35s ease-out; }
  :root:not([data-motion="reduced"]) .tile[data-kind="daisy"] .px,
  :root:not([data-motion="reduced"]) .tile[data-kind="sunflower"] .px,
  :root:not([data-motion="reduced"]) .tile[data-kind="tree"] .px { transform-origin: 50% 100%; animation: hoto-sway 6s ease-in-out var(--drift, 0s) infinite; }
  :root:not([data-motion="reduced"]) .tile[data-kind="moon"] .px,
  :root:not([data-motion="reduced"]) .tile[data-kind="rocky"] .px,
  :root:not([data-motion="reduced"]) .tile[data-kind="giant"] .px,
  :root:not([data-motion="reduced"]) .tile[data-kind="ringed"] .px,
  :root:not([data-motion="reduced"]) .tile[data-kind="asteroid"] .px { animation: hoto-drift 8s ease-in-out var(--drift, 0s) infinite; }
  @keyframes hoto-settle { from { transform: scale(.82); } to { transform: scale(1); } }
  @keyframes hoto-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
  @keyframes hoto-drift { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(1.5px); } }
}
/* games.css turns every animation off for the OS reduced-motion setting and for Calm motion, and it is loaded first. */
@media (prefers-reduced-motion: reduce) { .tile, .tile .px { animation: none !important; } }
[data-motion="reduced"] .tile, [data-motion="reduced"] .tile .px { animation: none !important; }
