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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #040203;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Mono", Consolas, "Courier New", monospace;
  user-select: none;
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Subtle CRT scanline & vignette overlay */
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.14) 3px
    ),
    radial-gradient(circle at 50% 48%, transparent 56%, rgba(0, 0, 0, 0.58) 100%);
}

.controls {
  position: fixed;
  bottom: 18px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
  opacity: 0.42;
  transition: opacity 0.25s ease;
}

.controls:hover,
.controls:focus-within {
  opacity: 1;
}

.controls button {
  background: rgba(18, 10, 10, 0.78);
  color: #e6d5cf;
  border: 1px solid rgba(255, 115, 70, 0.28);
  border-radius: 6px;
  padding: 6px 11px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.controls button:hover {
  background: rgba(58, 20, 14, 0.88);
  border-color: rgba(255, 118, 68, 0.7);
  color: #fff3ee;
}

.controls button:active {
  transform: translateY(1px);
}
