:root {
  --vinho: #80182a;
  --verde: #154a35;
  --ouro: #f2c451;
  --creme: #fff5df;
  --escuro: #170d0e;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: #120a0b;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: var(--creme);
  touch-action: manipulation;
}
button,
select {
  font: inherit;
}
.tela {
  display: none;
  width: min(100vw, 460px);
  height: 100dvh;
  position: relative;
  overflow: auto;
  background: #efe3ce;
  color: #2d211c;
}
.tela.ativa {
  display: block;
}
.inicio {
  background: url(assets/abertura.png) center/cover;
  color: #fff;
  overflow: hidden;
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(#180a0a55, #180a0a12 30%, #130707b8 74%, #130707e8);
}
.logo {
  position: relative;
  text-align: center;
  padding: 5vh 16px 1vh;
  text-shadow: 0 3px 12px #000;
}
.logo small {
  letter-spacing: 2px;
  color: #ffe196;
  font-size: 10px;
}
.logo h1 {
  font: 900 44px Georgia;
  margin: 10px 0 3px;
}
.logo h1 b {
  color: var(--ouro);
}
.logo p {
  margin: 0;
}
.menu-principal {
  position: relative;
  width: calc(100% - 44px);
  margin: 7vh auto 0;
  display: grid;
  gap: 11px;
}
.menu-principal button {
  min-height: 70px;
  border: 1px solid #ffffff38;
  border-radius: 15px;
  background: linear-gradient(100deg, #144b37c9, #0d3226d9);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 8px 13px;
  text-align: left;
  box-shadow: 0 5px 12px #0006;
}
.menu-principal i {
  font-style: normal;
  font-size: 31px;
  width: 48px;
}
.menu-principal span {
  display: grid;
  flex: 1;
}
.menu-principal b {
  font-size: 19px;
}
.menu-principal small {
  color: #e3d4c0;
}
.menu-principal strong {
  font-size: 31px;
  font-weight: 300;
}
.rodape {
  position: absolute;
  bottom: max(30px, calc(env(safe-area-inset-bottom) + 18px));
  left: 34px;
  right: 34px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.rodape button {
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  font-size: 30px;
  flex: 1;
  justify-items: center;
  line-height: 1;
}
.rodape small {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
}
header {
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(110deg, #741526, #991f32);
  color: white;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 11px;
  box-shadow: 0 3px 12px #0004;
}
header button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  min-width: 34px;
}
header div {
  display: grid;
  flex: 1;
}
header small {
  opacity: 0.75;
}
.painel {
  background: linear-gradient(#fbf3e5, #e9d9bf);
  padding-bottom: 32px;
}
.jogadores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 25px 12px 16px;
}
.jogadores em {
  font-weight: 900;
  color: var(--vinho);
}
.jogador {
  display: grid;
  justify-items: center;
  gap: 7px;
}
.jogador span {
  display: grid;
  text-align: center;
}
.jogador small {
  font-size: 9px;
  color: #856d5c;
}
.rotulo-dificuldade,
.nivel-desafio {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
}
.nivel-na-mesa {
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
}
.nivel-competitivo { display: inline-flex; width: max-content; margin-top: 5px; border-radius: 999px; padding: 3px 9px; color: #fff; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.nivel-competitivo.nivel-peao { background: #397948; }
.nivel-competitivo.nivel-gauderio { background: #a66a0d; }
.nivel-competitivo.nivel-lendario { background: #9f1830; box-shadow: 0 0 0 1px #f4cf69 inset; }
.nivel-jogador-mesa { color: #f4cf69 !important; font-size: 9px !important; font-weight: 900; text-transform: uppercase; }
.avatar.dificuldade-peao { border-color: #35a95b; box-shadow: 0 0 0 2px #dff5e6, 0 4px 13px #26934d77; }
.avatar.dificuldade-gauderio { border-color: #c88a20; box-shadow: 0 0 0 2px #fff0c5, 0 4px 13px #a8661677; }
.avatar.dificuldade-lenda { border-color: #d23131; box-shadow: 0 0 0 2px #ffe1dc, 0 4px 16px #bd1f1faa; }
.dificuldade-peao + span .rotulo-dificuldade,
.desafio-peao .nivel-desafio { color: #28884a; }
.dificuldade-gauderio + span .rotulo-dificuldade,
.desafio-gauderio .nivel-desafio { color: #a26812; }
.dificuldade-lenda + span .rotulo-dificuldade,
.desafio-lenda .nivel-desafio { color: #bd2626; }
.seletor-dificuldade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 20px 14px;
}
.seletor-dificuldade button {
  min-width: 0;
  border: 2px solid #decdb7;
  border-radius: 12px;
  background: #fff;
  color: #3b2c23;
  padding: 9px 3px 8px;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.seletor-dificuldade i { width: 13px; height: 13px; border-radius: 50%; background: #35a95b; box-shadow: 0 0 0 3px #35a95b22; }
.seletor-dificuldade [data-dificuldade="gauderio"] i { background: #c88a20; box-shadow: 0 0 0 3px #c88a2022; }
.seletor-dificuldade [data-dificuldade="lenda"] i { background: #d23131; box-shadow: 0 0 0 3px #d2313122; }
.seletor-dificuldade b { font-size: 12px; white-space: nowrap; }
.seletor-dificuldade small { font-size: 10px; color: #78675c; }
.seletor-dificuldade button.sel { transform: translateY(-2px); }
.seletor-dificuldade [data-dificuldade="peao"].sel { border-color: #35a95b; box-shadow: 0 4px 12px #35a95b44; }
.seletor-dificuldade [data-dificuldade="gauderio"].sel { border-color: #c88a20; box-shadow: 0 4px 12px #c88a2044; }
.seletor-dificuldade [data-dificuldade="lenda"].sel { border-color: #d23131; box-shadow: 0 4px 12px #d2313144; }
.avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid var(--ouro);
  box-shadow: 0 3px 10px #0005;
  background-image: url(assets/personagens.png);
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.a0 {
  background-position: 0 0;
}
.a1 {
  background-position: 50% 0;
}
.a2 {
  background-position: 100% 0;
}
.a3 {
  background-position: 0 100%;
}
.a4 {
  background-position: 50% 100%;
}
.a5 {
  background-position: 100% 100%;
}
.fala {
  margin: 0 20px 18px;
  padding: 13px;
  border-radius: 13px;
  background: #164632;
  color: #fff;
  text-align: center;
  font: italic 15px Georgia;
}
.regras-card {
  margin: 12px 20px;
  background: #fff;
  border-radius: 16px;
  padding: 15px 20px;
  box-shadow: 0 5px 16px #6e47251c;
}
.regras-card h3 {
  text-align: center;
  color: var(--vinho);
  margin: 0 0 10px;
}
.regras-card p {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee0ce;
  padding: 7px 0;
  margin: 0;
}
.regras-card b {
  color: #397642;
}
.cta {
  display: block;
  width: calc(100% - 40px);
  margin: 18px 20px;
  border: 0;
  border-radius: 14px;
  padding: 17px;
  color: #fff;
  background: linear-gradient(#a51f37, #741323);
  font-weight: 900;
  box-shadow: 0 6px 14px #4f142844;
}
.nivel {
  margin: 18px;
  border-radius: 15px;
  background: #173a50;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.nivel > div {
  width: 100%;
  height: 9px;
  background: #ffffff22;
  border-radius: 10px;
  margin-top: 12px;
}
.nivel i {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--ouro);
  border-radius: 10px;
}
.lista-desafios {
  display: grid;
  gap: 11px;
  margin: 18px;
}
.desafio {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 12px #0002;
}
.desafio.bloqueado { filter: grayscale(.55); opacity: .72; }
.desafio-cidade { display: flex; align-items: center; justify-content: space-between; }
.desafio-cidade span { display: grid; }
.desafio-cidade small { font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.desafio-cidade b { color: var(--vinho); font-size: 20px; }
.desafio-cidade strong { font-size: 24px; }
.rivais-desafio { display: flex; justify-content: center; gap: 18px; margin: 12px 0 7px; }
.rivais-desafio > div { display: grid; justify-items: center; gap: 4px; }
.rivais-desafio .avatar { width: 58px; height: 58px; }
.rivais-desafio small { color: #33251e; font-weight: 800; }
.detalhes-desafio { display: block; margin-top: 3px; }
.botoes-desafio { display: grid; grid-template-columns: .72fr 1.5fr; gap: 7px; }
.botoes-desafio button:first-child { background: #6e553c; }
.botoes-desafio button:disabled { background: #8d847b; }
.desafio-top {
  display: flex;
  gap: 10px;
  align-items: center;
}
.desafio .avatar {
  width: 55px;
  height: 55px;
}
.desafio span {
  display: grid;
  flex: 1;
}
.desafio small {
  color: #7b685b;
}
.desafio .nivel-desafio { margin: 2px 0; }
.desafio .frase {
  font: italic 14px Georgia;
  color: #365946;
  margin: 10px 3px;
}
.desafio button {
  border: 0;
  border-radius: 10px;
  padding: 10px 17px;
  background: #164c37;
  color: #fff;
  font-weight: 800;
  width: 100%;
}
.perfil {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 35px 20px 20px;
  padding: 15px;
  background: #fff;
  border-radius: 16px;
}
.perfil span {
  display: grid;
}
.perfil em {
  font-size: 12px;
  color: #8a776b;
}
.botoes-grandes {
  display: grid;
  gap: 12px;
  margin: 20px;
}
.botoes-grandes button {
  border: 0;
  border-radius: 15px;
  padding: 21px 15px;
  background: linear-gradient(#1d5d44, #123f2f);
  color: #fff;
  display: grid;
  box-shadow: 0 4px 9px #0003;
}
.botoes-grandes small {
  color: #f3ca6c;
}
.botoes-grandes .desativado {
  filter: grayscale(1);
  opacity: 0.5;
}
.nota {
  text-align: center;
  margin: 20px 30px;
  color: #725f50;
}
.servidor {
  margin: 18px;
  padding: 17px;
  border-radius: 17px;
  background: #dce9f0;
  color: #18364c;
}
.servidor b {
  color: #16864f;
}
.servidor span {
  float: right;
  font-size: 12px;
}
.servidor p {
  margin-bottom: 0;
}
.online-bloco {
  margin: 18px;
  background: #cbddeb;
  border-radius: 17px;
  padding: 12px;
}
.online-bloco h3 {
  margin: -12px -12px 12px;
  padding: 8px;
  text-align: center;
  border-radius: 17px 17px 0 0;
  background: #163b53;
  color: #fff;
}
.online-bloco > button,
.abas button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  margin-top: 7px;
  background: #3874b4;
  color: #fff;
  font-weight: 800;
}
.abas {
  display: flex;
  gap: 6px;
}
.abas button {
  background: #7896af;
}
.abas .sel {
  background: #173a52;
}
.evento {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0;
}
.evento i {
  font-style: normal;
  font-size: 30px;
}
.evento span {
  display: grid;
  flex: 1;
}
.evento small {
  color: #76675c;
}
.evento button {
  border: 0;
  border-radius: 8px;
  background: var(--verde);
  color: #fff;
  padding: 8px;
}
.ranking {
  margin: 18px;
  background: #fff;
  border-radius: 17px;
  overflow: hidden;
}
.ranking > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #eadcca;
}
.ranking strong {
  width: 22px;
}
.ranking .avatar {
  width: 48px;
  height: 48px;
}
.ranking span {
  display: grid;
  flex: 1;
}
.ranking small {
  color: #867266;
}
.ranking em {
  font-style: normal;
  font-size: 22px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px;
}
.stats div {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  display: grid;
  box-shadow: 0 4px 12px #0001;
}
.stats b {
  font-size: 30px;
  color: var(--vinho);
}
.conquistas {
  margin: 22px;
  background: #fff;
  padding: 18px;
  border-radius: 16px;
}
.resumo-estatisticas { margin: 22px; background: #fff; padding: 18px; border-radius: 16px; }
.resumo-estatisticas h3 { color: var(--vinho); }
.resumo-estatisticas p { display: flex; justify-content: space-between; border-bottom: 1px solid #eadcca; padding: 8px 0; margin: 0; }
.resumo-estatisticas b { color: #287744; }
.conquista { position: relative; display: flex; align-items: center; gap: 9px; background: #ece8e1; color: #746c65; border-radius: 9px; padding: 10px; margin: 7px 0; }
.conquista.completa { background: #185d3b; color: #fff; }
.conquista > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #0002; font-style: normal; }
.conquista span { display: grid; flex: 1; }
.conquista small { color: #9c7b32; }
.conquista.completa small { color: #f2ce6a; }
.conquista em { font-size: 8px; font-style: normal; }
.titulo-secao {
  margin: 25px 18px 10px;
  color: #694f40;
  font-size: 12px;
  letter-spacing: 1px;
}
.seletor {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding: 0 18px;
}
.seletor button {
  min-width: 130px;
  background: #fff;
  border: 3px solid transparent;
  border-radius: 14px;
  padding: 8px;
  display: grid;
  gap: 7px;
}
.seletor button.sel {
  border-color: #2a9d59;
}
.mini-cartas {
  height: 80px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font: 800 18px Georgia;
  border: 1px solid #aaa;
}
.mini-cartas.classico {
  background: #fff0ba;
  color: #bd2323;
}
.mini-cartas.branco {
  background: #fff;
  color: #1e4380;
}
.mini-cartas.preto {
  background: #222;
  color: #f4c35a;
}
.fundos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 18px;
}
.fundos button {
  height: 72px;
  border: 3px solid transparent;
  border-radius: 12px;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  font-weight: 800;
}
.fundos button.sel {
  border-color: var(--ouro);
}
.controle {
  margin: 22px 18px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
}
.controle select,
.controle button {
  border: 0;
  background: transparent;
  color: var(--vinho);
  font-weight: 700;
}
.credito {
  margin: 20px;
  font-size: 11px;
  color: #867568;
  text-align: center;
}
.mesa {
  overflow: hidden;
  background: radial-gradient(circle, #277b55, #103827 75%);
  color: #fff;
}
.mesa.fundo-vinho {
  background: radial-gradient(circle, #9a3344, #47101a);
}
.mesa.fundo-madeira {
  background: repeating-linear-gradient(
    90deg,
    #774326,
    #8f5934 28px,
    #6e3d23 30px
  );
}
.mesa.fundo-azul {
  background: radial-gradient(circle, #235c7c, #102838);
}
.barra-jogo {
  height: 55px;
  background: #160d0ddc;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  position: relative;
  z-index: 10;
}
.barra-jogo button {
  border: 0;
  background: #ffffff18;
  color: #fff;
  border-radius: 8px;
  font-size: 23px;
}
.barra-jogo b {
  flex: 1;
}
.status-conexao-online { position: absolute; z-index: 12; top: 58px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; border: 1px solid #ffffff38; border-radius: 999px; padding: 5px 10px; background: #101512dc; color: #fff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-conexao-online[hidden] { display: none; }
.status-conexao-online i { width: 8px; height: 8px; border-radius: 50%; background: #35df7d; box-shadow: 0 0 8px #35df7d; }
.status-conexao-online.reconectando i { background: #f0bd3c; box-shadow: 0 0 8px #f0bd3c; animation: pulsoConexao 1s infinite alternate; }
@keyframes pulsoConexao { to { opacity: .35; } }
.eu {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}
.oponentes-mesa { position: absolute; top: 62px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 4; padding: 4px 8px; }
.oponente { display: flex; align-items: center; gap: 5px; min-width: 0; }
.oponentes-mesa.total-2 { justify-content: space-between; }
.oponentes-mesa.total-3 { justify-content: space-between; gap: 3px; }
.oponentes-mesa.total-3 .oponente { display: grid; justify-items: center; text-align: center; }
.oponentes-mesa.total-3 .oponente span { justify-items: center; }
.eu {
  bottom: 171px;
  left: 12px;
}
.oponente .avatar,
.eu .avatar {
  width: 50px;
  height: 50px;
}
.oponente span,
.eu span {
  display: grid;
}
.oponente small,
.eu small {
  color: #ffe18b;
}
.oponente .moedas-na-mesa,
.eu .moedas-na-mesa {
  color: #ffd154;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 3px;
}
.moedas-na-mesa .icone-moeda { width: 16px; height: 16px; }
.oponente .dificuldade-peao + span .nivel-na-mesa { color: #61df86; }
.oponente .dificuldade-gauderio + span .nivel-na-mesa { color: #e6aa3f; }
.oponente .dificuldade-lenda + span .nivel-na-mesa { color: #ff6868; }
.costas {
  display: flex;
  font-size: 11px;
}
.oponentes-mesa.total-2 .costas, .oponentes-mesa.total-3 .costas { display: none; }
.oponentes-mesa.total-3 .avatar { width: 42px; height: 42px; }
.oponentes-mesa.total-3 b { font-size: 12px; }
.oponentes-mesa.total-3 small { font-size: 8px; }
.acoes-desafio { position: absolute; z-index: 11; top: 59px; left: 8px; display: flex; gap: 5px; }
.acoes-desafio[hidden] { display: none; }
.acoes-desafio button { border: 1px solid #f2c45188; border-radius: 999px; background: #170d0ed9; color: #fff; padding: 5px 8px; font-size: 9px; font-weight: 900; }
.acoes-desafio button:last-child { background: #741526e8; }
.acoes-desafio + .oponentes-mesa { top: 88px; }
.regras-modal p { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e2d5c5; padding: 10px 0; margin: 0; }
.regras-modal b { color: #237345; text-align: right; }
.confirmar-desafio { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; }
.confirmar-desafio button { border: 0; border-radius: 10px; padding: 12px; font-weight: 900; }
.confirmar-desafio button:last-child { background: #9b2134; color: #fff; }
.modal-placar { padding: 4px; }
.modal-placar .modal-box { width: min(454px, calc(100% - 8px)); max-height: 96vh; padding: 10px; border-radius: 10px; background: linear-gradient(160deg,#15231f,#111817); }
.modal-placar .modal-box > .fechar { display: none; }
.titulo-rodada { text-align: center; margin-bottom: 8px; }
.titulo-rodada small { color: #f2c451; font-weight: 800; text-transform: uppercase; }
.titulo-rodada h2 { margin: 2px 0 8px; font-size: 25px; font-weight: 500; }
.titulo-rodada > b { display: block; text-align: left; font-size: 14px; }
.titulo-rodada span { color: #6df242; }
.tabela-rodada { width: 100%; border-collapse: collapse; table-layout: fixed; background: #18201e; }
.tabela-rodada th, .tabela-rodada td { border: 2px solid #24342f; padding: 7px 3px; text-align: center; }
.tabela-rodada thead th:first-child, .tabela-rodada tbody th { width: 31%; text-align: left; font-size: 11px; }
.tabela-rodada thead th { padding: 5px 2px; }
.tabela-rodada thead .avatar { width: 42px; height: 42px; margin: auto; }
.tabela-rodada thead small { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 9px; color: #fff; }
.tabela-rodada td { font-size: 18px; }
.tabela-rodada td.lider { color: #62ef3f; }
.tabela-rodada td.total { font-weight: 900; }
.grafico-rodadas { width: 100%; height: 118px; display: block; margin-top: 8px; background: #02082a; border: 1px solid #183b5b; }
.modal-placar .cta { margin-top: 10px; background: linear-gradient(#436fff,#294cd1); font-size: 18px; }
.modal-placar .cta.finalizar { background: linear-gradient(#27b53b,#128225); }
.contador {
  position: absolute;
  top: 132px;
  left: 13px;
  font-size: 12px;
  background: #0008;
  padding: 6px 9px;
  border-radius: 10px;
}
.monte {
  position: absolute;
  top: 160px;
  left: 14px;
}
.vira {
  position: absolute;
  top: 178px;
  left: 58px;
  transform: rotate(90deg);
}
.vira small {
  position: absolute;
  z-index: 4;
  left: 18px;
  top: -18px;
  color: #ffe18b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 0 1px 3px #000;
}
.btn-trocar-trunfo {
  position: absolute;
  top: 288px;
  left: 15px;
  z-index: 10;
  border: 1px solid #f4cb65;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6d36d, #bf8421);
  color: #1b1105;
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 5px 14px #0008;
  animation: pulso-troca 1.1s ease-in-out infinite alternate;
}
.btn-trocar-trunfo[hidden] { display: none; }
@keyframes pulso-troca { to { transform: scale(1.05); box-shadow: 0 5px 20px #f4cb6588; } }
.vaza {
  position: absolute;
  inset: 35% 18% 36%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.mao {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: 100%;
  justify-content: center;
  z-index: 6;
}
.carta {
  position: relative;
  width: calc(112px * var(--fator-carta, 1));
  height: calc(171px * var(--fator-carta, 1));
  border-radius: 10px;
  border: 2px solid #fffdf2;
  background: #fff9cf;
  color: #222;
  box-shadow:
    0 9px 18px #0009,
    0 2px 2px #0008,
    inset 0 0 0 1px #b4a56c;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.carta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(125deg, #ffffff55 0%, #ffffff08 28%, #ffffff00 58%, #ffe07822 100%);
  box-shadow: inset 0 0 4px #fff8;
  pointer-events: none;
}
.mao .carta:active {
  transform: translateY(-10px) scale(1.035);
}
.carta img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: sepia(.08) saturate(1.22) contrast(1.08) brightness(1.04);
}
.deck-antigo .carta:not(.verso) img { filter: sepia(.28) saturate(.95) contrast(1.13) brightness(.96); }
.mao .carta {
  margin-left: calc(-16px * var(--fator-carta, 1));
}
.mao .carta:first-child {
  margin-left: 0;
}
.vaza .carta {
  width: calc(88px * var(--fator-carta, 1));
  height: calc(134px * var(--fator-carta, 1));
}
.oponentes-mesa.total-2 ~ .vaza .carta,
.oponentes-mesa.total-3 ~ .vaza .carta { width: calc(72px * var(--fator-carta, 1)); height: calc(110px * var(--fator-carta, 1)); margin-left: -16px; }
.monte .carta,
.vira .carta {
  width: calc(74px * var(--fator-carta, 1));
  height: calc(113px * var(--fator-carta, 1));
}
.verso {
  background: #fff url(assets/cards/card_back.svg) center/cover no-repeat;
  border: 4px solid #fff;
}
.verso-vermelho .verso { filter: sepia(.08) saturate(2.1) hue-rotate(112deg) contrast(1.12); }
.verso-verde .verso { filter: sepia(.2) saturate(1.5) hue-rotate(48deg); }
.verso-rubi .verso { filter: sepia(.1) saturate(2.5) hue-rotate(125deg) brightness(.9); }
.verso-preto .verso { filter: grayscale(1) contrast(1.45) brightness(.72); }
.toast {
  position: absolute;
  bottom: 336px;
  left: 50%;
  transform: translateX(-50%);
  background: #160d0de8;
  border: 1px solid #f4cb6566;
  border-radius: 20px;
  padding: 8px 15px;
  z-index: 9;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}
.grito-bisca { position: absolute; z-index: 30; left: 50%; top: 42%; transform: translate(-50%,-50%) scale(.45); opacity: 0; display: flex; align-items: center; gap: 9px; pointer-events: none; transition: .22s ease; }
.grito-bisca.mostrar { opacity: 1; transform: translate(-50%,-50%) scale(1); animation: bisca-pulso .45s ease-in-out 3 alternate; }
.grito-bisca .avatar { width: 64px; height: 64px; }
.grito-bisca span { display: grid; position: relative; min-width: 170px; padding: 10px 16px; border-radius: 18px; background: #fff9df; color: #24120b; border: 4px solid #f1be35; box-shadow: 0 8px 24px #000b; }
.grito-bisca span::before { content: ""; position: absolute; left: -15px; top: 20px; border: 8px solid transparent; border-right-color: #f1be35; }
.grito-bisca small { font-weight: 800; }
.grito-bisca b { color: #bb1827; font: 950 31px Georgia; font-style: italic; text-shadow: 1px 1px #ffd95d; }
@keyframes bisca-pulso { to { transform: translate(-50%,-50%) scale(1.08) rotate(-2deg); } }
.relogio-turno {
  position: absolute;
  right: 14px;
  bottom: 177px;
  z-index: 8;
  width: 68px;
  height: 58px;
  border: 1px solid #f4cb6580;
  border-radius: 13px;
  background: #160d0dee;
  color: #fff;
  display: grid;
  grid-template-columns: auto auto;
  place-content: center;
  align-items: baseline;
  gap: 3px;
  overflow: hidden;
  box-shadow: 0 5px 14px #0007;
}
.relogio-turno span {
  color: #ffe18b;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.relogio-turno small {
  font-size: 9px;
}
.relogio-turno i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: #55c878;
  transform-origin: left;
  transition: transform 1s linear, background-color 0.2s;
}
.relogio-turno.urgente {
  animation: alerta-tempo 0.7s ease-in-out infinite alternate;
}
.relogio-turno.urgente span {
  color: #ff6d62;
}
.relogio-turno.urgente i {
  background: #e53c3c;
}
@keyframes alerta-tempo {
  to { box-shadow: 0 0 18px #ef3f3faa; }
}
@media (max-width: 370px) {
  .carta { width: calc(104px * var(--fator-carta, 1)); height: calc(159px * var(--fator-carta, 1)); }
  .vaza .carta { width: calc(82px * var(--fator-carta, 1)); height: calc(125px * var(--fator-carta, 1)); }
}
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #000b;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.aberto {
  display: flex;
}
.modal-box {
  position: relative;
  width: min(420px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #2a2929;
  color: #fff;
  border: 1px solid #888;
  border-radius: 18px;
  padding: 20px;
}
.fechar {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  background: #555;
  color: #fff;
  border-radius: 9px;
  font-size: 28px;
}
.modal-box h2 {
  margin: 0 40px 18px 0;
}
.modal-box label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.modal-box input,
.modal-box select {
  width: 100%;
  padding: 13px;
  border-radius: 9px;
  border: 1px solid #666;
  background: #171717;
  color: #fff;
}
.modal-box .cta {
  width: 100%;
  margin: 18px 0 0;
}
.codigo {
  text-align: center;
  font-size: 38px;
  color: var(--ouro);
  font-weight: 900;
  letter-spacing: 5px;
}
.modal-baralhos .modal-box {
  width: min(450px, calc(100% - 8px));
  padding: 12px;
  background: #272727;
  border-color: #777;
  border-radius: 14px;
}
.modal.modal-baralhos { padding: 4px; }
.modal-baralhos .modal-box > .fechar { display: none; }
.cabecalho-seletor { display: flex; align-items: center; margin-bottom: 10px; }
.cabecalho-seletor h2 { flex: 1; margin: 0; font-size: 25px; font-weight: 400; }
.cabecalho-seletor button { width: 45px; height: 45px; border: 0; border-radius: 6px; background: #444; color: #fff; font-size: 34px; }
.opcoes-faces { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: hidden; }
.opcao-face { min-width: 0; height: 132px; position: relative; overflow: hidden; border: 5px solid transparent; border-radius: 9px; background: #f8f2d3; padding: 5px; }
.opcao-face.sel { border-color: #62e63c; }
.opcao-face span { height: 100%; display: flex; align-items: end; justify-content: center; }
.opcao-face img { width: 58px; height: 103px; object-fit: fill; margin-left: -22px; border-radius: 5px; box-shadow: 0 2px 4px #0007; }
.opcao-face img:first-child { margin-left: 0; }
.opcao-face b { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-size: 17px; text-shadow: -2px -2px 0 #111,2px -2px 0 #111,-2px 2px 0 #111,2px 2px 0 #111; }
.opcao-face.antiga img { filter: sepia(.35) saturate(.9) contrast(1.15); }
.opcoes-versos { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; margin: 10px 2px; }
.verso-mini { height: 96px; padding: 5px; border: 4px solid transparent; border-radius: 8px; background: transparent; }
.verso-mini.sel { border-color: #62e63c; background: #62e63c; }
.verso-mini i { display: block; width: 100%; height: 100%; border: 4px solid white; border-radius: 7px; background: white url(assets/cards/card_back.svg) center/cover no-repeat; box-shadow: 0 2px 5px #0008; }
.verso-mini.vermelho i { filter: sepia(.08) saturate(2.1) hue-rotate(112deg) contrast(1.12); }
.verso-mini.verde i { filter: sepia(.2) saturate(1.5) hue-rotate(48deg); }
.verso-mini.rubi i { filter: sepia(.1) saturate(2.5) hue-rotate(125deg) brightness(.9); }
.verso-mini.preto i { filter: grayscale(1) contrast(1.45) brightness(.72); }
.linha-velocidade { text-align: center; background: #171717; border: 2px solid #111; border-radius: 5px; padding: 10px 6px; font-size: 15px; }
.linha-velocidade b { color: #61e879; font-weight: 500; }
.controle-tamanho { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: stretch; margin-top: 8px; }
.controle-tamanho button { border: 2px solid #111; border-radius: 5px; background: linear-gradient(#242424,#141414); color: #fff; padding: 8px; font-size: 16px; }
.controle-tamanho strong { display: grid; place-content: center; text-align: center; font-size: 11px; }
.controle-tamanho strong b { font-size: 18px; }
.fechar-seletor { display: block; margin: 14px auto 0; min-width: 145px; border: 0; border-radius: 7px; background: #326cf0; color: #fff; padding: 11px 24px; font-size: 23px; font-weight: 900; text-shadow: 0 2px #111; box-shadow: 0 3px 0 #1744a9; }
@media (max-width: 370px) {
  .modal-baralhos .modal-box { padding: 9px; }
  .opcao-face { height: 116px; }
  .opcao-face img { width: 50px; height: 91px; margin-left: -19px; }
  .verso-mini { height: 82px; padding: 3px; }
}
.modal-menu {
  display: grid;
  gap: 8px;
}
.modal-menu button {
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: #275f48;
  color: #fff;
  font-weight: 800;
}
.ajuda-jogo h3 { color: #54bde8; margin: 18px 0 4px; }
.ajuda-jogo p { margin: 0; line-height: 1.45; color: #eee; }
.ajuda-jogo b { color: #67e949; }
.stats-partida > p { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #555; padding: 8px 0; margin: 0; }
.stats-partida > p b { color: #64df87; text-align: right; }
.stats-partida > div { display: grid; gap: 2px; border-left: 4px solid #f2c451; background: #1b3e30; padding: 9px 11px; margin-top: 8px; }
.stats-partida > div strong { color: #fff; }
.stats-partida > div small { color: #e7d7b4; }
.perfil-online { margin: 14px; padding: 12px; border-radius: 16px; background: linear-gradient(120deg,#143f31,#0d2e25); color: #fff; display: flex; align-items: center; gap: 11px; box-shadow: 0 6px 15px #0004; }
.online-auth { padding: 18px 14px; }
.online-auth-card { padding: 22px 16px; border-radius: 20px; background: linear-gradient(145deg,#173f32,#0d2b23); color: #fff; box-shadow: 0 10px 25px #0005; text-align: center; }
.online-auth-selo { display: inline-block; color: #f2c451; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.online-auth h2 { margin: 10px 0 5px; font-size: 24px; }
.online-auth p { margin: 0 auto 16px; max-width: 330px; color: #cddfd6; font-size: 12px; line-height: 1.45; }
.online-auth-abas { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 11px; background: #071d17; margin-bottom: 14px; }
.online-auth-abas button { border: 0; border-radius: 8px; padding: 9px; background: transparent; color: #9db5aa; font-weight: 900; font-size: 11px; }
.online-auth-abas button.sel { background: #a51f37; color: #fff; }
.online-auth-form { display: grid; gap: 10px; text-align: left; }
.online-auth-form[hidden] { display: none; }
.online-auth-form > div { display: grid; grid-template-columns: 1fr 82px; gap: 8px; }
.online-auth-form label { display: grid; gap: 4px; color: #f2d48a; font-size: 10px; font-weight: 800; }
.online-auth-form input { min-width: 0; border: 1px solid #ffffff2b; border-radius: 10px; padding: 11px; background: #fff; color: #251c18; font-size: 13px; }
.online-auth-form .cta { margin-top: 4px; }
.auth-mensagem { display: block; min-height: 16px; margin-top: 10px; color: #ffd36b; line-height: 1.35; }
.auth-mensagem.erro { color: #ff9e9e; }
.online-conteudo[hidden] { display: none; }
.cadastro-inicial .modal-box > .fechar { display: none; }
.boas-vindas-jogador { text-align: center; }
.boas-vindas-jogador > span { color: #f2c451; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.boas-vindas-jogador h2 { margin: 9px 0 4px; }
.boas-vindas-jogador p { margin: 0 0 16px; color: #d9cdbd; font-size: 12px; }
.boas-vindas-jogador label { display: grid; gap: 4px; margin-top: 9px; color: #f2d48a; text-align: left; font-size: 10px; font-weight: 800; }
.boas-vindas-jogador input { min-width: 0; border: 1px solid #ffffff2b; border-radius: 10px; padding: 12px; background: #fff; color: #251c18; font-size: 14px; }
.boas-vindas-jogador > div { display: grid; grid-template-columns: 1fr 82px; gap: 8px; }
.boas-vindas-jogador > small { display: block; margin-top: 9px; color: #b9aa9a; }
.foto-perfil-online { position: relative; width: 68px; height: 68px; min-width: 68px; border: 3px solid #f2c451; padding: 0; }
.foto-perfil-online span { position: absolute; right: -4px; bottom: -4px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #a51f37; font-size: 12px; }
.foto-perfil-online.com-foto { background-position: center; background-size: cover; }
.perfil-online > div { display: grid; min-width: 0; flex: 1; }
.perfil-online small { color: #f2c451; font-size: 9px; }
.perfil-online b { font-size: 20px; }
.perfil-online div > span { color: #d5e6dc; font-size: 11px; }
.perfil-online em { color: #ffe28b; font-size: 10px; font-style: normal; margin-top: 4px; }
.resumo-perfil-online { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 11px; }
.resumo-perfil-online > span { display: inline-flex; align-items: center; white-space: nowrap; }
.saldo-moedas-perfil { margin-left: 3px; font-size: 11px; }
.saldo-moedas-perfil strong { margin: 0 3px 0 2px; font-size: 12px; color: #fff1ad; }
.icone-moeda { display: inline-block; width: 1.45em; height: 1.45em; flex: 0 0 auto; object-fit: contain; vertical-align: -.31em; filter: drop-shadow(0 1px 1px #4c250099); }
.saldo-moedas-perfil .icone-moeda { width: 22px; height: 22px; margin-left: 2px; vertical-align: middle; }
.perfil-online > button:last-child { border: 0; background: #ffffff18; color: #fff; width: 32px; height: 32px; border-radius: 8px; }
.abas-online { margin: 0 10px; display: grid; grid-template-columns: repeat(5,1fr); border-radius: 13px; overflow: hidden; background: #d6c7b3; }
.abas-online button { position: relative; border: 0; padding: 8px 1px 6px; background: transparent; color: #725e50; display: grid; justify-items: center; font-size: 20px; }
.abas-online button.sel { background: #8a1b2e; color: #fff; }
.abas-online small { font-size: 8px; font-weight: 800; }
.abas-online i { position: absolute; top: 3px; right: 8px; width: 14px; height: 14px; border-radius: 50%; background: #e63f3f; color: #fff; font: 8px/14px sans-serif; }
.conteudo-online { display: none; padding: 13px; }
.conteudo-online.ativo { display: block; }
.temporada-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 13px; border-radius: 14px; background: linear-gradient(110deg,#741526,#ad2940); color: #fff; }
.temporada-card span { display: grid; }
.temporada-card small { color: #ffd978; font-size: 9px; }
.temporada-card > strong { color: #ffe193; }
.temporada-card > div { width: 100%; height: 6px; border-radius: 8px; background: #0005; margin-top: 9px; overflow: hidden; }
.temporada-card i { display: block; height: 100%; background: #f2c451; transition: width .6s ease; }
.temporada-card .temporada-fim { margin-top: 2px; color: #f4d9c8; font-size: 8px; font-weight: 600; }
.temporada-card.encerrada { filter: saturate(.65); }
.temporada-card.encerrada > strong { color: #fff; }
.temporada-card.aguardando > strong { font-size: 11px; }
.titulo-online { margin: 16px 2px 8px; color: #684b3b; font-size: 12px; letter-spacing: .08em; }
.modos-online { display: grid; gap: 9px; }
.modos-online button { border: 0; border-radius: 14px; padding: 13px; background: linear-gradient(120deg,#17553e,#0e392b); color: #fff; display: flex; align-items: center; gap: 10px; text-align: left; box-shadow: 0 4px 10px #0003; }
.modos-online button > i { font-style: normal; font-size: 29px; }
.modos-online span { display: grid; flex: 1; }
.modos-online small { color: #cddfd5; font-size: 10px; }
.modos-online em { color: #f2c451; font-size: 10px; font-style: normal; }
.jogadores-online { display: grid; justify-items: center; margin: 16px 0; font-size: 11px; color: #766150; }
.jogadores-online b { color: #238651; }
.jogadores-online i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #32d173; box-shadow: 0 0 8px #32d173; }
.busca-rival { text-align: center; padding: 12px 4px; }
.busca-rival > i { display: block; font-style: normal; font-size: 62px; animation: balanco-busca 1.2s ease-in-out infinite; }
.busca-rival h2 { margin: 8px 0 4px; }
.busca-rival p, .pareamento-local { color: #d9cdbd; text-align: center; }
.busca-rival > button { margin-top: 18px; border: 1px solid #a98970; border-radius: 10px; background: transparent; color: #fff; padding: 10px 18px; font-weight: 900; }
.pulso-busca { display: flex; justify-content: center; gap: 7px; margin: 18px 0 4px; }
.pulso-busca span { width: 10px; height: 10px; border-radius: 50%; background: #f2c451; animation: pulso-busca 1s infinite alternate; }
.pulso-busca span:nth-child(2) { animation-delay: .2s; }
.pulso-busca span:nth-child(3) { animation-delay: .4s; }
.pareamento-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 15px 0; }
.pareamento-versus > div { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.pareamento-versus img, .pareamento-versus .avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 4px solid #f2c451; }
.pareamento-versus b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.pareamento-versus small { color: #d9cdbd; font-size: 9px; }
.pareamento-versus em { color: #f2c451; font-size: 23px; font-weight: 900; }
@keyframes pulso-busca { to { opacity: .2; transform: translateY(-5px); } }
@keyframes balanco-busca { 50% { transform: rotate(-8deg) scale(1.06); } }
.filtro-local { display: flex; overflow: auto; gap: 5px; margin-bottom: 11px; }
.filtro-local button { white-space: nowrap; border: 1px solid #c5b39d; border-radius: 999px; background: #fff; color: #674f40; padding: 7px 9px; font-size: 10px; }
.filtro-local button.sel { background: #80182a; color: #fff; border-color: #80182a; }
.copa { margin: 10px 0; padding: 14px; border-radius: 15px; background: #fff; box-shadow: 0 4px 11px #0002; }
.copa.destaque { border: 2px solid #d7a52e; background: linear-gradient(135deg,#fff,#fff3cf); }
.copa > small { color: #16834a; font-weight: 900; font-size: 9px; }
.copa h3 { margin: 5px 0; color: #761629; }
.copa p { margin: 5px 0 10px; font-size: 11px; color: #745f51; }
.copa .local-copa { display: flex; align-items: center; gap: 5px; margin: 3px 0 7px; color: #1d6849; font-size: 11px; font-weight: 700; }
.copa .local-copa span { font-size: 14px; line-height: 1; }
.copa .local-copa b { color: #5f4336; font-weight: 900; }
.copa > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 9px; }
.copa > div span { padding: 7px; border-radius: 8px; background: #eee5d7; font-size: 9px; }
.copa .economia-copa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.copa .economia-copa span { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid #e3c565; border-radius: 9px; background: #fff8dc; color: #6d4c16; }
.copa .economia-copa small { color: #8b7450; font-size: 8px; font-weight: 900; }
.copa .economia-copa b { display: flex; align-items: center; gap: 5px; color: #7d182a; font-size: 12px; }
.copa .economia-copa .icone-moeda { width: 25px; height: 25px; }
.copa button { width: 100%; border: 0; border-radius: 9px; padding: 9px; background: #1d6849; color: #fff; font-weight: 900; }
.copa button:disabled { background: #9b9287; cursor: not-allowed; }
.copa.encerrada { opacity: .75; }
.copas-online-lista { min-height: 170px; }
.abrir-admin-copas { width: calc(100% - 28px); margin: 0 14px 10px; border: 1px solid #f1c55a; border-radius: 11px; padding: 11px; background: linear-gradient(135deg,#4b2017,#81192d); color: #ffe08a; font-weight: 900; }
.admin-copas > small, .form-admin-copa > small { color: #f2c451; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.admin-copas h2, .form-admin-copa h2 { margin: 4px 0 14px; }
.admin-copas-lista { display: grid; gap: 7px; margin-top: 12px; max-height: 48vh; overflow-y: auto; }
.admin-copas-lista button { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #ffffff20; border-radius: 10px; padding: 10px; background: #ffffff0c; color: #fff; text-align: left; }
.admin-copas-lista span { display: grid; gap: 3px; }
.admin-copas-lista small { color: #cbbfb0; }
.admin-copas-lista em { color: #f2c451; font-size: 10px; font-style: normal; font-weight: 900; }
.form-admin-copa { display: grid; gap: 9px; max-height: 82vh; overflow-y: auto; padding-right: 3px; }
.form-admin-copa > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-admin-copa label { display: grid; gap: 4px; color: #f2d48a; font-size: 10px; font-weight: 800; }
.form-admin-copa input, .form-admin-copa select, .form-admin-copa textarea { min-width: 0; width: 100%; border: 1px solid #ffffff30; border-radius: 9px; padding: 10px; background: #fff; color: #261d19; font: inherit; }
.form-admin-copa textarea { min-height: 64px; resize: vertical; }
.admin-cancelar-copa { border: 1px solid #ff8090; border-radius: 9px; padding: 10px; background: transparent; color: #ff9bac; font-weight: 900; }
.copas-estado { display: grid; gap: 6px; place-items: center; padding: 28px 16px; border-radius: 15px; background: #fff; color: #745f51; text-align: center; box-shadow: 0 4px 11px #0002; }
.copas-estado b { color: #761629; font-size: 15px; }
.copas-estado span { font-size: 11px; }
.copas-estado button { margin-top: 7px; border: 0; border-radius: 9px; padding: 9px 14px; background: #1d6849; color: #fff; font-weight: 900; }
.copas-estado.erro b { color: #9b1830; }
.minha-posicao { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; background: linear-gradient(120deg,#7c1629,#a5263d); color: #fff; border-radius: 13px; padding: 11px; }
.minha-posicao small { grid-column: 1/-1; color: #f4d26f; }
.minha-posicao b { font-size: 22px; }
.minha-posicao strong { color: #ffe085; }
.ranking-online { margin: 10px 0; }
.ranking-online .ranking-jogador { width: 100%; display: grid; grid-template-columns: 26px 46px 1fr auto; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid #e2d8ca; padding: 9px; background: #fff; color: #33251f; text-align: left; }
.ranking-online .ranking-jogador:first-child { border-radius: 13px 13px 0 0; }
.ranking-online .ranking-jogador:last-child { border-bottom: 0; border-radius: 0 0 13px 13px; }
.ranking-online .ranking-jogador:only-child { border-radius: 13px; }
.ranking-online .ranking-jogador.sou-eu { background: #fff2c9; box-shadow: inset 4px 0 #d5a72e; }
.ranking-online .ranking-jogador > strong { text-align: center; font-size: 16px; }
.ranking-online .ranking-jogador > img, .ranking-online .ranking-jogador > .avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #d6aa37; object-fit: cover; }
.ranking-online .ranking-jogador > span { min-width: 0; display: grid; }
.ranking-online .ranking-jogador > span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-online .ranking-jogador > span small { overflow: hidden; color: #7b6758; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.bandeira-ranking { display: inline-flex; width: 29px; height: 20px; margin-right: 6px; border-radius: 2px; vertical-align: -5px; object-fit: contain; object-position: center; background: transparent; box-shadow: none; }
.bandeira-ranking.bandeira-pais { width: auto; height: auto; font-size: 15px; line-height: 1; box-shadow: none; }
.bandeira-ranking.bandeira-uf { align-items: center; justify-content: center; background: #e5d5bb; color: #6f1628; font-size: 10px; font-weight: 900; }
.minha-posicao .bandeira-ranking { width: 33px; height: 23px; margin-right: 5px; vertical-align: -6px; }
.minha-posicao .bandeira-ranking.bandeira-pais { width: auto; height: auto; }
.ranking-online .ranking-jogador > em { color: #7c1629; font-size: 12px; font-style: normal; font-weight: 900; white-space: nowrap; }
.ranking-carregando, .ranking-vazio { padding: 24px 12px; border-radius: 13px; background: #fff; color: #715e50; text-align: center; }
.buscar-amigo, .form-chat { display: flex; gap: 6px; }
.buscar-amigo input, .form-chat input { min-width: 0; flex: 1; border: 1px solid #c7b8a4; border-radius: 10px; padding: 11px; }
.buscar-amigo button, .form-chat button, .adicionar-amigo { border: 0; border-radius: 9px; background: #80182a; color: #fff; font-weight: 800; padding: 9px; }
.lista-amigos { display: grid; gap: 8px; }
.lista-amigos > div { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; }
.lista-amigos .avatar { width: 46px; height: 46px; }
.lista-amigos span { display: grid; flex: 1; }
.lista-amigos small { color: #7b6758; font-size: 9px; }
.lista-amigos em { color: #23904f; font-size: 9px; font-style: normal; }
.lista-amigos button { border: 0; border-radius: 8px; padding: 8px; background: #206d4d; color: #fff; font-size: 9px; font-weight: 900; }
.lista-amigos button:disabled { background: #999; }
.adicionar-amigo { width: 100%; margin-top: 10px; }
.salas-chat { display: flex; gap: 5px; margin-bottom: 8px; }
.salas-chat button { flex: 1; border: 0; padding: 8px; border-radius: 8px; background: #d6cab9; }
.salas-chat button.sel { background: #1b5b42; color: #fff; }
.mensagens-chat { height: 330px; overflow-y: scroll; padding: 9px; border-radius: 13px; background: #16372d; scrollbar-width: thin; scrollbar-color: #d8ad45 #0f2c24; }
.mensagens-chat::-webkit-scrollbar { width: 9px; }
.mensagens-chat::-webkit-scrollbar-track { background: #0f2c24; border-radius: 9px; }
.mensagens-chat::-webkit-scrollbar-thumb { background: #d8ad45; border-radius: 9px; border: 2px solid #0f2c24; }
.mensagens-chat p { display: grid; grid-template-columns: 1fr auto; padding: 8px; margin: 5px 0; border-radius: 9px; background: #ffffff12; color: #fff; }
.mensagens-chat .chat-nome { justify-self: start; border: 0; padding: 0; background: transparent; color: var(--cor-jogador, #f2c451); font-size: 11px; font-weight: 900; text-shadow: 0 1px 1px #0008; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.mensagens-chat .chat-nome:active, .mensagens-chat .chat-nome:focus-visible { text-decoration-color: currentColor; }
.mensagens-chat span { grid-column: 1/-1; font-size: 13px; }
.mensagens-chat small { grid-column: 2; grid-row: 1; color: #a9c4b9; font-size: 8px; }
.form-chat { margin-top: 8px; }
.mensagens-chat .chat-vazio { display: block; text-align: center; padding: 25px 10px; color: #c9d8d1; background: transparent; }
.mensagens-chat p.minha-mensagem { margin-left: 28px; background: #2b6652; border: 1px solid #f2c45155; }
.mensagens-chat .chat-resposta-citada { grid-column: 1/-1; display: grid; gap: 2px; margin: 5px 0; padding: 6px 8px; border-left: 3px solid #f2c451; border-radius: 5px; background: #071a1480; color: #d5e3dc; font-size: 11px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mensagens-chat .chat-resposta-citada b { color: var(--cor-citado, #f2c451); font-size: 10px; text-shadow: 0 1px 1px #0008; }
.mensagens-chat .chat-responder { grid-column: 1/-1; justify-self: end; border: 0; padding: 4px 0 0; background: transparent; color: #e7c968; font-size: 10px; font-weight: 800; }
.form-chat { flex-wrap: wrap; }
.form-chat .resposta-chat { order: -1; width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; border-left: 4px solid #d8ad45; background: #173d31; color: #fff; }
.form-chat .resposta-chat[hidden] { display: none; }
.resposta-chat span { min-width: 0; display: grid; flex: 1; }
.resposta-chat b { color: #f2c451; font-size: 11px; }
.resposta-chat small { overflow: hidden; color: #d5e3dc; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.resposta-chat button { padding: 2px 7px; border-radius: 50%; background: #ffffff22; font-size: 18px; }
.perfil-chat-modal { display: grid; justify-items: center; text-align: center; }
.perfil-chat-modal > img, .perfil-chat-modal > .avatar { width: 92px; height: 92px; margin-bottom: 9px; border-radius: 50%; border: 4px solid var(--cor-perfil); object-fit: cover; box-shadow: 0 5px 18px #0005; }
.perfil-chat-modal > small { color: var(--cor-perfil); font-size: 10px; font-weight: 900; }
.perfil-chat-modal h2 { margin: 3px 0; color: #fff; }
.perfil-chat-modal > b { color: var(--cor-perfil); font-size: 12px; }
.perfil-chat-modal > p { margin: 7px 0 12px; color: #d7e2dd; }
.perfil-chat-modal > div { display: flex; align-items: center; gap: 8px; }
.perfil-chat-modal > div span, .perfil-chat-modal > div strong { padding: 6px 10px; border-radius: 999px; background: #ffffff16; color: #fff; font-size: 11px; }
.perfil-chat-modal .saldo-moedas-modal { display: inline-flex; align-items: center; gap: 4px; }
.perfil-chat-modal .saldo-moedas-modal .icone-moeda { width: 20px; height: 20px; }
.pontos-ranking-resultado { margin: 10px 0; padding: 9px; border-radius: 10px; background: #f2c45122; color: #f2c451; font-size: 17px; font-weight: 900; text-align: center; }
.chat-partida-modal .modal-box { width: min(430px, calc(100% - 18px)); background: linear-gradient(160deg,#183f33,#102920); }
.chat-partida-modal .modal-box h2 { color: #f6d36e; }
.chat-partida-modal .chat-legenda { margin-top: -8px; color: #cbd8d2; font-size: 12px; }
.chat-partida-modal .mensagens-chat { height: min(48vh, 360px); background: #0d261e; }
@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    padding: 16px;
    background: radial-gradient(circle at center, #31191b, #0d0708 72%);
  }
  .tela {
    width: min(92vw, 900px);
    height: min(900px, calc(100vh - 32px));
    border-radius: 20px;
    box-shadow: 0 20px 70px #000;
  }
  .logo { padding-top: 4vh; }
  .logo h1 { font-size: clamp(48px, 5vw, 68px); }
  .menu-principal { width: min(680px, calc(100% - 70px)); margin-top: 4vh; }
  .menu-principal button { min-height: 76px; padding-inline: 20px; }
  .menu-principal b { font-size: 22px; }
  .rodape { width: min(620px, calc(100% - 70px)); left: 50%; right: auto; transform: translateX(-50%); }
  .painel:not(.mesa) > .perfil-online,
  .painel:not(.mesa) > .online-auth,
  .painel:not(.mesa) > .online-conteudo,
  .painel:not(.mesa) > .nivel,
  .painel:not(.mesa) > .lista-desafios,
  .painel:not(.mesa) > .jogadores,
  .painel:not(.mesa) > .seletor-dificuldade,
  .painel:not(.mesa) > .fala,
  .painel:not(.mesa) > .regras-card,
  .painel:not(.mesa) > .botoes-grandes,
  .painel:not(.mesa) > .nota,
  .painel:not(.mesa) > .stats,
  .painel:not(.mesa) > .conquistas,
  .painel:not(.mesa) > .config-area,
  .painel:not(.mesa) > .credito {
    width: min(720px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
  }
  .mesa .mao { gap: 10px; }
  .mesa .eu { left: 24px; }
  .mesa .monte { left: 28px; }
  .mesa .vira { left: 72px; }
  .mesa .contador { left: 27px; }
  .modal {
    position: absolute;
  }
  .modal-box {
    width: min(560px, calc(100% - 36px));
    max-height: 86%;
  }
}

/* ===== Arena Online: amigos reais e bloqueios ===== */
.resultados-busca-amigo { margin: 10px 0 14px; padding: 10px; border: 1px solid #d9cbb8; border-radius: 14px; background: #fff8; }
.rotulo-busca-social { display: block; margin: 0 0 8px; color: #7d6855; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.lista-amigos .linha-social { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px #6b4d2a12; }
.lista-amigos .foto-amigo-real { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; object-fit: cover; border: 2px solid #d6b04d; }
.lista-amigos .linha-social span { display: grid; flex: 1; min-width: 0; }
.lista-amigos .linha-social b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-amigos .linha-social small { font-size: 10px; }
.lista-amigos .linha-social em { margin-top: 2px; font-size: 10px; }
.social-vazio { display: grid; gap: 4px; width: 100%; padding: 18px 12px; border-radius: 12px; background: #fff; color: #7b6758; text-align: center; font-size: 12px; }
.social-vazio b { color: #751b2b; font-size: 13px; }
.social-vazio span { color: #8c7a69; }
.bloco-bloqueados { margin-top: 18px; padding-top: 4px; border-top: 1px solid #d7c5ad; }
.bloco-bloqueados .lista-amigos em { color: #a02a37; }
.acoes-perfil-social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.acoes-perfil-social .cta { margin: 0; min-height: 48px; font-size: 12px; }
.acoes-perfil-social .social-secundario { background: #425c50; }
.acoes-perfil-social .social-bloquear { background: #7d2731; }
.status-relacao { display: inline-flex; width: max-content; margin: 7px auto 0; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.status-relacao.amigo { background: #1f6c4d; color: #fff; }
.status-relacao.bloqueado { background: #8a2633; color: #fff; }
@media (max-width: 480px) {
  .acoes-perfil-social { grid-template-columns: 1fr; }
  .lista-amigos .linha-social button { padding: 8px 7px; font-size: 8px; }
}


/* ===== Perfil: histórico de confrontos 1x1 ===== */
.confrontos-perfil { margin-top: 14px; padding: 14px; border: 1px solid #d9c8ab; border-radius: 16px; background: linear-gradient(180deg, #fffaf0, #f4e8d2); color: #5b4635; text-align: center; }
.confrontos-perfil > small { display: block; margin-bottom: 10px; color: #8f1f34; font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.placar-confrontos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.placar-confrontos span { display: grid; align-content: center; min-height: 70px; padding: 8px 5px; border-radius: 12px; background: #fff; box-shadow: 0 2px 7px #6f4d2812; }
.placar-confrontos b { color: #8f1f34; font-size: 25px; line-height: 1; }
.placar-confrontos em { margin-top: 5px; color: #6f604f; font-size: 9px; font-style: normal; font-weight: 800; line-height: 1.15; }
.confrontos-perfil > p { margin: 10px 0 0; color: #756453; font-size: 11px; }
.confrontos-perfil > p strong { color: #2f6549; }
@media (max-width: 390px) { .placar-confrontos b { font-size: 22px; } .placar-confrontos em { font-size: 8px; } }


/* ===== Perfil: troféus reais de campeonatos ===== */
.trofeus-online-resumo { display: inline-flex; align-items: center; gap: 4px; color: #f5d875; }
.trofeus-online-resumo[hidden] { display: none !important; }
.trofeus-online-resumo .mini-trofeu { font-size: 15px; }
.trofeus-perfil { margin-top: 14px; padding: 14px; border: 1px solid #d9c8ab; border-radius: 16px; background: linear-gradient(180deg, #fffaf0, #f4e8d2); color: #5b4635; }
.trofeus-perfil header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.trofeus-perfil header small { color: #8f1f34; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.trofeus-perfil header strong { color: #2f6549; font-size: 12px; white-space: nowrap; }
.grade-trofeus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trofeu-card { position: relative; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; min-height: 64px; padding: 8px 9px; border-radius: 13px; background: #fff; box-shadow: 0 2px 8px #6f4d2814; overflow: hidden; }
.trofeu-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: currentColor; }
.trofeu-card i { grid-row: 1 / span 2; font-size: 27px; font-style: normal; filter: saturate(.95); }
.trofeu-card b { color: #3b3128; font-size: 22px; line-height: 1; }
.trofeu-card em { align-self: end; color: #4f4439; font-size: 10px; font-style: normal; font-weight: 900; }
.trofeu-card small { grid-column: 2; color: #8b7b69; font-size: 8px; }
.trofeu-cidade { color: #b66a2c; background: linear-gradient(135deg, #fff, #f8eadc); }
.trofeu-estado { color: #8f9aa4; background: linear-gradient(135deg, #fff, #eef1f3); }
.trofeu-brasil { color: #c59b18; background: linear-gradient(135deg, #fff, #fff2bd); }
.trofeu-global { color: #28a9c9; background: linear-gradient(135deg, #fff, #dff7ff); }
.trofeus-perfil details { margin-top: 10px; border-top: 1px solid #d8c7aa; padding-top: 8px; }
.trofeus-perfil summary { color: #6d5a47; font-size: 10px; font-weight: 900; cursor: pointer; }
.trofeus-perfil ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.trofeus-perfil li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; background: #ffffffa8; }
.trofeus-perfil li > span { font-size: 18px; }
.trofeus-perfil li div { display: grid; text-align: left; }
.trofeus-perfil li b { color: #554638; font-size: 10px; }
.trofeus-perfil li small { color: #8c7967; font-size: 8px; }
@media (max-width: 390px) { .trofeus-perfil { padding: 12px; } .trofeu-card { grid-template-columns: 32px 1fr; padding: 7px; } .trofeu-card i { font-size: 23px; } .trofeu-card b { font-size: 20px; } }


/* ===== Arena Online: formação de duplas 2x2 ===== */
.painel-dupla-2x2 { color: #4c3b2e; }
.painel-dupla-2x2 > header { margin-bottom: 14px; text-align: center; }
.painel-dupla-2x2 > header small { color: #b58a27; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.painel-dupla-2x2 > header h2 { margin: 4px 0 5px; color: #8f1f34; font-size: 24px; }
.painel-dupla-2x2 > header p { margin: 0; color: #746354; font-size: 11px; line-height: 1.35; }
.painel-dupla-2x2.carregando { display: grid; place-items: center; min-height: 220px; text-align: center; }
.painel-dupla-2x2.carregando > i { font-size: 45px; font-style: normal; }
.bloco-dupla-2x2 { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid #ddceb9; border-radius: 16px; background: #fff9ef; }
.bloco-dupla-2x2.destaque { border-color: #d4aa3e; background: #fff4cf; }
.bloco-dupla-2x2 > h3 { margin: 0 0 2px; color: #715e4c; font-size: 10px; letter-spacing: .07em; }
.convite-dupla-card, .amigo-dupla-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px; border-radius: 13px; background: #fff; box-shadow: 0 2px 8px #72512d12; }
.foto-dupla-2x2 { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #d4ad4a; }
.convite-dupla-card > span, .amigo-dupla-card > span { display: grid; min-width: 0; }
.convite-dupla-card > span small { color: #8f1f34; font-size: 8px; font-weight: 900; }
.convite-dupla-card > span b, .amigo-dupla-card > span b { overflow: hidden; color: #3c3128; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.convite-dupla-card > span em, .amigo-dupla-card > span small { color: #806f60; font-size: 9px; font-style: normal; }
.convite-dupla-card > div { display: grid; gap: 5px; }
.convite-dupla-card button, .amigo-dupla-card button { min-width: 76px; padding: 8px 8px; border: 0; border-radius: 9px; background: #7a2935; color: #fff; font-size: 8px; font-weight: 900; }
.convite-dupla-card button.aceitar, .amigo-dupla-card button:not(:disabled) { background: #176247; }
.convite-dupla-card.enviado > button { background: #8f7f70; }
.amigo-dupla-card button:disabled { opacity: .58; }
.regra-dupla-2x2 { margin: 12px 4px 0; color: #8b7968; font-size: 9px; text-align: center; }
.dupla-formada-cards { display: grid; grid-template-columns: minmax(0,1fr) 26px minmax(0,1fr); align-items: center; gap: 7px; }
.dupla-formada-cards > i { color: #c19a39; font-size: 24px; font-style: normal; font-weight: 900; text-align: center; }
.card-jogador-dupla { display: grid; justify-items: center; min-width: 0; padding: 13px 8px; border: 1px solid #ddcfb9; border-radius: 16px; background: #fffaf0; text-align: center; }
.card-jogador-dupla.jogador-atual { border-color: #d0a73b; background: #fff3c9; }
.card-jogador-dupla small { margin-top: 5px; color: #9a7a2c; font-size: 8px; font-weight: 900; }
.card-jogador-dupla b { max-width: 100%; overflow: hidden; color: #382e26; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.card-jogador-dupla span { margin-top: 2px; color: #7d6b5b; font-size: 8px; }
.card-jogador-dupla em { margin-top: 5px; color: #275f48; font-size: 9px; font-style: normal; font-weight: 800; }
.dupla-pronta { display: grid; gap: 3px; margin: 13px 0; padding: 11px; border-radius: 13px; background: #e4f3e9; color: #216347; text-align: center; }
.dupla-pronta b { font-size: 11px; }
.dupla-pronta span { font-size: 9px; }
@media (max-width: 390px) {
  .painel-dupla-2x2 > header h2 { font-size: 21px; }
  .convite-dupla-card, .amigo-dupla-card { grid-template-columns: 42px minmax(0,1fr) auto; gap: 6px; padding: 7px; }
  .foto-dupla-2x2 { width: 42px; height: 42px; }
  .convite-dupla-card button, .amigo-dupla-card button { min-width: 67px; padding: 7px 5px; font-size: 7px; }
  .dupla-formada-cards { grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); gap: 4px; }
  .card-jogador-dupla { padding: 10px 5px; }
}

/* ===== Duplas 2x2 v2 — tela própria: amigo ou parceiro aleatório ===== */
.modal.modal-duplas-page {
  padding: 0;
  background: rgba(18, 7, 7, .72);
  align-items: stretch;
}
.modal-duplas-page .modal-box {
  width: 100%;
  max-width: 520px;
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #f8f0e2 0%, #f3e1bd 100%);
  color: #49382c;
}
.modal-duplas-page .modal-box > .fechar { display: none; }
.modal-duplas-page #modalConteudo { height: 100%; }
.duplas-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.duplas-page.carregando { display: grid; place-items: center; }
.duplas-loader { display: grid; justify-items: center; gap: 8px; color: #8f1f34; text-align: center; }
.duplas-loader i { font-size: 54px; font-style: normal; }
.duplas-loader h2 { margin: 0; font-size: 23px; }
.duplas-page-topo {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 22px 18px 16px;
  background: linear-gradient(145deg,#8d1428,#b11735);
  color: #fff;
  box-shadow: 0 4px 16px #4e112334;
}
.duplas-page-topo .duplas-voltar {
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.13); color: #fff; font-size: 40px; line-height: 34px;
}
.duplas-page-topo span { min-width: 0; }
.duplas-page-topo small { display: block; color: #f7d36c; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.duplas-page-topo h2 { margin: 2px 0 2px !important; color: #fff; font-size: 25px; line-height: 1.05; }
.duplas-page-topo p { margin: 0; color: #f2dfe2; font-size: 11px; line-height: 1.35; }
.duplas-page-corpo { flex: 1; min-height: 0; overflow: auto; padding: 18px 18px 28px; -webkit-overflow-scrolling: touch; }
.duplas-escolhas { display: grid; gap: 14px; }
.duplas-opcao {
  display: grid; grid-template-columns: 62px minmax(0,1fr) 24px; align-items: center; gap: 12px;
  width: 100%; min-height: 108px; padding: 16px; border: 0; border-radius: 21px;
  color: #fff; text-align: left; box-shadow: 0 7px 20px #5f3f2526;
}
.duplas-opcao.amigo { background: linear-gradient(145deg,#0f6246,#154d3c); }
.duplas-opcao.aleatorio { background: linear-gradient(145deg,#9d1930,#771b2a); }
.duplas-opcao > i {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: rgba(255,255,255,.12); font-size: 34px; font-style: normal;
}
.duplas-opcao > span { display: grid; gap: 4px; min-width: 0; }
.duplas-opcao b { font-size: 18px; letter-spacing: .01em; }
.duplas-opcao small { color: #f5e6d5; font-size: 11px; line-height: 1.3; }
.duplas-opcao > em { font-size: 32px; font-style: normal; opacity: .8; }
.duplas-info { display: grid; gap: 5px; margin-top: 16px; padding: 14px 15px; border: 1px solid #e0caa5; border-radius: 16px; background: rgba(255,255,255,.56); }
.duplas-info b { color: #6b4939; font-size: 11px; }
.duplas-info span { color: #806f60; font-size: 10px; line-height: 1.45; }
.duplas-info.alerta { border-color: #d9b957; background: #fff3cc; }
.modal-duplas-page .bloco-dupla-2x2 { margin-top: 16px; padding: 13px; border-radius: 18px; }
.modal-duplas-page .bloco-dupla-2x2 > h3 { font-size: 10px; }
.modal-duplas-page .convite-dupla-card,
.modal-duplas-page .amigo-dupla-card { grid-template-columns: 52px minmax(0,1fr) auto; gap: 9px; padding: 10px; border-radius: 15px; }
.modal-duplas-page .foto-dupla-2x2 { width: 52px; height: 52px; }
.modal-duplas-page .convite-dupla-card > span b,
.modal-duplas-page .amigo-dupla-card > span b { font-size: 13px; }
.modal-duplas-page .convite-dupla-card button,
.modal-duplas-page .amigo-dupla-card button { min-width: 78px; min-height: 36px; font-size: 8px; }
.busca-parceiro { display: flex; flex-direction: column; }
.busca-parceiro-animacao { display: grid; justify-items: center; padding: 25px 8px 12px; text-align: center; }
.radar-dupla { position: relative; display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: #fff8e8; box-shadow: 0 0 0 0 rgba(157,25,48,.25); animation: pulsoDupla 1.7s infinite; }
.radar-dupla::before, .radar-dupla::after { content: ""; position: absolute; border: 1px solid #b01d3850; border-radius: 50%; }
.radar-dupla::before { inset: 15px; }
.radar-dupla::after { inset: 31px; }
.radar-dupla span { position: relative; z-index: 2; font-size: 45px; }
.busca-parceiro-animacao h3 { margin: 20px 0 7px; color: #8f1f34; font-size: 18px; }
.busca-parceiro-animacao p { max-width: 330px; margin: 0; color: #776657; font-size: 11px; line-height: 1.45; }
@keyframes pulsoDupla { 0%{box-shadow:0 0 0 0 rgba(157,25,48,.24)} 70%{box-shadow:0 0 0 28px rgba(157,25,48,0)} 100%{box-shadow:0 0 0 0 rgba(157,25,48,0)} }
.duplas-acao { width: 100%; min-height: 52px; margin-top: 13px; border: 0; border-radius: 16px; color: #fff; font-size: 13px; font-weight: 900; }
.duplas-acao.primaria { background: linear-gradient(#1d704f,#15593f); }
.duplas-acao.perigo { background: linear-gradient(#ad1732,#8c1229); }
.modal-duplas-page .dupla-formada-cards.grande { margin-top: 10px; gap: 9px; }
.modal-duplas-page .dupla-formada-cards.grande .card-jogador-dupla { min-height: 190px; padding: 16px 8px; }
.modal-duplas-page .dupla-formada-cards.grande .foto-dupla-2x2 { width: 74px; height: 74px; }
.modal-duplas-page .dupla-formada-cards.grande .card-jogador-dupla b { margin-top: 3px; font-size: 13px; }
.modal-duplas-page .dupla-formada-cards.grande .card-jogador-dupla span { font-size: 9px; }
.modal-duplas-page .dupla-formada-cards.grande .card-jogador-dupla em { font-size: 9px; }
.modal-duplas-page .dupla-pronta { margin: 16px 0 4px; padding: 14px; border-radius: 16px; }
@media (max-width: 380px) {
  .duplas-page-topo { min-height: 102px; padding: 18px 14px 14px; }
  .duplas-page-topo h2 { font-size: 22px; }
  .duplas-page-corpo { padding: 14px 13px 24px; }
  .duplas-opcao { grid-template-columns: 52px minmax(0,1fr) 18px; min-height: 96px; padding: 13px; gap: 9px; }
  .duplas-opcao > i { width: 50px; height: 50px; font-size: 29px; border-radius: 15px; }
  .duplas-opcao b { font-size: 16px; }
  .modal-duplas-page .convite-dupla-card, .modal-duplas-page .amigo-dupla-card { grid-template-columns: 44px minmax(0,1fr) auto; gap: 6px; padding: 8px; }
  .modal-duplas-page .foto-dupla-2x2 { width: 44px; height: 44px; }
  .modal-duplas-page .convite-dupla-card button, .modal-duplas-page .amigo-dupla-card button { min-width: 68px; padding: 7px 5px; }
}


/* ===== CORREÇÃO FORÇADA DO LAYOUT DUPLAS 2x2 ===== */
#modal.modal-duplas-page {
  position: fixed !important;
  inset: 0 !important;
  z-index: 500 !important;
  display: none;
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: center !important;
  background: rgba(15, 5, 7, .82) !important;
}
#modal.modal-duplas-page.aberto { display: flex !important; }
#modal.modal-duplas-page .modal-box {
  position: relative !important;
  width: min(100%, 520px) !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 520px !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg,#f8f1e5 0%,#f1dfbb 100%) !important;
  color: #49382c !important;
  box-shadow: none !important;
}
#modal.modal-duplas-page .modal-box > .fechar { display: none !important; }
#modal.modal-duplas-page #modalConteudo {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#modal.modal-duplas-page .duplas-page {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
#modal.modal-duplas-page .duplas-page-topo {
  flex: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0,1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 104px !important;
  padding: 18px 16px 15px !important;
  background: linear-gradient(145deg,#8b152a,#aa1934) !important;
  color: #fff !important;
  box-shadow: 0 5px 18px rgba(78,17,35,.24) !important;
}
#modal.modal-duplas-page .duplas-page-topo .duplas-voltar {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  font-size: 32px !important;
  line-height: 1 !important;
}
#modal.modal-duplas-page .duplas-page-topo small {
  display: block !important;
  margin-bottom: 3px !important;
  color: #f4d46f !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
}
#modal.modal-duplas-page .duplas-page-topo h2 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 25px !important;
  line-height: 1.05 !important;
}
#modal.modal-duplas-page .duplas-page-topo p {
  margin: 5px 0 0 !important;
  color: #f0dfe2 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}
#modal.modal-duplas-page .duplas-page-corpo {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 18px 16px 28px !important;
  -webkit-overflow-scrolling: touch !important;
}
#modal.modal-duplas-page .duplas-escolhas {
  display: grid !important;
  gap: 14px !important;
}
#modal.modal-duplas-page button.duplas-opcao {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  min-height: 104px !important;
  margin: 0 !important;
  padding: 15px !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0,1fr) 22px !important;
  align-items: center !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 20px !important;
  color: #fff !important;
  text-align: left !important;
  box-shadow: 0 8px 20px rgba(77,48,30,.16) !important;
}
#modal.modal-duplas-page button.duplas-opcao.amigo {
  background: linear-gradient(145deg,#176b4e,#0d4d38) !important;
}
#modal.modal-duplas-page button.duplas-opcao.aleatorio {
  background: linear-gradient(145deg,#a21c37,#751529) !important;
}
#modal.modal-duplas-page .duplas-opcao > i {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.13) !important;
  font-size: 31px !important;
  font-style: normal !important;
}
#modal.modal-duplas-page .duplas-opcao > span {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}
#modal.modal-duplas-page .duplas-opcao > span b {
  display: block !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.1 !important;
  white-space: normal !important;
}
#modal.modal-duplas-page .duplas-opcao > span small {
  display: block !important;
  color: rgba(255,255,255,.82) !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}
#modal.modal-duplas-page .duplas-opcao > em {
  color: #fff !important;
  font-size: 29px !important;
  font-style: normal !important;
  line-height: 1 !important;
  opacity: .78 !important;
}
#modal.modal-duplas-page .duplas-info {
  display: grid !important;
  gap: 5px !important;
  margin-top: 16px !important;
  padding: 14px 15px !important;
  border: 1px solid #ddc9a5 !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.64) !important;
}
#modal.modal-duplas-page .duplas-info b {
  color: #6e4c3b !important;
  font-size: 12px !important;
}
#modal.modal-duplas-page .duplas-info span {
  color: #7c6b5d !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}
@media (max-width: 380px) {
  #modal.modal-duplas-page .duplas-page-topo { min-height: 96px !important; padding: 15px 13px 13px !important; }
  #modal.modal-duplas-page .duplas-page-topo h2 { font-size: 22px !important; }
  #modal.modal-duplas-page .duplas-page-corpo { padding: 14px 13px 24px !important; }
  #modal.modal-duplas-page button.duplas-opcao { min-height: 94px !important; grid-template-columns: 50px minmax(0,1fr) 18px !important; padding: 12px !important; gap: 9px !important; }
  #modal.modal-duplas-page .duplas-opcao > i { width: 48px !important; height: 48px !important; font-size: 27px !important; }
  #modal.modal-duplas-page .duplas-opcao > span b { font-size: 15px !important; }
  #modal.modal-duplas-page .duplas-opcao > span small { font-size: 10px !important; }
}


/* ===== Duplas 2x2 — correção cards + convites globais ===== */
#modal.modal-duplas-page .dupla-formada-cards.grande {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 8px !important;
}
#modal.modal-duplas-page .dupla-formada-cards.grande > .card-jogador-dupla {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
}
#modal.modal-duplas-page .dupla-formada-cards.grande > i {
  display: grid !important;
  place-items: center !important;
  position: static !important;
  transform: none !important;
  width: 30px !important;
  margin: 0 !important;
}
#modal.modal-duplas-page .card-jogador-dupla.jogador-atual {
  border: 2px solid #d0a73b !important;
  background: #fff3c9 !important;
}
#modal.modal-duplas-page .dupla-pronta,
#modal.modal-duplas-page .duplas-acao {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modos-online > button[data-fila="2x2"] { position: relative; }
.badge-convite-dupla-2x2 {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 5 !important;
  display: grid !important;
  place-items: center !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 6px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #d71938 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px #0004 !important;
}
.notificacao-dupla-global {
  position: fixed;
  z-index: 20000;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(620px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid #d4b15b;
  border-radius: 18px;
  background: #fff9e9;
  box-shadow: 0 12px 34px #0007;
  color: #30251f;
  box-sizing: border-box;
  animation: conviteDuplaEntrar .22s ease-out;
}
.notificacao-dupla-global.dupla-formada {
  border-color: #5b9d7d;
  background: #eaf8f0;
}
.notificacao-dupla-global .foto-dupla-2x2.mini {
  width: 56px !important;
  height: 56px !important;
  border: 3px solid #d2aa45;
  border-radius: 50%;
  object-fit: cover;
}
.notificacao-dupla-texto {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.notificacao-dupla-texto small {
  color: #9c1c35;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.notificacao-dupla-global.dupla-formada .notificacao-dupla-texto small { color: #237154; }
.notificacao-dupla-texto b {
  overflow: hidden;
  color: #332923;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
}
.notificacao-dupla-texto span {
  color: #79685b;
  font-size: 10px;
}
.notificacao-dupla-acoes {
  display: grid;
  gap: 6px;
}
.notificacao-dupla-acoes button {
  min-width: 74px;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: #e3ddd1;
  color: #5a473d;
  font-size: 8px;
  font-weight: 900;
}
.notificacao-dupla-acoes button.aceitar {
  background: #176b4d;
  color: #fff;
}
.notificacao-dupla-acoes.uma button { min-width: 90px; }
@keyframes conviteDuplaEntrar {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 430px) {
  .notificacao-dupla-global {
    top: 8px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
    width: calc(100vw - 16px);
    padding: 10px;
    border-radius: 15px;
  }
  .notificacao-dupla-global .foto-dupla-2x2.mini { width: 44px !important; height: 44px !important; }
  .notificacao-dupla-acoes {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .notificacao-dupla-acoes.uma { grid-template-columns: 1fr; }
  .notificacao-dupla-acoes button { min-height: 38px; font-size: 9px; }
  #modal.modal-duplas-page .dupla-formada-cards.grande {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) !important;
    gap: 5px !important;
  }
  #modal.modal-duplas-page .dupla-formada-cards.grande > i { width: 24px !important; }
  #modal.modal-duplas-page .dupla-formada-cards.grande .card-jogador-dupla {
    min-height: 178px !important;
    padding: 13px 6px !important;
  }
  #modal.modal-duplas-page .dupla-formada-cards.grande .foto-dupla-2x2 {
    width: 66px !important;
    height: 66px !important;
  }
}


/* ===== Duplas 2x2 — fila dupla contra dupla ===== */
#modal.modal-duplas-page .fila-dupla-status {
  text-align: center;
  display: grid;
  gap: 6px;
}
#modal.modal-duplas-page .fila-dupla-status b { font-size: 14px; }
#modal.modal-duplas-page .fila-dupla-status.procurando {
  background: #e7f3ec;
  border: 1px solid #b7d6c5;
}
#modal.modal-duplas-page .confronto-2x2 { padding-bottom: 28px !important; }
#modal.modal-duplas-page .time-confronto-2x2 {
  display: grid;
  gap: 8px;
}
#modal.modal-duplas-page .time-confronto-2x2 > small {
  text-align: center;
  color: #9a7b2e;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 10px;
}
#modal.modal-duplas-page .time-confronto-2x2 > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#modal.modal-duplas-page .card-confronto-2x2 {
  min-width: 0;
  padding: 14px 8px;
  background: #fffdf8;
  border: 1px solid #ddcfb9;
  border-radius: 18px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 5px;
}
#modal.modal-duplas-page .card-confronto-2x2.minha-equipe {
  background: #fff5c9;
  border: 2px solid #cfaa37;
}
#modal.modal-duplas-page .card-confronto-2x2.adversario {
  background: #fff5f5;
  border: 1px solid #e0b8bd;
}
#modal.modal-duplas-page .card-confronto-2x2 .foto-dupla-2x2 {
  width: 66px !important;
  height: 66px !important;
}
#modal.modal-duplas-page .card-confronto-2x2 b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
#modal.modal-duplas-page .card-confronto-2x2 span {
  color: #827265;
  font-size: 9px;
}
#modal.modal-duplas-page .versus-2x2 {
  margin: 12px auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #99172e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(116,20,38,.22);
  font-size: 18px;
}


/* =========================================================
   MESA ONLINE 2×2 — BASE VISUAL
========================================================= */
#modal.modal-duplas-page .mesa2x2-corpo { padding: 12px 12px 24px !important; }
#modal.modal-duplas-page .mesa2x2-placar {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  padding: 9px 12px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid #dbcba9 !important;
}
#modal.modal-duplas-page .mesa2x2-placar span { text-align: center !important; }
#modal.modal-duplas-page .mesa2x2-placar small {
  display: block !important;
  color: #806b53 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
}
#modal.modal-duplas-page .mesa2x2-placar b {
  color: #8f1930 !important;
  font-size: 18px !important;
}
#modal.modal-duplas-page .mesa2x2-placar strong {
  color: #b49135 !important;
  font-size: 20px !important;
}
#modal.modal-duplas-page .mesa2x2-tabuleiro {
  position: relative !important;
  min-height: 565px !important;
  overflow: hidden !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.10), transparent 32%),
    linear-gradient(160deg, #15553f 0%, #0b3d30 62%, #082e25 100%) !important;
  border: 2px solid rgba(211,174,72,.9) !important;
  box-shadow: inset 0 0 45px rgba(0,0,0,.18), 0 10px 22px rgba(57,31,14,.15) !important;
}
#modal.modal-duplas-page .mesa2x2-jogador {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-width: 0 !important;
  color: #fff !important;
  text-align: center !important;
}
#modal.modal-duplas-page .mesa2x2-jogador b {
  max-width: 110px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}
#modal.modal-duplas-page .mesa2x2-jogador small {
  max-width: 115px !important;
  color: #d7e9e2 !important;
  font-size: 8px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
#modal.modal-duplas-page .mesa2x2-jogador em {
  margin-top: 3px !important;
  color: #f6d361 !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 800 !important;
}
#modal.modal-duplas-page .mesa2x2-avatar {
  width: 52px !important;
  height: 52px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #264c40 !important;
  border: 3px solid #f0cb5f !important;
  box-shadow: 0 5px 12px rgba(0,0,0,.28) !important;
}
#modal.modal-duplas-page .mesa2x2-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#modal.modal-duplas-page .mesa2x2-avatar span { font-size: 25px !important; }
#modal.modal-duplas-page .mesa2x2-topo-jogador {
  position: absolute !important;
  z-index: 3 !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
#modal.modal-duplas-page .mesa2x2-lateral {
  position: absolute !important;
  z-index: 3 !important;
  top: 183px !important;
  width: 92px !important;
}
#modal.modal-duplas-page .mesa2x2-lateral.esquerda { left: 6px !important; }
#modal.modal-duplas-page .mesa2x2-lateral.direita { right: 6px !important; }
#modal.modal-duplas-page .mesa2x2-centro {
  position: absolute !important;
  z-index: 2 !important;
  top: 135px !important;
  left: 50% !important;
  width: 175px !important;
  min-height: 235px !important;
  transform: translateX(-50%) !important;
}
#modal.modal-duplas-page .mesa2x2-monte {
  position: absolute !important;
  top: 8px !important;
  left: 0 !important;
  width: 59px !important;
  text-align: center !important;
  color: #fff !important;
}
#modal.modal-duplas-page .mesa2x2-monte img {
  width: 52px !important;
  height: 77px !important;
  object-fit: cover !important;
  border-radius: 7px !important;
  box-shadow: 0 5px 10px rgba(0,0,0,.35) !important;
}
#modal.modal-duplas-page .mesa2x2-monte b {
  position: absolute !important;
  top: -4px !important;
  right: -2px !important;
  display: grid !important;
  place-items: center !important;
  width: 25px !important;
  height: 25px !important;
  border-radius: 50% !important;
  background: #981a32 !important;
  color: #fff !important;
  font-size: 11px !important;
}
#modal.modal-duplas-page .mesa2x2-monte small,
#modal.modal-duplas-page .mesa2x2-vira > small {
  display: block !important;
  margin-top: 3px !important;
  color: #f5d15f !important;
  font-size: 8px !important;
  font-weight: 900 !important;
}
#modal.modal-duplas-page .mesa2x2-vira {
  position: absolute !important;
  top: 8px !important;
  right: 0 !important;
  width: 72px !important;
  text-align: center !important;
}
#modal.modal-duplas-page .mesa2x2-carta {
  display: inline-flex !important;
  width: 56px !important;
  height: 84px !important;
  overflow: hidden !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: 0 6px 12px rgba(0,0,0,.32) !important;
}
#modal.modal-duplas-page .mesa2x2-carta img {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
}
#modal.modal-duplas-page .mesa2x2-centro-vazio,
#modal.modal-duplas-page .mesa2x2-jogadas {
  position: absolute !important;
  top: 115px !important;
  left: 50% !important;
  width: 150px !important;
  min-height: 90px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
#modal.modal-duplas-page .mesa2x2-centro-vazio {
  flex-direction: column !important;
  color: rgba(255,255,255,.78) !important;
  font-size: 10px !important;
}
#modal.modal-duplas-page .mesa2x2-centro-vazio span { font-size: 30px !important; }
#modal.modal-duplas-page .mesa2x2-jogadas .mesa2x2-carta {
  margin-left: -16px !important;
  transform: rotate(-3deg) !important;
}
#modal.modal-duplas-page .mesa2x2-jogadas .mesa2x2-carta:first-child { margin-left: 0 !important; }
#modal.modal-duplas-page .mesa2x2-eu {
  position: absolute !important;
  z-index: 5 !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 12px !important;
}
#modal.modal-duplas-page .mesa2x2-eu-identidade {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
  color: #fff !important;
}
#modal.modal-duplas-page .mesa2x2-eu-identidade .mesa2x2-avatar {
  width: 45px !important;
  height: 45px !important;
}
#modal.modal-duplas-page .mesa2x2-eu-identidade span { text-align: left !important; }
#modal.modal-duplas-page .mesa2x2-eu-identidade small {
  display: block !important;
  color: #f4ce5e !important;
  font-size: 8px !important;
  font-weight: 900 !important;
}
#modal.modal-duplas-page .mesa2x2-eu-identidade b {
  display: block !important;
  max-width: 180px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: 13px !important;
}
#modal.modal-duplas-page .mesa2x2-minha-mao {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  min-height: 112px !important;
  padding-top: 4px !important;
}
#modal.modal-duplas-page .mesa2x2-minha-mao .mesa2x2-carta {
  width: 76px !important;
  height: 113px !important;
  margin-left: -18px !important;
  transform-origin: bottom center !important;
}
#modal.modal-duplas-page .mesa2x2-minha-mao .mesa2x2-carta:first-child {
  margin-left: 0 !important;
  transform: rotate(-5deg) translateY(4px) !important;
}
#modal.modal-duplas-page .mesa2x2-minha-mao .mesa2x2-carta:nth-child(2) {
  transform: translateY(-4px) !important;
}
#modal.modal-duplas-page .mesa2x2-minha-mao .mesa2x2-carta:nth-child(3) {
  transform: rotate(5deg) translateY(4px) !important;
}
#modal.modal-duplas-page .mesa2x2-status { margin-top: 12px !important; }
#modal.modal-duplas-page .mesa2x2-status.minha-vez {
  border-color: #47a773 !important;
  background: #dff5e7 !important;
}
@media (max-width: 380px) {
  #modal.modal-duplas-page .mesa2x2-tabuleiro { min-height: 520px !important; }
  #modal.modal-duplas-page .mesa2x2-lateral { top: 168px !important; }
  #modal.modal-duplas-page .mesa2x2-centro { top: 125px !important; transform: translateX(-50%) scale(.92) !important; }
  #modal.modal-duplas-page .mesa2x2-minha-mao .mesa2x2-carta { width: 68px !important; height: 101px !important; }
}


/* =========================================================
   AJUSTES MOBILE — MESA MAIS LIMPA / PERFIL REAL / PERFORMANCE
========================================================= */
.avatar-real-fallback {
  background-image: none !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  color: #fff !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}
.avatar-real-fallback > span {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: .34em !important;
  line-height: 1 !important;
  color: #fff !important;
}
.avatar-real-fallback.tom-0 { background: linear-gradient(145deg,#225f4e,#123c32) !important; }
.avatar-real-fallback.tom-1 { background: linear-gradient(145deg,#8f2438,#521421) !important; }
.avatar-real-fallback.tom-2 { background: linear-gradient(145deg,#38607c,#1c3448) !important; }
.avatar-real-fallback.tom-3 { background: linear-gradient(145deg,#7c5b25,#493416) !important; }
.avatar-real-fallback.tom-4 { background: linear-gradient(145deg,#60497a,#352844) !important; }
.avatar-real-fallback.tom-5 { background: linear-gradient(145deg,#346e3d,#1c4124) !important; }
.avatar-real-com-foto {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}
.perfil-chat-modal > .avatar-real-fallback,
.pareamento-versus .avatar-real-fallback,
.ranking-online .avatar-real-fallback,
.lista-amigos .avatar-real-fallback {
  font-size: 42px !important;
}
.foto-dupla-2x2.avatar-real-fallback { font-size: 46px !important; }

#jogo .carta,
#jogo .carta img {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#jogo .mao,
#jogo .vaza,
#jogo .monte,
#jogo .vira {
  contain: layout paint;
}
#jogo .mao .carta {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@media (max-width: 700px) {
  /* A mensagem da vaza fica ABAIXO das cartas centrais, sem tampar a jogada. */
  #jogo .toast {
    bottom: 246px;
    z-index: 8;
    max-width: calc(100% - 110px);
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    padding: 7px 13px;
    font-size: 13px;
    box-shadow: 0 5px 14px #0007;
  }

  /* Identidade do jogador sobe e ganha fundo para não ficar escondida pelas cartas. */
  #jogo .eu {
    left: 10px;
    bottom: 184px;
    z-index: 9;
    gap: 7px;
    max-width: calc(100% - 118px);
    padding: 5px 10px 5px 5px;
    border-radius: 999px 16px 16px 999px;
    background: linear-gradient(90deg, rgba(8,31,24,.92), rgba(8,31,24,.70), rgba(8,31,24,.12));
    text-shadow: 0 2px 4px #000;
    pointer-events: none;
  }
  #jogo .eu .avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    box-shadow: 0 4px 12px #0008;
  }
  #jogo .eu span {
    min-width: 0;
  }
  #jogo .eu b {
    display: block;
    max-width: 210px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    line-height: 1.15;
  }
  #jogo .eu small {
    line-height: 1.15;
    font-size: 11px;
    text-shadow: 0 2px 4px #000;
  }
  #jogo .eu #ptsEu {
    color: #fff3bf;
    font-weight: 900;
  }

  #jogo .mao {
    bottom: 8px;
  }

  /* No celular reduzimos efeitos caros sem mexer na nitidez das cartas. */
  #jogo .carta {
    box-shadow: 0 6px 13px #0008, 0 1px 2px #0007, inset 0 0 0 1px #b4a56c;
  }
  #jogo .carta img {
    filter: saturate(1.14) contrast(1.05) brightness(1.03);
  }
}


/* Desafios ampliados */
.ranking-desafio {
  display: block;
  margin: -2px 0 12px;
  color: #9a7a29;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.desafio.bloqueado .ranking-desafio { opacity: .55; }


/* Avatares dos novos adversários de IA — nunca reutilizam foto de outra pessoa */
.avatar.avatar-ia-iniciais {
  display: grid !important;
  place-items: center !important;
  background-image: none !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: .03em !important;
}
.avatar.avatar-ia-iniciais span { font-size: .9em; line-height: 1; }
.avatar.avatar-ia-iniciais.tom-0 { background-color: #315b50 !important; }
.avatar.avatar-ia-iniciais.tom-1 { background-color: #7b3e42 !important; }
.avatar.avatar-ia-iniciais.tom-2 { background-color: #765a2c !important; }
.avatar.avatar-ia-iniciais.tom-3 { background-color: #42557b !important; }
.avatar.avatar-ia-iniciais.tom-4 { background-color: #6b4778 !important; }
.avatar.avatar-ia-iniciais.tom-5 { background-color: #376b73 !important; }

/* Fotos realistas dos adversários offline */
.avatar.avatar-ia-foto {
  background-color: #294a45;
  background-size: cover !important;
  background-position: center 34% !important;
  background-repeat: no-repeat !important;
}


/* Perfil único do jogador em todas as modalidades */
#avatarJogadorRapida,
#avatarJogadorAmigos {
  cursor: pointer;
  position: relative;
}
#avatarJogadorRapida.avatar-real-com-foto,
#avatarJogadorAmigos.avatar-real-com-foto,
#avatarJogadorMesa.avatar-real-com-foto {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
#avatarJogadorRapida::after {
  content: "📷";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8f1830;
  color: #fff;
  font-size: 12px;
  border: 2px solid #f2c94c;
  box-shadow: 0 2px 7px rgba(0,0,0,.25);
}


/* Sala particular — Jogar com Amigos */
.sala-amigos-espera { text-align: center; }
.sala-amigos-selo {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: 999px; background: #e7f4ed;
  color: #176b50; font-weight: 900; font-size: 12px; letter-spacing: .04em;
}
.sala-amigos-espera h2 { margin: 14px 0 5px; }
.codigo.codigo-amigos {
  display: block; width: min(300px, 92%); margin: 18px auto 7px;
  padding: 16px 14px; border: 2px solid #d0a93f; border-radius: 18px;
  background: #fff7d8; color: #8f1830; font-size: 42px; line-height: 1;
  letter-spacing: .20em; font-weight: 1000; box-shadow: 0 8px 20px rgba(80,50,20,.12);
}
.sala-amigos-espera > small { color: #8a7a69; }
.sala-amigos-status {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 20px 0 16px; padding: 16px; border-radius: 16px;
  background: #edf8f3; color: #286c58;
}
.sala-amigos-status i {
  width: 12px; height: 12px; border-radius: 50%; background: #2ecf83;
  box-shadow: 0 0 0 0 rgba(46,207,131,.4); animation: pulsoSalaAmigos 1.4s infinite;
}
.sala-amigos-status span { color: #6c7b74; font-size: 13px; }
@keyframes pulsoSalaAmigos { 70% { box-shadow: 0 0 0 10px rgba(46,207,131,0); } 100% { box-shadow: 0 0 0 0 rgba(46,207,131,0); } }
#continuarPartidaAmigos:not(.desativado) { background: linear-gradient(180deg,#176c50,#10533f); color:#fff; }


/* Estatísticas finais — conquistas reais da conta */
.conquista.completa {
  border-color: rgba(42,128,83,.28) !important;
  background: linear-gradient(135deg,#f4fff8,#e8f7ee) !important;
}
.conquista.completa i {
  background: #237a50 !important;
  color: #fff !important;
}
.conquista.completa em {
  color: #237a50 !important;
  font-weight: 900 !important;
}


/* =========================================================
   BARALHOS FINAIS — PREVIEWS REAIS + GAÚCHO PREMIUM
========================================================= */
#decks.seletor-baralhos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  overflow: visible;
  padding: 0 18px;
}
#decks.seletor-baralhos button {
  position: relative;
  min-width: 0;
  padding: 8px 8px 10px;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
#decks.seletor-baralhos button > b {
  display: block;
  font-size: 15px;
  line-height: 1.08;
}
#decks.seletor-baralhos button > small {
  color: #8b7969;
  font-size: 10px;
}
#decks.seletor-baralhos button.deck-destaque {
  background: linear-gradient(180deg,#fffdf5,#fff3c7);
}
.badge-novo, .selo-novo {
  position: absolute;
  z-index: 5;
  top: 7px;
  right: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #8e1730;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  font-style: normal;
}
.preview-baralho {
  position: relative;
  display: block;
  height: 106px;
  margin-bottom: 6px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg,#e6d6b8,#faf4e8);
  border: 1px solid #d4c5aa;
}
.preview-baralho img {
  position: absolute;
  top: 8px;
  width: 60px;
  height: 90px;
  object-fit: fill;
  border-radius: 6px;
  box-shadow: 0 3px 8px #0005;
}
.preview-baralho img:nth-child(1) { left: 16px; transform: rotate(-10deg); }
.preview-baralho img:nth-child(2) { left: 50%; transform: translateX(-50%); z-index: 2; }
.preview-baralho img:nth-child(3) { right: 16px; transform: rotate(10deg); }
.preview-baralho.antiga img { filter: sepia(.35) saturate(.85) contrast(1.12); }

/* O Gaúcho Premium usa SEMPRE o verso da bandeira do RS */
.mesa.deck-gaucho .verso {
  background: #fff url(assets/cards_gaucho/card_back.webp) center/cover no-repeat !important;
  filter: none !important;
}
.mesa.deck-frances .verso {
  background: #fff url(assets/cards_frances/card_back.svg) center/cover no-repeat !important;
  filter: none !important;
}
.mesa.deck-gaucho .carta:not(.verso) img,
.mesa.deck-imperial .carta:not(.verso) img,
.mesa.deck-frances .carta:not(.verso) img {
  filter: none !important;
}
.opcao-face.deck-gaucho,
.opcao-face.deck-imperial,
.opcao-face.deck-frances {
  background: #f7f0df;
}
.opcao-face.deck-gaucho img,
.opcao-face.deck-imperial img,
.opcao-face.deck-frances img {
  filter: none !important;
}
.verso-exclusivo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 2px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8f3e7;
  border: 1px solid #d8c8a7;
}
.verso-exclusivo img {
  width: 58px;
  height: 88px;
  object-fit: fill;
  border-radius: 7px;
  box-shadow: 0 3px 8px #0004;
}
.verso-exclusivo span { display: grid; gap: 2px; }
.verso-exclusivo b { color: #71182a; }
.verso-exclusivo small { color: #867568; }

@media (max-width: 380px) {
  #decks.seletor-baralhos { gap: 9px; }
  .preview-baralho { height: 94px; }
  .preview-baralho img { width: 54px; height: 81px; top: 7px; }
  .preview-baralho img:nth-child(1) { left: 10px; }
  .preview-baralho img:nth-child(3) { right: 10px; }
  #decks.seletor-baralhos button > b { font-size: 14px; }
}

/* Seletor dentro da mesa com quatro baralhos */
#modal.modal-baralhos .opcoes-faces {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  overflow: visible;
}
#modal.modal-baralhos .opcao-face {
  height: 128px;
}
