/* Dedektif Kerem mini oyunu: labirent (sahne 8). Bütün sınıflar .o-lb- önekli; renkler oyun/stil.css değişkenlerinden. */
.o-lb { position: absolute; inset: 0; font-family: "Bricolage", "Segoe UI", system-ui, sans-serif; color: var(--koyu); }
.o-lb-karart { position: absolute; inset: 0; background: rgba(29,26,43,.42); pointer-events: none; }
.o-lb-tahta { position: absolute; inset: 0; touch-action: none; cursor: pointer; }
.o-lb-svg { position: absolute; inset: 0; width: 1280px; height: 720px; pointer-events: none; }
.o-lb-kenar { stroke: rgba(60,35,20,.45); stroke-width: 70; stroke-linecap: round; }
.o-lb-yol { stroke: rgba(255,246,220,.6); stroke-width: 58; stroke-linecap: round; }
.o-lb-dugum { fill: rgba(255,246,220,.6); }

.o-lb-hucre { position: absolute; transform: translate(-50%,-50%); pointer-events: none; }
.o-lb-kirinti { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(var(--don)); filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); transition: transform .35s, opacity .35s, filter .3s; }
.o-lb-hucre.yakin .o-lb-kirinti { filter: drop-shadow(0 0 6px #fff6c2) drop-shadow(0 0 14px rgba(255,214,90,.95)); }
.o-lb-hucre.yakin1 .o-lb-kirinti:not(.tasiniyor) { animation: oLbParla 1s ease-in-out infinite; }
.o-lb-hucre.yakin::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,170,.55), rgba(255,240,170,0) 70%); }
@keyframes oLbParla { 50% { transform: translate(-50%,-50%) rotate(var(--don)) scale(1.18); } }
.o-lb-hucre.toplandi .o-lb-kirinti { opacity: 0; transform: translate(-50%,-50%) rotate(var(--don)) scale(.2); }
.o-lb-hucre.toplandi::after { display: none; }
/* karınca yolu: kırıntılar kıpırdar (karıncalar taşıyor); yakından karıncalar görünür */
.o-lb-kirinti.tasiniyor { animation: oLbTasi 2.2s ease-in-out infinite; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)) saturate(.8) brightness(.92); }
@keyframes oLbTasi { 0%,100% { transform: translate(-58%,-50%) rotate(var(--don)); } 50% { transform: translate(-42%,-46%) rotate(calc(var(--don) + 14deg)); } }
.o-lb-karinca { position: absolute; left: calc(26% + var(--k) * 18%); top: 58%; font-size: 13px; opacity: .55; animation: oLbKarinca 2.1s linear infinite; filter: brightness(.3); }
@keyframes oLbKarinca { 0% { transform: translate(-14px, 4px) rotate(90deg); } 50% { transform: translate(14px,-4px) rotate(90deg); } 100% { transform: translate(-14px, 4px) rotate(90deg); } }
.o-lb-hucre.acildi .o-lb-karinca { font-size: 26px; opacity: 1; filter: none; }
.o-lb-hucre.acildi .o-lb-kirinti.tasiniyor { filter: drop-shadow(0 0 0 #000) brightness(.85); }
/* düğme yolu */
.o-lb-dugme { position: absolute; width: 30%; height: 30%; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle at 35% 30%, #fff, var(--renk) 55%, rgba(0,0,0,.25));
  box-shadow: 0 2px 2px rgba(0,0,0,.35); }
.o-lb-dugme::after { content: ""; position: absolute; inset: 30%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6b5a4a 18%, transparent 20%), radial-gradient(circle at 70% 30%, #6b5a4a 18%, transparent 20%),
              radial-gradient(circle at 30% 70%, #6b5a4a 18%, transparent 20%), radial-gradient(circle at 70% 70%, #6b5a4a 18%, transparent 20%); opacity: .7; }
.o-lb-hucre.acildi .o-lb-dugme { width: 40%; height: 40%; box-shadow: 0 0 0 3px #fff, 0 3px 4px rgba(0,0,0,.4); }
.o-lb-surpriz { position: absolute; transform: translate(-50%,-50%) scale(.3); font-size: 44px; opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.3,1.7,.5,1); pointer-events: none; white-space: nowrap;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.o-lb-surpriz.gorunur { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.o-lb-surpriz.hop { animation: oLbHop .6s ease-out 2; }
@keyframes oLbHop { 40% { transform: translate(-50%,-70%) scale(1.3); } }

/* koltuk */
.o-lb-koltuk { position: absolute; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; border: 6px solid #fff; background-color: #eadcf0; background-size: 150% auto; background-position: 50% 50%; background-repeat: no-repeat;
  box-shadow: 0 0 0 6px var(--sari), 0 10px 22px rgba(0,0,0,.45); animation: oLbKoltuk 1.8s ease-in-out infinite; pointer-events: none; }
.o-lb-koltuk-yazi { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); padding: 2px 14px; border-radius: 14px; background: var(--turuncu); color: #fff; border: 3px solid #fff; font-size: 22px; font-weight: 800; white-space: nowrap; }
@keyframes oLbKoltuk { 50% { box-shadow: 0 0 0 12px rgba(242,180,42,.75), 0 10px 22px rgba(0,0,0,.45); } }
.o-lb-koltuk.vardi { animation: oLbVardi .5s ease-in-out 3; }
@keyframes oLbVardi { 25% { transform: rotate(-8deg) scale(1.1); } 75% { transform: rotate(8deg) scale(1.1); } }

/* rozet */
.o-lb-rozet { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; transition: left .1s linear, top .1s linear; pointer-events: none; z-index: 5; }
.o-lb-rozet-yuz { position: absolute; inset: 0; border-radius: 50%; border: 6px solid var(--sari); background-color: #bfe6f4; background-size: 128% auto; background-position: 44% 5%;
  box-shadow: 0 0 0 4px #fff, 0 8px 16px rgba(0,0,0,.45); }
.o-lb-rozet-yildiz { position: absolute; right: -8px; bottom: -6px; width: 38px; height: 38px; border-radius: 50%; background: var(--turuncu); color: #fff; font-size: 24px; line-height: 34px; text-align: center; border: 3px solid #fff; }
.o-lb-rozet.ilk .o-lb-rozet-yuz { animation: oLbIlk 1.2s ease-in-out infinite; }
@keyframes oLbIlk { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 16px rgba(255,236,150,.7), 0 8px 16px rgba(0,0,0,.45); transform: scale(1.08); } }
.o-lb-rozet.tutuluyor .o-lb-rozet-yuz { transform: scale(1.1); box-shadow: 0 0 0 4px #fff, 0 0 26px 8px rgba(255,236,150,.8), 0 10px 18px rgba(0,0,0,.45); }
.o-lb-rozet.carp .o-lb-rozet-yuz { animation: oLbCarp .32s ease-out; }
@keyframes oLbCarp { 35% { transform: translate(var(--dx), var(--dy)) scale(.88,1.08); } 100% { transform: translate(0,0); } }
.o-lb-rozet.vardi { transition: left .4s, top .4s, transform .5s; transform: scale(1.35); }

/* üst şerit, sayaç, ipucu */
.o-lb-serit { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); max-width: 820px; padding: 7px 22px; background: #fff; border: 4px solid var(--sari); border-radius: 22px;
  font-size: 26px; font-weight: 800; color: var(--kahve); text-align: center; white-space: nowrap; box-shadow: 0 8px 18px rgba(0,0,0,.25); pointer-events: none; }
.o-lb-sayac { position: absolute; right: 18px; top: 8px; height: 60px; padding: 0 16px 0 8px; display: flex; align-items: center; gap: 6px; border-radius: 30px; background: rgba(43,36,64,.9);
  border: 3px solid var(--sari); color: #fff; font-size: 28px; font-weight: 800; pointer-events: none; }
.o-lb-sayac img { width: 44px; }
.o-lb-sayac.zipla { animation: oLbSayac .35s; }
@keyframes oLbSayac { 50% { transform: scale(1.15); } }
.o-lb-ipucu { position: absolute; left: 14px; top: 4px; width: 130px; height: 70px; padding: 0; border-radius: 22px; border: 4px solid #fff; background: var(--sari);
  box-shadow: 0 6px 0 #c98a14, 0 10px 18px rgba(0,0,0,.3); display: flex; align-items: center; gap: 4px; padding-left: 6px; touch-action: none; z-index: 6; }
.o-lb-ipucu:active { transform: translateY(3px); box-shadow: 0 3px 0 #c98a14; }
.o-lb-ipucu-ekran { width: 82px; height: 52px; border-radius: 14px; background: radial-gradient(ellipse at 40% 30%, #2d3f63, #141c33); overflow: hidden; border: 3px solid #e8eef4; }
.o-lb-ipucu-ekran img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 4px rgba(126,204,237,.9)); }
.o-lb-ipucu-yazi { font-size: 30px; }
.o-lb-ipucu.nabiz { animation: oLbNabiz 1.1s ease-in-out infinite; }
@keyframes oLbNabiz { 50% { transform: scale(1.1); box-shadow: 0 6px 0 #c98a14, 0 0 0 10px rgba(255,236,150,.7); } }
.o-lb-ok { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 6px solid #fff; background: rgba(242,180,42,.65); pointer-events: none;
  animation: oLbOk 1.1s ease-in-out 3 both; z-index: 4; }
@keyframes oLbOk { 0% { transform: scale(.3); opacity: 0; } 40% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }

/* balon */
.o-lb-balon { position: absolute; left: 50%; bottom: 14px; width: 900px; margin-left: -450px; 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: 8; opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .3s; pointer-events: none; }
.o-lb-balon.ustte { bottom: auto; top: 84px; }
.o-lb-balon.acik { opacity: 1; transform: none; }
.o-lb-balon b { display: inline-block; margin-right: 12px; padding: 1px 12px; border-radius: 12px; font-size: 22px; vertical-align: 3px; background: var(--turuncu); color: #fff; }
.o-lb-balon b.k-ufyo { background: #3a3f63; color: #c5f0ff; }

/* bitiş */
.o-lb-yildiz { position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); font-size: 96px; letter-spacing: 10px; z-index: 9; pointer-events: none; white-space: nowrap; }
.o-lb-yildiz span { display: inline-block; animation: oLbYildiz .5s cubic-bezier(.3,1.8,.5,1) both; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.o-lb-yildiz .bos { opacity: .3; filter: grayscale(1); }
@keyframes oLbYildiz { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
.o-lb-konfeti { position: absolute; width: 12px; height: 18px; border-radius: 3px; pointer-events: none; z-index: 9; animation: oLbPatla 1.4s ease-out forwards; }
@keyframes oLbPatla { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 40% { transform: translate(var(--x), -160px) rotate(300deg); } 100% { transform: translate(var(--x), 260px) rotate(720deg); opacity: 0; } }

/* telefon (ölçek < 0,62) */
body.kucuk .o-lb-serit { font-size: 32px; }
body.kucuk .o-lb-balon { font-size: 36px; }
body.kucuk .o-lb-sayac { font-size: 34px; }
body.kucuk .o-lb-koltuk-yazi { font-size: 26px; }
