/* Jogo de combinar 3 (jogosparajogar.com.br): estilos do bloco do jogo (o resto vem do /style.css do site) */
.jogo-sec { padding: 28px 0 40px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.jogo-sec h2 { margin: 0 0 6px; text-align: center; }
.jogo-intro { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 16px; }
.cb { max-width: 500px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 12px; box-shadow: 0 14px 34px rgba(176, 24, 90, .14); }
.cb-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.cb-box { background: var(--bg2); border-radius: 12px; padding: 6px 4px; text-align: center; line-height: 1.15; min-width: 0; }
.cb-box small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cb-box b { font-family: "Baloo 2", system-ui, sans-serif; font-size: 22px; color: var(--text); }
.cb-box.restam { background: var(--acc); }
.cb-box.restam small, .cb-box.restam b { color: #fff; }
.cb-tela { display: flex; justify-content: center; width: 100%; }
.cb-tela[hidden] { display: none; }
#cb-canvas { display: block; border-radius: 16px; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; max-width: 100%; }
#cb-canvas:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.cb-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.cb-botoes button, .cb-denovo { font: 600 15px/1 Inter, system-ui, sans-serif; color: var(--text); background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; padding: 11px 16px; cursor: pointer; min-height: 44px; }
.cb-botoes button:hover { border-color: var(--acc2); }
.cb-botoes button:focus-visible, .cb-denovo:focus-visible, .cb-gw-btn:focus-visible { outline: 3px solid var(--acc2); outline-offset: 2px; }
.cb-aviso { text-align: center; font-size: 14px; color: var(--muted); min-height: 1.4em; margin: 8px 0 0; }
/* fim de partida */
.cb-fim { text-align: center; }
.cb-fim[hidden] { display: none; }
.cb-placar { background: linear-gradient(135deg, #3b0d3a, #2a1650); color: #fff; border-radius: 16px; padding: 18px 14px 16px; }
.cb-placar h3 { color: #fff; margin: 0 0 4px; font-size: 22px; }
.cb-placar .cb-num { font: 800 46px/1.05 "Baloo 2", system-ui, sans-serif; color: #facc15; margin: 0; }
.cb-placar p { margin: 4px 0 0; font-size: 15px; color: #ead7f0; }
.cb-novo { display: inline-block; margin-top: 8px; background: #facc15; color: #3b0d3a; font-weight: 700; font-size: 13px; border-radius: 999px; padding: 4px 12px; }
.cb-novo[hidden] { display: none; }
.cb-denovo { margin: 14px auto 0; display: inline-block; background: var(--card); border-color: var(--acc); color: var(--acc); }
.cb-gw { margin-top: 16px; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-align: left; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.cb-gw img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; }
.cb-gw h3 { margin: 0 0 6px; font-size: 20px; }
.cb-gw p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--text); }
.cb-gw-btn { display: inline-block; background: var(--acc); color: #fff; font: 700 16px/1 Inter, system-ui, sans-serif; text-decoration: none; border-radius: 999px; padding: 14px 20px; min-height: 44px; }
.cb-gw-btn:hover { background: var(--acc2); color: #fff; }
.cb-gw .cb-18 { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.cb-como { max-width: 540px; margin: 18px auto 0; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px; }
.cb-como h3 { margin: 0 0 8px; }
.cb-como ol { margin: 0; }
.cb-como p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 480px) {
  .cb { padding: 8px; border-radius: 18px; }
  .cb-box b { font-size: 19px; }
  .cb-box small { font-size: 10px; letter-spacing: .03em; }
  .cb-botoes button { font-size: 14px; padding: 10px 12px; }
  .cb-gw { grid-template-columns: 1fr; text-align: center; }
  .cb-gw img { margin: 0 auto; width: 88px; height: 88px; }
  .cb-gw-btn { display: block; }
}
@media (max-width: 600px) {
  .jogo-sec { padding-top: 16px; }
  .jogo-intro { display: none; }
}
#jogar, .cb-fim { scroll-margin-top: 84px; }
/* celular: a ilustração do topo sai para o jogo aparecer mais cedo */
@media (max-width: 600px) {
  .hero { padding: 26px 0 18px; }
  .hero .hero-ilus { display: none; }
}

/* cartão "3 partidas grátis" do fim de partida */
.gw3 { position: relative; width: 100%; max-width: 380px; margin: 10px auto 0; padding: 26px 16px 14px; border-radius: 16px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #fff3c4 0%, #ffd34d 38%, #f59e0b 100%); color: #3b2300;
  box-shadow: 0 10px 30px rgba(245,158,11,.45), inset 0 0 0 2px rgba(255,255,255,.55); animation: gw3-entra .45s ease-out both; }
.gw3-faixa { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 14px; border-radius: 999px;
  background: #b91c1c; color: #fff; font: 800 12px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 3px 0 #7f1d1d; }
.gw3-tit { margin: 0 0 10px; font: 800 22px/1.15 Inter, system-ui, sans-serif; color: #3b2300; }
.gw3-tit strong { display: block; font-size: 30px; color: #7c2d12; text-shadow: 0 2px 0 rgba(255,255,255,.6); }
.gw3-tickets { display: flex; justify-content: center; gap: 8px; margin: 0 0 12px; }
.gw3-tk { position: relative; width: 74px; height: 40px; border-radius: 8px; background: #fff; border: 2px dashed #f59e0b; display: grid; place-items: center;
  transform: rotate(-4deg); box-shadow: 0 3px 0 rgba(124,45,18,.25); }
.gw3-tk:nth-child(2) { transform: rotate(0deg) translateY(-3px); } .gw3-tk:nth-child(3) { transform: rotate(4deg); }
.gw3-tk::before, .gw3-tk::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #f8b62a; }
.gw3-tk::before { left: -6px; } .gw3-tk::after { right: -6px; }
.gw3-tk b { font: 800 12px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; color: #b45309; }
.gw3-jogo { display: flex; gap: 10px; align-items: center; text-align: left; background: rgba(255,255,255,.55); border-radius: 12px; padding: 8px 10px; margin: 0 0 12px; }
.gw3-jogo img { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; }
.gw3-jogo p { margin: 0; font: 500 13.5px/1.4 Inter, system-ui, sans-serif; color: #422006; }
.gw3-btn { display: block; padding: 15px 14px; border-radius: 12px; text-decoration: none; font: 800 17px/1.1 Inter, system-ui, sans-serif; color: #fff;
  background: linear-gradient(180deg, #16a34a, #15803d); box-shadow: 0 5px 0 #14532d; animation: gw3-pulsa 1.6s ease-in-out infinite; }
.gw3-btn:hover, .gw3-btn:focus { color: #fff; background: linear-gradient(180deg, #22c55e, #16a34a); }
.gw3-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gw3-18 { margin: 10px 0 0; font: 500 11.5px/1.35 Inter, system-ui, sans-serif; color: #5a3a06; }
@keyframes gw3-pulsa { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes gw3-entra { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gw3, .gw3-btn { animation: none; } }
@media (max-width: 380px) { .gw3-tit { font-size: 19px; } .gw3-tit strong { font-size: 26px; } .gw3-tk { width: 64px; } }
/* cartão compacto no celular: cabe junto com a pontuação dentro do jogo */
*:has(> .gw3) { overflow-y: auto; }
@media (max-width: 600px) {
  .gw3 { padding: 20px 12px 10px; margin-top: 16px; }
  .gw3-tit { font-size: 16px; margin-bottom: 8px; }
  .gw3-tit strong { font-size: 25px; }
  .gw3-tickets { gap: 6px; margin-bottom: 10px; }
  .gw3-tk { width: 58px; height: 28px; }
  .gw3-tk b { font-size: 10px; }
  .gw3-jogo { display: none; }
  .gw3-btn { padding: 13px 10px; font-size: 16px; }
  .gw3-18 { margin-top: 7px; font-size: 10.5px; }
}
