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

html {
  height: 100%;
}

body {
  background: #0a1a0a;
  color: #e8d5a3;
  font-family: Georgia, serif;
  min-height: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#name-screen {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

h1 {
  font-size: 3rem;
  color: #7ec8e3;
  text-shadow: 0 0 20px #3a8fa8;
}

h1 + p {
  font-size: 1rem;
  opacity: 0.5;
  margin-top: -0.5rem;
}

#name-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

#name-box label {
  font-size: 1.2rem;
}

#name-preview {
  font-size: 1.6rem;
  color: #aadfc8;
  min-height: 2rem;
  font-style: italic;
}

#prefix {
  background: #0f2a1a;
  border: 2px solid #3a8a5a;
  color: #e8d5a3;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-family: Georgia, serif;
  outline: none;
  width: 200px;
}

#prefix:focus {
  border-color: #7ec8e3;
}

#start-btn {
  background: #1a5a3a;
  border: 2px solid #3a8a5a;
  color: #e8d5a3;
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: Georgia, serif;
  transition: background 0.2s;
}

#start-btn:hover {
  background: #2a7a4a;
}

#game-screen {
  width: 100vw;
  height: 100vh;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
