/* la barra de la batalla, arriba y a todo lo ancho también en computador, como en el teléfono (dueño, 01-12-2026: «este me gusta más») */
@media not all and (orientation: landscape) and (max-height: 500px) {
  #battle .bwrap { position: relative; padding-top: 52px; }
  #battle #bside { position: static; }
  #battle #bside .bbar { position: absolute; left: 0; right: 0; top: 0; height: 44px; margin: 0; flex-wrap: nowrap; gap: 10px; z-index: 8; }
  #battle #bside .bbar-a { flex: none; flex-wrap: nowrap; }
  #battle #bside .bbar-l { flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #battle #bside .bbar-b { flex: none; }
}
/* la marca del medio: quien la pasa, va ganando */
.bfuerza { position: relative; }
.bfuerza::after { content: ""; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.6); }
.bfuerza i { transition: width 0.4s linear; }
.besc { width: 32px; height: 32px; flex: none; image-rendering: pixelated; }
/* fila de tropas: una sola fila, desde la columna de grupos hacia la derecha (dueño, 01-12-2026) */
@media (min-width: 701px) {
  #battle #btropas.btropas {
    left: 116px; /* a la izquierda caben la espada y el arco de disparar (dueño) */
    right: auto;
    transform: none;
    width: max-content;
    max-width: calc(100% - 178px);
    grid-template-columns: repeat(var(--btr-col, 1), minmax(27px, 44px));
    gap: 2px;
    padding: 3px 4px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  #battle .btropas::-webkit-scrollbar { display: none; }
  #battle #btropas.btropas.btr-chica { width: calc(100% - 178px); grid-template-columns: repeat(var(--btr-col, 1), minmax(27px, 1fr)); }
  #battle .btropas.btr-chica .btr { min-height: 44px; padding: 1px 0 2px; gap: 0; }
  #battle .btropas.btr-chica .fig-busto, #battle .btropas.btr-chica .btr-ret { height: 27px; overflow: hidden; align-items: flex-start; justify-content: center; }
}
