/* Jogo de corrida (jogosparajogar.com.br): caixa do jogo (canvas + botões + fim de partida). Sem dependência externa. */
.jogo-sec { padding: 32px 0 8px; }
.jogo-sec h2 { margin: 0 0 6px; text-align: center; }
.jogo-sec .jogo-lead { max-width: 640px; margin: 0 auto 16px; text-align: center; color: var(--muted, #6b5643); }
.jogo-caixa { position: relative; width: 100%; max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #24452b; box-shadow: 0 14px 34px rgba(42, 26, 14, .18); border: 3px solid #fff; }
@media (max-width: 640px) { .jogo-caixa { aspect-ratio: 3 / 4; max-height: 78vh; border-radius: 16px; } }
.jogo-caixa canvas { display: block; width: 100%; height: 100%; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; cursor: pointer; outline: none; }
.jogo-caixa canvas:focus-visible { box-shadow: inset 0 0 0 4px #c4500b; }
.jogo-botoes { position: absolute; top: 8px; right: 8px; display: flex; gap: 8px; z-index: 2; }
.jogo-botoes button { width: 44px; height: 44px; border-radius: 999px; border: 2px solid rgba(255,255,255,.9); background: rgba(42, 26, 14, .55); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; touch-action: manipulation; }
.jogo-botoes button:hover, .jogo-botoes button:focus-visible { background: rgba(42, 26, 14, .82); outline: none; }
.jogo-botoes svg { width: 22px; height: 22px; display: block; }
.jogo-ajuda { max-width: 980px; margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 15px; color: var(--muted, #6b5643); text-align: center; }
.jogo-ajuda b { color: var(--text, #2a1a0e); }
.so-leitor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jogo-sec noscript p { text-align: center; margin-top: 12px; }

/* fim de partida */
.corrida-fim { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: center; padding: 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: rgba(30, 18, 8, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.corrida-fim[hidden] { display: none; }
.corrida-fim-in { width: 100%; max-width: 520px; margin: auto 0; display: flex; flex-direction: column; gap: 10px; }
.corrida-placar { background: var(--bg, #fdf6ec); border-radius: 16px; padding: 12px 14px; text-align: center; color: var(--text, #2a1a0e); }
.corrida-placar .t { font-family: "Fredoka", Georgia, serif; font-weight: 700; font-size: 24px; line-height: 1.1; margin: 0; color: #c4500b; }
.corrida-placar .t.rec { color: #2f6b3a; }
.corrida-placar .r { margin: 4px 0 0; font-size: 15px; }
.corrida-placar .r b { font-size: 18px; }
.corrida-placar .m { margin: 2px 0 10px; font-size: 13px; color: var(--muted, #6b5643); }
.corrida-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: #2f6b3a; color: #fff; font: 600 16px/1 "Fredoka", system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.corrida-btn:hover, .corrida-btn:focus-visible { background: #24552d; outline: 3px solid rgba(47,107,58,.35); outline-offset: 2px; }
.corrida-gw { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; background: #fff; border: 2px solid #c4500b; border-radius: 16px; padding: 12px; color: var(--text, #2a1a0e); }
.corrida-gw img { width: 96px; height: auto; border-radius: 12px; display: block; }
.corrida-gw h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.15; }
.corrida-gw p { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.corrida-gw .corrida-gw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #c4500b; color: #fff; text-decoration: none; font: 600 16px/1.1 "Fredoka", system-ui, sans-serif; text-align: center; }
.corrida-gw .corrida-gw-btn:hover, .corrida-gw .corrida-gw-btn:focus-visible { background: #a54208; outline: 3px solid rgba(196,80,11,.3); outline-offset: 2px; }
.corrida-gw .corrida-gw-18 { margin: 8px 0 0; font-size: 12px; color: var(--muted, #6b5643); }
@media (max-width: 420px) {
  .corrida-fim { padding: 10px; }
  .corrida-gw { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .corrida-gw img { width: 64px; }
  .corrida-gw h3 { font-size: 17px; }
  .corrida-gw p { font-size: 13px; margin-bottom: 8px; }
  .corrida-gw .corrida-gw-btn { width: 100%; font-size: 15px; padding: 0 12px; }
  .corrida-placar { padding: 10px 12px; }
  .corrida-placar .t { font-size: 21px; }
}

/* 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; }
}
