[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1b24;
  color: #e6e6f0;
  font-family: system-ui, sans-serif;
}

.layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.panel {
  width: 150px;
}

.panel h2 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9ab0;
  margin: 8px 0;
}

canvas {
  display: block;
  background: #0d0d12;
  border: 2px solid #33334a;
  border-radius: 4px;
}

.board-wrap {
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  font-size: 28px;
  font-weight: bold;
  text-align: center;
}

.overlay small {
  font-size: 14px;
  font-weight: normal;
  color: #9a9ab0;
}

.controls {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #9a9ab0;
}

.stats {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 18px;
}

.stats dt {
  color: #9a9ab0;
}

.stats dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
