/* Low-paint motion layer shared by the player and admin websites. */
html { scroll-behavior: auto; }

/* Blur and live filters repaint large areas on mobile GPUs. */
body .modal,
body .modal-overlay,
body .app-header,
body .admin-header,
body .admin-sidebar,
body .match-card-badge,
body .match-card-overlay,
body .seo-content,
body .legal-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body .mode-card::before,
body .mode-card img,
body .match-card img,
body .wallet-action-btn:hover,
body .btn:hover {
  filter: none;
}

/* Keep hover motion compositor-only: no animated shadow or filter paints. */
body .mode-card,
body .match-card,
body .wallet-action-btn,
body .admin-layout .metric-card,
body .admin-layout .table-card,
body .btn {
  transition-property: transform, opacity, border-color, background-color;
}

/* Replace glow/shadow pulses and shimmer paints with opacity/scale motion. */
body .live-dot,
body .live-badge,
body .status-dot {
  box-shadow: none;
  will-change: transform, opacity;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}

@keyframes liveDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.86); }
}

@keyframes liveBadgePulse {
  0%, 100% { opacity: 1; transform: translateZ(0) scale(1); }
  50% { opacity: .72; transform: translateZ(0) scale(.98); }
}

body .skeleton,
body .skeleton-line,
body .skeleton-card {
  background-image: none;
  animation: ap-skeleton-fade 1.2s ease-in-out infinite;
}

@keyframes ap-skeleton-fade {
  0%, 100% { opacity: .9; }
  50% { opacity: .48; }
}

/* Skip rendering off-screen card bodies until they approach the viewport. */
.match-card,
.table-card,
.legal-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
    scroll-behavior: auto;
  }
}
