/* Pôquer: mesa oval de veludo verde com borda de madeira, lugares em volta, cartas comunitárias no centro */
.pq-mesa { height: 560px; border-radius: 50% / 46%; border-width: 16px; }
.pq-mesa::after { border-radius: 50% / 46%; }
.pq-linha { position: absolute; left: 50%; top: 50%; width: 74%; height: 62%; transform: translate(-50%, -50%); border: 2px solid rgba(255, 236, 190, .18); border-radius: 50%; pointer-events: none; }
.pq-marca { position: absolute; left: 50%; top: 61%; transform: translateX(-50%); font-family: Georgia, serif; letter-spacing: .3em; font-size: .78rem; color: rgba(255, 236, 190, .35); pointer-events: none; white-space: nowrap; }

.pq-lugar { position: absolute; transform: translate(-50%, -50%); min-width: 110px; padding: .3rem .6rem; border-radius: 12px; text-align: center; z-index: 30;
  background: rgba(20, 16, 12, .78); color: #fff; font-family: var(--sans); box-shadow: 0 4px 10px rgba(0,0,0,.35); transition: box-shadow .3s, opacity .3s; }
.pq-lugar .nome { font-weight: 700; font-size: .85rem; display: block; }
.pq-lugar .fichas { font-size: .78rem; color: #ffe08a; font-variant-numeric: tabular-nums; }
.pq-lugar .acao { display: block; font-size: .72rem; color: #cfe8d9; min-height: 1em; }
.pq-lugar.vez { box-shadow: 0 0 0 3px #ffe08a, 0 0 18px rgba(255, 224, 138, .6); }
.pq-lugar.desistiu { opacity: .45; }
.pq-lugar.fora { opacity: .25; }
.pq-lugar.vencedor { box-shadow: 0 0 0 3px #2f9e57, 0 0 22px rgba(47, 158, 87, .8); }
.pq-lugar .mao { display: block; font-size: .72rem; color: #ffe08a; font-weight: 700; }
.pq-dealer { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #222; font: 700 .7rem var(--sans); display: grid; place-items: center; box-shadow: 0 2px 4px rgba(0,0,0,.4); z-index: 31; transform: translate(-50%, -50%); transition: left .4s, top .4s; }

.pq-carta { position: absolute; left: 0; top: 0; transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .3s; z-index: 20; }
.pq-carta.sem-anim { transition: none; }
.pq-carta.virando .bz-carta { animation: pc-virar .3s ease-out; }
.pq-carta .bz-carta { box-shadow: 0 2px 5px rgba(0,0,0,.45); }
.pq-carta.apagada { opacity: .35; }
.pq-carta.escolhida { z-index: 25; }
.pq-carta.escolhida .bz-carta { box-shadow: 0 0 0 3px #ffe08a, 0 6px 12px rgba(0,0,0,.4); }
.pq-carta.clicavel { cursor: pointer; }
.pq-carta.destaque .bz-carta { box-shadow: 0 0 0 3px #2f9e57, 0 0 12px rgba(47, 158, 87, .8); }

.pq-pote { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font-family: var(--sans); color: #fff; background: rgba(0,0,0,.45); border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; z-index: 15; white-space: nowrap; }
.pq-pote b { color: #ffe08a; }
.pq-aposta { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .25rem; font: 700 .75rem var(--sans); color: #fff; z-index: 15; transition: left .4s, top .4s; }
.pq-aposta i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #c8453b 0 50%, transparent 51%), repeating-conic-gradient(#c8453b 0 20deg, #fff 20deg 40deg); box-shadow: 0 2px 0 rgba(0,0,0,.4); }

/* controles */
.pq-controles { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; }
.pq-controles .xz-botao.sugerido { box-shadow: 0 0 0 3px #2f9e57; animation: pc-brilho .8s infinite alternate; }
.pq-aumento[hidden] { display: none; }
.pq-aumento { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: center; font-family: var(--sans); font-size: .82rem; }
.pq-aumento input[type="range"] { width: 160px; accent-color: var(--realce); }
.pq-aumento .xz-botao { padding: .3rem .6rem; font-size: .78rem; }
.pq-log { max-height: 150px; }
.pq-log li { display: block; font-size: .8rem; }
.pq-placar { grid-template-columns: repeat(3, 1fr); }
.pq-placar b { font-size: 1.3rem; }

@media (max-width: 700px) {
  .pq-mesa { height: 600px; border-radius: 40% / 30%; border-width: 10px; }
  .pq-marca { display: none; } .pq-pote { top: 37%; }
  .pq-mesa::after { border-radius: 40% / 30%; }
  .pq-lugar { min-width: 80px; padding: .2rem .4rem; }
  .pq-lugar .nome { font-size: .74rem; } .pq-lugar .fichas, .pq-lugar .acao, .pq-lugar .mao { font-size: .66rem; }
}

/* mini do tutorial */
.xz-mini.pq-mini { display: block; border: 6px solid #5a3a24; border-radius: 40%/30%; width: 220px; background: radial-gradient(ellipse at center, #2a7346, #1d5634 70%, #123d24); padding: 16px 8px; box-sizing: border-box; color: #fff; font-family: var(--sans); font-size: .7rem; }
.pq-mini .linha { display: flex; gap: 3px; justify-content: center; align-items: center; margin: 4px 0; }
.pq-mini .bz-carta { --cw: 34px; }
.pq-mini .rotulo { display: block; text-align: center; color: #ffe08a; font-weight: 700; margin: 2px 0 6px; }

/* tela cheia: a mesa ocupa a altura que sobra (status em cima, botões de aposta embaixo) */
/* a altura do jogo é fixa; a mesa fica com o que sobra (texto de cima e botões de baixo podem mudar de tamanho) */
body.tc .pc-centro:has(.pq-mesa) { height: max(500px, calc(var(--tc-alto, 700px) - 1.8rem)); position: relative; }
body.tc .pq-mesa { height: auto; flex: 1 1 0; min-height: 340px; }
body.tc .pq-controles { flex: none; }
body.tc .pc-centro:has(.pq-mesa) .pc-barra { flex: none; }
/* a Dica fica por cima da parte de cima da mesa, sem empurrar a página; some quando você joga */
body.tc .pc-centro:has(.pq-mesa) > .xz-dica-texto { position: absolute; left: 50%; top: var(--pq-dica, 4rem); transform: translateX(-50%); width: min(560px, calc(100% - 3rem));
  max-width: none; margin: 0; z-index: 500; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
@media (max-width: 700px) { body.tc .pc-centro:has(.pq-mesa) > .xz-dica-texto { width: calc(100% - 1.5rem); font-size: .86rem; padding: .45rem .65rem; } }
/* os botões de aposta só aparecem na sua vez: o espaço deles fica sempre guardado, para a mesa não passar da tela quando surgem */
body.tc .pq-controles { min-height: 2.7rem; align-content: center; }
@media (max-width: 700px) {
  /* celular: Desistir · Pagar · Aumentar numa linha; a barra do valor e ½ pote · Pote · Tudo na outra */
  body.tc .pq-controles { min-height: 5.9rem; gap: .4rem .35rem; align-content: flex-start; }
  body.tc .pq-aumento { display: contents; }
  body.tc .pq-controles .pq-aumento[hidden] { display: none; }
  body.tc .pq-controles .xz-botao { padding: .4rem .75rem; font-size: .82rem; }
  body.tc #desistir { order: 1; } body.tc #pagar { order: 2; } body.tc #aumentar { order: 3; }
  body.tc .pq-aumento input[type="range"] { order: 4; flex: 1 1 34%; width: auto; min-width: 90px; }
  body.tc .pq-aumento [data-fracao] { order: 5; padding: .3rem .55rem; font-size: .76rem; }
  body.tc #trocar, body.tc #proxima, body.tc #novoTorneio2 { order: 6; }
}
/* a linha "Mão 1 · blinds…" só é escrita depois de dar as cartas: guardar o lugar dela também */
body.tc .pc-barra:has(#info) #info { min-height: 1.3rem; display: inline-block; }
@media (max-width: 700px) { body.tc .pc-barra:has(#info) { flex-direction: column; align-items: stretch; gap: .25rem; } body.tc .pc-barra:has(#info) #info { text-align: center; } }
