:root {
  --bg: #070B1E;
  --card: #0C1330;
  --card2: #0A1028;
  --line: #1E2A58;
  --line2: #2A3870;
  --text: #EEF2FF;
  --muted: #9AA6C8;
  --soft: #B7C0DD;
  --link: #7FA6FF;
  --err: #FF9B8F;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(110,140,255,0.16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); }
a:hover { color: #A9C2FF; }
.grad { background: linear-gradient(90deg, #5B8CFF, #8B7CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.forte { font-weight: 700; }
.oculto { display: none !important; }

/* Cabeçalho */
.topo { width: 100%; padding: 20px clamp(16px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #1A2348; background: rgba(7,11,30,0.85); }
.marca { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marca-icone { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: #121B3F; border: 1px solid #25316A; display: flex; align-items: center; justify-content: center; color: var(--link); }
.marca-texto { display: flex; flex-direction: column; gap: 2px; }
.marca-nome { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; color: #FFFFFF; }
.marca-slogan { font-size: 15px; font-weight: 500; color: var(--muted); }
.conta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 46px; }

/* Botões */
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 32px; border: 1px solid var(--line2); border-radius: 999px; background: #111A3A; font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 16px; text-decoration: none; color: #FFFFFF; cursor: pointer; }
.btn-ghost:hover { background: #18224A; color: #FFFFFF; }
.btn-ghost[disabled] { opacity: 0.6; cursor: wait; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 40px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #2563EB, #4F46E5); color: #FFFFFF; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 19px; text-decoration: none; cursor: pointer; box-shadow: 0 14px 36px -12px rgba(59,107,255,0.8); }
.btn:hover { filter: brightness(1.12); color: #FFFFFF; }
.btn[disabled] { opacity: 0.6; cursor: wait; filter: none; }
.btn-grande { min-height: 60px; padding: 0 44px; font-size: 20px; text-align: center; }
.esqueleto { display: inline-block; width: 120px; height: 46px; border-radius: 999px; background: #111A3A; border: 1px solid #1A2348; animation: pulsar 1.2s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: 0.45; } }

main { flex-grow: 1; width: 100%; padding: clamp(40px, 7vw, 80px) 16px 96px; }

/* Página inicial */
.inicio { max-width: 1120px; margin: 0 auto; padding-top: clamp(48px, 8vw, 96px); display: flex; flex-direction: column; align-items: center; gap: 48px; }
.vitrine { margin: 0; width: 100%; max-width: 1040px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 48px);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 52%, rgba(0,0,0,0.55) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 52%, rgba(0,0,0,0.55) 72%, transparent 100%); }
.pontos { display: flex; gap: 8px; padding: 4px 8px 14px; }
.pontos span { width: 12px; height: 12px; border-radius: 50%; background: #263266; }
.jogo { background: var(--card2); border: 1px solid #18224A; border-radius: 14px; padding: clamp(20px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: center; }
.grade { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; width: min(100%, 400px); flex-shrink: 0; }
.casa { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #131C3D; border: 1.5px solid #26325E; border-radius: 6px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: clamp(14px, 2.4vw, 22px); color: #FFFFFF; }
.casa.vazia { background: transparent; border: 0; }
.casa.ativa { background: #1A2A63; border-color: #3B5BDB; }
.casa.cursor { background: #2563EB; border-color: #7FA6FF; }
.casa small { position: absolute; top: 2px; left: 5px; font-family: 'Figtree', sans-serif; font-size: 10px; font-weight: 700; color: var(--muted); }
.pistas { flex: 1 1 260px; min-width: 0; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.pista-ativa { background: #12204F; border: 1px solid #2C3F86; border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.rotulo { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.pista-texto { font-size: 16px; line-height: 1.5; color: #FFFFFF; }
.pista-fonte { font-size: 13px; font-weight: 600; color: var(--muted); }
.outras { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.outras strong { color: #FFFFFF; }
.chamada { margin: 0; max-width: 660px; text-align: center; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--soft); }

/* Formulários */
.cartao { width: 100%; max-width: 500px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 44px); box-shadow: 0 30px 80px -30px rgba(59,107,255,0.45); }
.cartao.estreito { max-width: 460px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.cabeca { display: flex; flex-direction: column; gap: 8px; }
h1 { margin: 0; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 36px; line-height: 1.1; color: #FFFFFF; }
.sub { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.campo { display: flex; flex-direction: column; gap: 8px; }
.r { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=email], input[type=password] { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; font-size: 16px; font-family: inherit; color: #FFFFFF; background: #0F1736; border: 1px solid var(--line2); }
input:focus-visible { outline: 2px solid #5B8CFF; outline-offset: 1px; }
input.invalido { border-color: var(--err); }
.dica { font-size: 13px; color: #8C97BA; }
.erro { font-size: 13px; color: var(--err); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #2563EB; flex-shrink: 0; }
.aviso-erro { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(255,155,143,0.1); border: 1px solid rgba(255,155,143,0.4); color: #FFC4BC; font-size: 15px; line-height: 1.45; }
.rodape-form { margin: 0; text-align: center; font-size: 15px; color: var(--soft); }
.feito { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 16px 0; }
.feito h1 { font-size: 30px; }
.feito p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--soft); }
.selo { width: 72px; height: 72px; border-radius: 50%; background: #121B3F; border: 1px solid #2C3F86; display: flex; align-items: center; justify-content: center; color: var(--link); }

/* Matérias */
.materias { max-width: 1080px; margin: 0 auto; padding-top: clamp(48px, 8vw, 96px); }
.membro { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 5vw, 48px); }
.ola { margin: 0; font-size: 18px; font-weight: 600; color: var(--soft); }
.titulo-grande { text-align: center; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.lista { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.materia { flex: 0 0 calc((100% - 40px) / 3); min-height: 120px; padding: 24px; display: flex; align-items: center; gap: 18px; background-color: var(--card); color: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.25; text-decoration: none; transition: transform .15s ease, border-color .15s ease, background-color .15s ease; }
.materia:hover { border-color: #4F7BFF; background-color: #111B44; transform: translateY(-3px); color: #FFFFFF; }
.materia-icone { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tint-bg); border: 1px solid var(--tint-bd); color: var(--tint); }
@media (max-width: 860px) { .materia { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 520px) { .materia { flex-basis: 100%; } }
.carregando { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.barra { display: block; width: min(60%, 360px); height: 28px; border-radius: 10px; background: #111A3A; animation: pulsar 1.2s ease-in-out infinite; }
.barra.larga { width: min(90%, 620px); height: 56px; }
@media (prefers-reduced-motion: reduce) { .esqueleto, .barra { animation: none; } .materia { transition: none; } }

/* Contagem de jogos nos cartões */
.materia-texto { display: flex; flex-direction: column; gap: 4px; }
.contagem { font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600; color: var(--muted); }
.contagem.em-breve { color: #8C97BA; font-style: italic; }

/* Página de uma matéria */
.membro-materia { width: 100%; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.voltar { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; font-size: 16px; text-decoration: none; }
.cabeca-materia { display: flex; flex-direction: column; gap: 8px; }
.titulo-materia { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.resumo { margin: 0; font-size: 16px; color: var(--muted); }
.resumo:empty { display: none; }
.conteudo-materia { display: flex; flex-direction: column; gap: 36px; }
.grupo { display: flex; flex-direction: column; gap: 14px; }
.grupo h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.jogos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jogo { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: #FFFFFF; text-decoration: none; font-size: 17px; font-weight: 600; line-height: 1.35; transition: border-color .15s ease, background-color .15s ease; }
.jogo:hover { border-color: #4F7BFF; background-color: #111B44; color: #FFFFFF; }
.jogo-acao { flex-shrink: 0; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; color: var(--link); }
.vazio { margin: 0; padding: 28px 24px; text-align: center; background: var(--card); border: 1px dashed var(--line2); border-radius: 16px; color: var(--soft); font-size: 17px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .jogo { transition: none; } }
.link-planos { margin-top: -28px; font-weight: 700; font-size: 16px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* link "Esqueci minha senha" */
.link-esqueci { margin: -4px 0 0; text-align: right; font-size: 0.92rem; }
.link-esqueci a { color: var(--link); text-decoration: none; }
.link-esqueci a:hover { text-decoration: underline; }

/* Logo Lexi no cabeçalho */
.marca { gap: 18px; }
.marca-logo { display: block; height: clamp(46px, 5vw, 60px); width: auto; }
.marca .marca-slogan { padding-left: 18px; border-left: 1px solid #25316A; line-height: 1.3; max-width: 170px; }
@media (max-width: 560px) { .marca .marca-slogan { display: none; } .marca-logo { height: 44px; } }

/* Animação da amostra na página inicial */
.casa { transition: background-color 300ms ease, border-color 300ms ease; }
.casa .letra { display: inline-block; transition: opacity 300ms ease; }
.casa.digitada .letra { animation: digitar 260ms ease-out; }
@keyframes digitar { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.casa.certa { background: #123D35; border-color: #2FB98A; }
.casa.apagando .letra { opacity: 0; }
.pista-ativa { transition: border-color 500ms ease, background-color 500ms ease; }
.pista-ativa.resolvida { border-color: #2FB98A; }
.risca { background-image: linear-gradient(#D9A441, #D9A441); background-repeat: no-repeat; background-position: 0 58%; background-size: 0% 2px; transition: background-size 900ms ease, color 600ms ease; }
.pista-ativa.resolvida .risca { background-size: 100% 2px; color: var(--muted); }
.rotulo .ok { opacity: 0; color: #2FB98A; transition: opacity 400ms ease; }
.pista-ativa.resolvida .rotulo .ok { opacity: 1; transition-delay: 600ms; }

/* Rodapé do site */
.rodape-site { width: 100%; padding: 24px clamp(16px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; border-top: 1px solid #1A2348; background: rgba(7,11,30,0.85); font-size: 14px; color: var(--muted); }
.rodape-site a { font-weight: 600; text-decoration: none; }
.rodape-site a:hover { text-decoration: underline; }

/* Página de Termos de Uso */
.legal { max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(30px, 4.5vw, 44px); }
.legal h2 { margin: 22px 0 0; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 21px; color: #FFFFFF; }
.legal p, .legal li { margin: 0; font-size: 16px; line-height: 1.65; color: var(--soft); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: #FFFFFF; }
.legal-data { font-size: 14px !important; color: var(--muted) !important; }
.legal a { word-break: break-word; }


/* Tabelas da Política de Privacidade */
.legal-tabela { width: 100%; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--line2); text-align: left; vertical-align: top; color: var(--soft); }
.legal th { background: #111A3A; color: #FFFFFF; font-weight: 700; }
/* Plano gratuito x assinante */
.aviso-plano { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px clamp(20px, 4vw, 36px); background: var(--card); border: 1px solid var(--line2); border-radius: 20px; text-align: center; }
.aviso-plano h2 { margin: 0; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 22px; color: #FFFFFF; }
.aviso-plano p { margin: 0; color: var(--soft); line-height: 1.5; }
.aviso-plano .aviso-bloqueio { color: #FCD34D; font-weight: 600; }
.aviso-plano .acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.aviso-plano.assinante { background: transparent; border: 0; padding: 0; }
.materia .cadeado { margin-left: auto; font-size: 18px; opacity: 0.85; }
.jogos .jogo.bloqueado { opacity: 0.72; }
.jogos .jogo.bloqueado .jogo-acao { color: var(--muted); }
.membro-materia .aviso-plano { margin: 8px 0 28px; }
