/* masal.css — Hikâyeler (Adım 7, js/masal.js). Resimler Sare'nin; çizilmiş şekil yok. */
.game-card[data-game^="masal-"] { display: none !important; }

.ms-yuzey { align-items: center; justify-content: center; overflow: hidden; }
.ms-sahne { position: relative; width: 100%; flex: 1 1 auto; border-radius: 26px; overflow: hidden; background: #fff4fa; }
.ms-resim { position: absolute; inset: 0; }
.ms-kare {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
    transition: opacity 1.2s ease; transform-origin: 50% 50%;
}
.ms-kare.gorunur { opacity: 1; }
.ms-kare.sol { animation: ms-yakin-sol 22s ease-out forwards; }
.ms-kare.sag { animation: ms-yakin-sag 22s ease-out forwards; }
@keyframes ms-yakin-sol { from { transform: scale(1.02) translate(1%, 0); } to { transform: scale(1.14) translate(-2%, -1%); } }
@keyframes ms-yakin-sag { from { transform: scale(1.02) translate(-1%, 0); } to { transform: scale(1.14) translate(2%, -1%); } }

/* Anlatan baykuş köşede; konuşurken sallanır */
.ms-baykus {
    position: absolute; left: 2%; bottom: 2%; width: clamp(80px, 13vw, 140px); z-index: 3; pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(80, 40, 90, .35));
}
.ms-baykus.konusuyor { animation: baykus-sallan .7s ease-in-out infinite; }

/* "Sence ne olacak?" iki resim */
.ms-secim {
    position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 3%;
    padding: 4%; background: rgba(255, 240, 248, .55); backdrop-filter: blur(3px);
}
.ms-secim[hidden] { display: none; }
.ms-secenek {
    width: 44%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 26px; overflow: hidden; cursor: pointer;
    background: #fff; box-shadow: 0 10px 0 #f3c6dc, 0 16px 30px rgba(150, 60, 110, .25); transition: transform .2s;
    animation: ny-otur .5s cubic-bezier(.3, 1.4, .5, 1);
}
.ms-secenek img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ms-secenek:active { transform: scale(.96); }
.ms-secim.parla .ms-secenek { animation: st-parla 1.2s ease-in-out infinite; }
.ms-secim.parla .ms-secenek:nth-child(2) { animation-delay: .6s; }
.ms-secenek.secildi { transform: scale(1.06); box-shadow: 0 10px 0 #9fe3b8, 0 0 0 8px #7dd99c, 0 14px 30px rgba(60, 160, 100, .35); }

/* Masal sonu anlama sorusu (şablon soru turu, sahnenin üstünde) */
.ms-anla { position: absolute; inset: 0; z-index: 4; background: rgba(255, 240, 248, .82); backdrop-filter: blur(4px); border-radius: 26px; }
