.paper {
  background-color: var(--paper-bg);
  box-shadow:
    0 30px 60px rgb(0 0 0 / 12%),
    0 10px 20px rgb(0 0 0 / 8%),
    inset 0 0 100px rgb(0 0 0 / 2%);
  flex-shrink: 0;
  height: var(--slide-canvas-height);
  max-height: none;
  max-width: none;
  overflow: hidden;
  position: relative;
  transform: scale(var(--slide-scale));
  transform-origin: center;
  width: var(--slide-canvas-width);
}

body.is-mobile-portrait .paper {
  box-shadow:
    0 18px 38px rgb(0 0 0 / 14%),
    0 6px 14px rgb(0 0 0 / 10%),
    inset 0 0 70px rgb(0 0 0 / 2%);
  transform-origin: top left;
}

body.is-mobile-landscape .paper {
  transform-origin: center;
}

.paper::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  bottom: 0;
  content: "";
  left: 0;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

.slide {
  display: none;
  flex-direction: column;
  height: 100%;
  left: 0;
  padding: var(--slide-padding-y) var(--slide-padding-x);
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.slide.active {
  display: flex;
}

.page-num {
  bottom: 30px;
  color: var(--ink-black);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  opacity: 0.4;
  position: absolute;
  right: 40px;
  z-index: 40;
}
