/* Jogos clássicos (a Dadá, a pecinha de damas): velha, memória, adivinhe a palavra e damas. Tudo começa com cl-. */

/* ---------- menu e desenhos ---------- */
.cl-dada { display: block; width: 100%; overflow: visible; }
.cl-apresenta { width: 128px; }
.cl-brincadeira-emoji { background: #fee2e2; }
.cl-dada-braco { transform-origin: 146px 92px; animation: cl-acena 1s ease-in-out infinite alternate; }
.cl-dada-x { animation: cl-boia 2.6s ease-in-out infinite; }
.cl-dada-o { animation: cl-boia 2.6s 1.3s ease-in-out infinite; }
.abertura-arte .cl-buque { width: 150px; height: auto; margin: 0 -20px; }
.cl-abertura-cartas { display: flex; justify-content: center; gap: 6px; }
.cl-abertura-cartas span {
  width: 34px; height: 44px; border-radius: 8px; display: grid; place-items: center; font-size: 22px;
  background: #fff; border: 3px solid #c4b5fd; box-shadow: 0 3px 0 rgba(42, 26, 94, .2);
}
.cl-abertura-cartas span:nth-child(2) { background: linear-gradient(135deg, #8b5cf6, #6d4ce0); border-color: #fff; transform: translateY(-6px) rotate(4deg); }

/* ---------- escolha do jeito de jogar (na abertura) ---------- */
.cl-escolha { display: flex; flex-direction: column; gap: 8px; }
.cl-escolha-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.cl-escolha-miuda { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.cl-opcao {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 8px;
  border-radius: 18px; background: rgba(255, 255, 255, .3); color: var(--branco); border: 3px solid transparent;
  font-weight: 800; font-size: 16px; line-height: 1.15; text-align: center;
}
.cl-opcao:active { transform: scale(.97); }
.cl-opcao small { font-size: 13px; font-weight: 700; opacity: .85; }
.cl-opcao-emoji { font-size: 28px; line-height: 1.1; }
.cl-opcao.escolhida { background: var(--branco); color: var(--roxo-escuro); border-color: #fde047; box-shadow: 0 4px 0 rgba(42, 26, 94, .25); }
.cl-escolha-miuda .cl-opcao { flex-direction: row; gap: 6px; padding: 8px 6px; font-size: 15px; }
.cl-escolha-miuda .cl-opcao-emoji { font-size: 22px; }

/* ---------- comuns ---------- */
.cl-vez { padding: 8px 14px; font-size: 19px; }
.cl-vez-quem { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.cl-mini { display: inline-block; width: 30px; height: 30px; vertical-align: middle; }
.cl-mini svg { width: 100%; height: 100%; display: block; }
.cl-rodape { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cl-rodape:empty { display: none; }
.cl-barra { flex: none; }
.cl-legenda { width: 100%; text-align: center; color: var(--branco); font-size: 13px; font-weight: 700; opacity: .85; }
.cl-fila { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; color: var(--branco); font-weight: 800; font-size: 15px; }
.contagem-item.cl-agora { background: var(--cor); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }

/* O traço que se risca sozinho (X, O e a linha da vitória). */
.cl-traco { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cl-risca .3s ease-out forwards; }
.cl-traco-2 { animation-delay: .17s; }

/* ---------- jogo da velha ---------- */
.cl-duelo { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cl-lado {
  display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .25); border: 3px solid transparent; transition: transform .2s, background .2s;
}
.cl-lado-vez { background: var(--branco); border-color: var(--cor); transform: scale(1.06); }
.cl-lado-marca { width: 34px; height: 34px; border-radius: 50%; background: var(--branco); padding: 2px; flex: none; }
.cl-lado-marca svg { width: 100%; height: 100%; display: block; }
.cl-contra { color: var(--branco); font-weight: 800; }
.cl-velha {
  position: relative; width: max(240px, min(100%, calc(100vh - 300px), 440px)); aspect-ratio: 1; margin: 0 auto; flex: none;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3%; padding: 3%;
  background: var(--roxo-escuro); border-radius: 26px; box-shadow: var(--sombra); touch-action: manipulation;
}
.cl-casa {
  position: relative; display: grid; place-items: center; padding: 9%; border-radius: 16%;
  background: var(--branco); box-shadow: inset 0 -5px 0 rgba(42, 26, 94, .12); transition: background .2s;
}
.cl-casa > *, .cl-casa::after { grid-area: 1 / 1; }
.cl-casa svg.cl-marca { width: 100%; height: 100%; display: block; animation: cl-carimbo .25s cubic-bezier(.2, 1.6, .4, 1); }
.cl-casa:not(.cl-marcada):active { transform: scale(.94); }
.cl-pensando .cl-casa:not(.cl-marcada) { background: #f5f3ff; }
.cl-dica-ganha { box-shadow: inset 0 0 0 5px #facc15; animation: cl-brilha-casa .8s ease-in-out infinite alternate; }
.cl-dica-ganha::after { content: "✨"; font-size: clamp(22px, 7vw, 40px); }
.cl-dica-perigo { box-shadow: inset 0 0 0 5px #fb923c; }
.cl-dica-perigo::after { content: "🛡️"; font-size: clamp(20px, 6vw, 34px); opacity: .7; }
.cl-estrela { font-size: clamp(30px, 9vw, 54px); line-height: 1; animation: cl-gira 2.4s ease-in-out infinite; pointer-events: none; }
.cl-marcada .cl-estrela { opacity: .35; transform: scale(.6) translate(55%, -55%); animation: none; }
.cl-marcada .cl-estrela.cl-pega { animation: cl-pega .7s ease-out forwards; }
.cl-vence { background: #fef9c3; animation: cl-pulo .45s ease-in-out 2; }
.cl-velhou .cl-casa { opacity: .7; }
.cl-risco { position: absolute; inset: 3%; width: 94%; height: 94%; pointer-events: none; overflow: visible; }
.cl-risco .cl-traco { animation-duration: .5s; animation-delay: .1s; }
.cl-resumo { align-items: center; }

/* ---------- memória ---------- */
/* --tam: a largura da carta, para caber a mesa inteira no celular em pé (largura e altura). */
.cl-mesa {
  --vao: 8px; --prop: 1.25;
  --tam: max(40px, min(calc((min(100vw, 880px) - 32px - (var(--cols) - 1) * var(--vao)) / var(--cols)),
    calc((100vh - 230px - (var(--linhas) - 1) * var(--vao)) / var(--linhas) / var(--prop)), 150px));
  display: grid; grid-template-columns: repeat(var(--cols), var(--tam)); grid-auto-rows: calc(var(--tam) * var(--prop));
  gap: var(--vao); justify-content: center; touch-action: manipulation;
}
.cl-mesa-quadrada { --vao: 5px; --prop: 1; }
.cl-carta { padding: 0; width: 100%; height: 100%; perspective: 700px; }
.cl-carta-dentro {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.35, .5, 1);
}
.cl-virada .cl-carta-dentro { transform: rotateY(180deg); }
.cl-carta-verso, .cl-carta-frente {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: calc(var(--tam) * .14); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 4px 0 rgba(42, 26, 94, .25);
}
.cl-carta-verso {
  border: 3px solid #fff; font-size: calc(var(--tam) * .36);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .25) 0 22%, transparent 23%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .12) 0 6px, transparent 6px 12px),
    linear-gradient(135deg, #a78bfa, #6d4ce0);
}
.cl-carta-verso span { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.cl-carta:active:not(.cl-virada) .cl-carta-dentro { transform: scale(.95); }
.cl-carta-frente { transform: rotateY(180deg); background: var(--branco); border: 3px solid #ede9fe; padding: 2px; }
.cl-carta-emoji { font-size: calc(var(--tam) * .56); line-height: 1.1; }
.cl-carta-frente small { font-size: 13px; font-weight: 800; line-height: 1.1; text-align: center; }
.cl-dourada { background: radial-gradient(circle, #fef9c3, #fde047); border-color: #f59e0b; }
.cl-achada .cl-carta-frente { border: 4px solid var(--cor); background: #f0fdf4; animation: cl-pulo .4s .3s ease-in-out; }
.cl-achada .cl-carta-frente.cl-dourada { background: radial-gradient(circle, #fef9c3, #fde047); }

/* ---------- adivinhe a palavra ---------- */
.cl-figura { display: flex; justify-content: center; flex: none; }
.cl-buque { height: clamp(118px, 25vh, 230px); width: auto; max-width: 100%; overflow: visible; }
.cl-balao-corpo { transform-box: fill-box; transform-origin: 50% 100%; animation: cl-flutua 3s var(--atraso, 0s) ease-in-out infinite; }
.cl-puf { opacity: 0; transform-box: fill-box; transform-origin: center; }
.cl-estoura .cl-balao-corpo { transform-origin: center; animation: cl-estoura .32s ease-out forwards; }
.cl-estoura .cl-puf { animation: cl-puf .5s ease-out forwards; }
.cl-fio { transition: opacity .3s .1s; }
.cl-fio.cl-estoura { opacity: 0; }
.cl-boca-oh { display: none; }
.cl-oh .cl-boca-oh { display: inline; }
.cl-oh .cl-boca-feliz { display: none; }
.cl-festa .cl-balao:not(.cl-estoura) .cl-balao-corpo { animation: cl-danca .45s ease-in-out infinite alternate; }
.cl-bento { transform-box: fill-box; transform-origin: 50% 100%; }
.cl-festa .cl-bento { animation: cl-pulinho .4s ease-in-out 3; }

.cl-dica {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 18px;
  background: var(--branco); box-shadow: var(--sombra);
}
.cl-dica-emoji { font-size: 38px; line-height: 1; flex: none; }
.cl-dica-texto { display: flex; flex-direction: column; line-height: 1.2; }
.cl-dica-texto small { font-size: 14px; font-weight: 700; opacity: .7; }
.cl-dica-texto b { font-size: 18px; }
.cl-surge { animation: pula .4s cubic-bezier(.2, 1.6, .4, 1); }
.cl-dourada-faixa {
  align-self: center; padding: 6px 14px; border-radius: 999px; font-weight: 900;
  background: linear-gradient(90deg, #fde047, #f59e0b); box-shadow: 0 4px 0 #b45309; animation: cl-brilha-faixa 1s ease-in-out infinite alternate;
}

/* --n: o maior pedaço da palavra, para as casinhas caberem numa linha. */
.cl-palavra {
  --casa: min(42px, calc((min(100vw, 880px) - 40px) / var(--n, 8) - 4px));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px;
}
.cl-palavra-grupo { display: flex; gap: 4px; }
.cl-letra, .cl-sinal {
  width: var(--casa); height: calc(var(--casa) * 1.25); display: grid; place-items: center;
  color: var(--branco); font-size: calc(var(--casa) * .82); font-weight: 900; line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}
.cl-letra { border-bottom: 4px solid var(--branco); }
.cl-letra-vista { animation: pula .3s cubic-bezier(.2, 1.6, .4, 1); }
.cl-letra-faltou { color: #fde047; }

.cl-teclado { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; touch-action: manipulation; }
.cl-tecla {
  height: clamp(40px, 6.4vh, 58px); border-radius: 12px; background: var(--branco); color: var(--roxo-escuro);
  font-size: clamp(20px, 5.6vw, 28px); font-weight: 900; box-shadow: 0 4px 0 rgba(42, 26, 94, .25); transition: transform .06s;
}
.cl-tecla:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(42, 26, 94, .25); }
.cl-vogal { background: #fef3c7; }
.cl-tecla.cl-certa { background: #22c55e; color: #fff; opacity: 1; box-shadow: 0 4px 0 #15803d; }
.cl-tecla.cl-errada { background: rgba(255, 255, 255, .28); color: rgba(42, 26, 94, .45); box-shadow: none; text-decoration: line-through; opacity: 1; }
.cl-tecla-larga { background: #ede9fe; }

.cl-resultado {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; padding: 10px 14px;
  border-radius: 20px; background: var(--branco); box-shadow: var(--sombra);
}
.cl-resultado > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 150px; }
.cl-resultado b { font-size: 22px; }
.cl-resultado small { font-size: 15px; font-weight: 700; opacity: .75; }
.cl-resultado-emoji { font-size: 44px; line-height: 1; }
.cl-resultado .botao { margin-left: auto; }

/* um escreve, os outros adivinham */
.cl-aviso { margin: 0; padding: 10px 14px; border-radius: 16px; background: #fef3c7; font-size: 17px; font-weight: 800; text-align: center; }
.cl-visor {
  min-height: 60px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px;
  padding: 8px; border-radius: 18px; background: var(--branco); box-shadow: var(--sombra);
}
.cl-visor-letra { width: 28px; height: 40px; display: grid; place-items: center; font-size: 26px; font-weight: 900; border-bottom: 3px solid var(--roxo); }
.cl-visor-espaco { width: 16px; }
.cl-visor-vazio { opacity: .5; font-weight: 700; }
.cl-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cl-cat {
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .3); color: var(--branco);
  font-size: 15px; font-weight: 800; border: 2px solid transparent;
}
.cl-cat.escolhida { background: var(--branco); color: var(--roxo-escuro); border-color: #fde047; }
.cl-pronto { width: 100%; max-width: 420px; }

/* ---------- damas ---------- */
.cl-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-time {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 6px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .28); color: var(--branco); border: 3px solid transparent; font-weight: 700; min-width: 0;
}
.cl-time-vez { background: var(--branco); color: var(--tinta); border-color: #fde047; }
.cl-time small { width: 100%; font-size: 13px; opacity: .8; }
.cl-time-gente { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.cl-time .chip { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.cl-chip-espera { opacity: .55; font-size: 13px; }

.cl-damas {
  position: relative; width: max(256px, min(100%, calc(100vh - 290px), 560px)); aspect-ratio: 1; margin: 0 auto; flex: none;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  border: 8px solid #5b3415; border-radius: 12px; overflow: hidden;
  box-shadow: var(--sombra), inset 0 0 0 2px rgba(0, 0, 0, .3); touch-action: manipulation;
}
.cl-quadro { position: relative; }
.cl-quadro-claro { background: #f6e3c0; }
.cl-quadro-escuro { background: #8b5a2b; cursor: pointer; }
.cl-quadro-escuro.cl-ultimo { background: #a87842; }
.cl-quadro::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.cl-pode::after { inset: 4%; box-shadow: 0 0 0 3px #fde047, 0 0 10px 2px #fde047; animation: cl-pisca-anel 1s ease-in-out infinite alternate; }
.cl-pode-capturar::after { inset: 3%; box-shadow: 0 0 0 4px #fb923c, 0 0 12px 3px #f97316; animation: cl-pisca-anel .6s ease-in-out infinite alternate; }
.cl-quadro-escuro.cl-escolhida { background: #eab308; }
.cl-destino::after { inset: 33%; background: #4ade80; box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); animation: cl-pulsa-ponto .8s ease-in-out infinite alternate; }
.cl-destino-captura::after { inset: 24%; background: #f97316; box-shadow: 0 0 0 3px #fff; animation: cl-pulsa-ponto .5s ease-in-out infinite alternate; }
.cl-pisca { animation: cl-pisca-casa .4s ease-in-out 4; }

.cl-pecas { position: absolute; inset: 0; pointer-events: none; }
.cl-peca {
  position: absolute; width: 12.5%; height: 12.5%;
  transition: left .3s cubic-bezier(.4, 0, .3, 1.2), top .3s cubic-bezier(.4, 0, .3, 1.2), opacity .35s, transform .35s;
}
.cl-peca::before {
  content: ""; position: absolute; inset: 11%; border-radius: 50%;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.cl-peca-a::before, .cl-mini-peca.cl-peca-a { background: radial-gradient(circle at 50% 42%, #fffdf6 0 34%, #f3e2c0 35% 44%, #fff7e6 45% 66%, #e8cf9f 67%); border: 2px solid #a16207; }
.cl-peca-b::before, .cl-mini-peca.cl-peca-b { background: radial-gradient(circle at 50% 42%, #5a4030 0 34%, #2a1c13 35% 44%, #4a3326 45% 66%, #23170f 67%); border: 2px solid #120a05; }
.cl-peca-dama::after {
  content: ""; position: absolute; inset: 27%;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M3 26 L1 7 L11 15 L20 2 L29 15 L39 7 L37 26 Z' fill='%23facc15' stroke='%23a16207' stroke-width='3' stroke-linejoin='round'/%3E%3Crect x='4' y='26' width='32' height='5' rx='2' fill='%23f59e0b' stroke='%23a16207' stroke-width='2'/%3E%3C/svg%3E");
  animation: pula .35s cubic-bezier(.2, 1.6, .4, 1);
}
.cl-peca-erguida { z-index: 2; transform: translateY(-7%) scale(1.1); }
.cl-peca-erguida::before { box-shadow: 0 9px 6px rgba(0, 0, 0, .35), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.cl-comida { opacity: .35; transform: scale(.8); }
.cl-some { opacity: 0; transform: scale(.3); }
.cl-mini-peca { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; flex: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }

/* ---------- animações ---------- */
@keyframes cl-risca { to { stroke-dashoffset: 0; } }
@keyframes cl-carimbo { from { transform: scale(.5); } }
@keyframes cl-acena { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
@keyframes cl-boia { 50% { transform: translateY(-6px) rotate(8deg); } }
@keyframes cl-brilha-casa { to { background: #fef9c3; } }
@keyframes cl-gira { 50% { transform: rotate(15deg) scale(1.1); } }
@keyframes cl-pega { 40% { opacity: 1; transform: scale(1.8); } to { opacity: 0; transform: scale(2.4) translateY(-30%); } }
@keyframes cl-pulo { 50% { transform: scale(1.08); } }
@keyframes cl-flutua { 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes cl-estoura { 50% { transform: scale(1.35); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes cl-puf { 0% { opacity: 0; transform: scale(.5); } 30% { opacity: 1; } to { opacity: 0; transform: scale(1.35); } }
@keyframes cl-danca { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-8px) rotate(5deg); } }
@keyframes cl-pulinho { 50% { transform: translateY(-10px); } }
@keyframes cl-brilha-faixa { to { filter: brightness(1.12); transform: scale(1.04); } }
@keyframes cl-pisca-anel { from { opacity: .55; } to { opacity: 1; } }
@keyframes cl-pulsa-ponto { to { transform: scale(1.18); } }
@keyframes cl-pisca-casa { 50% { background: #f97316; } }

/* ==================== as mesas novas (mesas.js), as dicas e o campeonato ==================== */
.cl-quadro-escuro { padding: 0; }
.cl-nota-nivel { margin: 0; text-align: center; color: var(--branco); font-size: 15px; font-weight: 700; opacity: .9; }

/* O aviso que ensina, embaixo da mesa. */
.cl-aviso-mesa {
  min-height: 0; padding: 0; border-radius: 18px; text-align: center; font-size: 17px; font-weight: 800; line-height: 1.3;
  color: var(--tinta);
}
.cl-aviso-mesa:not(:empty) { padding: 10px 14px; background: var(--branco); box-shadow: var(--sombra); }
.cl-aviso-mesa.cl-aviso-dica:not(:empty) { background: #fef9c3; border-left: 8px solid #f59e0b; text-align: left; }
.cl-aviso-mesa.cl-aviso-perigo:not(:empty) { background: #ffedd5; border-left: 8px solid #f97316; text-align: left; }
.cl-aviso-mesa.cl-aviso-bom:not(:empty) { background: #dcfce7; border-left: 8px solid #22c55e; }
.cl-dica-botao { background: #fef9c3; color: #713f12; }

/* ---------- Quatro em Linha ---------- */
.cl-q4-trilho { position: relative; width: min(100%, 470px, calc((100vh - 360px) * 7 / 6)); height: 48px; margin: 0 auto; flex: none; }
.cl-q4-peca {
  position: absolute; top: 2px; left: 50%; width: 44px; height: 44px; margin-left: -22px; padding: 0; border-radius: 50%;
  touch-action: none; cursor: grab; transition: left .12s ease-out; filter: drop-shadow(0 3px 0 rgba(42, 26, 94, .3));
}
.cl-q4-peca svg { width: 100%; height: 100%; display: block; }
.cl-q4-peca.cl-q4-levantada { transform: scale(1.15); transition: none; }
.cl-q4 {
  position: relative; width: min(100%, 470px, calc((100vh - 360px) * 7 / 6)); aspect-ratio: 7 / 6; margin: 0 auto; flex: none;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(6, 1fr); gap: 2.2%;
  background: #2563eb; border: 10px solid #2563eb; border-radius: 22px; box-shadow: 0 8px 0 #1e3a8a, var(--sombra); touch-action: manipulation;
}
.cl-q4-furo { border-radius: 50%; background: #dbeafe; box-shadow: inset 0 4px 0 rgba(30, 58, 138, .35); position: relative; z-index: 1; }
.cl-q4-cheio { background: var(--cor); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), inset 0 0 0 5px rgba(255, 255, 255, .28); }
.cl-q4-cai { animation: cl-q4-cai .32s cubic-bezier(.4, 0, 1, 1); }
@keyframes cl-q4-cai { from { transform: translateY(calc(-112% * var(--queda, 1))); } to { transform: translateY(0); } }
.cl-q4-vence { animation: cl-pulo .45s ease-in-out 3; box-shadow: 0 0 0 4px #fde047, inset 0 0 0 5px rgba(255, 255, 255, .5); }
.cl-q4-coluna {
  position: absolute; top: 0; bottom: 0; width: calc(100% / 7); padding: 0; border-radius: 14px; z-index: 2;
  display: flex; justify-content: center; background: transparent;
}
.cl-q4-coluna:disabled { opacity: 1; }
.cl-q4-marca { display: block; width: 0; height: 0; margin-top: -26px; border: 10px solid transparent; border-top-color: transparent; }
.cl-q4-coluna.cl-q4-mira, .cl-q4-coluna:focus-visible, .cl-q4-coluna.ct-foco, .cl-q4-coluna.ct-mira { background: rgba(255, 255, 255, .22); }
.cl-q4-coluna.cl-q4-mira .cl-q4-marca, .cl-q4-coluna:focus-visible .cl-q4-marca, .cl-q4-coluna.ct-foco .cl-q4-marca { border-top-color: #fde047; }
.cl-q4-coluna.cl-q4-dica { background: rgba(253, 224, 71, .35); box-shadow: inset 0 0 0 4px #fde047; }
.cl-q4-coluna.cl-q4-ganha { box-shadow: inset 0 0 0 4px #facc15; }
.cl-q4-coluna.cl-q4-ganha::after { content: "✨"; position: absolute; top: -30px; font-size: 22px; }
.cl-q4-coluna.cl-q4-perigo { box-shadow: inset 0 0 0 4px #fb923c; }
.cl-q4-coluna.cl-q4-perigo::after { content: "🛡️"; position: absolute; top: -30px; font-size: 20px; }
.cl-q4.cl-pensando { opacity: .9; }

/* ---------- Pontinhos ---------- */
.cl-pt-placar { justify-content: center; }
.cl-pt-moldura {
  width: min(100%, 470px, calc(100vh - 330px)); margin: 0 auto; padding: 24px; border-radius: 26px; flex: none;
  background: #fff7ed; box-shadow: 0 6px 0 #fdba74, var(--sombra);
}
.cl-pt { position: relative; width: 100%; touch-action: none; }
.cl-pt-caixa { position: absolute; display: grid; place-items: center; font-size: clamp(16px, 5vw, 30px); font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); border-radius: 6px; }
.cl-pt-dona { background: var(--cor); opacity: .85; animation: cl-pulo .35s ease-out; }
.cl-pt-linha { position: absolute; padding: 0; z-index: 2; background: transparent; }
.cl-pt-h { height: 36px; transform: translateY(-50%); }
.cl-pt-v { width: 36px; transform: translateX(-50%); }
.cl-pt-linha i { position: absolute; border-radius: 4px; background: rgba(42, 26, 94, .13); }
.cl-pt-h i { left: 10px; right: 10px; top: 50%; height: 6px; margin-top: -3px; }
.cl-pt-v i { top: 10px; bottom: 10px; left: 50%; width: 6px; margin-left: -3px; }
.cl-pt-linha:not(:disabled):hover i, .cl-pt-linha:focus-visible i, .cl-pt-linha.ct-foco i, .cl-pt-linha.ct-mira i { background: rgba(109, 76, 224, .55); }
.cl-pt-feita i { background: var(--cor); box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.cl-pt-h.cl-pt-feita i { height: 8px; margin-top: -4px; }
.cl-pt-v.cl-pt-feita i { width: 8px; margin-left: -4px; }
.cl-pt-linha:disabled { opacity: 1; cursor: default; }
.cl-pt-dica i { background: #facc15; animation: cl-brilha-casa .6s ease-in-out infinite alternate; }
.cl-pt-ponto { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; z-index: 3; touch-action: none; cursor: grab; }
.cl-pt-ponto::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--tinta); }
.cl-pt-ponto-vivo::after { background: #f59e0b; transform: scale(1.5); }

/* ---------- campeonato ---------- */
.cl-destaque {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 26px; text-align: left;
  background: linear-gradient(120deg, #ef4444, #f59e0b); color: #fff; box-shadow: var(--sombra); border: 4px solid #fde047;
}
.cl-destaque-arte { flex: none; width: 70px; }
.cl-destaque-texto { display: flex; flex-direction: column; gap: 2px; }
.cl-destaque-texto small { font-size: 14px; font-weight: 800; opacity: .95; }
.cl-destaque-texto strong { font-size: 25px; line-height: 1.1; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.cl-destaque-texto span { font-size: 15px; font-weight: 700; }
.cl-camp-topo { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 22px; background: var(--branco); box-shadow: var(--sombra); }
.cl-camp-topo > div { display: flex; flex-direction: column; }
.cl-camp-topo strong { font-size: 20px; }
.cl-camp-topo small { font-size: 15px; font-weight: 700; opacity: .75; }
.cl-camp-trofeu { flex: none; width: 56px; display: block; }
.cl-camp-trofeu svg { display: block; width: 100%; }
.cl-chaves { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: center; }
@media (max-width: 560px) { .cl-chaves { grid-auto-flow: row; } }
.cl-chave-coluna { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; height: 100%; }
.cl-chave-coluna h3 { margin: 0; text-align: center; color: var(--branco); font-size: 17px; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.cl-chave { display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 0 rgba(42, 26, 94, .2); }
.cl-chave-agora { outline: 5px solid #fde047; animation: cl-pulo 1.4s ease-in-out infinite; }
.cl-chave-lado { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 8px; border-radius: 10px; border-left: 6px solid var(--cor); font-size: 15px; font-weight: 800; }
.cl-chave-lado span { overflow-wrap: anywhere; }
.cl-chave-lado b { font-size: 18px; }
.cl-chave-ganhou { background: #fef9c3; }
.cl-chave-perdeu { opacity: .45; }
.cl-camp-faixa { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 8px 14px; border-radius: 18px; background: #fef3c7; font-size: 16px; }
.cl-camp-faixa b { color: #92400e; }
.cl-camp-mesa { display: flex; flex-direction: column; gap: 12px; }
.cl-camp-entre { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 12px; border-radius: 20px; background: var(--branco); box-shadow: var(--sombra); text-align: center; }
.cl-camp-entre strong { font-size: 20px; }
.cl-camp-placar { font-size: 22px; font-weight: 900; color: var(--roxo-escuro); }
.cl-podio { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cl-podio-trofeu { width: 110px; animation: cl-pulo 1s ease-in-out 2; }
.cl-podio strong { font-size: 26px; color: var(--branco); text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }

.modo-tv .cl-pt-h { height: 44px; }
.modo-tv .cl-pt-v { width: 44px; }

/* No celular deitado ou baixinho, o duelo some (a faixa da vez já mostra quem joga e a peça). */
@media (max-height: 760px) { .cl-duelo-mesa { display: none; } }
