/* Baralho comum dos jogos de cartas. A largura vem de --cw, definida pela página ou pela mesa (padrão 80px);
   a altura é 1,4 vez a largura. Não definir --cw na própria carta, senão ela ignora o tamanho da mesa. */
:root { --cw: 80px; }
.bz-carta { position: relative; display: block; width: var(--cw); height: calc(var(--cw) * 1.4); box-sizing: border-box;
  border-radius: calc(var(--cw) * .08); background: linear-gradient(160deg, #ffffff, #f7f3ea); border: 1px solid #c9bfab;
  box-shadow: 0 1px 2px rgba(0,0,0,.28); color: #1d1d1f; font-family: "Georgia", "Times New Roman", serif; user-select: none; -webkit-user-select: none; overflow: hidden; }
.bz-carta.vermelha { color: #c0262d; }
.bz-canto { position: absolute; left: 6%; top: 3.5%; display: flex; flex-direction: column; align-items: center; line-height: .92; font-size: calc(var(--cw) * .25); font-weight: 700; letter-spacing: -.04em; }
.bz-canto i { font-style: normal; font-weight: 400; font-size: .82em; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", serif; }
.bz-canto.inf { left: auto; top: auto; right: 6%; bottom: 3.5%; transform: rotate(180deg); }
.bz-centro { position: absolute; inset: 10% 23%; }
.bz-ponto { position: absolute; transform: translate(-50%, -50%); font-size: calc(var(--cw) * .2); line-height: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", serif; }
.bz-ponto.inv { transform: translate(-50%, -50%) rotate(180deg); }
.bz-as { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--cw) * .42); line-height: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", serif; }
.bz-as.espadas { font-size: calc(var(--cw) * .62); }
.bz-as.espadas::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid currentColor; opacity: .25; }
.bz-centro.corte { inset: 8% 21%; }
.bz-figura { width: 100%; height: 100%; display: block; fill: currentColor; }
.bz-figura text { font-family: "Segoe UI Symbol", "DejaVu Sans", serif; }
.bz-figura .bz-letra { font-family: "Georgia", serif; font-weight: 700; fill: currentColor; paint-order: stroke; stroke: #fbf3e1; stroke-width: 3px; }
.bz-moldura { fill: #fbf3e1; stroke: currentColor; stroke-width: 1.2; }
.bz-carta.preta .bz-moldura { fill: #eef1f6; }
.bz-linha { stroke: currentColor; stroke-width: .6; opacity: .35; }

/* verso */
.bz-verso { background-color: #7a2632; border: 1px solid #4d151d;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.13) 0 1.5px, transparent 1.5px 7px), repeating-linear-gradient(-45deg, rgba(255,255,255,.13) 0 1.5px, transparent 1.5px 7px); }
.bz-verso::before { content: ""; position: absolute; inset: 6%; border: 1.5px solid rgba(255, 230, 190, .55); border-radius: calc(var(--cw) * .05); }
.bz-emblema { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); background: #7a2632; border: 1.5px solid rgba(255, 230, 190, .75); box-shadow: 0 0 0 3px #7a2632; }
.bz-emblema::after { content: ""; position: absolute; inset: 28%; background: rgba(255, 230, 190, .75); }

/* lugar vazio de uma pilha */
.bz-vaga { display: block; width: var(--cw); height: calc(var(--cw) * 1.4); box-sizing: border-box; border-radius: calc(var(--cw) * .08); border: 2px dashed rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .08); }

/* Coringa (Buraco) */
.bz-coringa { color: #6a2c91; }
.bz-coringa .bz-canto b { font-size: 1.05em; }
.bz-bobo { width: 100%; height: 100%; display: block; }
.bz-bobo .chapeu { fill: #8a3cc2; stroke: #4a1a6b; stroke-width: 1.2; }
.bz-bobo .guizo { fill: #e8b33a; stroke: #8a6414; stroke-width: .8; }
.bz-bobo .rosto { fill: #fde6c8; stroke: #8a6a4a; stroke-width: 1; }
.bz-bobo .boca { fill: none; stroke: #b0382a; stroke-width: 1.4; stroke-linecap: round; }
.bz-bobo .corpo { fill: #d23c5a; stroke: #7a1f33; stroke-width: 1; }
.bz-bobo .nome { fill: #6a2c91; font-family: Georgia, serif; font-weight: 700; letter-spacing: .04em; }
.bz-bobo circle:not([class]) { fill: #2a1a10; }
