/* ==========================================================
   Prepara Digita — estilos base
   As cores da marca ficam todas aqui, em um só lugar.
   ========================================================== */
:root {
  /* Marca Prepara */
  --vermelho: #C41215;
  --vermelho-escuro: #9E0E11;
  --vermelho-vivo: #E5262B;   /* versão mais clara, para texto sobre fundo escuro */
  --preto: #1A1A1A;
  --branco: #FFFFFF;

  /* Neutros */
  --preto-profundo: #0E0E10;
  --grafite: #232328;
  --grafite-claro: #2E2E35;
  --borda-escura: #3A3A42;
  --cinza-claro: #F4F4F5;
  --cinza-borda: #E4E4E7;
  --cinza-texto: #5F5F69;
  --cinza-suave: #A1A1AA;

  --fonte: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --raio: 16px;
  --sombra: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .08);
  --sombra-forte: 0 2px 4px rgba(0, 0, 0, .06), 0 20px 44px rgba(0, 0, 0, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fonte);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }

kbd {
  display: inline-block;
  font-family: var(--fonte);
  font-size: .78em;
  font-weight: 600;
  line-height: 1.3;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--borda-escura);
  border-bottom-width: 3px;
  background: var(--grafite);
  color: #E4E4E7;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--vermelho);
  color: var(--branco);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--vermelho-escuro); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(229, 38, 43, .45); outline-offset: 2px; }
.btn kbd { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-grande { padding: 14px 30px; font-size: 18px; }
.btn-sec { background: transparent; color: #E4E4E7; border-color: var(--borda-escura); }
.btn-sec:hover { background: var(--grafite-claro); }

/* ==========================================================
   Tela inicial (hub)
   ========================================================== */
body.hub {
  background: var(--cinza-claro);
  color: var(--preto);
  min-height: 100vh;
}

.hub-topo {
  position: relative;
  overflow: hidden;
  background: var(--preto);
  color: var(--branco);
  padding: 64px 16px 132px;
  text-align: center;
}
/* textura de teclas ao fundo */
.hub-topo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Crect x='6' y='6' width='52' height='52' rx='11' fill='none' stroke='white' stroke-opacity='0.07' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  pointer-events: none;
}
/* brilho vermelho e faixa inferior */
.hub-topo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--vermelho);
  box-shadow: 0 -60px 120px 40px rgba(196, 18, 21, .22);
}
.hub-topo-conteudo { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.selo {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #D4D4D8;
}
.marca {
  margin: 0;
  font-weight: 800;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.marca .digita { color: var(--vermelho-vivo); }
.cursor {
  display: inline-block;
  width: .07em;
  height: .82em;
  margin-left: .07em;
  vertical-align: -0.06em;
  background: var(--branco);
  animation: piscar 1.05s steps(1) infinite;
}
@keyframes piscar { 50% { opacity: 0; } }
.slogan {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: #D4D4D8;
}

.hub-conteudo {
  position: relative;
  max-width: 1120px;
  margin: -92px auto 0;
  padding: 0 16px 40px;
}

/* barra de apelido e configurações */
.hub-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}
.campo-apelido { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.campo-apelido label { font-weight: 600; }
.campo-apelido input {
  width: 220px;
  max-width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--cinza-borda);
  border-radius: 10px;
  background: var(--cinza-claro);
  color: var(--preto);
  font-weight: 600;
}
.campo-apelido input:focus { outline: none; border-color: var(--vermelho); background: var(--branco); }
.campo-apelido small { color: var(--cinza-texto); font-size: 13px; }
.opcoes { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.interruptor { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 500; }
.interruptor input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: #D4D4D8;
  cursor: pointer;
  transition: background-color .2s;
}
.interruptor input::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--branco);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.interruptor input:checked { background: var(--vermelho); }
.interruptor input:checked::after { transform: translateX(20px); }
.interruptor input:focus-visible { outline: 3px solid rgba(196, 18, 21, .35); outline-offset: 2px; }

/* cards dos jogos */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--branco);
  border-radius: 20px;
  box-shadow: var(--sombra);
  transition: transform .2s, box-shadow .2s;
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--sombra-forte); }
.card-arte { aspect-ratio: 320 / 170; background: var(--preto); }
.card-arte svg { display: block; width: 100%; height: 100%; }
.card-corpo { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.card-genero {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vermelho);
}
.card h2 { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.card .desc { margin: 0; color: var(--cinza-texto); }
.recordes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--cinza-borda);
}
.recordes li { display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: var(--cinza-texto); }
.recordes b { font-size: 18px; color: var(--preto); line-height: 1.3; }
.recordes small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-acoes { margin-top: auto; padding-top: 8px; }
.card-acoes .btn { width: 100%; }

.hub-rodape {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  color: var(--cinza-texto);
  font-size: 14px;
}
.dica-prof {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 4px solid var(--vermelho);
  border-radius: 0 12px 12px 0;
  background: var(--branco);
  box-shadow: var(--sombra);
  color: #3F3F46;
}
.assinatura { margin: 0; text-align: center; }
.assinatura b { color: var(--preto); }

@media (max-width: 640px) {
  .hub-topo { padding-top: 48px; }
  .hub-barra { padding: 16px; }
}

/* ==========================================================
   Páginas de jogo
   ========================================================== */
body.jogo {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--preto-profundo);
  color: var(--branco);
}
.jogo-topo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 12px 0 10px;
  background: var(--preto);
  border-bottom: 3px solid var(--vermelho);
}
.voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  color: var(--branco);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.voltar:hover { background: var(--grafite); }
.voltar:focus-visible { outline: 3px solid rgba(229, 38, 43, .45); }
.voltar svg { width: 22px; height: 22px; }
.marca-mini b { color: var(--vermelho-vivo); font-weight: 800; }
.jogo-titulo {
  flex: 1;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  color: #D4D4D8;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.acoes { display: flex; gap: 6px; }
.icone-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #34343B;
  border-radius: 10px;
  background: var(--grafite);
  color: var(--branco);
  cursor: pointer;
}
.icone-btn:hover { background: var(--grafite-claro); }
.icone-btn:disabled { opacity: .35; cursor: default; }
.icone-btn:focus-visible { outline: 3px solid rgba(229, 38, 43, .45); }
.icone-btn svg { width: 20px; height: 20px; }

.palco { position: relative; flex: 1 1 auto; min-height: 0; }
.palco canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 10, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.overlay.visivel { display: flex; }
.painel {
  width: min(580px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 30px 32px;
  border: 1px solid #2C2C33;
  border-radius: 22px;
  background: var(--preto);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  text-align: center;
  animation: surgir .22s ease-out;
}
@keyframes surgir { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.painel h2 { margin: 2px 0 14px; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.painel p { margin: 0 0 14px; color: #D4D4D8; }
.painel-sobre {
  margin: 0 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vermelho-vivo) !important;
}
.painel-sobre.festa { color: #FACC15 !important; }
.instrucoes {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--grafite);
  color: #D4D4D8;
  font-size: 15px;
  text-align: left;
}
.instrucoes ul { margin: 0; padding-left: 20px; }
.instrucoes li + li { margin-top: 6px; }
.instrucoes b { color: #fff; }
.seletor-dif { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--grafite); }
.seg {
  padding: 8px 20px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #D4D4D8;
  font-weight: 600;
  cursor: pointer;
}
.seg:hover { background: var(--grafite-claro); }
.seg[aria-checked="true"] { background: var(--vermelho); color: #fff; }
.seg:focus-visible { outline: 3px solid rgba(229, 38, 43, .45); }
.dif-desc { min-height: 1.5em; margin: 10px 0 4px !important; font-size: 14px; color: var(--cinza-suave) !important; }
.recorde-linha { margin: 0 0 20px !important; font-size: 14px; color: var(--cinza-suave) !important; }
.recorde-linha b { color: #fff; }
.dica-teclas { margin: 16px 0 0 !important; font-size: 13px; color: #8A8A93 !important; }
.botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pontos-final { margin: 6px 0 18px !important; font-size: 60px !important; font-weight: 800; line-height: 1 !important; }
.pontos-final small { font-size: 18px; font-weight: 600; color: var(--cinza-suave); letter-spacing: 0; }
.estatisticas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.estatisticas div { padding: 10px 8px; border-radius: 12px; background: var(--grafite); }
.estatisticas dt { font-size: 12px; color: var(--cinza-suave); }
.estatisticas dd { margin: 0; font-size: 21px; font-weight: 700; }

.entrada-oculta {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .marca-mini { display: none; }
  .painel { padding: 24px 18px; }
}

/* ==========================================================
   Contas e ranking
   ========================================================== */
[hidden] { display: none !important; }

.btn-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--vermelho-vivo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-link:hover { color: #FF5A5F; }
.btn-link:focus-visible { outline: 3px solid rgba(229, 38, 43, .45); outline-offset: 2px; border-radius: 4px; }
.btn-conta { background: var(--branco); color: var(--preto); }
.btn-conta:hover { background: #E4E4E7; }
.btn-pequeno { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-claro { background: transparent; color: var(--branco); border-color: rgba(255, 255, 255, .28); }
.btn-claro:hover { background: rgba(255, 255, 255, .1); }

/* fim de partida */
.ranking-linha {
  margin: -6px 0 18px !important;
  padding: 10px 14px;
  border: 1px solid rgba(229, 38, 43, .35);
  border-radius: 12px;
  background: rgba(196, 18, 21, .12);
  color: #F4F4F5 !important;
  font-size: 15px;
}
.ranking-linha b { color: #fff; }
.nota-ranking { font-size: 13px; color: var(--cinza-suave); }
.botoes-conta { align-items: center; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #2C2C33; }
.conta-linha { margin: 14px 0 0 !important; font-size: 14px; color: var(--cinza-suave) !important; }
.conta-linha b { color: #fff; }

/* janela de criar conta / entrar */
body.com-modal { overflow: hidden; }
.modal-conta {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 10, .76);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-conta.aberta { display: flex; }
.mc-caixa, .painel { scrollbar-width: thin; scrollbar-color: #3F3F46 transparent; }
.mc-caixa::-webkit-scrollbar, .painel::-webkit-scrollbar { width: 8px; }
.mc-caixa::-webkit-scrollbar-thumb, .painel::-webkit-scrollbar-thumb { border-radius: 8px; background: #3F3F46; }
.mc-caixa::-webkit-scrollbar-track, .painel::-webkit-scrollbar-track { background: transparent; }
.mc-caixa {
  position: relative;
  width: min(480px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 20px 26px;
  border: 1px solid #2C2C33;
  border-radius: 22px;
  background: var(--preto);
  color: var(--branco);
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: surgir .2s ease-out;
}
.mc-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--grafite);
  color: var(--branco);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mc-fechar:hover { background: var(--grafite-claro); }
.mc-abas { display: flex; gap: 4px; margin: 0 48px 14px 0; padding: 4px; border-radius: 12px; background: var(--grafite); }
.mc-abas button {
  flex: 1;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #D4D4D8;
  font-weight: 600;
  cursor: pointer;
}
.mc-abas button[aria-selected="true"] { background: var(--vermelho); color: #fff; }
.mc-caixa h2 { margin: 0 0 2px; font-size: 22px; letter-spacing: -0.01em; }
.mc-sub { margin: 0 0 14px; font-size: 14px; color: #D4D4D8; }
.campo { display: block; margin-bottom: 10px; }
.campo > span { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: #E4E4E7; }
.campo > span em { font-style: normal; font-weight: 400; color: var(--cinza-suave); }
.campo input {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #34343B;
  border-radius: 10px;
  background: #111114;
  color: var(--branco);
  font-size: 16px;
}
.campo input:focus { outline: none; border-color: var(--vermelho-vivo); }
.campo-msg { display: block; margin-top: 5px; font-size: 13px; color: #FF7A7E; }
.campo-msg:empty { display: none; }
.campo-msg.ok { color: #4ADE80; }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 50px; }
.ver-senha {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cinza-suave);
  transform: translateY(-50%);
  cursor: pointer;
}
.ver-senha:hover { color: var(--branco); }
.ver-senha svg { width: 20px; height: 20px; }
.requisitos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--cinza-suave);
}
@media (max-width: 480px) { .requisitos { grid-template-columns: 1fr; } }
.requisitos li.ok { color: #4ADE80; }
.mc-captcha { margin: 2px 0 12px; }
.mc-carregando { margin: 0; font-size: 13px; color: var(--cinza-suave); }
.mc-erro { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #FF7A7E; }
.mc-erro:empty { display: none; }
.mc-enviar { width: 100%; }
.mc-enviar:disabled { opacity: .45; cursor: not-allowed; }
.mc-nota { margin: 12px 0 0; font-size: 12.5px; color: var(--cinza-suave); }

/* barra do topo (tela inicial e ranking) */
.hub-nav {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.hub-nav .nav-esquerda { margin-right: auto; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  color: var(--branco);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { background: rgba(255, 255, 255, .08); }
.nav-link svg { width: 18px; height: 18px; }
.nav-conta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-usuario {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--branco);
  font-size: 14px;
  font-weight: 600;
}
.chip-usuario small { font-weight: 500; color: #D4D4D8; }
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vermelho);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

/* página de ranking */
.topo-ranking { padding-bottom: 120px; }
.marca-ranking { font-size: clamp(42px, 7vw, 72px); }
.cartao { margin-bottom: 24px; padding: 22px 24px; border-radius: 20px; background: var(--branco); box-shadow: var(--sombra); }
.minha-conta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 22px; }
.avatar-grande { width: 64px; height: 64px; font-size: 28px; }
.minha-conta h2 { margin: 0; font-size: 22px; }
.minha-conta .dados { margin: 2px 0 0; font-size: 14px; color: var(--cinza-texto); }
.nivel-barra { height: 10px; margin: 10px 0 4px; overflow: hidden; border-radius: 999px; background: var(--cinza-borda); }
.nivel-barra span { display: block; height: 100%; border-radius: inherit; background: var(--vermelho); }
.minha-conta-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.link-discreto { padding: 0; border: 0; background: none; font-size: 13px; color: var(--cinza-texto); text-decoration: underline; cursor: pointer; }
.link-discreto:hover { color: var(--vermelho); }
.convite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.convite h2 { margin: 0 0 4px; font-size: 20px; }
.convite p { margin: 0; color: var(--cinza-texto); }
.convite .acoes-convite { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-contorno { background: transparent; color: var(--preto); border-color: var(--cinza-borda); }
.btn-contorno:hover { background: var(--cinza-claro); }
.abas-ranking { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.aba {
  padding: 10px 18px;
  border: 2px solid var(--cinza-borda);
  border-radius: 12px;
  background: var(--branco);
  color: var(--preto);
  font-weight: 600;
  cursor: pointer;
}
.aba:hover { border-color: #D4D4D8; }
.aba[aria-selected="true"] { border-color: var(--preto); background: var(--preto); color: #fff; }
.filtros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.filtros p { margin: 0; font-size: 14px; color: var(--cinza-texto); }
.mes-nav { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.mes-nav button {
  width: 36px;
  height: 36px;
  border: 2px solid var(--cinza-borda);
  border-radius: 10px;
  background: var(--branco);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.mes-nav button:disabled { opacity: .35; cursor: default; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 14px;
  border: 2px solid var(--cinza-borda);
  border-radius: 999px;
  background: var(--branco);
  color: var(--preto);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--vermelho); background: var(--vermelho); color: #fff; }
.tabela-rolagem { overflow-x: auto; }
.tabela-ranking { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela-ranking th {
  padding: 8px 10px;
  border-bottom: 2px solid var(--cinza-borda);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  color: var(--cinza-texto);
}
.tabela-ranking td { padding: 10px; border-bottom: 1px solid var(--cinza-borda); }
.tabela-ranking .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabela-ranking tr.eu td { background: rgba(196, 18, 21, .07); font-weight: 700; }
.posicao { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; font-weight: 800; }
.posicao.p1 { background: #FACC15; color: var(--preto); }
.posicao.p2 { background: #D4D4D8; color: var(--preto); }
.posicao.p3 { background: #D97706; color: #fff; }
.nivel-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--cinza-claro); font-size: 12px; font-weight: 700; }
.voce-tag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--vermelho); color: #fff; font-size: 11px; font-weight: 700; }
.ganho { font-weight: 700; color: #15803D; }
.ganho.negativo { color: var(--vermelho); }
.estado-lista { padding: 30px 10px; text-align: center; color: var(--cinza-texto); }
.como-funciona h2 { margin: 0 0 10px; font-size: 20px; }
.como-funciona ul { margin: 0; padding-left: 20px; color: #3F3F46; }
.como-funciona li + li { margin-top: 6px; }

@media (max-width: 640px) {
  .hub-topo { padding-top: 84px; }
  .minha-conta { grid-template-columns: auto 1fr; }
  .minha-conta-acoes { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor, .painel, .mc-caixa { animation: none; }
  .card, .btn { transition: none; }
}
