    body {
        background: #222;
        color: white;
        font-family: Arial, sans-serif;
        text-align: center;
        margin: 0;
        padding: 0;
        margin-bottom: 50px;
    }

    h1 {
        margin-top: 20px;
    }

    canvas {
        background: black;
        display: block;
        margin: 20px auto;
        border: 2px solid #444;
    }
    .info {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 10px;
    }
    .info div {
        background: #333;
        padding: 8px 12px;
        border-radius: 6px;
    }
    button {
        margin: 5px;
        padding: 8px 14px;
        border: none;
        background: #4CAF50;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }
    button:hover {
        background: #45a049;
    }

    /* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none; /* oculto al inicio */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Contenido del modal */
.modal-content {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-out;
}

/* Botones del modal */
.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.modal-actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.modal-actions button:first-child {
  background: linear-gradient(135deg, #48dbfb, #0abde3);
  color: white;
}
.modal-actions button:last-child {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
}
.modal-actions button:hover {
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
