/* Salão de Cartas do Gemalino — visual próprio (o comum está em base.css).
   Mesa de feltro verde e cartas cor de creme. As medidas usam o tamanho do palco (cqw/cqh),
   para caber no tablet e no celular deitado; nenhum alvo fica menor que --alvo. */
:root {
  --tema: #2e7d5b; --tema-escuro: #1b5e40;
  --feltro: #2e7d5b; --feltro-claro: #3f9670; --creme: #fffaf0; --ouro: #ffd54f;
}
body { background: #d7efe1; }
#tela-jogo { background: linear-gradient(#6d4423, #4e2f17); }
#tela-jogo .palco {
  margin: 4px 8px 6px 0; border: clamp(6px, 1.2vh, 12px) solid #9a6533; border-radius: 30px;
  background: radial-gradient(ellipse at 50% 40%, #46a37a, var(--feltro) 75%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35), 0 4px 0 #3b2412;
}
.palco { container-type: size; color: var(--texto); }
.sc-titulo { margin: 0; color: var(--creme); font-size: clamp(20px, 6cqh, 44px); text-align: center; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }

/* ---------- a carta: moldura colorida, janela com a figura, faixa com o nome ---------- */
.sc-carta {
  --moldura: #3f86d0; --moldura-2: #1f4e8c;
  position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 4%;
  min-width: var(--alvo); min-height: var(--alvo); padding: 6px; overflow: hidden; flex: 0 0 auto;
  border: 0; border-radius: 14px; color: var(--texto); font: inherit;
  background: linear-gradient(160deg, var(--moldura), var(--moldura-2));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55), 0 4px 0 rgba(0, 0, 0, 0.3), 0 8px 14px rgba(0, 0, 0, 0.18);
}
.sc-tipo-cenario { --moldura: #66bb6a; --moldura-2: #2e7d32; }
.sc-tipo-objeto { --moldura: #ff8a65; --moldura-2: #d84315; }
button.sc-carta { cursor: pointer; transition: transform 0.15s; }
button.sc-carta:hover { transform: translateY(-3px); }
.sc-janela {
  position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 10px; background: radial-gradient(circle at 50% 45%, #fffef6 0 35%, #fff1c4 70%, #ffe08a);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.sc-janela .sc-fundo { position: absolute; inset: 0; opacity: 0.7; }
.sc-janela .sc-fundo svg { width: 100%; height: 100%; display: block; }
.sc-imagem { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 6%; }
.sc-imagem img, .sc-imagem svg { max-width: 100%; max-height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25)); }
.sc-tipo-cenario .sc-imagem { padding: 0; }
.sc-tipo-cenario .sc-imagem svg { width: 100%; height: 100%; filter: none; }
.sc-nome {
  flex: 0 0 auto; padding: 3px 4px; border-radius: 8px; background: var(--creme); color: #1d2b3a;
  font-size: clamp(11px, 2.8cqh, 19px); font-weight: 800; line-height: 1.1; text-align: center; overflow-wrap: anywhere;
}
.sc-especial { --moldura: #ffd54f; --moldura-2: #f9a825; }
.sc-verso {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 2px, transparent 2.5px) 0 0 / 14px 14px,
    linear-gradient(160deg, #2b63a8, #173a6b);
  display: flex; align-items: center; justify-content: center;
}
.sc-verso-miolo {
  position: absolute; inset: 7px; display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--ouro); border-radius: 10px;
}
.sc-verso-g {
  width: clamp(30px, 40%, 70px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe57f, #ffc928); color: #1f2f5c; font-weight: 900; font-size: clamp(18px, 5cqh, 40px);
  border: 3px solid var(--creme); box-shadow: 0 0 0 6px rgba(255, 213, 79, 0.25);
}
.achada { visibility: hidden; }
.escolhida { outline: 5px solid var(--ouro); outline-offset: 2px; }
.alvo-agora { outline: 5px dashed var(--ouro); outline-offset: 2px; }

/* carta de amigo: o amigo no lugar dele, com os valores ao lado */
.sc-amigo { --moldura: #ab47bc; --moldura-2: #6a1b9a; }
.sc-amigo:has(.sc-valores) {
  display: grid; grid-template-columns: clamp(80px, 13cqw, 200px) auto; grid-template-rows: 1fr auto;
  grid-template-areas: "janela valores" "nome valores"; gap: 6px; height: clamp(170px, 58cqh, 380px);
}
.sc-amigo:has(.sc-valores) .sc-janela { grid-area: janela; }
.sc-amigo:has(.sc-valores) .sc-nome { grid-area: nome; }
.sc-amigo:has(.sc-valores) .sc-valores { grid-area: valores; align-content: stretch; }
.sc-valores { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.sc-valor {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 6px;
  border-radius: 10px; background: var(--creme); font-size: clamp(11px, 2.4cqh, 16px); font-weight: bold; line-height: 1.1;
}
.sc-valor b { font-size: clamp(18px, 6cqh, 42px); color: #1f4e8c; line-height: 1; }
button.sc-valor { min-width: var(--alvo); min-height: var(--alvo); border: 0; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); font: inherit; font-weight: bold; font-size: clamp(13px, 2.6cqh, 18px); cursor: pointer; }
.sc-valor.destaque { background: var(--ouro); }

/* carta de número: o número e figurinhas para contar */
.sc-numero { background: var(--creme); box-shadow: inset 0 0 0 6px #ffb300, inset 0 0 0 8px #fff, 0 4px 0 rgba(0,0,0,0.3); justify-content: center; align-items: center; width: clamp(var(--alvo), 16cqw, 170px); height: clamp(var(--alvo), 46cqh, 230px); }
.sc-algarismo { font-size: clamp(30px, 10cqh, 64px); font-weight: 900; color: #1f4e8c; line-height: 1; }
.sc-pontos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; }
.sc-ponto { width: clamp(12px, 3.6cqh, 26px); height: clamp(12px, 3.6cqh, 26px); }
.sc-ponto svg { width: 100%; height: 100%; }
.sc-bolhas .sc-imagem svg { width: 80%; }

/* ---------- salão (menu) ---------- */
.sc-salao, .sc-tela-modo, .sc-especiais, .sc-fim, .sc-tchau {
  flex-direction: column; align-items: center; justify-content: center; gap: clamp(6px, 2cqh, 18px); padding: 6px;
}
.sc-mesas { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(6px, 1.4cqw, 16px); }
.sc-mesa-jogo {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px;
  width: clamp(116px, 17cqw, 250px); height: clamp(136px, 56cqh, 330px); padding: 8px; border: 0; border-radius: 18px;
  background: var(--feltro-claro); box-shadow: inset 0 0 0 4px #8a5a2b, var(--sombra); color: var(--creme); font: inherit; cursor: pointer;
}
.sc-mesa-jogo .sc-carta { width: 70%; height: 72%; min-width: 0; min-height: 0; transform: rotate(-4deg); }
.sc-mesa-nome { font-weight: bold; font-size: clamp(13px, 1.8cqw, 20px); line-height: 1.1; text-align: center; }
.sc-rodape { display: flex; gap: 12px; }
.sc-rodape .botao-secundario, .sc-especiais > .botao-secundario { min-height: var(--alvo); padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: bold; box-shadow: var(--sombra); }

/* ---------- com quem jogar e quantas cartas: blocos grandes, como cartas sobre a mesa ---------- */
.sc-tela-modo { flex-direction: row; flex-wrap: wrap; align-content: center; column-gap: clamp(14px, 3cqw, 40px); }
.sc-tela-modo > .sc-titulo { flex-basis: 100%; }
.sc-modos, .sc-amigos { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: clamp(8px, 1.4cqw, 18px); }
.sc-amigos { position: relative; padding: clamp(22px, 5cqh, 34px) clamp(8px, 1cqw, 14px) clamp(8px, 1cqw, 14px); border-radius: 24px; background: rgba(255, 250, 240, 0.14); border: 3px dashed rgba(255, 250, 240, 0.45); }
.sc-amigos-titulo { position: absolute; top: 4px; left: 0; right: 0; text-align: center; color: var(--creme); font-weight: bold; font-size: clamp(13px, 3.4cqh, 26px); }
.sc-modo {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px;
  width: clamp(112px, 16cqw, 280px); min-height: var(--alvo); height: clamp(var(--alvo), 50cqh, 380px); padding: 10px 8px 12px;
  border: 0; border-top: 10px solid var(--cor-bloco, var(--ouro)); border-radius: 20px; background: var(--creme);
  font: inherit; font-weight: bold; font-size: clamp(14px, 4.4cqh, 30px); line-height: 1.1; text-align: center;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22); cursor: pointer; transition: transform 0.15s;
}
.sc-modo:hover, .sc-modo:focus-visible { transform: translateY(-4px) rotate(-1deg); }
.sc-modo:active { transform: translateY(2px); }
.sc-contra { --cor-bloco: #ff8a3d; }
.sc-juntos { --cor-bloco: #4fa3e0; }
.sc-com-amigos { --cor-bloco: #ba68c8; }
.sc-com-amigos .sc-modo-figuras img { margin: 0 -10px; height: clamp(34px, 20cqh, 160px); }
.sc-quantos { --cor-bloco: #ba68c8; width: clamp(96px, 12cqw, 220px); }
.sc-tamanho { --cor-bloco: var(--ouro); width: clamp(130px, 19cqw, 300px); }
.sc-modo-figuras { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sc-modo-figuras img { height: clamp(40px, 26cqh, 210px); max-width: 100%; object-fit: contain; }
.sc-quantos .sc-modo-figuras { flex-wrap: wrap; align-content: center; max-width: 100%; }
.sc-quantos .sc-modo-figuras img { height: clamp(26px, 11cqh, 90px); max-width: 48%; margin: 0 -2px; }
.sc-juntos .sc-modo-figuras img { margin: 0 -10px; }
.sc-mini-verso {
  display: inline-block; flex: 0 0 auto; width: clamp(24px, 11cqh, 80px); aspect-ratio: 5 / 7; border-radius: 6px;
  border: 3px solid var(--creme); background: repeating-linear-gradient(45deg, #1f4e8c 0 5px, #2b63a8 5px 10px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.sc-modo-figuras .sc-mini-verso { margin: 0 -1.2cqh; }
.sc-modo-figuras .sc-mini-verso:nth-child(odd) { transform: rotate(-8deg); }
.sc-modo-figuras .sc-mini-verso:nth-child(even) { transform: rotate(7deg) translateY(-4px); }
.sc-como {
  position: absolute; top: 4px; right: 4px; display: flex; align-items: center; gap: 6px; min-height: var(--alvo); padding: 2px 16px 2px 4px;
  border: 0; border-radius: 999px; font: inherit; font-weight: bold; font-size: clamp(13px, 2cqh, 18px); box-shadow: var(--sombra);
}
.sc-como img { height: calc(var(--alvo) - 10px); }

/* ---------- a mesa de jogo ---------- */
.sc-jogo { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 4px 6px; }
.sc-faixa { display: flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; }
.sc-jogador {
  display: flex; align-items: center; gap: 4px; padding: 2px 10px 2px 2px; border-radius: 999px;
  background: rgba(255, 250, 240, 0.75); font-weight: bold; font-size: clamp(12px, 1.6cqw, 17px);
}
.sc-jogador img { height: clamp(34px, 9cqh, 56px); }
.sc-jogador.da-vez { background: var(--ouro); box-shadow: 0 0 0 3px var(--creme); }
.sc-jogador-info { color: #8a5a00; letter-spacing: 1px; }

.sc-grade {
  flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: repeat(var(--colunas), max-content);
  grid-template-rows: repeat(2, minmax(var(--alvo), 1fr)); gap: clamp(6px, 1.4cqh, 14px); justify-content: center;
}
.sc-grade .sc-carta { height: 100%; width: auto; aspect-ratio: 5 / 7; min-width: var(--alvo); }

.sc-mesa { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-lado { display: flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.sc-outro {
  position: relative; display: flex; align-items: center; justify-content: center; min-width: var(--alvo); min-height: var(--alvo);
  border: 0; border-radius: 16px; background: rgba(255, 250, 240, 0.25); font: inherit;
}
.sc-outro img { height: calc(var(--alvo) - 14px); }
.sc-pilhinha { position: absolute; right: -4px; bottom: -4px; min-width: 30px; padding: 2px 6px; border-radius: 999px; background: #2b63a8; color: var(--creme); font-weight: bold; }
.sc-lago, .sc-pilha {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: var(--alvo); min-height: var(--alvo); padding: 4px 8px; border: 0; border-radius: 16px;
  background: rgba(30, 80, 140, 0.55); color: var(--creme); font: inherit; font-weight: bold;
}
.sc-pilha .sc-carta { width: calc(var(--alvo) - 8px); height: calc(var(--alvo) + 10px); min-width: 0; min-height: 0; }
.sc-mao { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 6px; }
.sc-mao > .sc-carta { width: clamp(var(--alvo), 12cqw, 150px); height: clamp(var(--alvo), 36cqh, 200px); }
.sc-mao-aberta { display: flex; gap: 3px; padding: 4px; border-radius: 12px; background: rgba(255, 250, 240, 0.25); }
.sc-mao-aberta .sc-carta { width: 44px; height: 60px; min-width: 0; min-height: 0; padding: 1px; }
.sc-mao-aberta .sc-nome { display: none; }

.sc-mesa-rodada { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 10px; }
.sc-lugar { display: flex; align-items: center; justify-content: center; }
.sc-lugar > .sc-verso, .sc-mostrar .sc-verso { width: clamp(var(--alvo), 14cqw, 160px); height: clamp(var(--alvo), 42cqh, 220px); }
.sc-lugar.ganhou > .sc-carta { box-shadow: 0 0 0 5px var(--ouro); }
.sc-mostrar { padding: 0; border: 0; background: none; border-radius: 14px; outline: 5px dashed var(--ouro); outline-offset: 3px; cursor: pointer; }

.sc-opcoes { display: flex; gap: 12px; flex-basis: 100%; justify-content: center; }
.sc-opcao, .sc-igual {
  min-width: var(--alvo); min-height: var(--alvo); padding: 0 16px; border: 0; border-radius: 18px;
  background: var(--creme); font: inherit; font-size: clamp(22px, 4cqh, 34px); font-weight: 900; box-shadow: var(--sombra); cursor: pointer;
}
.sc-bolhas-campo { display: flex; gap: 8px; flex-basis: 100%; justify-content: center; }
.sc-bolha { width: var(--alvo); height: var(--alvo); padding: 0; border: 0; background: none; cursor: pointer; transition: transform 0.25s, opacity 0.25s; }
.sc-bolha svg { width: 100%; height: 100%; }
.sc-bolha.estourou { transform: scale(1.4); opacity: 0; }

/* passe o aparelho: cobre a mesa toda */
.sc-passe {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #1f4e8c; color: var(--creme); font-size: clamp(18px, 3cqh, 26px); font-weight: bold; text-align: center; border-radius: 16px;
}
.sc-passe p { margin: 0 16px; }
.sc-passe-figura img { height: clamp(60px, 26cqh, 160px); }

/* ---------- fim, especiais, despedida ---------- */
.sc-fim-turma { display: flex; gap: 12px; justify-content: center; }
.sc-fim-jogador { display: flex; flex-direction: column; align-items: center; color: var(--creme); font-weight: bold; }
.sc-fim-jogador img { height: clamp(50px, 18cqh, 120px); }
.sc-fim-jogador.ganhou img { filter: drop-shadow(0 0 8px var(--ouro)); }
.sc-fim-textos { text-align: center; color: var(--creme); }
.sc-fim-textos p { margin: 2px 0; }
.sc-fim-titulo { font-size: clamp(22px, 5cqh, 36px); font-weight: 900; color: var(--creme); margin: 0; }
.sc-fim-valor { font-size: clamp(16px, 3.4cqh, 24px); color: var(--ouro); font-weight: bold; }
.sc-fim-extra { font-size: clamp(14px, 2.8cqh, 20px); }
.sc-fim-botoes { display: flex; gap: 12px; }
.sc-fim-botoes .botao-secundario { min-height: var(--alvo); padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: bold; box-shadow: var(--sombra); }
.sc-especiais-grade { display: grid; grid-template-columns: repeat(8, minmax(var(--alvo), 110px)); gap: 6px; }
.sc-especiais-grade .sc-carta { height: clamp(var(--alvo), 26cqh, 150px); }
.sc-tchau-amigo { width: clamp(var(--alvo), 13cqw, 150px); height: clamp(var(--alvo), 30cqh, 180px); padding: 4px; border: 0; border-radius: 18px; background: rgba(255, 250, 240, 0.3); cursor: pointer; }
.sc-tchau-amigo img { max-width: 100%; max-height: 100%; }

@media (max-height: 460px) {
  .sc-tela-modo .sc-titulo, .sc-especiais .sc-titulo { display: none; }
  .sc-especiais-grade .sc-carta .sc-nome { display: none; }
}

/* ---------- salão em duas partes ---------- */
.sc-salao { flex-direction: row; flex-wrap: nowrap; align-content: center; column-gap: clamp(10px, 2cqw, 30px); }
.sc-secoes { display: flex; flex-direction: column; gap: clamp(4px, 1.6cqh, 16px); }
.sc-secao { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sc-secao-titulo { margin: 0; color: var(--ouro); font-size: clamp(14px, 3.6cqh, 26px); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.sc-salao .sc-mesa-jogo { width: clamp(var(--alvo), 12.5cqw, 210px); height: clamp(var(--alvo), 34cqh, 250px); padding: 6px; }
.sc-salao .sc-mesa-jogo .sc-carta { width: auto; height: 74%; aspect-ratio: 5 / 7; min-width: 0; min-height: 0; padding: 3px; }
.sc-salao .sc-mesa-nome { font-size: clamp(12px, 2.6cqh, 19px); }
.sc-salao .sc-rodape { flex-direction: column; }
.sc-salao .sc-rodape .botao-secundario { padding: 0 14px; font-size: clamp(13px, 2.6cqh, 18px); }

/* ---------- carta do baralho de verdade ---------- */
.sc-comum {
  --cor-naipe: #1d2b3a; background: #fffef9; box-shadow: inset 0 0 0 2px #d8d0bd, 0 4px 0 rgba(0, 0, 0, 0.3), 0 8px 14px rgba(0, 0, 0, 0.18);
  align-items: center; justify-content: center; aspect-ratio: 5 / 7; color: var(--cor-naipe); padding: 4px;
}
.sc-comum.vermelha { --cor-naipe: #d32f2f; }
.sc-c-canto { position: absolute; top: 4%; left: 6%; display: flex; flex-direction: column; align-items: center; line-height: 0.95; font-size: clamp(11px, 2.6cqh, 20px); }
.sc-c-canto b { font-size: 1.25em; }
.sc-c-canto.baixo { top: auto; left: auto; bottom: 4%; right: 6%; transform: rotate(180deg); }
.sc-c-as { font-size: clamp(30px, 11cqh, 80px); line-height: 1; }
.sc-c-pips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18%; width: 62%; justify-items: center; font-size: clamp(10px, 3.2cqh, 24px); line-height: 1.05; }
.sc-c-pips-1, .sc-c-pips-2, .sc-c-pips-3 { grid-template-columns: 1fr; }
.sc-c-coroa { display: flex; flex-direction: column; align-items: center; width: 62%; }
.sc-c-coroa svg { width: 100%; }
.sc-c-coroa b { font-size: clamp(22px, 8cqh, 56px); line-height: 1; }
.sc-c-coroa small { font-size: clamp(10px, 2.4cqh, 16px); font-weight: bold; padding: 0 6px; border-radius: 99px; background: var(--ouro); color: #1d2b3a; }
.sc-mico { background: radial-gradient(circle, #fff8e1, #ffe0b2); }
.sc-c-mico { width: 80%; } .sc-c-mico svg { width: 100%; display: block; }
.sc-c-nome-mico { font-weight: 900; color: #8d5a2b; font-size: clamp(12px, 3cqh, 22px); }
.pode { box-shadow: 0 0 0 5px var(--ouro), 0 0 18px 6px rgba(255, 213, 79, 0.8) !important; }
.chegou { animation: sc-chegou 0.6s ease-out; }
@keyframes sc-chegou { from { transform: translateY(-30px) scale(1.1); } to { transform: none; } }

/* ---------- como se joga (passo a passo) ---------- */
.sc-aprender { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 8px; padding: 6px 12px; align-items: center; }
.sc-aprender-galinha img { height: clamp(70px, 40cqh, 260px); }
.sc-aprender-quadro { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 20px; background: rgba(255, 250, 240, 0.95); min-height: 0; }
.sc-aprender-passo { font-weight: bold; color: #6d4423; font-size: clamp(12px, 2.4cqh, 16px); }
.sc-aprender-texto { margin: 0; text-align: center; font-size: clamp(15px, 3.8cqh, 26px); font-weight: bold; color: #1d2b3a; }
.sc-aprender-cartas { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sc-aprender-cartas .sc-carta { height: clamp(var(--alvo), 30cqh, 200px); width: auto; }
.sc-aprender-botoes { grid-column: 1 / -1; display: flex; justify-content: center; gap: 12px; }
.sc-aprender-botoes .botao-secundario { min-height: var(--alvo); padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: bold; box-shadow: var(--sombra); }

/* ---------- Rouba-Monte ---------- */
.sc-roubamonte { gap: 4px; }
.sc-rm-montes, .sc-rm-mesa { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.sc-rm-monte { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 14px; background: rgba(255, 250, 240, 0.18); }
.sc-rm-monte img { height: clamp(30px, 9cqh, 60px); }
.sc-rm-monte .sc-carta, .sc-rm-mesa .sc-carta { height: clamp(66px, 22cqh, 150px); width: auto; min-width: 0; min-height: 0; }
.sc-rm-vazio { width: clamp(36px, 12cqh, 96px); aspect-ratio: 5 / 7; border: 3px dashed rgba(255, 250, 240, 0.5); border-radius: 10px; }
.sc-rm-baralho { display: flex; flex-direction: column; align-items: center; color: var(--creme); }
.sc-rm-mesa { padding: 6px 12px; border-radius: 16px; background: rgba(0, 0, 0, 0.12); min-height: clamp(60px, 20cqh, 150px); }
.sc-rm-rotulo { color: var(--creme); font-weight: bold; writing-mode: vertical-rl; transform: rotate(180deg); }
.sc-roubamonte .sc-mao > .sc-carta { width: auto; height: clamp(calc(var(--alvo) * 1.2), 34cqh, 260px); }

/* ---------- Mico ---------- */
.sc-mico-alvo { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; flex: 0 0 auto; }
.sc-mico-de img { height: clamp(40px, 16cqh, 120px); }
.sc-mico-alvo .sc-verso { width: auto; height: clamp(calc(var(--alvo) * 1.35), 30cqh, 180px); aspect-ratio: 5 / 7; }
.sc-mico-alvo { flex-wrap: wrap; row-gap: 6px; }
.sc-mico-alvo .sc-verso + .sc-verso { margin-left: clamp(-34px, -2cqw, -10px); }
.sc-mico-mesa .sc-mao > .sc-carta { min-width: 0; min-height: 0; width: auto; height: clamp(76px, 30cqh, 220px); cursor: pointer; }
.sc-salao .sc-mesa-jogo .sc-nome { display: none; }

/* ---------- Paciência ---------- */
.sc-paciencia { gap: 6px; }
.sc-pc-topo { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; }
.sc-pc-topo > * { height: clamp(var(--alvo), 26cqh, 190px); width: auto; aspect-ratio: 5 / 7; min-width: var(--alvo); }
.sc-pc-topo > .sc-pc-espaco { min-width: 0; width: clamp(4px, 2cqw, 40px); aspect-ratio: auto; }
.sc-pc-topo > .sc-pc-dica { aspect-ratio: auto; min-width: var(--alvo); padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-weight: bold; box-shadow: var(--sombra); height: var(--alvo); }
.sc-pc-casa, .sc-pc-vazio {
  display: grid; place-items: center; border-radius: 12px; border: 3px dashed rgba(255, 250, 240, 0.6); background: rgba(255, 250, 240, 0.1);
  color: rgba(255, 250, 240, 0.85); font-size: clamp(22px, 8cqh, 54px); font: inherit; font-size: clamp(22px, 8cqh, 54px);
}
.sc-pc-casa.vermelha { color: #ff8a80; }
.sc-pc-colunas { flex: 1; min-height: 0; display: flex; justify-content: center; gap: clamp(10px, 3cqw, 40px); }
.sc-pc-coluna { position: relative; height: 100%; width: clamp(var(--alvo), 16cqh, 150px); }
.sc-pc-coluna > .sc-carta {
  position: absolute; left: 0; width: 100%; height: auto; aspect-ratio: 5 / 7; min-height: var(--alvo);
  top: calc(var(--pos) * min(30px, (100% - clamp(var(--alvo), 16cqh, 150px) * 1.4) / max(1, var(--quantas) - 1)));
}

/* ---------- impressão do baralho ---------- */
#sc-impressao { display: none; }
@media print {
  body > *:not(#sc-impressao) { display: none !important; }
  body { background: #fff; }
  #sc-impressao { display: block; color: #000; font: 11pt/1.3 "Trebuchet MS", sans-serif; }
  .sc-impressao-cartas { display: flex; flex-wrap: wrap; gap: 0; }
  .sc-impressao-cartas .sc-carta {
    width: 63mm; height: 88mm; min-width: 0; min-height: 0; border: 0.3mm dashed #888; border-radius: 3mm; box-shadow: none;
    break-inside: avoid; page-break-inside: avoid;
  }
  .sc-impressao-cartas .sc-nome { font-size: 14pt; }
  .sc-impressao-cartas .sc-amigo:has(.sc-valores) .sc-imagem { width: 30mm; height: 40mm; }
  .sc-impressao-cartas .sc-valor { font-size: 10pt; }
  .sc-impressao-cartas .sc-algarismo { font-size: 40pt; }
  .sc-impressao-cartas .sc-ponto { width: 9mm; height: 9mm; }
  .sc-impressao-regras { break-after: page; }
}
