:root {
  --gok1: #7fd3ff; --gok2: #bff0ff; --cimen: #7ed957; --yazi: #1d2b53;
  --yesil: #22c55e; --kirmizi: #ef4444; --kart: #ffffff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Baloo 2', 'Comic Sans MS', system-ui, sans-serif;
  color: var(--yazi);
  background: linear-gradient(var(--gok1), var(--gok2) 70%, var(--cimen) 70%);
  overflow: hidden; user-select: none; touch-action: manipulation;
}
button { font: inherit; border: 0; cursor: pointer; }

/* Bulutlar */
.bulut { position: fixed; background: #fff; border-radius: 999px; opacity: .9; animation: kay 40s linear infinite; }
.bulut::before, .bulut::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.bulut::before { width: 55%; height: 160%; left: 15%; top: -70%; }
.bulut::after { width: 40%; height: 120%; right: 12%; top: -45%; }
@keyframes kay { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }

/* Çocuk ana ekranı */
.ana { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; padding: 16px; }
.selam { font-size: clamp(36px, 7vw, 72px); font-weight: 800; margin: 0; color: #fff; text-shadow: 0 4px 0 #2a7fd4, 0 8px 20px rgba(0,0,0,.15); text-align: center; }
.kartlar { display: flex; gap: 4vw; flex-wrap: wrap; justify-content: center; }
.kart {
  background: var(--kart); border-radius: 40px; padding: 20px 28px 24px; width: min(380px, 80vw);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 12px 0 #d7e6f3, 0 20px 40px rgba(0,0,0,.18);
  transition: transform .12s;
}
.kart:active { transform: translateY(8px) scale(.98); box-shadow: 0 4px 0 #d7e6f3, 0 10px 20px rgba(0,0,0,.18); }
.kart .kopek { width: 72%; animation: zipla 2.4s ease-in-out infinite; }
.kart .etiket { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 4.4vw, 44px); white-space: nowrap; font-weight: 800; background: var(--yesil); color: #fff; border-radius: 999px; padding: 8px 30px 8px 12px; box-shadow: 0 6px 0 #15803d; }
.tel { width: 54px; height: 54px; background: #fff; border-radius: 50%; display: grid; place-items: center; }
.tel svg { width: 30px; fill: var(--yesil); animation: salla 1.6s ease-in-out infinite; }
@keyframes zipla { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes salla { 0%,70%,100% { transform: rotate(0); } 75% { transform: rotate(-18deg); } 85% { transform: rotate(18deg); } }
.baglanti { position: fixed; right: 14px; bottom: 12px; font-size: 15px; background: rgba(255,255,255,.75); padding: 4px 12px; border-radius: 999px; }
.baglanti::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: #f59e0b; }
.baglanti.acik::before { background: var(--yesil); }

/* Başlangıç dokunma ekranı */
.giris { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(29,43,83,.55); backdrop-filter: blur(4px); }
.giris button { font-size: clamp(34px, 6vw, 60px); font-weight: 800; color: #fff; background: #ff8a3d; padding: 24px 56px; border-radius: 999px; box-shadow: 0 10px 0 #c2571c; animation: zipla 1.6s infinite; }

/* Görüşme ekranı */
#gorusme { position: fixed; inset: 0; z-index: 40; display: none; background: radial-gradient(circle at 50% 35%, #4f8cff, #1d2b53); color: #fff; }
#gorusme:not([data-durum=""]) { display: block; }
#uzakVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; display: none; }
#yerelVideo { position: absolute; right: 16px; top: 16px; width: 22vw; max-width: 220px; aspect-ratio: 3/4; object-fit: cover; border-radius: 20px; border: 4px solid #fff; transform: scaleX(-1); display: none; z-index: 2; }
#gorusme[data-durum="konusuyor"] #uzakVideo, #gorusme[data-durum="konusuyor"] #yerelVideo, #gorusme[data-durum="araniyor"] #yerelVideo { display: block; }
.gOrta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; padding: 16px; text-align: center; }
#gorusme[data-durum="konusuyor"] .gOrta { display: none; }
.gOrta .kopek { width: min(300px, 45vh); animation: zipla 1s ease-in-out infinite; filter: drop-shadow(0 12px 20px rgba(0,0,0,.3)); }
.gBaslik { font-size: clamp(30px, 6vw, 56px); font-weight: 800; margin: 0; }
#gDurum { font-size: clamp(20px, 3.4vw, 30px); opacity: .9; min-height: 1.2em; white-space: pre-line; }
.halka { position: relative; }
.halka::before, .halka::after { content: ''; position: absolute; inset: 10%; border-radius: 50%; border: 6px solid rgba(255,255,255,.5); animation: dalga 2s infinite; }
.halka::after { animation-delay: 1s; }
@keyframes dalga { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.butonlar { position: absolute; left: 0; right: 0; bottom: 6vh; display: flex; justify-content: center; gap: 12vw; z-index: 3; }
.yuvarlak { width: clamp(90px, 16vw, 130px); height: clamp(90px, 16vw, 130px); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 0 rgba(0,0,0,.25); }
.yuvarlak svg { width: 50%; fill: #fff; }
.yuvarlak.kapat { background: var(--kirmizi); }
.yuvarlak.kapat svg { transform: rotate(135deg); }
.yuvarlak.cevap { background: var(--yesil); animation: zipla .8s infinite; }
#gorusme:not([data-durum="gelen"]) .cevap { display: none; }
