/* Jogos para adultos (/Jogos). Tudo dentro de .jg para não vazar para o resto do site. */

/* ---------- lista de jogos (página Jogos e seção da página inicial) ---------- */
.jogos-intro { text-align: center; margin: 14px auto; max-width: 720px; padding: 0 16px; }
.jogos-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    max-width: 1100px; margin: 16px auto; padding: 0 16px;
}
@media (min-width: 768px) { .jogos-grid { grid-template-columns: repeat(3, 1fr); } }

.jogo-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid #d9d4c7; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08); transition: transform .15s, box-shadow .15s;
}
.jogo-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 0, 0, .15); color: inherit; }
.jogo-card-art {
    display: flex; align-items: center; justify-content: center; height: 120px;
    background: linear-gradient(135deg, var(--jc-a, #2f6fed), var(--jc-b, #7aa5ff));
}
.jogo-card-emoji { font-size: 4rem; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.jogo-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.jogo-card-title { font-weight: 700; font-size: 1.1rem; }
.jogo-card-desc { font-size: .92rem; color: #555; }
.jogo-card-tag { font-size: .8rem; color: #0e7a6c; font-weight: 600; }

.jogos-section-actions { text-align: center; margin: 12px 0 8px; }

/* ---------- página de um jogo ---------- */
.jg-controls {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
    max-width: 760px; margin: 14px auto 8px; padding: 0 16px;
}
.jg-controls label { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.jg-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 16px 12px; }
.jg-nav a { flex: 0 1 220px; text-align: center; }

.jg {
    --bg: #f4f1ea; --card: #ffffff; --ink: #2b2b2b; --muted: #6b6b6b;
    --accent: #2f6fed; --ok: #1f9d55; --bad: #d62839; --line: #d9d4c7; --warn: #e0a100;
    max-width: 680px; margin: 0 auto 28px; padding: 0 12px; color: var(--ink);
}
.jg * { box-sizing: border-box; }
.jg [hidden] { display: none !important; }
.jg-loading { text-align: center; color: var(--muted); padding: 30px 0; }

.jg-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.jg-placar { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 6px; font-size: .95rem; color: var(--muted); }
.jg-placar b { color: var(--ink); }

.jg-pill { display: inline-block; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.jg-pill.vago { background: var(--muted); }
.jg-dica { margin: 10px 0 4px; font-size: 1.05rem; }
.jg-vidas { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.jg-rotulo { text-align: center; color: var(--muted); font-size: .88rem; margin: 0 0 8px; }
.jg-fileira { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jg-acoes { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.jg button { font-family: inherit; }
.jg-btn {
    background: transparent; color: var(--ink); border: 1px solid var(--line);
    border-radius: 8px; padding: 8px 14px; font-size: .95rem; cursor: pointer;
}
.jg-btn:hover:not(:disabled) { border-color: var(--accent); }
.jg-btn:disabled { opacity: .5; cursor: default; }
.jg-pri {
    background: var(--accent); color: #fff; border: 0; border-radius: 8px;
    padding: 10px 22px; font-size: 1rem; cursor: pointer;
}
.jg-pri:disabled { opacity: .6; cursor: default; }
.jg-spk {
    background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
    width: 34px; height: 34px; font-size: 1rem; line-height: 1; vertical-align: middle; margin-left: 6px;
}
.jg-spk:hover { border-color: var(--accent); }

.jg-fim { text-align: center; }
.jg-fim p { font-size: 1.15rem; margin: 6px 0 12px; }
.jg-explica { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #eef3ff; font-size: .95rem; }

/* letras: embaralhada, monte a frase, forca, ouça e escreva */
.jg-slot, .jg-tile {
    min-width: 44px; height: 54px; padding: 0 8px; border-radius: 8px; font-size: 1.6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; user-select: none;
}
.jg-slot { border: 0; border-bottom: 4px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; border-radius: 0; }
.jg-slot.certa { background: var(--ok); color: #fff; border-color: var(--ok); border-radius: 8px; }
.jg-slot.errada { background: var(--bad); color: #fff; border-color: var(--bad); border-radius: 8px; animation: jg-tremer .4s; }
.jg-tile { border: 2px solid var(--accent); background: var(--card); color: var(--ink); cursor: pointer; }
.jg-tile:hover:not(:disabled) { background: var(--accent); color: #fff; }
.jg-tile:disabled { visibility: hidden; }
.jg-words .jg-slot, .jg-words .jg-tile { font-size: 1.05rem; height: 44px; min-width: 0; }
.jg-words .jg-slot { border: 2px dashed var(--line); border-radius: 8px; min-width: 56px; }
.jg-words .jg-slot.cheio { border-style: solid; border-color: var(--accent); }
@keyframes jg-tremer { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .jg-slot.errada { animation: none; } }

.jg-hist { margin-top: 12px; text-align: center; }
.jg-tent { margin: 4px 0; letter-spacing: 2px; font-weight: 700; font-size: 1.05rem; }
.jg-tent i { font-style: normal; padding: 1px 4px; border-radius: 4px; margin: 0 1px; color: var(--muted); }
.jg-tent i.x { background: var(--bad); color: #fff; text-decoration: line-through; }
.jg-tent i.v { background: var(--ok); color: #fff; }

/* múltipla escolha */
.jg-alvo { text-align: center; font-size: 1.9rem; font-weight: 700; margin: 6px 0 14px; word-break: break-word; }
.jg-alvo small { display: block; font-size: .9rem; font-weight: 400; color: var(--muted); margin-top: 4px; }
.jg-opcoes { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .jg-opcoes { grid-template-columns: 1fr 1fr; } }
.jg-opcao {
    border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px;
    padding: 12px; font-size: 1.05rem; cursor: pointer; text-align: center;
}
.jg-opcao:hover:not(:disabled) { border-color: var(--accent); }
.jg-opcao.certa { background: var(--ok); border-color: var(--ok); color: #fff; }
.jg-opcao.revelada { animation: none; outline: 3px solid var(--ok); }
.jg-opcao.errada { background: var(--bad); border-color: var(--bad); color: #fff; opacity: .85; }
.jg-opcao:disabled { cursor: default; }

/* ligue os pares */
.jg-pares { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jg-pares .col { display: flex; flex-direction: column; gap: 8px; }
.jg-item {
    position: relative; border: 2px solid var(--line); background: var(--card); color: var(--ink);
    border-radius: 10px; padding: 12px 8px; font-size: 1rem; cursor: pointer; text-align: center; min-height: 52px;
}
.jg-item.sel { border-color: var(--accent); background: #eef3ff; }
.jg-item.certo { background: var(--ok); border-color: var(--ok); color: #fff; }
.jg-item:disabled { cursor: default; }
.jg-item.erro { animation: jg-tremer .4s; border-color: var(--bad); }
.jg-item small { display: block; font-size: .75rem; opacity: .8; }

/* memória */
.jg-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .jg-grade { grid-template-columns: repeat(4, 1fr); } }
.jg-carta {
    min-height: 84px; border: 2px solid var(--accent); background: var(--accent); color: #fff; border-radius: 10px;
    font-size: 1.5rem; font-weight: 700; cursor: pointer; padding: 6px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; word-break: break-word;
}
.jg-carta .t { font-size: 1rem; font-weight: 700; }
.jg-carta small { font-size: .7rem; font-weight: 400; opacity: .9; }
.jg-carta.aberta { background: var(--card); color: var(--ink); }
.jg-carta.certa { background: var(--ok); border-color: var(--ok); color: #fff; }
.jg-carta.errada { background: var(--bad); border-color: var(--bad); color: #fff; }
.jg-carta:disabled { cursor: default; }
.jg-carta .ic { font-size: 1.6rem; }

/* caça-palavras */
.jg-cp { display: grid; gap: 2px; user-select: none; touch-action: none; margin: 0 auto; max-width: 420px; }
.jg-cp .cel {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem;
    background: var(--bg); border-radius: 4px; cursor: pointer;
}
.jg-cp .cel.ini { background: var(--accent); color: #fff; }
.jg-cp .cel.achada { background: var(--ok); color: #fff; }
.jg-cp .cel.sel { background: #bcd0ff; }
.jg-lista { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.jg-lista span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.jg-lista span.feita { background: var(--ok); color: #fff; border-color: var(--ok); text-decoration: line-through; }

/* forca */
.jg-forca { text-align: center; font-size: 4.2rem; line-height: 1.1; margin: 4px 0; min-height: 80px; }
.jg-teclado { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.jg-teclado button {
    width: 38px; height: 44px; border: 2px solid var(--accent); background: var(--card); color: var(--ink);
    border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.jg-teclado button.certa { background: var(--ok); border-color: var(--ok); color: #fff; }
.jg-teclado button.errada { background: var(--bad); border-color: var(--bad); color: #fff; }
.jg-teclado button:disabled { cursor: default; }

/* palavra palavra (frase clicável) */
.jg-frase { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 1.15rem; }
.jg-palavra {
    border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px;
    padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}
.jg-palavra:hover:not(:disabled) { border-color: var(--accent); }
.jg-palavra.certa { background: var(--ok); border-color: var(--ok); color: #fff; }
.jg-palavra.revelada { outline: 3px solid var(--ok); }
.jg-palavra.errada { background: var(--bad); border-color: var(--bad); color: #fff; text-decoration: line-through; }
.jg-lacuna { display: inline-block; min-width: 90px; border-bottom: 3px solid var(--ink); text-align: center; font-weight: 700; }

/* batalha */
.jg-arena { display: flex; align-items: center; justify-content: space-around; gap: 10px; text-align: center; }
.jg-lado { flex: 1; }
.jg-heroi, .jg-monstro { font-size: 4rem; line-height: 1.1; }
.jg-hit { animation: jg-tremer .35s; }
.jg-nome { font-weight: 700; margin-top: 2px; }
.jg-coracoes { font-size: 1.3rem; min-height: 28px; }
.jg-barra { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px auto 0; max-width: 140px; }
.jg-barra > div { height: 100%; background: var(--bad); transition: width .3s; }
.jg-vs { font-weight: 800; color: var(--muted); }
.jg-tempo { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.jg-tempo > div { height: 100%; background: var(--warn); width: 100%; }

/* quem sou eu, desafio, stop */
.jg-pistas { list-style: none; padding: 0; margin: 12px 0 0; }
.jg-pistas li { padding: 8px 10px; border-left: 4px solid var(--accent); background: #eef3ff; margin-bottom: 6px; border-radius: 4px; }
.jg-pistas li.nova { animation: jg-tremer .4s; }
.jg-tracos { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.jg-tracos span { min-width: 30px; height: 40px; border-bottom: 3px solid var(--ink); text-align: center; font-size: 1.4rem; font-weight: 700; }
.jg-form { display: flex; gap: 8px; }
.jg-form input, .jg-linha input {
    flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; font-size: 1.05rem; background: #fff; color: var(--ink);
}
.jg-form input:focus, .jg-linha input:focus { outline: none; border-color: var(--accent); }
.jg-aviso { color: var(--bad); min-height: 1.2em; margin: 6px 0 0; font-size: .9rem; }
.jg-relogio { text-align: center; }
.jg-segundos { font-size: 2.6rem; font-weight: 800; }
.jg-combo { margin-left: 8px; font-weight: 700; color: var(--warn); }
.jg-revisao ul { text-align: left; padding-left: 20px; }
.jg-letra { font-size: 4rem; font-weight: 800; color: var(--accent); text-align: center; min-width: 90px; }
.jg-topo { display: flex; align-items: center; justify-content: space-around; gap: 12px; }
.jg-linha { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.jg-linha label { flex: 0 0 38%; font-weight: 600; font-size: .95rem; }
.jg-linha input.ok { border-color: var(--ok); background: #e9f8ef; }
.jg-linha input.no { border-color: var(--bad); background: #fdecee; }
.jg-linha .res { flex: 0 0 auto; font-size: .8rem; color: var(--muted); }
.jg-stop { display: block; width: 100%; margin-top: 12px; background: var(--bad); color: #fff; border: 0; border-radius: 10px; padding: 14px; font-size: 1.3rem; font-weight: 800; cursor: pointer; }

/* palavra cruzada */
.jg-cruz { display: grid; gap: 2px; margin: 0 auto 12px; max-width: 460px; }
.jg-cruz .c { position: relative; aspect-ratio: 1; }
.jg-cruz .c.vazio { visibility: hidden; }
.jg-cruz .c input {
    width: 100%; height: 100%; border: 1px solid var(--ink); background: #fff; text-align: center; font-size: 1rem;
    font-weight: 700; text-transform: uppercase; padding: 0; border-radius: 3px; color: var(--ink);
}
.jg-cruz .c input:focus { outline: 2px solid var(--accent); background: #eef3ff; }
.jg-cruz .c input.certo { background: #e9f8ef; color: var(--ok); }
.jg-cruz .c input.errado { background: #fdecee; color: var(--bad); }
.jg-cruz .c .n { position: absolute; top: 1px; left: 2px; font-size: .55rem; color: var(--muted); pointer-events: none; }
.jg-dicas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: .92rem; }
@media (max-width: 559px) { .jg-dicas { grid-template-columns: 1fr; } }
.jg-dicas h4 { font-size: 1rem; margin: 6px 0; }
.jg-dicas p { margin: 0 0 4px; }
.jg-dicas p.feita { color: var(--ok); text-decoration: line-through; }

/* verdadeiro ou falso, quiz */
.jg-afirma { text-align: center; font-size: 1.4rem; margin: 12px 0 16px; }
.jg-escolhas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jg-progresso { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.jg-progresso > div { height: 100%; background: var(--accent); width: 0; transition: width .3s; }
