/* ShoreBuild V169 — desktop homepage native-scroll repair. */
@media (min-width: 769px) {
  html[data-shorebuild-public-release="true"]:not([data-big-update-subpage="true"]),
  html.shore-big-update-active:not([data-big-update-subpage="true"]) {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior-y: auto !important;
    scrollbar-gutter: stable;
  }

  html[data-shorebuild-public-release="true"]:not([data-big-update-subpage="true"]) body,
  html.shore-big-update-active:not([data-big-update-subpage="true"]) body {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    overscroll-behavior-y: auto !important;
  }

  html[data-shorebuild-public-release="true"]:not([data-big-update-subpage="true"]) body > #futureHomepage,
  html.shore-big-update-active:not([data-big-update-subpage="true"]) body > #futureHomepage,
  html[data-shorebuild-public-release="true"]:not([data-big-update-subpage="true"]) #futureHomepage .future-home-main,
  html.shore-big-update-active:not([data-big-update-subpage="true"]) #futureHomepage .future-home-main,
  html[data-shorebuild-public-release="true"]:not([data-big-update-subpage="true"]) #futureHomepage .shore-home-scroll-content,
  html.shore-big-update-active:not([data-big-update-subpage="true"]) #futureHomepage .shore-home-scroll-content {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Keep real modal locks working while preventing stale homepage lock classes. */
  html.popup-open,
  html.tutorial-open,
  html.mineouts-open,
  html.spawner-modal-open,
  html.shore-discord-popup-open,
  html.order-modal-open,
  html.order-profile-modal-open,
  html.custom-block-modal-open,
  html.panel-popup-scroll-locked,
  html.dev-scroll-locked {
    overflow-y: hidden !important;
  }
}
