* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: 'Courier New', Courier, monospace;
}

#wrap {
  text-align: center;
}

.home-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid #f5f5f5;
  color: #f5f5f5;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.home-btn:hover {
  filter: brightness(1.25);
}

h1 {
  letter-spacing: 0.4em;
  margin: 0 0 10px;
  font-size: 1.4rem;
}

#hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 12px;
}

.score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.8rem;
  min-width: 90px;
}

.score .label {
  font-size: 0.7rem;
  opacity: 0.6;
}

#speedSelect {
  display: flex;
  gap: 6px;
}

.speedBtn {
  background: #111;
  color: #ccc;
  border: 1px solid #444;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 3px;
}

.speedBtn:hover {
  border-color: #888;
}

.speedBtn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

canvas {
  background: #000;
  border: 2px solid #fff;
  display: block;
  cursor: none;
}

#hint {
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0.6;
}
