/* Standalone shell for the shared flyer link. */
html:has(body.jcnat-flyer-standalone),
body.jcnat-flyer-standalone {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 100%;
  min-height: 100%;
  background: #f3e7d7;
}

html:has(body.jcnat-flyer-standalone) { margin-top: 0 !important; }

body.jcnat-flyer-standalone {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.jcnat-flyer-standalone > :not(.jcnat-flyer-shell):not(script):not(style):not(link) {
  display: none !important;
}

body.jcnat-flyer-standalone #wpadminbar { display: none !important; }

.jcnat-flyer-shell {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px 18px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f3e7d7;
}

.jcnat-flyer-shell > .jcnat-flyer {
  margin: 0 auto;
}

@media (min-width: 768px) {
  .jcnat-flyer-shell {
    padding-top: 28px;
    padding-bottom: 34px;
  }
}

/* Phone: the flyer itself becomes the screen. No site chrome, title, hint or extra buttons. */
@media (max-width: 767px) {
  html:has(body.jcnat-flyer-standalone),
  body.jcnat-flyer-standalone {
    width: 100%;
    height: 100%;
    background: #f8efe2;
  }

  body.jcnat-flyer-standalone { overflow: hidden; }

  .jcnat-flyer-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8efe2;
  }

  .jcnat-flyer-shell .jcnat-flyer {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .jcnat-flyer-shell .jcnat-flyer__hint,
  .jcnat-flyer-shell .jcnat-flyer__actions {
    display: none !important;
  }

  .jcnat-flyer-shell .jcnat-flyer__stage {
    width: min(100vw, calc(100dvh * 99 / 208));
    height: min(100dvh, calc(100vw * 208 / 99));
    margin: 0;
  }

  .jcnat-flyer-shell .jcnat-flyer__card {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .jcnat-flyer-shell .jcnat-flyer__face {
    border-radius: 0;
    box-shadow: none;
  }
}
