/* Jogo "Corre, Sanches!" (/jogo). Usa as variáveis do site.css. */
.pg-jogo { background: #0d0f0d; }
.jg-topo { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; max-width: 520px; margin: 0 auto; }
.jg-voltar { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--texto-2); font: 700 17px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.jg-voltar .ph { font-size: 20px; }
.jg-app { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--verde); color: var(--sobre-verde); font: 700 13px var(--corpo); padding: 8px 14px; border-radius: 999px; }
.jg-palco { position: relative; width: min(100%, 520px); height: calc(100dvh - 56px); min-height: 480px; max-height: 900px; margin: 0 auto; background: #0b0d10; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
@media (min-width: 560px) { .jg-palco { border-radius: 20px; box-shadow: 0 0 0 1px var(--linha), 0 20px 60px rgba(8, 253, 2, .12); } }
#jgCanvas { width: 100%; height: 100%; display: block; touch-action: none; }
.jg-bt-ic { position: absolute; bottom: 14px; z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(20, 20, 20, .7); color: #fff; font-size: 22px; display: grid; place-items: center; cursor: pointer; }
.jg-som { left: 12px; }
.jg-pausar { right: 12px; }
.jg-bt-ic[aria-pressed="true"] { color: var(--verde); border-color: var(--verde); }
.jg-tela { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 20px 70px; text-align: center; background: rgba(10, 12, 10, .8); overflow-y: auto; }
.jg-tela::before, .jg-tela::after { content: ""; flex: 1 0 0; }
.jg-tela h1 { font: 800 clamp(52px, 17vw, 84px)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.jg-tela h1 span { color: var(--verde); text-shadow: 0 0 24px rgba(8, 253, 2, .45); }
.jg-tela h2 { font: 800 40px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.jg-tela h3 { font: 800 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--verde); display: flex; gap: 6px; align-items: center; justify-content: center; margin-bottom: 8px; }
.jg-lead { color: var(--texto-2); max-width: 340px; font-size: 16px; line-height: 1.4; }
.jg-como { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 340px; text-align: left; }
.jg-como li { display: flex; gap: 12px; align-items: center; background: rgba(43, 43, 43, .85); border: 1px solid var(--linha); border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.35; color: var(--texto-2); }
.jg-como li b { color: var(--texto); }
.jg-como .ph { font-size: 24px; color: var(--verde); flex: none; }
.jg-recorde { color: var(--texto-2); font-size: 15px; }
.jg-recorde b { color: var(--verde); }
.jg-placar { display: flex; gap: 14px; }
.jg-placar > div { background: var(--cartao); border: 1px solid var(--linha); border-radius: 16px; padding: 10px 22px; display: grid; }
.jg-placar strong { font: 800 42px/1 var(--display); color: var(--verde); }
.jg-placar span { font-size: 13px; color: var(--texto-2); text-transform: uppercase; letter-spacing: .08em; }
.jg-aprendeu, .jg-rank-fim { width: 100%; max-width: 360px; text-align: left; background: rgba(43, 43, 43, .85); border: 1px solid var(--linha); border-radius: 14px; padding: 12px 14px; }
.jg-aprendeu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 150px; overflow-y: auto; }
.jg-aprendeu li { font-size: 13.5px; line-height: 1.35; color: var(--texto-2); padding-left: 18px; position: relative; }
.jg-aprendeu li::before { content: "\2713"; position: absolute; left: 0; color: var(--verde); font-weight: 700; }
.jg-rank-fim ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jg-rank-fim li { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--texto-2); }
.jg-rank-fim li.eu, .jg-rk.eu { color: var(--verde); }
.jg-rank-fim li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-rank-fim li b { color: var(--texto); }
.jg-aviso-login { font-size: 14px; color: var(--texto-2); }
.jg-aviso-login a { color: var(--verde); }
.jg-fim-bts { display: grid; gap: 10px; justify-items: center; width: 100%; }
.jg-fim-bts .btn { min-width: 230px; justify-content: center; }
.jg-abaixo { max-width: 520px; padding: 36px 16px 60px; display: grid; gap: 14px; }
.jg-abaixo .titulo { font-size: 32px; }
.jg-rk-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jg-rk { display: flex; align-items: center; gap: 10px; background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px; padding: 8px 12px; }
.jg-rk.p1 { border-color: var(--verde); }
.jg-pos { font: 800 20px var(--display); width: 32px; color: var(--texto-2); }
.jg-rk.p1 .jg-pos { color: var(--verde); }
.jg-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.jg-av-ini { display: grid; place-items: center; background: #3a3a3a; font: 700 13px var(--corpo); }
.jg-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.jg-pts { font-size: 13px; color: var(--texto-2); white-space: nowrap; }
.jg-pts b { color: var(--verde); font-size: 15px; }
.jg-vazio, .jg-nota { color: var(--texto-2); font-size: 14px; }
.jg-nota a { color: var(--verde); }
.jg-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* app ja instalado: sem convite para instalar */
html.app-inst .jg-app, html.app-inst .jg-instalar, html.pwa a[href="/app"] { display: none !important; }
