:root { color-scheme: dark; }
html, body { margin: 0; height: 100%; background: #07060f; overflow: hidden; }
body { display: grid; place-items: center; touch-action: none; -webkit-user-select: none; user-select: none;
       -webkit-tap-highlight-color: transparent; font-family: "Press Start 2P", monospace; }
canvas { display: block; outline: none; }
noscript { color: #fff; font-size: 12px; padding: 24px; text-align: center; line-height: 2; }
.hidden { display: none !important; }
#nameForm { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box;
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: rgba(10, 8, 24, .96); border: 2px solid #ffd23f; border-radius: 14px; padding: 22px 18px;
  box-shadow: 0 0 40px rgba(255, 155, 58, .35); display: flex; flex-direction: column; gap: 14px;
  text-align: center; z-index: 5; }
#nameForm label { color: #ffd23f; font-size: 12px; line-height: 1.8; }
#nameForm input { box-sizing: border-box; width: 100%; height: auto; font: 16px "Press Start 2P", monospace; color: #fff; background: #1b1638; border: 2px solid #5a4fa0;
  border-radius: 8px; padding: 12px; text-align: center; outline: none; -webkit-user-select: text; user-select: text; }
#nameForm input:focus { border-color: #ff9b3a; }
#nameForm .row { display: flex; gap: 10px; justify-content: center; align-items: center; }
#nameForm button { height: auto; flex: 0 0 auto; font: 12px "Press Start 2P", monospace; color: #07060f; background: #ffd23f; border: 0;
  border-radius: 8px; padding: 12px 18px; cursor: pointer; }
#nameForm button[type=button] { background: #3a3366; color: #fff; }
