* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.arcade {
  position: relative;
  border: 6px solid #333;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 4px #000,
    12px 12px 0 rgba(255,255,255,0.08),
    inset 0 0 60px rgba(0,0,0,0.5);
}
@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.94; }
}
.arcade::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.22) 0px,
    rgba(0,0,0,0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  z-index: 10;
  animation: crt-flicker 0.12s steps(2) infinite;
}
.arcade::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  z-index: 10;
}
canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
#help {
  display: block;
  margin-top: 52px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.home-link {
  position: fixed;
  top: 12px;
  left: 14px;
  z-index: 20;
  font: 13px/1 Menlo, Consolas, "Courier New", monospace;
  letter-spacing: 0.04em;
  color: #8c8c8c;
  text-decoration: none;
}
.home-link:hover,
.home-link:focus-visible {
  color: #fff;
}
