.ed-juego {
  --j-tinta: #21382f;
  --j-papel: #faf7ed;
  --j-verde: #226450;
  --j-linea: #bdbbb0;
  color: var(--j-tinta);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  text-align: left;
}
.ed-juego *, .ed-juego *::before, .ed-juego *::after { box-sizing: border-box; }
.ed-juego .ed-juego-instruccion {
  font: 400 1rem/1.4 Georgia, "Times New Roman", serif;
  color: #344238; text-align: left; margin: 0 0 .8rem;
}
.ed-juego .ed-juego-tablero {
  display: grid; width: min(100%, 18.5rem); margin: .55rem auto;
  border: 2px solid var(--j-tinta); background: var(--j-papel);
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.ed-juego .ed-juego-fila { display: grid; grid-template-columns: repeat(var(--lado), minmax(0, 1fr)); }
.ed-juego button.ed-juego-celda {
  appearance: none; display: grid; place-items: center; width: 100%; min-width: 0;
  min-height: 0; height: auto; aspect-ratio: 1; padding: 0; margin: 0;
  border: 0; border-right: 1px solid var(--j-linea); border-bottom: 1px solid var(--j-linea);
  box-shadow: none; border-radius: 0; background: transparent; color: var(--j-verde);
  font: 500 clamp(.9rem, 2.6vw, 1.3rem)/1 Georgia, "Times New Roman", serif;
  text-align: center; text-transform: none; cursor: pointer; letter-spacing: 0;
}
.ed-juego .ed-juego-fila:last-child .ed-juego-celda { border-bottom: 0; }
.ed-juego .ed-juego-celda:last-child { border-right: 0; }
.ed-juego button.ed-borde-c { border-right: 2px solid var(--j-tinta); }
.ed-juego button.ed-borde-f { border-bottom: 2px solid var(--j-tinta); }
.ed-juego button.ed-fija { color: var(--j-tinta); background: #eae7db; font-weight: 700; }
.ed-juego-sopa button.ed-juego-celda { color: var(--j-tinta); font-family: system-ui, sans-serif; font-size: clamp(.85rem, 2.4vw, 1.05rem); }
.ed-juego button.ed-encontrada { background: #cedbd0; color: #184f3c; font-weight: 750; }
.ed-juego button.ed-elegida { background: var(--j-verde); color: white; }
.ed-juego button.ed-error { background: #f6dcd1; color: #832f22; text-decoration: underline wavy; }
.ed-juego button:focus-visible { outline: 2px solid #ab5a19; outline-offset: -2px; z-index: 1; }
.ed-juego .ed-juego-teclado {
  width: min(100%, 22rem); margin: .65rem auto .4rem; display: grid; gap: 2px; grid-template-columns: repeat(9,minmax(0,1fr));
}
.ed-juego .ed-juego-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .8rem; margin: .4rem 0; }
.ed-juego .ed-juego-tecla, .ed-juego .ed-juego-accion {
  appearance: none; cursor: pointer; min-width: 0; margin: 0; padding: .3rem .12rem; border: 1px solid #848b7e;
  border-radius: 2px; color: var(--j-tinta); background: #f1efe4; box-shadow: none;
  font: 600 .95rem/1.3 system-ui, sans-serif; letter-spacing: 0; text-transform: none;
}
.ed-juego .ed-juego-accion { padding: .28rem .45rem; font-size: .87rem; }
.ed-juego .ed-juego-palabras {
  list-style: none; margin: .7rem auto .35rem; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem .8rem;
  color: var(--j-tinta); font: 600 .96rem/1.35 Georgia, "Times New Roman", serif;
}
.ed-juego .ed-juego-palabras li { margin: 0; padding: 0; }
.ed-juego .ed-juego-palabras li.ed-tachada { color: #3e6751; text-decoration: line-through; }
.ed-juego .ed-juego-estado { min-height: 1.3em; color: #364534; font: 500 .88rem/1.35 system-ui, sans-serif; margin: .4rem 0 0; text-align: center; }
