/* PIN gate overlay + lock button (DEV) */
.pinGate{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: transparent; /* galaxy visible, but overlay captures input */
}

.pinGate .pinBox{
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
}

.pinGate .pinLabel{ opacity: 0.9; }

.pinGate input{
  width: 86px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  outline: none;
}

.pinGate button{
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.pinGate button:hover{
  background: rgba(255,255,255,0.14);
}

.pinGate .pinMsg{
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.9;
}

/* Hide site UI while locked (adjust selectors if you add more overlays) */
html:not(.unlocked) #hud,
html:not(.unlocked) #portalCoordInput,
html:not(.unlocked) #portalInfo,
html:not(.unlocked) #portalHighlight{
  display: none !important;
}

/* When unlocked, remove the gate overlay */
html.unlocked #pinGate{ display: none; }

/* Lock button (visible only when unlocked) */
.devLock{
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99998;
  display: none;
}

html.unlocked .devLock{ display: block; }

.devLock button{
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.devLock button:hover{
  background: rgba(0,0,0,0.58);
}
