/* Grup C oyunları: pisti-, yilan-, mayin-, zar-, kelime- önekli. Tema değişkenleri app.css'ten. */

/* ---------- ortak zar küpü (yılan + zar) ---------- */
.zar-kup { width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow);
  display: inline-grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 6px; gap: 2px; box-sizing: border-box; flex: none; }
.zar-kup i { border-radius: 50%; margin: auto; width: 8px; height: 8px; }
.zar-kup i.on { background: var(--pink-d); }
.zar-kup.bos { display: inline-grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 1.3rem; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.zar-kup.mini { width: 26px; height: 26px; border-radius: 7px; padding: 3px; gap: 1px; box-shadow: none; border-width: 1.5px; }
.zar-kup.mini i { width: 4px; height: 4px; }
.zar-kup.yuvarlan { animation: zar-yuvarlan .6s ease-out; }
.zar-kup.salla { animation: zar-salla .35s linear infinite; }
@keyframes zar-yuvarlan { 0% { transform: rotate(-200deg) scale(.5); opacity: .3; } 70% { transform: rotate(15deg) scale(1.12); } 100% { transform: none; opacity: 1; } }
@keyframes zar-salla { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) translateY(-3px); } 75% { transform: rotate(14deg) translateY(-3px); } }

/* ======================================================== PİŞTİ */
.pisti { width: min(100%, 380px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pisti-kart { position: relative; display: inline-flex; flex-direction: column; justify-content: space-between; width: 58px; height: 82px; border-radius: 10px;
  background: #fff; border: 1.5px solid #e9d5e0; box-shadow: 0 3px 10px rgba(74, 35, 56, .15); color: #222; padding: 4px 6px; box-sizing: border-box; flex: none; }
.pisti-kart b { font-size: 1.05rem; line-height: 1; }
.pisti-kart i { font-style: normal; font-size: .9rem; line-height: 1; }
.pisti-kart em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 1.9rem; opacity: .9; pointer-events: none; padding-top: 12px; }
.pisti-kart.kirmizi { color: #e11d48; }
.pisti-kart.sirt { background: repeating-linear-gradient(45deg, #ff8fbd 0 6px, #f472b6 6px 12px); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--pink), 0 3px 10px rgba(74, 35, 56, .15); }
.pisti-kart.sirt::after { content: '💗'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; }
.pisti-kart.yok { background: transparent; border: 2px dashed var(--line); box-shadow: none; color: var(--muted); font-size: .8rem; align-items: center; justify-content: center; }
.pisti-kart.kucuk { width: 36px; height: 50px; padding: 2px 4px; border-radius: 7px; }
.pisti-kart.kucuk b { font-size: .8rem; }
.pisti-kart.kucuk i { font-size: .7rem; }
.pisti-kart.kucuk em { font-size: 1.1rem; padding-top: 10px; }
.pisti-kart.sirt.kucuk::after { font-size: .75rem; }
.pisti-rakip { text-align: center; }
.pisti-rakip small, .pisti-masa small { color: var(--muted); font-weight: 700; font-size: .78rem; display: block; margin-top: 4px; }
.pisti-sira { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 4px 0; }
.pisti-rakip .pisti-sira .sirt + .sirt { margin-left: -18px; }
.pisti-masa { display: flex; justify-content: center; align-items: flex-start; gap: 28px; background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
  border-radius: var(--r); padding: 14px 18px; width: 100%; box-sizing: border-box; box-shadow: inset 0 0 0 2px var(--line); }
.pisti-deste, .pisti-orta { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pisti-yigin { position: relative; width: 90px; height: 86px; }
.pisti-alt, .pisti-ust, .pisti-yigin > .yok { position: absolute; top: 0; left: calc(var(--i, 0) * 7px); }
.pisti-alt .pisti-kart { width: 58px; height: 82px; }
.pisti-ust { animation: pisti-dus .3s ease-out; }
@keyframes pisti-dus { from { transform: translateY(-16px) rotate(-8deg); opacity: .4; } to { transform: none; opacity: 1; } }
.pisti-son { text-align: center; font-weight: 700; font-size: .92rem; min-height: 1.4em; }
.pisti-mini { font-weight: 800; background: #fff; border: 1.5px solid #e9d5e0; border-radius: 6px; padding: 0 4px; color: #222; }
.pisti-mini.kirmizi { color: #e11d48; }
.pisti-vurgu { color: var(--pink-d); }
.pisti-el { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 90px; }
.pisti-elkart { border: 0; background: none; padding: 0; border-radius: 10px; transition: transform .15s; }
.pisti-elkart:not(:disabled):active, .pisti-elkart.atiliyor { transform: translateY(-14px); }
.pisti-elkart:not(:disabled) .pisti-kart { box-shadow: 0 0 0 2px var(--pink), 0 5px 14px rgba(225, 48, 108, .25); }
.pisti-elkart:disabled { opacity: 1; }
.pisti-elkart:disabled .pisti-kart { filter: saturate(.75); }
.pisti-bos { color: var(--muted); font-size: .85rem; align-self: center; }
.pisti-tablo { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); font-size: .88rem; }
.pisti-tablo th, .pisti-tablo td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.pisti-tablo td:first-child, .pisti-tablo th:first-child { text-align: left; color: var(--muted); font-weight: 700; }
.pisti-tablo small { color: var(--muted); }
.pisti-tablo tr.toplam td { font-weight: 800; color: var(--pink-d); font-size: 1.05rem; border-bottom: 0; }
.pisti-not, .pisti-kural { color: var(--muted); font-size: .76rem; text-align: center; margin: 0; }
.pisti-hile { display: flex; flex-direction: column; gap: 2px; }
.pisti-hile b { font-size: .82rem; }
.pisti-hile .pisti-sira { justify-content: flex-start; }

/* ======================================================== YILAN MERDİVEN */
.yilan { width: min(100%, 380px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.yilan-tahta { position: relative; width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(10, 1fr); border-radius: 14px;
  overflow: visible; box-shadow: var(--shadow); margin-bottom: 26px; background: #fff; }
.yilan-hucre { display: flex; align-items: flex-start; justify-content: flex-start; padding: 2px 3px; font-size: .58rem; font-weight: 700; color: var(--muted); background: #fff7fb; }
.yilan-hucre.tek { background: #fde7f1; }
.yilan-hucre:nth-child(1) { border-top-left-radius: 14px; }
.yilan-hucre:nth-child(10) { border-top-right-radius: 14px; }
.yilan-hucre:nth-child(91) { border-bottom-left-radius: 14px; }
.yilan-hucre:nth-child(100) { border-bottom-right-radius: 14px; }
.yilan-tahta svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.yilan-merdiven line { stroke: #b07a46; stroke-width: .9; stroke-linecap: round; }
.yilan-merdiven line.b { stroke-width: .7; }
.yilan-yilan path { fill: none; stroke: #16a34a; stroke-width: 2.4; stroke-linecap: round; opacity: .9; }
.yilan-yilan path.ic { stroke: #86efac; stroke-width: .8; stroke-dasharray: 1.2 1.6; }
.yilan-yilan circle { fill: #15803d; }
.yilan-yilan circle.goz { fill: #fff; }
.yilan-piyon { position: absolute; transform: translate(-50%, -50%); font-size: 1.35rem; line-height: 1; transition: left .7s ease-in-out, top .7s ease-in-out;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); z-index: 2; pointer-events: none; }
.yilan-piyon.ben { z-index: 3; }
.yilan-alt { display: flex; align-items: center; gap: 14px; }
.yilan-at { min-height: 46px; padding: .6em 1.4em; }
.yilan-son { text-align: center; font-weight: 700; font-size: .9rem; min-height: 1.4em; }
.yilan-kural { color: var(--muted); font-size: .76rem; text-align: center; margin: 0; }
.yilan-hile b { font-size: .85rem; }
.yilan-hsec { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 4px; }
.yilan-hbtn { border: 0; background: #fff; border-radius: 10px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; box-shadow: var(--shadow); }
.yilan-hbtn small { font-size: .66rem; font-weight: 800; color: var(--text); white-space: nowrap; }

/* ======================================================== MAYIN TARLASI */
.mayin { width: min(100%, 380px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mayin-ust { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: .85rem; font-weight: 700; color: var(--muted); }
.mayin-ust b { color: var(--pink-d); }
.mayin-tahta { display: grid; grid-template-columns: repeat(var(--n, 9), 1fr); gap: 3px; width: 100%; background: #fff; padding: 6px; border-radius: 16px; box-shadow: var(--shadow); box-sizing: border-box; }
.mayin-h { aspect-ratio: 1; min-width: 0; border: 0; border-radius: 8px; padding: 0; font-weight: 800; font-size: 1rem;
  background: linear-gradient(135deg, #ffb3d1, #d8b4fe); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); position: relative; }
.mayin-h:not(:disabled):active { transform: scale(.92); }
.mayin-h:disabled { opacity: 1; }
.mayin-h.acik { background: #fff7fb; box-shadow: none; color: var(--text); }
.mayin-h.acik.ben { background: #ffe4f0; }
.mayin-h.acik.o { background: #efe4ff; }
.mayin-h.yeni { animation: mayin-ac .35s ease-out; }
@keyframes mayin-ac { from { transform: scale(.6); } to { transform: none; } }
.mayin-h.n1 { color: #2563eb; } .mayin-h.n2 { color: #16a34a; } .mayin-h.n3 { color: #e11d48; } .mayin-h.n4 { color: #7c3aed; }
.mayin-h.n5 { color: #b45309; } .mayin-h.n6 { color: #0891b2; } .mayin-h.n7 { color: #111; } .mayin-h.n8 { color: #6b7280; }
.mayin-h.bomba { background: #fee2e2; }
.mayin-h.patladi { background: #ef4444; animation: mayin-pat .5s ease-out; }
@keyframes mayin-pat { 0% { transform: scale(1.5); } 100% { transform: none; } }
.mayin-gizli { font-style: normal; opacity: .28; font-size: .8rem; }
.mayin-kural { color: var(--muted); font-size: .76rem; text-align: center; margin: 0; }
.mayin-renk { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; }
.mayin-renk.ben { background: #ffc2dc; } .mayin-renk.o { background: #ddc8ff; }
.mayin-hile { font-size: .85rem; font-weight: 700; }

/* ======================================================== ZAR DÜELLOSU */
.zar { width: min(100%, 380px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.zar-bilgi { color: var(--muted); font-weight: 700; font-size: .85rem; }
.zar-sira { display: flex; justify-content: center; gap: 6px; }
.zar-tutbtn { border: 0; background: none; padding: 4px 2px 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; }
.zar-tutbtn:disabled { opacity: 1; }
.zar-tutbtn small { font-size: .62rem; font-weight: 800; color: var(--pink-d); min-height: 1.1em; }
.zar-tutbtn.tut .zar-kup { border-color: var(--pink-d); background: var(--pink-l); transform: translateY(-4px); box-shadow: 0 0 0 2px var(--pink); }
.zar-at { min-height: 46px; padding: .6em 1.6em; }
.zar-son { font-size: .85rem; font-weight: 700; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.zar-son span { display: inline-flex; gap: 2px; }
.zar-kart { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); font-size: .88rem; }
.zar-kart th { background: var(--pink-l); color: var(--pink-d); padding: 7px 4px; font-size: .8rem; }
.zar-kart td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: center; height: 40px; }
.zar-kart td:first-child { text-align: left; }
.zar-kart td:first-child small { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; }
.zar-kart tr.toplam td { font-weight: 800; color: var(--pink-d); font-size: 1.05rem; border-bottom: 0; }
.zar-yaz { border: 2px dashed var(--pink); background: #fff; color: var(--muted); border-radius: 10px; font-weight: 800; min-width: 52px; min-height: 36px; }
.zar-yaz.iyi { border-style: solid; background: var(--pink-l); color: var(--pink-d); }
.zar-yaz:active { transform: scale(.94); }
.zar-hile { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.zar-hile b { font-size: .85rem; }
.zar-hsira, .zar-hhazir { display: flex; gap: 6px; flex-wrap: wrap; }
.zar-hz { border: 0; background: none; padding: 0; min-width: 36px; min-height: 36px; display: grid; place-items: center; }

/* ======================================================== KELİME ZİNCİRİ */
.kelime { width: min(100%, 380px); display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.kelime-ust { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 700; color: var(--muted); }
.kelime-ust b { color: var(--pink-d); }
.kelime-harf { display: flex; flex-direction: column; align-items: center; width: 64px; height: 64px; justify-content: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #c084fc); color: #fff; font-size: 1.8rem; font-weight: 800; line-height: 1; box-shadow: var(--shadow); }
.kelime-harf small { font-size: .5rem; font-weight: 700; margin-top: 3px; opacity: .9; }
.kelime-zincir { background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 60px; }
.kelime-k { padding: .35em .75em; border-radius: 999px; font-weight: 800; font-size: .95rem; }
.kelime-k small { font-size: .65rem; margin-left: 3px; opacity: .75; }
.kelime-k.ben { background: var(--pink-l); color: var(--pink-d); }
.kelime-k.o { background: #efe4ff; color: #7c3aed; }
.kelime-k:last-of-type { animation: pop .4s; outline: 2px solid currentColor; }
.kelime-ok { font-style: normal; color: var(--muted); font-size: .8rem; }
.kelime-bos { color: var(--muted); font-size: .88rem; }
.kelime-giris { display: flex; gap: 8px; }
.kelime-in { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 14px; padding: .7em .9em; font-size: 1rem; outline: none; background: #fff; }
.kelime-in:focus { border-color: var(--pink); }
.kelime-pes { align-self: center; }
.kelime-gecmis { list-style: none; padding: 0; margin: 0; font-size: .82rem; display: flex; flex-direction: column; gap: 4px; }
.kelime-gecmis li { background: #fff; border-radius: 12px; padding: 6px 10px; }
.kelime-gecmis small { color: var(--muted); }
.kelime-kural { color: var(--muted); font-size: .76rem; text-align: center; margin: 0; }
.kelime-hile b { font-size: .85rem; display: block; margin-bottom: 4px; }
.kelime-hile > div { display: flex; flex-wrap: wrap; gap: 6px; }
.kelime-oneri { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .8em; font-weight: 700; min-height: 36px; }
.kelime-oneri small { color: var(--muted); }
