* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #0d1117;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 16px;
}
.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 580px;
}
.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
h1 { font-size: 1.35rem; }
.subtitle { color: #8b949e; font-size: 0.85rem; margin-top: 2px; }
.stats {
  display: flex;
  gap: 14px;
  font-family: monospace;
  font-size: 0.95rem;
  background: #0d1117;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #30363d;
}
canvas {
  background: #010409;
  border: 1px solid #30363d;
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
}
.controls {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
button {
  background: #238636;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: #2ea043; }
#statusText { color: #8b949e; font-size: 0.9rem; font-family: monospace; }
