/* GPFAULT.EXE — Windows 3.1 GPF Simulator */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #005f5f;
  /* subtle CRT-ish vignette behind the framed desktop */
  background:
    radial-gradient(ellipse at center, #0a4d4d 0%, #032323 100%);
  font-family: "VT323", monospace;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

#canvas {
  position: absolute;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: none;               /* we draw our own retro arrow */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6),
              0 0 0 2px #000;
  /* faint scanline overlay for CRT flavor */
}

/* CRT scanlines drawn over the canvas */
#canvas::after {
  content: "";
}

#controls {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  letter-spacing: 1px;
  z-index: 5;
}

/* On touch devices, show the OS cursor as a fallback tap target */
@media (pointer: coarse) {
  #canvas { cursor: default; }
}

/* Scanline overlay via a fixed pseudo layer on body */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.06) 3px
  );
  z-index: 10;
  mix-blend-mode: multiply;
}