:root {
  color-scheme: dark;
  --app-width: 390px;
  --app-height: 844px;
  --phone-radius: 48px;
  --stage-gap: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #15171a;
}

body {
  min-height: 100dvh;
}

.stage {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  padding: var(--stage-gap);
  place-items: center;
}

.mobile-viewport {
  width: min(var(--app-width), calc(100vw - (2 * var(--stage-gap))));
  height: min(var(--app-height), calc(100dvh - (2 * var(--stage-gap))));
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--phone-radius);
  box-shadow:
    0 0 0 6px #08090a,
    0 24px 80px rgb(0 0 0 / 52%);
  isolation: isolate;
}

#app-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: #25282d;
  border: 1px solid rgb(255 255 255 / 15%);
  text-align: center;
}

.noscript-message a {
  color: inherit;
}

@media (max-width: 767px) {
  :root {
    --stage-gap: 0px;
  }

  .stage,
  .mobile-viewport {
    width: 100vw;
    height: 100dvh;
  }

  .mobile-viewport {
    border-radius: 0;
    box-shadow: none;
  }
}
