* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: system-ui, sans-serif;
  background: #030712;
  color: #e5e7eb;
  text-align: center;
}

:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.hud {
  width: 100%;
  padding: 0.75rem;
  background: #111827;
}

.hud h1 {
  margin: 0;
  font-size: 1.25rem;
}

.hud__score {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

canvas {
  display: block;
  width: 300px;
  height: 360px;
  max-width: 100%;
  background: #000;
  border: 2px solid #4ade80;
  border-radius: 4px;
  touch-action: none;
}

.status {
  min-height: 1.5rem;
  margin: 0;
  max-width: 300px;
  font-weight: 600;
}

.button {
  padding: 0.5rem 1.5rem;
  border: 0;
  border-radius: 8px;
  background: #4ade80;
  color: #052e16;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.button:hover {
  background: #86efac;
}

.hint {
  margin: 0;
  color: #9ca3af;
  font-size: 0.875rem;
}
