/* Ano da Foto — identidade sobre a camada W.Games UI (wg-ui.css). Só o que é próprio do jogo fica aqui. */
body.wg { --cor: #0f766e; --cor-hover: #115e59; --texto: #fff; --texto-hover: #fff; }
body.wg.dark a.logoDesafio { background-image: url('/anodafoto/imagens/logo-branca.png'); }
body.wg.light a.logoDesafio { background-image: url('/anodafoto/imagens/logo-preta.png'); }
body.wg a.logoDesafio { margin-bottom: 0; width: auto; }
body.wg.dark .wg-home .logoFrontPage { background-image: url('/anodafoto/imagens/logo-branca.png'); }
body.wg.light .wg-home .logoFrontPage { background-image: url('/anodafoto/imagens/logo-preta.png'); }

/* passos (fotos 1..N) e placar */
body.wg .wg-passos { display: flex; justify-content: center; gap: 8px; margin: 6px 0 8px; }
body.wg .wg-passo { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--wg-tile-line); background: var(--wg-tile); color: var(--wg-text); font-weight: 800; font-size: 16px; padding: 0; cursor: pointer; }
body.wg .wg-passo.atual { border-color: var(--cor); box-shadow: 0 0 0 2px var(--cor); }
body.wg .wg-passo.bloq { opacity: .45; cursor: default; }
body.wg .wg-passo.feito { color: #fff; border-color: transparent; }
body.wg .wg-passo.feito.certo { background: #16a34a; }
body.wg .wg-passo.feito.quase { background: #b45309; }
body.wg .wg-passo.feito.errado { background: #dc2626; }
body.wg .wg-placar { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 8px; }

/* foto em moldura estilo polaroid */
body.wg .wg-polaroid { margin: 0 auto 12px; background: #fff; padding: 10px 10px 12px; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.35); max-width: 520px; }
body.wg .wg-polaroid-img { position: relative; background: #e5e7eb; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
body.wg .wg-polaroid-img img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
body.wg .wg-polaroid-img.carregando::after { content: ''; width: 34px; height: 34px; border: 4px solid #cbd5e1; border-top-color: var(--cor); border-radius: 50%; position: absolute; animation: wgGira .8s linear infinite; }
body.wg .wg-polaroid-img.erro img { visibility: hidden; }
body.wg .wg-polaroid-img.erro::after { content: 'Não foi possível carregar a foto.'; color: #374151; font-size: 14px; position: absolute; padding: 10px; text-align: center; }
body.wg .wg-polaroid figcaption { color: #111; font-size: 13px; text-align: center; margin-top: 8px; min-height: 0; }
@keyframes wgGira { to { transform: rotate(360deg); } }

/* seletor de ano */
body.wg .wg-palpite { max-width: 520px; margin: 0 auto; }
body.wg .wg-palpite-rot { display: block; text-align: center; font-weight: 700; margin-bottom: 6px; }
body.wg .wg-ano { display: flex; align-items: center; justify-content: center; gap: 10px; }
body.wg .wg-ano input[type=number] { width: 140px; height: 54px; text-align: center; font-size: 30px; font-weight: 800; border-radius: 10px; border: 2px solid var(--cor); background: var(--wg-tile); color: inherit; -moz-appearance: textfield; }
body.wg .wg-ano input[type=number]::-webkit-outer-spin-button, body.wg .wg-ano input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.wg .wg-ano-btn { width: 54px; height: 54px; border-radius: 10px; font-size: 22px; background: var(--cor); border: 0; color: #fff; }
body.wg .wg-ano-btn i { color: #fff; font-size: 22px; }
body.wg .wg-ano-btn:hover, body.wg .wg-ano-btn:active { background: var(--cor-hover); }
body.wg .wg-palpite .form-range { margin: 14px 0 0; accent-color: var(--cor); }
body.wg .wg-linha-tempo { display: flex; justify-content: space-between; font-size: 12px; opacity: .75; margin-bottom: 12px; }
body.wg .wg-validar, body.wg .wg-proxima { display: block; width: 100%; font-weight: 800; letter-spacing: .04em; padding: 12px; }

/* revelação */
body.wg .wg-revelacao { max-width: 520px; margin: 0 auto; text-align: center; }
body.wg .wg-rev-carregando { padding: 26px 0; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
body.wg .wg-spin { width: 20px; height: 20px; border: 3px solid var(--wg-tile-line); border-top-color: var(--cor); border-radius: 50%; display: inline-block; animation: wgGira .8s linear infinite; }
body.wg .wg-rev-real { font-size: 20px; margin: 0 0 8px; }
body.wg .wg-rev-card { border-radius: 10px; padding: 10px 14px; color: #fff; }
body.wg .wg-rev-card.certo { background: #16a34a; }
body.wg .wg-rev-card.quase { background: #b45309; }
body.wg .wg-rev-card.errado { background: #dc2626; }
/* palpite + pontos numa linha só */
body.wg .wg-rev-uma { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 10px; padding: 12px 14px; }
body.wg .wg-rev-par { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; font-size: 16px; }
body.wg .wg-rev-par strong { font-size: 22px; line-height: 1; }
@media (max-width: 360px) { body.wg .wg-rev-par { font-size: 14px; gap: 5px; } body.wg .wg-rev-par strong { font-size: 19px; } }
body.wg .wg-rev-linha { display: flex; justify-content: space-between; font-size: 17px; }
body.wg .wg-rev-linha strong { font-size: 20px; }
body.wg .wg-rev-dif { margin: 8px 0 12px; font-size: 15px; }

/* resumo no modal final */
body.wg .wg-resumo { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
body.wg .wg-resumo-item { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 6px 10px; color: #fff; text-align: left; }
body.wg .wg-resumo-item.certo { background: #16a34a; } body.wg .wg-resumo-item.quase { background: #b45309; } body.wg .wg-resumo-item.errado { background: #dc2626; }
body.wg .wg-resumo-item img { width: 52px; height: 40px; object-fit: cover; border-radius: 3px; background: #e5e7eb; flex: none; }
body.wg .wg-resumo-txt { flex: 1; display: flex; flex-direction: column; font-size: 13px; line-height: 1.2; min-width: 0; }
body.wg .wg-resumo-item strong { font-size: 18px; }
body.wg .wg-chamada { text-align: center; font-size: 20px; font-weight: 800; margin: 4px 0 8px; }
body.wg .wg-aviso-data { text-align: center; margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--cor); color: #fff; font-size: 14px; }
body.wg #love { padding-right: 96px; text-overflow: ellipsis; }

body.wg .wg-endgame { text-align: center; margin-top: 12px; }
body.wg .wg-endgame p { font-weight: 700; font-size: 17px; margin: 0; }

/* "Como jogar" */
body.wg .wg-como { font-size: 14px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--wg-panel); }
body.wg .wg-como p { margin: 0 0 6px; }
body.wg .wg-como-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 6px; }
body.wg .wg-chip-mini { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
body.wg .wg-vazio { text-align: center; padding: 30px 10px; }
body.wg .wg-vazio > i { display: block; font-size: 44px; color: var(--wg-muted); margin-bottom: 6px; }
body.wg .wg-vazio .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
body.wg .wg-vazio .btn i { font-size: 18px; color: inherit; }

/* modal de resultado */
/* resultado: emojis + copiar + Compartilhe na mesma linha (como nos outros jogos); a pontuação já está no título do modal */
body.wg .wg-resultado-barra { flex-wrap: nowrap; justify-content: center; align-items: center; gap: 8px; padding: 10px; }
body.wg .wg-resultado-barra #resultado { flex: 1 1 auto; min-width: 0; white-space: pre; text-align: center; font-size: 20px; line-height: 1.3; letter-spacing: 1px; word-break: normal; overflow-wrap: normal; }
@media (max-width: 360px) { body.wg .wg-resultado-barra #resultado { font-size: 16px; letter-spacing: 0; } }
body.wg .wg-pos-fim { max-width: 320px; margin: 12px auto 0; }
body.wg .wg-final #share-novo.show, body.wg .wg-final #share-novo.collapsing { display: block; }
body.wg canvas[style*="z-index: 1000"] { z-index: 2000 !important; }

/* anúncios laterais 170x600 (modelo do TentaCena): só >= 861px, e só onde sobra espaço ao lado de jogo + painel */
body.wg .wg-ad-lateral { display: none; }
@media (min-width: 861px) {
  body.wg .wg-ad-lateral { display: flex; align-items: center; position: absolute; top: 0; height: 100vh; }
  body.wg .wg-ad-esq { left: 0; }
  body.wg .wg-ad-dir { right: 0; }
}
@media (min-width: 1024px) and (max-width: 1199px) { body.wg .wg-ad-lateral { display: none !important; } }

/* "Conheça mais jogos" */
body.wg #lista-jogos-unico { gap: 12px; align-items: center; margin-bottom: 14px; }
body.wg #lista-jogos-unico p { margin: 0; font-size: 14px; }

/* botão de contorno em modal: o `.modal a { color: var(--cor) }` do núcleo pintava o texto da cor do contorno */
body.wg .modal a.btn-wg-sec { color: var(--wg-text); }
body.wg .modal a.btn-wg-sec:hover { color: var(--texto-hover); }

/* foto em tela cheia */
body.wg .wg-tela-cheia-btn { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
body.wg .wg-tela-cheia-btn i { color: #fff; font-size: 18px; }
body.wg .wg-tela-cheia-btn:hover { background: rgba(0,0,0,.85); }
body.wg .wg-polaroid-img.erro .wg-tela-cheia-btn, body.wg .wg-polaroid-img.carregando .wg-tela-cheia-btn { display: none; }
body.wg .wg-polaroid-img img { cursor: zoom-in; }
.wg-tela-cheia { position: fixed; inset: 0; z-index: 3000; background: #000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.wg-tela-cheia img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.wg-tela-cheia .wg-tc-fechar { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.wg-tela-cheia .wg-tc-fechar i { color: #fff; font-size: 22px; }

/* cartão do jogo e barra lateral começam na mesma altura, qualquer que seja a altura de cada um:
   o respiro de 10px vem do layout (os dois são "sticky top:10px", então nunca se deslocam em relação um ao outro) */
@media (min-width: 1024px) {
  body.wg .wg-layout { padding-top: 10px; }
  body.wg .wg-layout > .wg-main > :first-child { margin-top: 0; }
  body.wg .wg-painel > .wg-card:first-child { margin-top: 0; }
}

/* barra do ano na cor do jogo */
body.wg .wg-palpite .form-range::-webkit-slider-thumb { background: var(--cor); }
body.wg .wg-palpite .form-range::-moz-range-thumb { background: var(--cor); }
