/* BANG BNG Android-first compatibility layer.
   Responsive for Android phones/tablets, Chrome, Samsung Internet and Firefox Android. */
:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
  overscroll-behavior-x: none;
}
body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img, picture, video, canvas, svg, iframe { max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea, a, [role="button"] {
  touch-action: manipulation;
}
button, input, select, textarea {
  font: inherit;
  max-width: 100%;
}
input, select, textarea {
  font-size: 16px !important; /* Prevents Android Chrome focus-zoom on form fields. */
}
button, .btn, [role="button"], input[type="submit"] {
  min-height: 44px;
}
button, input, select, textarea {
  border-radius: max(8px, .5rem);
}
main, header, footer, section, article, nav, .wrap, .container,
.page-shell, .page-card, .panel, .card, .grid, .row {
  min-width: 0;
  max-width: 100%;
}
pre, code, .mono, .asset-address, .wallet-address {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  footer, .bottom-nav, .chat-widget, .floating-chat {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 58px; }
  body { font-size: 14px; }
  main, .wrap, .container { width: 94% !important; }
  header { max-width: 100%; }
  nav {
    height: auto !important;
    min-height: 52px;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 3%;
  }
  nav a, .nav a, .navlinks a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hero { padding-top: 20px; }
  .hero h1 { font-size: clamp(27px, 8vw, 40px) !important; line-height: 1.12; }
  .grid, .cards, .features, .two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .card, .panel, .page-card { min-width: 0; padding: 13px; }
  .row { flex-wrap: wrap; gap: 10px; }
  .row > * { min-width: 0; }
  .asset-address, .wallet-address, .code { overflow-wrap: anywhere; }
  input, select, textarea { width: 100%; min-height: 44px; }
  .modal, dialog, .dropdown, .popover { max-width: calc(100vw - 20px); }
}
@media (max-width: 360px) {
  .grid, .cards, .features, .two { grid-template-columns: minmax(0, 1fr) !important; }
  nav a, .nav a, .navlinks a { font-size: 12px; padding: 8px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  nav { position: relative !important; }
  .hero { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
