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

html, body {
  height: 100%;
  background: #0b0710;
  color: #b9a7c9;
  font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace;
  overflow: hidden;
}

#cabinet {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#screen {
  position: relative;
  line-height: 0;
  box-shadow: 0 0 0 3px #2a1c38, 0 0 48px rgba(255, 150, 40, 0.18);
}

#game {
  width: 768px;
  height: 448px;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
}

@supports (image-rendering: pixelated) {
  #game { image-rendering: pixelated; }
}

#scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 3px
  );
}

#scanlines.off { display: none; }

#help { text-align: center; padding: 0 12px; line-height: 1.7; }
#help b { color: #ffb84d; font-weight: 700; }

#cabinet:fullscreen { background: #000; }
#cabinet:fullscreen #help { display: none; }
