* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #1a1a2e;
  color: #eee;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  user-select: none;
}
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
h1 {
  font-size: 28px;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #f0c878, #e8a830);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
#board-container {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: inline-block;
}
#board-canvas {
  display: block;
  cursor: pointer;
  border-radius: 12px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.controls button {
  padding: 10px 22px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  background: #16213e;
  color: #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.controls button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.controls button.primary {
  background: linear-gradient(135deg, #e8a830, #d4901a);
  color: #1a1a2e;
  font-weight: bold;
}
.controls button.primary:hover {
  background: linear-gradient(135deg, #f0b840, #e8a830);
}
.controls button.danger {
  background: linear-gradient(135deg, #c0392b, #96281b);
  color: #fff;
}
.controls button.secondary {
  background: linear-gradient(135deg, #2c3e50, #1a252f);
}
#status {
  font-size: 14px;
  color: #aaa;
  text-align: center;
  min-height: 20px;
}
#stats {
  font-size: 14px;
  color: #888;
  text-align: center;
}
@media (max-width: 600px) {
  .container { padding: 10px; gap: 10px; }
  h1 { font-size: 20px; }
  .controls button { padding: 8px 14px; font-size: 13px; }
}
