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

body {
  background: #0a0015;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
}

#scoreOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#scoreBox {
  background: #1a003a;
  border: 2px solid #ff69b4;
  box-shadow: 0 0 24px #ff69b4, 0 0 60px rgba(255,20,147,0.3);
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  color: #ffffff;
  max-width: 90vw;
  width: 340px;
}

#scoreMsg {
  font-size: 20px;
  font-weight: bold;
  color: #ffd700;
  margin: 0 0 6px;
}

#scoreVal {
  font-size: 16px;
  color: #ff69b4;
  margin: 0 0 20px;
}

#playerNameInput {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-family: 'Courier New', Courier, monospace;
  background: #0a001e;
  color: #ffffff;
  border: 2px solid #ff69b4;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 16px;
  box-sizing: border-box;
}

#playerNameInput:focus {
  outline: none;
  border-color: #ffd700;
}

#submitScoreBtn {
  padding: 10px 28px;
  font-size: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  background: #ff69b4;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
}

#submitScoreBtn:hover, #submitScoreBtn:active {
  background: #ffd700;
  color: #1a003a;
}

#gameCanvas {
  display: block;
  background: #0a0015;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 2px solid #ff69b4;
  box-shadow: 0 0 20px #ff69b4, 0 0 60px #ff1493, 0 0 100px rgba(255,20,147,0.3);
  touch-action: none;
  cursor: pointer;
}
