:root { color-scheme: dark; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #000000;
  color: #aaaaaa;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#stage {
  position: relative;
  width: min(96vw, calc(96vh * 4 / 3));
  aspect-ratio: 4 / 3;
}
#screen {
  width: 100%;
  height: 100%;
  display: block;
  background: #050612;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.hit {
  position: absolute;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  z-index: 5;
}
.hit:hover, .hit:focus-visible { outline: 1px solid rgba(170, 170, 170, 0.4); outline-offset: -2px; }
.hit-start { left: 0; top: 0; width: 100%; height: 100%; }
.hit-replay { left: 20%; top: 54%; width: 60%; height: 13%; }
.hit-exit { left: 20%; top: 69%; width: 60%; height: 11%; }
.hit[hidden] { display: none; }
#quit {
  position: absolute;
  top: 6px; right: 6px;
  width: 44px; height: 44px;
  min-width: 0;
  font-size: 18px;
  padding: 0;
  color: #aaaaaa;
  background: rgba(0, 0, 17, 0.55);
  border: 1px solid #22224a;
  z-index: 6;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}
#quit:hover, #quit:focus-visible, #quit:active {
  opacity: 1;
  outline: 1px solid #aaaaaa;
  outline-offset: -1px;
}
#quit[hidden] { display: none; }
#pauseTag {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  color: #aaaaaa;
  font-size: clamp(11px, 1.8vw, 13px);
  letter-spacing: 0.3em;
  background: rgba(0, 0, 17, 0.6);
  border: 1px solid #22224a;
  padding: 5px 14px;
  z-index: 6;
}
#pauseTag[hidden] { display: none; }
