* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: #e4e4e4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.menu-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
}

.menu-header {
  margin-bottom: 32px;
}

.menu-header h1 {
  font-size: 26px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 6px;
}

.menu-header .subtitle {
  font-size: 14px;
  color: #6b6b6b;
}

/* Grid responsive de botones cuadrados */
.menu-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  align-content: start;
}

.menu-button {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #f2f2f2;
  color: #262626;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 16px;
  opacity: 0;
  transform: translateY(6px);
  animation: aparecer 0.35s ease forwards;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.menu-button:hover {
  background-color: #e8e8e8;
  border-color: #b8b8b8;
  transform: translateY(-2px);
}

.menu-button:focus-visible {
  outline: 2px solid #8a8a8a;
  outline-offset: 2px;
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-empty {
  font-size: 14px;
  color: #8a8a8a;
  text-align: center;
  padding: 40px 0;
}

/* Responsive: pantallas pequeñas, botones más chicos y más columnas por fila */
@media (max-width: 600px) {
  .menu-screen {
    padding: 24px 20px;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
  }

  .menu-button {
    font-size: 13px;
    border-radius: 8px;
  }
}