/* SKYBLØOCK — global */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d1226;
}
#app { width: 100%; height: 100%; }
canvas { display: block; width: 100%; height: 100%; }

/* ============ login ============ */
#login {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 10;
  transition: opacity .5s;
  background: linear-gradient(180deg, rgba(10,14,30,.25), rgba(10,14,30,.55));
  font-family: monospace;
}
#login h1 {
  font-size: 72px;
  letter-spacing: .35em;
  color: #9be15d;
  text-shadow: 0 0 18px rgba(155,225,93,.6);
  font-family: monospace;
  margin: 0;
  text-align: center;
}
#login p.tagline {
  color: #cfd8e3;
  letter-spacing: .2em;
  font-family: monospace;
  margin: 0;
  text-align: center;
}
#login input {
  background: rgba(0,0,0,.45);
  border: 2px solid #3b475c;
  color: #e8eef6;
  padding: 10px 14px;
  font-size: 16px;
  width: 280px;
  text-align: center;
  font-family: monospace;
  outline: none;
}
#login input:focus { border-color: #9be15d; }

.btn {
  padding: 12px 26px;
  font-size: 18px;
  letter-spacing: .15em;
  background: #1c2434;
  color: #e8eef6;
  border: 2px solid #9be15d;
  cursor: pointer;
  font-family: monospace;
}
.btn:hover { background: #9be15d; color: #10151f; }
.btn.primary { font-size: 22px; padding: 14px 34px; }

#login .resume-note {
  color: #9fb0c3;
  font-size: 12px;
  letter-spacing: .1em;
  margin: 0;
  text-align: center;
}

/* ============ HUD ============ */
#hud { pointer-events: none; z-index: 5; }

#crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  pointer-events: none;
}
#crosshair::before, #crosshair::after {
  content: '';
  position: absolute;
  background: #fff;
}
#crosshair::before { width: 14px; height: 2px; left: -7px; top: -1px; }
#crosshair::after { width: 2px; height: 14px; left: -1px; top: -7px; }

#hotbar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(0,0,0,.4);
  border: 2px solid #3b475c;
  pointer-events: none;
}
.slot {
  width: 56px;
  height: 56px;
  border: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(0,0,0,.25);
}
.slot.sel { border-color: #fff; }
.slot img { width: 44px; height: 44px; image-rendering: pixelated; }
.slot .num {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 10px;
  color: #cfd8e3;
  font-family: monospace;
}

#toast {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 20px;
  font-family: monospace;
  letter-spacing: .1em;
  text-shadow: 0 0 8px rgba(0,0,0,.9);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
#toast.show { opacity: 1; }

#pos {
  position: fixed;
  top: 10px;
  left: 12px;
  font-family: monospace;
  color: #cfd8e3;
  font-size: 13px;
}

#pause {
  position: fixed;
  inset: 0;
  background: rgba(8,10,20,.6);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 8;
  font-family: monospace;
}
#pause.show { display: flex; }
#pause h2 {
  color: #e8eef6;
  letter-spacing: .3em;
  font-size: 42px;
  margin: 0;
}
