/* ArenaIQ v76: makes every page behave like an app on phones (Home Screen + browser). */
html, body { max-width: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
a, button, input, select, textarea, label, [role="button"] { touch-action: manipulation; }
img, video, iframe, canvas, svg { max-width: 100%; }
p, li, td, dd, blockquote, .sub, .muted, .card { overflow-wrap: break-word; }
/* Home Screen app only */
@media (display-mode: standalone) {
  body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  input, textarea, [contenteditable], p, li, .b, .sub, .muted, pre, code { -webkit-user-select: text; user-select: text; }
  .aiq-hide-in-app, a[href="#install"], a[href="/#install"] { display: none !important; }
}
#aiqBack { position: fixed; left: max(10px, env(safe-area-inset-left, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 9990;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid #3a3320; background: rgba(20, 20, 20, .92); color: #E2C27A;
  font: 700 22px/40px Inter, sans-serif; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#aiqWelcome { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .78); display: flex; align-items: flex-end; justify-content: center; }
#aiqWelcome .s { width: 100%; max-width: 480px; background: #111; border: 1px solid #2a2a2a; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  color: #f2efe8; font: 15px/1.45 Inter, system-ui, sans-serif; display: grid; gap: 10px; animation: aiqUp .25s ease-out; }
#aiqWelcome h2 { margin: 0; font: 800 24px/1.15 Inter, system-ui, sans-serif; }
#aiqWelcome .g { color: #C9A24B; }
#aiqWelcome a, #aiqWelcome button { display: block; text-align: center; border-radius: 12px; padding: 14px; font: 700 16px Inter, sans-serif; text-decoration: none; border: 0; cursor: pointer; }
#aiqWelcome .p { background: #C9A24B; color: #111; }
#aiqWelcome .q { background: #1c1c1c; color: #f2efe8; border: 1px solid #2a2a2a; }
#aiqWelcome .l { background: none; color: #9a958a; padding: 6px; font-weight: 600; }
@keyframes aiqUp { from { transform: translateY(30px); opacity: 0 } to { transform: none; opacity: 1 } }
/* v80: grid columns never grow past the phone (the home news carousel was stretching the page to 1250px) */
#view { grid-template-columns: minmax(0, 1fr); }
#view > *, #view section, .ncar, .ncw { min-width: 0; max-width: 100%; }
