/* Base comum das páginas novas do protótipo (ranking, recompensas, temporada da NBA).
   Mesma régua da home: tipo 12 / 14 / 16 / 20 / 28 (e 40 só no número de destaque); pesos 400 / 600 / 800;
   espaço em múltiplos de 4. O jade preenche a ação e marca o que já é seu; o âmbar marca prêmio; cada nível tem a sua cor. */
/* A fonte dos títulos é servida pelo nosso domínio: a CSP do site não deixa buscar fonte de fora.
   Sem o arquivo, os títulos caem na fonte do sistema, sem quebrar nada. */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/novo/fonte/barlow-semi-condensed-700.woff2) format("woff2"); }
:root {
  --bg: #08090A; --panel: #111214; --panel2: #191A1D; --line: #1F2023; --line2: #2C2D31;
  --txt: #EDEDED; --mut: #9A9A9A; --jade: #00BC19; --jade2: #00A316; --nao: #EF4444; --vivo: #FF4D4F; --breve: #F5C542; --ouro: #F5C542;
  --t1: 12px; --t2: 14px; --t3: 16px; --t4: 20px; --t5: 28px; --t6: 40px;
  --r: 14px; --topo: 64px; --larg: 1440px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--txt); font: 400 var(--t2)/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
b, strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.mut { color: var(--mut); }
svg.ic { width: 18px; height: 18px; flex: none; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 30; background: rgba(8,9,10,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topo .barra { height: var(--topo); max-width: var(--larg); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.topo .logo img { height: 30px; display: block; }
.busca { flex: 1; max-width: 520px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 99px; background: var(--panel2); color: var(--mut); }
.busca input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--txt); font: inherit; }
.topo .acoes { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.bt { height: 40px; padding: 0 16px; border-radius: 10px; transition: background .15s, border-color .15s; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border: 1px solid var(--line2); background: none; white-space: nowrap; }
.bt.cheio { background: var(--jade); border-color: var(--jade); color: #000; }
.bt:hover { border-color: #4A4B50; } .bt.cheio:hover { background: var(--jade2); border-color: var(--jade2); }
.cats { max-width: var(--larg); margin: 0 auto; padding: 0 24px; height: 48px; display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; color: var(--mut); font-weight: 600; white-space: nowrap; }
.cats a { display: inline-flex; gap: 6px; align-items: baseline; }
.cats a:hover { color: var(--txt); }
.cats a small { font-size: var(--t1); font-weight: 400; opacity: .7; }
.cats a.on { color: var(--txt); }
.cats a.vivo { color: var(--vivo); }
.cats a.vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vivo); align-self: center; }
/* à direita das categorias: o que a Previsão tem além dos mercados */
.cats .sep { width: 1px; height: 20px; background: var(--line2); flex: none; align-self: center; }
.cats a.extra { align-items: center; gap: 8px; }
.cats a.extra svg, .cats a.extra img { width: 16px; height: 16px; flex: none; }
.cats a.extra.nba { color: #FF8A3D; }
.cats a.extra.on { color: var(--txt); }
/* atalhos no topo, ao lado da busca: em tela larga ficam aqui; em tela menor descem para a linha das categorias */
.atalhos-topo { display: flex; gap: 20px; color: var(--mut); font-weight: 600; white-space: nowrap; }
.atalhos-topo a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.atalhos-topo a:hover, .atalhos-topo a.on { color: var(--txt); }
.atalhos-topo a svg { width: 16px; height: 16px; }
@media (min-width: 1280px) { .cats .sep, .cats a.extra { display: none; } }
@media (max-width: 1279px) { .atalhos-topo { display: none; } }

/* topo: marca e busca à esquerda; atalhos e conta à direita.
   Atalhos em texto, sem ícone; "Entrar" sem borda; só "Criar conta" tem cor. "Como funciona" virou atalho. */
.topo .barra { gap: 32px; }
/* menu em tom apagado e conta em destaque, com um filete entre os dois; o NBA fica em laranja com a bola de basquete, em destaque */
.atalhos-topo { order: 2; margin-left: auto; gap: 24px; color: var(--mut); }
.atalhos-topo a svg { display: none; }
.atalhos-topo a:hover, .atalhos-topo a.on { color: #fff; }
.atalhos-topo a.nba, .atalhos-topo a.nba.on { color: #FF8A3D; }
.atalhos-topo a.nba:hover { color: #FFA463; }
.atalhos-topo a.nba svg { display: block; width: 18px; height: 18px; }
.atalhos-topo a img { display: block; width: 20px; height: 20px; flex: none; }
@media (min-width: 1280px) { .topo .acoes::before { content: ""; width: 1px; height: 20px; background: var(--line2); margin: 0 12px 0 -8px; } }
.topo .busca { order: 1; margin-left: 0; flex: 0 1 440px; height: 38px; } /* com três atalhos a menos no topo, a busca ganha os 100 px */
.topo .acoes { order: 3; margin-left: 0; gap: 4px; }
.topo .acoes .bt { height: 38px; padding: 0 14px; }
.topo .acoes .bt:not(.cheio) { border-color: transparent; }
.topo .acoes .bt:not(.cheio):hover { background: #191A1D; border-color: transparent; }
.topo .acoes .bt.cheio { margin-left: 4px; }
@media (max-width: 1279px) { .topo .busca { flex: 1 1 auto; } .topo .acoes { margin-left: auto; } }
@media (max-width: 1023px) { .topo .acoes { margin-left: auto; } }
@media (max-width: 719px) { .topo .acoes { gap: 0; } .topo .acoes .bt { height: 34px; padding: 0 10px; } .topo .logo img { height: 26px; } }

main { max-width: var(--larg); margin: 0 auto; padding: 24px 24px 64px; }

/* ---------- peças comuns ---------- */
.painel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.rotulo { font-size: var(--t1); font-weight: 600; color: var(--mut); }
.proposta { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; border: 1px dashed rgba(245,197,66,.5); color: var(--ouro); font-size: var(--t1); font-weight: 600; white-space: nowrap; }
.selo-vivo { display: inline-flex; align-items: center; gap: 6px; color: var(--vivo); font-weight: 600; }
.selo-vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vivo); animation: pulsa 1.6s infinite; }
@keyframes pulsa { 50% { opacity: .35; } }
.abas { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.abas button { background: none; border: 0; padding: 12px 0; color: var(--mut); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: baseline; }
.abas button small { font-size: var(--t1); font-weight: 400; }
.abas button.on { color: var(--txt); border-color: var(--txt); }
.abas button:hover { color: var(--txt); }
.barra-xp { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.barra-xp i { display: block; height: 100%; border-radius: inherit; background: var(--cor, var(--jade)); }
/* o selo do nível: a cor fica de reserva; a arte de cada nível (medalha ou pedra) entra por cima, pela regra em sessao.js */
.gema { width: 16px; height: 16px; flex: none; display: inline-block; background: var(--cor, #888); clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
.gema.g { width: 28px; height: 28px; }
.gema.gg { width: 44px; height: 44px; }
/* cartaz: o card com um objeto desenhado de protagonista, na mesma linguagem dos cards da home. A cor do card (--cor) é luz
   no canto da borda e atrás do objeto, nunca fundo pintado; o objeto (.obj) fica atrás do texto e sai cortado pela borda */
.cartaz { --cor: #9A9A9A; position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; border: 1px solid transparent;
  background: radial-gradient(240px 200px at calc(100% - 92px) 64px, color-mix(in srgb, var(--cor) 17%, transparent), transparent 72%) padding-box, linear-gradient(#0D0E10, #0D0E10) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--cor) 75%, transparent), var(--line) 30%, var(--line)) border-box; }
.cartaz > .obj { position: absolute; z-index: -1; top: 0; right: 0; width: auto; pointer-events: none; }
.trava { width: 14px; height: 14px; }
.aviso { margin-top: 40px; color: var(--mut); font-size: var(--t1); text-align: center; }
.esq { border-radius: var(--r); background: linear-gradient(90deg, var(--panel) 0%, var(--panel2) 50%, var(--panel) 100%) 0 0/200% 100%; animation: brilho 1.2s linear infinite; }
@keyframes brilho { to { background-position: -200% 0; } }

/* no tablet a busca fica no topo (sobra espaço entre a logo e a conta); no celular ela vai para a barra de baixo */
@media (max-width: 719px) { .topo .busca { display: none; } }
@media (max-width: 719px) {
  .topo .barra, .cats, main { padding-left: 16px; padding-right: 16px; }
  .topo .acoes .como { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
