* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  background: radial-gradient(ellipse at center, #10122a 0%, #05050c 70%, #000000 100%);
  font-family: 'Courier New', monospace;
  overscroll-behavior: none;
}

#game-viewport {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

#frame {
  position: relative;
  width: 480px;
  height: 640px;
  border-radius: 8px;
  overflow: hidden;
  background: #050510;
  box-shadow:
    0 0 12px 2px rgba(64, 240, 255, 0.55),
    0 0 32px 6px rgba(64, 240, 255, 0.25),
    inset 0 0 60px 20px rgba(0, 0, 0, 0.85),
    inset 0 0 120px 40px rgba(0, 0, 0, 0.6);
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: scanline-flicker 0.15s infinite alternate;
}

@keyframes scanline-flicker {
  from {
    opacity: 0.95;
  }
  to {
    opacity: 1;
  }
}
