/* =========================================================================
   Resultados do Jogo do Bicho — folha de estilo
   Esqueleto igual ao de julio.api.br (container, cartao, rodape em grade),
   paleta propria: verde de poste, amarelo de cartaz e muito branco.
   Mobile primeiro; a coluna lateral so aparece a partir de 960px.
   ========================================================================= */

:root {
  --verde:       #116B3C;
  --verde-claro: #E9F5EE;
  --verde-escuro:#0C4E2B;
  --amarelo:     #F2B705;
  --amarelo-claro:#FFF6DC;

  --tinta:       #12211A;
  --texto:       #41524A;
  --apagado:     #778A81;
  --linha:       #E2E9E5;
  --fundo:       #FFFFFF;
  --fundo-alt:   #F6F9F7;

  --raio:        12px;
  --raio-g:      18px;
  --sombra:      0 1px 2px rgba(18,33,26,.05), 0 8px 22px rgba(18,33,26,.06);
  --largura:     1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--tinta); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }

a { color: var(--verde); text-underline-offset: 3px; }
a:hover { color: var(--verde-escuro); }
img { max-width: 100%; height: auto; display: block; }
code { background: var(--fundo-alt); padding: .1em .35em; border-radius: 5px; font-size: .9em; word-break: break-all; }

.container { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 760px; }
.muted, .apagado { color: var(--apagado); }

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.pular { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--tinta); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0; }
.pular:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; border-radius: 6px; }

/* -------------------------------- Topo ---------------------------------- */

.topo { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--linha); }

.faixa-app { background: var(--verde); color: #fff; font-size: .82rem; }
.faixa-app-inner { display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 6px 20px; flex-wrap: wrap; text-align: center; }
.faixa-app a { color: var(--verde); }

.topo-inner { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 20px; flex-wrap: wrap; }

.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.marca-selo {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  background: var(--verde); color: #fff; font-weight: 800; font-size: .95rem;
  display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.marca-texto { display: grid; line-height: 1.15; }
.marca-texto strong { color: var(--tinta); font-size: .98rem; }
.marca-texto small { color: var(--apagado); font-size: .74rem; }

.menu { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.menu a {
  padding: 7px 11px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  color: var(--texto); text-decoration: none;
}
.menu a:hover { background: var(--verde-claro); color: var(--verde-escuro); }
.menu a.ativo { background: var(--verde); color: #fff; }

.menu-burger { display: none; }

@media (max-width: 860px) {
  .menu-burger {
    display: grid; gap: 4px; padding: 10px; cursor: pointer; border-radius: 8px;
    border: 1px solid var(--linha);
  }
  .menu-burger span { display: block; width: 20px; height: 2px; background: var(--tinta); }
  .menu { display: none; width: 100%; padding-bottom: 8px; }
  .menu-toggle:checked ~ .menu { display: flex; }
}

/* ------------------------------ Cabecalho -------------------------------- */

.cabecalho { background: var(--fundo-alt); border-bottom: 1px solid var(--linha); padding: 26px 0 22px; }
.cabecalho h1 { margin-bottom: .35em; }
.chamada { font-size: 1.02rem; max-width: 72ch; margin-bottom: .5rem; }
.atualizacao { font-size: .82rem; color: var(--apagado); margin: 0; }

.trilha { font-size: .8rem; color: var(--apagado); margin-bottom: 10px; }
.trilha a { color: var(--apagado); }
.trilha span[aria-hidden] { margin: 0 4px; }

/* -------------------------------- Colunas -------------------------------- */

.colunas { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
@media (min-width: 960px) {
  .colunas { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
}

.secao-titulo { font-size: 1.15rem; margin-top: .4em; }

/* -------------------------------- Cartoes -------------------------------- */

.grade-cartoes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grade-cartoes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .grade-cartoes { grid-template-columns: repeat(3, 1fr); } }

.cartao {
  background: var(--fundo); border: 1px solid var(--linha); border-radius: var(--raio-g);
  padding: 16px; box-shadow: var(--sombra); display: flex; flex-direction: column;
}
.cartao-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--apagado); }
.cartao-titulo { font-size: 1rem; margin: 8px 0 12px; }
.cartao-titulo a { color: var(--tinta); text-decoration: none; }
.cartao-titulo a:hover { color: var(--verde); text-decoration: underline; }

.etiqueta {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--verde); color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .02em;
}
.etiqueta-ptm { background: #1F8A57; }
.etiqueta-pt  { background: #0E5C86; }
.etiqueta-ptv { background: #9A6212; }
.etiqueta-ptn { background: #4B3A8F; }
.etiqueta-cor { background: #2B3A45; }
.etiqueta-fed { background: #8A2036; }

.etiqueta-hoje {
  background: var(--amarelo-claro); color: #7A5B00; border: 1px solid #F0DFA0;
  padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700;
}

.premios { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 3px; }
.premios li {
  display: grid; grid-template-columns: 30px 68px 1fr; align-items: center; gap: 8px;
  padding: 5px 6px; border-radius: 8px; font-size: .9rem;
}
.premios li:nth-child(odd) { background: var(--fundo-alt); }
.premio-pos { color: var(--apagado); font-size: .78rem; font-weight: 700; }
.premio-numero { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--tinta); font-size: 1.02rem; letter-spacing: .04em; }
.premio-bicho { font-size: .84rem; color: var(--texto); text-decoration: none; }
.premio-bicho:hover { text-decoration: underline; }
.premio-grupo {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px;
  background: var(--verde-claro); color: var(--verde-escuro); border-radius: 6px;
  font-size: .72rem; font-weight: 800;
}

.cartao-link { margin-top: auto; font-size: .84rem; font-weight: 600; text-decoration: none; }
.cartao-link:hover { text-decoration: underline; }

/* ------------------------------- Destaque -------------------------------- */

.destaque {
  display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; padding: 18px;
  border-radius: var(--raio-g); background: linear-gradient(120deg, var(--verde) 0%, #17855C 100%);
  color: #fff;
}
@media (min-width: 560px) { .destaque { grid-template-columns: auto 1fr; align-items: center; gap: 26px; } }
.destaque-rotulo { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.destaque-numero strong { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.destaque-bicho strong { font-size: 1.5rem; }
.destaque-bicho a { color: #fff; }
.destaque-bicho small { display: block; font-size: .78rem; opacity: .85; }

/* -------------------------------- Tabelas -------------------------------- */

.tabela-premios, .tabela-bichos {
  width: 100%; border-collapse: collapse; background: var(--fundo);
  border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; margin-bottom: 24px;
  font-size: .95rem;
}
.tabela-premios caption, .tabela-bichos caption {
  text-align: left; padding: 12px 14px; font-weight: 700; color: var(--tinta);
  background: var(--fundo-alt); border-bottom: 1px solid var(--linha);
}
.tabela-premios th, .tabela-premios td,
.tabela-bichos th, .tabela-bichos td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--linha); }
.tabela-premios thead th, .tabela-bichos thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--apagado); }
.tabela-premios tbody tr:last-child td, .tabela-bichos tbody tr:last-child td { border-bottom: 0; }
.tabela-premios .numero, .tabela-bichos .numero {
  font-variant-numeric: tabular-nums; font-weight: 800; color: var(--tinta); font-size: 1.05rem; letter-spacing: .04em;
}

/* ---------------------------- Navegacao irmas ---------------------------- */

.navegacao-irmas { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 560px) { .navegacao-irmas { grid-template-columns: 1fr 1fr; } }
.irma {
  display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--linha);
  border-radius: var(--raio); text-decoration: none; background: var(--fundo);
}
.irma:hover { border-color: var(--verde); background: var(--verde-claro); }
.irma span { font-size: .78rem; color: var(--apagado); }
.irma strong { color: var(--tinta); }
.irma.proxima { text-align: right; }

/* ------------------------------- Calendario ------------------------------ */

.calendario, .painel {
  border: 1px solid var(--linha); border-radius: var(--raio-g); padding: 14px;
  background: var(--fundo); box-shadow: var(--sombra); margin-bottom: 20px;
}
.calendario-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.calendario-mes { font-size: .98rem; margin: 0; }
/* "agosto de 2026" -> "Agosto de 2026". Com `capitalize` o "de" tambem subia. */
.calendario-mes::first-letter { text-transform: uppercase; }
.calendario-seta {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--linha); text-decoration: none; color: var(--verde); font-size: .9rem;
}
.calendario-seta:hover { background: var(--verde-claro); }
.calendario-seta.desativada { color: var(--linha); border-color: var(--fundo-alt); }

.calendario-grade { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendario-grade th { font-size: .72rem; color: var(--apagado); font-weight: 600; padding-bottom: 4px; }
.calendario-grade th abbr { text-decoration: none; }
.calendario-grade td { text-align: center; padding: 2px; font-size: .86rem; }
.calendario-grade td a {
  display: grid; place-items: center; height: 32px; border-radius: 8px;
  background: var(--verde-claro); color: var(--verde-escuro); font-weight: 700; text-decoration: none;
}
.calendario-grade td a:hover { background: var(--verde); color: #fff; }
.calendario-grade td.sem-resultado { color: var(--apagado); height: 32px; }
.calendario-grade td.hoje a, .calendario-grade td.hoje { box-shadow: inset 0 0 0 2px var(--amarelo); border-radius: 8px; }
.calendario-rodape { margin: 10px 0 0; font-size: .8rem; }

/* --------------------------------- Paineis ------------------------------- */

.painel-titulo { font-size: .98rem; margin-bottom: .3em; }
.painel-nota { font-size: .78rem; color: var(--apagado); margin-bottom: .6rem; }
.painel-lista, .ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.painel-lista a, .ranking a { display: block; padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: .9rem; }
.painel-lista a:hover, .ranking a:hover { background: var(--verde-claro); }
.painel-lista a.ativo { background: var(--verde); color: #fff; }
.ranking li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ranking-grupo {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--fundo-alt); border-radius: 6px; font-size: .74rem; font-weight: 800; color: var(--verde-escuro);
}
.ranking-n { font-size: .8rem; color: var(--apagado); font-variant-numeric: tabular-nums; }
.lista-bichos { max-height: 420px; overflow-y: auto; }

/* --------------------------------- Texto --------------------------------- */

.texto { margin: 28px 0; max-width: 74ch; }
.texto h2 { margin-top: 1.4em; }
.texto ul { padding-left: 1.2em; }

.lista-extracoes { list-style: none; padding: 0; display: grid; gap: 8px; }
.lista-extracoes li { padding: 10px 12px; border: 1px solid var(--linha); border-radius: var(--raio); }
.lista-extracoes .muted { display: block; font-size: .84rem; }

.lista-dias { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.lista-dias a {
  display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--linha);
  border-radius: var(--raio); text-decoration: none; background: var(--fundo);
}
.lista-dias a:hover { border-color: var(--verde); background: var(--verde-claro); }
.lista-dias strong { color: var(--tinta); }
.lista-dias .muted { font-size: .82rem; }

details {
  border: 1px solid var(--linha); border-radius: var(--raio); padding: 12px 14px; margin-bottom: 8px;
  background: var(--fundo);
}
details summary { cursor: pointer; font-weight: 600; color: var(--tinta); }
details[open] summary { margin-bottom: .6rem; }
.faq { margin: 28px 0; max-width: 74ch; }

.vazio { padding: 30px; border: 1px dashed var(--linha); border-radius: var(--raio-g); text-align: center; background: var(--fundo-alt); }

/* -------------------------------- Botoes --------------------------------- */

.btn {
  display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 700;
  font-size: .92rem; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-app { background: var(--amarelo); color: #3B2C00; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-app:hover { background: #FFC61A; color: #3B2C00; }
.btn-fantasma { border-color: var(--linha); color: var(--verde); background: var(--fundo); }
.btn-fantasma:hover { background: var(--verde-claro); }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-grande { padding: 14px 24px; font-size: 1rem; }
.btn-bloco { display: block; text-align: center; }
.link-discreto { font-size: .84rem; color: var(--apagado); }
.ver-mais { margin: 22px 0 0; }

.paginacao { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0; flex-wrap: wrap; }
.pagina-info { font-size: .84rem; color: var(--apagado); }

/* ----------------------------- Pagina do app ----------------------------- */

.app-hero {
  display: grid; gap: 20px; align-items: center; padding: 26px 0; grid-template-columns: 1fr;
  justify-items: center; text-align: center;
}
@media (min-width: 620px) {
  .app-hero { grid-template-columns: 160px 1fr; justify-items: start; text-align: left; }
}
.app-hero img { border-radius: 24px; box-shadow: var(--sombra); }

.grade-recursos { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 10px; }
@media (min-width: 620px) { .grade-recursos { grid-template-columns: repeat(2, 1fr); } }
.recurso { border: 1px solid var(--linha); border-radius: var(--raio-g); padding: 16px; background: var(--fundo); }
.recurso h3 { color: var(--verde-escuro); }

/* ------------------------------- CTA do app ------------------------------ */

.cta-app { background: var(--verde-claro); border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); padding: 24px 0; }
.cta-app-inner { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; text-align: center; justify-items: center; }
@media (min-width: 760px) {
  .cta-app-inner { grid-template-columns: 96px 1fr auto; text-align: left; justify-items: start; gap: 20px; }
}
.cta-app-icone { border-radius: 20px; box-shadow: var(--sombra); }
.cta-app-texto h2 { font-size: 1.2rem; margin-bottom: .3em; }
.cta-app-texto p { margin: 0; font-size: .92rem; max-width: 60ch; }
.cta-app-acoes { display: grid; gap: 6px; justify-items: center; }
@media (min-width: 760px) { .cta-app-acoes { justify-items: end; } }

/* -------------------------------- Rodape --------------------------------- */

.rodape { background: var(--tinta); color: #C8D6CE; padding: 34px 0 20px; margin-top: 0; }
.rodape a { color: #E6EFE9; text-decoration: none; font-size: .9rem; }
.rodape a:hover { color: #fff; text-decoration: underline; }
.rodape-grade { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .rodape-grade { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.rodape .marca-texto strong { color: #fff; }
.rodape .marca-texto small { color: #93A79B; }
.rodape-sobre { font-size: .86rem; margin-top: 12px; max-width: 44ch; }
.rodape-titulo { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .8em; }
.rodape-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.rodape-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: .8rem; }
.rodape-base p { margin: 0 0 4px; }
.rodape-aviso { color: #93A79B; max-width: 80ch; }
