/* 🔥 RESET */
body {
  margin: 0;
  overflow: hidden;
  background: black;
  font-family: 'Press Start 2P', cursive;
}

/* 🎮 CANVAS */
canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: black;
}

/* 🔐 OVERLAY */
#overlay {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

/* 📦 LOGIN BOX */
#loginBox {
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid #8b0000;

  padding: 30px;
  width: 300px;

  text-align: center;

  box-shadow: 0 0 20px #8b0000;
}

/* 🟥 TITLE */
#loginBox h1 {
  color: #ff2a2a;
  font-size: 14px;
  margin-bottom: 30px;
  text-shadow: 0 0 10px red;
}

/* 🔲 INPUT */
input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;

  background: black;
  border: 2px solid #8b0000;

  color: red;
  font-family: inherit;
  font-size: 10px;
}

/* 🔴 BUTTON */
button {
  width: 100%;
  padding: 10px;

  background: #8b0000;
  border: none;

  color: white;
  font-family: inherit;
  font-size: 10px;

  cursor: pointer;
}

button:hover {
  background: #ff0000;
}

/* ❌ ERROR */
#error {
  color: red;
  font-size: 8px;
  margin-top: 10px;
}

/* 🔥 LOGIN STATE (Blur Game) */
body.login-active canvas {
  filter: blur(4px) brightness(0.4);
}