/* Damas Chinesas: estrela de madeira com furos e bolinhas de vidro coloridas */
.xz-palco > .xz-centro { min-width: 0; }
.dc-vez { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; font: 600 .82rem var(--sans); }
.dc-vez span { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .7rem; border-radius: 999px; background: var(--papel); border: 1px solid var(--fio); color: var(--tinta); }
.dc-vez span.ativo { box-shadow: 0 0 0 3px #e0a43a; }
.dc-bolinha { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; vertical-align: -1px; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.dc-placar { grid-template-columns: repeat(2, 1fr); }
.dc-legenda { font: .74rem/1.35 var(--sans); color: var(--tinta-suave); margin: .2rem 0 .5rem; }

.dc-area { width: min(560px, 100%, calc((100vh - 230px) * .916)); min-width: 280px; margin: .4rem auto 0; touch-action: manipulation; }
.dc-svg { display: block; width: 100%; height: auto; overflow: visible; -webkit-tap-highlight-color: transparent; }
.dc-estrela { fill: url(#dcMadeira); stroke: #8a5526; stroke-width: .18; stroke-linejoin: round; }
.dc-base polygon:nth-child(2) { stroke: none; }
.dc-ponta { stroke: none; opacity: .3; }
.dc-furo { fill: #4a2c14; stroke: rgba(255,240,210,.45); stroke-width: .05; cursor: pointer; }
.dc-peca { cursor: pointer; transition: transform .17s ease-in-out; }
.dc-peca .dc-bola { stroke: rgba(0,0,0,.35); stroke-width: .04; filter: drop-shadow(0 .06px .05px rgba(0,0,0,.45)); }
.dc-reflexo { fill: rgba(255,255,255,.75); pointer-events: none; }
.dc-peca.sel .dc-bola { stroke: #fff; stroke-width: .1; }
.dc-peca.sel { animation: dc-pula .7s ease-in-out infinite alternate; }
@keyframes dc-pula { to { filter: brightness(1.18); } }
.dc-peca.voando { pointer-events: none; }
.dc-peca.voando .dc-bola { filter: drop-shadow(0 .25px .18px rgba(0,0,0,.45)); }
.dc-peca.ultima .dc-bola { stroke: #ffe28a; stroke-width: .08; }
.dc-ultima-de { fill: none; stroke: #ffe28a; stroke-width: .06; stroke-dasharray: .12 .1; }
.dc-alvo { fill: rgba(70, 200, 110, .55); stroke: #1f8a46; stroke-width: .07; cursor: pointer; animation: dc-alvo .8s ease-in-out infinite alternate; }
@keyframes dc-alvo { to { fill: rgba(70, 200, 110, .8); } }
.dc-caminho { fill: none; stroke: #fff6d6; stroke-width: .12; stroke-dasharray: .25 .18; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.dc-caminho.dica { stroke: #ffd34d; stroke-width: .16; }
.dc-peca.dica .dc-bola { stroke: #ffd34d; stroke-width: .14; }
.dc-dica-para { fill: none; stroke: #ffd34d; stroke-width: .1; stroke-dasharray: .2 .12; }

/* cores das bolinhas (gradiente: brilho, meio, fundo) */
.dc-brilho-rubi { stop-color: #ff9a8a; } .dc-meio-rubi { stop-color: #d8312a; } .dc-fundo-rubi { stop-color: #8e1712; }
.dc-brilho-safira { stop-color: #9cc4ff; } .dc-meio-safira { stop-color: #2f6fd6; } .dc-fundo-safira { stop-color: #173f8a; }
.dc-brilho-esmeralda { stop-color: #9be8b6; } .dc-meio-esmeralda { stop-color: #23a35a; } .dc-fundo-esmeralda { stop-color: #0f5f30; }
.dc-brilho-ouro { stop-color: #fff1a8; } .dc-meio-ouro { stop-color: #f0b81c; } .dc-fundo-ouro { stop-color: #a27406; }
.dc-brilho-ametista { stop-color: #d7b8ff; } .dc-meio-ametista { stop-color: #8a4fd0; } .dc-fundo-ametista { stop-color: #4f2588; }
.dc-brilho-perola { stop-color: #ffffff; } .dc-meio-perola { stop-color: #ece6da; } .dc-fundo-perola { stop-color: #a59c8c; }
.dc-ponta.dc-rubi { fill: #d8312a; } .dc-ponta.dc-safira { fill: #2f6fd6; } .dc-ponta.dc-esmeralda { fill: #23a35a; }
.dc-ponta.dc-ouro { fill: #f0b81c; } .dc-ponta.dc-ametista { fill: #8a4fd0; } .dc-ponta.dc-perola { fill: #fffaf0; }
.dc-bolinha.dc-rubi { background: #d8312a; } .dc-bolinha.dc-safira { background: #2f6fd6; } .dc-bolinha.dc-esmeralda { background: #23a35a; }
.dc-bolinha.dc-ouro { background: #f0b81c; } .dc-bolinha.dc-ametista { background: #8a4fd0; } .dc-bolinha.dc-perola { background: #ece6da; border: 1px solid #a59c8c; }

/* mini do tutorial */
.xz-mini.dc-mini { display: block; width: 220px; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; }
.dc-mini .dc-peca, .dc-mini .dc-alvo, .dc-mini .dc-furo { cursor: default; }

@media (prefers-reduced-motion: reduce) { .dc-peca, .dc-peca.sel, .dc-alvo { transition: none; animation: none; } }

/* tela cheia: a estrela cresce até caber na largura e na altura que sobra (com lugar para a Dica embaixo) */
body.tc { --dc-reserva: 62px; }
body.tc .dc-area { width: min(860px, calc(100vw - 24px), calc((var(--tc-alto, 700px) - 120px - var(--dc-reserva)) * .916)); }
body.tc .xz-centro:has(.dc-area) { position: relative; padding-bottom: var(--dc-reserva); box-sizing: border-box; }
body.tc .xz-centro:has(.dc-area) > .xz-dica-texto { position: absolute; left: 50%; top: calc(100% - var(--dc-reserva) + .3rem); transform: translateX(-50%);
  width: min(640px, 100%); max-width: none; margin: 0; box-sizing: border-box; padding: .45rem .8rem; font-size: .9rem; line-height: 1.35; z-index: 2; }
@media (max-width: 700px) {
  body.tc { --dc-reserva: 84px; }
  body.tc .xz-centro:has(.dc-area) > .xz-dica-texto { font-size: .8rem; padding: .35rem .6rem; line-height: 1.3; }
  .dc-vez { font-size: .72rem; }
}
