/* Oyuncak Makinesi sahnesi: gece lunaparkı (v4/lunapark, Magnific) arka planda: solda dönme dolap, sağda atlıkarınca,
   üstte ışık zinciri, altta %22 meydan zemini. Ortada ışıkları yanıp sönen turkuaz pençe makinesi (kodla), iki yanda
   yakalanan kelimelerin dizildiği tenteli ödül rafları. Sol rafın altında oyuncak ödüller ve balonlar (süs), sağ rafın
   altında pamuk şekerli Pıtır. Sahne ölçüleri sahneye göre (cqw/cqh); makinenin içi makine genişliğine göre (cqw). */
.lunapark-sahne{--ink:#2d1f5e;--turkuaz:#2fd0e2;--turkuaz-koyu:#0d7189;--krom:#dfe7f1;container-type:size;background:#2a1458}
.lunapark-sahne .arka{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}
.lunapark-sahne .susler{position:absolute;height:auto;pointer-events:none;user-select:none;z-index:2;filter:drop-shadow(0 .6cqw .6cqw #0006)}
.susler.oduller{left:2cqw;bottom:2.5cqh;width:15cqw}
.susler.balon{left:15.5cqw;bottom:2cqh;width:8.5cqw}

/* Ödül rafları: üstte çizgili tente; yakalanan kelimeler tahtalara dizilir */
.raf{position:absolute;top:12cqh;height:50cqh;width:19cqw;z-index:2;border:.4cqw solid #ffd66b;border-top:0;border-radius:0 0 2cqw 2cqw;background:#1d0c45b8;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:0 0 1.6cqw #ffc23d88,inset 0 0 1.8cqw #ffd66b33}
.raf::before{content:"";position:absolute;left:-1.2cqw;right:-1.2cqw;top:-5cqh;height:5.4cqh;border-radius:1.2cqw 1.2cqw .4cqw .4cqw;background:repeating-linear-gradient(90deg,#ff4f6a 0 2.4cqw,#fff4e6 2.4cqw 4.8cqw);box-shadow:0 .5cqh 0 #0003,0 0 0 .3cqw #ffd66b}
.raf.sol{left:2cqw}.raf.sag{right:2cqw}
.raf-ici{display:grid;grid-template-rows:repeat(4,1fr);height:100%;padding:.4cqw 1.2cqw 1cqw}
.raf-goz{display:flex;align-items:flex-end;justify-content:center;border-bottom:1.1cqw solid #b67b3f;box-shadow:0 .5cqw 0 #6e431c;margin-bottom:.4cqw;padding-bottom:.3cqw}
.raf-kelime{padding:.25cqw 1.2cqw .55cqw;border-radius:1.2cqw;background:#fff;border:.35cqw solid var(--renk,#ff6fd0);font:700 3.1cqw/1.25 'MEB Temel Yazi','Oyunluokul Okuma',sans-serif;color:var(--ink);white-space:nowrap;box-shadow:0 .4cqw 0 #0003;animation:rafa .55s cubic-bezier(.3,1.7,.5,1)}
@keyframes rafa{from{scale:0;rotate:-20deg}}

/* Makine */
.makine{--mw:min(48cqw,84cqh);position:absolute;left:50%;bottom:1.2cqh;width:var(--mw);translate:-50% 0;z-index:3;container-type:inline-size;filter:drop-shadow(0 0 2.4cqw #4ff0ff55)}
.tepe{position:relative;height:18cqw;margin:0 2.5cqw;border:.8cqw solid var(--turkuaz-koyu);border-bottom:0;border-radius:50% 50% 0 0/80% 80% 0 0;background:linear-gradient(var(--turkuaz),#16a9c2);box-shadow:inset 0 1cqw 0 #ffffff55}
.ampuller{position:absolute;inset:0}
.ampuller i{position:absolute;left:var(--x);top:var(--y);width:3.4cqw;height:3.4cqw;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0 25%,#fff3b0 45%,#ffcf3d 100%);box-shadow:0 0 1.4cqw #ffe27a,0 0 3cqw #ffc23d;animation:kovala 1.4s var(--d) linear infinite}
@keyframes kovala{0%,60%{opacity:1}70%,100%{opacity:.35;box-shadow:none}}
.makine.kutla .ampuller i{animation-duration:.45s}
.tabela{position:absolute;left:15%;right:15%;bottom:1.6cqw;height:8.4cqw;display:grid;place-items:center;border-radius:50% 50% 1.6cqw 1.6cqw/90% 90% 1.6cqw 1.6cqw;background:linear-gradient(#ffe766,#ffc928);border:.5cqw solid #c98a00;box-shadow:inset 0 .6cqw 0 #fff8}
.tabela span{font:900 4.6cqw var(--round,'Oyunluokul Okuma',sans-serif);letter-spacing:.3cqw;color:#ff4f9a;text-shadow:0 .3cqw 0 #fff,0 0 1.6cqw #fff6}
.cam{position:relative;height:56cqw;overflow:hidden;border:1.4cqw solid var(--krom);outline:.5cqw solid var(--turkuaz-koyu);background:radial-gradient(ellipse at 50% 0,#4a7ce6 0,#2547a8 45%,#162f78 100%);box-shadow:inset 0 0 3cqw #0008}
.cam::before{content:"";position:absolute;inset:auto 0 0;height:4cqw;background:linear-gradient(#3d6fd6,#2a55b8);border-top:.3cqw solid #ffffff44}
.koni{position:absolute;top:2.6cqw;width:34cqw;height:52cqw;translate:-50% 0;transform-origin:50% 0;background:linear-gradient(#fffbe055,#fffbe000 90%);clip-path:polygon(42% 0,58% 0,100% 100%,0 100%);pointer-events:none;animation:koni 5s ease-in-out infinite alternate}
.koni.k1{left:36%}.koni.k2{left:72%;animation-delay:-2.5s}
@keyframes koni{from{rotate:-5deg}to{rotate:5deg}}
.parilti{position:absolute;inset:0;pointer-events:none;z-index:4;background:linear-gradient(115deg,#0000 0 16%,#ffffff2e 16% 20%,#0000 20% 68%,#ffffff1f 68% 70%,#0000 70%)}
.ray{position:absolute;inset:0 0 auto;height:3cqw;z-index:2;background:linear-gradient(#f4f8fc,#aebbd0);border-bottom:.4cqw solid #5d6d8c}
.ray i{position:absolute;top:2.6cqw;width:7cqw;height:1.4cqw;translate:-50% 0;border-radius:0 0 1cqw 1cqw;background:#fff6c8;box-shadow:0 0 2cqw #fff3a8}
.ray i:first-child{left:36%}.ray i:last-child{left:72%}

/* Pençe: yatay yeri ve ipin boyu JS'ten */
.pence{position:absolute;top:2.6cqw;left:9.5%;width:20cqw;translate:-50% 0;z-index:3;pointer-events:none;transition:left .7s ease-in-out}
.ip{width:1cqw;height:3cqw;margin:0 auto;background:repeating-linear-gradient(#8a97ad 0 .6cqw,#5d6d8c .6cqw 1.2cqw);transition:height .9s ease-in-out}
.kanca{display:block;width:20cqw;height:auto;margin-top:-.3cqw;overflow:visible;transform-origin:50% 0;animation:salinma 2.6s ease-in-out infinite alternate}
@keyframes salinma{from{rotate:-2.5deg}to{rotate:2.5deg}}
.kanca .kol{transform-box:view-box;transition:rotate .3s ease-out}
.kanca .kol.sol{transform-origin:22px 14px}.kanca .kol.sag{transform-origin:38px 14px}
.pence.acik .kol.sol{rotate:24deg}.pence.acik .kol.sag{rotate:-24deg}
.kanca .lamba{animation:lamba 1s steps(2) infinite}
@keyframes lamba{50%{fill:#ff5d73}}

/* Cam kapsüller: yer ve boy JS'ten (--d); altında renkli bant, ortada kelime etiketi */
.kapsul{position:absolute;width:var(--d);height:var(--d);padding:0;translate:-50% -50%;rotate:var(--r,0deg);border:.45cqw solid #ffffffd0;border-radius:50%;cursor:pointer;z-index:1;
  background:radial-gradient(circle at 30% 24%,#fff 0 7%,#fff0 8%),radial-gradient(circle at 50% 45%,#ffffff26,#ffffff0d 60%,#ffffff40 100%),linear-gradient(#0000 60%,var(--renk) 60%);
  box-shadow:inset 0 -1.2cqw 1.6cqw #0004,0 1cqw 1.4cqw #0006;transition:scale .15s}
.kapsul::after{content:"";position:absolute;left:4%;right:4%;top:60%;height:.45cqw;background:#fff9;border-radius:1cqw}
.kapsul:not(:disabled):hover{scale:1.06}
.kapsul.secili{animation:secili 1s ease-in-out infinite alternate}
@keyframes secili{from{box-shadow:inset 0 -1.2cqw 1.6cqw #0004,0 0 0 .7cqw #ffe066,0 0 2cqw #ffd23d}to{box-shadow:inset 0 -1.2cqw 1.6cqw #0004,0 0 0 1.1cqw #ffe066,0 0 3.6cqw #ffd23d}}
.kapsul.tutuldu{z-index:2}
.kapsul .etiket{position:absolute;left:50%;top:44%;z-index:1;translate:-50% -50%;rotate:calc(var(--r,0deg) * -1);padding:.15cqw 1.1cqw .7cqw;background:#fff;border:.4cqw solid var(--ink);border-radius:1.6cqw;font:700 calc(var(--d) * var(--k,.4)) 'MEB Temel Yazi','Oyunluokul Okuma',sans-serif;line-height:1.3;color:var(--ink);white-space:nowrap;pointer-events:none}
.kapsul.kaydi{animation:kaydi .45s ease-out}
@keyframes kaydi{30%{translate:-50% -62%}60%{translate:-50% -50%;rotate:calc(var(--r,0deg) + 10deg)}80%{rotate:calc(var(--r,0deg) - 6deg)}}
.kapsul.ipucu{animation:ipucu .9s ease-in-out 3}
@keyframes ipucu{25%{rotate:calc(var(--r,0deg) - 9deg);box-shadow:0 0 0 .8cqw #ffe066,0 0 3cqw #ffd23d}75%{rotate:calc(var(--r,0deg) + 9deg);box-shadow:0 0 0 .8cqw #ffe066,0 0 3cqw #ffd23d}}
.kapsul.acildi{animation:acil .45s ease-in forwards}
@keyframes acil{to{scale:1.6;opacity:0}}

/* Altın bilet: oyun başında jeton yuvasına girer (makine genişliğine göre cqw) */
.bilet{position:absolute;right:6%;bottom:6cqw;width:15cqw;height:auto;opacity:0;pointer-events:none;z-index:5;filter:drop-shadow(0 .6cqw .6cqw #0006)}
.bilet.at{animation:biletAt 1.3s ease-in-out both}
@keyframes biletAt{0%{opacity:0;translate:40cqw -30cqw;rotate:-30deg;scale:1.6}25%{opacity:1}55%{translate:0 -2cqw;rotate:-8deg;scale:1}75%{opacity:1;translate:0 0;rotate:0deg;scale:.8}100%{opacity:0;translate:0 3cqw;scale:.4}}
.bilet.gorsel-yok{visibility:hidden}

/* Pamuk şekerli Pıtır: sağ rafın altında, meydanda */
.lunapark-sahne .pitir{position:absolute;left:88.5cqw;bottom:1.5cqh;height:36cqh;aspect-ratio:593/900;translate:-50% 0;transform-origin:50% 100%;pointer-events:none;z-index:4;animation:pitir-nefes 2.6s ease-in-out infinite}
.pitir .kare{position:absolute;inset:0;width:100%;height:100%;opacity:0;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 .4cqw .5cqw #0007)}
.pitir .kare.gorunur{opacity:1}
.pitir .kare.gorsel-yok{visibility:hidden}
@keyframes pitir-nefes{50%{scale:1.008 1.022}}
.lunapark-sahne .pitir.zipla{animation:pitir-zipla .65s cubic-bezier(.3,.8,.4,1)}
@keyframes pitir-zipla{0%{translate:-50% 0;scale:1}20%{scale:1.06 .92}50%{translate:-50% -12%;scale:.96 1.06}80%{translate:-50% 0;scale:1.05 .95}100%{translate:-50% 0;scale:1}}
.lunapark-sahne .pitir.salla{animation:pitir-salla .7s ease-in-out}
@keyframes pitir-salla{15%{rotate:-5deg}35%{rotate:5deg}55%{rotate:-4deg}75%{rotate:3deg}100%{rotate:0deg}}
.lunapark-sahne .efektler{position:absolute;inset:0;pointer-events:none;z-index:8}
.efektler .yildizcik{position:absolute;font-style:normal;font-size:2.6cqw;translate:-50% -50%;animation:yildizcik 1.2s ease-out forwards}
@keyframes yildizcik{0%{transform:translate(0,0) scale(.3);opacity:1}60%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(1.1);opacity:0}}
/* Sonda madalya makinenin önünde belirir */
.lunapark-sahne .madalya{position:absolute;left:50%;top:42%;width:16cqw;height:auto;translate:-50% -50%;opacity:0;pointer-events:none;z-index:7;filter:drop-shadow(0 1cqw 1.4cqw #0007)}
.lunapark-sahne .madalya.gel{animation:madalyaGel .8s cubic-bezier(.3,1.6,.5,1) forwards}
@keyframes madalyaGel{0%{opacity:0;scale:.2;rotate:-40deg}100%{opacity:1;scale:1;rotate:0deg}}
.madalya.gorsel-yok{visibility:hidden}

/* Ödül çıkışı (cam kutu) ve kapsülden çıkan kelime kartı */
.cikis{position:absolute;left:0;bottom:0;width:19%;height:19cqw;z-index:2;pointer-events:none;background:linear-gradient(#ffffff38,#ffffff12);border:.5cqw solid #ffffffb0;border-left:0;border-bottom:0;border-radius:0 1.6cqw 0 0;box-shadow:inset 0 0 2cqw #ffffff33}
.kazanc{position:absolute;left:50%;top:44%;z-index:6;translate:-50% -50%;padding:1cqw 5cqw 2.2cqw;border-radius:3cqw;background:#fff;border:1cqw solid var(--renk);box-shadow:0 1.2cqw 0 #0004,0 0 4cqw #fff8;font:700 13cqw/1.3 'MEB Temel Yazi','Oyunluokul Okuma',sans-serif;color:var(--ink);white-space:nowrap;pointer-events:none;animation:kazanc .75s cubic-bezier(.3,1.5,.5,1)}
@keyframes kazanc{from{translate:calc(-50% + var(--dx)) calc(-50% + var(--dy));scale:.15;rotate:-14deg}}
.kivilcim{position:absolute;left:50%;top:44%;z-index:5;font-size:5cqw;line-height:1;color:var(--c);text-shadow:0 0 1.4cqw var(--c);pointer-events:none;animation:kivilcim .9s ease-out forwards}
@keyframes kivilcim{from{translate:-50% -50%;scale:.3;opacity:1}to{translate:calc(-50% + var(--tx)) calc(-50% + var(--ty));scale:1.2;rotate:160deg;opacity:0}}

/* Kumanda paneli ve alt gövde */
.panel{display:flex;align-items:center;justify-content:center;gap:3cqw;height:15cqw;padding:0 3cqw;border:.8cqw solid #c98a00;border-top-color:#fff1a8;border-radius:1.6cqw;background:linear-gradient(#ffe45c,#ffc21f);box-shadow:inset 0 -1cqw 0 #e0a100}
.panel button{border:.6cqw solid #1d2547;cursor:pointer;font-family:var(--round,'Oyunluokul Okuma',sans-serif);font-weight:900;color:#fff;touch-action:manipulation}
.kol-tus{width:10.5cqw;height:10.5cqw;border-radius:50%;font-size:4.4cqw;background:radial-gradient(circle at 35% 30%,#5d72b8,#2b3a6e);box-shadow:0 1cqw 0 #1d2547}
.joystick{position:relative;width:11cqw;height:11cqw}
.joystick::before{content:"";position:absolute;left:50%;bottom:.6cqw;width:10cqw;height:4cqw;translate:-50% 0;border-radius:50%;background:radial-gradient(#3a3f55,#1d2033);box-shadow:0 .5cqw 0 #c98a00}
.joystick i{position:absolute;left:50%;bottom:2.4cqw;width:1.6cqw;height:6cqw;translate:-50% 0;transform-origin:50% 100%;border-radius:1cqw;background:linear-gradient(90deg,#9aa6b8,#e7edf5,#9aa6b8);transition:rotate .2s}
.joystick i::after{content:"";position:absolute;left:50%;top:-3cqw;width:5cqw;height:5cqw;translate:-50% 0;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff9a9a,#e51b2b 60%,#9a0d1a)}
.joystick.sol i{rotate:-22deg}.joystick.sag i{rotate:22deg}
.yakala{position:relative;margin-left:3cqw;width:22cqw;height:12cqw;border-radius:6cqw 6cqw 3cqw 3cqw;background:radial-gradient(ellipse at 40% 25%,#ffb0b0 0,#ff3b4e 40%,#c4101f 100%);box-shadow:0 1.3cqw 0 #7a0a14,0 0 2.4cqw #ff3b4e88;font-size:4.6cqw;text-shadow:0 .35cqw 0 #8a0d18}
.panel button:active{translate:0 .8cqw;box-shadow:0 .3cqw 0 #1d2547}
.panel button:focus-visible{outline:.8cqw solid #fff}
.panel button:disabled{filter:grayscale(.45) brightness(.92);cursor:default}
.govde{position:relative;height:15cqw;margin:0 1.6cqw;border:.8cqw solid var(--turkuaz-koyu);border-top:0;border-radius:0 0 2.4cqw 2.4cqw;background:linear-gradient(90deg,#16a9c2,var(--turkuaz) 30%,var(--turkuaz) 70%,#16a9c2)}
.govde::before,.govde::after{content:"";position:absolute;bottom:-2cqw;width:9cqw;height:2cqw;border-radius:0 0 1cqw 1cqw;background:#0a4f61}
.govde::before{left:5%}.govde::after{right:5%}
.kapak{position:absolute;left:8%;top:2cqw;width:24cqw;height:10cqw;border-radius:1.4cqw;background:linear-gradient(#ffe45c,#ffc21f);border:.6cqw solid var(--krom);box-shadow:inset 0 0 0 .4cqw #c98a00}
.jeton{position:absolute;right:9%;top:2.6cqw;display:flex;flex-direction:column;align-items:center;gap:.6cqw;padding:1.2cqw 2.4cqw;border-radius:1.2cqw;background:#0f5d70;font:900 2.6cqw var(--round,sans-serif);color:#ffe066;letter-spacing:.2cqw}
.jeton i{width:1.2cqw;height:4cqw;border-radius:1cqw;background:#061f27;box-shadow:0 0 0 .3cqw #ffe066}

/* İlerleme noktaları bu oyunda yuvarlak kapsül */
.lunapark-sayfa .ilerleme i{width:20px;height:20px;border-radius:50%}
.lunapark-sayfa .ilerleme i.tamam{background:#ff6fd0;border-color:#c23d9a}

@media (max-width:700px){
  .makine{--mw:min(88cqw,74cqh)}
  .raf{top:6cqw;bottom:auto;height:19cqw;width:35cqw;border-radius:0 0 2.4cqw 2.4cqw}
  .raf::before{top:-4cqw;height:4.4cqw}
  .raf.sol{left:3cqw}.raf.sag{right:3cqw}
  .susler{display:none}
  .lunapark-sahne .pitir{left:50cqw;top:1cqw;bottom:auto;height:24cqw;z-index:4}
  .lunapark-sahne .madalya{width:30cqw}
  .raf-ici{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;column-gap:2cqw}
  .raf-kelime{font-size:4cqw}
}
@media (prefers-reduced-motion:reduce){
  .koni,.kanca,.ampuller i,.kapsul.secili,.lunapark-sahne .pitir{animation:none}
  .bilet.at{animation:none}
  .lunapark-sahne .madalya.gel{animation:none;opacity:1}
}
