body, html {
  height: 100%;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.fighter-row.a {
  width: 100vw;
  background: #dc3545;
  padding: 0;
}
.fighter-row.b {
  width: 100vw;
  background: #0d6efd;
  display: flex;
  align-items: center;
  padding: 0;
}
.fighter-img, .preview-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 15px;
  margin-left: 15px;
  background: #eee;
  max-width: 240px;
  max-height: 240px;
  min-width: 80px;
  min-height: 80px;
}
.fighter-info {
  flex: 1;
}
.fighter-name {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}
.btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.btn-fa {
  font-size: 1.2em;
  padding: 9px 9px;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #222;
  font-weight: bold;
  box-shadow: 0 2px 6px #bbb;
  transition: background 0.2s, color 0.2s;
}
.btn-fa.faltas { color: #c00; }
.btn-fa.puntos { color: #0057b8; }
.btn-fa.kiken-btn { background: #ffe066; color: #222; }
.btn-fa.checked { background: rgb(255, 166, 0) !important; color: #000000 !important; }
.btn-fa.disabled { opacity: 0.6; pointer-events: none; }
.score-box {
  top: 0.5cm;
  width: 240px;
  height: 180px;
  font-size: 7em;
  background: #0f0f0f;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  margin-right: 10px;
}
.badge-winner {
  position: absolute;
  left: -250px; /* igual al ancho del marcador */
  top: 0;
  width: 240px;
  height: 120px;
  background: #000000;
  color: #ffc400;
  font-size: 0.5em;
  font-weight: bold;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px #0008;
}

/* Badge PLUS: arriba del marcador, alto 2cm, ancho 4cm */
.badge-plus {
  position: absolute;
  top: -1.3cm;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5cm;
  height: 1cm;
  background: #55ff07;
  color: #222;
  font-size: 0.2em;
  font-weight: bold;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px #0008;
}
.hide { display: none; }
.dots {
  display: flex;
  gap: 3px;
  margin-top: 4px;
  min-height: 12px;
  justify-content: center;
}
.dot {
  width: 10px;
  height: 10px;
  background: #222;
  border-radius: 50%;
  display: inline-block;
}
.panel-central {
  width: 100vw;
  background: #0a0a0a;
  border-radius: 2px;
  padding: 4px 0;
  margin-bottom: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.panel-info-pelea {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
#tipoPeleaShow {
  color: #fff;
  font-size: 2.2em;
  font-weight: bold;
}
#modalidadShow {
  color: #ffe066;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
}
.panel-central .timer {
  font-size: 10em;
  font-weight: bold;
  color: #fff;
  text-align: center;
  line-height: 0%;
}
.panel-btns-vertical {
  min-width: 140px;
  display: flex;
  gap: 16px;
  margin-left: 32px;
}
.warnings-horizontal {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.puntos-horizontal {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  align-items: flex-end;
}
@media (max-width: 700px) {
  .preview-row, .fighter-row { flex-direction: column; align-items: flex-start; }
  .score-box { margin-top: 10px; font-size: 4em; width: 100%; height: 80px; }
  .fighter-img, .preview-img { width: 100px; height: 100px; }
}
.btn-fa.disabled, .btn-fa:disabled {
  pointer-events: none;
  opacity: 0.6;
}
#cronometro[contenteditable="true"], 
#cronometro[contenteditable="true"]:focus {
  border: none !important;
  outline: none !important;
  background: #333;
  color: #fff;
}
.container-kumite {
  width: 100vw;
  height: 100%;
  padding: 0;
}

#previewPanel {
  min-height: 100vh;
  width: 100%;
  padding-right: 2px;
  padding-left: 2px;
}
#kumitePanel {
  width: 100%;
  height: 100%;
  padding-right: 2px;
  padding-left: 2px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

/* Peleador A y B ocupan más espacio, panel central menos */
#kumitePanel > .col-12.fighter-a,
#kumitePanel > .col-12.fighter-b {
  flex: 1 1 0; /* Ocupan más alto */
  display: flex;
  align-items: stretch;
}

#kumitePanel > .col-12.panel-central {
  flex: 0.5 1 0; /* Ocupa menos alto */
  display: flex;
  align-items: stretch;
  min-height: 120px; /* Opcional: mínimo alto */
  max-height: 300px; /* Opcional: máximo alto */
}

/* Opcional: para evitar desplazamientos en móvil */
@media (max-width: 700px) {
  #previewPanel, #kumitePanel {
    min-height: 100vh;
    width: 100vw;
    padding-right: 4px;
    padding-left: 4px;
  }
}

.panel-central .timer {
  font-size: 10vw;
}
.fighter-name {
  font-size: 4vw;
}

.btn-fa {
  font-size: 1vw;
  padding: 0.7vw 1vw;
}

@media (max-width: 700px) {
  .fighter-img, .preview-img { width: 80px; height: 80px; }
  .score-box { font-size: 2em; width: 80px; height: 50px; }
  .fighter-name { font-size: 1.2em; }
  .btn-fa { font-size: 0.9em; padding: 6px 6px; }
  .panel-central .timer { font-size: 2em; }
}