/* ABUZ8 — Universal Mobile-Fix Overlay
 * Drop-in stylesheet for pages that don't import abuz8-mach3.css.
 * Add to any page with: <link rel="stylesheet" href="/assets/css/_mobile-fix.css">
 * Safe to load alongside the main stylesheet.
 * Version 1.0 — 2026-05-12
 */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, video, iframe, svg, canvas {
  max-width: 100%;
  height: auto;
}
pre, code {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}

@media (max-width: 768px) {
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  [style*="display: flex"],
  [style*="display:flex"] {
    flex-wrap: wrap !important;
  }
  .grid, .row, .cards, .columns, .features {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  h1 { font-size: clamp(1.75rem, 7vw, 2.4rem) !important; line-height: 1.15 !important; }
  h2 { font-size: clamp(1.4rem, 5.5vw, 1.9rem) !important; line-height: 1.2 !important; }
  h3 { font-size: clamp(1.15rem, 4.5vw, 1.4rem) !important; }
  p, li, label, input, textarea, select, button { font-size: 16px !important; }
  .container, .wrap, .wrapper, .content, main {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  a.btn, button, .btn, .cta, .cta-btn, .btn-gold, .btn-billionaire {
    min-height: 44px !important;
    padding: 12px 22px !important;
    line-height: 1.4 !important;
  }
  .hero, .hero-section { padding: 60px 20px !important; min-height: auto !important; }
  .card, .panel, .tool-card, .product-card { width: 100% !important; padding: 24px !important; }
  input, textarea, select { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  [style*="width: 1200px"], [style*="width: 1000px"], [style*="width: 800px"],
  [style*="min-width: 800px"], [style*="min-width: 1000px"] {
    width: 100% !important;
    min-width: 0 !important;
  }
  *:hover { transform: none !important; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(1.5rem, 8vw, 2rem) !important; }
  .container, .wrap, .wrapper { padding-left: 12px !important; padding-right: 12px !important; }
  a.btn, button.btn, .cta-btn, .btn-gold, .btn-billionaire { width: 100% !important; text-align: center !important; }
}
