
#gameplayScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: #fff;
  background-color: #111;
  height: 100vh;
  box-sizing: border-box;
}

.gameplayTopRow {
  display: flex;
  justify-content: space-between;
  width: 400px;
  margin-bottom: 10px;
  font-size: 18px;
  align-items: center;
}

.hintArea {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 400px;
}

.hintRow {
  background-color: #222;
  padding: 8px;
  border-radius: 6px;
  color: #0f0;
  font-style: italic;
  font-size: 14px;
}



.safeImageSection,
.inputSection,
.hintArea,
.powerupsSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.inputSection {
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  margin: 15px 0;
  text-align: center;
  width: auto; /* or just remove width completely */
}

.digitInput {
  width: 40px;
  height: 32px;
  font-size: 20px;
  text-align: center;
}

.digitInput::-webkit-outer-spin-button,
.digitInput::-webkit-inner-spin-button {
  opacity: 1; /* show spinner in WebKit (Chrome, Edge, Safari) */
}

.powerupsSection {
  margin: 15px 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: center;
}

.submitBtn {
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background: linear-gradient(to right, #00ff99, #00ccff);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 255, 200, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submitBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 255, 200, 0.4);
}

.hintRow {
  width: 100%;
  text-align: center;
}

.imageWrapper {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.safe-img {
  width: 200px;
  position: relative;
  z-index: 1;
  object-fit: contain;
  margin-bottom: 10px;
}

.burglar-img {
position: absolute;
  bottom: 0;
  left: 150px; /* Adjust this to control horizontal overlap */
  z-index: 2;
  width: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Add to gameplay.css */
.hintRow.revealed {
  color: lime;
  font-weight: bold;
}

.digitInput.xray-match {
  background-color: limegreen;
  color: black;
  font-weight: bold;
}

.digitInput.xray-wrong {
  background-color: red;
  color: white;
  font-weight: bold;
}

/* EXISTING gameplay styles kept as-is above... */

/* ⬇️ NEW: Responsive layout for smaller screens */
@media (max-width: 480px) {
  #gameplayScreen {
    padding: 10px;
  }

  .gameplayTopRow {
    flex-direction: column;
    width: 100%;
    font-size: 16px;
    gap: 4px;
  }

  .safe-img {
    width: 140px;
  }

  .burglar-img {
    width: 100px;
    left: 100px;
  }

  .hintRow {
    font-size: 13px;
    padding: 6px;
  }

  .digitInput {
    width: 32px;
    height: 28px;
    font-size: 18px;
  }

  .submitBtn {
    font-size: 16px;
    padding: 10px 20px;
  }

  .powerupsSection {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .inputSection {
    flex-wrap: wrap;
    gap: 6px;
  }
}
