/* Hece Halatı: bahçede iki ağaç arasına gerilmiş ip (16:9). Ölçüler sahne genişliğine göre (cqw); yükseklik 56.25cqw. */
.sahne-cerceve.yeni-sahne.halat-sahne{aspect-ratio:16/9;background:#bfe6ff}
.halat-sahne .arka{object-fit:cover}
.halat-sahne .ip{inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.halat-sahne .ip path{fill:none;stroke:#8a5a2b;stroke-width:.55;stroke-linecap:round;filter:drop-shadow(0 .15px .1px #0005)}
.halat-sahne .ip path.ic{stroke:#c9935a;stroke-width:.22;stroke-dasharray:.6 .5}

/* Kart: mandalla ipe asılı hece kartı (okuma yazısı) */
.halat-sahne .kart{position:absolute;translate:-50% 0;min-width:9cqw;padding:1.6cqw 1.6cqw 1.2cqw;border-radius:1.2cqw;border:.35cqw solid #fff;background:linear-gradient(180deg,#fffef8,#f7ecd2);color:#2d1f5e;font-family:'MEB Temel Yazi','Oyunluokul Okuma',sans-serif;font-weight:700;font-size:var(--yazi,6cqw);line-height:1.05;text-align:center;box-shadow:0 .5cqw 0 #c9b48a,0 1cqw 1.6cqw #0003;transform-origin:50% 0;cursor:pointer;z-index:5;transition:left .5s cubic-bezier(.3,1.3,.5,1),top .5s cubic-bezier(.3,1.3,.5,1),opacity .3s;-webkit-tap-highlight-color:transparent;white-space:nowrap}
.halat-sahne .kart:focus-visible{outline:.45cqw solid #ffb800;outline-offset:.3cqw}
.halat-sahne .kart.asili{animation:sallan 3.2s ease-in-out infinite}
@keyframes sallan{50%{transform:rotate(2.2deg)}}
.halat-sahne .kart .mandal{position:absolute;left:50%;top:-2.6cqw;translate:-50% 0;width:1.7cqw;height:4cqw;border-radius:.5cqw;background:linear-gradient(90deg,#d9a86a,#f0c88e 45%,#c88f4f);box-shadow:inset 0 0 0 .12cqw #9c6a35,0 .2cqw .3cqw #0004}
.halat-sahne .kart .mandal::after{content:'';position:absolute;left:15%;right:15%;top:45%;height:.6cqw;border-radius:.2cqw;background:#9aa3ad}
.halat-sahne .kart:not(.asili) .mandal{display:none}
.halat-sahne .kart.yeni{animation:kartGel .45s cubic-bezier(.3,1.5,.6,1) backwards}
@keyframes kartGel{from{transform:translateY(-30%) scale(.6);opacity:0}}
.halat-sahne .kart.birlesik{--yazi:7cqw;background:linear-gradient(180deg,#fffbe0,#ffe9a6);border-color:#ffd23d}
.halat-sahne .kart.birlesik.yeni{animation:birles .55s cubic-bezier(.3,1.6,.5,1) backwards}
@keyframes birles{from{transform:scale(.4);opacity:0}}
.halat-sahne .kart.hayir{animation:kartHayir .5s ease-in-out}
@keyframes kartHayir{20%,60%{transform:translateX(-8%) rotate(-3deg)}40%,80%{transform:translateX(8%) rotate(3deg)}}
/* İkinci yanlıştan sonra ipucu: sıradaki doğru kart zıplar, üstünde mandal işareti (🧷) ve kesik çizgili kenar */
.halat-sahne .kart.ipucu{animation:kartIpucu .7s ease-in-out infinite alternate;border-style:dashed;border-color:#2d1f5e}
@keyframes kartIpucu{to{transform:translateY(-12%)}}
.halat-sahne .kart .isaret{position:absolute;left:50%;top:-4.6cqw;translate:-50% 0;font-size:3.6cqw;line-height:1}
.halat-sahne .arti{position:absolute;translate:-50% 0;font:800 6cqw/1 'Baloo 2',system-ui,sans-serif;color:#fff;text-shadow:0 .3cqw 0 #3f9b4f,0 0 1cqw #0004;pointer-events:none;z-index:4;transition:opacity .3s}
/* Kelimeyi As: ipte boş yerler */
.halat-sahne .yer{position:absolute;translate:-50% 0;width:10cqw;height:9.5cqw;border-radius:1.2cqw;border:.35cqw dashed #ffffffd0;background:#ffffff40;pointer-events:none;z-index:3}

/* Düğmeler (sahnenin içinde, büyük ve dokunmaya uygun) */
.halat-sahne .islem{position:absolute;translate:-50% 0;min-height:44px;padding:1cqw 2.6cqw;border-radius:2cqw;border:.4cqw solid #fff;font:800 2.6cqw/1.1 'Baloo 2',system-ui,sans-serif;cursor:pointer;box-shadow:0 .6cqw 0 #0003;z-index:7;white-space:nowrap}
.halat-sahne .islem[hidden]{display:none}
.halat-sahne .islem.birlestir{background:linear-gradient(180deg,#ffd75a,#ffb800);color:#5a3a00;box-shadow:0 .6cqw 0 #c98a00}
.halat-sahne .islem.dinle{background:linear-gradient(180deg,#4fb3ff,#1d7fe0);color:#fff;box-shadow:0 .6cqw 0 #135ea8}
.halat-sahne .islem.sonraki{background:linear-gradient(180deg,#7ad98a,#3fae55);color:#fff;box-shadow:0 .6cqw 0 #23793a}
.halat-sahne .islem:active{translate:-50% .3cqw}
.halat-sahne .islem:focus-visible{outline:.45cqw solid #ffe274;outline-offset:.3cqw}
.halat-sahne .islem.cagir{animation:islemCagir .5s ease-in-out 2}
@keyframes islemCagir{50%{transform:scale(1.12)}}

/* Resim çerçevesi (Kelimeyi As) */
.halat-sahne .resim{left:16%;top:47%;width:17cqw;aspect-ratio:1;translate:-50% 0;display:grid;place-items:center;border-radius:3cqw;border:.5cqw solid #fff;background:radial-gradient(circle at 50% 40%,#fffef6,#ffeec2);box-shadow:0 .7cqw 0 #d9bf86,0 1.2cqw 2cqw #0003;font-size:10cqw;line-height:1;cursor:pointer;z-index:5;padding:0}
.halat-sahne .resim[hidden]{display:none}
.halat-sahne .resim .ses{position:absolute;right:-1.6cqw;bottom:-1.6cqw;width:5.4cqw;height:5.4cqw;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#4fb3ff,#1d7fe0);border:.35cqw solid #fff;font-size:2.6cqw}
.halat-sahne .sepet{left:50%;bottom:-5%;width:28cqw;translate:-50% 0;pointer-events:none;z-index:2;filter:drop-shadow(0 .6cqw .5cqw #0004)}
.halat-sahne .sepet[hidden]{display:none}

/* Pıtır sağ altta; birleşince ve kelime tamamlanınca sevinir */
.halat-sahne .pitir{right:2%;bottom:1%;height:44%;aspect-ratio:613/900;z-index:6;pointer-events:none}
.halat-sahne .pitir img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .2s;filter:drop-shadow(0 .8cqw .6cqw #0005)}
.halat-sahne .pitir img.gorunur{opacity:1}
.halat-sahne .pitir.sevin{animation:pitirZipla .45s ease-in-out 2}
@keyframes pitirZipla{50%{transform:translateY(-8%)}}

@media (prefers-reduced-motion:reduce){.halat-sahne *{animation:none!important;transition:none!important}}
