/* Juegos de jugar.cagando.es: estilos de la sala y de los ocho juegos. Estilo Power (negro, monocromo, Oswald en
   mayúsculas, píldoras, oro para lo especial); ver DESIGN.md, «jugar.cagando.es».
   Todo cuelga de `.jg` y usa sus propias variables `--jg-*`, que toman los tokens de quien lo aloje (mestoy.css en
   la web, power.css en la app) y, si no hay ninguno, valen por sí solas: así los juegos sirven en otra app. */

.jg {
  --jg-fondo: var(--surface, #000000);
  --jg-sup-1: var(--surface-1, #0f0f0f);
  --jg-sup-2: var(--surface-2, #1a1a1a);
  --jg-sup-3: var(--surface-3, #262626);
  --jg-raya: var(--line, #262626);
  --jg-linea: var(--line-strong, #8a8a8a);
  --jg-texto: var(--text, #fafafa);
  --jg-tenue: var(--text-muted, #a3a3a3);
  --jg-oro: var(--gold, #d4af37);
  --jg-ok: var(--success, #16a34a);
  --jg-mal: var(--danger, #ef4444);
  /* Acento del juego (uno por juego, ver la tabla de DESIGN.md); por defecto, el blanco del estilo. */
  --jg-acento: var(--juego, #fafafa);
  /* Marrón de la casa: aciertos de Cagadle, la caca de los arcades. Blanco encima: 5,9:1. */
  --jg-caca: #8b5a2b;
  --jg-display: var(--font-display, 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif);
  --jg-cuerpo: var(--font-body, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
  --jg-radio: var(--r-md, 8px);
  --jg-toque: 44px;
  position: relative;
  color: var(--jg-texto);
  font-family: var(--jg-cuerpo);
  -webkit-tap-highlight-color: transparent;
}
.jg *,
.jg *::before,
.jg *::after {
  box-sizing: border-box;
}
.jg [hidden] {
  display: none !important;
}
.jg :focus-visible {
  outline: 3px solid var(--jg-texto);
  outline-offset: 3px;
  border-radius: 4px;
}
.jg-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Botones ---------- */
.jg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--jg-toque);
  padding: 0 20px;
  border: 1px solid var(--jg-linea);
  border-radius: 999px;
  background: transparent;
  color: var(--jg-texto);
  font: 600 0.9375rem/1.2 var(--jg-cuerpo);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease;
}
.jg-btn:hover {
  background: var(--jg-sup-3);
}
.jg-btn:active {
  transform: translateY(1px);
}
.jg-btn[disabled],
.jg-btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.jg-btn-primario {
  background: var(--jg-texto);
  border-color: var(--jg-texto);
  color: #000;
}
.jg-btn-primario:hover {
  background: #d4d4d4;
}
.jg-btn-oro {
  border-color: var(--jg-oro);
  color: var(--jg-oro);
}
.jg-btn-fantasma {
  border-color: transparent;
  color: var(--jg-tenue);
}
.jg-btn-bloque {
  display: flex;
  width: 100%;
}

/* ---------- Escenario común de los juegos ---------- */
.jg-juego {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  -webkit-user-select: none;
  user-select: none;
}
/* Marcador de cada juego: datos en fila (puntos, tiempo, ronda…). */
.jg-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 16px;
  width: 100%;
  max-width: 480px;
}
.jg-hud-dato {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.jg-hud-etiqueta {
  font: 600 0.6875rem/1.2 var(--jg-cuerpo);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--jg-tenue);
}
.jg-hud-valor {
  font: 700 1.75rem/1 var(--jg-display);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.jg-hud-valor.jg-acento {
  color: var(--jg-acento);
}
/* Barra de tiempo o de progreso: el ancho lo pone el juego con --jg-avance (0…1). */
.jg-barra {
  width: 100%;
  max-width: 480px;
  height: 8px;
  border-radius: 999px;
  background: var(--jg-sup-3);
  overflow: hidden;
}
.jg-barra > span {
  display: block;
  height: 100%;
  width: calc(var(--jg-avance, 0) * 100%);
  border-radius: inherit;
  background: var(--jg-acento);
}
.jg-lienzo {
  display: block;
  max-width: 100%;
  border: 1px solid var(--jg-linea);
  border-radius: var(--jg-radio);
  background: var(--jg-sup-1);
  touch-action: none;
}
.jg-pista {
  margin: 0;
  max-width: 480px;
  color: var(--jg-tenue);
  font-size: 0.875rem;
  text-align: center;
}
/* Botón enorme para el pulgar (Aguanta, «toca para subir»…). */
.jg-boton-gordo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  min-height: 88px;
  border: 0;
  border-radius: var(--jg-radio);
  background: var(--jg-texto);
  color: #000;
  font: 700 clamp(1.5rem, 7vw, 2rem) / 1 var(--jg-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.jg-boton-gordo[aria-pressed='true'],
.jg-boton-gordo:active {
  background: var(--jg-acento);
}

/* Capa de pausa (lib/dom.js, capaPausa): tapa el juego hasta que se pulsa «Seguir». */
.jg-pausa {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgb(0 0 0 / 0.92);
  border-radius: var(--jg-radio);
  text-align: center;
}
.jg-pausa-titulo {
  margin: 0;
  font: 700 2.5rem/1 var(--jg-display);
  text-transform: uppercase;
}
.jg-pausa-texto {
  margin: 0;
  max-width: 32ch;
  color: var(--jg-tenue);
}

@media (prefers-reduced-motion: reduce) {
  .jg *,
  .jg *::before,
  .jg *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ====================================================================================================
   La sala (sala.js): antesala con las partidas del día, mesa de juego y resultado.
   ==================================================================================================== */
.jg-icono {
  flex: none;
  width: 1.25em;
  height: 1.25em;
}
.jg a {
  color: var(--jg-texto);
  text-decoration: underline;
  text-decoration-color: var(--jg-linea);
  text-underline-offset: 0.2em;
}
.jg a.jg-btn {
  text-decoration: none;
}
.jg a.jg-btn-primario {
  color: #000;
}
.jg a.jg-btn-oro {
  color: var(--jg-oro);
}
.jg-antesala,
.jg-mesa,
.jg-final {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.jg-antesala[aria-busy='true'] {
  opacity: 0.6;
  pointer-events: none;
}
.jg-modos {
  display: grid;
  gap: 12px;
}
@media (min-width: 560px) {
  .jg-modos-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.jg-modo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--jg-raya);
  border-top: 2px solid var(--jg-acento);
  border-radius: var(--jg-radio);
  background: var(--jg-sup-1);
}
.jg-modo-nombre {
  margin: 0;
  font: 600 1.5rem/1.05 var(--jg-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.jg-modo-quedan {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--jg-tenue);
  font-size: 0.9375rem;
}
.jg-modo-quedan strong {
  color: var(--jg-texto);
}
.jg-modo .jg-btn {
  margin-top: auto;
}
/* Aviso de «sin partidas»: borde discontinuo, icono de reloj y texto (no depende del color). */
.jg-sin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--jg-linea);
  border-radius: var(--jg-radio);
}
.jg-sin-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 600 1.125rem/1.1 var(--jg-display);
  text-transform: uppercase;
}
.jg-sin-texto {
  margin: 0;
  color: var(--jg-tenue);
  font-size: 0.875rem;
}
.jg-trono,
.jg-nota,
.jg-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-left: 4px solid var(--jg-linea);
  border-radius: 4px;
  background: var(--jg-sup-1);
  font-size: 0.9375rem;
}
.jg-trono {
  border-left-color: var(--jg-oro);
}
.jg-trono .jg-icono {
  color: var(--jg-oro);
}
.jg-error {
  border-left-color: var(--jg-mal);
}
.jg-nota {
  color: var(--jg-tenue);
}
.jg-archivo > summary {
  list-style: none;
  width: max-content;
}
.jg-archivo > summary::-webkit-details-marker {
  display: none;
}
.jg-archivo > summary::after {
  content: '▾';
}
.jg-archivo[open] > summary::after {
  content: '▴';
}
.jg-archivo-nota {
  margin: 8px 0;
  color: var(--jg-tenue);
  font-size: 0.875rem;
}
.jg-archivo-dias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jg-archivo-dias li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--jg-toque);
  border-bottom: 1px solid var(--jg-raya);
}
.jg-archivo-cerrado {
  color: var(--jg-tenue);
  font-size: 0.8125rem;
}
.jg-mesa-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--jg-toque);
}
.jg-mesa-modo {
  margin: 0;
  font: 600 0.8125rem/1.2 var(--jg-cuerpo);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--jg-tenue);
}
.jg-salir {
  padding: 0 12px;
  font-size: 0.8125rem;
}
.jg-final {
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 20px 16px;
  border: 1px solid var(--jg-linea);
  border-radius: var(--jg-radio);
  background: var(--jg-sup-1);
}
.jg-final-rotulo {
  margin: 0;
  font: 600 0.8125rem/1.2 var(--jg-cuerpo);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--jg-tenue);
}
.jg-final-titulo {
  margin: 0;
  font: 700 clamp(1.75rem, 7vw, 2.5rem) / 1 var(--jg-display);
  text-transform: uppercase;
}
.jg-final-titulo:focus {
  outline: none;
}
.jg-final-puntos {
  margin: 0;
  font: 700 clamp(2.5rem, 12vw, 4rem) / 1 var(--jg-display);
  font-variant-numeric: tabular-nums;
  color: var(--jg-acento);
}
.jg-final-texto {
  margin: 0;
  color: var(--jg-tenue);
}
.jg-final-lineas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.jg-final-lineas li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.jg-final-oro,
.jg-final-oro .jg-icono {
  color: var(--jg-oro);
}
.jg-final-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ====================================================================================================
   Cagadle
   ==================================================================================================== */
.jg-cg-tablero {
  display: grid;
  gap: 6px;
}
.jg-cg-fila {
  display: grid;
  grid-template-columns: repeat(var(--jg-cg-letras, 5), clamp(46px, 15vw, 60px));
  gap: 6px;
}
.jg-cg-casilla {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 2px solid var(--jg-sup-3);
  border-radius: 4px;
  font: 700 clamp(1.5rem, 7vw, 2rem) / 1 var(--jg-display);
  text-transform: uppercase;
}
.jg-cg-puesta {
  border-color: var(--jg-linea);
}
/* Cada marca tiene su fondo, su borde y su signo en la esquina: ✓ acierto, ↔ otra casilla, ✕ no está. */
.jg-cg-casilla[data-m='a'] {
  background: var(--jg-caca);
  border-color: var(--jg-caca);
  color: #fff;
}
.jg-cg-casilla[data-m='p'] {
  background: var(--jg-sup-2);
  border: 2px dashed var(--jg-acento);
  color: var(--jg-acento);
}
.jg-cg-casilla[data-m='n'] {
  background: var(--jg-sup-3);
  border-color: var(--jg-sup-3);
  color: var(--jg-tenue);
}
.jg-cg-signo {
  position: absolute;
  top: 1px;
  right: 3px;
  font: 700 0.6875rem/1.2 var(--jg-cuerpo);
}
.jg-cg-gira {
  animation: jg-cg-gira 360ms ease both;
}
.jg-cg-gira:nth-child(2) {
  animation-delay: 180ms;
}
.jg-cg-gira:nth-child(3) {
  animation-delay: 360ms;
}
.jg-cg-gira:nth-child(4) {
  animation-delay: 540ms;
}
.jg-cg-gira:nth-child(5) {
  animation-delay: 720ms;
}
@keyframes jg-cg-gira {
  50% {
    transform: scaleY(0.05);
  }
}
.jg-cg-tiembla {
  animation: jg-cg-tiembla 360ms ease;
}
@keyframes jg-cg-tiembla {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.jg-cg-mensaje {
  min-height: 1.5em;
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--jg-tenue);
}
.jg-cg-mensaje.jg-cg-error {
  color: var(--jg-texto);
  font-weight: 600;
}
.jg-cg-mensaje.jg-cg-error::before {
  content: '⚠ ';
}
.jg-cg-teclado {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 520px;
}
.jg-cg-linea {
  display: flex;
  justify-content: center;
  gap: 4px;
}
/* Diez teclas por fila en 360 px no caben a 44 px de ancho: se compensa con 54 px de alto (ver DESIGN.md). */
.jg-cg-tecla {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 48px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--jg-linea);
  border-radius: 6px;
  background: var(--jg-sup-2);
  color: var(--jg-texto);
  font: 600 1rem/1 var(--jg-cuerpo);
  cursor: pointer;
  touch-action: manipulation;
}
.jg-cg-tecla.jg-cg-ancha {
  flex: 1.6 1 0;
  max-width: 76px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.jg-cg-tecla:active {
  background: var(--jg-sup-3);
}
.jg-cg-tecla[data-m='a'] {
  background: var(--jg-caca);
  border-color: var(--jg-caca);
  color: #fff;
}
.jg-cg-tecla[data-m='p'] {
  border: 2px dashed var(--jg-acento);
  color: var(--jg-acento);
}
.jg-cg-tecla[data-m='n'] {
  background: var(--jg-fondo);
  border-color: var(--jg-sup-3);
  color: #8a8a8a;
}
.jg-cg-tecla .jg-cg-signo {
  top: 2px;
  right: 3px;
  font-size: 0.5625rem;
}

/* ====================================================================================================
   Trivial cagón
   ==================================================================================================== */
.jg-tv-tarjeta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}
.jg-tv-categoria {
  margin: 0;
  font: 600 0.8125rem/1.2 var(--jg-cuerpo);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--jg-acento);
}
.jg-tv-pregunta {
  margin: 0;
  min-height: 3.3em;
  font: 600 clamp(1.25rem, 5.4vw, 1.625rem) / 1.15 var(--jg-display);
  letter-spacing: 0.005em;
  text-transform: none;
  -webkit-user-select: text;
  user-select: text;
}
.jg-tv-pregunta:focus {
  outline: none;
}
.jg-tv-opciones {
  display: grid;
  gap: 8px;
}
@media (min-width: 620px) {
  .jg-tv-opciones {
    grid-template-columns: 1fr 1fr;
  }
}
.jg-tv-opcion {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--jg-linea);
  border-radius: var(--jg-radio);
  background: var(--jg-sup-1);
  color: var(--jg-texto);
  font: 500 1rem/1.25 var(--jg-cuerpo);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.jg-tv-opcion:hover:not(:disabled) {
  background: var(--jg-sup-3);
}
.jg-tv-opcion:disabled {
  cursor: default;
  color: var(--jg-tenue);
}
.jg-tv-letra {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--jg-linea);
  border-radius: 999px;
  font: 600 0.8125rem/1 var(--jg-cuerpo);
}
.jg-tv-texto {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.jg-tv-marca {
  flex: none;
  width: 1.25em;
  font-weight: 700;
  text-align: center;
}
.jg-tv-elegida {
  border-width: 2px;
  border-color: var(--jg-texto);
}
/* Buena: borde macizo y ✓; mala: borde discontinuo, tachada y ✕. */
.jg-tv-opcion.jg-tv-buena {
  border: 2px solid var(--jg-ok);
  color: var(--jg-texto);
  background: var(--jg-sup-2);
}
.jg-tv-opcion.jg-tv-mala {
  border: 2px dashed var(--jg-mal);
}
.jg-tv-mala .jg-tv-texto {
  text-decoration: line-through;
}
.jg-tv-veredicto {
  min-height: 4.5em;
}
.jg-tv-titular {
  margin: 0 0 4px;
  font-weight: 700;
}
.jg-tv-titular.jg-tv-ok::before {
  content: '✓ ';
  color: var(--jg-ok);
}
.jg-tv-titular.jg-tv-ko::before {
  content: '✕ ';
  color: var(--jg-mal);
}
.jg-tv-dato {
  margin: 0;
  color: var(--jg-tenue);
  font-size: 0.9375rem;
  -webkit-user-select: text;
  user-select: text;
}

/* ====================================================================================================
   ¿Más o menos?
   ==================================================================================================== */
.jg-mm-pregunta {
  margin: 0;
  font: 600 clamp(1.5rem, 6vw, 2rem) / 1.05 var(--jg-display);
  text-transform: uppercase;
  text-align: center;
}
.jg-mm-pregunta:focus {
  outline: none;
}
.jg-mm-fotos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  width: 100%;
  max-width: 640px;
}
.jg-mm-vs {
  align-self: center;
  margin-top: -3em;
  font: 700 1.25rem/1 var(--jg-display);
  text-transform: uppercase;
  color: var(--jg-tenue);
}
.jg-mm-tarjeta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.jg-mm-foto {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid var(--jg-linea);
  border-radius: var(--jg-radio);
  background: var(--jg-sup-2);
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}
.jg-mm-foto:hover:not(:disabled) {
  border-color: var(--jg-texto);
}
.jg-mm-foto:disabled {
  cursor: default;
}
.jg-mm-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jg-mm-votos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 4px;
  background: rgb(0 0 0 / 0.82);
  color: var(--jg-texto);
  font: 700 clamp(1rem, 4.6vw, 1.375rem) / 1 var(--jg-display);
  text-transform: uppercase;
  text-align: center;
}
.jg-mm-marca {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #000;
  color: var(--jg-texto);
  font: 700 1.25rem/1 var(--jg-cuerpo);
  border: 2px solid currentColor;
}
.jg-mm-ok .jg-mm-foto {
  border: 3px solid var(--jg-ok);
}
.jg-mm-ko .jg-mm-foto {
  border: 3px dashed var(--jg-mal);
}
.jg-mm-pie {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: 0.875rem;
  -webkit-user-select: text;
  user-select: text;
}
.jg-mm-titulo {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.jg-mm-autor {
  color: var(--jg-tenue);
  font-size: 0.8125rem;
}
.jg-mm-enlace {
  display: inline-flex;
  align-items: center;
  min-height: var(--jg-toque);
  font-size: 0.8125rem;
}
.jg-mm-veredicto {
  min-height: 1.5em;
  margin: 0;
  text-align: center;
  font-weight: 600;
}

/* ====================================================================================================
   Desatasca
   ==================================================================================================== */
.jg-da-rejilla {
  display: grid;
  grid-template-columns: repeat(var(--jg-da-lado), minmax(0, 1fr));
  width: min(100%, calc(var(--jg-da-lado) * 64px));
  border: 1px solid var(--jg-linea);
  border-radius: var(--jg-radio);
  background: var(--jg-sup-1);
  overflow: hidden;
  touch-action: manipulation;
}
.jg-da-celda {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 1px solid var(--jg-raya);
  outline-offset: -0.5px;
  background: transparent;
  color: var(--jg-texto);
  cursor: pointer;
  touch-action: manipulation;
}
.jg-da-celda:focus-visible {
  outline: 3px solid var(--jg-texto);
  outline-offset: -3px;
  z-index: 1;
}
.jg-da-pieza {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 140ms ease;
}
/* Tubería seca: hueca (borde claro, interior negro). Con agua: rellena con el acento. */
.jg-da-borde {
  fill: none;
  stroke: var(--jg-linea);
  stroke-width: 30;
}
.jg-da-agua {
  fill: none;
  stroke: var(--jg-sup-1);
  stroke-width: 20;
}
.jg-da-junta {
  fill: var(--jg-sup-1);
  stroke: var(--jg-linea);
  stroke-width: 5;
}
.jg-da-mojada .jg-da-borde {
  stroke: var(--jg-texto);
}
.jg-da-mojada .jg-da-agua {
  stroke: var(--jg-acento);
}
.jg-da-mojada .jg-da-junta {
  fill: var(--jg-acento);
  stroke: var(--jg-texto);
}
.jg-da-icono {
  position: absolute;
  inset: 16%;
  width: 68%;
  height: 68%;
  padding: 6%;
  border-radius: 999px;
  background: #000;
  color: var(--jg-texto);
  pointer-events: none;
}

/* ====================================================================================================
   Pixel caca
   ==================================================================================================== */
.jg-px-tabla {
  display: grid;
  grid-template-columns: var(--jg-px-pistas, 60px) repeat(var(--jg-px-lado), var(--jg-px-celda, 30px));
  touch-action: none;
}
.jg-px-pista {
  display: flex;
  gap: 5px;
  font: 600 0.8125rem/1 var(--jg-cuerpo);
  font-variant-numeric: tabular-nums;
  color: var(--jg-texto);
}
.jg-px-pf {
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
}
.jg-px-pc {
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 6px;
  min-height: 56px;
}
/* Línea que ya cuadra con su pista: atenuada y tachada (dos señales). */
.jg-px-hecha {
  color: #8a8a8a;
  text-decoration: line-through;
}
.jg-px-celda {
  position: relative;
  width: var(--jg-px-celda, 30px);
  height: var(--jg-px-celda, 30px);
  padding: 0;
  border: 0;
  border-right: 1px solid var(--jg-sup-3);
  border-bottom: 1px solid var(--jg-sup-3);
  border-radius: 0;
  background: var(--jg-sup-1);
  color: var(--jg-tenue);
  cursor: pointer;
}
.jg-px-celda:focus-visible {
  outline: 3px solid var(--jg-acento);
  outline-offset: -3px;
  z-index: 1;
}
.jg-px-celda[data-e='1'] {
  background: var(--jg-texto);
}
.jg-px-celda[data-e='2']::after {
  content: '✕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 0.8125rem/1 var(--jg-cuerpo);
}
.jg-px-resuelta .jg-px-celda[data-e='1'] {
  background: var(--jg-acento);
}
.jg-px-barra {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.jg-px-herramienta[aria-pressed='true'] {
  background: var(--jg-texto);
  border-color: var(--jg-texto);
  color: #000;
}
.jg-px-herramienta[aria-pressed='true']::before {
  content: '●';
  font-size: 0.5rem;
}
.jg-px-izq {
  border-left: 2px solid var(--jg-linea);
}
.jg-px-arr {
  border-top: 2px solid var(--jg-linea);
}
.jg-px-der {
  border-right: 2px solid var(--jg-linea);
}
.jg-px-aba {
  border-bottom: 2px solid var(--jg-linea);
}
