@charset "UTF-8";
 
 
 
#gameWindow {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  color: white;
  z-index: 99999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: monospace;
}

.game-screen {
  display: none;
  text-align: center;
}

.btn {
  background: #222;
  color: #fff;
  border: 2px solid #555;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.2em;
}
.btn:hover {
  background: #555;
}

#closeGame {
  position: absolute;
  top: 10px;
  right: 20px;
  background: red;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
}

/* ----- FASE 1 ----- */
#fase1 {
  position: relative;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
}

.painel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  border: 3px solid #555;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.display-codigo {
  width: 120px;
  height: 40px;
  background: #000;
  color: #0f0;
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 10px;
  border: 2px inset #333;
  border-radius: 5px;
  letter-spacing: 3px;
}

.teclado {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  grid-gap: 8px;
}

.tecla {
  background: #333;
  color: white;
  border: none;
  padding: 10px;
  font-size: 1.2em;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.tecla:hover {
  background: #666;
}

.tecla.apagar {
  grid-column: span 3;
  background: #800;
}


#fase1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#cenarioContainer {
  position: relative;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#cenario {
  width: 100%;
  height: auto;
  display: block;
}

#interruptor {
  position: absolute;
  top: 55.5%;
  left: 88.5%;
  width: 2.3%;
  height: auto;
  cursor: pointer;
  z-index: 10;
  image-rendering: pixelated;
}

#fechadura {
  position: absolute;
  top: 64.3%;
  left: 53%;
  width: 3%;
  height: auto;
  cursor: pointer;
  z-index: 10;
  image-rendering: pixelated;
}

