/* ===== LOTOMANIA VISUAL FIXO ===== */
#resultado-container-lotomania {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: nowrap; /* mantém na mesma linha em telas largas */
  box-sizing: border-box;
}

.lotomania-banner-item {
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #0056b3;
  padding: 5px;
}

.lotomania-banner-item:hover {
  background-color: #ffcc80;
}

/* ===== BLOCO PADRÃO ===== */
.lotomania-coluna {
  flex: 1 1 0;            /* cada bloco cresce igualmente */
  min-width: 500px;        /* garante visibilidade mínima */
  padding: 15px;
  border-radius: 8px;
  font-size: 0.95em;
  box-sizing: border-box;
  overflow: hidden;        /* evita estouro interno */
}

.lotomania-coluna h4 {
  font-size: 1.2em;
  margin-bottom: 16px;
  border-bottom: 2px solid #2e7d32;
  padding-bottom: 6px;
  color: #2e7d32;
}

/* ===== AJUSTES ESPECÍFICOS ===== */
#matriz-container {
  flex: 2 1 0;             /* matriz ocupa mais espaço */
  display: flex;
  flex-direction: column;
  align-items: center;
}

#premiacao-container {
  flex: 1.3 1 0;           /* premiação fica mais larga que extras */
}

#extras-container {
  flex: 1 1 0;             /* extras ocupa o restante do espaço */
}

/* ===== CONTEÚDO ===== */
.lotomania-dados {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 520px;
}

.lotomania-par {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 4px;
}

.lotomania-label {
  flex: 1 1 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2e7d32;
}

.lotomania-valor {
  flex: 0 0 30%;
  text-align: right;
  font-weight: bold;
  color: #222;
}

/* ===== MATRIZ LOTOMANIA ===== */
.lotomania-matriz {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.lotomania-matriz div {
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  border-radius: 5px;
  cursor: default;
  user-select: none;
  transition: background-color 0.3s;
}

.lotomania-matriz div.highlighted {
  background: #FF6A13;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 6px #fbc02d;
}

/* ===== NAVEGAÇÃO ===== */
#nav-buttons-lotomania {
  text-align: center;
  margin-top: 20px;
}

#nav-buttons-lotomania button {
  width: 60px;
  padding: 5px;
  margin: 0 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #2e7d32;
  color: #2e7d32;
  border-radius: 3px;
  transition: background-color 0.2s;
}

#nav-buttons-lotomania button:hover {
  background-color: #2e7d32;
  color: white;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1200px) {
  #resultado-container-lotomania {
    flex-wrap: wrap; /* permite quebra de linha */
  }

  .lotomania-coluna {
    flex: 1 1 48%; /* duas colunas por linha */
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  #resultado-container-lotomania {
    flex-direction: column;
    align-items: center;
  }

  .lotomania-coluna {
    width: 100%;
    margin-bottom: 20px;
  }

  .lotomania-matriz {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
}
