:root {
    --fundo: #0a0a0a;
    --carta: #141414;
    --carta-hover: #1c1c1c;
    --amarelo: #ffd400;
    --verde: #16a34a;
    --vermelho: #dc2626;
    --numeros: 'Bebas Neue', sans-serif;
    --texto: 'Inter', sans-serif;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    height: 100%;
    background: var(--fundo);
    color: #fff;
    font-family: var(--texto);
    overflow: hidden;
  }

  .jogo {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
  }

  .topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 4px;
  }

  .marca {
    font-family: var(--numeros);
    letter-spacing: 0.12em;
    font-size: 15px;
    color: var(--amarelo);
  }

  /* seletor de modo: só aparece com a flag `extremo` ligada */
  .modos { display: flex; gap: 4px; }
  .modo {
    border: 1px solid #333;
    background: #141414;
    color: #8a8a8a;
    font-family: var(--numeros);
    font-size: 15px;
    letter-spacing: 0.08em;
    padding: 4px 10px 2px;
    border-radius: 4px;
    cursor: pointer;
  }
  .modo.ativo { background: var(--amarelo); color: #000; border-color: var(--amarelo); }
  .fim .modos { margin: 2px 0 4px; }

  .streak-topo {
    font-family: var(--numeros);
    font-size: 26px;
    color: #000;
    background: var(--amarelo);
    min-width: 40px;
    text-align: center;
    padding: 2px 10px;
    border-radius: 4px;
  }

  /* pergunta fixa: é o que diz o que fazer para quem chega no meio da live */
  .pergunta {
    margin: 0;
    padding: 2px 14px 8px;
    text-align: center;
    font-family: var(--numeros);
    font-size: clamp(22px, 6vw, 34px);
    letter-spacing: 0.08em;
    color: #fff;
  }

  /* ------------------------------------------------------------- metades */
  /* Um layout só, do celular ao desktop: duas colunas na proporção da foto
     (10:13), cada cartão com a arte INTEIRA ocupando a coluna e rótulo e
     número numa faixa embaixo. A largura da coluna é a que faz a foto caber
     na altura que sobra; no celular normalmente manda a largura da tela. */
  .metades {
    --vao: 4px;
    position: relative;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, min(calc(50vw - 10px), 560px, calc((100dvh - 420px) * 10 / 13)));
    grid-template-rows: auto auto auto;
    justify-content: center;
    align-content: center;
    column-gap: var(--vao);
    padding: 0 6px calc(10px + env(safe-area-inset-bottom));
  }

  /* O cartão inteiro é o botão. Subgrid: rótulo e número alinham entre os
     dois cartões mesmo com rótulos de altura diferente. */
  .carta {
    grid-row: 1 / -1;
    grid-column: 1;
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 0 0 14px;
    display: grid;
    grid-template-rows: subgrid;
    align-items: center;
    justify-items: center;
    row-gap: 10px;
    background: var(--carta);
    color: inherit;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 120ms ease, transform 80ms ease;
    border-radius: 12px;
    overflow: hidden;
  }

  .carta + .carta { grid-column: 2; }

  @media (hover: hover) {
    .carta:not(:disabled):hover { background: var(--carta-hover); }
  }

  .carta:not(:disabled):active { transform: scale(0.98); background: #222; }
  .carta:disabled { cursor: default; }

  /* A moldura reserva o espaço da arte antes de ela chegar (zero layout
     shift). Mesma proporção da foto (300x390): cover é a foto inteira. */
  .moldura {
    grid-row: 1;
    justify-self: stretch;
    width: 100%;
    aspect-ratio: 10 / 13;
    background:
      radial-gradient(120% 90% at 50% 8%, #262626 0%, #101010 60%, var(--fundo) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .moldura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: aparece 180ms ease-out;
  }

  .moldura.club img { object-fit: contain; padding: 10%; }

  @keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

  .rotulo {
    grid-row: 2;
    background: var(--amarelo);
    color: #000;
    font-weight: 700;
    font-size: clamp(12px, 3.3vw, 17px);
    line-height: 1.25;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    max-width: 92%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .numero {
    grid-row: 3;
    background: #000;
    color: var(--amarelo);
    font-family: var(--numeros);
    font-size: clamp(40px, 11vw, 84px);
    line-height: 1;
    padding: 8px 16px 4px;
    border-radius: 8px;
    min-width: 1.6em;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }

  .numero.oculto { color: rgba(255, 212, 0, 0.85); }

  /* desktop: mais respiro e tipografia maior; a grade é a mesma */
  @media (min-width: 900px) {
    .metades {
      --vao: 12px;
      grid-template-columns: repeat(2, min(46vw, 560px, calc((100dvh - 510px) * 10 / 13)));
      padding: 0 24px 24px;
    }
    .carta { padding: 0 0 22px; row-gap: 16px; border-radius: 18px; }
    .rotulo { font-size: 19px; padding: 9px 16px; max-width: 88%; }
    .numero { font-size: clamp(72px, 8vw, 110px); }
  }

  /* --------------------------------------------------------------- badge */
  .badge {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    align-self: start;
    margin-top: 2px;
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--numeros);
    font-size: 26px;
    pointer-events: none;
    border: 3px solid var(--fundo);
  }
  @media (min-width: 900px) { .badge { width: 64px; height: 64px; font-size: 30px; margin-top: 30px; } }

  .badge.ou { background: var(--amarelo); color: #000; }
  .badge.acerto { background: var(--verde); color: #fff; }
  .badge.erro { background: var(--vermelho); color: #fff; }

  .por-pouco {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    align-self: start;
    margin-top: 66px;
    position: relative;
    z-index: 2;
    transform: rotate(-4deg);
    background: var(--amarelo);
    color: #000;
    font-family: var(--numeros);
    font-size: 20px;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 4px;
    pointer-events: none;
  }
  @media (min-width: 900px) { .por-pouco { margin-top: 140px; font-size: 22px; } }

  /* ------------------------------------------------------------ game over */
  .tela-cheia {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .fim { justify-content: flex-start; padding-top: calc(16px + env(safe-area-inset-top)); }

  .assinatura {
    margin: 0;
    font-family: var(--numeros);
    font-size: 13px;
    letter-spacing: 0.18em;
    color: #8a8a8a;
  }

  /* a marca é o que sobra no print de share: fica inteira, no topo da tela */
  .marca-fim {
    height: clamp(96px, 18vh, 150px);
    width: auto;
    margin: 4px 0 0;
  }

  .streak-gigante {
    margin: 0;
    font-family: var(--numeros);
    font-size: clamp(100px, 30vw, 180px);
    line-height: 0.9;
    color: var(--amarelo);
  }

  .legenda-streak {
    margin: 0 0 4px;
    font-family: var(--numeros);
    font-size: 18px;
    letter-spacing: 0.14em;
    color: #fff;
  }

  /* "de novo" perto do placar, não no rodapé */
  .acoes-fim {
    display: flex;
    gap: 10px;
    margin: 6px 0 10px;
  }

  .resumo {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 460px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .resumo li {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 6px 6px;
    border-bottom: 1px solid #1f1f1f;
    text-align: left;
    border-radius: 6px;
  }

  .resumo li.encerrou { background: rgba(255, 212, 0, 0.10); }
  .resumo-marca { font-weight: 700; font-size: 16px; text-align: center; color: #555; }
  .resumo li.acerto .resumo-marca { color: var(--verde); }
  .resumo li.erro .resumo-marca { color: var(--vermelho); }
  .resumo li.erro .resumo-rotulo { color: #fff; }

  .resumo-rotulo { font-size: 13px; color: #d4d4d4; }

  .resumo-numero {
    font-family: var(--numeros);
    font-size: 20px;
    color: var(--amarelo);
  }

  .botao-denovo, .botao-share {
    border: 0;
    font-family: var(--numeros);
    font-size: 24px;
    letter-spacing: 0.1em;
    padding: 10px 28px 6px;
    border-radius: 6px;
    cursor: pointer;
  }

  .botao-denovo { background: var(--amarelo); color: #000; }
  .botao-share { background: #222; color: var(--amarelo); border: 2px solid var(--amarelo); }
  .botao-share:disabled { opacity: 0.6; cursor: default; }

  .aviso { color: #a3a3a3; max-width: 360px; line-height: 1.4; }

/* ----------------------------------------------------------- landing */
.landing {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
}
html:has(.landing), body:has(.landing) { height: auto; min-height: 100%; overflow: auto; }
.marca-landing { height: clamp(150px, 26vh, 230px); width: auto; }
.landing-titulo {
  margin: 4px 0 6px;
  font-family: var(--texto);
  font-weight: 700;
  font-size: clamp(22px, 5.5vw, 34px);
  line-height: 1.15;
  max-width: 520px;
}

/* bloco principal: amarelo, com o botão escuro de sombra deslocada */
.hero {
  width: 100%;
  max-width: 560px;
  background: var(--amarelo);
  color: #000;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 20px 24px;
  /* sombra deslocada clara: no fundo preto, sombra preta some */
  box-shadow: 9px 9px 0 #fff;
  transition: transform 80ms ease;
}
.hero:active { transform: translate(4px, 4px); box-shadow: 5px 5px 0 #fff; }
.hero-titulo { font-family: var(--texto); font-weight: 800; font-size: clamp(28px, 6vw, 40px); line-height: 1; }
.hero-desc { font-family: var(--texto); font-weight: 600; font-size: 14px; opacity: 0.85; }
.hero-botao {
  margin-top: 12px;
  background: #151515;
  color: #fff;
  font-family: var(--texto);
  font-weight: 800;
  font-size: 26px;
  padding: 10px 44px;
  box-shadow: 6px 6px 0 #fff;
}

/* lista vertical de botões largos, um por categoria */
.lista-modos {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}
.modo-largo {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-family: var(--texto);
  font-weight: 800;
  font-size: clamp(22px, 5vw, 30px);
  padding: 14px 16px;
  box-shadow: 8px 8px 0 var(--amarelo);
  transition: transform 80ms ease, background 120ms ease;
}
a.modo-largo:hover { background: var(--amarelo); box-shadow: 8px 8px 0 #fff; }
a.modo-largo:active { transform: translate(4px, 4px); box-shadow: 4px 4px 0 var(--amarelo); }
.modo-largo.em-breve { background: #2a2a2a; color: #777; box-shadow: 8px 8px 0 #444; }
.modo-nota { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.rodape { margin-top: 26px; }

/* --------------------------------------------- streak e categoria no topo */
a.marca { text-decoration: none; }
.categoria-topo {
  font-family: var(--numeros); font-size: 15px; letter-spacing: 0.1em; color: #d4d4d4;
  border: 1px solid #333; border-radius: 4px; padding: 3px 8px 1px;
}
.streak-topo { transition: transform 150ms ease, background 200ms ease; }
.streak-topo.nivel-1 { background: #ffdf3a; }
.streak-topo.nivel-2 { background: #ffb400; }
.streak-topo.nivel-3 { background: #ff8a00; color: #fff; }
.streak-topo.nivel-4 { background: #ff3b3b; color: #fff; }
.streak-topo.bump { animation: bump 450ms ease-out; }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45) rotate(-4deg); }
  100% { transform: scale(1); }
}
.link-inicio { color: #8a8a8a; font-size: 13px; text-decoration: underline; margin: 4px 0 6px; }

/* ------------------------------------------------ rodapé, como o do The Fenomeno */
.rodape-site {
  width: 100%;
  max-width: 720px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--texto);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-align: left;
}
.rodape-linha {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 640px) { .rodape-linha { flex-direction: row; align-items: center; } }
.rodape-nav { display: flex; gap: 16px; text-transform: uppercase; letter-spacing: 0.14em; }
.rodape-nav a { color: inherit; text-decoration: none; transition: color 120ms ease; }
.rodape-nav a:hover { color: rgba(255, 255, 255, 0.7); }
.rodape-promo { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.rodape-promo img { width: 34px; height: auto; opacity: 0.9; flex-shrink: 0; }
.rodape-promo a { color: rgba(255, 212, 0, 0.8); text-decoration: none; transition: color 120ms ease; }
.rodape-promo a:hover { color: var(--amarelo); }
.rodape-site.compacto { max-width: 460px; margin-top: 18px; padding-top: 14px; }
.fim .resumo { flex: 0 1 auto; max-height: 38dvh; }

/* ---------------------------------------------------------------- diário */
.placar-dia .de-dez { font-size: 0.42em; color: #fff; }
.marcas-dia { margin: 0; font-size: 26px; letter-spacing: 0.12em; line-height: 1; }
.marcas-dia .acerto { color: var(--verde); }
.marcas-dia .erro { color: var(--vermelho); }
a.botao-share { text-decoration: none; display: inline-block; }

/* ---------------------------------------------------- resultado do diário */
.resultado-dia { justify-content: flex-start; gap: 6px; overflow-y: auto; height: auto; min-height: 100dvh; }
html:has(.resultado-dia), body:has(.resultado-dia) { height: auto; min-height: 100%; overflow: auto; }
.resultado-dia .marca-fim { height: clamp(90px, 16vh, 130px); }
.titulo-resultado { margin: 6px 0 0; font-family: var(--texto); font-weight: 800; font-size: clamp(28px, 7vw, 40px); }
.sub-resultado { margin: 0; font-size: 13px; color: #8a8a8a; font-weight: 600; }
.msg-resultado { margin: 8px 0 12px; font-size: 15px; font-weight: 600; color: #e5e5e5; max-width: 420px; line-height: 1.35; }
.caixa-placar {
  background: #fff; color: #000; font-family: var(--texto); font-weight: 800;
  font-size: clamp(56px, 16vw, 84px); line-height: 1; padding: 14px 40px 10px;
  box-shadow: 8px 8px 0 var(--amarelo); margin: 4px 0 18px;
}
.categorias-dia { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 8px; }
.categorias-dia li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  background: #161616; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; text-align: left;
}
.cat-marcas { display: flex; gap: 3px; font-size: 16px; }
.cat-marcas .acerto { color: var(--verde); }
.cat-marcas .erro { color: var(--vermelho); }
.cat-placar { color: #8a8a8a; font-size: 13px; min-width: 32px; text-align: right; }
.botao-compartilhar {
  margin-top: 20px; border: 0; background: var(--amarelo); color: #000;
  font-family: var(--texto); font-weight: 800; font-size: 20px; padding: 14px 28px;
  box-shadow: 7px 7px 0 #fff; cursor: pointer;
}
.botao-compartilhar:active { transform: translate(3px, 3px); box-shadow: 4px 4px 0 #fff; }
.sequencia-dias { margin: 16px 0 10px; font-weight: 700; font-size: 15px; }
.rotulo-proximo { margin: 0; font-size: 12px; letter-spacing: 0.18em; color: #8a8a8a; font-weight: 600; }
.contagem-proximo { margin: 2px 0 14px; font-family: var(--numeros); font-size: 44px; letter-spacing: 0.08em; line-height: 1; }
.resultado-dia .acoes-fim { margin-bottom: 4px; }
a.botao-denovo { text-decoration: none; display: inline-block; }
.como-link { background: none; border: 0; cursor: pointer; font: inherit; }
.resultado-dia .resumo { flex: 0 0 auto; max-height: none; overflow: visible; margin-bottom: 20px; }

/* ------------------------------------------------- troca de rodada */
/* a vencedora que estava à direita desliza para a esquerda (uma coluna + o
   vão); a carta nova entra pela direita */

.carta.desliza { animation: desliza-esq 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.carta.entra { animation: entra-dir 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes desliza-esq {
  from { transform: translateX(calc(100% + var(--vao))); }
  to { transform: translateX(0); }
}
@keyframes entra-dir {
  from { transform: translateX(60%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .carta.desliza, .carta.entra { animation: none; } }

/* --------------------------------------------- específicos, perdeu, logo */
.link-logo { display: inline-block; line-height: 0; }
.especificos { width: 100%; max-width: 500px; margin-top: 26px; display: flex; flex-direction: column; align-items: center; }
.especificos-titulo { margin: 0 0 14px; font-family: var(--numeros); font-size: 22px; letter-spacing: 0.14em; color: #8a8a8a; }
.especificos .lista-modos { margin-top: 0; }
.mais { width: 100%; max-height: 64px; overflow: hidden; position: relative; margin-top: 18px; transition: max-height 320ms ease; }
.mais::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.92) 100%);
  transition: opacity 200ms ease;
}
.mais.aberto { max-height: 900px; }
.mais.aberto::after { opacity: 0; }
.ver-mais {
  margin-top: 12px; background: none; border: 2px solid #333; color: #d4d4d4;
  font-family: var(--numeros); font-size: 18px; letter-spacing: 0.12em; padding: 8px 22px 5px; cursor: pointer;
}
.ver-mais:hover { border-color: var(--amarelo); color: var(--amarelo); }
.hero-sequencia { margin-top: 8px; font-family: var(--texto); font-weight: 700; font-size: 13px; color: #000; opacity: 0.75; }
.perdeu { justify-content: center; }
.perdeu-titulo { margin: 8px 0 0; font-family: var(--texto); font-weight: 800; font-size: clamp(34px, 9vw, 56px); letter-spacing: 0.02em; color: var(--vermelho); }
.perdeu .streak-gigante { font-size: clamp(90px, 26vw, 150px); }

/* ------------------------------------------------------- chama do streak */
.cabeca {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0 14px 8px; min-height: 150px; justify-content: flex-end;
}
.logo-jogo { height: 96px; width: auto; }
.fogo {
  display: flex;
  display: flex; align-items: center; gap: 4px; height: 48px;
  opacity: 0; transform: scale(0.6); transition: opacity 250ms ease, transform 250ms ease;
  --cor-fora: #ffd400; --cor-dentro: #fff3a0;
}
.fogo.aceso { opacity: 1; transform: scale(1); }
.fogo.nivel-1 { --cor-fora: #ffb400; --cor-dentro: #ffe27a; }
.fogo.nivel-2 { --cor-fora: #ff8a00; --cor-dentro: #ffd04a; }
.fogo.nivel-3 { --cor-fora: #ff5a1f; --cor-dentro: #ffb03a; }
.fogo.nivel-4 { --cor-fora: #ff2d2d; --cor-dentro: #ff9d3a; }
.chama { height: 42px; width: auto; transform-origin: 50% 100%; animation: tremula 900ms ease-in-out infinite; filter: drop-shadow(0 0 6px var(--cor-fora)); }
.nivel-2 .chama { height: 46px; } .nivel-3 .chama { height: 50px; } .nivel-4 .chama { height: 54px; animation-duration: 600ms; }
.chama-fora { fill: var(--cor-fora); }
.chama-dentro { fill: var(--cor-dentro); }
.fogo-n { font-family: var(--numeros); font-size: 40px; line-height: 1; color: var(--cor-fora); padding-top: 4px; }
.fogo.bump .chama { animation: tremula 900ms ease-in-out infinite, pulo 450ms ease-out; }
.fogo.bump .fogo-n { animation: bump 450ms ease-out; }
@keyframes tremula {
  0%, 100% { transform: scaleX(1) scaleY(1) skewX(0deg); }
  30% { transform: scaleX(0.92) scaleY(1.06) skewX(-3deg); }
  60% { transform: scaleX(1.06) scaleY(0.95) skewX(3deg); }
}
@keyframes pulo { 0% { scale: 1; } 40% { scale: 1.5; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .chama { animation: none; } }
@media (min-width: 900px) { .logo-jogo { height: 120px; } .cabeca { min-height: 190px; } .chama { height: 50px; } .fogo-n { font-size: 46px; } }

.pergunta { display: none; }

/* chama pequena na sequência de dias da landing */
.hero-sequencia { display: inline-flex; align-items: center; gap: 4px; }
.chama-mini { height: 20px; width: auto; fill: #d9480f; animation: tremula 900ms ease-in-out infinite; transform-origin: 50% 100%; }
.chama-mini-dentro { fill: #ffb03a; }

/* ------------------------------------------------ você perdeu: entrada */
.perdeu { animation: flash-vermelho 700ms ease-out; }
.perdeu-titulo { animation: bate 650ms cubic-bezier(0.2, 1.4, 0.3, 1) both; }
.perdeu .streak-gigante { animation: sobe 500ms 250ms ease-out both; }
.perdeu .legenda-streak, .perdeu .acoes-fim, .perdeu .link-inicio { animation: sobe 400ms 450ms ease-out both; }
@keyframes flash-vermelho { 0% { background: #5a0b0b; } 100% { background: var(--fundo); } }
@keyframes bate {
  0% { transform: scale(3) rotate(-6deg); opacity: 0; }
  55% { transform: scale(0.94) rotate(1deg); opacity: 1; }
  70% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  90% { transform: translateX(-3px); }
  100% { transform: none; }
}
@keyframes sobe { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------ folha de compartilhar */
.folha-fundo { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.7); display: flex; align-items: flex-end; justify-content: center; }
.folha {
  width: 100%; max-width: 520px; background: #141414; border-radius: 18px 18px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); text-align: center;
  animation: sobe 220ms ease-out;
}
@media (min-width: 900px) { .folha-fundo { align-items: center; } .folha { border-radius: 18px; } }
.folha-alca { width: 40px; height: 4px; border-radius: 2px; background: #333; margin: 0 auto 10px; }
.folha-titulo { margin: 0 0 14px; font-family: var(--numeros); font-size: 22px; letter-spacing: 0.14em; }
.folha-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.folha-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #1d1d1d; border: 0; border-radius: 12px; padding: 12px 6px; color: #fff;
  font-family: var(--texto); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer;
}
.folha-item:hover { background: #262626; }
.folha-item:disabled { opacity: 0.6; }
.folha-icone { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #333; }
.folha-icone svg { width: 24px; height: 24px; }
.whatsapp .folha-icone { background: #25d366; color: #000; }
.x .folha-icone { background: #fff; color: #000; }
.instagram .folha-icone { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }
.telegram .folha-icone { background: #2aabee; color: #fff; }
.copiar .folha-icone, .baixar .folha-icone { background: var(--amarelo); color: #000; }
.folha-nativo { margin-top: 12px; background: none; border: 0; color: #8a8a8a; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.folha-texto { margin: 12px 0 0; text-align: left; white-space: pre-wrap; font: 12px/1.45 var(--texto); color: #a3a3a3; background: #0d0d0d; border-radius: 8px; padding: 10px 12px; }
.folha-aviso { margin: 10px 0 0; font-size: 13px; color: var(--amarelo); font-weight: 600; }
.folha-fechar { margin-top: 12px; background: none; border: 2px solid #333; color: #d4d4d4; font-family: var(--numeros); font-size: 16px; letter-spacing: 0.12em; padding: 7px 20px 4px; cursor: pointer; }

/* ------------------------------------------ resultado do infinito/categoria */
.caixa-placar { position: relative; display: flex; flex-direction: column; align-items: center; }
.caixa-legenda { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.caixa-placar.recorde { box-shadow: 8px 8px 0 var(--verde); }
.selo-recorde {
  position: absolute; top: -14px; right: -18px; transform: rotate(6deg);
  background: var(--verde); color: #fff; font-family: var(--numeros); font-size: 15px; letter-spacing: 0.1em;
  padding: 4px 10px 2px; border-radius: 4px;
}
.tiles { display: flex; gap: 10px; width: 100%; max-width: 480px; margin-bottom: 10px; }
.tile { flex: 1; background: #161616; border-radius: 8px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; }
.tile-n { font-family: var(--numeros); font-size: 30px; line-height: 1; color: var(--amarelo); }
.tile-l { font-size: 11px; color: #8a8a8a; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.resultado-dia .acoes-fim { margin-top: 18px; }
.resultado-dia .modos { margin: 6px 0 2px; }

/* fogo no resultado: dentro da caixa branca a chama é menor e sem brilho forte */
.caixa-numero { display: inline-flex; align-items: center; gap: 10px; }
.caixa-placar .fogo { height: auto; opacity: 1; transform: none; }
.caixa-placar .fogo:not(.aceso) { display: none; }
.caixa-placar .chama { height: 0.62em; filter: drop-shadow(0 0 3px var(--cor-fora)); }
.caixa-placar .fogo-n { display: none; }
.caixa-legenda .fogo { display: inline-flex; vertical-align: middle; margin-right: 2px; }
.caixa-legenda .chama { height: 16px; }
.caixa-legenda .fogo-n { display: inline; font-size: 15px; padding: 0; color: #000; }
.streak-gigante.com-fogo { display: inline-flex; align-items: center; gap: 10px; }
.streak-gigante .fogo { height: auto; opacity: 1; transform: none; }
.streak-gigante .fogo:not(.aceso) { display: none; }
.streak-gigante .chama { height: 0.6em; }
.streak-gigante .fogo-n { display: none; }

/* topo sem a marca em texto: a logo já está no cabeçalho; categoria à esquerda, seletor à direita */
.topo { justify-content: space-between; min-height: 34px; }

.hero-sequencia[hidden] { display: none; }

/* notebook baixo: cabeçalho menor para sobrar altura para os cartões */
@media (min-width: 900px) and (max-height: 800px) {
  .logo-jogo { height: 60px; }
  .cabeca { min-height: 104px; padding-bottom: 6px; }
  .chama { height: 34px; }
  .fogo-n { font-size: 32px; }
  .metades { grid-template-columns: repeat(2, min(46vw, 560px, calc((100dvh - 400px) * 10 / 13))); padding-bottom: 14px; }
  .carta { padding-bottom: 14px; row-gap: 10px; }
  .rotulo { font-size: 16px; padding: 7px 12px; }
  .numero { font-size: 64px; }
  .badge { margin-top: 8px; }
  .por-pouco { margin-top: 82px; }
}
