:root {
  color-scheme: dark;
  background: #000;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  background: #000;
  outline: none;
  user-select: none;
  touch-action: manipulation;
}

.slide {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  display: block;
  background: #000;
}

.overlay {
  position: fixed;
  top: max(24px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  max-width: min(760px, calc(100vw - 48px));
  padding: 14px 24px;
  border-radius: 8px;
  background: rgb(0 0 0 / 72%);
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .overlay {
    font-size: 18px;
    padding: 12px 18px;
  }
}
