/* Forca: quadro-negro com a forca de madeira, letras em quadradinhos e teclado na tela */
.fc-quadro { width: min(560px, 100%); margin: 0 auto; padding: 1rem; box-sizing: border-box; border-radius: 16px; color: #f1efe6;
  background: radial-gradient(ellipse at 40% 30%, #3b5a4a, #26402f 70%, #1b2f22); box-shadow: inset 0 0 0 8px #6b4a2e, inset 0 0 0 11px #4a3220, 0 10px 24px rgba(0,0,0,.22); text-align: center; }
.fc-topo { display: flex; justify-content: space-between; font: 600 .85rem var(--sans); opacity: .9; padding: 0 .4rem; }
.fc-desenho { width: min(220px, 55vw); margin: .2rem auto 0; }
.fc-desenho svg { width: 100%; display: block; }
.fc-desenho .madeira { fill: #c99a5b; stroke: #c99a5b; stroke-linecap: round; }
.fc-desenho .corda { stroke: #e8d9b0; stroke-width: 3; }
.fc-desenho .boneco { fill: none; stroke: #f6f3ea; stroke-width: 5; stroke-linecap: round; }
.fc-desenho .boneco circle.olho { fill: #f6f3ea; stroke: none; }
.fc-desenho .boneco .olhos path { stroke-width: 2.4; }
.fc-desenho .boneco.caiu { stroke: #ff9a8a; animation: fc-balanca 1.4s ease-in-out infinite alternate; transform-origin: 150px 30px; }
@keyframes fc-balanca { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.fc-palavra { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: .8rem 0 .3rem; min-height: 2.6rem; }
.fc-letra { width: clamp(24px, 7vw, 36px); height: clamp(32px, 9vw, 44px); border-bottom: 3px solid #f1efe6; display: grid; place-items: center; font: 800 clamp(1.1rem, 5vw, 1.6rem) var(--sans); }
.fc-letra.certa { animation: fc-aparece .3s; }
.fc-letra.faltou { color: #ff9a8a; }
@keyframes fc-aparece { from { transform: translateY(-6px); opacity: 0; } }
.fc-espaco { width: 18px; } .fc-sinal { font: 800 1.4rem var(--sans); align-self: end; }
.fc-tema { font: 600 .95rem var(--sans); color: #ffe08a; }
.fc-teclado { display: grid; gap: 6px; width: min(560px, 100%); margin: .6rem auto 0; }
.fc-tlinha { display: flex; gap: 5px; justify-content: center; }
.fc-tecla { flex: 1 1 0; max-width: 52px; min-width: 0; height: 48px; border: 0; border-radius: 8px; cursor: pointer; font: 700 1.05rem var(--sans); color: var(--tinta); background: var(--papel); box-shadow: 0 2px 0 var(--fio); padding: 0; }
.fc-tecla:disabled { cursor: default; }
.fc-tecla.certa { background: #2f9e57; color: #fff; } .fc-tecla.errada { background: #7a7368; color: #fff; opacity: .6; }
.fc-tecla.dica { box-shadow: 0 0 0 3px #ffd23f; }
.fc-escolha { width: min(560px, 100%); margin: .6rem auto 0; padding: .8rem; box-sizing: border-box; border-radius: 12px; background: var(--papel); border: 1px solid var(--fio); font-family: var(--sans); text-align: center; }
.fc-escolha input { font: 600 1rem var(--sans); padding: .45rem .6rem; border-radius: 8px; border: 2px solid var(--fio); background: var(--papel-2); color: var(--tinta); width: min(240px, 60%); }
.fc-escolha .fc-sug { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .5rem 0; }
.fc-erro { color: #c0392b; font-size: .85rem; min-height: 1.1rem; margin: .3rem 0 0; }
.fc-placar { grid-template-columns: repeat(3, 1fr); }
.fc-placar b { font-size: 1.2rem; }
.fc-jogadas { width: min(560px, 100%); margin: .5rem auto 0; }
.fc-jogadas h2 { font-size: 1rem; margin: .3rem 0 .2rem; }
.fc-lista { list-style: none; margin: 0; padding: 0; font: .85rem var(--sans); border: 1px solid var(--fio); border-radius: 10px; background: var(--papel); }
.fc-lista li { padding: .3rem .6rem; border-bottom: 1px solid var(--fio); }
.fc-lista .ok { color: #2f9e57; font-weight: 700; } .fc-lista .x { color: #c0392b; text-decoration: line-through; }
.fc-legenda { font: .74rem var(--sans); opacity: .8; margin: .3rem 0 0; }
@media (prefers-reduced-motion: reduce) { .fc-desenho .boneco.caiu, .fc-letra.certa { animation: none; } }

/* mini do tutorial */
.xz-mini.fc-mini { display: block; width: 230px; height: auto; aspect-ratio: auto; border: 0; padding: 10px; border-radius: 12px; background: #26402f; color: #f1efe6; box-sizing: border-box; }
.fc-mini .fc-desenho { width: 120px; }
.fc-mini .fc-palavra { margin: .3rem 0; }
.fc-mini .fc-letra { width: 22px; height: 28px; font-size: 1rem; }
.xz-mini.fc-mini div { background: transparent; }
.xz-mini.fc-mini .fc-desenho { display: block; } .xz-mini.fc-mini .fc-palavra { display: flex; }

/* tela cheia: o desenho da forca diminui quando falta altura (forca.js mede e ajusta); embaixo fica guardado o lugar da Dica (--fc-reserva),
   que aparece ali sem empurrar a página. Na hora de escolher a palavra do Duelo, o teclado sai e a caixa da escolha entra no lugar. */
body.tc { --fc-reserva: 70px; }
body.tc .xz-centro:has(.fc-quadro) { position: relative; padding-bottom: var(--fc-reserva); box-sizing: border-box; }
body.tc .xz-centro:has(.fc-quadro) > .xz-dica-texto { position: absolute; left: 50%; top: calc(100% - var(--fc-reserva) + .45rem); transform: translateX(-50%);
  width: min(560px, 100%); max-width: none; margin: 0; box-sizing: border-box; padding: .45rem .8rem; font-size: .92rem; line-height: 1.35; }
body.tc .xz-centro:has(.fc-escolha:not([hidden])) { padding-bottom: 0; }
body.tc .xz-centro:has(.fc-escolha:not([hidden])) .fc-teclado { display: none; }
@media (max-width: 700px) {
  body.tc { --fc-reserva: 96px; }
  body.tc .xz-centro:has(.fc-quadro) > .xz-dica-texto { font-size: .82rem; padding: .35rem .6rem; line-height: 1.3; }
  body.tc .fc-escolha { padding: .6rem; font-size: .86rem; }
  body.tc .fc-escolha p { margin: .2rem 0 .5rem; }
}
body.tc .fc-escolha .fc-erro:empty { display: none; }
body.tc .fc-escolha .fc-sug { margin-bottom: 0; }
body.tc .fc-escolha > p:first-child { margin-top: 0; }
