/* ===========================================================
   Harf Dikte – dik temel harf (Andika: tek katlı a ve g)
   =========================================================== */
.hf, .hk, .slot, .eh-kelime, .harf-buyuk, .htile b, .harf-dev, .hece-chip, .kelime-chip{
  font-family:'Andika', 'Nunito', system-ui, sans-serif;
}
.gtarget b.hf{font-weight:700}

/* ---------- oyun yerleşimi ---------- */
.hq{display:flex; flex-direction:column; align-items:center; gap:22px; width:100%}
.dinle{
  display:inline-flex; align-items:center; gap:10px; border:0; cursor:pointer;
  background:var(--g); color:#fff; border-radius:99px; padding:12px 22px 12px 14px;
  font-family:var(--font-dis); font-weight:700; font-size:.95rem; box-shadow:var(--sh-2); transition:.15s;
}
.dinle i{width:36px; height:36px; display:grid; place-items:center; border-radius:50%;
  background:rgba(255,255,255,.2); font-size:1rem}
.dinle:hover{filter:brightness(1.08); transform:translateY(-1px)}
.dinle:active{transform:scale(.97)}

.hk-set{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; width:100%; max-width:560px}
.hk-set.tiles{grid-template-columns:repeat(auto-fit,minmax(64px,1fr)); max-width:520px}
.hk{
  aspect-ratio:1/1; background:#fff; border:1.5px solid var(--line); border-radius:var(--r);
  font-size:3.2rem; font-weight:400; color:var(--ink); cursor:pointer; box-shadow:var(--sh-1);
  transition:.14s; line-height:1; display:grid; place-items:center; padding:0;
}
.hk-set.hece .hk{font-size:2.6rem; aspect-ratio:auto; min-height:92px}
.hk-set.tiles .hk{font-size:2.3rem; border-radius:var(--r-sm)}
.hk:hover:not(:disabled){border-color:var(--g); transform:translateY(-2px); box-shadow:var(--sh-2)}
.hk.ok{background:#eef8f2; border-color:var(--ok); color:var(--ok)}
.hk.no{background:#fdeeec; border-color:var(--no); color:var(--no); animation:shake .4s}
.hk.used{opacity:.22; pointer-events:none}

/* kelime yazma kutuları */
.slot-set{display:flex; gap:8px; justify-content:center; flex-wrap:wrap}
.slot{
  width:58px; height:70px; border-bottom:4px solid #c9d6de; display:grid; place-items:center;
  font-size:2.6rem; color:var(--ink); transition:.15s;
}
.slot.aktif{border-color:var(--brand2); background:#fffaf2; border-radius:8px 8px 0 0}
.slot.dolu{border-color:var(--g)}
.slot-set.tamam .slot{border-color:var(--ok); color:var(--ok)}

/* eksik harf */
.eh-kelime{display:flex; gap:4px; font-size:3.6rem; color:var(--ink); line-height:1.1}
.eh-kelime span{min-width:.6em; text-align:center}
.eh-kelime .bos{color:var(--brand2); border-bottom:4px dashed var(--brand2); min-width:.8em}
.eh-kelime .dolu{color:var(--ok)}
.eh-kelime .hata{color:var(--no)}

/* harf avcısı */
.ha-grid{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; width:100%; max-width:600px}
.hk.ha{font-size:2.4rem; border-radius:var(--r-sm)}
.hk.ha:disabled{cursor:default}

/* yazalım */
.yz{display:flex; flex-direction:column; align-items:center; gap:14px; width:100%}
.yz-ust{display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:center}
.yz-etiket{font-size:.95rem; color:var(--ink-2); font-weight:600}
.yz-etiket b{font-size:1.6rem; color:var(--g); margin-left:4px; vertical-align:-3px}
.yz-kagit{width:100%; max-width:560px; background:#fff; border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--sh-1); overflow:hidden; display:flex; justify-content:center}
.yz-kagit canvas{display:block; touch-action:none; cursor:crosshair}
.yz-btns{display:grid; grid-template-columns:1fr 1.5fr; gap:10px; width:100%; max-width:360px}

.h-yetersiz{text-align:center; color:var(--ink-2); max-width:380px}
.h-yetersiz i{font-size:2rem; color:var(--ink-3); margin-bottom:12px}

/* başlangıç ekranı */
.harf-intro{margin:-4px 0 14px}
.harf-buyuk{font-size:4.6rem; line-height:1; color:var(--g); letter-spacing:.04em}
.harf-uyari{background:#fff6e6; color:#7a4a12 !important; border-radius:8px; padding:10px 14px; font-size:.86rem !important}

/* ===========================================================
   Hub ve harf sayfası
   =========================================================== */
.gruplar{display:grid; gap:14px; margin:18px 0}
.grup{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:18px 20px;
  display:grid; grid-template-columns:150px 1fr; gap:18px; align-items:center; box-shadow:var(--sh-1);
}
.grup-bas b{display:block; font-family:var(--font-dis); font-size:1.02rem}
.grup-bas span{font-size:.8rem; color:var(--ink-3)}
.grup-harfler{display:flex; flex-wrap:wrap; gap:10px}
.htile{
  width:76px; height:76px; border-radius:var(--r); border:1.5px solid var(--line); background:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--ink);
  transition:.15s; box-shadow:var(--sh-1);
}
.htile b{font-size:2.1rem; font-weight:400; line-height:1}
.htile small{font-size:.66rem; color:var(--ink-3); font-weight:600; margin-top:2px}
.htile:hover{border-color:var(--brand); color:var(--brand); transform:translateY(-2px); text-decoration:none}
.htile.on{background:var(--brand); border-color:var(--brand); color:#fff}
.htile.on small{color:rgba(255,255,255,.75)}

.harf-hero{
  display:grid; grid-template-columns:auto 1fr; gap:32px; align-items:center; background:#fff;
  border:1px solid var(--line); border-radius:var(--r-lg); padding:26px 30px; box-shadow:var(--sh-2); margin:20px 0;
}
.harf-dev{
  font-size:8rem; line-height:1; color:var(--brand); letter-spacing:.03em; padding:0 10px;
  background:linear-gradient(transparent 48%, #f6e7d6 48%, #f6e7d6 50%, transparent 50%);
}
.harf-bilgi h1{margin-bottom:6px}
.harf-bilgi p{color:var(--ink-2)}
.harf-rozet{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px}
.harf-rozet span{font-size:.76rem; font-weight:700; padding:5px 10px; border-radius:7px;
  background:var(--brand-soft); color:var(--brand)}
.chip-satir{display:flex; flex-wrap:wrap; gap:7px; margin:6px 0 14px}
.hece-chip, .kelime-chip{
  background:#fff; border:1px solid var(--line); border-radius:8px; padding:5px 12px; font-size:1.35rem;
  color:var(--ink); cursor:pointer; transition:.12s; line-height:1.2;
}
.hece-chip:hover, .kelime-chip:hover{border-color:var(--brand); color:var(--brand)}
.ogrenilen{display:flex; flex-wrap:wrap; gap:5px}
.ogrenilen span{font-family:'Andika',sans-serif; font-size:1.15rem; width:34px; height:34px; display:grid;
  place-items:center; border-radius:8px; background:var(--brand-soft); color:var(--brand)}
.ogrenilen span.bu{background:var(--brand); color:#fff}
.harf-nav{display:flex; justify-content:space-between; gap:10px; margin:10px 0 0}

.game-card.kilitli{opacity:.55}
.game-card.kilitli .btn{background:var(--ink-3) !important; pointer-events:none}

@media (max-width:620px){
  .hk{font-size:2.5rem}
  .hk-set{gap:10px}
  .ha-grid{grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px}
  .hk.ha{font-size:2rem}
  .slot{width:44px; height:58px; font-size:2.1rem}
  .eh-kelime{font-size:2.7rem}
  .grup{grid-template-columns:1fr; gap:10px; padding:16px}
  .htile{width:62px; height:62px}
  .htile b{font-size:1.75rem}
  .harf-hero{grid-template-columns:1fr; text-align:center; padding:20px; gap:12px}
  .harf-dev{font-size:6rem}
  .harf-rozet{justify-content:center}
}
