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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1b1030 0%, #07040d 70%);
  color: #8f86ab;
  font: 12px/1.4 "Courier New", monospace;
}

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

#screen {
  position: relative;
  background: #000;
  box-shadow: 0 0 0 3px #2b1d47, 0 0 0 6px #0d0818, 0 12px 50px rgba(120, 60, 200, .35);
  line-height: 0;
}

canvas#game {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  outline: none;
}

#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) calc(var(--px, 3px) * .55), rgba(0,0,0,.22) calc(var(--px, 3px) * .55), rgba(0,0,0,.22) var(--px, 3px)),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 62%, rgba(0,0,0,.35) 100%);
}

body.no-crt #scanlines { display: none; }

#hint { text-align: center; padding: 0 12px; letter-spacing: .5px; }
#hint b { color: #ffb43c; font-weight: bold; }

#screen:fullscreen { box-shadow: none; }

@media (max-height: 420px) { #hint { display: none; } }
