/* Xadrez — cores do site Biografia */
.xz-palco { display: grid; grid-template-columns: 230px minmax(0, 1fr) 230px; gap: 1.4rem; align-items: start; width: 100%; }
.xz-painel { background: var(--papel); border: 1px solid var(--fio); border-radius: 12px; padding: 1rem; }
.xz-painel h2 { margin: 0 0 .8rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--realce); font-weight: 600; }
.xz-campo { display: grid; gap: .3rem; font-family: var(--sans); font-size: .8rem; color: var(--tinta-suave); margin-bottom: .8rem; }
.xz-campo select { font: inherit; font-size: .92rem; color: var(--tinta); background: var(--papel-2); border: 1px solid var(--fio); border-radius: 8px; padding: .45rem .5rem; }
.xz-botoes { display: grid; gap: .45rem; }
.xz-botao { font-family: var(--sans); font-size: .9rem; padding: .55rem .9rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--fio); background: var(--papel-2); color: var(--tinta); transition: border-color .2s, color .2s; }
.xz-botao:hover:not(:disabled) { border-color: var(--realce); color: var(--realce); }
.xz-botao:disabled { opacity: .5; cursor: default; }
.xz-botao.principal { background: var(--realce); border-color: var(--realce); color: var(--papel); font-weight: 600; }
.xz-botao.principal:hover { background: var(--realce-forte); color: var(--papel); }
.xz-chave { display: flex; gap: .5rem; align-items: center; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--fio); font-family: var(--sans); font-size: .88rem; }
.xz-chave input { accent-color: var(--realce); width: 1rem; height: 1rem; }

.xz-centro { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.xz-status { min-height: 2.3rem; padding: .45rem 1.1rem; border-radius: 999px; font-family: var(--sans); font-size: .95rem; background: var(--papel); border: 1px solid var(--fio); text-align: center; }
.xz-status.alerta { background: var(--realce); color: var(--papel); border-color: var(--realce); }
.xz-tabuleiro-moldura { padding: 10px; border-radius: 10px; background: #5a3a24; box-shadow: var(--sombra); }
.xz-tabuleiro { position: relative; width: min(520px, 84vw); aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); }
.xz-casa { position: relative; border: 0; padding: 0; margin: 0; cursor: pointer; display: grid; place-items: center; background: #efdcb9; font: inherit; }
.xz-casa.escura { background: #b07c55; }
.xz-casa:focus-visible { outline: 3px solid #2b6cb0; outline-offset: -3px; z-index: 2; }
.xz-casa.ultimo { box-shadow: inset 0 0 0 100px rgba(255, 214, 64, .38); }
.xz-casa.selecionada { box-shadow: inset 0 0 0 100px rgba(74, 144, 226, .45); }
.xz-casa.xeque { background: radial-gradient(circle, #ff4d4d 0%, #d33 45%, transparent 75%), #b07c55; }
.xz-casa.dica { box-shadow: inset 0 0 0 4px #2f9e57, inset 0 0 0 100px rgba(47, 158, 87, .3); }
.xz-casa .ponto { position: absolute; width: 30%; height: 30%; border-radius: 50%; background: rgba(30, 30, 30, .28); pointer-events: none; }
.xz-casa .anel { position: absolute; inset: 6%; border-radius: 50%; border: 5px solid rgba(30, 30, 30, .3); pointer-events: none; }
.xz-coord { position: absolute; font-family: var(--sans); font-size: .62rem; font-weight: 700; pointer-events: none; opacity: .75; }
.xz-coord.letra { right: 3px; bottom: 1px; } .xz-coord.numero { left: 3px; top: 1px; }
.xz-casa .xz-coord { color: #b07c55; } .xz-casa.escura .xz-coord { color: #efdcb9; }

/* Peças: mesmo desenho cheio para os dois lados; brancas = marfim com contorno escuro (bem visíveis) */
.peca { font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", "Arial Unicode MS", serif; line-height: 1; font-size: min(3.1rem, 8.4vw); user-select: none; pointer-events: none; transition: transform .15s; }
.peca.w { color: #fffaf0; text-shadow: 0 0 1px #000, 1px 1px 0 #1e1610, -1px -1px 0 #1e1610, 1px -1px 0 #1e1610, -1px 1px 0 #1e1610, 0 2px 3px rgba(0,0,0,.45); }
.peca.b { color: #1e1610; text-shadow: 0 0 1px #000, 0 1px 0 rgba(255,255,255,.35), 0 2px 3px rgba(0,0,0,.35); }
.xz-casa.selecionada .peca { transform: scale(1.12); }

.xz-capturadas { min-height: 1.8rem; font-size: 1.45rem; letter-spacing: -.1em; display: flex; flex-wrap: wrap; gap: 0 .15rem; align-items: center; }
.xz-capturadas .peca { font-size: 1.5rem; }
.xz-capturadas .vantagem { font-family: var(--sans); font-size: .8rem; letter-spacing: 0; color: var(--tinta-suave); margin-left: .4rem; }
.xz-dica-texto { margin: .2rem 0 0; max-width: 520px; text-align: center; font-size: .98rem; color: var(--tinta); background: var(--papel); border: 1px solid #2f9e57; border-radius: 10px; padding: .6rem .9rem; }

.xz-lances { margin: 0; padding: 0; list-style: none; max-height: 430px; overflow-y: auto; font-family: var(--sans); font-size: .9rem; counter-reset: lance; }
.xz-lances li { display: grid; grid-template-columns: 2.1rem 1fr 1fr; gap: .2rem; padding: .22rem .3rem; border-radius: 6px; }
.xz-lances li:nth-child(odd) { background: var(--papel-2); }
.xz-lances .n { color: var(--tinta-suave); }
.xz-lances .eu { font-weight: 600; }
.xz-lances .novo { animation: piscar 1.2s; border-radius: 4px; }
@keyframes piscar { 0% { background: rgba(255, 214, 64, .7); } 100% { background: transparent; } }
.xz-lances-vazio { color: var(--tinta-suave); font-size: .88rem; font-style: italic; }
.xz-legenda { margin: .8rem 0 0; font-family: var(--sans); font-size: .72rem; line-height: 1.5; color: var(--tinta-suave); border-top: 1px solid var(--fio); padding-top: .6rem; }

/* Diálogos */
.xz-dialogo { border: 1px solid var(--fio); border-radius: 14px; background: var(--papel); color: var(--tinta); padding: 1.4rem; box-shadow: 0 30px 80px rgba(0,0,0,.4); max-width: min(680px, 94vw); }
.xz-dialogo::backdrop { background: rgba(20, 15, 10, .55); }
.xz-dialogo h2 { font-family: var(--serif-titulo); font-weight: 600; font-size: 1.8rem; margin: 0 0 .8rem; line-height: 1.1; }
.xz-promo-opcoes { display: flex; gap: .6rem; justify-content: center; }
.xz-promo-opcoes button { width: 4.4rem; height: 4.4rem; border-radius: 12px; border: 1px solid var(--fio); background: #efdcb9; cursor: pointer; display: grid; place-items: center; }
.xz-promo-opcoes button:hover { border-color: var(--realce); }
.xz-promo-opcoes .peca { font-size: 2.8rem; }
.xz-tutorial { width: min(680px, 94vw); position: fixed; }
.xz-fechar { position: absolute; top: .6rem; right: .8rem; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--tinta-suave); }
.xz-passo { margin: 0; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--realce); }
.xz-tut-corpo { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; align-items: start; }
.xz-tut-texto { font-size: 1rem; line-height: 1.6; }
.xz-tut-texto p { margin: 0 0 .7rem; }
.xz-tut-texto ul { margin: 0 0 .7rem; padding-left: 1.1rem; }
.xz-mini { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); width: 220px; aspect-ratio: 1; border: 5px solid #5a3a24; border-radius: 6px; }
.xz-mini:empty { display: none; }
.xz-mini div { display: grid; place-items: center; background: #efdcb9; position: relative; }
.xz-mini div.escura { background: #b07c55; }
.xz-mini .peca { font-size: 1.35rem; }
.xz-mini .alvo::after { content: ""; position: absolute; width: 34%; height: 34%; border-radius: 50%; background: rgba(47, 158, 87, .85); }
.xz-mini .captura::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 3px solid #d33; }
.xz-mini .destaque { box-shadow: inset 0 0 0 100px rgba(255, 214, 64, .45); }
.xz-tut-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; gap: .5rem; }
.xz-pontos { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.xz-pontos span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--fio); }
.xz-pontos span.ativo { background: var(--realce); }

@media (max-width: 980px) {
  .xz-palco { grid-template-columns: 1fr; }
  .xz-centro { order: -1; }
  .xz-botoes { grid-template-columns: 1fr 1fr; }
  .xz-lances { max-height: 220px; }
}
@media (max-width: 560px) {
  .xz-tut-corpo { grid-template-columns: 1fr; justify-items: center; }
  .xz-tabuleiro-moldura { padding: 5px; }
}

/* Placar (damas, gamão) */
.dm-placar { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; text-align: center; font-family: var(--sans); font-size: .72rem; color: var(--tinta-suave); }
.dm-placar div { background: var(--papel-2); border: 1px solid var(--fio); border-radius: 10px; padding: .5rem .2rem; }
.dm-placar b { display: block; font-family: var(--serif-titulo); font-size: 1.8rem; line-height: 1.05; color: var(--tinta); }
.dm-zerar { width: 100%; margin-top: .5rem; font-size: .8rem; padding: .35rem; }

.xz-lances li.xz-lances-vazio { display: block; }
.xz-campo select { width: 100%; min-width: 0; box-sizing: border-box; } /* textos longos não passam da borda do painel */
