/* Oyun eklentileri — grup B (adam, sayi, yalan, bumu, gomoku). Sınıflar oyun tipiyle önekli. */

/* ---------- ortak hile kutusu görünümü ---------- */
.adam-hile, .sayi-hile, .yalan-hile, .bumu-hile, .gomoku-hile {
  width: 100%; background: #1f1630; color: #f5d0fe; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px;
  font-weight: 700; font-size: .92rem; border: 2px dashed #a855f7;
}
.adam-hile b, .sayi-hile b, .yalan-hile b, .bumu-hile b, .gomoku-hile b { color: #fff; }
.adam-hile small, .yalan-hile small, .gomoku-hile small { display: block; margin-top: 4px; font-weight: 600; opacity: .85; overflow-wrap: anywhere; }

/* ---------- 1) Adam Asmaca ---------- */
.adam-not { text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); margin: -4px 0 8px; }
.adam-not b { color: var(--pink-d); letter-spacing: 2px; overflow-wrap: anywhere; }
.adam-son { width: 100%; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); margin-bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.adam-son small { color: var(--muted); font-weight: 700; font-size: .75rem; }
.adam-son em { font-style: normal; font-weight: 800; color: var(--pink-d); letter-spacing: 1px; overflow-wrap: anywhere; }
.adam-son.iyi { background: #ecfdf5; }
.adam-yaz { width: 100%; background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.adam-yaz label { font-weight: 800; text-align: center; }
.adam-yaz small { color: var(--muted); font-weight: 600; font-size: .78rem; text-align: center; }
.adam-giris { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: .7em .9em; font-size: 1.15rem; font-weight: 800; letter-spacing: 2px; text-align: center; outline: none; text-transform: none; }
.adam-giris:focus { border-color: var(--pink); }
.adam-sahne { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-bottom: 6px; }
.adam-svg { width: 120px; height: 112px; flex: none; }
.adam-svg line, .adam-svg path, .adam-svg circle { stroke-width: 4; stroke-linecap: round; fill: none; }
.adam-direk line { stroke: #b08aa0; }
.adam-govde line, .adam-govde path, .adam-govde circle { stroke: var(--pink-d); }
.adam-govde .adam-kafa { fill: var(--pink-l); }
.adam-govde path { stroke-width: 2.5; }
.adam-hak { display: flex; flex-wrap: wrap; max-width: 120px; font-size: 1.05rem; gap: 2px; }
.adam-maske { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 6px 0 8px; width: 100%; }
.adam-kelime { display: inline-flex; gap: 4px; }
.adam-harf { width: 26px; height: 34px; border-bottom: 3px solid var(--pink-d); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 1.25rem; color: var(--pink-d); }
.adam-harf.acik { animation: pop .35s; }
.adam-harf.soluk { color: #d7b6c7; }
.adam-yanlis { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.adam-yanlis s { color: #ef4444; }
.adam-klavye { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; width: min(100%, 400px); }
.adam-klavye button { height: 42px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(225, 48, 108, .12); font-weight: 800; font-size: 1.05rem; color: var(--pink-d); padding: 0; }
.adam-klavye button:active { transform: scale(.94); }
.adam-klavye button.var { background: #bbf7d0; color: #166534; opacity: 1; }
.adam-klavye button.yok { background: #fee2e2; color: #b91c1c; opacity: .55; text-decoration: line-through; }

/* ---------- 2) Sayı Tahmin Düellosu ---------- */
.sayi-kart { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow); text-align: center; width: min(100%, 300px); display: flex; flex-direction: column; gap: 4px; }
.sayi-kart small, .sayi-kart span { color: var(--muted); font-weight: 700; font-size: .85rem; }
.sayi-kart b { font-size: 3rem; color: var(--pink-d); }
.sayi-gir { display: flex; gap: 8px; width: 100%; }
.sayi-gir input { flex: 1; min-width: 0; height: 48px; border: 2px solid var(--line); border-radius: 14px; font-size: 1.3rem; font-weight: 800; text-align: center; outline: none; }
.sayi-gir input:focus { border-color: var(--pink); }
.sayi-gir input.sayi-hata { border-color: #ef4444; animation: shake .4s; }
.sayi-gir .btn { min-height: 48px; white-space: nowrap; }
.sayi-bos { color: var(--muted); font-size: .82rem; font-weight: 700; text-align: center; margin: 6px 0 10px; }
.sayi-acik { display: flex; gap: 10px; width: 100%; margin-bottom: 12px; }
.sayi-acik span { flex: 1; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); text-align: center; font-weight: 700; font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; }
.sayi-acik b { font-size: 1.8rem; color: var(--pink-d); }
.sayi-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.sayi-iki > div { background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); min-width: 0; }
.sayi-iki h4 { margin: 0 0 6px; font-size: .8rem; color: var(--muted); text-align: center; }
.sayi-iki h4 em { font-style: normal; color: var(--pink-d); }
.sayi-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: 280px; overflow-y: auto; }
.sayi-liste li { display: flex; justify-content: space-between; align-items: center; gap: 4px; background: var(--pink-l); border-radius: 10px; padding: 5px 8px; font-size: .8rem; font-weight: 700; }
.sayi-liste li b { font-size: 1.05rem; color: var(--pink-d); }
.sayi-liste li.ok { background: #bbf7d0; }
.sayi-liste li.ok b { color: #166534; }

/* ---------- 3) İki Doğru Bir Yalan ---------- */
.yalan-not { text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); margin: -4px 0 8px; }
.yalan-yaz { width: 100%; display: grid; gap: 10px; margin-bottom: 12px; }
.yalan-satir { background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); display: grid; gap: 6px; border: 2px solid transparent; }
.yalan-satir.on { border-color: #f59e0b; background: #fffbeb; }
.yalan-satir textarea { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: .55em .7em; font: inherit; resize: vertical; outline: none; min-height: 52px; }
.yalan-satir textarea:focus { border-color: var(--pink); }
.yalan-satir button { justify-self: end; min-height: 36px; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 0 14px; font-weight: 800; color: var(--muted); }
.yalan-satir button.on { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.yalan-uyari { color: #ef4444; font-weight: 700; text-align: center; min-height: 1em; }
.yalan-sec { width: 100%; display: grid; gap: 10px; }
.yalan-sec button { border: 0; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow); font-weight: 700; font-size: 1rem; text-align: left; display: flex; gap: 10px; align-items: flex-start; min-height: 56px; overflow-wrap: anywhere; color: inherit; }
.yalan-sec button span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--pink-l); color: var(--pink-d); display: grid; place-items: center; font-weight: 800; }
.yalan-sec button.on { outline: 3px solid var(--pink); background: var(--pink-l); }
.yalan-sec button:disabled { opacity: 1; }
.yalan-son { width: 100%; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow); margin-bottom: 12px; text-align: center; }
.yalan-son > small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.yalan-son ol { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; text-align: left; }
.yalan-son li { display: flex; gap: 8px; align-items: flex-start; background: #f0fdf4; border-radius: 12px; padding: 8px 10px; font-size: .9rem; }
.yalan-son li.yalan { background: #fff7ed; }
.yalan-son li.secilen { outline: 2px solid var(--pink); }
.yalan-son li p { margin: 0; flex: 1; overflow-wrap: anywhere; }
.yalan-son li em { font-style: normal; font-size: .75rem; font-weight: 800; color: var(--pink-d); white-space: nowrap; }
.yalan-gecmis { width: 100%; }

/* ---------- 4) Bu mu Şu mu? ---------- */
.bumu-soru { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 1.15rem; font-weight: 800; text-align: center; width: 100%; margin-bottom: 12px; }
.bumu-soru small { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.bumu-btns { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
.bumu-btns button { border: 0; background: #fff; border-radius: 20px; padding: 20px 14px; min-height: 76px; box-shadow: var(--shadow); font-size: 1.1rem; font-weight: 800; color: var(--pink-d); overflow-wrap: anywhere; }
.bumu-btns button:active { transform: scale(.97); }
.bumu-btns button.on { background: linear-gradient(135deg, var(--pink), var(--pink-d)); color: #fff; opacity: 1; }
.bumu-veya { text-align: center; font-style: normal; font-weight: 800; color: var(--muted); font-size: .85rem; }
.bumu-onceki { font-size: .85rem; font-weight: 700; margin-bottom: 10px; text-align: center; }
.bumu-onceki small { color: var(--muted); }
.bumu-sonuc { background: linear-gradient(135deg, #fff, var(--pink-l)); border-radius: 20px; padding: 14px 24px; box-shadow: var(--shadow); text-align: center; margin-bottom: 12px; }
.bumu-sonuc b { display: block; font-size: 2.4rem; color: var(--pink-d); }
.bumu-sonuc span { font-weight: 800; color: var(--muted); }
.bumu-gecmis { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 8px; }
.bumu-gecmis li { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; box-shadow: 0 2px 8px rgba(225, 48, 108, .08); }
.bumu-gecmis b i { font-style: normal; color: var(--muted); font-weight: 600; }
.bumu-gecmis small { display: block; color: var(--muted); font-weight: 700; }

/* ---------- 5) Beş Taş ---------- */
.gomoku-tahta {
  --n: 13;
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 0; width: min(100%, 460px);
  background: #fde7c4; border-radius: 14px; padding: 6px; box-shadow: var(--shadow); touch-action: manipulation;
}
.gomoku-tahta button {
  aspect-ratio: 1; border: 0; padding: 0; background: transparent; position: relative; display: grid; place-items: center; min-width: 0;
}
/* kesişim çizgileri */
.gomoku-tahta button::before, .gomoku-tahta button::after { content: ''; position: absolute; background: #c8a06a; pointer-events: none; }
.gomoku-tahta button::before { left: 0; right: 0; top: 50%; height: 1px; }
.gomoku-tahta button::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.gomoku-tahta button:disabled { opacity: 1; }
.gomoku-tahta button.sec { background: rgba(225, 48, 108, .25); border-radius: 50%; }
.gomoku-tahta button.oneri { background: rgba(168, 85, 247, .45); border-radius: 50%; animation: beat 1.2s infinite; }
.gomoku-tahta button.win .gomoku-tas { box-shadow: 0 0 0 2px #facc15, 0 0 8px #facc15; }
.gomoku-tahta button.last .gomoku-tas { outline: 2px solid #fff; outline-offset: -4px; }
.gomoku-tahta .gomoku-tas { width: 84%; height: 84%; z-index: 1; }
.gomoku-tas { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.gomoku-tas.t1 { background: radial-gradient(circle at 35% 35%, #93c5fd, #1d4ed8); }
.gomoku-tas.t2 { background: radial-gradient(circle at 35% 35%, #ffb3d1, #e1306c); }
.gomoku-koy { margin-top: 12px; width: min(100%, 460px); }
