/**
 * NebuGrid global responsive fixes
 * Applies across public, client and admin surfaces.
 */

/* Base: never accidental horizontal scroll */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  min-width: 0;
}
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}
/* Tables: scroll inside container, don't blow layout */
.table-responsive,
.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  max-width: 100%;
}
/* Forms */
input, select, textarea, button {
  max-width: 100%;
}
/* Touch targets */
@media (max-width: 767px) {
  button, .btn, a.rounded-lg, a.rounded-xl {
    min-height: 2.5rem;
  }
  input, select, textarea {
    font-size: 16px; /* prevent iOS zoom */
  }
  /* Softer 3D / hover transforms on touch */
  .ng-card-3d:hover,
  .shop-card:hover,
  .game-card:hover,
  .card-glow:hover {
    transform: none !important;
  }
  #nebu-3d {
    opacity: 0.45;
  }
  .hero-glow {
    min-height: auto !important;
  }
}
/* Admin shell */
#sidebar {
  max-width: 100vw;
}
main, .main-content, #mainContent {
  min-width: 0;
  max-width: 100%;
}
/* Long nav labels */
.nav-item {
  white-space: nowrap;
}
/* Public header: allow wrap on very small */
.ng-public header .max-w-6xl {
  gap: 0.5rem;
}
/* Prevent absolute decorative blobs from causing overflow */
.pointer-events-none.absolute {
  max-width: 100vw;
}
/* Ultrawide: keep readable measure */
@media (min-width: 1920px) {
  .max-w-6xl {
    max-width: 72rem;
  }
}
/* Prefers reduced motion already handled in public.css for 3d */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
