/* O brasão pixelado do clã (tela-emblema.js): o desenho e o pintor. */
.emblema-pixel { display: block; image-rendering: pixelated; }
.emblema-chat { display: inline-block; vertical-align: -3px; margin-right: 3px; }
.emblema-chat .emblema-pixel { border-radius: 2px; }
#cla .cla-emblema.com-arte { background: radial-gradient(circle at 35% 30%, #1f3d55, #0b1a26 75%); }
#cla .cla-emblema.com-arte > .emblema-pixel { border-radius: 4px; }

.emblema-pintor { margin: .4rem 0 .8rem; }
.emblema-corpo { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: flex-start; }
.emblema-grade { display: grid; grid-template-columns: repeat(8, 1fr); width: min(256px, 100%); aspect-ratio: 1; touch-action: none; user-select: none;
  border: 3px solid var(--contorno, #2a1a0e); border-radius: 6px; background: var(--painel-fundo, #0b1a26); cursor: crosshair; }
.emblema-celula { border: 1px solid #ffffff14; }
.emblema-celula.vazia { background: repeating-conic-gradient(#ffffff0d 0 25%, #0000 0 50%) 0 0 / 50% 50%; }
.emblema-lado { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.emblema-previa { display: flex; align-items: flex-end; gap: .6rem; min-height: 48px; }
.emblema-previa.sem-arte::after { content: "prévia"; color: var(--suave); font-size: .8rem; }
.emblema-paleta { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; width: min(256px, 100%); margin-top: .5rem; }
.emblema-amostra { aspect-ratio: 1; padding: 0; border: 2px solid var(--contorno, #2a1a0e); border-radius: 4px; }
.emblema-amostra.borracha { background: repeating-conic-gradient(#ffffff26 0 25%, #0000 0 50%) 0 0 / 50% 50%; }
.emblema-amostra.ativa { outline: 3px solid var(--ouro); outline-offset: 1px; }
