/* 🎨 Talking You · Oyununu tasarla (tasarla.html). Telefon önce: tek soru, büyük kartlar, küçük ödüller. */
:root {
  --ink: #2a1d14;
  --soft: #7a6458;
  --pink: #ff6b8a;
  --pink-d: #e04c72;
  --pink-l: #ffe0e8;
  --bg: #fff4f6;
  --paper: #ffffff;
  --line: #f1dde3;
  --gold: #ffcf5a;
  --mint: #bff0d6;
  --shadow: 0 10px 30px rgba(120, 40, 70, 0.12);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--ink);
  font: 400 17px/1.5 "Nunito", system-ui, sans-serif;
  background: radial-gradient(circle at 20% 0%, #ffe6ee 0, transparent 45%), radial-gradient(circle at 100% 30%, #fff1d6 0, transparent 40%), var(--bg);
}
button, input, textarea { font: inherit; color: inherit; }
.app { max-width: 520px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }

/* üst: bölüm haritası */
.ust { position: sticky; top: 0; z-index: 5; padding: 6px 0 8px; background: linear-gradient(var(--bg) 75%, transparent); }
/* 23.11: ulaşılmış bölüm simgeleri dokununca o bölüme gider · "← Geri" kartın içinde, sorunun üstünde */
.kart-bas { display: flex; align-items: center; gap: 10px; margin: -6px 0 8px; min-height: 34px; }
.kart-bas .ust-yazi { margin: 0; }
.geri-k { flex: none; background: #fff; border: 2px solid var(--line); border-radius: 999px; font-weight: 800; font-size: 14.5px; color: var(--ink); cursor: pointer; padding: 5px 13px; min-height: 34px; }
.geri-k:active { transform: scale(.95); }
.harita { flex: 1; display: flex; justify-content: space-between; gap: 4px; }
.harita button { flex: 1; text-align: center; font-size: 20px; padding: 4px 0; border: 0; background: none; color: inherit; border-radius: 12px; filter: grayscale(1); opacity: .35; transition: .3s; cursor: default; }
.harita button.bitti { filter: none; opacity: 1; }
.harita button.git { cursor: pointer; }
.harita button.git:active { transform: scale(.9); }
.harita button.simdi { filter: none; opacity: 1; background: var(--paper); box-shadow: var(--shadow); transform: scale(1.12); }
.taslak-not { position: absolute; top: 0; left: 4px; max-width: 44%; background: #fff8e8; border: 2px dashed var(--gold); border-radius: 14px; padding: 6px 10px; font-weight: 800; font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.taslak-not[hidden] { display: none; }
.cip-baslik { font-weight: 800; font-size: 14px; color: var(--soft); margin: 12px 0 6px; }
.cubuk { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.cubuk i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); border-radius: 6px; transition: width .45s cubic-bezier(.2,.9,.3,1.2); }

/* sahne: chibi karakter + konuşma balonu */
.sahne { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 150px; margin: 4px 0 6px; }
.karakter { display: flex; gap: 6px; align-items: flex-end; }
.karakter svg { width: 118px; height: auto; filter: drop-shadow(0 8px 10px rgba(120,40,70,.15)); transition: transform .3s; }
.karakter.zipla svg { animation: zipla .5s cubic-bezier(.3,1.6,.5,1); }
.karakter.iki svg { width: 100px; }
.sahne.buyuk { min-height: 230px; }
.sahne.buyuk .karakter svg { width: 170px; }
.sahne.gizli { display: none; }
@keyframes zipla { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-18px) scale(1.04, .96); } 100% { transform: translateY(0) scale(1); } }
.balon { position: absolute; top: 0; right: 4px; max-width: 46%; background: var(--paper); border-radius: 16px 16px 16px 4px; padding: 7px 12px; font-weight: 800; font-size: 14.5px; box-shadow: var(--shadow); animation: belir .35s ease-out; }
@keyframes belir { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

/* soru kartı */
.kart { flex: 1; background: var(--paper); border-radius: 26px; padding: 22px 18px 20px; box-shadow: var(--shadow); animation: kay .35s cubic-bezier(.2,.9,.3,1.1); }
@keyframes kay { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.kart.geri-kay { animation-name: kayg; }
@keyframes kayg { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.ust-yazi { font-size: 13.5px; font-weight: 800; color: var(--pink-d); letter-spacing: .02em; margin: 0 0 4px; }
.kart h1 { font-family: "Baloo 2", sans-serif; font-size: clamp(1.55rem, 6.5vw, 2rem); line-height: 1.12; margin: 0 0 8px; }
.kart .ipucu { color: var(--soft); margin: 0 0 16px; font-size: 15.5px; }

.secenekler { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.secenekler.tek { grid-template-columns: 1fr; }
.secenekler.uc { grid-template-columns: repeat(3, 1fr); }
.sec { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 86px; padding: 10px 8px; border: 2px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; font-weight: 800; font-size: 15px; text-align: center; transition: transform .12s, border-color .2s, background .2s; }
.sec:active { transform: scale(.96); }
.sec .e { font-size: 30px; line-height: 1; }
.sec.secili { border-color: var(--pink); background: var(--pink-l); }
.sec.renk { min-height: 74px; }
.sec .top { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }

.cipler { display: flex; flex-wrap: wrap; gap: 8px; }
.cip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 15px; cursor: pointer; }
.cip.secili { border-color: var(--pink); background: var(--pink-l); }
.ekle { display: flex; gap: 8px; margin-top: 12px; }
.ekle input { flex: 1; }

input[type=text], input[type=tel], input[type=email], input[type=date], textarea { width: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 13px 14px; background: #fffafb; outline: none; font-size: 17px; }
input:focus, textarea:focus { border-color: var(--pink); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.alanlar { display: grid; gap: 12px; }
.alanlar label { display: grid; gap: 6px; font-weight: 800; font-size: 15px; }

.dugmeler { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.btn { border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 800; font-size: 17px; cursor: pointer; background: var(--pink); color: #fff; box-shadow: 0 6px 0 var(--pink-d); transition: transform .1s, box-shadow .1s; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pink-d); }
.btn.tam { width: 100%; }
.btn.ikinci { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.atla { background: none; border: 0; color: var(--soft); font-weight: 800; cursor: pointer; padding: 10px; margin-left: auto; }

/* fotoğraflar */
.fotolar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foto { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff4f6; border: 2px dashed #f0b9c8; display: grid; place-items: center; font-size: 28px; cursor: pointer; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto .sil { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(42,29,20,.7); color: #fff; font-size: 14px; cursor: pointer; }
.foto small { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 800; color: var(--soft); }
.gizli-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* anılar */
.ani { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: start; margin-bottom: 10px; }
.ani .foto { aspect-ratio: 1; }
.ani textarea { min-height: 84px; }

/* bölüm sonu ve gönder */
.kutlama { text-align: center; }
.kutlama .rozet { display: inline-block; background: var(--gold); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 14px; transform: rotate(-3deg); margin-bottom: 8px; }
.sonraki { background: #fff8e8; border-radius: 16px; padding: 10px 14px; margin: 14px 0 4px; font-size: 15.5px; }
.ozet { white-space: pre-wrap; background: #fffafb; border: 2px solid var(--line); border-radius: 16px; padding: 12px; font-size: 14px; max-height: 220px; overflow: auto; margin: 10px 0; }
.adimlar { padding-left: 20px; margin: 8px 0; }
.adimlar li { margin: 4px 0; }
.not { font-size: 13.5px; color: var(--soft); margin-top: 10px; }
.oge-say { text-align: right; margin-top: 6px; font-weight: 800; }
.oge-say.fazla { color: #d0342c; }

.alt { display: flex; align-items: center; gap: 10px; padding: 10px 2px 0; font-size: 12.5px; color: var(--soft); }
.geri { background: var(--paper); border: 2px solid var(--line); border-radius: 999px; font-weight: 800; font-size: 16px; color: var(--ink); cursor: pointer; padding: 10px 18px; min-height: 46px; box-shadow: 0 4px 0 var(--line); }
.geri:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.kayit { margin: 0 auto; text-align: center; }

/* ödül: konfeti ve küçük yıldızlar */
.konfeti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.konfeti b { position: absolute; top: -20px; font-size: 22px; animation: dus 1.6s ease-in forwards; }
@keyframes dus { to { transform: translateY(105vh) rotate(540deg); opacity: .8; } }
.pat { position: fixed; z-index: 21; pointer-events: none; font-size: 22px; animation: pat .7s ease-out forwards; }
@keyframes pat { to { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 0; } }

@media (min-width: 560px) { .app { padding-top: 22px; } .secenekler.uc-genis { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

[hidden] { display: none !important; }
.gezi { border: 2px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 12px; display: grid; gap: 8px; }
.gezi .cipler { gap: 6px; }
.gezi .cip { padding: 6px 11px; font-size: 14px; }
.gezi-foto { grid-template-columns: 96px; }
.tanitim { width: 100%; max-width: 280px; display: block; margin: 6px auto 4px; border-radius: 22px; box-shadow: var(--shadow); background: #fde7ee; aspect-ratio: 9 / 16; object-fit: cover; }
.tanitim-not { text-align: center; margin-bottom: 10px; }
.kurallar { margin-top: 12px; background: #fff8e8; border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; font-size: 14.5px; }
.kurallar summary { font-weight: 800; cursor: pointer; }
.kurallar ul { margin: 8px 0 0; padding-left: 4px; list-style: none; display: grid; gap: 6px; }
.yolculuk { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0 2px; }
.yolculuk span { font-size: 13px; font-weight: 800; background: #fff4f6; border: 2px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.yolculuk span.tatli { border-color: var(--pink); background: var(--pink-l); }
.demo-btn{display:block;text-align:center;text-decoration:none;margin-top:8px}
.onaylar{display:grid;gap:10px;margin:12px 0 4px;text-align:left}.onaylar label{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.45}.onaylar input{width:20px;height:20px;flex:0 0 auto;margin-top:1px;accent-color:#ff5c8a}
/* ⚠️ yüklenemeyen dosyalar (13.11) */
.hatali{margin-top:12px;border:2px solid #ffcf5a;border-radius:16px;padding:12px;background:#fffaf0}
.hatali-baslik{font-weight:800;margin:0 0 8px}
.hatali-liste{display:grid;gap:8px}
.hatali-oge{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:8px}
.hatali-oge img,.hatali-ses{width:56px;height:56px;object-fit:cover;border-radius:10px;flex:0 0 auto;display:grid;place-items:center;font-size:28px;background:#ffe1ea}
.hatali-oge b{display:block;font-size:13px;word-break:break-all}.hatali-oge small{color:#b4532a;font-size:12.5px}
.hatali-dugme{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}
.mini{font:inherit;font-size:12.5px;font-weight:800;border:2px solid #f0dde3;background:#fff;border-radius:999px;padding:4px 10px;cursor:pointer}
/* 13.11: "Başka (yaz)" görünür, önce yaz kutusu, harf sayacı */
.sec[data-baska]{border-style:dashed;background:#fff7fa;font-weight:800}
.ekle.yaz-once{margin:4px 0 6px}
.ekle.yaz-once input{border-color:#ff9fbd}
.not.hizli{margin:6px 0 4px}
.sayac{display:block;text-align:right;font-size:12px;color:#7a6458;margin-top:3px}
.sayac.dolu{color:#c0392b;font-weight:800}
/* 🎙️ ses kartı (13.11) */
.ses-kisi{background:#fff;border-radius:16px;padding:10px 12px;margin:10px 0;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.ses-satir{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:7px 0;border-top:1px dashed #f0dde3}
.ses-satir:first-of-type{border-top:0}
.ses-satir.var .ses-yazi b::after{content:" ✅"}
.ses-yazi b{display:block;font-size:14px}.ses-yazi small{color:#7a6458;font-size:12.5px}
.ses-dugme{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.mini.kayitta{background:#ff5c8a;color:#fff;border-color:#ff5c8a;animation:nabiz 1s infinite}
@keyframes nabiz{50%{opacity:.6}}

/* 📞 İletişim adımı (22.11) */
.iletisim { display: grid; gap: 10px; margin: 6px 0 4px; }
.il-alan { display: grid; gap: 4px; font-weight: 800; font-size: 14px; }
.il-alan input { width: 100%; }
.il-alan input.hatali-girdi { border-color: #e2504f; background: #fff3f2; }
.il-hata { color: #c0392b; font-weight: 700; font-size: 12.5px; }
.il-onay { background: #fff8e6; border: 2px solid #f5c451; border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.il-onay .il-baslik { font-weight: 800; margin: 0 0 6px; font-size: 16px; }
.il-onay ul { margin: 0 0 6px; padding-left: 4px; list-style: none; display: grid; gap: 4px; }
.il-onay .dugmeler { flex-wrap: wrap; }

/* 📋 Özet kartı (son adım + teşekkür) */
.ozet-kart { background: #fff; border: 1px solid #f3d6de; border-radius: 16px; padding: 6px 12px; margin: 12px 0 6px; text-align: left; }
.oz-satir { display: grid; grid-template-columns: 26px 1fr; column-gap: 6px; padding: 7px 0; border-bottom: 1px dashed #f3d6de; font-size: 14px; }
.oz-satir:last-child { border-bottom: 0; }
.oz-e { grid-row: span 2; font-size: 18px; line-height: 1.2; }
.oz-a { color: #8a6f78; font-size: 12px; font-weight: 700; }
.oz-satir b { overflow-wrap: anywhere; }
.oz-not { margin-top: 4px; }

/* 🛠️ Teşekkür: minikler oyunu hazırlıyor */
.atolye { position: relative; height: 150px; margin: 6px auto 4px; max-width: 280px; }
.atolye-kisiler { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 100%; }
.atolye-kisiler svg { width: 96px; height: auto; animation: calis 0.9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.atolye-kisiler svg:nth-child(2) { animation-delay: .45s; }
.alet { position: absolute; font-size: 22px; animation: ucus 2.4s ease-in-out infinite; }
.alet.a1 { left: 6%; top: 18%; } .alet.a2 { right: 8%; top: 10%; animation-delay: .6s; }
.alet.a3 { left: 18%; top: 58%; animation-delay: 1.2s; } .alet.a4 { right: 16%; top: 55%; animation-delay: 1.8s; }
@keyframes calis { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }
@keyframes ucus { 0%,100% { transform: translateY(0) scale(1); opacity: .9; } 50% { transform: translateY(-12px) scale(1.15); opacity: 1; } }
.hazirlik { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 6px; text-align: left; }
.hazirlik li { background: #fff; border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: 14px; display: flex; gap: 8px; align-items: center; opacity: 0; animation: belir .5s ease forwards; }
.hazirlik li:nth-child(2) { animation-delay: .6s; } .hazirlik li:nth-child(3) { animation-delay: 1.2s; }
.hazirlik li span { animation: ucus 1.6s ease-in-out infinite; display: inline-block; }
@keyframes belir { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#karakter.calisiyor svg { animation: calis 0.9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .atolye-kisiler svg, .alet, .hazirlik li, .hazirlik li span, #karakter.calisiyor svg { animation: none; opacity: 1; } }
/* 26.11 (Mustafa): linkle forma gelen ana sayfaya dönebilsin. Cevaplar telefonda kaldığı için çıkmak bir şey kaybettirmez */
.ust-satir { display: flex; align-items: center; gap: 6px; }
.ana-link { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper, #fff); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.ana-link img { width: 24px; height: 24px; }
.ana-link:active { transform: scale(.92); }
.ana-alt { display: inline-block; margin-top: 6px; font-weight: 800; font-size: 13.5px; color: var(--pink-d); text-decoration: none; }
.alt { flex-direction: column; gap: 2px; }

/* 🎨 Oyunun havası önizlemesi (30.11) */
.konsept-onizle { margin: 14px auto 4px; text-align: center; }
.konsept-onizle .ko-bas { font-weight: 800; font-size: 14px; margin: 0 0 8px; }
.ko-tel { width: 150px; height: 266px; margin: 0 auto; border-radius: 22px; border: 6px solid #1d1a1a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.18); animation: koGel .35s ease; }
.ko-tel .ko-simge { font-size: 34px; }
.ko-tel b { font: 800 19px/1.15 'Baloo 2', sans-serif; text-align: center; }
.ko-tel i { font: 700 17px 'Caveat', cursive; font-style: normal; text-align: center; }
.konsept-onizle .ko-not { font-size: 13px; color: #6b5548; margin: 8px 0 0; }
@keyframes koGel { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

/* 👀 Bu cevap oyunda nerede? (30.11) */
.oyunda { margin: -2px 0 12px; }
.oyunda summary { display: inline-block; cursor: pointer; font-weight: 800; font-size: 13.5px; color: #c2477a; background: #fff0f4; border: 2px solid #ffd3e0; border-radius: 99px; padding: 5px 12px; list-style: none; }
.oyunda summary::-webkit-details-marker { display: none; }
.oyunda[open] summary { background: #ffe3ea; }
.oyunda figure { display: flex; gap: 12px; align-items: center; margin: 10px 0 0; }
.oyunda-resim { display: flex; gap: 6px; flex: none; }
.oyunda img { width: 112px; height: auto; border-radius: 12px; border: 3px solid #2a1d14; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.oyunda-resim.cok img { width: 84px; }
.oyunda figure:has(.cok) { flex-direction: column; align-items: flex-start; }
.oyunda figcaption { font-weight: 700; font-size: 14px; line-height: 1.4; }
.oyunda figcaption small { display: block; font-weight: 600; font-size: 12px; color: #8a7466; margin-top: 4px; }

/* ✏️⚡ İki yol (30.11) + 🔍 büyüyen önizleme */
.iki-yol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 8px; }
.iki-yol .sec { min-height: 96px; font-size: 16px; }
button.baglanti { background: none; border: 0; color: #c2477a; font: inherit; font-weight: 800; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.oyunda img { cursor: zoom-in; }
.buyut { position: fixed; inset: 0; z-index: 9999; background: rgba(20,12,8,.86); display: grid; place-items: center; padding: 18px; cursor: zoom-out; animation: koGel .2s ease; }
.buyut img { max-width: min(92vw, 460px); max-height: 88vh; width: auto; height: auto; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.buyut button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #2a1d14; font: 800 20px Nunito, sans-serif; cursor: pointer; }

/* ✍️ 03.12 açılış yazısı öneri düğmeleri (metin sorusunda a.oneri) */
.oneri-cip { margin: 10px 0 4px; justify-content: center; }
.oneri-cip .cip { font-size: 14px; padding: 6px 12px; }
