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

body {
  background: #000;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  user-select: none;
}

#game-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

#board-wrapper {
  position: relative;
  line-height: 0;
}

#board {
  border: 2px solid #fff;
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}

#overlay.hidden {
  display: none;
}

#overlay-content {
  text-align: center;
}

#overlay-content h2 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

#overlay-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

#restart-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 10px 28px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 1px;
}

#restart-btn:hover {
  background: #ccc;
}

#sidebar-left,
#sidebar-right {
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 2px;
}

.panel {
  border: 1px solid #444;
  padding: 10px;
  text-align: center;
}

.panel h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 8px;
}

.panel p {
  font-size: 20px;
  font-weight: bold;
}

.panel canvas {
  display: block;
  margin: 0 auto;
}

#controls-hint {
  margin-top: 20px;
  color: #555;
  font-size: 12px;
  text-align: center;
}
