/* Conta: denunciar/bloquear o adversário, jogadores bloqueados e eliminar
   conta — exigências da Google Play. Fica num ficheiro à parte do style.css
   para se poder levar para a produção sem mexer no resto. */

/* Botão ⋯ junto ao nome do adversário, por cima do tabuleiro */
.btn-opcoes-adversario {
  margin-left: 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #cfe3f5;
  border-radius: 8px;
  width: 30px;
  height: 26px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.btn-opcoes-adversario:hover { background: rgba(255, 255, 255, 0.22); }

/* Estes dois modais abrem por cima das Configurações, que também é um modal */
.modal.modal-conta { z-index: 11000; }

#adversario-escolha {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
#adversario-denuncia textarea {
  width: 100%;
  margin-top: 10px;
  resize: vertical;
  font-family: inherit;
}
#adversario-denuncia .menu-btn { margin-top: 12px; width: 100%; }
#modal-eliminar-conta input { width: 100%; margin-top: 12px; }

/* Lista de bloqueados nas Configurações */
.lista-bloqueados { margin: 10px 0 4px; }
.lista-bloqueados .bloqueado-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 115, 232, 0.12);
  color: #1a2a3a;
}
.lista-bloqueados .vazio { color: #5a7a9a; font-size: 0.85rem; padding: 6px 0; }
.lista-bloqueados button {
  border: 1px solid #b0d4f1;
  background: #fff;
  color: #1a73e8;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

/* Ajuda e suporte (Configurações → Conta) */
.suporte-caixa { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.suporte-linha {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none;
  background: #fff; border: 1px solid #cfe0f3; color: #1a2a3a;
}
.suporte-linha i { font-size: 1.35rem; width: 26px; text-align: center; color: #1a73e8; flex: none; }
.suporte-linha span { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.suporte-linha small { color: #5a7a9a; font-size: 0.82rem; }
.suporte-whatsapp i { color: #25d366; }
.suporte-avaliar i { color: #f5b301; }
.suporte-linha:active { background: #eef4fb; }
/* No iPhone não há Play Store */
body.ios .suporte-avaliar { display: none; }
/* Eliminar conta: existe e é fácil de achar, mas sem destaque */
.eliminar-discreto { margin-top: 18px; text-align: center; }
.eliminar-discreto small { display: block; color: #8a9bb0; font-size: 0.75rem; margin-top: 4px; }
.eliminar-ligacao {
  border: 0; background: transparent; color: #8a9bb0; cursor: pointer; font-family: inherit;
  font-size: 0.85rem; text-decoration: underline; padding: 6px;
}
.eliminar-ligacao:hover { color: #c62828; }

/* Eliminar conta */
.settings-section-title.perigo { color: #c62828; }
.menu-btn.perigo-btn { background: #c62828; color: #fff; border: 0; margin-top: 10px; }
.menu-btn.perigo-btn:hover { background: #b71c1c; }

/* Entrar com Google (só na app da Google Play) */
.menu-btn.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  margin-top: 10px;
  font-weight: 600;
}
.menu-btn.btn-google:hover { background: #f8f9fa; }
/* Botão oficial da Google no browser (desenhado pela própria Google) */
.g-web-botao { display: flex; justify-content: center; margin-top: 10px; min-height: 44px; }
.google-ola { font-size: 1.1rem; font-weight: 700; color: #1a2a3a; margin: 0 0 2px; }
.google-email { color: #5a7a9a; font-size: 0.85rem; margin: 0 0 12px; word-break: break-all; }

/* Lista de países com pesquisa (caixaComPesquisa no game.js) */
.cp { position: relative; width: 100%; }
.cp-botao {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; cursor: pointer; background: #fff;
}
.cp-texto { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cp-texto.cp-vazio { color: #8a9bb0; }
.cp-painel {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50;
  background: #fff; border: 1px solid #b0d4f1; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); padding: 8px;
}
.cp-pesquisa {
  width: 100%; box-sizing: border-box; padding: 9px 10px; font-size: 1rem;
  border: 1px solid #cfd8e3; border-radius: 8px; outline: none;
}
.cp-pesquisa:focus { border-color: #1a73e8; }
.cp-lista { list-style: none; margin: 6px 0 0; padding: 0; max-height: 240px; overflow-y: auto; }
.cp-lista li {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px;
  border-radius: 6px; cursor: pointer; color: #1a2a3a;
}
.cp-lista li:hover, .cp-lista li.cp-actual { background: #e8f1fd; }
.cp-lista li.cp-nada { color: #8a9bb0; cursor: default; }
img.bandeira { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); flex: none; }

/* Indicativo do telefone, vindo do país escolhido */
.g-prefixo {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  width: auto; min-width: 88px; justify-content: center; background: #f4f7fb; color: #1a2a3a;
}

/* Enquanto o site não diz o que mostra (domínio desconhecido: play2, IP…),
   nada de pagamento nem de descarga — senão aparecem e somem (o piscar). */
body.site-a-carregar:not(.site-sms) #btn-subscribe,
body.site-a-carregar:not(.site-sms) .btn-baixar-jogo,
body.site-a-carregar:not(.site-sms) .baixar-icon-btn { visibility: hidden; }

/* A app na Google Play: nos sites sem APK, só no browser (nem na app, nem no iPhone) */
.btn-playstore, .playstore-icon-btn { display: none; }
/* O distintivo preto "DISPONÍVEL NO Google Play", com o símbolo a cores */
body.sem-apk:not(.na-app):not(.ios) .btn-playstore {
  display: inline-flex; align-items: center; gap: 10px; align-self: center;
  margin: 14px auto 0; padding: 7px 16px 7px 12px; border-radius: 9px; text-decoration: none;
  background: #000; border: 1px solid #a6a6a6; color: #fff;
}
.btn-playstore .logo-gplay { width: 26px; height: 26px; flex: none; }
.gplay-texto { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.gplay-texto small { font-size: 0.6rem; letter-spacing: 0.04em; }
.gplay-texto strong { font-size: 1.15rem; font-weight: 600; }
.btn-playstore:hover { background: #1a1a1a; }
body.sem-apk:not(.na-app):not(.ios) .playstore-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-right: 6px; border-radius: 50%; flex-shrink: 0; text-decoration: none;
  background: #fff; border: 1px solid rgba(100, 116, 139, 0.25);
}
.playstore-icon-btn .logo-gplay { width: 18px; height: 18px; margin-left: 2px; }
.playstore-icon-btn:hover { background: #f1f5f9; }

/* Abas das Configurações */
.settings-abas {
  display: flex; gap: 4px; margin: 4px 0 12px; padding: 4px;
  background: #eef4fb; border-radius: 12px;
}
.settings-aba-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 0; background: transparent; color: #5a7a9a; cursor: pointer;
  padding: 8px 4px; border-radius: 9px; font-size: 0.8rem; font-weight: 600; font-family: inherit;
}
.settings-aba-btn i { font-size: 1rem; }
.settings-aba-btn:hover { color: #1a73e8; }
.settings-aba-btn.activa { background: #fff; color: #1a73e8; box-shadow: 0 1px 4px rgba(26, 115, 232, 0.18); }
#settings-error, #settings-success { margin-top: 8px; }

/* Coroa da subscrição: dourada, com um brilho leve */
.icone-coroa {
  color: #f5b301;
  background: linear-gradient(135deg, #ffd54f, #f59e0b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.35));
}

/* Subscrição pela Google Play: a janela */
.modal-content.sub-cartao {
  position: relative; max-width: 380px; padding: 0 0 18px; overflow: hidden; text-align: center;
  border-radius: 22px; background: #fff;
}
.sub-fechar {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.22); color: #fff; cursor: pointer; font-size: 1rem;
}
.sub-topo {
  padding: 26px 20px 20px; color: #fff;
  background: radial-gradient(circle at 30% 0%, #3b82f6 0%, #1e40af 55%, #172554 100%);
}
.sub-coroa {
  width: 68px; height: 68px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #fff;
  background: linear-gradient(135deg, #ffd54f, #f59e0b);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.12);
}
/* `.modal-content h2/p` do style.css pintam de azul e cinzento: aqui o fundo é azul, vai a branco. */
.modal-content.sub-cartao .sub-titulo {
  margin: 0; font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.modal-content.sub-cartao .sub-estado:empty { display: none; }
.modal-content.sub-cartao .sub-estado {
  display: inline-block; margin: 12px 0 0; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.95); color: #1e3a8a; font-size: 0.85rem; font-weight: 700;
}
.sub-vantagens { list-style: none; margin: 18px 22px 6px; padding: 0; text-align: left; }
.sub-vantagens li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: #1f2d3d; font-size: 0.95rem; }
.sub-vantagens li i { color: #16a34a; font-size: 1.05rem; margin-top: 2px; flex: none; }
.sub-preco { margin: 10px 0 4px; display: flex; flex-direction: column; align-items: center; }
.sub-preco span { font-size: 2rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.sub-preco small { color: #64748b; font-size: 0.85rem; }
.sub-cartao .auth-error { margin: 6px 22px 0; }
.sub-botao {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 44px); margin: 14px 22px 0; padding: 14px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 1.05rem; font-weight: 800; color: #3b2300;
  background: linear-gradient(135deg, #ffe082, #f59e0b);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
  transition: transform 0.12s, box-shadow 0.12s;
}
.sub-botao:active { transform: scale(0.98); box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35); }
.sub-botao:disabled { opacity: 0.6; cursor: default; }
.sub-depois {
  margin: 8px auto 0; padding: 8px 14px; border: 0; background: transparent; cursor: pointer;
  color: #64748b; font-family: inherit; font-size: 0.92rem; font-weight: 600;
}
.sub-rodape { margin: 8px 22px 0; color: #94a3b8; font-size: 0.72rem; line-height: 1.4; }
.sub-rodape .logo-gplay { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }

/* Nota "telefone ou email" no registo */
.reg-contacto-dica { text-align: left; margin: 2px 0 8px; }

/* Detalhe do torneio: a janela é clara, mas as células herdavam o branco da
   página e os nomes dos inscritos não se liam (queixa de 21/10/2026). */
.torneio-tabela td { color: #1a2a3a; }
.torneio-tabela td:first-child { color: #5a7a9a; }

/* Janela mais alta (pedido de 22/10/2026): cresce com a lista até 92% do ecrã
   e só a lista rola — o título e os botões ficam sempre à vista, sem duas
   barras de rolar nos telemóveis pequenos. */
#torneio-detalhe-modal .modal-content { max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
#torneio-detalhe-modal .torneio-detalhe-corpo { max-height: none; flex: 0 1 auto; min-height: 0; overflow-y: auto; }
#torneio-detalhe-modal .modal-buttons { flex: none; }
/* Botões de ordem: Inscrição (por defeito) ou Pontuação; presos no topo ao rolar */
.torneio-ordem {
  display: flex; gap: 4px; margin: 4px 0 8px; padding: 3px; background: #eef4fb; border-radius: 10px;
  position: sticky; top: 0; z-index: 1;
}
.torneio-ordem button {
  flex: 1; border: 0; background: transparent; color: #5a7a9a; cursor: pointer;
  padding: 6px 4px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; font-family: inherit;
}
/* Topo da Classificação: lugar à esquerda (tipo de classificação) e lupa à direita */
/* minmax(0,1fr): o título encolhe em vez de empurrar a lupa para fora da
   margem; os dois ícones ficam alinhados com os cartões da lista. */
.lb-topo { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 8px; margin-bottom: 12px; }
.lb-topo h2 { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-topo-lado { width: 38px; height: 38px; box-sizing: border-box; padding: 0; }
/* O mesmo ícone do botão Classificação do menu (fa-chart-simple), num verde
   mais escuro para se ver no fundo claro da janela. */
.lb-titulo-icone { color: #7cb342; margin-right: 4px; }
.lb-topo .lb-icone { margin-top: 4px; }
.lb-icone {
  border: 1px solid #b0d4f1; background: #fff; color: #1a73e8; border-radius: 50%;
  cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
}
/* No telemóvel o :hover fica preso depois do toque: só em aparelhos com rato. */
@media (hover: hover) { .lb-icone:hover { background: #e8f1fd; } }
.lb-icone.activo { background: #1a73e8; color: #fff; }
/* Mês / Semana / Geral */
.lb-tipo-caixa { position: relative; }
.lb-tipo-menu {
  position: absolute; top: 54px; left: 0; z-index: 20; min-width: 190px; padding: 6px;
  background: #fff; border: 1px solid #b0d4f1; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex; flex-direction: column; gap: 2px;
}
.lb-tipo-menu button {
  display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #1a2a3a;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 0.95rem; text-align: left;
}
.lb-tipo-menu button i { color: #1a73e8; width: 18px; }
.lb-tipo-menu button:hover, .lb-tipo-menu button.activo { background: #e8f1fd; }
.lb-tipo-menu button.activo { font-weight: 700; }
.lb-periodo { margin: 2px 0 8px; color: #5a7a9a; font-size: 0.85rem; text-align: center; }
/* "Damas Moçambicanas · Outubro 2026" e o ⓘ da explicação */
/* Texto e ⓘ seguidos, centrados como texto (em flex, a linha esticava e o ⓘ
   ficava longe do "Geral"). */
#leaderboard-modal .lb-regra-linha { display: block; text-align: center; margin: 0 0 10px; }
#leaderboard-modal .lb-regra-linha > span { display: inline; }
.lb-info {
  display: inline-block; vertical-align: middle; width: auto; min-width: 0; margin: 0 0 0 4px;
  border: 0; background: transparent; color: #5a7a9a; cursor: pointer; padding: 0 2px; font-size: 0.95rem; line-height: 1;
}
.lb-info.activo { color: #1a73e8; }
.lb-explicacao {
  margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #eef4fb; color: #1a2a3a;
  font-size: 0.85rem; line-height: 1.45; text-align: left;
}
/* Quem ainda não tem o mínimo de jogos do período */
.lb-separador { margin: 14px 4px 6px; color: #5a7a9a; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.lb-card.lb-card-acaminho { opacity: 0.75; }
.lb-periodo:empty { display: none; }
.lb-elo.lb-negativo { color: #c62828; }

/* Quem está a falar (23/10/2026): a caixa do jogador ganha moldura verde e a
   linha de quem assiste acende, com três barrinhas a mexer. */
.video-espectador-lado { box-shadow: 0 0 0 0 transparent; transition: box-shadow .15s; }
.video-espectador-lado.a-falar { box-shadow: inset 0 0 0 3px #22c55e, 0 0 12px rgba(34, 197, 94, .55); }
.painel-espectadores-linha { border-radius: 6px; transition: background .15s; }
.painel-espectadores-linha.a-falar { background: rgba(34, 197, 94, .16); }
.painel-espectadores-linha.a-falar .painel-espectadores-nome { color: #86efac; font-weight: 700; }
.painel-espectadores-nome small { color: #94a3b8; font-weight: 400; }
.painel-espectadores-nome small.painel-pontos { color: #cbd5e1; }
.painel-espectadores-onda { display: none; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.painel-espectadores-linha.a-falar .painel-espectadores-onda { display: inline-flex; }
.painel-espectadores-onda i { width: 3px; background: #22c55e; border-radius: 2px; animation: onda-voz .8s ease-in-out infinite; }
.painel-espectadores-onda i:nth-child(2) { animation-delay: .15s; }
.painel-espectadores-onda i:nth-child(3) { animation-delay: .3s; }
@keyframes onda-voz { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.painel-espectadores-alguem { color: #86efac; font-size: 12px; font-weight: 600; padding: 2px 0 6px; }
.painel-espectadores-alguem + .painel-espectadores-linha { border-top: 0; }

.torneio-ordem button.activa { background: #fff; color: #1a73e8; box-shadow: 0 1px 4px rgba(26, 115, 232, 0.18); }

