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

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  touch-action: none;
}

#wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#cabinet {
  border: 3px solid #222;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(0, 227, 60, 0.12), inset 0 0 20px #000;
  background: #000;
  line-height: 0;
}

#screen {
  width: 672px;   /* 224 x 3 */
  height: 768px;  /* 256 x 3 */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
}

#help {
  color: #555;
  font-size: 12px;
  letter-spacing: 1px;
}

#touch {
  display: none;
  gap: 14px;
  margin-top: 4px;
}

#touch button {
  width: 84px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid #2c2c2c;
  background: #151515;
  color: #00e33c;
  font-size: 20px;
  font-family: monospace;
  -webkit-tap-highlight-color: transparent;
}

#touch button:active {
  background: #222;
}

@media (pointer: coarse) {
  #touch { display: flex; }
  #help { display: none; }
  #screen {
    width: min(94vw, 672px);
    height: auto;
    aspect-ratio: 224 / 256;
  }
}

@media (max-height: 860px) and (pointer: fine) {
  #screen {
    width: 504px;
    height: 576px;
  }
}
