/* Arma Poligonu — web tanıtım sürümü. Sahne kuralları yayın sürümünden (index.html) alınmıştır;
   sayfa düzeni, deneme paneli ve TikTok alan kılavuzu çıkarılmış, sonda web ekleri vardır. */
:root {
  --yazi: #f2f4f6; --soluk: #93a0ad; --amber: #ffb020; --lazer: #ff2d2d; --yesil: #37d67a;
  --panel: rgba(10, 13, 16, .78); --cizgi: rgba(255, 255, 255, .14);
}
/* Sahne 360x640 çizilir, pencereye göre büyütülür (yayında 1080x1920 = 3 kat) */
#kap { position: relative; flex: none; overflow: hidden; }
#sahne { position: absolute; left: 0; top: 0; width: 360px; height: 640px; overflow: hidden;
         background: #0f1418; transform-origin: 0 0; }
#sahne > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.baslik { position: absolute; left: 0; right: 0; top: 78px; text-align: center; z-index: 3; }
.baslik .ad { font-size: 30px; font-weight: 700; letter-spacing: .08em; line-height: 1; }
.baslik .ad span { color: var(--amber); }
.baslik .marka { font-size: 11px; letter-spacing: .32em; color: var(--soluk); margin-top: 5px; text-transform: uppercase; }

.hap { position: absolute; left: 50%; transform: translateX(-50%); top: 78px; z-index: 3; white-space: nowrap;
       max-width: 330px; background: var(--panel); border: 1px solid var(--cizgi); border-radius: 999px;
       padding: 7px 14px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.hap b { color: var(--amber); font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.sn { background: var(--amber); color: #15110a; border-radius: 999px; font-weight: 700; padding: 1px 9px;
      font-size: 13px; min-width: 30px; text-align: center; }
.sn.az { background: var(--lazer); color: #fff; }

.kart { position: absolute; z-index: 3; background: var(--panel); border: 1px solid var(--cizgi); border-radius: 14px; }
.komut { left: 24px; right: 24px; top: 132px; padding: 10px 14px; text-align: center; font-size: 15px; }
.komut kbd { display: inline-block; background: var(--amber); color: #15110a; font: inherit; font-weight: 700;
             border-radius: 7px; padding: 2px 10px; margin: 0 3px; letter-spacing: .06em; }
.gunun { left: 24px; right: 24px; top: 182px; padding: 9px 12px 11px; }
.etiket { font-size: 10px; letter-spacing: .26em; color: var(--soluk); text-transform: uppercase; text-align: center; margin-bottom: 8px; }
.dortlu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 8px; justify-items: center; }
.dortlu img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.adimlar { left: 24px; right: 24px; top: 352px; padding: 8px 10px; font-size: 12px; text-align: center; white-space: nowrap; }
.adimlar i { font-style: normal; color: var(--amber); font-weight: 700; margin: 0 5px; }

.ipucu { position: absolute; z-index: 3; left: 0; right: 0; top: 116px; text-align: center; font-size: 14px; color: var(--soluk); }
.ipucu b { color: var(--yazi); }
.izgara4 { position: absolute; z-index: 3; left: 16px; right: 16px; top: 148px; display: grid;
           grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.secenek { position: relative; background: var(--panel); border: 1px solid var(--cizgi); border-radius: 14px;
           height: 104px; display: flex; align-items: center; justify-content: center; }
.secenek img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .65)); }
.secenek .no { position: absolute; left: -5px; top: -7px; width: 26px; height: 26px; border-radius: 50%;
               background: var(--amber); color: #15110a; font-weight: 700; font-size: 16px;
               display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }

/* Seçilen armanın poligonun dibine gidişi */
#ucan { position: absolute; z-index: 5; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .65));
        transition: left 1.6s cubic-bezier(.5, 0, .3, 1), top 1.6s cubic-bezier(.5, 0, .3, 1),
                    width 1.6s cubic-bezier(.5, 0, .3, 1), height 1.6s cubic-bezier(.5, 0, .3, 1); }

.durbun { position: absolute; z-index: 3; left: 6px; top: 136px; width: 176px; height: 176px; border-radius: 50%;
          transform: scale(1.125); transform-origin: 0 0;   /* 198 px: iç ölçüler aynı kalır */
          overflow: hidden; background: #262f38; border: 3px solid #05070a;
          box-shadow: 0 0 0 2px #3a444e, 0 10px 24px rgba(0, 0, 0, .6); }
.durbun .tel { position: absolute; left: 0; right: 0; height: 2px; background: #aab4be; }
.durbun .klips { position: absolute; width: 14px; height: 18px; border-radius: 3px;
                 background: var(--amber); box-shadow: 0 0 0 1px #6b4a05; }
.durbun img { position: absolute; width: 150px; height: 150px; object-fit: contain; }
.durbun img.dusuyor { transition: transform .9s cubic-bezier(.5, 0, .9, .6); transform: scale(2.1); }
.durbun .kareler { position: absolute; inset: 22px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.durbun .kareler span { border: 1px solid rgba(255, 255, 255, .4); font-size: 15px; font-weight: 700;
                        padding: 1px 4px; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.durbun .kareler span.sec { background: rgba(255, 176, 32, .28); border-color: var(--amber); }
.nokta { position: absolute; width: 12px; height: 12px; border-radius: 50%; margin: -6px 0 0 -6px;
         background: var(--lazer); box-shadow: 0 0 8px 4px rgba(255, 45, 45, .65), 0 0 0 1px #fff3; }
.delik { position: absolute; width: 10px; height: 10px; border-radius: 50%; margin: -5px 0 0 -5px;
         background: #05070a; box-shadow: 0 0 0 2px rgba(5, 7, 10, .45), 0 0 0 4px rgba(255, 255, 255, .12); }
.parla { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.parla.var { animation: parla .28s ease-out; }
@keyframes parla { 0% { opacity: .75; } 100% { opacity: 0; } }

.yan { left: 208px; right: 16px; padding: 10px 12px; }
.ruzgar { top: 138px; }
.ruzgar .ok { font-size: 26px; font-weight: 700; color: #6cbcff; line-height: 1.1; }
.ruzgar .ne { font-size: 13px; }
.ruzgar .rsat { display: flex; align-items: center; gap: 9px; }
.ruzgar .rsat svg { flex: none; width: 46px; height: 46px; overflow: visible; }
.ruzgar.durgun .ok { color: var(--soluk); }
/* Dürbünün içinden geçen esinti çizgileri: kap rüzgarın yönüne döndürülür */
.esinti { position: absolute; inset: 0; pointer-events: none; }
.esinti svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.esinti path { fill: none; stroke: url(#esintiRenk); stroke-width: 1.5; stroke-linejoin: round; }
.atis { top: 240px; font-size: 13px; line-height: 1.45; }
.atis b { color: var(--amber); font-size: 20px; display: block; letter-spacing: .04em; }
.tahmin { position: absolute; z-index: 3; left: 0; right: 0; top: 114px; font-size: 12px; color: var(--soluk); text-align: center; }
.tahmin b { color: var(--yazi); }

.sonuc { position: absolute; z-index: 4; left: 0; right: 0; top: 96px; text-align: center; }
.sonuc .kim { font-size: 18px; padding: 0 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sonuc .kim b { color: var(--amber); }
.sonuc .yuzde { font-size: 104px; font-weight: 700; line-height: .95; color: var(--yesil);
                text-shadow: 0 6px 0 #0c3b22, 0 12px 26px rgba(0, 0, 0, .6); letter-spacing: -.02em;
                animation: buyu .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes buyu { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.sonuc .soz { font-size: 26px; font-weight: 700; letter-spacing: .14em; }
.sonuc .mesaj { display: inline-block; margin-top: 12px; background: var(--panel); border: 1px solid var(--cizgi);
                border-radius: 999px; padding: 7px 16px; font-size: 14px; }
.sonuc.iska .yuzde { color: #c9d1d9; font-size: 84px; text-shadow: 0 6px 0 #1b2229, 0 12px 26px rgba(0, 0, 0, .6); letter-spacing: .06em; }

.konfeti { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.konfeti i { position: absolute; top: -20px; width: 7px; height: 12px; border-radius: 1px;
             animation: yag linear forwards; }
@keyframes yag { to { transform: translateY(700px) rotate(720deg); } }

.sirada { position: absolute; z-index: 3; right: 8px; top: 414px; width: 92px; font-size: 11px; color: var(--soluk);
          background: var(--panel); border: 1px solid var(--cizgi); border-radius: 10px; padding: 7px 8px; line-height: 1.5; }
.sirada b { color: var(--yazi); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sirada em { font-style: normal; letter-spacing: .2em; font-size: 9px; color: var(--amber); display: block; }
.sirada .son { border-top: 1px solid var(--cizgi); margin-top: 5px; padding-top: 4px; font-size: 10px; }
.sirada.yeni { border-color: var(--amber); }

#tufek.tepme { animation: tepme .32s ease-out; }
@keyframes tepme { 0% { transform: translateY(0); } 25% { transform: translateY(12px); } 100% { transform: translateY(0); } }
#namluAtes.var { animation: namluAtes .22s ease-out; }
@keyframes namluAtes { 0% { opacity: .95; } 100% { opacity: 0; } }
#uzakArma.dusuyor { transform-box: fill-box; transform-origin: center; animation: dus .8s cubic-bezier(.6, 0, 1, .6) forwards; }
@keyframes dus { to { transform: translateY(64px) rotate(72deg); } }

/* ================= Web ekleri ================= */
/* Sahne sayfanın içinde durur: yazı tipi ve satır yüksekliği sayfadan değil yayın sürümünden gelir */
#sahne { font-family: Bahnschrift, "Segoe UI", Arial, sans-serif; color: var(--yazi); line-height: normal;
         -webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#sahne img { max-width: none; }

/* Ziyaretçinin dokunabildiği yerler */
#sahne[data-asama="bekleme"] .komut { cursor: pointer; }
#sahne .ben { display: none; }
#sahne.benim .ben { display: inline; }
#sahne.benim .yayin { display: none; }
#sahne.benim .atis b.ben { display: block; }
#sahne.benim[data-asama="secim"] .secenek { cursor: pointer; border-color: rgba(255, 176, 32, .7); animation: cagri 1.4s ease-in-out infinite; }
#sahne.benim[data-asama="secim"] .secenek:active { transform: scale(.96); }
#sahne.benim[data-asama="nisan"] .kareler span { cursor: pointer; }
#sahne.benim[data-asama="nisan"] .kareler span:hover,
#sahne.benim[data-asama="nisan"] .kareler span:active { background: rgba(255, 176, 32, .22); border-color: var(--amber); }
#sahne.benim[data-asama="nisan"] .durbun { box-shadow: 0 0 0 2px var(--amber), 0 0 18px rgba(255, 176, 32, .45), 0 10px 24px rgba(0, 0, 0, .6); }

/* Oyun bloğu: sahne ve altındaki dokunma çubuğu */
.oy-oyun { background: #05070a; }
.oy-oyun #kap { margin: 0 auto; }
.oy-cubuk { position: sticky; bottom: 0; z-index: 6; background: #10151a; border-top: 1px solid rgba(255, 255, 255, .14);
            padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); color: #f2f4f6; }
.oy-durum { font-size: .86rem; line-height: 1.35; color: #c3ccd5; min-height: 2.7em; }
.oy-durum b { color: #ffb020; font-weight: 700; }
.oy-dugmeler { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.oy-dugmeler button { font: inherit; font-weight: 700; min-height: 48px; border-radius: 10px; cursor: pointer;
                      border: 1px solid rgba(255, 255, 255, .18); background: #1b2229; color: #f2f4f6; padding: 0 14px; }
.oy-dugmeler button:focus-visible { outline: 3px solid #6cbcff; outline-offset: 2px; }
.oy-dugmeler .oy-ana { flex: 1; background: #ffb020; color: #15110a; border-color: #ffd98a; font-size: 1rem; }
.oy-dugmeler .oy-ana:disabled { background: #2a323a; color: #93a0ad; border-color: rgba(255, 255, 255, .14); cursor: default; }
.oy-sec { flex: 1; display: flex; gap: 8px; }
.oy-sec button { flex: 1; background: #ffb020; color: #15110a; border-color: #ffd98a; font-size: 1.15rem; }
.oy-dugmeler .oy-ses { flex: none; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.oy-dugmeler .oy-ses[aria-pressed="true"] { border-color: rgba(55, 214, 122, .6); color: #37d67a; }
