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

body {
  background: #202124;
  font-family: "Courier New", monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  touch-action: none;
}

canvas {
  display: block;
  background: #f7f7f7;
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 247, 247, 0.92);
  transition: opacity 0.3s;
}

#overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#start-screen,
#game-over-screen {
  text-align: center;
  padding: 30px;
}

h1 {
  font-size: 40px;
  color: #535353;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

h2 {
  font-size: 32px;
  color: #535353;
  margin-bottom: 16px;
}

p {
  color: #6b6b6b;
  font-size: 16px;
  margin: 8px 0;
}

.key {
  display: inline-block;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: bold;
  color: #535353;
}

button {
  margin-top: 24px;
  padding: 12px 36px;
  font-size: 18px;
  font-family: inherit;
  font-weight: bold;
  color: #fff;
  background: #535353;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #757575;
}

button:active {
  transform: scale(0.96);
}
