[data-tile-theme-motion] { opacity: 0; }

/* Isolate moving marbles and their labels so the browser can reuse the
   painted floor, artwork and shapes underneath them across frames. */
[data-role="lane-play-region"] [data-layer="lane-marbles-world"] {
  will-change: transform;
}

html[data-flat-tile-themes] [data-role="lane-play-region"] :is(
  [data-tile-surface="normal-artwork"], [data-tile-surface="king-artwork"],
  [data-roulette-artwork], [data-tile-theme-motion]
) {
  display: none;
  animation: none;
}

@media (prefers-reduced-motion: no-preference) {
  [data-tile-artwork-full] { transition: opacity 180ms ease-out; }
  .mcf-tile-theme-shimmer { opacity: 1; animation: mcf-tile-theme-glint 4s linear infinite; }
  .mcf-tile-theme-sweep { opacity: 1; animation: mcf-tile-theme-glint 8s ease-in-out infinite; }
}

html:is([data-graphics-tier="low"], [data-graphics-tier="minimal"]) [data-tile-theme-motion] {
  opacity: 0;
  animation: none;
}

@keyframes mcf-tile-theme-glint {
  from { transform: translateX(0); }
  to { transform: translateX(128px); }
}
