/* Tangram - sadece bu oyuna ait görünüş. Parça renkleri oyunun içerik renkleri. */

.zorluklar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.zorluk {
  padding: 8px 16px;
  border: 1px solid var(--cizgi);
  border-radius: 999px;
  background: var(--yuzey);
  color: var(--yazi);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.zorluk.aktif { background: var(--ana); border-color: var(--ana); color: var(--ana-uzeri); }

/* Şekil gezgini: ◀ 3 / 19 · Elmas ▶ */
.sekil-gezgin { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 12px; }
.ok-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--cizgi);
  border-radius: 12px;
  background: var(--yuzey);
  color: var(--ana);
  font: inherit; font-size: 1.1rem;
  cursor: pointer;
}
.ok-btn:hover:not(:disabled) { background: var(--ana-acik); }
.ok-btn:disabled { opacity: 0.35; cursor: default; }
.sekil-yazi {
  min-width: 190px;
  padding: 10px 16px;
  border: 1px solid var(--cizgi);
  border-radius: 12px;
  background: var(--yuzey);
  color: var(--yazi);
  text-align: center;
  font-weight: 700;
}
.sekil-yazi.cozuldu { color: var(--basari); border-color: var(--basari); }

.bilgi-satiri { justify-content: center; }
.durum {
  width: fit-content; max-width: 100%;
  min-height: 1.5em;
  margin: 4px auto 10px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--yuzey);
  border: 1px solid var(--cizgi);
  color: var(--yazi);
  text-align: center;
  font-weight: 700;
}
.durum .sonraki { margin-left: 6px; padding: 6px 12px; font-size: 0.9rem; }

.tangram-alan { width: min(100%, 600px); margin: 0 auto 12px; padding: 8px; direction: ltr; }
.tahta { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }

/* Hedef: gölge + parçaların nereye oturacağını gösteren kesik çizgiler */
.hedef-parca { fill: #3d3768; stroke: rgba(255, 255, 255, 0.75); stroke-width: 0.06; stroke-dasharray: 0.22 0.12; stroke-linejoin: round; }
[data-tema="karanlik"] .hedef-parca { fill: #cfc9e6; stroke: rgba(29, 27, 46, 0.75); }
.hedef-parca.ipucu-goster { stroke: #ffd84a; stroke-width: 0.14; stroke-dasharray: 0.3 0.18; animation: ipucu 0.6s steps(2) infinite; }
@keyframes ipucu { 50% { stroke-opacity: 0.3; } }
.tepsi { fill: var(--ana-acik); stroke: var(--cizgi); stroke-width: 0.05; }
.parca.kucuk { stroke-width: 0.04; }

.parca {
  stroke: rgba(29, 27, 46, 0.55);
  stroke-width: 0.05;
  stroke-linejoin: round;
  cursor: grab;
  transition: filter 0.15s;
}
.parca:focus { outline: none; }
.parca:focus-visible, .parca.secili { stroke: var(--yazi); stroke-width: 0.12; }
.parca.tutuluyor { cursor: grabbing; filter: drop-shadow(0 0.25px 0.35px rgba(0, 0, 0, 0.45)); }
.tahta.cozuldu .parca { stroke: rgba(255, 255, 255, 0.85); animation: parla 1.2s ease-in-out 2; }
@keyframes parla { 50% { filter: brightness(1.25); } }

.kontroller { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.kontroller .buton:disabled { opacity: 0.45; cursor: default; }
.aciklama { max-width: 560px; margin: 0 auto; color: var(--soluk); }
.aciklama p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  .hedef-parca.ipucu-goster, .tahta.cozuldu .parca { animation: none; }
}

/* ---------- Görünüm: sudoku/satranç tarzı (Batu'nun isteği, 2026-12-01) ----------
   Satranç ve Sudoku ile aynı dil: mor gradyan çerçeve, içinde gece renkleriyle KOYU oyun alanı
   (sayfa açık temadayken de koyu: sudoku/stil.css "Gündüz teması" bloğu gibi). Hafif parlaklık ve kabartma.
   Sadece bu blok değişti; geri almak için bloğu silmek yeterli. */
/* Koyu tahta mor çerçevede; hedef gölge açık lila, çizgiler koyu */
.tangram-alan {
  color-scheme: dark;
  --yuzey: #1d1b2a; --arka: #13121c; --yazi: #ecebf5; --soluk: #9c99b5; --cizgi: #3a3652;
  --ana: #8f75ff; --ana-koyu: #a591ff; --ana-acik: #2a2450; --ana-uzeri: #13121c; --basari: #34c27f; --hata: #ff6b78;
}
.tangram-alan {
  padding: clamp(6px, 1.8vw, 12px);
  border: none;
  border-radius: 16px;
  background: linear-gradient(145deg, #7c6bd0, #4b3c96 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
[data-tema="karanlik"] .tangram-alan { background: linear-gradient(145deg, #4a3d8f, #2c2360 55%); }
.tangram-alan { border: 8px solid transparent; background: linear-gradient(#1d1b2a, #1d1b2a) padding-box, linear-gradient(145deg, #7c6bd0, #4b3c96 55%) border-box; }
[data-tema="karanlik"] .tangram-alan { background: linear-gradient(#1d1b2a, #1d1b2a) padding-box, linear-gradient(145deg, #4a3d8f, #2c2360 55%) border-box; }
.tangram-alan .hedef-parca, [data-tema="karanlik"] .tangram-alan .hedef-parca { fill: #cfc9e6; stroke: rgba(29, 27, 46, 0.8); }
.tangram-alan .tepsi { fill: #13121c; stroke: #3a3652; }

/* ---------- /sudoku-satranç tarzı ---------- */
