/* Shared viewport safeguards for public pages, the app, and experiences. */
:root {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

html,
body {
  max-width: 100%;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
}

img,
video,
svg,
iframe,
embed,
object {
  max-width: 100%;
}

img,
video,
svg {
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

textarea {
  resize: vertical;
}

table {
  max-width: 100%;
}

@media (max-width: 1024px) {
  [style*="width:728px"],
  [style*="width: 728px"],
  [style*="max-width:728px"],
  [style*="max-width: 728px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  iframe {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100% !important;
  }

  [style*="padding: 0 40px"],
  [style*="padding:0 40px"] {
    padding-inline: 16px !important;
  }

  [role="dialog"],
  [aria-modal="true"],
  .modal-content,
  .LumnixApp-modal > div,
  #games-modal > div {
    max-width: calc(100vw - 24px) !important;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  [style*="width:450px"],
  [style*="width: 450px"],
  [style*="width:400px"],
  [style*="width: 400px"] {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"] {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
