body {
  margin: 0;
  background: #050505;
  color: #00ff00;
  font-family: "Courier New", monospace;
  display: flex;
  justify-content: center;
}

/* System container */
.system {
  width: 800px;
}

/* Header */
header {
  padding: 10px 0;
  border-bottom: 1px solid #00ff00;
  font-size: 14px;
  letter-spacing: 2px;
}

/* Status */
.status {
  padding: 8px 0;
  font-size: 14px;
  opacity: 0.7;
}

/* Canvas */
.canvas-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

canvas {
  border: 1px solid #00ff00;
  box-shadow: 0 0 15px #00ff00;
}

/* Hint text */
.hint {
  text-align: center;
  font-size: 12px;
  opacity: 0.4;
}

/* Scanlines */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 0, 0.05),
    rgba(0, 255, 0, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );

  z-index: 999;
}

.controls {
  padding: 10px 0;
  font-size: 12px;
}

.controls input {
  width: 50px;
  background: black;
  border: 1px solid #00ff00;
  color: #00ff00;
  font-family: monospace;
}

.controls button {
  background: transparent;
  border: 1px solid #00ff00;
  color: #00ff00;
  cursor: pointer;
}

.controls input {
  width: 50px;
  background: #050505;
  border: 1px solid #00ff00;
  color: #00ff00;
  font-family: "Courier New", monospace;
  padding: 4px;
  outline: none;
}

/* remove ugly arrows */
.controls input::-webkit-outer-spin-button,
.controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.controls input[type=number] {
  -moz-appearance: textfield;
}

/* glow on focus */
.controls input:focus {
  box-shadow: 0 0 8px #00ff00;
}

/* button styling */
.controls button {
  background: transparent;
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 4px 10px;
  cursor: pointer;
  font-family: "Courier New", monospace;
}

.controls button:hover {
  background: #00ff00;
  color: #050505;
}

.controls button:focus {
  outline: none;
  box-shadow: 0 0 8px #00ff00;
}

.mobile-controls {
  margin-top: 20px;
  text-align: center;
}

.mobile-controls button {
  background: transparent;
  border: 1px solid #00ff00;
  color: #00ff00;
  font-size: 20px;
  padding: 10px 15px;
  margin: 5px;
  font-family: monospace;
  cursor: pointer;
}

.mobile-controls button:active {
  background: #00ff00;
  color: #050505;
}