#section-play {
  flex: 1;
  text-align: center;
  position: relative;
}

#game {
  position: relative;
  width: fit-content;
  height: fit-content;
  display: grid;
  grid-template-columns: repeat(auto-fit, 32px);
  background-color: #000;
}

.game-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  min-width: fit-content;
  min-height: fit-content;
}

.row {
  display: flex;
}

.cell {
  background-size: cover;
  box-sizing: border-box;
  border: 1px solid #4444;
  background-color: #111e;
}

.cell.wall {
  background-image: url('../img/wall.png');
  background-color: #333c;
}

.cell.portal {
  background-image: url('../img/portal.png');
}

.cell.heal {
  background-image: url('../img/heal.png');
}

.cell.scoreUp {
  background-image: url('../img/scoreUp.png');
}

.cell.fire {
  background-image: url('../img/fire.png');
}

.cell.exit {
  background-color: limegreen;
}

.cell.start {
  background-color: darkblue;
}

.unit {
  background-size: cover;
  position: absolute;
  transition: transform 0.25s ease;
  z-index: 10;
}

.unit.hidden {
  display: block !important;
  opacity: 0 !important;
}

.player {
  background-image: url('../img/player.png');
  border: 1px solid mintcream;
}

.enemy {
  border: 1px solid darkred;
}

.worm {
  background-image: url('../img/worm.png');
}

.spy {
  background-image: url('../img/spy.png');
}

.zombie {
  background-image: url('../img/zombie.png');
}

.backdoor {
  transition: opacity 0.3s ease;
  background-image: url('../img/backdoor.png');
}

.bug {
  background-image: url('../img/bug.png');
}

.trojan.active {
  background-image: url('../img/trojan.png');
}

.trojan.heal {
  background-image: url('../img/heal.png');
  border: none;
}

.trojan.score {
  background-image: url('../img/scoreUp.png');
  border: none;
}

.trojan.fire {
  background-image: url('../img/fire.png');
  border: none;
}

.hint {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background-color: rgba(50, 50, 50, 0.95);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(20, 255, 180, 0.3);
  transition: opacity 0.5s ease, transform 0.3s ease;
  z-index: 1001;
  max-width: 75%;
  text-align: center;
  opacity: 1;
  pointer-events: none;
}

.hint.hidden {
  display: block !important;
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.game-info-wrapper {
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 6px;
  z-index: 999;
  pointer-events: none;
}

#info {
  position: sticky;
  display: block;
  margin-bottom: 1em;
  font-size: 20px;
  text-align: left;
  top: 20px;
  left: 20px;
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: 8px;
}

#reveal-progress {
  position: sticky;
  display: block;
  top: 20px;
  right: 20px;
  width: 220px;
  padding: 10px;
  background: #1e2f1e88;
  border: 3px solid #41ff4188;
  border-radius: 16px;
  box-shadow: 0 0 15px #6cff6c33;
  z-index: 1000;
  font-family: 'Press Start 2P', cursive;
}

#reveal-text {
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  margin-bottom: 6px;
}

#reveal-bar-wrapper {
  width: 100%;
  height: 18px;
  background: #333;
  border-radius: 9px;
  overflow: hidden;
}

#reveal-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, #00ff00, #ffff00, #ff0000);
  transition: width 0.3s ease, background 0.3s ease;
}
