html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0a0512;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#stage {
  position: relative;
}

#screen {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  cursor: pointer;
}

#scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  background:
    radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.34) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.16) 2px 3px);
}

body.crt #scanlines {
  display: block;
}

#legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin: 8px 8px 0;
  font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
  color: #a893c8;
}

#legend b {
  color: #ffbc2e;
  font-weight: 600;
}

:fullscreen #legend {
  display: none;
}

noscript {
  display: block;
  color: #fff;
  text-align: center;
}
