* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:root { --verde: #2e9e4f; --fundo: #173d2a; --papel: #f8f1de; --tinta: #2b2116; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--fundo); color: #fff;
  font-family: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; }
button, a.botao, select, input { font: inherit; }
button, a.botao { cursor: pointer; border: 0; border-radius: 14px; padding: 9px 16px; font-weight: 800; color: #fff; background: rgba(255,255,255,.16); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.grande { font-size: 20px; padding: 12px 20px; background: linear-gradient(#ffb53a, #ef7f18); box-shadow: 0 5px 0 #8a3c06; }
button.verde, a.verde { background: linear-gradient(#65d14a, #2e9e2f); box-shadow: 0 4px 0 #1d5e08; }
button.azul { background: linear-gradient(#58a8ff, #2a6fd6); box-shadow: 0 5px 0 #133f87; }
button.vermelho { background: linear-gradient(#ff6a5a, #d23a2a); box-shadow: 0 4px 0 #7a1a10; }
button.claro { background: rgba(255,255,255,.9); color: var(--tinta); }
.zap { background: #25d366 !important; box-shadow: 0 4px 0 #128c4a !important; }
button:active { transform: translateY(2px); }
.mini { font-size: 13px; opacity: .85; }
h2 { font-size: 28px; font-weight: 900; color: #ffd23f; -webkit-text-stroke: 1px #3a1a05; }
h3 { font-size: 22px; margin-bottom: 6px; }
.linhaBotoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }

/* telas */
.tela { position: fixed; inset: 0; display: none; }
.tela.ativa { display: flex; }
#menu { flex-direction: column; align-items: center; justify-content: space-between; padding: 4vh 16px 2vh; text-align: center; }
#menu .capa { position: absolute; inset: 0; background: url(../assets/arte/capa.jpg) center/cover; filter: saturate(1.1); }
#menu .capa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(10,30,15,.15), rgba(10,30,15,.25) 40%, rgba(10,30,15,.85)); }
.logo { position: relative; display: flex; flex-direction: column; line-height: .85; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.logo .l1 { font-size: clamp(34px, 8vw, 70px); font-weight: 900; color: #fff; -webkit-text-stroke: 2.5px #12301d; }
.logo .l2 { font-size: clamp(64px, 16vw, 150px); font-weight: 900; color: #ffd23f; -webkit-text-stroke: 4px #5a2a05; letter-spacing: 2px; }
.logo .l3 { font-size: clamp(16px, 3vw, 26px); font-weight: 800; color: #b6ff7a; -webkit-text-stroke: 1px #12301d; margin-top: 6px; }
.botoesMenu { position: relative; display: flex; flex-direction: column; gap: 10px; width: min(420px, 92vw); }
.botoesMenu button { width: 100%; flex-direction: column; line-height: 1.05; }
.botoesMenu small { font-size: 13px; font-weight: 700; opacity: .9; }
.rodape { position: relative; font-size: 13px; opacity: .9; text-shadow: 0 1px 3px #000; }
.painelTela { flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 20px 14px; overflow-y: auto; background: radial-gradient(ellipse at top, #2a6a45, #102a1c); text-align: center; }
#assentos, #lobbyJogadores { display: flex; flex-direction: column; gap: 8px; width: min(520px, 96vw); }
.assento { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.3); border-left: 6px solid var(--c); border-radius: 14px; padding: 6px 8px; }
.assento input, .assento select { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 0; font-size: 16px; }
.assento b { flex: 1; text-align: left; font-size: 18px; }
.assento .tag { font-size: 13px; opacity: .85; }
.assento .tipo { font-size: 13px; padding: 6px 8px; }
.assento .rem { padding: 6px 10px; background: rgba(255,80,60,.5); }
.peaoBtn { width: 52px; height: 52px; border-radius: 50%; padding: 0; overflow: hidden; background: #fff; border: 3px solid var(--c, #ffd23f); flex: none; display: inline-block; }
.peaoBtn img { width: 100%; height: 100%; object-fit: cover; }
.opcoes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.opcoes select, #lobbyAcoes select { padding: 6px 8px; border-radius: 10px; border: 0; margin-left: 4px; }
.codigo { background: #fff; color: var(--tinta); border-radius: 10px; padding: 0 10px; letter-spacing: 4px; -webkit-text-stroke: 0; }
.link { display: flex; gap: 6px; width: min(520px, 96vw); }
.link input { flex: 1; padding: 8px; border-radius: 10px; border: 0; font-size: 14px; }
.perfilForm { display: flex; gap: 10px; align-items: center; }
.perfilForm input { padding: 10px; border-radius: 12px; border: 0; font-size: 18px; width: 200px; }
.perfilForm .peaoBtn { width: 70px; height: 70px; }
#lobbyHost, #lobbyConvidado { width: min(520px, 96vw); }

/* mesa */
#mesa { flex-direction: column; background: radial-gradient(ellipse at center, #2b6b45, #12301e); }
.mesaTopo { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; flex: none; }
.botoesTopo { display: flex; gap: 6px; } .botoesTopo button { padding: 4px 10px; font-size: 17px; border-radius: 10px; }
#bRapido.on { background: #ef7f18; }
#statusRede { font-size: 13px; font-weight: 800; opacity: .9; }
.mesaCorpo { flex: 1; display: flex; gap: 10px; padding: 0 8px 8px; min-height: 0; }
.tabWrap { --tam: min(calc(100vh - 56px), calc(100vw - 380px)); width: var(--tam); height: var(--tam); position: relative; flex: none; }
#tabuleiro { --u: calc(var(--tam) / 11.1); position: absolute; inset: 0; display: grid; grid-template-columns: 1.55fr repeat(9, 1fr) 1.55fr; grid-template-rows: 1.55fr repeat(9, 1fr) 1.55fr;
  background: #1d4a31; border: 3px solid #0c2416; border-radius: 10px; overflow: hidden; color: var(--tinta); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.casa { position: relative; background: var(--papel); border: 1px solid #6b5a3c; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer;
  font-size: calc(var(--u) * 0.165); line-height: 1.05; font-weight: 800; padding: 2px; overflow: hidden; }
.casa:hover { filter: brightness(1.06); }
.casa .faixa { position: absolute; display: flex; align-items: center; justify-content: center; gap: 1px; }
.casa.baixo .faixa { top: 0; left: 0; right: 0; height: 24%; border-bottom: 1px solid #6b5a3c; }
.casa.cima .faixa { bottom: 0; left: 0; right: 0; height: 24%; border-top: 1px solid #6b5a3c; }
.casa.esq .faixa { right: 0; top: 0; bottom: 0; width: 18%; border-left: 1px solid #6b5a3c; flex-direction: column; }
.casa.dir .faixa { left: 0; top: 0; bottom: 0; width: 18%; border-right: 1px solid #6b5a3c; flex-direction: column; }
.casa.baixo { padding-top: 26%; } .casa.cima { padding-bottom: 26%; } .casa.esq { padding-right: 20%; } .casa.dir { padding-left: 20%; }
.obras { display: flex; gap: 1px; } .casa.esq .obras, .casa.dir .obras { flex-direction: column; }
.obras .sob { width: calc(var(--u) * 0.15); height: calc(var(--u) * 0.15); background: #22a845; border: 1px solid #0c4a1a; border-radius: 2px; display: block; }
.obras .predio { width: calc(var(--u) * 0.38); height: calc(var(--u) * 0.2); background: #d8322a; border: 1px solid #5a0c08; border-radius: 2px; display: block; }
.casa.esq .obras .predio, .casa.dir .obras .predio { width: calc(var(--u) * 0.2); height: calc(var(--u) * 0.38); }
.casa .ic { font-size: calc(var(--u) * 0.36); line-height: 1; }
.casa .nm { word-break: break-word; hyphens: auto; }
.casa .pr { font-size: calc(var(--u) * 0.14); font-weight: 700; opacity: .75; }
.casa .pr::before { content: 'R$'; font-size: .8em; margin-right: 1px; }
.casa .sb { font-size: calc(var(--u) * 0.13); font-weight: 700; opacity: .75; }
.casa.canto { font-size: calc(var(--u) * 0.2); }
.casa.canto .ic { font-size: calc(var(--u) * 0.55); }
.casa.inicio { background: #fff3c4; } .casa.blitz { background: #ffd9d4; } .casa.detencao { background: #dfe8ff; } .casa.livre { background: #e2f5d0; }
.casa.sorte { background: #f4ead0; } .casa.sorte .ic { color: #8a4bd0; }
.casa.temDono { box-shadow: inset 0 0 0 calc(var(--u) * 0.07) var(--dono); }
.casa.temDono::after { content: ''; position: absolute; width: calc(var(--u) * 0.18); height: calc(var(--u) * 0.18); border-radius: 50%; background: var(--dono); border: 1px solid #fff; bottom: 3px; right: 3px; }
.casa.hipotecada { background: repeating-linear-gradient(45deg, #ddd, #ddd 5px, #c8c8c8 5px, #c8c8c8 10px); opacity: .75; }
.casa.brilho { animation: brilho .9s ease-out; }
@keyframes brilho { 0% { box-shadow: inset 0 0 0 calc(var(--u) * .14) #ffe14d, 0 0 20px #ffe14d; } 100% { } }
.centro { grid-area: 2 / 2 / 11 / 11; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * .2); }
.centro .mapa { position: absolute; inset: 0; background: url(../assets/arte/mapa.jpg) center/cover; opacity: .9; }
.centro .mapa::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(248,241,222,.1), rgba(248,241,222,.55)); }
.logoMesa { position: relative; display: flex; flex-direction: column; align-items: center; line-height: .8; transform: rotate(-8deg); filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.logoMesa b:first-child { font-size: calc(var(--u) * .5); color: #fff; -webkit-text-stroke: 1.5px #12301d; }
.logoMesa b:last-child { font-size: calc(var(--u) * 1.05); color: #ffd23f; -webkit-text-stroke: 2.5px #5a2a05; }
#rodada { position: relative; font-size: calc(var(--u) * .2); font-weight: 900; background: rgba(255,255,255,.85); border-radius: 10px; padding: 0 8px; }
.dados { position: relative; display: flex; gap: calc(var(--u) * .2); }
.dado { width: calc(var(--u) * .8); height: calc(var(--u) * .8); background: #fff; border-radius: 18%; box-shadow: 0 4px 0 #b9ae93, 0 6px 12px rgba(0,0,0,.3); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 12%; }
.dado i { display: block; margin: 12%; border-radius: 50%; }
.dado i.on { background: #2b2116; }
.dado.rolando { animation: rola .14s linear infinite; }
@keyframes rola { 25% { transform: rotate(14deg) translateY(-6%); } 75% { transform: rotate(-14deg) translateY(4%); } }
.monte { position: absolute; right: 8%; bottom: 8%; width: calc(var(--u) * .9); transform: rotate(12deg); }
.monte img { width: 100%; border-radius: 8px; box-shadow: 3px 3px 0 #fff, 6px 6px 0 #ddd, 0 6px 14px rgba(0,0,0,.4); }
#faixaMsg { position: absolute; left: 6%; right: 6%; bottom: 22%; background: rgba(20,14,6,.86); color: #fff; border-radius: 14px; padding: 6px 10px; font-size: calc(var(--u) * .22); font-weight: 700; text-align: center;
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; pointer-events: none; }
#faixaMsg.on { opacity: 1; transform: none; } #faixaMsg.grande { font-size: calc(var(--u) * .28); background: rgba(30,90,40,.92); } #faixaMsg.ruim { background: rgba(140,30,20,.9); } #faixaMsg.vez { background: rgba(30,60,140,.9); }
#peoes { position: absolute; inset: 0; pointer-events: none; }
.peao { position: absolute; left: 0; top: 0; width: calc(var(--tam) / 11.1 * .6); height: calc(var(--tam) / 11.1 * .6); border-radius: 50%; border: 3px solid; background: #fff; overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,.45); transition: transform .16s cubic-bezier(.3,1.6,.5,1); z-index: 2; }
.peao img { width: 100%; height: 100%; object-fit: cover; }
.peao.vez { z-index: 5; box-shadow: 0 0 0 3px #fff, 0 0 16px 4px #ffe14d; }
.peao.andando { transition: transform .11s ease-out; }
.peao.preso::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22%, rgba(30,30,30,.75) 22% 30%); }
.peao.falido { display: none; }
.flutua { position: absolute; transform: translate(-50%, -100%); font-weight: 900; font-size: 15px; padding: 1px 6px; border-radius: 8px; animation: flutua 1.5s ease-out forwards; z-index: 8; white-space: nowrap; }
.flutua.verde { background: #2e9e2f; } .flutua.vermelho { background: #d23a2a; }
@keyframes flutua { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -260%); } }
.reacao { position: absolute; transform: translate(-50%, -100%); font-size: 30px; animation: flutua 2.2s ease-out forwards; z-index: 9; }

/* painel lateral */
.painel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
#jogadores { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.jog { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.28); border-radius: 12px; padding: 4px 6px; border-left: 5px solid var(--c); cursor: pointer; }
.jog img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--c); background: #fff; object-fit: cover; flex: none; }
.jog b { font-size: 14px; } .jog span { display: block; font-size: 13px; font-weight: 700; opacity: .9; } .jog small { font-size: 11px; }
.jog.vez { background: rgba(255,210,63,.25); box-shadow: 0 0 0 2px #ffd23f; }
.jog.falido { opacity: .4; text-decoration: line-through; }
#acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 52px; }
#acoes button { flex: 1 1 auto; }
#acoes button.pulsa { animation: pulsa 1.2s infinite; }
@keyframes pulsa { 50% { transform: scale(1.04); } }
.aguarde { display: flex; align-items: center; gap: 8px; font-weight: 700; opacity: .9; }
.aguarde img { width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.aviso { width: 100%; font-weight: 800; color: #ffd8a0; }
#reacoes { display: flex; gap: 4px; } #reacoes button { padding: 4px 8px; font-size: 20px; flex: 1; }
#log { flex: 1; min-height: 60px; overflow-y: auto; background: rgba(0,0,0,.22); border-radius: 12px; padding: 6px 8px; font-size: 13px; line-height: 1.3; }
#log p { padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
#log b { -webkit-text-stroke: .2px rgba(0,0,0,.4); }

/* janelas */
#modal { position: fixed; inset: 0; z-index: 30; background: rgba(5,10,5,.6); display: none; align-items: center; justify-content: center; padding: 12px; }
#modal.on { display: flex; }
.caixaModal { position: relative; background: #fffaf0; color: var(--tinta); border-radius: 20px; padding: 16px; max-width: min(520px, 96vw); max-height: 92vh; overflow-y: auto; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: caixa .3s cubic-bezier(.2,1.5,.4,1); }
@keyframes caixa { from { transform: scale(.7); opacity: 0; } }
.caixaModal .x { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.08); color: var(--tinta); padding: 4px 10px; z-index: 2; }
.caixaModal button:not(.x):not([data-p]):not([data-alvo]) { background: #6b5a3c; }
.caixaModal button.verde { background: linear-gradient(#65d14a, #2e9e2f); } .caixaModal button.vermelho { background: linear-gradient(#ff6a5a, #d23a2a); }
.caixaModal .mini { opacity: .75; }
.cartao { padding: 0; width: min(340px, 94vw); overflow: hidden; }
.posse .topo { color: #fff; text-align: center; font-size: 22px; font-weight: 900; padding: 12px 34px 10px; text-shadow: 0 2px 2px rgba(0,0,0,.35); line-height: 1.1; }
.posse .topo small { display: block; font-size: 13px; font-weight: 700; opacity: .95; }
.posse .arte { height: 110px; background: center/cover; }
.posse table { width: calc(100% - 24px); margin: 8px 12px; border-collapse: collapse; font-size: 15px; }
.posse td { padding: 3px 4px; border-bottom: 1px dashed #d8ccb0; } .posse td:last-child { text-align: right; font-weight: 800; }
.posse tr.atual td { background: #fff1b8; }
.posse p { margin: 8px 12px; } .posse .mini { font-size: 12px; }
.posse .dono { margin: 8px 12px 0; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--c) 18%, white); border-left: 5px solid var(--c); display: flex; align-items: center; gap: 6px; font-weight: 700; }
.posse .dono img { width: 26px; height: 26px; border-radius: 50%; }
.posse .dono.livre { background: #e9f8e0; border-left-color: #2e9e4f; }
.posse .agora { margin: 0 12px; font-size: 15px; }
.posse .linhaBotoes { padding: 0 10px 12px; }
.gradePeoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gradePeoes button { flex-direction: column; background: #f1e8d2 !important; color: var(--tinta); padding: 6px; font-size: 12px; }
.gradePeoes button.sel { outline: 3px solid #ef7f18; }
.gradePeoes img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.listaSetores { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.itemSetor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #f3ead4; border-radius: 10px; padding: 6px; }
.itemSetor.hip { opacity: .7; }
.itemSetor > div { flex: 1; min-width: 120px; } .itemSetor small { display: block; font-size: 12px; opacity: .8; }
.itemSetor .linhaBotoes { margin: 0; width: 100%; justify-content: flex-start; } .itemSetor .linhaBotoes button { padding: 5px 10px; font-size: 13px; }
.cor { display: inline-block; width: 14px; height: 30px; border-radius: 4px; flex: none; }
.alvos { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.alvos button { background: #f1e8d2 !important; color: var(--tinta); padding: 4px 10px 4px 4px; font-size: 14px; }
.alvos button.sel { outline: 3px solid #ef7f18; } .alvos img { width: 28px; height: 28px; border-radius: 50%; }
.colsTroca { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.colsTroca h4 { margin-bottom: 4px; } .colsTroca ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.colsTroca li, .itemTroca { display: flex; align-items: center; gap: 6px; font-size: 14px; } .itemTroca .cor, .colsTroca li .cor { height: 18px; width: 10px; }
.dinTroca { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 800; } .dinTroca input { width: 90px; padding: 4px 6px; border-radius: 8px; border: 1px solid #c8b890; }
.perfilJog { display: flex; gap: 10px; align-items: center; border-left: 6px solid var(--c); padding-left: 10px; margin-bottom: 6px; }
.perfilJog img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.regras { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.fimJogo { text-align: center; } .fimJogo .coroa { font-size: 50px; animation: bob 1.2s infinite; } .fimJogo .vencedor { width: 110px; height: 110px; border-radius: 50%; border: 5px solid #ffd23f; object-fit: cover; }
.fimJogo h2 { -webkit-text-stroke: 1px #5a2a05; font-size: 34px; }
.ranking { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 10px 0; text-align: left; }
.ranking li { display: flex; align-items: center; gap: 8px; background: #f3ead4; border-radius: 10px; padding: 4px 8px; border-left: 5px solid var(--c); }
.ranking img { width: 30px; height: 30px; border-radius: 50%; } .ranking b { flex: 1; } .ranking em { font-style: normal; font-weight: 800; }

/* carta de sorte ou revés */
#cartaVoando { position: fixed; inset: 0; z-index: 25; display: none; align-items: center; justify-content: center; pointer-events: none; }
#cartaVoando.on { display: flex; pointer-events: auto; }
.cartaSorte { width: min(300px, 78vw); aspect-ratio: 3 / 4; position: relative; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,1.4,.5,1); transform: rotateY(180deg) scale(.6); }
.cartaSorte.virada { transform: rotateY(0) scale(1); }
.cartaSorte .frente, .cartaSorte .verso { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.5); overflow: hidden; }
.cartaSorte .verso { transform: rotateY(180deg); } .cartaSorte .verso img { width: 100%; height: 100%; object-fit: cover; }
.cartaSorte .frente { background: #fffaf0; color: var(--tinta); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; text-align: center; border: 8px solid; }
.cartaSorte.boa .frente { border-color: #2e9e4f; } .cartaSorte.ruim .frente { border-color: #d23a2a; }
.cartaSorte .tit { font-size: 34px; font-weight: 900; } .cartaSorte.boa .tit { color: #2e9e4f; } .cartaSorte.ruim .tit { color: #d23a2a; }
.cartaSorte .emo { font-size: 54px; } .cartaSorte p { font-size: 18px; font-weight: 700; line-height: 1.25; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 30px); background: rgba(20,14,6,.92); padding: 10px 16px; border-radius: 14px; font-weight: 700; opacity: 0; transition: .3s; z-index: 40; pointer-events: none; max-width: 92vw; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#confete { position: fixed; inset: 0; pointer-events: none; z-index: 35; overflow: hidden; }
#confete i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: cai linear forwards; }
@keyframes cai { to { transform: translateY(110vh) rotate(720deg); } }

/* celular em pé */
@media (orientation: portrait) {
  .mesaCorpo { flex-direction: column; padding: 0 4px 4px; gap: 6px; overflow-y: auto; }
  .tabWrap { --tam: min(calc(100vw - 8px), calc(100vh - 250px)); margin: 0 auto; }
  .painel { flex: none; }
  #jogadores { grid-template-columns: repeat(3, 1fr); }
  .jog img { width: 28px; height: 28px; } .jog b { font-size: 12px; } .jog span { font-size: 11px; }
  #log { max-height: 110px; flex: none; }
  button.grande { font-size: 17px; padding: 10px 14px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .tabWrap { --tam: calc(100vh - 48px); } .mesaTopo { height: 34px; }
  #jogadores { grid-template-columns: repeat(2, 1fr); }
}
