:root {
  --canvas-width: 1512;
  --canvas-height: 982;
  --demo-scale: 1;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
}

.demo-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.demo-canvas {
  position: relative;
  width: 1512px;
  height: 982px;
  flex: none;
  overflow: hidden;
  background: #fff;
  transform: scale(var(--demo-scale));
  transform-origin: center;
}

.phone-screen {
  position: absolute;
  z-index: 1;
  top: 145px;
  left: 585px;
  width: 343px;
  height: 830px;
  border: 0;
  border-radius: 0 0 42px 42px;
  background: #fff;
}

.phone-frame {
  position: absolute;
  z-index: 2;
  top: 1px;
  left: 540px;
  width: 438px;
  height: 981px;
  overflow: hidden;
  pointer-events: none;
}

.phone-frame img {
  position: absolute;
  top: -3.18%;
  left: -129%;
  width: 356.62%;
  height: 106.16%;
  max-width: none;
}

.no-script {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #001446;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 1023px) {
  html,
  body {
    overflow: auto;
  }

  .demo-stage {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
