/* Confrontació de bots. La resta del panell ja el vist training.css. */

/* Sense açò la pantalla s'activa però ix buida: `.training-scroll` gasta
   `flex: 1`, que només val si el pare és una columna d'alçada acotada. Mateixa
   base que `.training-screen`, `.admin-dashboard-screen` i `.players-screen`. */
.arena-screen {
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0, rgba(23, 107, 95, .5), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(23, 92, 167, .25), transparent 31%),
    linear-gradient(#041c1b, #020d0d);
}

#arena-refresh {
  color: var(--gold);
  font-size: 21px;
}

.arena-picker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  margin: 0.9rem 0;
}

.arena-picker i {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  opacity: 0.65;
  text-transform: uppercase;
}

.arena-select {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
}

.arena-stop-row {
  margin-top: 0.7rem;
}

.arena-stop-row > small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  opacity: 0.6;
  margin-bottom: 0.35rem;
}

.arena-stop-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.arena-stop-custom {
  width: 5.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.6rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
}

.arena-hint {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0.62;
}

.arena-stop-session {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 120, 90, 0.5);
  background: rgba(255, 120, 90, 0.12);
  color: inherit;
  font: inherit;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  cursor: pointer;
}

.arena-verdict {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  text-align: center;
  padding: 0.9rem 0.8rem;
  margin-top: 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
}

.arena-verdict small {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

.arena-verdict strong {
  font: 700 1.5rem/1.1 Georgia, serif;
}

.arena-verdict span {
  font-size: 0.76rem;
  opacity: 0.8;
  max-width: 34rem;
}

.arena-verdict.is-winner {
  border-color: rgba(78, 214, 138, 0.55);
  background: rgba(48, 176, 108, 0.16);
  color: #93efbb;
}

.arena-verdict.is-tie {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.arena-side.is-winner {
  border-color: rgba(78, 214, 138, 0.6);
  background: rgba(48, 176, 108, 0.14);
}

.arena-side.is-winner b,
.arena-side.is-winner strong {
  color: #93efbb;
}

.arena-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.arena-side {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.8rem 0.5rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.arena-side i {
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.arena-side strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.arena-side b {
  font-size: 2rem;
  line-height: 1;
}

.arena-side span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.arena-side small {
  font-size: 0.7rem;
  opacity: 0.75;
}

.arena-versus {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
}

.arena-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-size: 0.82rem;
}

.arena-table th,
.arena-table td {
  padding: 0.35rem 0.4rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.arena-table th:first-child,
.arena-table td:first-child {
  text-align: left;
  opacity: 0.75;
}

.arena-table thead th {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

.arena-log {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  max-height: 16rem;
  overflow-y: auto;
  font-size: 0.82rem;
}

.arena-log li {
  padding: 0.25rem 0 0.25rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.arena-log li::before {
  content: '·';
  position: absolute;
  left: 0;
  opacity: 0.5;
}

.arena-error {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #ffb4a2;
}
