/* Dedektif Kerem mini oyunu: kanit_tahmin (sahne 4). Bütün sınıflar .o-kt- önekli; renkler oyun/stil.css değişkenlerinden. */
.o-kt { position: absolute; inset: 0; touch-action: none; font-family: "Bricolage", "Segoe UI", system-ui, sans-serif; color: var(--koyu); }
.o-kt-karart { position: absolute; inset: 0; background: radial-gradient(ellipse at 55% 40%, rgba(29,26,43,.25), rgba(29,26,43,.62)); pointer-events: none; }

/* görev şeridi */
.o-kt-serit { position: absolute; left: 400px; right: 30px; top: 14px; padding: 8px 20px; text-align: center; background: #fff; border: 4px solid var(--sari); border-radius: 22px;
  font-size: 26px; font-weight: 800; color: var(--kahve); box-shadow: 0 8px 18px rgba(0,0,0,.25); z-index: 3; }
.o-kt-serit.yeni { animation: oKtSeritGel .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes oKtSeritGel { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* sol üst: UFYO + ipucu + emin */
.o-kt-solust { position: absolute; left: 14px; top: 6px; width: 370px; z-index: 4; }
.o-kt-ufyo { position: relative; overflow: hidden; cursor: pointer; transform-origin: 50% 90%; }
.o-kt-ufyo-ic { position: absolute; left: 0; top: 0; width: 1536px; height: 1024px; transform-origin: 0 0; }
.o-kt-ufyo-govde { position: absolute; left: 0; top: 0; width: 1536px; height: 1024px; animation: oKtNefes 2.6s ease-in-out infinite; }
.o-kt-k { position: absolute; display: block; pointer-events: none; }
.o-kt-kol { transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.o-kt-cam { position: absolute; overflow: hidden; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; pointer-events: none; }
.o-kt-cam img { position: absolute; left: 0; top: 0; width: 1238px; height: 736px; transform-origin: 0 0; transition: opacity .12s;
  filter: drop-shadow(0 0 10px rgba(126,204,237,.9)) drop-shadow(0 0 22px rgba(126,204,237,.5)); }
.o-kt-parilti { mix-blend-mode: screen; opacity: .45; }
.o-kt-ufyo.o-kt-zipla .o-kt-ufyo-govde { animation: oKtZipla .6s ease-out; }
.o-kt-ufyo.o-kt-salla .o-kt-ufyo-govde { animation: oKtSalla .5s ease-in-out 2; }
@keyframes oKtNefes { 0%,100% { transform: translate(0,0); } 50% { transform: translate(0,-8px) scale(1,1.01); } }
@keyframes oKtZipla { 0% { transform: translateY(0) scale(1.06,.92); } 45% { transform: translateY(-70px) scale(.96,1.06); } 85% { transform: translateY(0) scale(1.05,.94); } 100% { transform: none; } }
@keyframes oKtSalla { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }

.o-kt-ipucu { position: absolute; left: 262px; top: 128px; min-width: 96px; height: 60px; padding: 0 14px; border-radius: 30px; border: 4px solid #fff; background: var(--sari);
  color: var(--kahve); font-size: 22px; font-weight: 800; box-shadow: 0 6px 0 #c98a14, 0 10px 18px rgba(0,0,0,.3); display: flex; align-items: center; gap: 6px; z-index: 2; touch-action: none; white-space: nowrap; }
.o-kt-ipucu:active { transform: translateY(3px); box-shadow: 0 3px 0 #c98a14; }
.o-kt-ipucu img { width: 70px; height: 42px; object-fit: contain; background: #1d2a44; border-radius: 10px; }

.o-kt-emin { position: relative; margin-top: 6px; width: 350px; padding: 8px 14px 12px; background: rgba(43,36,64,.9); color: #fff; border-radius: 18px; border: 3px solid var(--mavi-goz); }
.o-kt-emin-baslik { font-size: 20px; font-weight: 700; padding-right: 76px; }
.o-kt-emin-cubuk { margin-top: 6px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.18); overflow: hidden; }
.o-kt-emin-dolgu { height: 100%; width: 99%; border-radius: 13px; transition: width 1.2s cubic-bezier(.3,.1,.2,1), background .6s; }
.o-kt-emin-yazi { position: absolute; right: 14px; top: 4px; font-size: 28px; font-weight: 800; color: #c5f0ff; }
.o-kt-emin.o-kt-sarsil { animation: oKtSarsil .5s; }
@keyframes oKtSarsil { 20%,60% { transform: translateX(-7px) rotate(-1deg); } 40%,80% { transform: translateX(7px) rotate(1deg); } }

/* balonlar */
.o-kt-ubalon { position: absolute; left: 400px; top: 84px; width: 840px; padding: 14px 22px; background: #eaf7ff; border: 5px solid #3a3f63; border-radius: 26px;
  font-size: 30px; font-weight: 700; line-height: 1.28; box-shadow: 0 10px 24px rgba(0,0,0,.3); z-index: 6; opacity: 0; transform: scale(.85); transform-origin: 0 50%;
  transition: opacity .25s, transform .3s cubic-bezier(.3,1.6,.5,1), top .35s; pointer-events: none; }
.o-kt-ubalon.alt { top: 272px; }
.o-kt-ubalon.alt::before { top: 24px; }
.o-kt-ubalon.acik { opacity: 1; transform: scale(1); }
.o-kt-ubalon::before { content: ""; position: absolute; left: -26px; top: 40px; border: 16px solid transparent; border-right: 22px solid #3a3f63; }
.o-kt-ubalon b, .o-kt-not b { display: inline-block; margin-right: 12px; padding: 1px 12px; border-radius: 12px; font-size: 22px; vertical-align: 3px; }
.o-kt-ubalon b { background: #3a3f63; color: #c5f0ff; }
.o-kt-not { position: absolute; left: 50%; top: 300px; width: 860px; margin-left: -430px; padding: 12px 22px; background: #fffaf0; border: 5px solid var(--kahve); border-radius: 24px;
  font-size: 30px; font-weight: 700; line-height: 1.28; box-shadow: 0 10px 24px rgba(0,0,0,.35); z-index: 7; opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .3s; pointer-events: none; }
.o-kt-not.acik { opacity: 1; transform: none; }
.o-kt-not b { background: var(--turuncu); color: #fff; }

/* kutular */
.o-kt-kutu { position: absolute; top: 398px; width: 580px; height: 306px; border-radius: 30px; border: 6px dashed rgba(255,255,255,.85); background: rgba(255,250,235,.9);
  box-shadow: 0 12px 28px rgba(0,0,0,.35); transition: transform .25s, opacity .5s, box-shadow .25s, left .6s, top .6s, width .6s; cursor: pointer; touch-action: none; }
.o-kt-kutu-kanit { left: 36px; border-color: var(--turkuaz); }
.o-kt-kutu-tahmin { left: 664px; border-color: #b58ad6; }
.o-kt-kutu-bas { display: flex; align-items: center; gap: 14px; padding: 12px 20px 6px; pointer-events: none; }
.o-kt-kutu-ikon { font-size: 58px; line-height: 1; }
.o-kt-kutu-baslik { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: 1px; }
.o-kt-kutu-kanit .o-kt-kutu-baslik { color: #2f8a7e; }
.o-kt-kutu-tahmin .o-kt-kutu-baslik { color: #8a55b5; }
.o-kt-kutu-alt { font-size: 22px; font-weight: 700; opacity: .75; }
.o-kt-kutu-ic { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 16px; align-content: flex-start; }
.o-kt-kutu.ustunde { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(255,255,255,.7), 0 14px 30px rgba(0,0,0,.4); border-style: solid; }
.o-kt-kutu.parla { animation: oKtParla .7s; }
.o-kt-kutu.salla { animation: oKtSalla2 .45s; }
.o-kt-kutu.ipucu { animation: oKtIpucu .65s ease-in-out 4; }
.o-kt-kutu.cekil { opacity: 0; transform: translateY(60px) scale(.9); pointer-events: none; }
.o-kt-kutu.buyu { left: 36px; width: 760px; }
@keyframes oKtParla { 40% { box-shadow: 0 0 0 14px rgba(255,236,150,.9), 0 12px 28px rgba(0,0,0,.35); } }
@keyframes oKtSalla2 { 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
@keyframes oKtIpucu { 50% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(255,236,150,.95), 0 0 40px rgba(255,220,90,.9); } }

/* çipler (kutuya düşen kartlar) */
.o-kt-cip { position: relative; width: 258px; min-height: 94px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px;
  border: 4px solid var(--sari); box-shadow: 0 4px 8px rgba(0,0,0,.15); font-size: 21px; font-weight: 700; line-height: 1.15; }
.o-kt-kutu-kanit .o-kt-cip { border-color: var(--turkuaz); }
.o-kt-kutu-tahmin .o-kt-cip { border-color: #b58ad6; }
.o-kt-cip-ikon { font-size: 38px; flex: none; }
.o-kt-cip.yeni { animation: oKtCipGel .4s cubic-bezier(.3,1.7,.5,1); }
@keyframes oKtCipGel { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.o-kt-cip.secilebilir { cursor: pointer; animation: oKtSec 1.6s ease-in-out infinite; }
.o-kt-cip.incelendi { animation: none; background: #f1ece0; }
.o-kt-cip.incelendi > span:not(.o-kt-cip-damga) { opacity: .5; filter: grayscale(.7); }
.o-kt-kutu.buyu .o-kt-cip { width: 350px; font-size: 24px; }
.o-kt-cip-damga { position: absolute; right: 6px; top: -10px; font-size: 44px; font-weight: 800; color: var(--turuncu); text-shadow: 0 2px 0 #fff; }
@keyframes oKtSec { 50% { transform: translateY(-4px); box-shadow: 0 0 0 6px rgba(255,236,150,.8); } }

/* kart */
.o-kt-kart { position: absolute; width: 640px; transform: translate(-50%,-50%); padding: 12px 22px 18px; background: #fffdf6; border-radius: 26px; border: 6px solid var(--kahve);
  box-shadow: 0 16px 34px rgba(0,0,0,.45); cursor: grab; touch-action: none; z-index: 8; }
.o-kt-kart::after { content: ""; position: absolute; left: -30px; top: 50px; border: 16px solid transparent; border-right: 24px solid var(--kahve); }
.o-kt-kart.gel { animation: oKtKartGel .6s cubic-bezier(.3,1.4,.5,1); }
@keyframes oKtKartGel { 0% { transform: translate(-120%,-60%) scale(.15) rotate(-14deg); opacity: 0; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.o-kt-kart.tutuluyor { cursor: grabbing; transform: translate(-50%,-50%) scale(.82) rotate(-3deg); transition: transform .15s; }
.o-kt-kart.don { transition: left .35s cubic-bezier(.3,1.4,.5,1), top .35s cubic-bezier(.3,1.4,.5,1); }
.o-kt-kart.uc { transition: left .4s ease-in, top .4s ease-in, transform .4s ease-in, opacity .4s; transform: translate(-50%,-50%) scale(.42); opacity: .4; }
.o-kt-kart.o-kt-titre { animation: oKtTitre .45s; }
@keyframes oKtTitre { 20%,60% { transform: translate(calc(-50% - 12px),-50%) rotate(-2deg); } 40%,80% { transform: translate(calc(-50% + 12px),-50%) rotate(2deg); } }
.o-kt-kart-no { font-size: 20px; font-weight: 800; color: var(--turuncu); letter-spacing: .5px; }
.o-kt-kart-govde { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.o-kt-kart-ikon { font-size: 78px; line-height: 1; flex: none; }
.o-kt-kart-yazi { font-size: 38px; font-weight: 800; line-height: 1.16; color: var(--koyu); }
.o-kt-damga { position: absolute; right: 18px; bottom: -14px; padding: 2px 18px; font-size: 40px; font-weight: 800; letter-spacing: 2px; border: 6px solid; border-radius: 12px;
  background: rgba(255,255,255,.85); transform: rotate(-12deg); animation: oKtDamga .35s cubic-bezier(.3,1.8,.5,1); }
.o-kt-damga-kanit { color: #2f8a7e; border-color: #2f8a7e; }
.o-kt-damga-tahmin { color: #8a55b5; border-color: #8a55b5; }
@keyframes oKtDamga { 0% { transform: rotate(-12deg) scale(2.4); opacity: 0; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }

/* sürükle el işareti (ilk kart) */
.o-kt-el { position: absolute; left: 790px; top: 230px; font-size: 80px; opacity: 0; pointer-events: none; z-index: 9; filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); }
.o-kt-el.acik { animation: oKtEl 2s ease-in-out infinite; }
@keyframes oKtEl { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: 1; } 70% { opacity: 1; transform: translate(0,170px); } 100% { opacity: 0; transform: translate(0,170px); } }

/* ikinci tur */
.o-kt-hicbiri { position: absolute; left: 860px; top: 470px; width: 360px; height: 170px; border-radius: 34px; border: 6px solid #fff; background: var(--turuncu); color: #fff;
  font-size: 50px; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  box-shadow: 0 9px 0 #a8452a, 0 14px 26px rgba(0,0,0,.35); animation: oKtHicGel .5s cubic-bezier(.3,1.6,.5,1); touch-action: none; z-index: 5; }
.o-kt-hicbiri span:first-child { font-size: 60px; }
.o-kt-hicbiri:active { transform: translateY(4px); box-shadow: 0 4px 0 #a8452a; }
.o-kt-hicbiri.secildi { background: var(--turkuaz); box-shadow: 0 9px 0 #3f8b80, 0 0 0 12px rgba(255,255,255,.6); }
.o-kt-hicbiri.ipucu { animation: oKtIpucu .65s ease-in-out 4; }
@keyframes oKtHicGel { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* özet */
.o-kt-ozet-perde { position: absolute; inset: 0; background: rgba(29,26,43,.6); display: flex; align-items: center; justify-content: center; z-index: 20; animation: oKtSol .3s; }
@keyframes oKtSol { from { opacity: 0; } }
.o-kt-ozet { width: 1080px; text-align: center; animation: oKtKartGel2 .45s cubic-bezier(.3,1.4,.5,1); padding: 22px 30px 26px; }
@keyframes oKtKartGel2 { from { transform: scale(.7); opacity: 0; } }
.o-kt-ozet h2 { font-size: 38px; }
.o-kt-ozet-sutunlar { display: flex; gap: 22px; text-align: left; margin: 8px 0 12px; }
.o-kt-ozet-sutun { flex: 1; border-radius: 20px; padding: 10px 16px 12px; background: #fff; border: 4px solid; }
.o-kt-ozet-kanit { border-color: var(--turkuaz); }
.o-kt-ozet-tahmin { border-color: #b58ad6; }
.o-kt-ozet-bas { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.o-kt-ozet-kanit .o-kt-ozet-bas { color: #2f8a7e; }
.o-kt-ozet-tahmin .o-kt-ozet-bas { color: #8a55b5; }
.o-kt-ozet-satir { font-size: 24px; font-weight: 700; padding: 4px 0; border-top: 2px dashed #eadfc4; }
.o-kt-ozet-sonuc { font-size: 30px; font-weight: 800; color: var(--kahve); background: #fff3c9; border-radius: 18px; padding: 10px 18px; margin: 4px 0 10px; line-height: 1.25; }
.o-kt-yildiz { font-size: 58px; letter-spacing: 8px; margin: 2px 0 12px; }
.o-kt-yildiz span { display: inline-block; animation: oKtYildiz .5s cubic-bezier(.3,1.8,.5,1) both; }
.o-kt-yildiz .bos { opacity: .25; filter: grayscale(1); }
@keyframes oKtYildiz { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
.o-kt-konfeti { position: absolute; top: -20px; width: 14px; height: 22px; border-radius: 3px; animation: oKtDus linear forwards; pointer-events: none; z-index: 30; }
@keyframes oKtDus { to { transform: translateY(780px) rotate(720deg); } }

/* telefon: yazılar büyük (ölçek < 0,62) */
body.kucuk .o-kt-serit { font-size: 32px; }
body.kucuk .o-kt-ubalon, body.kucuk .o-kt-not { font-size: 36px; }
body.kucuk .o-kt-kutu-alt { font-size: 27px; }
body.kucuk .o-kt-cip { font-size: 26px; }
body.kucuk .o-kt-emin-baslik { font-size: 22px; padding-right: 64px; }
body.kucuk .o-kt-ozet-satir { font-size: 29px; }
body.kucuk .o-kt-ozet-sonuc { font-size: 34px; }
body.kucuk .o-kt-ipucu { font-size: 26px; }
