/* ==========================================================================
   MERMEDOKU - ESTILO INTEGRADO NOWEY JUEGOS (misma base que Damas/Tetris)
   ========================================================================= */

:root {
  --color-neon-blue: #00b7ff;
  --color-neon-green: #39ff14;
  --color-neon-orange: #ff6c00;
  --bg-dark-box: rgba(10, 21, 32, 0.85);
  --border-neon: 1px solid rgba(0, 183, 255, 0.2);
}

body {
  background-color: #050a0e;
  color: #e2e8f0;
  font-family: 'Chakra Petch', 'Courier New', monospace;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* MESA */
.mesa {
  background: var(--bg-dark-box);
  border: var(--border-neon);
  border-radius: 16px;
  max-width: 420px;
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(5, 10, 14, 0.6);
  border: 1px solid rgba(57, 255, 20, 0.15);
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.65rem; letter-spacing: 1px; color: #94a3b8;
  margin-bottom: 5px; text-transform: uppercase;
}
.status-dot { width: 6px; height: 6px; background: var(--color-neon-green); border-radius: 50%; box-shadow: 0 0 8px var(--color-neon-green); flex-shrink: 0; }

.titulo-juego {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem; font-weight: 900; margin: 5px 0;
  background: linear-gradient(90deg, var(--color-neon-orange), var(--color-neon-green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.instrucciones-juego { font-size: 0.75rem; color: #64748b; margin: 0 0 12px 0; }

/* ── TABLERO SUDOKU (lógica original de Mermedoku, re-tematizado) ── */
.merme-dificultad {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}

.merme-btn-dif {
  flex: 1;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: bold;
  font-family: 'Chakra Petch', 'Courier New', monospace;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid rgba(0, 183, 255, 0.2);
  background: transparent;
  color: #64748b;
  transition: all 0.2s ease;
}
.merme-btn-dif.activo {
  border-color: var(--color-neon-green);
  background: rgba(57, 255, 20, 0.12);
  color: var(--color-neon-green);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
}

#m-board {
  display: grid;
  gap: 2px;
  margin: 0 auto;
  justify-content: center;
}

.merme-cell {
    text-align: center;
    border: 1px solid rgba(0, 183, 255, 0.2);
    background-color: #04080c;
    color: #e2e8f0;
    outline: none;
    font-family: 'Chakra Petch', 'Courier New', monospace;
    font-weight: bold;
    border-radius: 3px;
}
.merme-cell:focus { border-color: var(--color-neon-green); box-shadow: 0 0 6px rgba(57, 255, 20, 0.3); }
.fixed-cell { background-color: #0a1520 !important; font-weight: bold; color: var(--color-neon-blue) !important; }
.wrong-cell { background-color: rgba(255, 0, 85, 0.25) !important; color: #ff8fa8 !important; border-color: #ff0055 !important; }

.staff-footer-note { margin-top: 15px; font-size: 0.85rem; }
.staff-footer-note a { color: var(--color-neon-blue); text-decoration: none; font-weight: bold; }

/* FOOTER GLOBAL */
.site-footer {
    background-color: #020508; padding: 25px 0; text-align: center;
    font-family: 'Chakra Petch', 'Courier New', monospace; font-size: 0.95rem; font-weight: 700;
    border-top: 1px solid rgba(0, 183, 255, 0.2); box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.8);
}
