.puzzle-image {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #f8f9ff, #e8f4ff);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.image-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.image-emoji.revealed {
  opacity: 1;
  animation: pop 0.5s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
}

.puzzle-piece-slot {
  background: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.puzzle-piece-slot.filled {
  background: #d4edda;
  color: #27ae60;
}

.puzzle-piece-slot.correct {
  animation: pulse 0.5s ease;
}

.puzzle-pieces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.puzzle-piece {
  min-width: 70px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: 3px solid;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.puzzle-piece:hover {
  transform: scale(1.1);
}

.puzzle-piece.selected {
  transform: scale(1.15);
  box-shadow: 0 0 15px currentColor;
}

.puzzle-piece.placed {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Renk sınıfları */
.piece-a {
  background: #ffe8e8;
  border-color: #ff6b6b;
  color: #c0392b;
}
.piece-e {
  background: #fff0e0;
  border-color: #ffa94d;
  color: #d35400;
}
.piece-i {
  background: #fff9e0;
  border-color: #ffe066;
  color: #f39c12;
}
.piece-ii {
  background: #e8f8eb;
  border-color: #69db7c;
  color: #27ae60;
}
.piece-o {
  background: #e8f4ff;
  border-color: #74c0fc;
  color: #2980b9;
}
.piece-oo {
  background: #f0ebff;
  border-color: #b197fc;
  color: #8e44ad;
}
.piece-u {
  background: #ffe8f2;
  border-color: #f783ac;
  color: #e84393;
}
.piece-uu {
  background: #ffe0eb;
  border-color: #e64980;
  color: #c0392b;
}

.word-display {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.word-syllables {
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 2rem;
  font-weight: 800;
}

.syllable-display {
  padding: 5px 15px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.syllable-display.pending {
  background: var(--gray-200);
  color: var(--gray-800);
}

.syllable-display.active {
  background: var(--primary);
  color: white;
  animation: pulse 1s ease infinite;
}

.syllable-display.completed {
  opacity: 0.6;
}

.progress-text {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-800);
  font-weight: 600;
  margin-top: 15px;
}

/* Responsive */
@media (max-width: 500px) {
  .puzzle-image {
    width: 160px;
    height: 160px;
  }

  .image-emoji {
    font-size: 6rem;
  }

  .puzzle-piece {
    min-width: 55px;
    height: 45px;
    font-size: 1.1rem;
  }

  .word-syllables {
    font-size: 1.5rem;
  }
}
