/* Reconnect banner (session resilience in api.js) */
#cdxReconnectBanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0.5rem 0.75rem;
  background: #5c3d1e;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

/* Low-data defaults: lazy media, compact thumbs, respect reduced motion */

img[loading="lazy"] {
  content-visibility: auto;
}

.inv-thumb,
.explore-listings .thumb,
.battle-flip img,
.battle-deck-card-row img {
  max-width: 48px;
  max-height: 68px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optional: user OS "reduce data" (Chrome Android, etc.) */
@media (prefers-reduced-data: reduce) {
  .inv-thumb,
  .explore-listings .thumb {
    max-width: 36px;
    max-height: 50px;
  }
}
