html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: #050108;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: monospace;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 220, 255, 0.08), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 0, 220, 0.06), transparent 60%),
    #050108;
}

#game {
  display: block;
  image-rendering: pixelated;
  cursor: pointer;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
  user-select: none;
  touch-action: none;
}

#auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 1, 15, 0.85);
  backdrop-filter: blur(6px);
  z-index: 10;
  padding: 24px;
  box-sizing: border-box;
}

#auth-overlay.hidden,
#auth-overlay .hidden { display: none; }

.auth-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: rgba(20, 8, 40, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.18);
  color: #d8e0ff;
  font-family: ui-monospace, "Courier New", monospace;
}

.auth-card h1 {
  margin: 0 0 4px 0;
  font-size: 24px;
  letter-spacing: 2px;
  text-align: center;
  color: #00f0ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.65);
}

.auth-card input {
  padding: 12px 14px;
  background: rgba(10, 4, 24, 0.9);
  border: 1px solid rgba(120, 100, 180, 0.55);
  border-radius: 6px;
  color: #f0f4ff;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.auth-card input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.25);
}

.auth-error {
  min-height: 18px;
  font-size: 13px;
  color: #ff3a5c;
  text-shadow: 0 0 8px rgba(255, 58, 92, 0.6);
}

.btn-primary {
  padding: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid #00f0ff;
  border-radius: 6px;
  color: #00f0ff;
  font: inherit;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
}
.btn-primary:hover { background: rgba(0, 240, 255, 0.16); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.btn-link {
  background: none;
  border: none;
  color: #b14aed;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 2px;
}
.btn-link:hover { color: #d077ff; }
