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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a2030;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

#game {
  display: block;
  background: #a8e0ff;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  touch-action: none;
}

#namePrompt {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  font-family: ui-monospace, "Courier New", monospace;
}
#namePrompt[hidden] { display: none; }
.np-card {
  background: #1a2848; color: #fff; padding: 24px;
  border-radius: 8px; text-align: center;
  border: 3px solid #ffe066;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  min-width: 260px;
}
.np-title { font-weight: bold; font-size: 18px; margin-bottom: 14px; color: #ffe066; }
.np-card input {
  width: 100%; padding: 10px; font-size: 22px;
  font-family: ui-monospace, monospace;
  background: #fff; color: #1a2848;
  border: 2px solid #5cd0ff; border-radius: 4px;
  text-align: center; text-transform: uppercase;
  margin-bottom: 14px; box-sizing: border-box; font-weight: bold;
}
.np-card input:focus { outline: none; border-color: #ffe066; }
.np-buttons { display: flex; gap: 10px; justify-content: center; }
.np-buttons button {
  padding: 10px 22px; font-family: ui-monospace, monospace;
  font-weight: bold; font-size: 14px;
  border: none; border-radius: 4px; cursor: pointer;
  background: #5cd0ff; color: #1a2848;
}
.np-buttons button:active { transform: translateY(1px); }
.np-buttons #npCancel { background: #c83030; color: #fff; }
