body {
  font-family: Arial;
  text-align: center;
  background: #111;
  color: white;
}

#gameWrapper {
  position: relative;
  display: inline-block;
}

#grid {
  display: grid;
  grid-template-columns: repeat(15, 40px);
  gap: 8px;
  margin: 20px;
  padding: 12px;

  background: rgba(0, 0, 0, 0.85); /* 🔥 main black backing */
  border-radius: 16px;

  box-shadow: 
    0 0 0 2px rgba(255,255,255,0.05), 
    0 0 30px rgba(0,0,0,0.6);
}

.cell {
  width: 40px;
  height: 40px;
  border-radius: 10px;

  background: #2a2a2a; /* 👈 softer grey */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);

  display: flex;
  align-items: center;
  justify-content: center;
  
  font-weight: bold;
  color: #e5e5e5;

  transition: all 0.2s ease;
}

.selected {
  background: linear-gradient(135deg, #00e5ff, #00bcd4);
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(0,229,255,0.8);
}

.found {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: white;
  box-shadow: 0 0 12px rgba(34,197,94,0.8);
}

#winScreen {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.95);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:999;
}

#resetBtn {
  padding:12px 24px;
  font-size:18px;
  border:none;
  border-radius:8px;
  background:#00e5ff;
  cursor:pointer;
}

.dim {
  opacity: 0.15;
  transition: opacity 0.2s ease;
}

@media (max-width: 600px) {
  #grid {
    grid-template-columns: repeat(15, 28px);
  }

  .cell {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }  
}

.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#grid, .cell {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}