* { margin: 0; padding: 0; box-sizing: border-box; }

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

#menu, #deathScreen {
  text-align: center;
  background: #1e293b;
  padding: 2rem 3rem;
  border-radius: 12px;
  min-width: 320px;
}

h1 { margin-bottom: 1.5rem; color: #22c55e; }
h2, h3 { margin: 1rem 0 0.5rem; color: #94a3b8; }

input {
  padding: 0.6rem 1rem;
  border: 2px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 0.75rem;
  outline: none;
}
input:focus { border-color: #22c55e; }

button {
  padding: 0.6rem 2rem;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0.25rem;
}
button:hover { background: #16a34a; }

ol {
  list-style-position: inside;
  text-align: left;
  max-height: 240px;
  overflow-y: auto;
}
ol li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #334155;
  font-size: 0.9rem;
}
ol li span.score { float: right; color: #22c55e; font-weight: 600; }

#game { position: relative; }

#hud {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.4rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 1;
}

canvas {
  display: block;
  border-radius: 8px;
  border: 2px solid #334155;
}
