/* Loading-bar add-on (battle_fixes.js). Applies only while the server has not
   sent a value for that player (no aria-valuenow); then the native bar rules. */
.m81-loading-progress.bbl-pending:not([aria-valuenow]) {
  width: calc(130px * var(--bbl, 0)) !important;
  transition: width 0.2s linear;
}
.m81-loading-progress.bbl-pending:not([aria-valuenow])::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  background-size: 60px 100%;
  background-repeat: no-repeat;
  animation: bbl-sweep 1.1s linear infinite;
}
@keyframes bbl-sweep {
  from {
    background-position: -60px 0;
  }
  to {
    background-position: 140px 0;
  }
}
.m8-load-percent.bbl-pending {
  font-size: 0 !important;
}
.m8-load-percent.bbl-pending::after {
  content: attr(data-bbl);
  font-size: var(--bbl-size, 13px);
  color: var(--bbl-color, inherit);
}
/* Shared "Hiệu ứng động" setting (common/ui/motion.js), not the raw media query. */
:root[data-bb-motion='reduce'] .m81-loading-progress.bbl-pending:not([aria-valuenow])::after {
  animation: none;
}
