* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #05070b;
  color: #e6edf3;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.game {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.panel {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.panel h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8b949e;
}

.panel canvas {
  background: #0d1117;
  border: 2px solid #30363d;
  border-radius: 4px;
}

.stats {
  width: 100%;
  margin: 16px 0 0;
}

.stats dt {
  font-size: 12px;
  text-transform: uppercase;
  color: #8b949e;
}

.stats dd {
  margin: 0 0 12px;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.message {
  min-height: 3em;
  margin: 0;
  text-align: center;
  font-weight: bold;
  color: #f0c000;
}

.well {
  position: relative;
  border: 2px solid #30363d;
  border-radius: 4px;
  line-height: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: pre-line;
  line-height: 1.6;
  font-size: 22px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.65);
}

.overlay[hidden] { display: none; }

.help {
  font-size: 13px;
  color: #8b949e;
}
