/* 5777BET mobile/responsive override
   Load this AFTER /style.css.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap,
.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.download-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.download-strip > *,
.footer-grid > *,
.header-cta > * {
  min-width: 0;
}

p,
li,
a,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

.nav-toggle {
  touch-action: manipulation;
}

@media (max-width: 900px) {
  .site-header > .wrap,
  .site-header .wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .site-logo {
    margin-right: auto;
  }

  .nav-toggle {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    display: block;
  }

  .main-nav {
    display: none !important;
    width: 100%;
    order: 10;
  }

  .main-nav.is-open,
  .main-nav.open,
  .main-nav[data-open="true"] {
    display: block !important;
  }

  .main-nav ul {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
    padding: 12px 0;
  }

  .main-nav a {
    display: block;
    padding: 12px 4px;
  }

  .header-cta {
    display: flex;
    width: 100%;
    gap: 10px;
    order: 11;
  }

  .header-cta .btn {
    flex: 1 1 0;
    text-align: center;
  }

  .download-strip {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .wrap,
  .container {
    width: min(100% - 24px, 1180px);
  }

  .topbar .wrap,
  .tb-right,
  .header-cta {
    flex-wrap: wrap;
  }

  .tb-right {
    gap: 8px 12px;
  }

  .page-hero {
    padding-block: 34px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.18;
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
    line-height: 1.25;
  }

  .download-actions,
  .download-actions .btn,
  .header-cta,
  .header-cta .btn {
    width: 100%;
  }

  .download-actions .btn,
  .header-cta .btn {
    display: block;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .footer-bottom {
    display: grid !important;
    gap: 8px;
    text-align: center;
  }

  .dl-steps {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
