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

html, body {
  width: 100%; height: 100%;
  background: #0D0D0D;
  display: flex; align-items: center; justify-content: center;
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  overflow: hidden;
}

/* Phaser canvas — no border-radius, sharp Bauhaus edges */
canvas { display: block; image-rendering: pixelated; }

/* ── Nickname overlay ────────────────────────────────────────────── */
#nick-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: #0D0D0D;
  align-items: center; justify-content: center;
}
#nick-overlay.show { display: flex; }

#nick-modal {
  background: #0D0D0D;
  border: 3px solid #FFD600;      /* Bauhaus yellow border */
  width: 300px;
  padding: 0;
  position: relative;
  font-family: "Arial Black", Arial, sans-serif;
}

/* Coloured top bar — Bauhaus block */
#nick-modal::before {
  content: "";
  display: block;
  height: 8px;
  background: #FFD600;
}

#nick-inner { padding: 28px 24px 24px; }

#nick-modal h3 {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

#nick-close {
  position: absolute; top: 16px; right: 16px;
  color: #555; font-size: 18px; cursor: pointer;
  background: none; border: none; font-weight: 900;
  line-height: 1;
}
#nick-close:hover { color: #FF2020; }

#nick-input {
  width: 100%; background: #161616; color: #FFFFFF;
  border: 2px solid #333; border-top: none; border-left: none; border-right: none;
  border-bottom: 2px solid #FFD600;
  padding: 10px 0; font-size: 15px;
  font-family: "Arial Black", Arial, sans-serif;
  outline: none; letter-spacing: 1px;
}
#nick-input::placeholder { color: #444; }
#nick-input:focus { border-bottom-color: #FFFFFF; }

#nick-error {
  color: #FF2020; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-top: 8px; min-height: 14px;
}

#nick-continue {
  margin-top: 20px; width: 100%;
  background: #FFD600; color: #0D0D0D;
  border: none; padding: 13px 0;
  font-size: 13px; font-weight: 900;
  letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer;
  transition: background .1s;
}
#nick-continue:hover   { background: #FFF000; }
#nick-continue:disabled {
  background: #333; color: #666; cursor: not-allowed;
}
