.smw-embed {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #f4f9fc;
}

.smw-embed__frame {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
  background: transparent;
}

/* Use the fallback only until the game reports its content height. */
.smw-embed__frame[data-smw-sized="true"] {
  min-height: 0 !important;
}

body:has(.smw-embed) #content,
body:has(.smw-embed) .site-content,
body:has(.smw-embed) #content .ast-container,
body:has(.smw-embed) .site-main,
body:has(.smw-embed) article.page {
  background: #f4f9fc;
}

body:has(.smw-embed) #content .ast-container,
body:has(.smw-embed) article.page {
  padding: 0;
  margin: 0;
  max-width: none;
}

html body.wp-singular:has(.smw-embed) #masthead.site-header,
html body.wp-singular:has(.smw-embed) #masthead .ast-primary-header-bar,
html body.wp-singular:has(.smw-embed) #masthead .ast-mobile-header-wrap,
html body.wp-singular:has(.smw-embed) #masthead .ast-mobile-header-content {
  background: rgba(255, 255, 255, .96) !important;
  color: #14213d !important;
}

html body.wp-singular:has(.smw-embed) #masthead.site-header {
  border-bottom: 1px solid #dcebf3;
  box-shadow: none;
}

html body.wp-singular:has(.smw-embed) #masthead .ast-primary-header-bar {
  border-bottom: 1px solid #dcebf3 !important;
  box-shadow: none !important;
}

html body.wp-singular:has(.smw-embed) #masthead .custom-logo {
  opacity: 1 !important;
  filter: none !important;
}

@media (min-width: 922px) {
  html body.wp-singular:has(.smw-embed) #masthead .site-primary-header-wrap {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  html body.wp-singular:has(.smw-embed) #masthead .site-primary-header-wrap > .ast-builder-grid-row {
    width: 100%;
    max-width: none;
    margin-inline: 0 !important;
  }

  html body.wp-singular:has(.smw-embed) #masthead .main-header-menu {
    gap: 25px;
    background: transparent !important;
  }

  html body.wp-singular:has(.smw-embed) #masthead .main-header-menu > .menu-item > .menu-link {
    padding-inline: 0;
    color: #14213d !important;
    font-family: "DM Sans", sans-serif;
    font-size: .93rem;
    font-weight: 700;
  }

  html body.wp-singular:has(.smw-embed) #masthead .main-header-menu > .menu-item > .menu-link:hover,
  html body.wp-singular:has(.smw-embed) #masthead .main-header-menu > .menu-item > .menu-link:focus,
  html body.wp-singular:has(.smw-embed) #masthead .main-header-menu > .current-menu-item > .menu-link,
  html body.wp-singular:has(.smw-embed) #masthead .main-header-menu > .current_page_item > .menu-link {
    color: #117caf !important;
  }
}

html body.wp-singular:has(.smw-embed) #colophon.site-footer,
html body.wp-singular:has(.smw-embed) #colophon .site-primary-footer-wrap,
html body.wp-singular:has(.smw-embed) #colophon .site-below-footer-wrap {
  background: #14213d !important;
  color: #d9edf6 !important;
}

html body.wp-singular:has(.smw-embed) #colophon a {
  color: #fff !important;
}

.smw-embed--binary-beast .smw-embed__frame {
  min-height: 1100px;
}

.smw-embed--fde-factory .smw-embed__frame {
  min-height: 1100px;
}

@media (max-width: 600px) {
  .smw-embed__frame {
    min-height: 1200px;
  }
}


/* The free games' full-window view leaves the page and game state in place. */
html.smw-free-playing,html.smw-free-playing body{overflow:hidden!important}
html.smw-free-playing iframe.smw-free-play-frame{position:fixed!important;inset:0!important;z-index:2147483646!important;width:100vw!important;max-width:none!important;min-height:0!important;border:0!important;background:#08192a}
