.country-buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.group-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(103, 244, 127, 0.14);
  border: 1px solid rgba(103, 244, 127, 0.3);
  color: #c6ffd1;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.country-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.country-flag-button {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 90px !important;
  height: auto !important;
  background: rgba(10, 26, 13, 0.85);
  border: 2px solid rgba(103, 244, 127, 0.14);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

/* Indicador de que hay una figurita de esta selección esperando para
   pegarse en el álbum (jugador o escudo recién salido de un sobre). */
.country-flag-pending {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6ec5a;
  color: #10230d;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  border: 2px solid #0c1a0a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.country-flag-button:hover {
  transform: translateY(-2px);
  border-color: #22c55e;
}

.country-flag-button.active {
  border-color: #16a34a;
}

.country-flag-button img.country-flag-img {
  width: 64px !important;
  height: 42px !important;
  max-width: 64px !important;
  max-height: 42px !important;
  object-fit: cover !important;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  display: block;
}

.country-flag-button .country-flag-name {
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
}

.country-flag-button .country-flag-count {
  font-size: 11px;
  color: #9fd18f;
  text-align: center;
  line-height: 1.2;
}