
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: white;
  overflow: hidden;
}

.game-container {
  background: #1e1e2f;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  text-align: center;
  width: 90%;
  max-width: 500px;
  animation: fadeIn 0.8s ease-in-out;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  animation: appearGrid 0.6s ease;
}

.cell {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: gray;
  opacity: 0.2;
  transition: 0.3s;
  animation: fadeCell 0.5s ease;
}

.cell.on {
  background: lime;
  opacity: 1;
  animation: popCell 0.4s ease;
}

.options {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.option-btn {
  background: #3498db;
  border: none;
  padding: 10px 20px;
  color: white;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.option-btn:hover {
  background: #2980b9;
  transform: scale(1.05);
}

.stats {
  margin-top: 15px;
}

.resumen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.resumen-contenido {
  background: #2c3e50;
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 25px rgba(255,255,255,0.2);
  animation: zoomIn 0.6s ease;
}

.timer {
  font-size: 1.1em;
  margin: 10px 0;
  font-weight: bold;
}

.config select, .config button {
  padding: 10px;
  margin: 10px;
  border-radius: 6px;
  border: none;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeCell {
  from { opacity: 0; }
  to { opacity: 0.2; }
}

@keyframes popCell {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s;
}

@keyframes flashGreen {
  0% { box-shadow: 0 0 10px lime; }
  100% { box-shadow: none; }
}

.flash {
  animation: flashGreen 0.4s ease;
}



/* Fondo general del modal en modo oscuro */


body.dark-mode {
  background: #121212;
  color: #f0f0f0;
}

body.dark-mode .game-container {
  background: #1e1e1e;
}
