/* Dörtle - sadece bu oyuna ait görünüş. Tahta ve pul renkleri oyunun içerik renkleri. */

.bilgi select {
  font: inherit;
  color: var(--yazi);
  background: transparent;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.bilgi select option { background: var(--yuzey); }
.bilgi[hidden] { display: none; }

.durum {
  max-width: 520px;
  margin: 0 auto 14px;
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
}
.durum.bitti { color: var(--ana); }

.tahta {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2b5fc4, #1f4596);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.2);
  direction: ltr;
  touch-action: manipulation;
}

.sutun {
  display: grid;
  grid-template-rows: repeat(6, auto);
  gap: 4px;
  padding: 3px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.sutun:not(:disabled):hover { background: rgba(255, 255, 255, 0.14); }
.sutun:disabled { cursor: default; }

.yuva {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #12285a;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.45);
}
.yuva.p1 { background: radial-gradient(circle at 35% 30%, #ffe680, #f2c21b 60%, #c99a00); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.yuva.p2 { background: radial-gradient(circle at 35% 30%, #ff8a7a, #e0402c 60%, #a8271a); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.yuva.yeni { animation: dus 0.35s cubic-bezier(0.4, 0, 0.6, 1.4); }
.yuva.dort { outline: 4px solid #ffffff; outline-offset: -4px; }
@keyframes dus {
  from { transform: translateY(-260%); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .yuva.yeni { animation: none; } }

.ipucu {
  text-align: center;
  color: var(--soluk);
  font-size: 0.9rem;
}

/* Sayfa zemini desenli: yazı iki temada da okunsun diye kutu içinde */
.ipucu {
  width: fit-content;
  max-width: min(100%, 520px);
  margin-left: auto;
  margin-right: auto;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--yuzey);
  border: 1px solid var(--cizgi);
}

/* ---------- 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. */
/* Mor çerçeve, koyu delikler; pullarda oyuk halka */
.tahta {
  background: linear-gradient(145deg, #7c6bd0, #4b3c96 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -6px 0 rgba(0, 0, 0, 0.2);
}
[data-tema="karanlik"] .tahta { background: linear-gradient(145deg, #4a3d8f, #2c2360 55%); }
.yuva { background: #13121c; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.12); }
.yuva.p1 { background: radial-gradient(circle, transparent 46%, rgba(150, 110, 0, 0.35) 49%, transparent 54%), radial-gradient(circle at 35% 30%, #ffe680, #f2c21b 60%, #c99a00); }
.yuva.p2 { background: radial-gradient(circle, transparent 46%, rgba(110, 20, 10, 0.35) 49%, transparent 54%), radial-gradient(circle at 35% 30%, #ff8a7a, #e0402c 60%, #a8271a); }
/* ---------- /sudoku-satranç tarzı ---------- */
