/* ============ Minik Kaşif — tablet öncelikli, dokunmatik dostu ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --pembe: #ff8fab; --mor: #b48ee0; --mavi: #6ec6ff; --yesil: #7fd8a4;
  --sari: #ffd166; --turuncu: #ffa06b; --kirmizi: #ff6b6b;
  --koyu: #4a3f66; --krem: #fff8ef;
}

html, body { height: 100%; }
body {
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(160deg, #ffe9f3 0%, #e8f4ff 50%, #eafff0 100%);
  color: var(--koyu);
  min-height: 100vh;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  overflow-x: hidden;
}

/* ---------- Üst bar ---------- */
#ustBar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(74,63,102,.12);
}
.ana-don {
  font-size: 2rem; border: none; background: var(--sari);
  border-radius: 18px; width: 60px; height: 60px; cursor: pointer;
  box-shadow: 0 4px 0 #e0b040; transition: transform .1s;
}
.ana-don:active { transform: translateY(3px); box-shadow: none; }
#gunBaslik { font-size: 1.4rem; font-weight: bold; display: flex; align-items: center; gap: 8px; }
#gunEmoji { font-size: 1.8rem; }
#yildizKutu {
  font-size: 1.3rem; font-weight: bold; background: #fff;
  border-radius: 18px; padding: 8px 16px; box-shadow: 0 3px 8px rgba(74,63,102,.15);
}

/* ---------- Sayfalar ---------- */
.sayfa { display: none; padding: 20px; max-width: 1100px; margin: 0 auto; }
.sayfa.aktif { display: block; animation: belir .3s ease; }
@keyframes belir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gizli { display: none !important; }

.karsilama { text-align: center; margin: 18px 0 26px; }
.karsilama h1 { font-size: 2.4rem; margin-bottom: 8px; }
#bugunTema { font-size: 1.4rem; color: #7a6f9b; }

.bolum-baslik { font-size: 1.8rem; text-align: center; margin: 8px 0 20px; }

/* ---------- Menü kartları ---------- */
.menu-izgara {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px; padding: 6px;
}
.menu-kart {
  border: none; border-radius: 26px; padding: 26px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; color: #fff; font-family: inherit;
  transition: transform .12s;
  min-height: 150px; justify-content: center;
}
.menu-kart:active { transform: scale(.94); }
.kart-emoji { font-size: 3.4rem; }
.kart-ad { font-size: 1.35rem; font-weight: bold; text-shadow: 0 2px 4px rgba(0,0,0,.18); }
.menu-kart.video   { background: linear-gradient(145deg,#ff8fab,#ff6b95); box-shadow: 0 6px 0 #d95a80; }
.menu-kart.boyama  { background: linear-gradient(145deg,#b48ee0,#9a6fd0); box-shadow: 0 6px 0 #7e58b0; }
.menu-kart.oyun    { background: linear-gradient(145deg,#6ec6ff,#4aa8ef); box-shadow: 0 6px 0 #3b8cc9; }
.menu-kart.ogren   { background: linear-gradient(145deg,#7fd8a4,#5cc287); box-shadow: 0 6px 0 #48a06d; }
.menu-kart.serbest { background: linear-gradient(145deg,#ffd166,#ffb84d); box-shadow: 0 6px 0 #d9982f; }
.menu-kart.gunler  { background: linear-gradient(145deg,#ffa06b,#ff8248); box-shadow: 0 6px 0 #d9662f; }

/* ---------- Butonlar ---------- */
.buyuk-btn {
  border: none; border-radius: 18px; font-family: inherit; font-weight: bold;
  font-size: 1.2rem; padding: 12px 24px; cursor: pointer; color: #fff;
  background: var(--mavi); box-shadow: 0 4px 0 #3b8cc9; transition: transform .1s;
}
.buyuk-btn:active { transform: translateY(3px); box-shadow: none; }
.buyuk-btn.kirmizi { background: var(--kirmizi); box-shadow: 0 4px 0 #c94b4b; }

/* ---------- Video ---------- */
.video-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.video-kart {
  border: none; background: #fff; border-radius: 20px; overflow: hidden;
  cursor: pointer; box-shadow: 0 5px 14px rgba(74,63,102,.15);
  font-family: inherit; text-align: left; padding: 0; transition: transform .12s;
}
.video-kart:active { transform: scale(.96); }
.video-kucukresim { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #ddd; }
.video-bilgi { padding: 12px 14px; }
.video-baslik { font-size: 1.05rem; font-weight: bold; line-height: 1.3; }
.video-kanal { font-size: .9rem; color: #8a80a8; margin-top: 4px; }
#videoOynatici {
  position: fixed; inset: 0; background: rgba(20,14,40,.96); z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px;
}
#videoCerceve { width: 100%; max-width: 960px; aspect-ratio: 16/9; }
#videoCerceve iframe { width: 100%; height: 100%; border: none; border-radius: 16px; }

/* ---------- Boyama ---------- */
.boyama-secim { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.boyama-kart {
  background: #fff; border: none; border-radius: 20px; padding: 14px;
  cursor: pointer; box-shadow: 0 5px 14px rgba(74,63,102,.15);
  font-family: inherit; transition: transform .12s;
}
.boyama-kart:active { transform: scale(.95); }
.boyama-kart svg { width: 100%; height: auto; }
.boyama-kart .boyama-ad { font-size: 1.15rem; font-weight: bold; margin-top: 8px; display: block; text-align: center; }

#boyamaAlan { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#boyamaSvgKutu { width: 100%; max-width: 560px; background: #fff; border-radius: 22px; padding: 12px; box-shadow: 0 6px 18px rgba(74,63,102,.18); position: relative; }
#kalemTuval { position: absolute; inset: 0; border-radius: 22px; pointer-events: none; touch-action: none; }
.arac-ayrac { width: 2px; height: 44px; background: #ddd; border-radius: 2px; align-self: center; }
#boyamaSvgKutu svg { width: 100%; height: auto; display: block; }
#boyamaSvgKutu svg .r { cursor: pointer; }

.boyama-arac, .cizim-btnler { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.arac-btn {
  font-size: 1.7rem; width: 62px; height: 62px; border: none; border-radius: 16px;
  background: #fff; cursor: pointer; box-shadow: 0 4px 10px rgba(74,63,102,.18);
  transition: transform .1s;
}
.arac-btn:active { transform: scale(.9); }
.arac-btn.aktif-arac { outline: 4px solid var(--mavi); }

.renk-paleti {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  background: rgba(255,255,255,.8); padding: 12px; border-radius: 20px;
}
.renk {
  width: 52px; height: 52px; border-radius: 50%; border: 4px solid #fff;
  cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.2); transition: transform .1s;
}
.renk.secili { transform: scale(1.22); border-color: var(--koyu); }
.renk-paleti.kucuk .renk { width: 42px; height: 42px; }

/* ---------- Serbest çizim ---------- */
.cizim-arac { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-bottom: 12px; }
#cizimTuval {
  display: block; margin: 0 auto; background: #fff; border-radius: 22px;
  box-shadow: 0 6px 18px rgba(74,63,102,.18); touch-action: none;
  width: 100%; max-width: 900px;
}

/* ---------- Oyunlar ---------- */
#oyunAlan { display: flex; flex-direction: column; align-items: center; gap: 16px; }
#oyunIcerik { width: 100%; max-width: 760px; }

.hafiza-izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hafiza-kart {
  aspect-ratio: 3/4; border: none; border-radius: 16px; font-size: 2.6rem;
  cursor: pointer; background: linear-gradient(145deg, var(--mor), #8a63c8);
  box-shadow: 0 4px 0 #6d4da0; color: transparent; transition: transform .2s;
  font-family: inherit;
}
.hafiza-kart.acik { background: #fff; color: inherit; box-shadow: 0 4px 0 #ccc; }
.hafiza-kart.bulundu { background: #d9f7e6; color: inherit; box-shadow: 0 4px 0 #9fd9b8; transform: scale(1.04); }

.sayi-soru { text-align: center; }
.sayi-nesneler { font-size: 3rem; letter-spacing: 8px; line-height: 1.5; background: #fff; border-radius: 20px; padding: 20px; margin-bottom: 20px; box-shadow: 0 5px 14px rgba(74,63,102,.12); }
.sayi-secenekler { display: flex; gap: 16px; justify-content: center; }
.sayi-btn {
  font-size: 2.4rem; font-weight: bold; width: 90px; height: 90px; border: none;
  border-radius: 22px; background: var(--sari); box-shadow: 0 5px 0 #d9982f;
  cursor: pointer; font-family: inherit; color: var(--koyu); transition: transform .1s;
}
.sayi-btn:active { transform: translateY(3px); }
.sayi-btn.dogru { background: var(--yesil); box-shadow: 0 5px 0 #48a06d; }
.sayi-btn.yanlis { background: var(--kirmizi); box-shadow: 0 5px 0 #c94b4b; animation: salla .4s; }
@keyframes salla { 25% { transform: translateX(-8px);} 75% { transform: translateX(8px);} }

.golge-alan { display: flex; flex-direction: column; gap: 20px; }
.golge-sira { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.golge-item {
  font-size: 3rem; width: 90px; height: 90px; border: none; border-radius: 20px;
  background: #fff; cursor: pointer; box-shadow: 0 4px 10px rgba(74,63,102,.15);
  transition: transform .1s; font-family: inherit;
}
.golge-item.golge { filter: none; }
.golge-item.golge span { filter: brightness(0) opacity(.75); }
.golge-item.secili { outline: 5px solid var(--mavi); transform: scale(1.08); }
.golge-item.eslesti { background: #d9f7e6; outline: 4px solid var(--yesil); pointer-events: none; }

#balonAlan { position: relative; height: 60vh; background: linear-gradient(#cfeaff,#eaf6ff); border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 20px rgba(74,63,102,.1); }
.balon {
  position: absolute; font-size: 3.6rem; border: none; background: none;
  cursor: pointer; transition: transform .1s; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.balon:active { transform: scale(1.3); }
.oyun-skor { text-align: center; font-size: 1.5rem; font-weight: bold; margin-bottom: 12px; }

/* Oyun tuvali (labirent, balık, çizgi eşleştirme) */
.oyun-tuval {
  display: block; margin: 0 auto; background: #fff; border-radius: 22px;
  box-shadow: 0 6px 18px rgba(74,63,102,.18); touch-action: none;
  max-width: 100%;
}

/* Yapboz */
.yapboz-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 420px; margin: 0 auto; }
.yapboz-parca {
  aspect-ratio: 1; border: none; border-radius: 12px; background: #fff;
  overflow: hidden; cursor: pointer; position: relative;
  box-shadow: 0 3px 8px rgba(74,63,102,.18); font-family: inherit; padding: 0;
}
.yapboz-parca span { position: absolute; font-size: 340px; line-height: 1; left: 0; top: 0; pointer-events: none; }
.yapboz-parca.secili { outline: 5px solid var(--mavi); z-index: 2; }
.yapboz-ornek { text-align: center; font-size: 3.4rem; margin-bottom: 8px; }

/* Piyano */
.piyano { display: flex; gap: 6px; justify-content: center; height: 46vh; max-height: 380px; padding: 8px; }
.piyano-tus {
  flex: 1; max-width: 92px; border: none; border-radius: 0 0 18px 18px;
  cursor: pointer; font-size: 1.6rem; font-family: inherit; color: #fff; font-weight: bold;
  box-shadow: 0 6px 0 rgba(0,0,0,.25); transition: transform .06s;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
}
.piyano-tus:active, .piyano-tus.calan { transform: translateY(5px); box-shadow: none; filter: brightness(1.2); }

/* Beni Tekrarla */
.tekrarla-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; margin: 0 auto; }
.tekrarla-ped {
  aspect-ratio: 1; border: none; border-radius: 24px; cursor: pointer;
  font-size: 3.4rem; opacity: .6; transition: opacity .12s, transform .12s;
  box-shadow: 0 5px 0 rgba(0,0,0,.2); font-family: inherit;
}
.tekrarla-ped.yanik { opacity: 1; transform: scale(1.06); }

/* Farklı olanı bul */
.farkli-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 460px; margin: 0 auto; }
.farkli-item {
  aspect-ratio: 1; border: none; border-radius: 18px; background: #fff;
  font-size: 3.2rem; cursor: pointer; box-shadow: 0 4px 10px rgba(74,63,102,.15);
  transition: transform .1s; font-family: inherit;
}
.farkli-item:active { transform: scale(.9); }

/* ---------- Öğrenelim ---------- */
#ogrenAlan { display: flex; flex-direction: column; align-items: center; gap: 16px; }
#ogrenIcerik { width: 100%; max-width: 860px; }
.ogren-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.ogren-kart {
  border: none; border-radius: 18px; background: #fff; padding: 14px 6px;
  font-size: 2rem; font-weight: bold; cursor: pointer; font-family: inherit;
  color: var(--koyu); box-shadow: 0 4px 10px rgba(74,63,102,.15); transition: transform .1s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ogren-kart:active { transform: scale(.92); }
.ogren-kart small { font-size: .95rem; font-weight: normal; color: #8a80a8; }
.ogren-buyuk {
  text-align: center; background: #fff; border-radius: 26px; padding: 30px;
  margin-bottom: 18px; box-shadow: 0 6px 18px rgba(74,63,102,.15);
  min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.ogren-buyuk .dev { font-size: 5.5rem; line-height: 1.1; }
.ogren-buyuk .kelime { font-size: 2rem; font-weight: bold; }

/* ---------- Günler ---------- */
.gun-liste { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 0 auto; }
.gun-satir {
  display: flex; align-items: center; gap: 16px; background: #fff;
  border-radius: 20px; padding: 14px 20px; box-shadow: 0 4px 12px rgba(74,63,102,.12);
  border: none; cursor: pointer; font-family: inherit; text-align: left; width: 100%;
}
.gun-satir:active { transform: scale(.98); }
.gun-satir.bugun { outline: 4px solid var(--sari); }
.gun-satir .g-emoji { font-size: 2.4rem; }
.gun-satir .g-ad { font-size: 1.25rem; font-weight: bold; color: var(--koyu); }
.gun-satir .g-tarih { font-size: 1rem; color: #8a80a8; }

/* ---------- Bebek giydirme ---------- */
.giydir-duzen { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.giydir-bebek {
  width: min(320px, 84vw); background: #fff; border-radius: 22px; padding: 10px;
  box-shadow: 0 6px 18px rgba(74,63,102,.18);
}
.giydir-bebek svg { width: 100%; height: auto; display: block; }
.giydir-panel { flex: 1; min-width: 270px; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.giydir-sekmeler { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.giydir-sekme {
  border: none; background: #fff; border-radius: 16px; padding: 10px 14px;
  font-family: inherit; font-weight: bold; font-size: 1.05rem; cursor: pointer;
  box-shadow: 0 3px 8px rgba(74,63,102,.15); color: var(--koyu);
}
.giydir-secenekler { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.giydir-secenek {
  border: none; background: #fff; border-radius: 14px; padding: 8px 4px;
  cursor: pointer; box-shadow: 0 3px 8px rgba(74,63,102,.15); font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--koyu);
}
.giydir-secenek svg { width: 100%; height: 74px; }
.giydir-secenek small { font-size: .82rem; font-weight: bold; }

/* ---------- Kedi Minnoş ---------- */
.kedi-bar {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  background: rgba(255,255,255,.85); border-radius: 16px; padding: 10px;
  font-size: 1.05rem; margin-bottom: 12px;
}
.kedi-sahne {
  position: relative; height: 42vh; min-height: 260px;
  background: linear-gradient(#e8f4ff 60%, #d2edd9 60%);
  border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 20px rgba(74,63,102,.08);
}
.kedi-govde {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  font-size: 6.5rem; cursor: pointer; transition: left .7s ease, top .7s ease;
  user-select: none; -webkit-user-select: none; line-height: 1;
}
.kedi-govde.zipla { animation: kediZipla .4s; }
@keyframes kediZipla { 40% { transform: translateX(-50%) translateY(-26px) rotate(-6deg); } }
.kedi-govde.yuru { animation: kediYuru .7s infinite; }
@keyframes kediYuru {
  0%, 100% { transform: translateX(-70%) rotate(-4deg); }
  50% { transform: translateX(-30%) rotate(4deg); }
}
.kedi-baloncuk {
  position: absolute; top: 7%; left: 50%; transform: translateX(-50%);
  background: #fff; padding: 10px 18px; border-radius: 18px; font-size: 1.15rem;
  font-weight: bold; box-shadow: 0 4px 12px rgba(74,63,102,.2); max-width: 85%;
  text-align: center; z-index: 5;
}
.kedi-btnler { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.kedi-balik { position: absolute; font-size: 3rem; z-index: 4; animation: balikUcus .95s forwards; }
@keyframes balikUcus {
  from { left: 8%; bottom: 55%; opacity: 1; }
  to { left: 46%; bottom: 20%; opacity: 0; }
}
.kedi-kalp { position: absolute; bottom: 32%; font-size: 2rem; animation: kalpUcus 2.1s forwards; }
@keyframes kalpUcus { to { transform: translateY(-150px); opacity: 0; } }
.kedi-top { position: absolute; border: none; background: none; font-size: 3rem; cursor: pointer; z-index: 6; transition: left .3s, top .3s; }
.kedi-manzara { position: absolute; left: 100%; font-size: 2.6rem; animation: manzaraKayis 5.5s linear forwards; }
@keyframes manzaraKayis { to { left: -12%; } }

/* ---------- Kutlama ---------- */
#kutlama {
  position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center; pointer-events: none;
}
#kutlamaIcerik { font-size: 7rem; animation: kutla .9s ease; }
@keyframes kutla {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  50% { transform: scale(1.4) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 0; }
}
.konfeti { position: fixed; top: -20px; font-size: 1.8rem; z-index: 190; animation: dus linear forwards; pointer-events: none; }
@keyframes dus { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Yazdırma ---------- */
#yazdirAlan { display: none; }
@media print {
  body > *:not(#yazdirAlan) { display: none !important; }
  body { background: #fff; }
  #yazdirAlan { display: block !important; }
  #yazdirAlan svg { width: 100%; max-height: 95vh; }
  #yazdirAlan img { width: 100%; }
  #yazdirAlan .yazdir-baslik { text-align: center; font-size: 18pt; margin-bottom: 8mm; }
}

/* ---------- Küçük ekran ---------- */
@media (max-width: 560px) {
  .kart-emoji { font-size: 2.6rem; }
  .kart-ad { font-size: 1.1rem; }
  .hafiza-izgara { gap: 8px; }
  .karsilama h1 { font-size: 1.8rem; }
}
