/* turlar.css — Mevcut oyunlara eklenen yeni turlar (Adım 2): tur çubuğu ve tur sahneleri */

/* ---------------------------------------------------------------- tur çubuğu */
.tur-cubugu {
    flex: 0 0 auto; display: flex; justify-content: center; gap: 10px;
    padding: 10px 12px 0; position: relative; z-index: 3;
}
.tur-dugme {
    width: 58px; height: 58px; border-radius: 18px; border: 3px solid transparent; background: #fff;
    display: grid; place-items: center; padding: 6px; font-size: 30px; line-height: 1;
    box-shadow: 0 5px 0 #eedcf0, 0 8px 16px rgba(120, 70, 150, .14);
    -webkit-tap-highlight-color: transparent; transition: transform .12s, border-color .15s;
}
.tur-dugme img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.tur-dugme:active { transform: translateY(4px) scale(.96); box-shadow: 0 1px 0 #eedcf0; }
.tur-dugme.secili { border-color: var(--pink-500, #FF5C8D); transform: scale(1.08); }
.tur-yuzey { align-items: center; justify-content: center; overflow: hidden; }
.tur-yuzey[hidden], .game-surface[hidden] { display: none !important; }
.tur-sahne {
    width: min(1000px, 100%); display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 24px; flex: 1 1 auto; padding: 8px 0 16px;
}
.st-emoji { font-size: clamp(56px, 8vw, 84px); line-height: 1; pointer-events: none; }
.st-gorsel-html { width: 100%; }

/* ---------------------------------------------------------------- hafıza: ne kayboldu? */
.kayip-sira { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.kayip-kart {
    width: clamp(84px, 11vw, 120px); height: clamp(84px, 11vw, 120px); border-radius: 24px; background: #fff;
    display: grid; place-items: center; padding: 10px; font-size: 48px;
    box-shadow: 0 6px 0 #e3d4f2, 0 10px 20px rgba(120, 70, 150, .14);
    animation: st-cik .4s backwards cubic-bezier(.3, 1.6, .5, 1); transition: transform .45s, background .45s;
}
.kayip-kart img { width: 100%; height: 100%; object-fit: contain; }
.kayip-kart.gizli { background: linear-gradient(135deg, #c9b6ff, #ffb3d9); color: #fff; }
.kayip-kart.kapan { transform: rotateY(90deg); background: #d9c8f5; }

/* ---------------------------------------------------------------- şekiller: eksik parça */
.eksik-buyuk { display: flex; justify-content: center; }
.eksik-buyuk .eksik-svg { width: clamp(150px, 22vw, 230px); height: clamp(150px, 22vw, 230px); }
.st-secenek .eksik-svg { width: 92%; height: 92%; }

/* ---------------------------------------------------------------- şekiller: nesne yap */
.ny-sahne { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; width: 100%; }
.ny-tuval {
    width: min(56vh, 380px, 80vw); height: min(56vh, 380px, 80vw); background: #fff; border-radius: 36px;
    box-shadow: 0 10px 0 #eadcf3, 0 16px 30px rgba(120, 70, 150, .14); overflow: visible;
}
.ny-yuva.parla { animation: ny-parla 1s ease-in-out infinite; }
.ny-oturdu { animation: ny-otur .35s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: center; }
.ny-tuval.canlan { animation: ny-canlan 1.1s ease-in-out 2; }
.ny-tepsi {
    flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 16px;
    padding: 14px 10px 6px; min-height: 90px; width: 100%;
}
.ny-parca {
    touch-action: none; cursor: grab; position: relative; z-index: 2;
    animation: st-cik .45s backwards cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 6px 6px rgba(90, 50, 120, .25));
}
.ny-parca svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ny-parca.tutuldu { z-index: 50; cursor: grabbing; transition: none; }
.ny-parca.yerlesti { visibility: hidden; }
.ny-parca.salla { animation: st-salla .45s; }
.ny-parca.parla { animation: ny-zipla .9s ease-in-out infinite; }
@keyframes ny-parla { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ny-otur { from { transform: scale(1.25); } to { transform: none; } }
@keyframes ny-canlan { 0%, 100% { transform: none; } 25% { transform: rotate(-4deg) scale(1.04); } 75% { transform: rotate(4deg) scale(1.04); } }
@keyframes ny-zipla { 0%, 100% { transform: none; } 50% { transform: translateY(-14px) scale(1.06); } }

/* ---------------------------------------------------------------- şef: sağlıklı tabak */
.tabak-sahne {
    width: 100%; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: url('../assets/img/bg/mutfak.webp') center / cover; border-radius: 26px; padding: 16px;
}
.tabak-raf {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 14px 18px;
    background: rgba(255, 255, 255, .78); border-radius: 28px; box-shadow: 0 10px 24px rgba(120, 70, 50, .16);
}
.tabak-yemek, .tabak-ucan {
    width: clamp(86px, 11vw, 118px); height: clamp(86px, 11vw, 118px); border: 0; border-radius: 26px; background: #fff;
    display: grid; place-items: center; padding: 8px; box-shadow: 0 6px 0 #f1dcc8, 0 10px 18px rgba(120, 70, 50, .14);
    animation: st-cik .45s backwards cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent;
}
.tabak-yemek img, .tabak-ucan img, .tabak-konan img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.tabak-yemek.konuldu { visibility: hidden; }
.tabak-yemek.salla { animation: st-salla .45s; }
.tabak-yemek.parla { animation: st-parla 1s ease-in-out infinite; }
.tabak-ucan { position: fixed; z-index: 60; margin: 0; transition: transform .5s cubic-bezier(.4, 1.2, .5, 1); pointer-events: none; }
.tabak {
    width: clamp(190px, 30vw, 270px); height: clamp(190px, 30vw, 270px); border-radius: 50%;
    background: radial-gradient(circle, #fff 0 56%, #f3eef8 57% 62%, #fff 63%);
    box-shadow: 0 12px 26px rgba(90, 60, 110, .22), inset 0 -6px 0 #ece4f3; position: relative;
}
.tabak-ic { position: absolute; inset: 0; }
.tabak-konan {
    position: absolute; width: 38%; height: 38%; transform: translate(-50%, -50%); display: grid; place-items: center;
    animation: ny-otur .35s cubic-bezier(.3, 1.6, .5, 1);
}
.tabak-konan .st-emoji { font-size: 44px; }
.tabak.afiyet { animation: ny-canlan .9s ease-in-out 2; }
.tabak-sayac { display: flex; gap: 10px; }
.tabak-sayac span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .8); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.tabak-sayac span.dolu { background: #4cc777; }

/* ---------------------------------------------------------------- müzik odası */
.muzik-oda {
    width: 100%; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    background: url('../assets/img/ogrenme/bg/muzik-odasi.webp') center / cover; border-radius: 26px; padding: 16px;
}
.tur-sahne.muzik-oda { width: 100%; }
.ritim-gosterge { min-height: 46px; display: flex; gap: 10px; justify-content: center; }
.ritim-gosterge .nota {
    width: 40px; height: 40px; border-radius: 50%; background: #ffd23f; border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18); animation: st-cik .3s cubic-bezier(.3, 1.6, .5, 1);
}
.ritim-gosterge.sare .nota { background: #ff8cc6; }
.muzik-calgilar { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 16px; }
.muzik-calgi {
    width: clamp(96px, 13vw, 140px); height: clamp(96px, 13vw, 140px); border: 0; border-radius: 30px;
    background: rgba(255, 255, 255, .88); display: grid; place-items: center; padding: 10px; touch-action: manipulation;
    box-shadow: 0 8px 0 rgba(200, 160, 220, .7), 0 12px 22px rgba(90, 50, 120, .2); -webkit-tap-highlight-color: transparent;
}
.muzik-calgi img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.muzik-calgi.calgi-davul { width: clamp(150px, 20vw, 210px); height: clamp(150px, 20vw, 210px); }
.muzik-calgi.vur { animation: muzik-vur .22s ease-out; }
.muzik-calgi.sira { box-shadow: 0 8px 0 rgba(200, 160, 220, .7), 0 0 0 7px #ffd23f, 0 12px 22px rgba(90, 50, 120, .2); }
.muzik-calgi.parla { animation: st-parla 1s ease-in-out infinite; }
@keyframes muzik-vur { 0% { transform: scale(1); } 40% { transform: scale(.9) translateY(5px); } 100% { transform: scale(1); } }
.piyano-cal {
    position: relative; width: clamp(150px, 22vw, 220px); height: clamp(150px, 22vw, 220px); border: 0; border-radius: 34px;
    background: rgba(255, 255, 255, .9); padding: 12px; display: grid; place-items: center; margin: 0 auto;
    box-shadow: 0 8px 0 rgba(200, 160, 220, .7), 0 12px 22px rgba(90, 50, 120, .2);
}
.piyano-cal img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.piyano-cal.vur { animation: muzik-vur .25s ease-out; }
.piyano-hoparlor { position: absolute; right: -8px; top: -8px; font-size: 30px; background: #fff; border-radius: 50%; padding: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.ses-hayvan { font-size: clamp(70px, 10vw, 104px); line-height: 1; }

/* ---------------------------------------------------------------- kuaför: hava durumu */
.hava-pencere {
    width: min(520px, 86vw); aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 30px; background: #bfe3ff center / cover;
    border: 10px solid #fff; box-shadow: 0 12px 26px rgba(90, 60, 110, .2); position: relative;
}
.hava-pencere span {
    position: absolute; left: 14px; top: 10px; font-size: 52px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .2));
    animation: ny-zipla 2.4s ease-in-out infinite;
}

@media (max-width: 640px) {
    .tur-dugme { width: 50px; height: 50px; font-size: 26px; }
    .tur-sahne { gap: 16px; }
}

/* Kalın mı ince mi: ayı solda, piyano ortada, kuş sağda; dokununca söyler, notalar uçar */
.ki-sahne { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 10px; min-height: min(62vh, 460px); padding: 56px 16px 20px; box-sizing: border-box; }
.ki-yildiz { position: absolute; top: 14px; left: 50%; translate: -50% 0; display: flex; gap: 10px; }
.ki-yildiz span { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .12); transition: background .3s, scale .3s; }
.ki-yildiz span.dolu { background: #ffd23f; scale: 1.2; box-shadow: 0 0 12px #ffd23f; }
.ki-hayvan, .ki-piyano { position: relative; border: 0; background: none; padding: 0; cursor: pointer; transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; }
.ki-hayvan { aspect-ratio: 1; animation: ki-gel .8s cubic-bezier(.3, 1.4, .5, 1) both; }
.ki-kus { width: 78%; justify-self: center; animation-delay: .15s; }
.ki-hayvan img, .ki-piyano img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(60, 30, 80, .25)); }
.ki-poz { position: absolute; inset: 0; transition: opacity .15s; }
.ki-ayi .ki-acik { opacity: 0; }
.ki-ayi.soyluyor .ki-acik { opacity: 1; }
.ki-ayi.soyluyor .ki-sus { opacity: 0; }
.ki-hayvan.zipla { animation: ki-zipla .5s ease-out; }
.ki-hayvan.dans { animation: ki-dans 1s ease-in-out; }
.ki-piyano { aspect-ratio: 1.2; }
.ki-piyano.vur { animation: muzik-vur .25s ease-out; }
.ki-piyano.parla img { animation: ki-parla 1.2s ease-in-out infinite; }
.ki-nota { position: absolute; left: 50%; top: 10%; font-size: 40px; color: #8a4fd8; text-shadow: 0 2px 0 #fff; pointer-events: none; animation: ki-nota 1.3s ease-out forwards; }
.ki-nota.kalin { font-size: 54px; color: #7a4a20; }
@keyframes ki-gel { 0% { transform: translateY(40%) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ki-zipla { 30% { transform: scale(1.08, .9); } 60% { transform: translateY(-14%) scale(.96, 1.06); } 100% { transform: none; } }
@keyframes ki-dans { 15% { transform: translateY(-12%) rotate(-8deg); } 35% { transform: rotate(8deg); } 55% { transform: translateY(-12%) rotate(-8deg); } 75% { transform: rotate(6deg) scale(1.05, .95); } 100% { transform: none; } }
@keyframes ki-parla { 0%, 100% { filter: drop-shadow(0 8px 10px rgba(60, 30, 80, .25)); } 50% { filter: drop-shadow(0 0 18px #ffd23f) drop-shadow(0 0 6px #fff); } }
@keyframes ki-nota { 0% { translate: -50% 0; opacity: 0; scale: .5; } 20% { opacity: 1; scale: 1; } 100% { translate: calc(-50% + var(--x)) -120px; opacity: 0; rotate: 15deg; } }
@media (max-width: 600px) { .ki-sahne { min-height: 50vh; padding-top: 50px; } }
