/* BitGame · TV mockup animado em código, com 4 temas por classe */
.jogo-secao {
  --jogo-p1: hsl(262 60% 62%);
  --jogo-p2: hsl(200 60% 55%);
  --jogo-p3: hsl(345 60% 60%);
  --jogo-p4: hsl(150 45% 48%);
  --jogo-pele: hsl(28 45% 72%);
  --jogo-visita: hsl(220 15% 62%);
}
.jogo-dupla { align-items: start; }
.jogo-dupla .lista-check { margin-top: 28px; }
.jogo-dupla .lista-check strong { color: var(--texto); font-weight: 600; }
.jogo-3d { width: clamp(120px, 14vw, 180px); height: auto; margin-top: 34px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
@media (max-width: 900px) { .jogo-3d { display: none; } }

.jogo-palco { container-type: inline-size; }
.jogo-temas { margin: 0 0 16px; justify-content: flex-start; }
.jogo-temas .aba { min-height: 44px; }
.jogo-nota { text-align: center; }

/* temas: só cores locais sóbrias; o resto é geometria compartilhada */
.jogo-tema-casa { --j-ceu: hsl(222 40% 15%); --j-parede: hsl(222 28% 21%); --j-chao: hsl(28 32% 30%); --j-chao-2: hsl(28 30% 26%); --j-porta: hsl(20 45% 40%); --j-caixa: hsl(222 18% 42%); --j-acento: hsl(262 70% 72%); --j-detalhe: hsl(40 40% 60%); }
.jogo-tema-doces { --j-ceu: hsl(330 32% 18%); --j-parede: hsl(330 28% 26%); --j-chao: hsl(345 35% 42%); --j-chao-2: hsl(345 32% 36%); --j-porta: hsl(345 55% 58%); --j-caixa: hsl(190 32% 44%); --j-acento: hsl(345 85% 78%); --j-detalhe: hsl(50 70% 70% / .3); }
.jogo-tema-blocos { --j-ceu: hsl(200 45% 22%); --j-parede: hsl(200 36% 30%); --j-chao: hsl(100 30% 34%); --j-chao-2: hsl(100 30% 28%); --j-porta: hsl(10 60% 48%); --j-caixa: hsl(45 60% 50%); --j-acento: hsl(50 90% 68%); --j-detalhe: hsl(0 0% 100% / .3); }
.jogo-tema-arcade { --j-ceu: hsl(252 45% 9%); --j-parede: hsl(252 38% 15%); --j-chao: hsl(252 30% 20%); --j-chao-2: hsl(252 30% 16%); --j-porta: hsl(190 80% 48%); --j-caixa: hsl(300 60% 52%); --j-acento: hsl(170 90% 62%); --j-detalhe: hsl(190 90% 60% / .5); }

.jogo-tv {
  position: relative; padding: clamp(8px, 1.8cqw, 14px) clamp(8px, 1.8cqw, 14px) clamp(16px, 3.2cqw, 26px);
  border-radius: clamp(10px, 2cqw, 18px);
  background: linear-gradient(180deg, var(--superficie-2), var(--fundo-2));
  border: 1px solid var(--linha-forte); box-shadow: var(--sombra), inset 0 1px 0 rgba(255, 255, 255, .07);
  font-size: clamp(8px, 1.95cqw, 14px);
}
.jogo-tv::after { /* led da TV */
  content: ''; position: absolute; left: 50%; bottom: clamp(6px, 1.3cqw, 10px); width: 7px; height: 7px; margin-left: -3px; border-radius: 50%;
  background: var(--acento); box-shadow: 0 0 10px rgba(var(--acento-rgb), .9);
}
.jogo-cena {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(6px, 1cqw, 10px);
  background: var(--j-ceu); border: 1px solid rgba(0, 0, 0, .5); transition: background .5s;
}
.jogo-parede { position: absolute; inset: 0 0 28% 0; background: linear-gradient(180deg, var(--j-ceu), var(--j-parede)); transition: background .5s; }
.jogo-tema-arcade .jogo-parede { background-image: linear-gradient(180deg, var(--j-ceu), var(--j-parede)), repeating-linear-gradient(90deg, var(--j-detalhe) 0 1px, transparent 1px 12%); background-blend-mode: normal; }
.jogo-tema-blocos .jogo-parede { background-image: linear-gradient(180deg, var(--j-ceu) 40%, var(--j-parede)), repeating-linear-gradient(90deg, var(--j-detalhe) 0 1px, transparent 1px 10%), repeating-linear-gradient(0deg, var(--j-detalhe) 0 1px, transparent 1px 16%); }
.jogo-tema-doces .jogo-parede { background-image: radial-gradient(circle, var(--j-detalhe) 0 .3em, transparent .4em), linear-gradient(180deg, var(--j-ceu), var(--j-parede)); background-size: 4.5em 4.5em, 100% 100%; }
.jogo-tema-casa .jogo-parede::after { content: ''; position: absolute; left: 20%; top: 18%; width: 11%; height: 32%; border-radius: 4px 4px 0 0; background: hsl(222 40% 32%); box-shadow: 0 0 0 .3em var(--j-chao-2), 16em 0 0 0 hsl(222 40% 32%), 16em 0 0 .3em var(--j-chao-2); }
.jogo-chao {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: var(--j-chao); border-top: .3em solid var(--j-chao-2); transition: background .5s, border-color .5s;
}
.jogo-tema-casa .jogo-chao { background-image: repeating-linear-gradient(90deg, transparent 0 9%, var(--j-chao-2) 9% 9.6%); }
.jogo-tema-blocos .jogo-chao { background-image: repeating-linear-gradient(90deg, transparent 0 8%, var(--j-chao-2) 8% 8.8%), repeating-linear-gradient(0deg, transparent 0 40%, var(--j-chao-2) 40% 46%); }
.jogo-tema-arcade .jogo-chao { background-image: repeating-linear-gradient(90deg, var(--j-detalhe) 0 1px, transparent 1px 10%), linear-gradient(180deg, var(--j-detalhe) 0 1px, transparent 1px); background-size: 100% 100%, 100% 33%; }
.jogo-tema-doces .jogo-chao { background-image: repeating-linear-gradient(45deg, transparent 0 6%, var(--j-chao-2) 6% 7%); }

.jogo-porta {
  position: absolute; left: 6%; bottom: 28%; width: 9%; height: 46%;
  background: var(--j-porta); border-radius: 1em 1em 0 0; box-shadow: inset 0 0 0 .3em rgba(0, 0, 0, .25), 0 0 0 .35em var(--j-parede);
  transition: background .5s;
}
.jogo-porta::after { content: ''; position: absolute; right: 18%; top: 52%; width: .5em; height: .5em; border-radius: 50%; background: var(--j-detalhe); }
.jogo-porta-tag, .jogo-caixa-tag { position: absolute; left: 50%; transform: translateX(-50%); top: -2em; font-size: .85em; color: var(--texto-3); white-space: nowrap; letter-spacing: .06em; text-transform: uppercase; }
.jogo-caixa {
  position: absolute; right: 7%; bottom: 25%; width: 15%; height: 15%;
  background: var(--j-caixa); border-radius: .5em .5em .2em .2em; box-shadow: inset 0 -.6em 0 rgba(0, 0, 0, .22), inset 0 .25em 0 rgba(255, 255, 255, .18);
  transition: background .5s;
}
.jogo-caixa .jogo-caixa-tag { top: auto; bottom: -1.9em; }
.jogo-caixa::before { content: ''; position: absolute; right: 12%; top: -34%; width: 32%; height: 42%; border-radius: .25em; background: var(--fundo-2); box-shadow: inset 0 0 0 .15em var(--j-acento); }

/* avatares (formas simples, pixel-art de longe) */
.jogo-avatares, .jogo-visitas { position: absolute; inset: 0; pointer-events: none; }
.jogo-av, .jogo-visita { position: absolute; bottom: 14%; left: var(--x); width: 3.2em; display: flex; flex-direction: column; align-items: center; transition: transform 1.4s var(--ease); will-change: transform; }
.jogo-av-cabeca, .jogo-visita i:first-child { display: block; width: 1.9em; height: 1.9em; border-radius: .5em; background: var(--jogo-pele); box-shadow: inset -.45em 0 0 rgba(0, 0, 0, .12); }
.jogo-av-cabeca::after { content: ''; position: absolute; left: 50%; top: -.35em; width: 2.3em; height: .9em; margin-left: -1.15em; border-radius: .6em .6em .2em .2em; background: color-mix(in srgb, var(--cor) 55%, var(--fundo)); }
.jogo-av-cabeca { position: relative; }
.jogo-av-corpo, .jogo-visita i:last-child { display: block; width: 2.6em; height: 2.9em; margin-top: .15em; border-radius: .6em .6em .35em .35em; background: var(--cor); box-shadow: inset -.6em 0 0 rgba(0, 0, 0, .14), inset 0 -.9em 0 rgba(0, 0, 0, .25); }
.jogo-av-nome { margin-top: .4em; font-size: .9em; font-weight: 600; color: var(--texto); background: rgba(0, 0, 0, .35); padding: .05em .6em; border-radius: 999px; line-height: 1.4; }
.jogo-av.andando .jogo-av-cabeca, .jogo-av.andando .jogo-av-corpo { animation: jogo-passo .4s ease-in-out infinite alternate; }
.jogo-av.andando .jogo-av-nome { opacity: 0; transition: opacity .3s; }
@keyframes jogo-passo { from { transform: translateY(0); } to { transform: translateY(-.25em); } }

.jogo-visita { width: 2.4em; opacity: 0; transition: transform 2.4s linear, opacity .5s; }
.jogo-visita.visivel { opacity: .85; }
.jogo-visita i:first-child { width: 1.4em; height: 1.4em; background: hsl(28 35% 66%); border-radius: .4em; }
.jogo-visita i:last-child { width: 1.9em; height: 2.2em; background: var(--jogo-visita); }
.jogo-visita.andando i { animation: jogo-passo .35s ease-in-out infinite alternate; }

/* ganho no caixa */
.jogo-ganho { position: absolute; right: 9%; bottom: 44%; opacity: 0; pointer-events: none; }
.jogo-ganho b { display: block; font-family: var(--font-display); font-size: 1.9em; font-weight: 600; letter-spacing: -.02em; color: var(--j-acento); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.jogo-ganho i { position: absolute; left: 50%; top: 50%; width: .45em; height: .45em; border-radius: 50%; background: var(--j-acento); opacity: 0; }
.jogo-ganho.ativo { animation: jogo-sobe 1.6s var(--ease) both; }
.jogo-ganho.ativo i { animation: jogo-faisca .9s var(--ease) both; }
.jogo-ganho i:nth-child(2) { --fx: -3em; --fy: -2.5em; } .jogo-ganho i:nth-child(3) { --fx: 3em; --fy: -2.2em; animation-delay: .05s; }
.jogo-ganho i:nth-child(4) { --fx: -2em; --fy: 1.6em; animation-delay: .1s; } .jogo-ganho i:nth-child(5) { --fx: 2.4em; --fy: 1.8em; animation-delay: .03s; }
.jogo-ganho i:nth-child(6) { --fx: 0; --fy: -3.4em; animation-delay: .08s; } .jogo-ganho i:nth-child(7) { --fx: 3.8em; --fy: 0; animation-delay: .12s; }
@keyframes jogo-sobe { 0% { opacity: 0; transform: translateY(1.2em) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.05); } 70% { opacity: 1; transform: translateY(-1.2em) scale(1); } 100% { opacity: 0; transform: translateY(-2.6em) scale(1); } }
@keyframes jogo-faisca { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.3); } }

/* placar lateral */
.jogo-placar { position: absolute; right: 2.5%; top: 5%; width: 31%; padding: .8em .9em; border-radius: .7em; background: rgba(11, 18, 32, .72); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.jogo-placar h4 { font: 600 .78em/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); margin: 0 0 .7em; }
.jogo-placar ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; }
.jogo-placar li { display: flex; align-items: center; gap: .5em; font-size: .95em; color: var(--texto-2); will-change: transform; }
.jogo-placar li .tnum { margin-left: auto; color: var(--texto); }
.jogo-placar li:first-child .jogo-pl-nome { color: var(--texto); font-weight: 600; }
.jogo-pl-cor { flex: none; width: .8em; height: .8em; border-radius: 3px; background: var(--cor); }
.jogo-pl-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.jogo-missao, .jogo-visitas-hoje { position: absolute; top: 5%; display: inline-flex; align-items: center; gap: .5em; padding: .45em .8em; border-radius: 999px; font-size: .9em; background: rgba(11, 18, 32, .72); border: 1px solid rgba(255, 255, 255, .12); color: var(--texto-2); white-space: nowrap; max-width: 60%; overflow: hidden; }
.jogo-missao { left: 2.5%; }
.jogo-missao svg { flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: var(--j-acento); stroke-width: 2; }
.jogo-missao b { color: var(--texto); }
.jogo-missao span { overflow: hidden; text-overflow: ellipsis; }
.jogo-visitas-hoje { left: 2.5%; top: auto; bottom: 5%; gap: .6em; }
.jogo-visitas-hoje b { color: var(--texto); font-size: 1.15em; }

/* vitrine com a tela real */
.jogo-vitrine-wrap { margin-top: clamp(48px, 6vw, 80px); }
.jogo-vitrine { background: var(--fundo-2); }
.jogo-vitrine img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.jogo-vitrine-vazia { min-height: 220px; display: grid; place-items: center; color: var(--texto-3); background: radial-gradient(ellipse at 50% 60%, rgba(var(--marca-rgb), .18), transparent 60%), var(--fundo-2); }
.jogo-vitrine-vazia span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linha-forte); font-size: 14px; }

@container (max-width: 430px) {
  .jogo-placar { width: 38%; }
  .jogo-missao { max-width: 55%; }
  .jogo-porta-tag, .jogo-caixa-tag, .jogo-missao-pref { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .jogo-av, .jogo-visita { transition: none; }
  .jogo-av.andando .jogo-av-cabeca, .jogo-av.andando .jogo-av-corpo, .jogo-visita.andando i, .jogo-ganho.ativo, .jogo-ganho.ativo i { animation: none; }
  .jogo-ganho.ativo { opacity: 1; }
}
