/* findOLD board — desktop layout (also source layout for mobile scale) */
#legacyGameShell #container{
  width:782px;
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
  padding:14px;
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:flex-start;
  position:relative;
  box-sizing:border-box;
  direction:ltr;
}
#legacyGameShell #the_first,
#legacyGameShell #the_second{
  position:relative;
  display:inline-block;
  border-radius:14px;
  overflow:hidden;
}
#legacyGameShell #img1,
#legacyGameShell #img2{
  max-width:376px;
  display:block;
  border-radius:14px;
  border:2px solid #eef2f7;
}

/* Mobile legacy only — scale entire desktop board; circles stay on PHP px coords */
@media (max-width: 820px) {
  body.legacy-mobile-embed .v2-game-wrap,
  body.legacy-mobile-embed #legacyGameShell.game-shell {
    padding: 0;
  }
  body.legacy-mobile-embed #legacyGameShell #container {
    padding: 0;
  }
  body.legacy-mobile-embed .legacy-board-scaler {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-top: 0;
  }
  body.legacy-mobile-embed .legacy-board-inner {
    transform-origin: top center;
    will-change: transform;
  }
}

/* End overlays (fail / win / level) — lock iframe height, block scroll + auto-placed ads */
html.legacy-end-open,
body.legacy-end-open {
  overflow: hidden !important;
  height: 100%;
  max-height: 100vh;
}
body.legacy-end-open:not(.find-reward-ad-active) .google-center-div,
body.legacy-end-open:not(.find-reward-ad-active) .google-auto-placed {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.legacy-end-open .v2-game-wrap {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
body.legacy-end-open .level-complete-overlay {
  position: fixed;
  inset: 0;
}
