* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d0b14;
  color: #fff;
  font: 14px ui-monospace, monospace;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Discord reports the phone's notches through these variables. */
#stage {
  position: fixed;
  top: var(--discord-safe-area-inset-top, env(safe-area-inset-top, 0px));
  right: var(--discord-safe-area-inset-right, env(safe-area-inset-right, 0px));
  bottom: var(--discord-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  left: var(--discord-safe-area-inset-left, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
}

#screen {
  display: block;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
}

#stage.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.22) 2px 3px);
}

#rotate {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12%;
  text-align: center;
  letter-spacing: 0.08em;
  color: #ffe24d;
  pointer-events: none;
}

@media (orientation: portrait) and (pointer: coarse) {
  #rotate {
    display: block;
  }
}
