/* =========================
   🧩 PUZZLE CONTAINER
========================= */
.img-puzzle {
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  color: #fff;
}

.img-puzzle h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

/* =========================
   🧱 BOARD (PREMIUM)
========================= */
.board {
  position: relative;
  width: 350px;
  height: 350px;

  margin: 20px auto;
  border-radius: 18px;

  background: linear-gradient(145deg, #1e1e1e, #121212);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);

  overflow: hidden;
}

/* =========================
   🧩 TILES
========================= */
.tile {
  position: absolute;

  border-radius: 10px;
  cursor: pointer;

  background-repeat: no-repeat;
  background-size: cover;

  transition: transform 0.25s ease, box-shadow 0.25s ease;

  box-shadow: inset 0 0 5px rgba(255,255,255,0.05);
}

/* 🔥 Hover FIX (no transform conflict) */
.tile:hover {
  box-shadow: 0 0 12px rgba(102,126,234,0.6);
  z-index: 2;
}

/* =========================
   🎉 WIN STATE
========================= */
.win {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;

  color: #4caf50;

  animation: popWin 0.5s ease;
}

@keyframes popWin {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   🔁 RESTART BUTTON
========================= */
.restart {
  margin-top: 15px;
  padding: 10px 18px;

  border: none;
  border-radius: 25px;

  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: white;

  cursor: pointer;
  font-weight: 500;

  transition: 0.25s;
}

.restart:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255,126,95,0.6);
}

/* =========================
   📱 RESPONSIVE
========================= */
@media (max-width: 480px) {
  .board {
    width: 300px;
    height: 300px;
  }
}

.controls {
  margin-top: 10px;
}

.controls button {
  margin: 5px;
  padding: 8px 16px;

  border-radius: 20px;
  border: none;

  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;

  cursor: pointer;
  font-size: 13px;

  transition: 0.25s;
}

.controls button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(102,126,234,0.6);
}