/* Data: 2025-12-29 10:11 */
/* CSS */

.luckiest-guy-regular {
  font-family: "Luckiest Guy", cursive;
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: #006400;
  font-family: sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  width: 100dvw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* Mensagem de rotação para celulares (Modo Retrato -> Paisagem) */
#rotateMessage {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  width: 100dvw;
  background: radial-gradient(circle, #005000 0%, #002800 100%);
  color: white;
  padding: 1.5rem;
  z-index: 9999;
}

.rotate-content {
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.rotate-icon {
  font-size: 4.5rem !important;
  color: #ffd700;
  margin-bottom: 0.8rem;
  animation: girarCelular 2.5s infinite ease-in-out;
  display: inline-block;
}

@keyframes girarCelular {
  0%, 15% { transform: rotate(0deg); }
  45%, 65% { transform: rotate(-90deg); }
  90%, 100% { transform: rotate(0deg); }
}

.rotate-content h2 {
  font-size: 1.6rem;
  color: #ffd700;
  margin-bottom: 0.8rem;
}

.rotate-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e2e8f0;
}

/* Logotipo */
#logotipo {
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  z-index: 1000;
  letter-spacing: 1px;
  opacity: 0.8;
  pointer-events: none; /* evita que interfira em cliques */
}

/* Botão hambúrguer */
.hamburger {
  border: none;             
  outline: none;            
  box-shadow: none;
  position: fixed;
  width: 32px;
  height: 28px;
  top: 15px;
  left: 15px;        
  display: flex;
  flex-direction: column;       
  justify-content: space-between; 
  background: transparent;  
  cursor: pointer;
  z-index: 1300;      /* acima da sidebar */
}

.hamburger .bar {
  width: 100%;
  height: 5px;
  background: #fff;
  border-radius: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Sidebar base */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 0;             /* largura fechada */
  background: rgba(0, 35, 0, 0.96);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  overflow: hidden;  
  z-index: 1200;
}

/* Estado aberto */
.sidebar.open {
  width: 280px;
}

/* Conteúdo do menu */
.sidebar-content {
  opacity: 0;
  pointer-events: none;
  padding: 12px;
  transition: opacity 0.3s ease;
}

.sidebar.open .sidebar-content {
  opacity: 1;
  pointer-events: auto;
}

/* Lista de itens */
.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 55px;
}

.menu-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.menu-item:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Acessibilidade */
.menu-item:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid #ffd400;
  outline-offset: 2px;
}



/* Modal base */
.modal {
  display: none; /* escondido por padrão */
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  z-index: 5000;
}

/* Conteúdo do modal */
.modal-content {
  background-color: #fff;
  color: #000;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  animation: aparecerModal 0.3s ease-out;
}

/* Botão fechar */
.close {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: red;
}

/* area total do jogo */
#mesa {
  /* border: 1px solid red; */
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: flex-start;
  height: 100vh;
  height: 100dvh;
  width: 100vw; 
  width: 100dvw;
  overflow: hidden;  
}

#loginForm {
  display: contents;
  margin: 0;
  padding: 0;
}

/* tela de login em overlay absoluto */
#login {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: rgba(0, 50, 0, 0.95);
  padding: 30px;
  border-radius: 14px;
  border: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 2000;
}

#login input {
  width: 300px;
  height: 40px;
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#login button {
  width: 120px;
  height: 40px;
  font-size: 18px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* tela de lobby em overlay absoluto */
#lobby {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: rgba(0, 45, 0, 0.95);
  padding: 30px 40px;
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
  z-index: 2000;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

#lobby h2 {
  font-size: 2rem;
  color: #ffd700;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.lobby-opcoes {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.btn-lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  font-family: 'Luckiest Guy', cursive, sans-serif;
  font-size: 1.25rem;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-lobby small {
  font-family: sans-serif;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 4px;
  font-weight: normal;
}

.btn-lobby:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
}

.btn-lobby.btn-destaque {
  background: #d90429;
  border-color: #ff4d6d;
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.4);
}

.btn-lobby.btn-destaque:hover {
  background: #ef233c;
}

.lobby-entrar-codigo {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 5px;
}

.lobby-entrar-codigo input {
  flex: 1;
  height: 48px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  text-align: center;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.lobby-entrar-codigo .btn-lobby {
  flex: 1.2;
  padding: 0 12px;
  height: 48px;
  font-size: 1.05rem;
}

.info-sala {
  color: #a3e635;
  font-weight: bold;
  font-size: 1rem;
  margin: 5px 0 0 0;
  min-height: 24px;
}

/* exibe as mensagens de status como texto branco centralizado na tela */
#statusText {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  color: #ffffff;
  font-size: 1.8rem;
  font-family: 'Luckiest Guy', cursive, sans-serif;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  z-index: 2000;
}

/* tela inicial = titulo e botão em overlay absoluto */
#inicial {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* título inicial em rem para escalar com DPI */
#inicial h1 {
  font-size: 9.25rem;   /* ~148px se base = 16px */
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.093rem; /* ~1.5px */
  margin-bottom: 1.25rem;   /* ~20px */
  text-align: center;
}


/* botão inicial em rem */
#inicial button {
  width: 6.25rem;       /* ~100px */
  height: 6.25rem;      /* ~100px */
  font-size: 1.5rem;    /* ~24px */
  border: 0.125rem solid rgb(88, 11, 11); /* ~2px */
  border-radius: 50%;
  background-color: red;
  color: white;
  cursor: pointer;  
}

/*area que contem as linhas de jogador e a area de jogo*/
#mododejogo {
  /* border: 1px solid pink; */
  display: none;  
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  height: calc(100vh - 22px);
  padding-top: 4px;
  padding-bottom: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

/* area do jogo = onde o jogo é exibido */
#areadojogo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  min-height: 0;
  width: 100vw;
  overflow: visible;  
}

/* linhas em rem para escalar com DPI */
.linha {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;       /* ~24px */
  width: 60vw;       /* mantém proporcional à largura da tela */
  height: 5.625rem;   /* ~90px alinhado aos montes */
}

/* containers dos jogadores em rem */
.jogador1, .jogador2 {
  background-color: rgb(2, 63, 2);
  width: 55vw;
  max-width: 640px;
  height: auto;
  min-height: fit-content;
  padding: 2px 14px; /* Apenas 2px acima e 2px abaixo da carta */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-size: 1.8rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.jogador1, .jogador2 {
  margin: 0;
}

.jogador1 p, .jogador2 p {
  font-size: 1.8rem;  
  width: 40%;
  text-align: center;
  margin: 0;         
}

.jogador-ativo {  
  color: yellow;
  text-shadow: 0 0 5px black;
  animation: pulse 1s infinite alternate;
}

.jogador-inativo {
  text-shadow: none;
}

/* area dos montes de cartas dos jogadores */
.montes {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.9375rem;
}

/* estilo base dos slots dos montes */
.monte {
  width: 3.75rem;
  height: 5.625rem;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
  cursor: grab;
}

.cursor-pointer {
  cursor: grab;
}

#monteCrapoJ1, #monteCrapoJ2, #montePrincipalJ1, #montePrincipalJ2, #monteRestoJ1, #monteRestoJ2 {
  position: relative;
  width: 3.75rem;
  height: 5.625rem;
}

#monteCrapoJ1 img, #monteCrapoJ2 img, #montePrincipalJ1 img, #montePrincipalJ2 img, #monteRestoJ1 img, #monteRestoJ2 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.75rem;
  height: 5.625rem;
  border-radius: 4px;
  animation: aparecer 0.5s ease-out;
  z-index: 1;
  box-shadow: none !important;
}

#monteCrapoJ1 img:last-child, #monteCrapoJ2 img:last-child, 
#montePrincipalJ1 img:last-child, #montePrincipalJ2 img:last-child, 
#monteRestoJ1 img:last-child, #monteRestoJ2 img:last-child {
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35) !important;
}

.sequencia {
  display: flex;
  align-items: center;
  width: auto;
  min-width: 3.75rem;
  height: 5.625rem;
  flex-wrap: nowrap;
}

.esq {
  flex: 1;
  flex-direction: row-reverse;  /* cresce para esquerda */
  justify-content: flex-start; /* fluxo comeca da esquerda para direita */
}

.dir {
  flex: 1;
  flex-direction: row; /* cresce para direita */
  justify-content: flex-start; /* fluxo comeca da direita para esquerda */
}

.sequencia img {
  position: relative;
  border-radius: 4px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  cursor: grab;
  animation: aparecerSuave 0.4s ease-out;
  transition: transform 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}

.sequencia img:hover {
  transform: scale(1.03);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
}

.sequencia img.verso {
  border: 2px solid #555;
  filter: brightness(0.9);
}

/* Imagem física da carta */
.imagem-carta {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* Feedback ao arrastar */
.dragging {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  z-index: 999;
}

/* cartas abertas em rem */
.carta-aberta {
  position: relative;
  width: 3.75rem;
  height: 5.625rem;
  border-radius: 4px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
  cursor: grab;
  animation: aparecerSuave 0.4s ease-out;
  transition: transform 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}

.carta-aberta:hover {
  transform: scale(1.03);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
}

/* mini-carta como fatia */
.carta-mini {
  position: relative;
  width: 0.703rem;   /* 11.25px -> proporção exata 1:8 para altura 90px (5.625rem / 8) */
  height: 5.625rem; /* 90px */
  border-radius: 4px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  cursor: grab;
  animation: aparecerSuave 0.4s ease-out;
  transition: transform 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}

/* fundação em rem */
.fundacao {  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 5.625rem;
  /* border: 1px solid white; */
  position: relative; /* necessário para ::before */
}

/* ícone aparece apenas quando a fundação tem a classe 'vazia' */
#fundacao-ouros-e.vazia::before,
#fundacao-ouros-d.vazia::before {
  content: "♦";
  font-size: 3rem;
  color: rgba(15, 39, 15, 0.5); /* verde escuro translúcido */
}

#fundacao-espadas-e.vazia::before,
#fundacao-espadas-d.vazia::before {
  content: "♠";
  font-size: 3rem;
  color: rgba(15, 39, 15, 0.5);
}

#fundacao-copas-e.vazia::before,
#fundacao-copas-d.vazia::before {
  content: "♥";
  font-size: 3rem;
  color: rgba(15, 39, 15, 0.5);
}

#fundacao-paus-e.vazia::before,
#fundacao-paus-d.vazia::before {
  content: "♣";
  font-size: 3rem;
  color: rgba(15, 39, 15, 0.5);
}


.fundacao-carta {
  width: 3.75rem;
  height: 5.625rem;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.4);
  animation: aparecerSuave 0.4s ease-out;
  transition: transform 0.25s ease, opacity 0.25s ease;
  /* animation: moverParaSlot 0.4s ease-out;
  transition: transform 0.3s ease, opacity 0.3s ease; */
}

.selecionada {
  outline: 2px solid yellow;
  transform: scale(1.05);
}

.ativo {
  border: 2px solid red;
  box-shadow: 0 0 10px yellow;
}

/*fim de jogo*/

#fimdejogo {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 50, 0, 0.92);
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 3000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 320px;
  border: 3px solid #ffd700;
}

#vencedorText {
  font-size: 2.2rem;
  color: #ffd700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 20px;
  transition: opacity 1.5s ease-in;
  opacity: 0;
}

#vencedorText.fade-in {
  opacity: 1;
}

#restartButton {
  position: relative;
  margin-top: 15px;
  width: 180px;
  height: 50px;
  font-size: 1.1rem;
  font-family: "Luckiest Guy", cursive, sans-serif;
  border-radius: 25px;
  background-color: #d90429;
  color: white;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#restartButton:hover {
  background-color: #ef233c;
  transform: scale(1.05);
}

#restartMenu {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

#restartMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

#restartMenu li {
  margin: 8px 0;
  width: 100%;
}

#restartMenu a {
  display: block;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
}

#restartMenu a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}





/* Mensagens de segurança */
#seguranca-msg {
  position: fixed;
  bottom: 10px;
  left: 10px;
  padding: 8px;
  background-color: rgba(255,0,0,0.7);
  color: white;
  font-size: 14px;
  border-radius: 4px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#seguranca-msg.visivel {
  opacity: 1;
  transform: translateY(0);
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 22px;
  background-color: black;
  color: white;
  vertical-align: center;
  font-size: 10px;
  position: fixed;
  bottom: 0;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  width: 100%;
}

/* Animações */

@keyframes aparecerSuave {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Exibe mensagem de rotação apenas para telas móveis (largura <= 900px) em modo retrato */
@media (max-width: 900px) and (orientation: portrait) {
  #rotateMessage {
    display: flex !important;
  }
  #mesa {
    display: none !important;
  }
}

/* sidebar responsiva */
@media (max-width: 480px) {
  .sidebar.open {
    width: 220px;
  }
}

/* modal - estatisticas */
@keyframes aparecerModal {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Ajuste de DPI agora é tratado de forma limpa pelo responsividade.css */



@keyframes aparecer {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes aparecerSuave {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Modal de Estatísticas e Ranking */
.modal {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: rgba(8, 30, 12, 0.96);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 14px;
  margin: 2% auto;
  padding: 16px 22px;
  width: 94%;
  max-width: 840px;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  animation: aparecerModal 0.3s ease-out;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-content .close {
  color: #ffd700;
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.modal-content .close:hover {
  color: #ffffff;
  transform: scale(1.2);
}

#estatisticasTitulo {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  text-align: center;
}

.estat-resumo {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  justify-content: space-between;
}

.estat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.88rem;
  color: #f1f5f9;
}

.estat-card.destaque {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.5);
  color: #fff;
}

.ranking-titulo {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.15rem;
  color: #a3e635;
  margin: 14px 0 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  text-align: center;
}

.table-container {
  overflow-x: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
}

.ranking-tabela {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px 4px;
  font-size: 0.88rem;
  text-align: center !important;
}

.ranking-tabela th {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 6px;
  color: #ffd700;
  padding: 8px 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center !important;
}

.ranking-tabela td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  text-align: center !important;
  color: #ffffff;
}

.ranking-tabela th,
.ranking-tabela td,
.col-pos,
.col-nome,
.col-vitorias,
.col-derrotas,
.col-partidas,
.col-aproveitamento {
  text-align: center !important;
}

.ranking-tabela tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.col-nome strong {
  white-space: nowrap;
  color: #ffffff;
}

.col-vitorias {
  color: #4ade80 !important;
  font-weight: bold;
}

.col-derrotas {
  color: #f87171 !important;
}

.badge-aproveitamento {
  background: rgba(59, 130, 246, 0.35);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: bold;
  display: inline-block;
  margin: 0 auto;
}

.sem-dados {
  text-align: center !important;
  color: #cbd5e1;
  font-style: italic;
  padding: 20px;
}

