:root {
  --madeira: #2b1a10;
  --madeira-2: #3d2617;
  --feltro: #1f5a3c;
  --feltro-2: #174631;
  --creme: #fbefd9;
  --creme-2: #e9d6b4;
  --cerveja: #f4b324;
  --cerveja-escura: #c98a0b;
  --vermelho: #d64535;
  --texto: #fbefd9;
  --texto-suave: #cdb999;
  --sombra: 0 6px 0 rgba(0, 0, 0, .35);
  --raio: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--texto);
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px),
    radial-gradient(ellipse at top, var(--madeira-2), var(--madeira) 70%);
  background-color: var(--madeira);
  -webkit-tap-highlight-color: transparent;
}
#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100%;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.tela { display: flex; flex-direction: column; gap: 16px; }
.tela[hidden] { display: none; }

/* ---------- Marca ---------- */
.marca { text-align: center; padding-top: 12px; }
#logo-maos { display: flex; justify-content: center; gap: 4px; height: 120px; }
#logo-maos .mao { height: 100%; width: auto; }
#logo-maos .mao-fechada { transform: rotate(-8deg); animation: balanca 2.4s ease-in-out infinite; }
#logo-maos .mao-aberta { transform: rotate(8deg); }
h1 {
  font-weight: 900;
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  letter-spacing: -.02em;
  margin: 8px 0 0;
  color: var(--cerveja);
  text-shadow: 0 4px 0 var(--cerveja-escura), 0 8px 0 rgba(0,0,0,.35);
}
.subtitulo { margin: 4px 0 0; color: var(--texto-suave); }

/* ---------- Cartões e formulários ---------- */
.cartao {
  background: var(--creme);
  color: var(--madeira);
  border-radius: var(--raio);
  padding: 18px;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.centro { text-align: center; align-items: center; }
label, .rotulo { font-weight: 600; font-size: .95rem; margin: 0; color: #6b4a2f; }
input {
  font: inherit;
  font-size: 1.15rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 3px solid var(--creme-2);
  background: #fff;
  color: var(--madeira);
  width: 100%;
  min-width: 0;
}
input:focus { outline: none; border-color: var(--cerveja); }
.campo-codigo { text-transform: uppercase; letter-spacing: .3em; font-weight: 800; text-align: center; }
.linha { display: flex; gap: 10px; }
.linha .btn { flex: 0 0 auto; }
.divisor { display: flex; align-items: center; gap: 10px; color: #9a7a5a; font-size: .85rem; }
.divisor::before, .divisor::after { content: ''; flex: 1; height: 2px; background: var(--creme-2); }

.btn {
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  border: 0;
  border-radius: 14px;
  padding: 15px 20px;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:active { transform: translateY(4px); box-shadow: none !important; }
.btn:disabled { filter: grayscale(.8); opacity: .6; cursor: default; }
.btn-principal { background: var(--cerveja); color: var(--madeira); box-shadow: 0 5px 0 var(--cerveja-escura); }
.btn-secundario { background: var(--madeira); color: var(--creme); box-shadow: 0 5px 0 #120a05; }
.btn-texto { background: none; border: 0; color: var(--texto-suave); font: inherit; font-weight: 600; padding: 8px 4px; cursor: pointer; }

.regras { background: rgba(0,0,0,.25); border-radius: var(--raio); padding: 14px 18px; color: var(--texto-suave); }
.regras summary { cursor: pointer; font-weight: 700; color: var(--texto); }
.regras ol { padding-left: 20px; line-height: 1.5; margin-bottom: 0; }
.regras strong { color: var(--cerveja); }

/* ---------- Lobby ---------- */
.topo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.controles-som { justify-self: end; display: flex; gap: 6px; }
.btn-som {
  font-size: 1rem; width: 34px; height: 34px; border-radius: 50%; padding: 0;
  border: 2px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); cursor: pointer;
}
.btn-som.desligado { opacity: .4; filter: grayscale(1); position: relative; }
.btn-som.desligado::after {
  content: ''; position: absolute; left: 50%; top: 15%; height: 70%; width: 2px;
  background: var(--vermelho); transform: rotate(45deg);
}
.topo-titulo { color: var(--texto-suave); font-size: .95rem; }
.topo-titulo b { color: var(--texto); }
.codigo-grande {
  font-size: 3.4rem; font-weight: 900; letter-spacing: .18em; margin: 0;
  color: var(--madeira); padding-left: .18em;
}
.lista-jogadores { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lista-jogadores li {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px; padding: 10px 12px; font-weight: 600;
}
.lista-jogadores li.desconectado { opacity: .55; }
.lista-jogadores em { font-weight: 400; color: #9a7a5a; font-style: normal; }
.bolinha { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--madeira); flex: 0 0 auto; }
.lista-jogadores .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selo { font-size: .72rem; font-weight: 700; background: var(--cerveja); color: var(--madeira); padding: 3px 8px; border-radius: 99px; }
.selo-off { background: #ccc; }
.dica { color: var(--texto-suave); margin: 0; line-height: 1.45; }
.dica b { color: var(--texto); }

/* ---------- Mesa ---------- */
.tela-jogo { min-height: calc(100dvh - 32px); }
.aviso {
  background: rgba(244, 179, 36, .15); border: 2px dashed var(--cerveja);
  color: var(--cerveja); border-radius: 12px; padding: 8px 12px; text-align: center; font-weight: 600;
}
.mesa {
  --mao: 120px;
  position: relative;
  background: radial-gradient(ellipse at center, var(--feltro), var(--feltro-2) 75%);
  border: 10px solid #5a3a22;
  box-shadow: inset 0 0 40px rgba(0,0,0,.45), var(--sombra);
  border-radius: 48% / 34%;
  flex: 1;
  min-height: min(62dvh, 560px);
}
.mesa[data-tamanho="m"] { --mao: 96px; }
.mesa[data-tamanho="p"] { --mao: 74px; }
.assento {
  position: absolute;
  transform: translate(-50%, -50%);
  width: calc(var(--mao) + 24px);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  z-index: 1;
}

/* Monte de palitos no centro */
.monte {
  position: absolute; left: 50%; top: 50%;
  width: 54%; max-width: 270px; aspect-ratio: 16 / 10;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.monte svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.4)); }
.monte .caindo { animation: cai .6s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: var(--atraso, 0s); }
.petisco-a, .petisco-b { position: absolute; z-index: 0; filter: drop-shadow(0 4px 2px rgba(0,0,0,.35)); }
.petisco-a { left: -4%; bottom: -6%; width: 40%; }
.petisco-b { right: -2%; top: -10%; width: 32%; }
.petisco-a svg, .petisco-b svg { width: 100%; height: auto; display: block; }
.area-mao .copo {
  position: absolute; right: -10px; bottom: 0;
  height: calc(var(--mao) * .42); width: auto;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.35));
}
.copo .bolha { animation: bolha 2.2s ease-in infinite; }
.copo .bolha.b2 { animation-delay: 1.1s; }
@keyframes bolha { from { transform: translateY(0); opacity: .7; } to { transform: translateY(-30px); opacity: 0; } }
.monte-vazio {
  color: rgba(255,255,255,.28); font-size: .8rem; text-align: center; line-height: 1.3;
  border: 2px dashed rgba(255,255,255,.15); border-radius: 50%; padding: 18px 14px;
}
.total {
  position: relative; z-index: 2;
  background: var(--creme); color: var(--vermelho);
  font-weight: 900; font-size: 2.6rem; line-height: 1;
  border-radius: 20px; padding: 8px 18px 10px; text-align: center;
  box-shadow: 0 5px 0 rgba(0,0,0,.35);
  animation: surge .35s cubic-bezier(.2, 1.6, .4, 1);
}
.total small { display: block; font-size: .8rem; color: var(--madeira); font-weight: 700; }

.area-mao { position: relative; height: var(--mao); width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.area-mao .mao { height: 100%; width: auto; filter: drop-shadow(0 6px 4px rgba(0,0,0,.35)); }
.area-mao.pensando .mao { animation: balanca 1.2s ease-in-out infinite; }
.area-mao.pronta .mao { transform: translateY(4px); }
.area-mao.so-eu { opacity: .55; }
.area-mao.abrindo .mao { animation: abrir .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.assento:nth-child(2) .area-mao.abrindo .mao { animation-delay: .08s; }
.assento:nth-child(3) .area-mao.abrindo .mao { animation-delay: .16s; }
.assento:nth-child(4) .area-mao.abrindo .mao { animation-delay: .24s; }
.assento:nth-child(5) .area-mao.abrindo .mao { animation-delay: .32s; }
.assento:nth-child(n+6) .area-mao.abrindo .mao { animation-delay: .4s; }

.salvo {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 2.6rem; gap: 4px;
}
.salvo span { font-size: .8rem; font-weight: 700; color: var(--cerveja); }
.placa {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 99px; max-width: 100%;
}
.placa .nome { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.contador { height: 22px; width: auto; flex: 0 0 auto; }
.status { font-size: .76rem; color: var(--texto-suave); }
.assento.eu .placa { background: var(--cerveja); color: var(--madeira); }
.assento.vez .placa { outline: 3px solid var(--cerveja); animation: pulsa 1s ease-in-out infinite; }
.assento.offline { opacity: .5; }
.assento.acertou .placa { background: #2ecc71; color: #0b2e1a; }
.assento.perdeu .placa { background: var(--vermelho); color: #fff; }
.marcador {
  position: absolute; top: 2px; left: 0;
  background: var(--creme); color: var(--madeira); font-weight: 900; font-size: .72rem;
  border-radius: 99px; padding: 3px 7px; box-shadow: 0 2px 0 rgba(0,0,0,.3); z-index: 2;
}
.balao {
  position: absolute; top: -4px; right: -4px; z-index: 2;
  background: #fff; color: var(--madeira); font-weight: 900; font-size: 1.15rem;
  min-width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; padding: 0 8px;
  box-shadow: 0 3px 0 rgba(0,0,0,.3);
  animation: surge .3s ease-out;
}
.balao::after {
  content: ''; position: absolute; bottom: -6px; left: 8px;
  border: 6px solid transparent; border-top-color: #fff; border-bottom: 0;
}

/* ---------- Painel de ação ---------- */
.painel {
  background: var(--creme); color: var(--madeira);
  border-radius: var(--raio); padding: 16px; box-shadow: var(--sombra);
  min-height: 110px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.painel .dica { color: #6b4a2f; }
.painel .dica b { color: var(--madeira); }
.pergunta { margin: 0; font-weight: 800; font-size: 1.1rem; text-align: center; }
.numeros { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.num {
  font: inherit; font-weight: 900; font-size: 1.5rem;
  width: 58px; height: 58px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--madeira); color: var(--creme); box-shadow: 0 5px 0 #120a05;
}
.num:active { transform: translateY(4px); box-shadow: none; }
.num:disabled { background: var(--creme-2); color: #b59b7a; box-shadow: none; text-decoration: line-through; cursor: default; }
.resultado p { margin: 0; text-align: center; font-size: 1.15rem; font-weight: 600; }
.resultado b { font-size: 1.6rem; color: var(--vermelho); }
.barra-tempo { height: 6px; background: var(--creme-2); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.barra-tempo span { display: block; height: 100%; background: var(--cerveja); animation: esvazia 5s linear forwards; }
.fim { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.fim h2 { margin: 0; font-size: 1.35rem; font-weight: 900; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  background: var(--madeira); color: var(--creme); border: 2px solid var(--cerveja);
  padding: 12px 18px; border-radius: 14px; font-weight: 600; max-width: calc(100% - 32px);
  transition: transform .25s ease, visibility 0s .25s; z-index: 10; text-align: center;
}
.toast.visivel { transform: translate(-50%, 0); visibility: visible; transition: transform .25s ease; }

/* ---------- Animações ---------- */
@keyframes balanca { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes abrir { 0% { transform: scale(.6) rotate(-12deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes pulsa { 0%, 100% { outline-color: var(--cerveja); } 50% { outline-color: transparent; } }
@keyframes surge { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes cai { from { transform: translateY(-60px) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes esvazia { from { width: 100%; } to { width: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 360px) {
  .mesa { --mao: 96px; }
  .mesa[data-tamanho="m"] { --mao: 80px; }
  .mesa[data-tamanho="p"] { --mao: 62px; }
  .num { width: 50px; height: 50px; }
}

/* ---------- Ambiente: lanchonete (livre) ---------- */
body[data-cenario="livre"] .mesa {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.08) 0 2px, transparent 3px) 0 0 / 22px 22px,
    radial-gradient(ellipse at center, #3f8fb0, #2c6f8c 75%);
  border-color: #c9d2d8;
  box-shadow: inset 0 0 40px rgba(0,0,0,.35), 0 6px 0 rgba(0,0,0,.35), inset 0 0 0 3px #e9eef1;
}

/* ---------- Escolha do ambiente ---------- */
.seletor-cenario { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seletor-cenario button {
  font: inherit; font-weight: 700; padding: 12px 8px; border-radius: 12px; cursor: pointer;
  border: 3px solid var(--creme-2); background: #fff; color: var(--madeira);
}
.seletor-cenario button small { font-size: .7rem; background: var(--vermelho); color: #fff; padding: 1px 5px; border-radius: 6px; }
.seletor-cenario button.ativo { border-color: var(--cerveja); background: #fff6dc; }

/* ---------- Propaganda pintada na mesa ---------- */
.propaganda {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 70%; z-index: 0; text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.propaganda.com-link { pointer-events: auto; cursor: pointer; }
.pp-nome {
  font-weight: 900; font-size: clamp(1.4rem, 7vw, 2.3rem); line-height: 1; letter-spacing: .02em;
  text-transform: uppercase; color: var(--cor);
  opacity: .5;
  text-shadow: 0 0 6px var(--cor), 0 0 18px var(--cor);
  transform: rotate(-6deg);
}
.pp-slogan {
  font-weight: 700; font-style: italic; font-size: .95rem; transform: rotate(-6deg);
  color: #fff; opacity: .9;
  text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 10px var(--cor);
}
.pp-selo {
  margin-top: 6px; font-size: .62rem; font-weight: 700; color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 99px; letter-spacing: .02em;
}
.propaganda-casa .pp-nome { opacity: .22; text-shadow: none; font-size: clamp(1.1rem, 5.5vw, 1.7rem); }
.propaganda-casa .pp-slogan { opacity: .55; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
body[data-cenario="boteco"] .pp-nome { animation: neon 4s ease-in-out infinite; }
@keyframes neon { 0%, 100% { opacity: .5; } 46% { opacity: .5; } 48% { opacity: .2; } 50% { opacity: .55; } 52% { opacity: .25; } 54% { opacity: .5; } }

/* ---------- Janelas ---------- */
.janela-fundo {
  position: fixed; inset: 0; z-index: 20; background: rgba(15, 8, 3, .6);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.janela-fundo.aberta { opacity: 1; }
.janela {
  background: var(--creme); color: var(--madeira); width: 100%; max-width: 560px;
  border-radius: 24px 24px 0 0; padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  transform: translateY(40px); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.janela-fundo.aberta .janela { transform: none; }
.janela h2 { margin: 0; font-weight: 900; }
.janela p { margin: 0; line-height: 1.45; }
.janela .nota { font-size: .8rem; color: #8a6a4a; }
.janela-botoes { display: flex; flex-direction: column; gap: 10px; }
.janela .btn-texto { color: #8a6a4a; align-self: center; }

/* ---------- Garçom ---------- */
.garcom-cena { display: flex; align-items: flex-end; gap: 10px; }
.garcom-figura { flex: 0 0 96px; }
.garcom-figura .garcom { width: 96px; height: auto; display: block; animation: surge .35s ease-out; }
.garcom-balao {
  position: relative; flex: 1; background: #fff; border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 3px 0 rgba(0,0,0,.12); margin-bottom: 30px; min-height: 70px;
}
.garcom-balao::before {
  content: ''; position: absolute; left: -10px; bottom: 14px;
  border: 10px solid transparent; border-right-color: #fff; border-left: 0;
}
.garcom-balao small { font-weight: 800; color: var(--vermelho); text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; }
.legenda { font-weight: 600; min-height: 2.9em; }
.cardapio { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.item-cardapio {
  font: inherit; font-weight: 700; font-size: .8rem; color: var(--madeira);
  background: var(--madeira-2); border: 3px solid transparent; border-radius: 14px;
  padding: 8px 4px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(#2c6b4c, #1f5a3c); color: var(--creme);
}
.item-cardapio .copo { height: 58px; width: auto; }
.item-cardapio.atual { border-color: var(--cerveja); }
.item-cardapio:disabled { opacity: .55; }
.centro { text-align: center; }

[hidden] { display: none !important; }

/* ---------- Modo comércio ---------- */
.marca-comercio {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  background: var(--creme); color: var(--madeira); padding: 6px 14px 6px 6px; border-radius: 99px;
  box-shadow: 0 3px 0 rgba(0,0,0,.3); font-size: 1rem;
}
.marca-comercio img { height: 36px; max-width: 90px; object-fit: contain; border-radius: 8px; background: #fff; }
body[data-comercio] .mesa {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.06) 0 2px, transparent 3px) 0 0 / 22px 22px,
    radial-gradient(ellipse at center, color-mix(in srgb, var(--mesa-cor) 82%, white), var(--mesa-cor) 75%);
  border-color: color-mix(in srgb, var(--mesa-cor) 55%, black);
}
.pp-logo { max-height: 56px; max-width: 45%; object-fit: contain; opacity: .9; transform: rotate(-6deg); margin-bottom: 4px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.propaganda-comercio .pp-nome { opacity: .55; text-shadow: 0 2px 0 rgba(0,0,0,.25); animation: none !important; }
.propaganda-comercio .pp-slogan { opacity: .9; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }

/* Vitrine de promoções */
.vitrine { margin-top: -4px; }
.vt-cartao {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--madeira); border-radius: var(--raio); padding: 10px;
  border-left: 6px solid var(--marca, var(--cerveja)); box-shadow: var(--sombra);
  animation: surge .35s ease-out;
}
.vt-cartao.destaque { outline: 3px solid var(--marca, var(--cerveja)); }
.vt-foto { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 64px; }
.vt-sem-foto { display: grid; place-items: center; font-size: 2rem; background: var(--creme); }
.vt-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vt-texto small { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--marca, var(--vermelho)); }
.vt-texto b { font-size: 1rem; line-height: 1.2; }
.vt-texto span { font-size: .8rem; color: #7a5a3d; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vt-texto em { font-size: .68rem; color: #a0522d; font-style: normal; font-weight: 700; }
.vt-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.vt-lado strong { font-size: 1.05rem; font-weight: 900; white-space: nowrap; }
.vt-pedir {
  font: inherit; font-weight: 800; border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer;
  background: var(--marca, var(--cerveja)); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.vt-balcao { font-size: .7rem; color: #7a5a3d; }
.vt-pontos { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.vt-pontos i { width: 6px; height: 6px; border-radius: 50%; background: #e0d2bb; }
.vt-pontos i.on { background: var(--marca, var(--cerveja)); }

/* ---------- Divulgação da TI Soluções App (uso pessoal) ---------- */
a.vt-cartao { text-decoration: none; cursor: pointer; }
.vt-casa { padding-bottom: 16px; }
.vt-mini { flex: 0 0 96px; width: 96px; padding: 6px 4px 10px; }
.vt-logo-ti { background: none; border-radius: 14px; }
.vt-casa .vt-pedir { display: inline-block; }
.propaganda-casa .pp-logo { max-height: 40px; opacity: .8; filter: none; }
.propaganda-casa.com-link .pp-slogan { text-decoration: underline; text-underline-offset: 3px; }
.rodape-ti {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px auto 0;
  color: var(--texto-suave); text-decoration: none; font-size: .85rem; text-align: left;
}
.rodape-ti img { border-radius: 8px; flex: 0 0 28px; }
.rodape-ti b { color: var(--texto); }
.rodape-ti small { display: block; color: var(--cerveja); font-size: .78rem; font-weight: 600; }
/* Logo horizontal pintado na mesa: proporcional à mesa, sem esconder as mãos */
.pp-logo.pp-logo-marca {
  width: min(58%, 230px); max-width: none; max-height: none; height: auto;
  opacity: .78; margin-bottom: 6px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}
body[data-cenario="boteco"] .pp-logo-marca { opacity: .7; }
.propaganda.propaganda-marca { top: 54%; width: 84%; }
.propaganda-marca .pp-slogan { font-size: .78rem; white-space: nowrap; }

/* ---------- Ordem e classificação ---------- */
.lista-jogadores .posicao {
  font-weight: 900; font-size: .8rem; min-width: 34px; text-align: center; padding: 2px 6px; border-radius: 8px;
  background: var(--madeira); color: var(--cerveja);
}
#lobby-ordem { color: #8a6a4a; font-size: .85rem; }
.classificacao { background: rgba(0,0,0,.06); border-radius: 14px; padding: 10px 14px; text-align: left; color: var(--madeira); }
.classificacao .rotulo { color: #8a6a4a; font-size: .8rem; margin-bottom: 6px; }
.classificacao ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.classificacao li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.classificacao li b { color: var(--cerveja-escura); min-width: 28px; }
.classificacao li em { margin-left: auto; font-style: normal; font-size: .75rem; color: #8a6a4a; }
.classificacao li.pagou span:not(.bolinha) { color: var(--vermelho); }

/* ---------- Mãos apontando para o centro da mesa ---------- */
.giro {
  height: 100%; width: 100%; display: flex; align-items: flex-end; justify-content: center;
  transform: rotate(var(--giro, 0deg)); transition: transform .3s ease;
}
.assento.cima { flex-direction: column-reverse; }
.assento.cima .area-mao { order: -2; }
.assento.cima .status { order: -1; }
