* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  overflow-x: hidden;
}
#container {
  text-align: center;
  max-width: 488px;
  width: 100%;
}
h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #222;
  margin-bottom: 8px;
}
#score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}
.score-side {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.score-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.score-human .score-label { color: #e74c3c; }
.score-bot .score-label { color: #3498db; }
.score-value {
  font-size: 40px;
  font-weight: 800;
}
.score-human .score-value { color: #e74c3c; }
.score-bot .score-value { color: #3498db; }
.score-divider {
  font-size: 28px;
  font-weight: 800;
  color: #222;
}
canvas {
  display: block;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 6px;
  background: #fff;
  border: 2px solid #ccc;
  overflow: hidden;
}
#status {
  font-size: 14px;
  font-weight: 500;
  min-height: 36px;
  max-width: 488px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  color: #888;
}
#controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
#overlayBtns {
  display: flex;
  gap: 4px;
  margin-left: 10px;
}
.overlay-btn {
  font-family: inherit;
  width: 32px;
  height: 32px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: #888;
  transition: all 0.15s ease;
}
.overlay-btn:hover {
  border-color: #666;
  color: #444;
}
.overlay-btn.active {
  background: #222;
  border-color: #222;
  color: #fff;
}
#newGameBtn {
  font-family: inherit;
  height: 40px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 2px solid #222;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: #222;
  transition: all 0.15s ease;
}
#newGameBtn:hover {
  background: #222;
  color: #fff;
}
#about-link {
  font-size: 13px;
  color: #aaa;
  text-decoration: underline;
}
#about-link:hover {
  color: #666;
}
