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

html, body {
  width: 100%; height: 100%;
  background: #050510;
  overflow: hidden;
  position: fixed;
  overscroll-behavior: none;
}

#game {
  display: block;
  width: 100vw; height: 100vh;
  width: 100dvw; height: 100dvh; /* iOS dynamic chrome */
  touch-action: none;
  cursor: crosshair;
}

#mute, #pause {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  width: 46px; height: 46px;
  background: rgba(10, 15, 40, 0.6);
  border: 1px solid rgba(80, 200, 255, 0.4);
  border-radius: 10px;
  color: #7df;
  font-size: 20px;
  z-index: 10;
}

#pause { left: calc(env(safe-area-inset-left, 0px) + 12px); }
#mute { right: calc(env(safe-area-inset-right, 0px) + 12px); }

/* v30: arcade name entry overlay */
#nameentry {
  position: fixed; inset: 0;
  z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 16, 0.85);
  font-family: monospace;
}
#nameentry[hidden] { display: none; }
.ne-card {
  background: rgba(20, 26, 48, 0.95);
  border: 2px solid rgba(136, 238, 255, 0.5);
  border-radius: 12px;
  padding: 26px 30px;
  text-align: center;
  box-shadow: 0 0 40px rgba(136, 238, 255, 0.15);
}
.ne-title {
  color: #ffd24d; font-size: 26px; font-weight: bold;
  text-shadow: 0 0 14px rgba(255, 210, 77, 0.6);
  letter-spacing: 3px;
}
.ne-sub { color: #8ef; font-size: 14px; margin: 10px 0 16px; letter-spacing: 2px; }
#ne-name {
  width: 200px;
  background: #050510;
  border: 1px solid rgba(136, 238, 255, 0.5);
  border-radius: 8px;
  color: #8ef;
  font-family: monospace; font-size: 26px; font-weight: bold;
  letter-spacing: 4px;
  text-align: center; text-transform: uppercase;
  padding: 10px 8px;
  outline: none;
}
#ne-name:focus { border-color: #8ef; box-shadow: 0 0 12px rgba(136, 238, 255, 0.4); }
.ne-row { display: flex; gap: 14px; justify-content: center; margin-top: 18px; }
.ne-row button {
  font-family: monospace; font-size: 16px; font-weight: bold;
  letter-spacing: 2px;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
}
#ne-submit {
  background: rgba(136, 238, 255, 0.15);
  border: 1px solid #8ef; color: #8ef;
}
#ne-skip {
  background: transparent;
  border: 1px solid rgba(136, 238, 255, 0.3); color: #78a;
}
