:root { --koyu: #16251f; --panel: #182c25ee; --krem: #f3ecd6; --soluk: #bcc6ad; --altin: #e0be6a; --cizgi: #7a8a6e66; }
* { box-sizing: border-box; }
/* Faz 61: kaydırma çubukları oyunun renginde: ince, koyu yeşil oluk, altın tutamak */
* { scrollbar-width: thin; scrollbar-color: #e0be6a80 #0b161166; }
*:hover { scrollbar-color: #e0be6acc #0b161199; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0b161166; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #e0be6a80; border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #e0be6acc; background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--koyu); color: var(--krem); font: 14px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; }
button, input { font: inherit; }
button, .dugme { cursor: pointer; color: var(--krem); border: 1px solid var(--cizgi); border-radius: 4px; background: #22362c; padding: 10px 15px; text-decoration: none; text-align: center; transition: background .15s, border-color .15s; }
button:hover, .dugme:hover { background: #33493a; border-color: #c7b776; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--altin); outline-offset: 2px; }
.birincil { background: var(--altin); color: #1f2a20; border-color: #f0d590; font-weight: 800; letter-spacing: 1.4px; font-size: 12px; padding: 15px 20px; }
.birincil:hover { background: #ecd08f; }
button:disabled, button:disabled:hover { opacity: .45; cursor: not-allowed; background: #22362c; color: var(--soluk); border-color: var(--cizgi); }
.birincil span { float: right; margin-left: 22px; }
.cizgili { background: #182b22cc; border-color: #98a58285; }
.duzey { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--krem); padding: 2px 4px; }
.duzey input { flex: 0 0 55%; accent-color: #e6c25a; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 5px; border: 1px solid #ffffff40; border-bottom-width: 2px; border-radius: 4px; font: 600 11px/1.6 inherit; text-align: center; background: #ffffff12; margin: 0 1px; }
[hidden] { display: none !important; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; color: var(--altin); margin: 0 0 8px; }

#app { position: fixed; inset: 0; }
#sahne { position: absolute; inset: 0; }
#sahne canvas { display: block; width: 100%; height: 100%; }

#ust { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; pointer-events: none; gap: 16px; }
#ust > * { pointer-events: auto; }
.marka b { display: block; font: 800 20px/1 Georgia, serif; letter-spacing: 5px; color: var(--altin); text-shadow: 0 2px 6px #0007; }
.marka small { display: block; margin-top: 6px; font-size: 11px; color: var(--krem); text-shadow: 0 1px 4px #000a; }
#toptools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.arac { background: #16291fe0; border: 1px solid var(--cizgi); border-radius: 4px; padding: 7px 12px; font-size: 12px; color: var(--krem); text-decoration: none; cursor: pointer; }
.arac:hover { background: #2c4134; border-color: #c7b776; }

.marka #cuzdan { display: inline-block; margin-top: 7px; background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 12px; padding: 2px 10px; font-size: 12px; }
.marka #iyilik { display: inline-block; margin: 7px 0 0 6px; background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 12px; padding: 2px 10px; font-size: 12px; }
.marka #iyilik b { display: inline; font: 700 12px/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-shadow: none; color: #9fd68a; }
.marka #gunsaat { display: inline-block; margin: 7px 0 0 6px; background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 12px; padding: 2px 10px; font-size: 12px; }
.marka #gunsaat b { display: inline; font: 700 12px/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-shadow: none; color: #ffd86b; }
/* Giriş ekranında rozetler (ju, iyilik, saat, unvan) başlığın üstüne binmesin: yalnız dünyadayken. */
body:has(#giris:not([hidden])) .marka > span { display: none !important; } body:has(#giris:not([hidden])) :is(#istem, #dunya-boss) { display: none !important; } /* lobide dünya ipuçları yok */
.marka #gunsaat.gece { background: #1b1f3ad9; border-color: #7f8cff; }
.marka #gunsaat.gece b { color: #b9c2ff; }
.marka #unvan { display: inline-block; margin: 7px 0 0 6px; background: #5c3e0ce0; border: 1px solid #c9a24a; border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 800; color: #ffd86b; }
.adetler { display: flex; gap: 4px; margin-top: 6px; }
.adetler button { padding: 3px 7px; font-size: 11px; }
#cubuk div em { width: 26px; height: 26px; border-radius: 3px; box-shadow: inset 0 -5px 0 #0003, inset 0 0 0 1px #0004; }
#cubuk div small { position: absolute; right: 3px; bottom: 1px; font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.marka #cuzdan b { display: inline; font: 700 12px/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-shadow: none; color: var(--altin); }
.secim button.kilitli { opacity: .75; border-style: dashed; }
.secim button.kilitli.onay { opacity: 1; border-style: solid; border-color: var(--altin); color: var(--altin); }
.secim .renk.kilitli { position: relative; opacity: .55; }
.secim .renk.kilitli::after { content: '◉' attr(data-fiyat); position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%); font-size: 9px; color: var(--soluk); white-space: nowrap; }
.secim .renk.onay { opacity: 1; outline: 2px dashed var(--altin); outline-offset: 2px; }
.secim .renk.onay::after { content: 'Al ◉' attr(data-fiyat); color: var(--altin); font-weight: 700; }
.secim:has(.renk.kilitli) { padding-bottom: 12px; row-gap: 16px; }
.secenek-not { margin: -2px 0 6px; font-size: 12px; color: var(--soluk); }
#dukkan .ic { max-width: none; }
/* Mağaza, pazar ve lüks mağaza geniş (tıkış tıkış olmasın). */
dialog#dukkan, dialog#borsa, dialog#luks { width: min(1180px, 96vw); max-width: min(1180px, 96vw); }
#luks-icerik .borsa-kat { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
#luks-icerik .borsa-kat button { padding: 6px 14px; font-size: 13px; }
#luks-icerik .borsa-kat button.secili { background: var(--altin); color: #16251f; }
#borsa-icerik .borsa-kat, #basimevi-icerik .borsa-kat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
#borsa-icerik .borsa-kat button, #basimevi-icerik .borsa-kat button { padding: 6px 14px; font-size: 13px; }
#borsa-icerik .borsa-kat button.secili, #basimevi-icerik .borsa-kat button.secili { background: var(--altin); color: #16251f; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik) .izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin: 0 0 18px; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik) .kart { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px; border: 1px solid var(--cizgi); border-radius: 6px; background: #0f1c16; text-align: center; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik) .kart.var { border-color: #e0be6a80; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik) .kart i { width: 38px; height: 38px; display: grid; place-items: center; font-style: normal; font-size: 28px; border-radius: 5px; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik) .kart i.blok { box-shadow: inset 0 -7px 0 #0003, inset 0 0 0 1px #0005; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik) .kart small { color: var(--soluk); }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik) .kart button { width: 100%; padding: 7px 8px; margin-top: 4px; font-size: 11px; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik) .kart button.birincil span { display: none; }
#luks-icerik .izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0 0 16px; }
#luks-icerik .kart { border: 1px solid var(--cizgi); border-radius: 8px; padding: 10px; background: #0f1c16; display: flex; flex-direction: column; gap: 4px; }
#luks-icerik .kart b { font-size: 14px; }
#luks-icerik .kart small { color: var(--soluk); }
#luks-icerik .kart .kademe { font-weight: 800; font-size: 11px; letter-spacing: .08em; }
#borsa-icerik .borsa { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
#borsa-icerik .borsa-ust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
#borsa-icerik .borsa-ust .borsa-kat { margin: 0; }
#borsa-icerik .borsa-sirala { width: 100%; margin: 0 0 6px; padding: 5px 8px; font: inherit; font-size: 13px; background: #0b1611; color: var(--krem); border: 1px solid var(--cizgi); border-radius: 6px; }
#borsa-icerik .borsa-turler { display: flex; flex-direction: column; gap: 3px; max-height: 58vh; overflow: auto; }
#borsa-icerik .borsa-turler button { display: flex; justify-content: space-between; gap: 8px; text-align: left; padding: 6px 10px; font-size: 13px; }
#borsa-icerik .borsa-turler button small { color: var(--soluk); white-space: nowrap; }
#borsa-icerik .borsa-baslik { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
#borsa-icerik .borsa-baslik h3 { margin: 0; font-size: 22px; }
#borsa-icerik .borsa-baslik small { color: var(--soluk); }
#borsa-icerik td.bos { color: var(--soluk); text-align: center; }
#borsa-icerik .borsa-turler button.secili { background: #2f4a3c; border-color: #98a58285; }
#borsa-icerik td button { padding: 3px 10px; font-size: 12px; }
@media (max-width: 640px) { #borsa-icerik .borsa { grid-template-columns: 1fr; } }
.lonca-ust { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.lonca-ust i { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.lonca-ust h2 { margin: 0; }
.lonca-sayilar { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0 0 14px; }
.lonca-ilerle { margin: 4px 0 14px; }
.lonca-ilerle div { height: 8px; border: 1px solid var(--cizgi); border-radius: 4px; background: #0f1c16; overflow: hidden; }
.lonca-ilerle span { display: block; height: 100%; background: var(--altin); }
.lonca-ilerle small { color: var(--soluk); font-size: 12px; }
.lonca-bagis { display: flex; gap: 6px; flex-wrap: wrap; }
.lonca-bagis input { flex: 1 1 140px; min-width: 0; }
.lonca-sayilar div { border: 1px solid var(--cizgi); border-radius: 6px; padding: 10px; background: #0f1c16; text-align: center; }
.lonca-sayilar b { display: block; font-size: 20px; color: var(--altin); }
.lonca-sayilar small { color: var(--soluk); font-size: 12px; }
.lonca-satir .acik { color: #7ddc6a; } .lonca-satir .dusman { color: #ff8a6a; font-weight: 700; } .lonca-satir .mut { color: #7fd6ff; font-weight: 700; }
#lonca-ara { width: 100%; margin: 0 0 10px; background: #0f1c16; border: 1px solid var(--cizgi); border-radius: 4px; color: var(--krem); padding: 9px 12px; }
@media (max-width: 720px) { .lonca-sayilar { grid-template-columns: repeat(2, 1fr); } }
.lonca-satir { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--cizgi); border-radius: 6px; margin: 0 0 6px; background: #0f1c16; }
.lonca-satir i { width: 18px; height: 18px; border-radius: 4px; }
.lonca-satir small { color: var(--soluk); flex: 1; }
.lonca-satir.secili { background: #22392e; }
.lonca-satir button { padding: 5px 12px; font-size: 12px; }
#nisangah { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; z-index: 3; }
#nisangah::before, #nisangah::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 2px #000; }
#nisangah::before { left: 8px; top: 0; width: 2px; height: 18px; }
#nisangah::after { top: 8px; left: 0; width: 18px; height: 2px; }

#hud { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.kutucuk { background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 6px; padding: 8px 12px; }
#sol-sutun { position: absolute; left: 20px; top: 92px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
#yer { font-size: 12px; max-width: 260px; pointer-events: auto; }
#yer b { color: var(--altin); }
#mini { position: absolute; right: 20px; top: 62px; width: 160px; height: 160px; border-radius: 50%; box-shadow: 0 4px 14px #0006; }
#istem { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); background: #16251ff0; border: 1px solid var(--altin); border-radius: 6px; padding: 10px 16px; font-size: 14px; white-space: normal; width: max-content; max-width: min(900px, calc(100vw - 32px)); text-align: center; line-height: 1.45; } /* uzun istem ekrana sığar, alt satıra geçer */
#istem small { color: var(--soluk); margin-left: 8px; }
/* Faz 58: gece haydut bölgesine girince ekranın üst ortasında uyarı */
#gece-uyari { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: min(560px, calc(100vw - 32px)); padding: 12px 20px; border: 1px solid #ff8a7a; border-radius: 6px; background: #2a1014f2; color: #ffe2dc; text-align: center; font-size: 14px; line-height: 1.45; pointer-events: none; box-shadow: 0 6px 18px #0008; }
#gece-uyari[hidden] { display: none; }
/* Dünya bossu: en üstte, oyun şeritleriyle (maç skoru, Tetik, Kara Nal, Kutu Hisar, Akın Var) aynı görünüşte tek satır: ad · can çubuğu · süre, altında ilk üç oyuncu.
   Yeri main.js bossYer'den gelir: bir oyunun şeridi açıksa hemen onun altına yapışır; yoksa üstte, sol haplarla sağ düğmelerin arasındaki boşlukta durur. */
#dunya-boss { position: absolute; left: var(--boss-sol, 50%); top: var(--boss-ust, 14px); transform: translateX(-50%); z-index: 4; width: var(--boss-en, min(440px, calc(100vw - 32px))); display: grid; grid-template-columns: auto minmax(50px, 1fr) auto; align-items: center; gap: 4px 10px; padding: 6px 14px; border: 1px solid var(--cizgi); border-radius: 6px; background: #16251fe6; color: var(--krem); font-size: 13px; pointer-events: none; }
#dunya-boss[hidden] { display: none !important; }
#dunya-boss .db-ust { display: contents; }
#dunya-boss .db-ad { order: 1; color: #8fd2ff; letter-spacing: .04em; white-space: nowrap; }
#dunya-boss .db-sure { order: 3; font-variant-numeric: tabular-nums; color: var(--soluk); }
#dunya-boss .db-cubuk { order: 2; position: relative; height: 16px; border: 1px solid #0c0e13; border-radius: 3px; background: #5a1a14; overflow: hidden; }
#dunya-boss .db-dolgu { height: 100%; background: linear-gradient(#58dc58, #2fae3a); transition: width .5s linear; }
#dunya-boss .db-yuzde { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; line-height: 1; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
#dunya-boss .db-sira { order: 4; grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; font-size: 12px; }
#dunya-boss .db-kisi { white-space: nowrap; color: #f4eedb; }
#dunya-boss .db-kisi:first-child { color: #ffd76a; font-weight: 700; }
#dunya-boss .db-kisi.ben { text-decoration: underline; }
#dunya-boss .db-bos { color: var(--soluk); }
#dunya-boss:not([hidden]):not(.bekle) ~ #gece-uyari { top: max(92px, calc(var(--boss-alt, 70px) + 10px)); }
body:has(#dunya-boss:not([hidden])) #ust-bildirim { top: calc(var(--boss-alt, 40px) + 8px); } /* bildirim çubuğun üstüne binmesin */
/* Boss geri sayımı (dev meydanda değilken): aynı yerde küçük, silik hap; son 5 dakikada belirginleşir. Maçta görünmez. */
#dunya-boss.bekle { display: flex; width: max-content; padding: 3px 12px; border-radius: 12px; background: #16251fb8; font-size: 12px; opacity: .78; }
#dunya-boss.bekle .db-cubuk, #dunya-boss.bekle .db-sira, #dunya-boss.bekle .db-dev { display: none; }
/* T86: iki dünya devi: üstte ortak ad ve süre, altında her devin satırı (adı, can çubuğu, hasar sıralaması) */
#dunya-boss:not(.bekle) .db-ust { display: flex; grid-column: 1 / -1; justify-content: space-between; gap: 12px; }
#dunya-boss .db-dev { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(50px, 1fr); align-items: center; gap: 2px 8px; }
#dunya-boss .db-dev[hidden] { display: none; }
#dunya-boss .db-dev .db-sira { grid-column: 1 / -1; }
#dunya-boss .db-dad { font-size: 12px; white-space: nowrap; color: #8fd2ff; }
#dunya-boss .db-dev[data-dev="1"] .db-dad { color: #ff9a4a; }
#dunya-boss:not(.bekle) .db-ad { color: #ffd76a; }
#dunya-boss.bekle.yakin { opacity: 1; border-color: #8fd2ff; background: #16251fe6; }
#dunya-boss.bekle.yakin .db-sure { color: #ffd76a; font-weight: 700; }
body:is(.macta, .tetikte, .karanalda, :has(#skor:not([hidden]), #hisar-ui:not([hidden]), #akin-hud:not([hidden]), #kale:not([hidden]))) #dunya-boss.bekle { display: none; }
@media (max-width: 720px) { #dunya-boss { padding: 5px 9px; font-size: 12px; } #dunya-boss .db-sira { font-size: 11px; gap: 2px 10px; } }
#gece-uyari > b:first-child { display: block; color: #ff8a7a; font-size: 17px; letter-spacing: .08em; }
#gece-uyari.yeni { animation: geceUyariYeni .9s ease; }
/* 2026-11-21: gorevYeni transform'u ortalayan translateX(-50%)'yi siliyordu: şerit önce sağda açılıp ortaya kayıyordu. */
@keyframes geceUyariYeni { 0% { transform: translateX(-50%) scale(.9); } 40% { transform: translateX(-50%) scale(1.04); } 100% { transform: translateX(-50%); } }
@media (max-width: 720px) { #gece-uyari { top: 320px; font-size: 13px; padding: 10px 14px; } }
/* Yeni sürüm uyarısı: gece uyarısı gibi üstte, ama kalıcı (sayfa yenilenene dek); tıklanınca yeniler. */
#surum-uyari { position: absolute; left: 50%; top: 160px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: min(560px, calc(100vw - 32px)); padding: 12px 20px; border: 1px solid #e8c547; border-radius: 6px; background: #241d0cf2; color: #fff2cc; text-align: center; font-size: 14px; line-height: 1.45; cursor: pointer; box-shadow: 0 6px 18px #0008; }
#surum-uyari[hidden] { display: none; }
#surum-uyari b { display: block; color: #e8c547; font-size: 17px; letter-spacing: .08em; }
#surum-uyari.yeni { animation: gorevYeni .9s ease; }
@media (max-width: 720px) { #surum-uyari { top: 390px; font-size: 13px; padding: 10px 14px; } }
#skor { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: #16251fe6; border: 1px solid var(--cizgi); border-radius: 6px; padding: 6px 16px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; align-items: baseline; max-width: 92vw; }
#skor span { font: 800 20px/1 "Segoe UI", system-ui; }
#skor small { color: var(--soluk); }
#skor em { flex-basis: 100%; text-align: center; font-style: normal; color: var(--altin); font-size: 12px; }
/* 2026-11-22: ortak ölüm ekranıyla aynı görünüm (src/olum-ekrani.js): kararan ekran, DÜŞTÜN, büyük geri sayım. */
#olum { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, #1a0404aa 0%, #1a0404dd 70%, #0a0101ee 100%); z-index: 5; pointer-events: auto; animation: olOrtakGir .6s ease-out both; }
#olum > div { max-width: min(560px, calc(100vw - 32px)); text-align: center; color: #f3e6d6; text-shadow: 0 2px 10px #000c; }
#olum .ol-k { display: block; font: 800 13px/1 system-ui, sans-serif; letter-spacing: .4em; color: #ff5a4e; margin-bottom: 10px; }
#olum h2 { margin: 0; font: 700 clamp(22px, 3.4vw, 34px)/1.2 system-ui, sans-serif; }
#olum .ol-sayac { font: 800 clamp(56px, 9vw, 96px)/1.1 system-ui, sans-serif; margin: 10px 0 4px; color: #fff; font-variant-numeric: tabular-nums; }
#olum .ol-sayac:empty { display: none; }
#olum p { color: #e8d6c4; margin: 10px 0 16px; text-shadow: 0 1px 6px #000c; }
@keyframes olOrtakGir { from { opacity: 0; } to { opacity: 1; } }
.olum-secim { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#kale { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; text-align: center; font-size: 13px; pointer-events: auto; max-width: 92vw; } /* yalnız cephedeyken, Yakar Gol tabelası gibi üst ortada */
#parti-kutu { width: 220px; font-size: 12px; pointer-events: none; }
#parti-kutu .eyebrow { margin: 0 0 6px; }
#parti-kutu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#parti-kutu li span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d8ffd8; font-weight: 700; }
#parti-kutu li small { color: #9fb8a8; font-weight: 400; }
/* Üye satırında can ve XP: etiket · çubuk · sayı. Can azaldıkça sarı, sonra kırmızı; XP altın. */
#parti-kutu .pc { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; margin-top: 3px; }
#parti-kutu .pc em { font-style: normal; font-size: 10px; color: #9fb8a8; }
#parti-kutu .pc small { font-size: 10px; color: #c9d8cd; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
#parti-kutu li i { display: block; height: 5px; background: #0b1611; border-radius: 3px; overflow: hidden; }
#parti-kutu li i b { display: block; height: 100%; background: #5fe07a; border-radius: 3px; transition: width .4s; }
#parti-kutu li i.orta b { background: #e8c547; }
#parti-kutu li i.dusuk b { background: #e0563f; }
#parti-kutu li i.xp b { background: #d9b34a; }
#parti-kutu li.olu span, #parti-kutu li.yok span { color: #8a958e; }
#parti-kutu li.olu i.can b { background: #c8453a; }
#parti-kutu .davet { margin: 6px 0 0; color: #ffd86b; }
.parti-liste { display: grid; gap: 6px; margin: 0 0 14px; }
.parti-uye { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--cizgi); border-radius: 6px; background: #0b1611; }
.parti-uye b { white-space: nowrap; }
.parti-uye small { flex: 1; color: #9fb8a8; }
.parti-uye span { display: flex; gap: 6px; }
.parti-uye.yok { opacity: .6; }
.arkadas-ekle { display: flex; gap: 8px; margin: 0 0 14px; }
.arkadas-ekle input { flex: 1; min-width: 0; background: #0f1c16; border: 1px solid var(--cizgi); border-radius: 4px; color: var(--krem); padding: 9px 12px; }
#arkadas-icerik .parti-uye { flex-wrap: wrap; }
#arkadas-icerik .parti-uye span { flex-wrap: wrap; }
#arkadas-icerik .davet-bas { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--cizgi); color: #ffd23f; }
.davet-yazi { margin: 0 0 10px; line-height: 1.5; }
.davet-yazi b { color: var(--krem); }
.hedef-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin: 0 0 12px; }
.hedef-liste button { text-align: left; padding: 8px 10px; }
.hedef-liste button b { color: #ffd23f; }
#gorev .hedef-dugme { margin-top: 5px; width: 100%; padding: 6px 8px; font-size: 12px; pointer-events: auto; }
.parti-uye .tehlike, #parti-ayril { color: #ff9c8a; border-color: #c8453a; }
#kale b { color: var(--altin); }
#kale .kirmizi { color: #ff8a6a; font-weight: 700; }
#suc { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: #5a1612e6; border: 1px solid #ff7a5c; border-radius: 6px; padding: 6px 14px; font-size: 13px; white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
#suc b { color: #ffb59c; letter-spacing: .08em; margin-right: 6px; }
.marka #iyilik.kotu b { color: #ff8a6a; }
#ilerleme { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); width: 90px; height: 9px; box-shadow: 0 2px 6px #0008; background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 4px; overflow: hidden; }
#ilerleme i { display: block; height: 100%; width: 0; background: var(--altin); }
#atil-bek { position: absolute; left: 50%; top: calc(50% + 24px); transform: translateX(-50%); width: 46px; height: 4px; background: #16251fd9; border-radius: 3px; overflow: hidden; pointer-events: none; }
#atil-bek i { display: block; height: 100%; width: 0; background: #ffffffb0; }
/* Faz 97: ışınlanma hazırlığı (geri sayım + çubuk) */
#isinlanma { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); z-index: 3; width: max-content; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px 12px; border: 1px solid var(--altin); border-radius: 6px; background: #16251ff2; color: #e9e4d4; text-align: center; font-size: 13px; line-height: 1.45; pointer-events: none; box-shadow: 0 6px 18px #0008; }
#isinlanma[hidden] { display: none; }
#isinlanma b { display: block; color: var(--altin); font-size: 16px; margin-bottom: 2px; }
#isinlanma i { display: block; height: 6px; margin-top: 8px; background: #0006; border-radius: 3px; overflow: hidden; }
#isinlanma u { display: block; height: 100%; background: var(--altin); }
body.tetikte #isinlanma { display: none !important; }
/* Faz 77: cephede kale bayrağı çubuğu ve maç sonu afişi */
#bayrak-al { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); width: min(320px, 80vw); text-align: center; pointer-events: none; }
#bayrak-al b { display: block; font-size: 13px; color: var(--krem); text-shadow: 0 1px 3px #000c; margin-bottom: 4px; }
#bayrak-al div { height: 12px; background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 6px #0008; }
#bayrak-al i { display: block; height: 100%; width: 0; transition: width .3s linear; }
#cephe-afis { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); z-index: 7; text-align: center; pointer-events: none; padding: 14px 30px; border-radius: 10px; background: #16251fe6; border: 2px solid var(--cizgi); box-shadow: 0 6px 24px #000a; max-width: calc(100vw - 32px); }
#cephe-afis b { display: block; font-size: 38px; letter-spacing: 2px; color: var(--krem); }
#cephe-afis span { display: block; font-size: 15px; color: var(--soluk); margin-top: 4px; }
#cephe-afis.zafer { border-color: var(--altin); } #cephe-afis.zafer b { color: var(--altin); }
#cephe-afis.yenilgi b { color: #ff8a6a; }
#cephe-afis.mavi { border-color: #3d8bd6; } #cephe-afis.mavi b { color: #6fb2f0; }
#cephe-afis.kirmizi { border-color: #d8483a; } #cephe-afis.kirmizi b { color: #ff8a6a; }
#cubuk { display: flex; gap: 4px; padding: 4px; background: #16251fcc; border: 1px solid var(--cizgi); border-radius: 6px; }
#cubuk div { position: relative; width: 44px; height: 44px; border-radius: 4px; border: 2px solid transparent; display: grid; place-items: center; }
#cubuk div i { font-style: normal; font-size: 22px; }
#cubuk div span { position: absolute; left: 3px; top: 0; font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px #000; }
#cubuk div b { position: absolute; right: 4px; bottom: 4px; width: 7px; height: 7px; border-radius: 50%; }
#cubuk div.secili { border-color: var(--altin); background: #ffffff1a; }
#cubuk div.yapi { margin-left: 6px; border-color: #e0be6a55; background: #e0be6a14; }
#ipucu { position: absolute; left: 20px; bottom: 12px; font-size: 11px; color: var(--krem); background: #16251fc4; border-radius: 4px; padding: 3px 9px; }
#ipucu .ipucu-btn { pointer-events: auto; font: inherit; color: var(--altin); background: none; border: 0; padding: 0; cursor: pointer; }
#ipucu .ipucu-btn:hover { text-decoration: underline; }
#sozler { position: absolute; left: 20px; bottom: 44px; font-size: 13px; pointer-events: auto; }
#sozler div { padding: 3px 0; }
#tikla { pointer-events: auto; cursor: pointer; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #16251fe6; border: 1px solid var(--altin); border-radius: 6px; padding: 14px 22px; font-weight: 600; }

/* 2026-11-20 (Yusuf): giriş ekranı lobi düzeninde. Arkada src/lobi.js'in kaide sahnesi; solda karakterler, sağda arkadaşlar + hesap, sağ altta Gir. */
#giris { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
#giris .lobi-panel { position: absolute; top: 76px; max-height: calc(100vh - 76px - 160px); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; pointer-events: auto;
  background: linear-gradient(180deg, #16271fe8, #0f1a16d9); border: 1px solid var(--cizgi); border-radius: 10px; padding: 16px 18px; backdrop-filter: blur(6px); }
/* Sol sütun: hoş geldin + karakterler kartı, altında Hesap kartı (Yusuf: sağ taraf sıkışıyordu). */
#giris .lobi-solsutun { position: absolute; top: 76px; left: max(20px, 2.5vw); width: 340px; max-height: calc(100vh - 76px - 24px); display: flex; flex-direction: column; gap: 10px; }
#giris .lobi-solsutun .lobi-panel { position: static; max-height: none; }
#giris .lobi-sol { min-height: 0; flex: 0 1 auto; overflow-y: auto; scrollbar-width: thin; } #giris .lobi-hesap { flex: none; gap: 8px; padding: 13px 18px; }
#giris .lobi-sag { right: max(20px, 2.5vw); width: 300px; }
#giris .lobi-sol h1 { font-size: clamp(26px, 2.2vw, 34px); margin: 0 0 2px; }
#giris .eyebrow { margin: 0; }
.lobi-baslik { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--altin); }
.lobi-baslik small { font-weight: 400; letter-spacing: .4px; text-transform: none; color: var(--soluk); font-size: 12px; }
.lobi-not { font-size: 12.5px; line-height: 1.45; color: var(--soluk); margin: 0; }
.lobi-not b { color: var(--krem); font-weight: 600; }
.lobi-kaydir { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b99a4c transparent; padding: 6px 6px 6px 0; margin-right: -6px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(180deg, transparent 0, #000 8px, #000 calc(100% - 16px), transparent); }
.lobi-kaydir::-webkit-scrollbar { width: 6px; } .lobi-kaydir::-webkit-scrollbar-thumb { background: #b99a4c; border-radius: 3px; }
.lobi-kartlar { display: flex; flex-direction: column; gap: 7px; max-height: 236px; }
.lobi-kart { display: grid; grid-template-columns: 36px 1fr; gap: 2px 11px; align-items: center; text-align: left; width: 100%; background: #0b1411; border: 1px solid var(--cizgi); border-radius: 8px; padding: 9px 11px; color: var(--krem); font-size: 14px; cursor: pointer; flex: none; }
.lobi-kart:hover { border-color: #b99a4c; }
.lobi-kart.secili { border-color: var(--altin); background: #1d2e24; }
.lobi-kart .lobi-rozet { grid-row: span 2; width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #0008; }
.lobi-kart b { font-weight: 600; display: flex; gap: 7px; align-items: baseline; min-width: 0; flex-wrap: wrap; }
.lobi-kart b em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--soluk); white-space: nowrap; }
.lobi-kart small { font-size: 12px; color: var(--soluk); display: flex; gap: 8px; flex-wrap: wrap; }
.lobi-kart.bos { border-style: dashed; color: var(--soluk); }
.lobi-kart.bos .lobi-rozet { border: 1px dashed var(--cizgi); color: var(--altin); text-shadow: none; }
.lobi-kart:disabled { opacity: .55; cursor: not-allowed; }
.lobi-iyi { color: #9fd9a0; } .lobi-kotu { color: #ff7a6b; }
.lobi-bilgi { border-top: 1px solid var(--cizgi); padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
#lobi-duzen { display: flex; flex-direction: column; gap: 8px; } #lobi-duzen[hidden] { display: none; }
#lobi-duzen .satir { grid-template-columns: 64px 1fr; margin: 0; }
#lobi-duzen #secenekler .satir { grid-template-columns: 1fr; }
#lobi-duzen .secenek-not { font-size: 12px; color: var(--soluk); margin: 0; line-height: 1.45; }
#lobi-duzen #rastgele { align-self: flex-start; } #lobi-duzen.yalniz-ad #secenekler, #lobi-duzen.yalniz-ad #rastgele { display: none; }
.lobi-form { display: flex; flex-direction: column; gap: 9px; }
.lobi-geri { background: none; border: 0; color: var(--soluk); padding: 0; cursor: pointer; text-align: left; font-size: 13px; }
.lobi-geri:hover { color: var(--krem); }
.lobi-hata { color: #ff7a6b; font-size: 12.5px; margin: 0; min-height: 1em; }
.lobi-form .birincil.tehlike { background: #c8453a; color: #fff8e6; } .lobi-form .birincil.tehlike:disabled { opacity: .45; } ul.lobi-not { padding-left: 18px; } /* T58: karakter silme onayı */
#lobi-arkadaslar { display: flex; flex-direction: column; gap: 9px; max-height: 330px; min-height: 40px; }
.lobi-grup { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--soluk); padding-top: 2px; }
.lobi-ark { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.lobi-ark small { display: block; color: var(--soluk); font-size: 12px; }
.lobi-ark .sv { font-size: 12px; color: var(--soluk); font-variant-numeric: tabular-nums; }
.lobi-nokta { width: 8px; height: 8px; border-radius: 50%; background: #4a5a50; } .lobi-nokta.acik { background: #9fd9a0; } .lobi-nokta.is { background: #f0b35a; }
#lobi-ara { background: #0b1411; border: 1px solid var(--cizgi); border-radius: 6px; color: var(--krem); padding: 7px 10px; font-size: 13.5px; }
.lobi-davet { display: flex; gap: 6px; } .lobi-davet input { flex: 1; min-width: 0; background: #0b1411; border: 1px solid var(--cizgi); border-radius: 6px; color: var(--krem); padding: 7px 9px; font: 12px ui-monospace, Consolas, monospace; }
#lobi-davet { display: flex; flex-direction: column; gap: 6px; } #lobi-davet[hidden] { display: none; }
#google-alan { display: flex; flex-direction: column; gap: 8px; } #google-alan[hidden] { display: none; }
#google-alan .durum-yazi { margin: 0; }
.lobi-baglar { display: flex; gap: 14px; flex-wrap: wrap; }
.baglanti { background: none; border: 0; padding: 0; color: var(--soluk); text-decoration: underline; cursor: pointer; font-size: 12.5px; }
.baglanti:hover { color: var(--krem); }
#giris .yasal { margin: 0; font-size: 12px; }
.lobi-tabela { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); text-align: center; pointer-events: none; white-space: nowrap; padding: 8px 22px 9px; border-radius: 10px; background: #0f1a16b8; backdrop-filter: blur(4px); }
.lobi-tabela small { display: block; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--altin); }
.lobi-tabela b { font: 400 26px Georgia, serif; }
.lobi-tabela > span { display: block; font-size: 13px; color: var(--soluk); margin-top: 2px; }
.lobi-gir { position: absolute; right: max(20px, 2.5vw); bottom: 22px; width: 360px; display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.lobi-gir #gir { padding: 16px; font-size: 19px; letter-spacing: 4px; border-radius: 8px; box-shadow: 0 10px 30px #e0be6a33; }
/* Portal girişi (docs/portal-girisi.md): ?portal= ile gelen lobiyi görmez; ortada tek düğme (OYNA · oyunun adı). */
#giris.portal-modu > :not(.lobi-gir), #giris.portal-modu #lobi-dogus { display: none; }
#giris.portal-modu .lobi-gir { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: min(360px, calc(100vw - 32px)); }
.lobi-gir #gir small { display: block; font-size: 11.5px; letter-spacing: .6px; font-weight: 500; opacity: .75; margin-top: 3px; }
.lobi-gir #giris-durum { margin: 0; color: var(--krem); background: #0f1a16b8; padding: 6px 10px; border-radius: 6px; } .lobi-gir #giris-durum:empty { display: none; }
.lobi-dogus { display: flex; background: #0f1a16e0; border: 1px solid var(--cizgi); border-radius: 8px; overflow: hidden; }
.lobi-dogus button { flex: 1; background: none; border: 0; border-radius: 0; color: var(--soluk); padding: 8px 10px; font-size: 12.5px; font-weight: 600; text-align: left; line-height: 1.3; }
.lobi-dogus button small { display: block; font-weight: 400; font-size: 11.5px; opacity: .85; }
.lobi-dogus button.secili { background: #1d2e24; color: var(--altin); }
.lobi-dogus button.kotu.secili { background: #2a1c1a; color: #ff7a6b; }
.lobi-dogus button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 720px) and (min-height: 561px) {
  /* Lobi telefonda: üstte karakter, altında karakterler, Gir, arkadaşlar alt alta (bölüm kayar). */
  #giris { overflow-y: auto; pointer-events: auto; padding: 44vh 14px 16px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(0deg, #13241cf5 0%, #15281fe0 60%, transparent 72%); }
  #giris .lobi-panel, .lobi-gir { position: static; width: auto; max-height: none; flex: none; } #giris .lobi-solsutun { display: contents; }
  .lobi-gir { order: 2; } #giris .lobi-sol { order: 1; overflow: visible; } #giris .lobi-sag { order: 3; } #giris .lobi-hesap { order: 4; }
  .lobi-tabela { top: 6.5vh; }
}
/* Alçak ekran (yatay telefon, küçük pencere): başlık yok, iki dar sütun kenarlarda, karakter ortada, Gir sağ altta. */
@media (max-height: 560px) {
  #giris .lobi-panel { top: max(8px, env(safe-area-inset-top)); padding: 10px 12px; gap: 7px; border-radius: 8px; }
  #giris .lobi-solsutun { top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); width: 250px; max-height: calc(100vh - 16px); gap: 6px; }
  #giris .lobi-sag { right: max(8px, env(safe-area-inset-right)); width: 230px; max-height: calc(100vh - 16px - 118px); overflow-y: auto; scrollbar-width: thin; }
  #giris .lobi-sol .eyebrow, #giris .lobi-sol h1, .cevir, .lobi-gir #giris-durum { display: none; }
  .lobi-kartlar { max-height: 150px; } .lobi-kart { padding: 6px 8px; font-size: 13px; grid-template-columns: 28px 1fr; } .lobi-kart .lobi-rozet { width: 28px; height: 28px; }
  #lobi-arkadaslar { max-height: 150px; } #giris .lobi-hesap { padding: 8px 12px; gap: 6px; } .lobi-not { font-size: 11.5px; }
  .lobi-gir { right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: 230px; gap: 6px; }
  .lobi-gir #gir { padding: 10px; font-size: 15px; letter-spacing: 2px; } .lobi-dogus button { padding: 5px 7px; font-size: 11.5px; }
  .lobi-tabela { top: 6px; } .lobi-tabela b { font-size: 18px; } .lobi-tabela span { font-size: 11px; }
  body:has(#giris:not([hidden])) :is(.marka, .giris-link) { display: none; } /* paneller kenarlara dayanır; logo ve bağlantı üstlerine biniyordu */
}
h1 { font: 400 clamp(34px, 3.4vw, 52px)/1.08 Georgia, serif; margin: 6px 0 12px; letter-spacing: -1px; }
h1 em { color: var(--altin); }
.aciklama { color: #d1d6c0; margin: 0 0 12px; }
.satir { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; margin: 0 0 7px; }
.satir > span { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--soluk); text-transform: uppercase; }
.satir input { background: #0f1c16; border: 1px solid var(--cizgi); border-radius: 4px; color: var(--krem); padding: 9px 12px; width: 100%; }
.secim { display: flex; flex-wrap: wrap; gap: 5px; }
.secim button { padding: 5px 10px; font-size: 12px; }
.secim button.secili { background: var(--altin); color: #1f2a20; border-color: var(--altin); font-weight: 700; }
.secim .renk { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid #0005; }
.secim .renk.secili { outline: 2px solid var(--altin); outline-offset: 2px; background-clip: padding-box; }
/* 2026-11-19: serbest renk seçici (gökkuşağı halka, içinde renk girdisi) ve kılık yuvası adı */
.secim .renk.serbest { position: relative; display: inline-grid; place-items: center; cursor: pointer; background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); }
.secim .renk.serbest input { width: 14px; height: 14px; padding: 0; border: 2px solid #fff; border-radius: 50%; cursor: pointer; background: none; }
.secim .renk.serbest input::-webkit-color-swatch-wrapper { padding: 0; } .secim .renk.serbest input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.secim .renk.serbest::after { content: '◉' attr(data-fiyat); position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%); font-size: 9px; color: var(--altin); white-space: nowrap; }
.secim:has(.renk.serbest) { padding-bottom: 12px; row-gap: 16px; }
.secim .kilik-ad { width: 9em; padding: 4px 6px; }
.dugmeler { display: flex; gap: 10px; margin-top: 12px; }
.dugmeler .birincil { flex: 1; }
.durum-yazi { font-size: 12px; color: var(--soluk); margin: 12px 0 0; }
.cevir { position: absolute; left: 50%; transform: translateX(-50%); bottom: 34px; font-size: 12px; color: var(--krem); background: #0f1a16a6; padding: 4px 12px; border-radius: 12px; }

dialog { background: var(--panel); color: var(--krem); border: 1px solid var(--cizgi); border-radius: 8px; padding: 0; max-width: min(640px, 92vw); box-shadow: 0 20px 60px #000a; }
dialog::backdrop { background: #0b130f99; backdrop-filter: blur(2px); }
/* Faz 32: pencereler sürüklenir (başlıktan); menü, harita, onay dışındakiler oyunu durdurmaz. */
dialog:not(#harita) { position: fixed; inset: 0; margin: auto; max-height: calc(100vh - 24px); overflow: auto; }
dialog:not(:modal) { z-index: 40; }
dialog h2, dialog .ic > .eyebrow:first-child, dialog .lonca-ust { cursor: move; }
dialog.surukleniyor { user-select: none; opacity: .93; }
#hedef-ad { position: absolute; left: 50%; top: calc(50% + 16px); transform: translateX(-50%); pointer-events: none; z-index: 3; font: 600 12px/1.3 "Segoe UI", system-ui, sans-serif; color: #fff8e6; background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 4px; padding: 3px 9px; white-space: nowrap; }
#hedef-ad small { color: #b9c2a8; margin-left: 6px; }
#hedef-ad kbd { margin-left: 6px; }
#nisangah.hedefte::before, #nisangah.hedefte::after { background: #ffd23f; }
/* 2026-11-16: zindanda Tetik Meydanı'nın nişangâhı (tüfek): dört çizgi ateş ettikçe açılır, ortada kırmızı nokta */
#nisangah .tk-arti { display: none; position: absolute; left: 9px; top: 9px; width: 0; height: 0; }
body.zindan-tufek #nisangah::before, body.zindan-tufek #nisangah::after { display: none; }
body.zindan-tufek #nisangah .tk-arti { display: block; }
#nisangah .tk-arti i { position: absolute; background: #f6f0dc; box-shadow: 0 0 2px #000c; transition: transform .05s; }
#nisangah .tk-arti i:nth-child(1), #nisangah .tk-arti i:nth-child(2) { width: 2px; height: 8px; left: -1px; } #nisangah .tk-arti i:nth-child(3), #nisangah .tk-arti i:nth-child(4) { width: 8px; height: 2px; top: -1px; }
#nisangah .tk-arti b { position: absolute; width: 3px; height: 3px; left: -1.5px; top: -1.5px; background: #c7442f; border-radius: 50%; }
#nisangah.hedefte .tk-arti i { background: #ffd23f; }
dialog .ic { padding: 26px 28px; position: relative; }
dialog .ic.dar { width: min(420px, 90vw); }
dialog#harita { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; background: #1c241f; overflow: hidden; }
.harita-ust { position: absolute; left: 16px; top: 12px; pointer-events: none; background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 6px; padding: 8px 12px; font-size: 12px; color: var(--krem); }
.harita-ust .eyebrow { margin: 0 0 3px; }
.harita-sag { position: absolute; right: 16px; top: 12px; display: flex; gap: 8px; align-items: center; }
.harita-sag .kapat { position: static; background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 6px; }
.harita-alt { position: absolute; left: 16px; right: 16px; bottom: 12px; width: fit-content; margin: 0; pointer-events: none; background: #16251fd9; border: 1px solid var(--cizgi); border-radius: 6px; padding: 6px 12px; font-size: 12px; color: var(--krem); }
.harita-alt i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: -1px; }
.harita-alt i:first-child { margin-left: 0; }
dialog .ic.genis { width: auto; padding: 20px; }
dialog h2 { font: 400 28px Georgia, serif; margin: 0 0 12px; }
dialog ul { padding-left: 18px; margin: 0 0 18px; }
dialog li { margin: 0 0 9px; color: #dfe3d2; }
.yigin { display: flex; flex-direction: column; gap: 8px; }
.kapat { position: absolute; right: 14px; top: 12px; background: transparent; border: 0; font-size: 22px; padding: 2px 8px; }
#buyuk { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#buyuk.suruk { cursor: grabbing; }

#bildirim { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 6; background: #16251ff0; border: 1px solid var(--cizgi); border-radius: 6px; padding: 9px 16px; font-size: 13px; pointer-events: none; }
#yukleniyor { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--koyu); }
#yukleniyor b { font: 800 34px Georgia, serif; letter-spacing: 8px; color: var(--altin); }
#yukleniyor span { color: var(--soluk); }
#hata { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--koyu); text-align: center; padding: 20px; }

@media (max-width: 720px) {
  #ust { padding: 10px 12px; }
  .arac { padding: 6px 9px; }
  .cevir { display: none; }
  #mini { width: 110px; height: 110px; }
}

/* Görünüm penceresi: solda dönen önizleme, sağda seçenekler, altta toplam ve onay. */
.marka #cuzdan { cursor: pointer; }
.marka #cuzdan:hover { border-color: var(--altin); }
dialog#gorunum { width: min(1320px, 96vw); max-width: min(1320px, 96vw); }
#gorunum .ic { max-width: none; }
.gorunum-govde { display: flex; gap: 18px; align-items: flex-start; }
#gorunum-onizleme { flex: none; width: 300px; height: 420px; border: 1px solid var(--cizgi); border-radius: 6px; background: radial-gradient(#2b3d33, #142019); }
#gorunum-secenekler { flex: 1; max-height: 72vh; overflow-y: auto; padding: 2px 6px 10px 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; }
@media (max-width: 1000px) { #gorunum-secenekler { grid-template-columns: 1fr; } }
.gorunum-alt { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
#gorunum-toplam { margin: 0 auto 0 0; font-size: 14px; }
#gorunum-sekmeler { flex-wrap: wrap; margin-bottom: 12px; }
#gorunum-sekmeler button { padding: 6px 14px; position: relative; }
#gorunum-sekmeler button.bekler::after { content: ""; position: absolute; right: 4px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ffd86b; border: 1px solid #16251f; }
#gorunum-secenekler { grid-template-columns: 1fr !important; }
#gorunum-toplam b { color: var(--altin); }
@media (max-width: 640px) { .gorunum-govde { flex-direction: column; align-items: center; } #gorunum-onizleme { width: 160px; height: 210px; } }

/* Dükkân kategorileri */
.sekmeler { margin: 4px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--cizgi); }
.sekmeler button { padding: 7px 14px; font-size: 13px; }
#dukkan-liste > .eyebrow { letter-spacing: .4px; text-transform: none; font-size: 12px; color: var(--soluk); font-weight: 400; }
#cubuk-ad { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); margin: 0; font-size: 12.5px; color: #f4eedb; background: #12201ae6; border: 1px solid #ffffff1f; border-radius: 6px; padding: 3px 10px; white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; pointer-events: none; }
#cubuk-ad:empty { display: none; }
#cubuk-ad b { color: var(--altin); }
#cubuk div u { position: absolute; left: 4px; bottom: 2px; height: 3px; border-radius: 2px; text-decoration: none; }
:is(#dukkan-liste) .kart small.etki { color: #9fd68a; font-size: 11px; }

/* Sohbet ve bildirim kutusu (sol alt): C ile açılır; kapalıyken yalnız son sistem mesajları kısa süre görünür. */
#sohbet { position: absolute; left: 20px; bottom: 44px; width: min(420px, 72vw); z-index: 5; font-size: 13px; pointer-events: none; border: 1px solid transparent; border-radius: 6px; }
#sohbet.acik { background: #0e1814b0; border-color: #ffffff22; pointer-events: auto; backdrop-filter: blur(2px); }
#sohbet .sohbet-ust, #sohbet .sohbet-alt { display: none; }
#sohbet.acik .sohbet-ust { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid #ffffff1a; }
#sohbet.acik .sohbet-alt { display: block; margin: 0; padding: 4px 10px 6px; font-size: 11px; color: var(--soluk); }
.sohbet-ust button { padding: 4px 12px; font-size: 12px; border-radius: 4px 4px 0 0; background: transparent; border: 0; color: var(--soluk); }
.sohbet-ust button.secili { background: #ffffff1c; color: var(--altin); font-weight: 700; }
#sohbet-kapat { margin-left: auto; font-size: 16px !important; }
#sohbet-liste { list-style: none; margin: 0; padding: 6px 10px; display: flex; flex-direction: column; gap: 3px; }
#sohbet.acik #sohbet-liste { height: 30vh; overflow-y: auto; }
#sohbet-liste li { color: var(--krem); text-shadow: 0 1px 3px #000d; line-height: 1.35; transition: opacity .6s; }
#sohbet:not(.acik) #sohbet-liste li { background: #0e1814a0; border-radius: 4px; padding: 3px 8px; width: fit-content; max-width: 100%; }
#sohbet-liste li small { color: var(--soluk); margin-right: 6px; font-size: 10px; }
#sohbet-liste li b { color: var(--altin); }
#sohbet-liste li.sistem { color: #dfe8d6; }
#sohbet-liste li.sonuk { opacity: 0; }
/* Ganimet satırı: altın, kalın, solunda altın çizgi (av özeti satırları arasında seçilsin). */
#sohbet-liste li.ganimet { color: var(--altin); font-weight: 700; border-left: 3px solid var(--altin); padding-left: 6px; background: #e0be6a1f; }
#sohbet:not(.acik) #sohbet-liste li.ganimet { background: #2a2210d0; }
.sohbet-ust button:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--altin); }
.sohbet-ust button:focus { outline: none; }

/* Yakar Gol maçında Juland göstergeleri çekilir: el çubuğu, eşya yazısı, can, alt ipucu. */
body.macta #alt-cubuk, body.macta #cubuk-ad, body.macta #ipucu { display: none; }

/* Şarjlı vuruş dolumu: nişangahın çevresinde halka (Yakar Gol dolum halkası gibi), altında dalga sayısı; tam dolunca atar. */
/* Faz 16: takım çubuğu ve heybe / donanım penceresi */
#cubuk div.takim { width: 64px; display: flex; align-items: center; justify-content: center; gap: 1px; }
#cubuk div.takim i.sol { font-size: 15px; opacity: .9; }
dialog#heybe { width: min(1240px, 96vw); max-width: min(1240px, 96vw); }
#heybe .ic { max-width: none; }
.envanter { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.envanter .eyebrow { margin: 0 0 8px; }
.beden { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px 14px; justify-content: center; padding: 14px 0 16px; margin: 0 0 14px; border: 1px solid var(--cizgi); border-radius: 8px; background: radial-gradient(ellipse at 50% 45%, #2a3d33 0, #0f1c16 70%); }
.yuva, .hucre { position: relative; display: grid; place-items: center; border-radius: 6px; user-select: none; }
.yuva { width: 64px; height: 64px; border: 1px solid #e0be6a55; background: #0b1611d9; cursor: pointer; box-shadow: inset 0 0 12px #0008; }
.yuva i { font-style: normal; font-size: 28px; line-height: 1; }
.yuva i.bos { opacity: .18; filter: grayscale(1); }
.yuva small { position: absolute; left: 0; right: 0; bottom: -15px; text-align: center; font-size: 10px; color: var(--soluk); white-space: nowrap; }
.yuva.dolu { border-color: #e0be6acc; }
.yuva.uygun { border-color: #7fdc8a; box-shadow: 0 0 0 2px #7fdc8a66, inset 0 0 12px #0008; }
:is(.yuva, .hucre) b { position: absolute; right: 4px; top: 4px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px #0006; }
.hucre sup.yedek, .yuva sup.yedek { position: absolute; left: 4px; top: 2px; font-size: 11px; font-weight: 800; color: #ffd86b; text-shadow: 0 1px 2px #000; }
#google-alan { margin: 14px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
#google-alan .durum-yazi { margin: 0; }
#onay .birincil.tehlike { background: #c8453a; color: #fff8e6; }
.cop-izgara { display: grid; grid-template-columns: repeat(auto-fill, 52px); gap: 5px; justify-content: start; }
.cop-izgara .hucre { width: 52px; height: 52px; border: 1px solid #c8453a88; background: #2a1512; cursor: pointer; }
.cop-dugme { margin: 0 0 16px; }
.cop { margin: 14px 0 10px; padding: 12px; border: 1px dashed #c8453a99; border-radius: 8px; color: #e9a59a; font-size: 13px; text-align: center; }
.cop.ustunde { background: #c8453a33; border-color: #ff7a5c; }
:is(.yuva, .hucre) u { position: absolute; left: 4px; bottom: 3px; height: 3px; border-radius: 2px; max-width: calc(100% - 8px); }
.takimlar { display: flex; flex-direction: column; gap: 6px; }
.takim-satir { display: grid; grid-template-columns: 28px 46px 46px 1fr; gap: 6px; align-items: center; padding: 4px; border: 1px solid transparent; border-radius: 6px; }
.takim-satir.aktif { background: #ffffff14; }
.takim-satir button { width: 28px; height: 28px; padding: 0; border-radius: 50%; font-weight: 700; }
.takim-satir .yuva { width: 46px; height: 46px; }
.takim-satir .yuva i { font-size: 21px; }
.takim-satir .yuva small { display: none; }
.takim-satir em { font-style: normal; font-size: 12px; color: var(--krem); line-height: 1.25; }
.heybe-kat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.heybe-kat button { padding: 5px 12px; font-size: 13px; }
.heybe-kat button.secili { background: var(--altin); color: #16251f; }
.heybe-kat .esya-sira { margin-left: auto; padding: 5px 8px; font: inherit; font-size: 13px; background: #0b1611; color: var(--krem); border: 1px solid var(--cizgi); border-radius: 6px; }
.heybe-izgara, .heybe-bloklar { display: grid; grid-template-columns: repeat(auto-fill, 52px); gap: 5px; margin: 0 0 16px; padding: 8px; border: 1px solid var(--cizgi); border-radius: 8px; background: #0b1611; min-height: 60px; }
.hucre { width: 52px; height: 52px; border: 1px solid #ffffff14; background: #13221b; }
.hucre.dolu { border-color: #e0be6a80; cursor: grab; }
.hucre span.yeni { position: absolute; left: 50%; top: -7px; transform: translateX(-50%); padding: 0 4px; border-radius: 3px; background: #e0463a; color: #fff; font-size: 9px; font-weight: 800; line-height: 13px; letter-spacing: .04em; pointer-events: none; }
.hucre.dolu:hover, .yuva.dolu:hover { background: #22352b; }
.aura-yuva.dolu { border-color: #c79bff; box-shadow: 0 0 14px #b07cff55, inset 0 0 12px #0008; }
.hucre.takili { outline: 2px solid #c79bff; outline-offset: -2px; background: #2a2140; }
.hucre i { font-style: normal; font-size: 25px; line-height: 1; }
.hucre em { width: 26px; height: 26px; border-radius: 3px; box-shadow: inset 0 -5px 0 #0003, inset 0 0 0 1px #0004; }
.hucre small { position: absolute; right: 4px; bottom: 2px; font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px #000; }
@media (max-width: 760px) { .envanter { grid-template-columns: 1fr; } }

/* Kontroller rehberi: geniş, sekmeli, kısa kartlar. */
dialog#yardim { width: min(1760px, 97vw); max-width: min(1760px, 97vw); }
.ysekmeler a.ywiki { display: inline-flex; align-items: center; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--altin); border: 1px solid var(--altin); border-radius: 4px; text-decoration: none; background: #22362c; } .ysekmeler a.ywiki:hover { background: var(--altin); color: #16251f; }
.ysekmeler { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ysekmeler button { padding: 7px 14px; font-size: 13px; }
.ysekmeler button.secili { background: var(--altin); color: #16251f; }
.ykartlar { columns: 340px; column-gap: 10px; margin: 0 0 6px; } /* sütunlu akış: kart boyu yazısı kadar, boşluk kalmaz */
.ykart { break-inside: avoid; margin: 0 0 10px; display: grid; grid-template-columns: 40px 1fr; align-content: start; column-gap: 10px; padding: 14px 16px; border: 1px solid var(--cizgi); border-radius: 8px; background: #0f1c16; }
.ykart.renkli { border-left: 4px solid var(--r); }
.ykart i { grid-row: 1 / span 2; font-style: normal; font-size: 26px; line-height: 1.2; }
.ykart b { font-size: 14px; color: var(--krem); }
.ykart a { color: var(--altin); font-weight: 700; }
.ykart > :not(i) { grid-column: 2; } /* Faz 136: kartta birden çok paragraf ve madde listesi alt alta */
.ykart b { margin-bottom: 2px; }
.ykart p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--soluk); }
.ykart ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--soluk); }
.ykart li { margin: 2px 0; }
.ykart li::marker { color: var(--altin); }
.ykart li b { font-size: inherit; color: var(--altin); }
.ykart p b { font-size: inherit; color: var(--altin); }
/* Kart ızgaraları: aynı satırdaki kartlar eşit boy, düğme hep en altta. */
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik, #luks-icerik) .izgara { grid-auto-rows: 1fr; align-items: stretch; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik, #luks-icerik) .kart button { margin-top: auto; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik, #luks-icerik) .kart .adetler { margin-top: auto; padding-top: 6px; }
:is(#dukkan-liste, #ordu-icerik, #heybe-icerik, #luks-icerik) .kart .adetler button { margin-top: 0; }

.yasal { margin: 10px 0 0; font-size: 12px; }
.yasal a { color: var(--soluk); }

/* Öğretici görevler: sağda hep duran Muhtar baloncuğu ve ekran kenarındaki yön oku */
#gorev { position: absolute; right: 20px; top: 236px; width: 300px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #221a0bf0; border: 1px solid #c9a24a; border-radius: 12px 2px 12px 12px; box-shadow: 0 6px 18px #0007; font-size: 12.5px; line-height: 1.4; pointer-events: none; }
#gorev::before { content: ""; position: absolute; right: 18px; top: -7px; width: 12px; height: 12px; background: #221a0b; border-left: 1px solid #c9a24a; border-top: 1px solid #c9a24a; transform: rotate(45deg); }
#gorev[hidden] { display: none; }
#gorev.yeni { animation: gorevYeni .9s ease; }
@keyframes gorevYeni { 0% { transform: scale(.9); box-shadow: 0 0 0 0 #ffd23f; } 40% { transform: scale(1.04); box-shadow: 0 0 0 8px #ffd23f55; } 100% { transform: none; } }
#gorev .muhtar-yuz { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-style: normal; font-size: 22px; border-radius: 50%; background: #5c3e0c; border: 1px solid #c9a24a; }
#gorev > div { min-width: 0; flex: 1; }
#gorev .eyebrow { margin: 0 0 3px; color: #ffd23f; }
#gorev q { display: block; margin: 0 0 6px; color: #e8dcc0; font-style: italic; }
#gorev b { display: block; color: #fff6dc; }
#gorev .gorev-alt { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: #d9c690; font-size: 11.5px; }
#gorev .gorev-alt em { font-style: normal; }
#gorev .gorev-cubuk { flex: 1; height: 6px; border-radius: 3px; background: #0006; overflow: hidden; }
#gorev .gorev-cubuk u { display: block; height: 100%; background: #ffd23f; }
#gorev .odul { color: #ffd86b; font-weight: 700; }
#gorev #gorev-uzak { margin-left: auto; }
#gorev-ok, .yon-ok { position: absolute; z-index: 4; display: grid; place-items: center; pointer-events: none; transform: translate(-50%, -50%); }
#gorev-ok[hidden], .yon-ok[hidden] { display: none; }
/* Faz 85: performans paneli (1'in solundaki tuş) */
#olcum { position: absolute; left: 20px; top: 200px; z-index: 6; margin: 0; padding: 8px 10px; background: #000c; color: #cfe8c8; border: 1px solid #4a6a44; border-radius: 6px; font: 11px/1.35 ui-monospace, Consolas, monospace; white-space: pre; pointer-events: none; }
#olcum[hidden] { display: none; }
#gorev-ok i, .yon-ok i { font-style: normal; font-size: 34px; color: #ffd23f; text-shadow: 0 0 6px #000, 0 0 2px #000; line-height: 1; }
#gorev-ok small, .yon-ok small { margin-top: 2px; padding: 0 6px; border-radius: 8px; background: #000a; color: #ffe9a8; font-size: 11px; font-weight: 700; }
@media (max-width: 720px) { #gorev { top: 150px; width: min(260px, 62vw); font-size: 11.5px; } #gorev q { display: none; } }
#gorev .gorev-dugme { pointer-events: auto; padding: 2px 7px; font-size: 11px; line-height: 1.4; background: #2c2210; border-color: #c9a24a88; color: #ffd86b; }
#gorev .gorev-savas { display: block; margin-top: 8px; }
#gorev .gorev-sec { margin-top: 8px; padding-top: 7px; border-top: 1px solid #c9a24a55; color: #e8dcc0; }
#gorev .gorev-sec p { margin: 0 0 6px; }
#gorev .gorev-sec b { display: inline; color: #ffd86b; }
#gorev .gorev-sec .gorev-dugme { display: block; width: 100%; margin-top: 4px; text-align: left; }
#gorev .gorev-dugme kbd { font-size: 10px; padding: 0 4px; }
#gorev .gorev-gizle { position: absolute; right: 8px; top: 8px; }
#gorev.gizli { width: auto; padding: 6px 8px; }
#gorev.gizli .gorev-dugme { font-size: 12px; padding: 4px 10px; }
#gorev .gunluk { margin: 3px 0 0; display: flex; gap: 6px; align-items: baseline; font-size: 11.5px; color: #fff6dc; }
#gorev .gunluk > span:first-child { flex: 1; min-width: 0; }
#gorev .gunluk em { font-style: normal; color: #d9c690; }
#gorev .gunluk.bitti { opacity: .55; }
#gorev .gunluk-bas { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid #c9a24a44; font-size: 10px; }
#gorev .gunluk-bas b { display: inline; color: #ffd23f; }

/* Hasar sayıları: vurduğun sarı-beyaz, aldığın kırmızı; efektler.js konumlar */
#hasarlar { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.hasar-sayi { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; font: 900 19px/1 "Segoe UI", system-ui, sans-serif; color: #fff2b0; text-shadow: 0 0 3px #000, 0 2px 2px #000, 0 0 8px #000a; white-space: nowrap; will-change: transform, opacity; }
.hasar-sayi.aldim { color: #ff6b5b; font-size: 21px; }
.hasar-sayi small { display: block; font-size: 10px; letter-spacing: .08em; text-align: center; margin-bottom: 1px; }
.hasar-sayi.kritik { color: #ff8a3d; font-size: 27px; }
.hasar-sayi.kazanc { color: #ffd23f; font-size: 24px; } /* iş kazancı: üretim ve kutu teslimi, başın üstünden */
.hasar-sayi.delici { color: #5fd4ff; font-size: 23px; }
.hasar-sayi.kirici { color: #c38bff; font-size: 23px; }
.hasar-sayi.akin-kilic { color: #fff2b0; font-size: 26px; } /* Faz 99: Akın Var isabeti: sayı yerine kılıç */
.hasar-sayi.akin-kilic.uzak { font-size: 15px; opacity: .8; }
.hasar-sayi.akin-yara { color: #ff6b5b; font-size: 24px; }
.hasar-sayi.akin-kalkan { color: #cfd6de; font-size: 20px; opacity: .9; } /* Faz 106: vuruş tutmadı: kalkan */
.taki-sans { display: flex; justify-content: center; gap: 12px; margin: -6px 0 14px; font-size: 12px; font-weight: 700; }

/* Açık pencerenin üstündeki bildirim (popover: en üst katman) */
/* Oyun içi ipucu (title yerine): fareyi izler, en üst katmanda (açık pencerenin de üstünde) */
#tip { position: fixed; inset: auto; left: 0; top: 0; margin: 0; max-width: 300px; padding: 8px 11px; background: #16251ff7; color: #f4eedb; border: 1px solid var(--cizgi); border-radius: 6px; font: 12.5px/1.45 "Segoe UI", system-ui, sans-serif; pointer-events: none; white-space: pre-line; }
#tip b { display: block; color: var(--altin); font-size: 13px; margin-bottom: 2px; }
#tip.kart { max-width: 290px; min-width: 200px; white-space: normal; padding: 10px 13px; border-color: #e0be6a77; box-shadow: 0 8px 24px #0009; }
#tip.kart b { font-size: 14.5px; }
#tip.kart .kart-alt { display: block; color: #8a977f; font-size: 11.5px; }
#tip.kart .kart-satir { list-style: none; margin: 7px 0 5px; padding: 6px 0 0; border-top: 1px solid #ffffff1a; display: grid; gap: 3px; color: #8fb7ff; }
#tip.kart .kart-not { display: block; color: #b9b29c; font-style: italic; font-size: 11.5px; margin-bottom: 5px; }
/* 2026-11-28: üstündekiyle yan yana (ustundekiler); pazarda efsun / ek satırları */
#tip.kart.kiyasli { max-width: calc(100vw - 16px); min-width: 0; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
#tip.kart.kiyasli:popover-open { display: flex; }
#tip.kart .kart-kutu { width: 250px; }
#tip.kart .kart-kutu.kiyas { padding-left: 12px; border-left: 1px solid #ffffff1a; }
#tip.kart .kart-ust { display: block; color: #8a977f; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.pazar-ek { display: block; margin: 2px 0 0; color: #8fb7ff; font-size: 11px; }
#ust-bildirim { position: fixed; inset: auto; top: 22px; left: 50%; transform: translateX(-50%); margin: 0; max-width: min(560px, 90vw); padding: 10px 18px; background: #16251ff5; color: #f4eedb; border: 1px solid var(--altin); border-radius: 8px; box-shadow: 0 8px 24px #000a; font-size: 14px; pointer-events: none; }
.lonca-hata { color: #ff9a85; margin-top: 8px; }

/* Alt çubuk: solda deneyim, ortada takımlar, sağda can (kutucuk biçiminde küreler) */
#alt-cubuk { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; }
.kure { position: relative; width: 64px; height: 64px; border-radius: 6px; border: 1px solid var(--cizgi); background: #16251fcc; overflow: hidden; }
.kure i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .25s ease; }
.kure b { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); text-align: center; font: 800 15px/1 "Segoe UI", system-ui, sans-serif; color: #fff; z-index: 1; }
.kure small { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font: 700 9.5px/1 "Segoe UI", system-ui, sans-serif; color: #f4eedb; z-index: 1; white-space: nowrap; }
#kutu-can { border-color: #c4231c99; }
#kutu-can i { background: #c4231c; }
#kutu-can.az { animation: canAz 1s ease-in-out infinite alternate; }
@keyframes canAz { to { border-color: #ff5a43; } }
#kutu-can.borclu small { color: #ffb3a6; }
#kutu-xp { border-color: #2fa62a99; }
#kutu-xp i { background: #2f9a2a; }
#kutu-xp small { top: 4px; bottom: auto; }
/* Şarj: başın üstünde beş dalga (iç içe yaylar), dolan yanar */
#sarj { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); pointer-events: none; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 3px; }
#sarj .dalgalar { display: flex; align-items: center; gap: 3px; height: 44px; padding: 3px 10px 3px 8px; border-radius: 12px; background: #12201ac4; box-shadow: 0 2px 8px #0007; }
#sarj .dalgalar i { width: 12px; border: 4px solid #ffffff38; border-left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; transition: border-color .12s, filter .12s; }
#sarj .dalgalar i:nth-child(1) { height: 14px; } #sarj .dalgalar i:nth-child(2) { height: 21px; } #sarj .dalgalar i:nth-child(3) { height: 28px; } #sarj .dalgalar i:nth-child(4) { height: 35px; } #sarj .dalgalar i:nth-child(5) { height: 42px; }
#sarj .dalgalar i.doluyor { border-color: rgba(255, 179, 71, calc(.25 + var(--o) * .6)); }
#sarj .dalgalar i.yandi { border-color: #ffb347; filter: drop-shadow(0 0 4px #ff9a2a); }
#sarj .dalgalar i.yok { border-color: #ffffff22; border-style: dashed; }
#sarj span { padding: 2px 8px; border-radius: 6px; background: #12201ae6; border: 1px solid #ffb347; color: #ffd59a; font: 800 11px/1.2 system-ui; letter-spacing: .06em; white-space: nowrap; }
#sarj.tam .dalgalar i.yandi { animation: sarjTam .28s ease-in-out infinite alternate; }
@keyframes sarjTam { to { border-color: #fff1c9; filter: drop-shadow(0 0 7px #ffb347); } }
@media (max-width: 720px) { .kure { width: 50px; height: 50px; } .kure b { font-size: 13px; } .kure small { font-size: 8.5px; } }
/* Faz 29: basım rozeti, demirci / kuyumcu penceresi, pazar Al / Sat sekmesi. */
:is(.yuva, .hucre) em.basim { position: absolute; right: 2px; bottom: 2px; width: auto; height: auto; box-shadow: none; font-style: normal; font-size: 10px; font-weight: 800; color: #ffd86b; background: #10181499; border-radius: 3px; padding: 0 3px; line-height: 13px; pointer-events: none; }
.basim-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.basim-kart { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--cizgi); border-radius: 6px; background: #0f1c16; }
.basim-kart > .hucre { flex: none; width: 48px; height: 48px; border: 1px solid #e0be6a88; background: #0b1611; }
.basim-kart > .hucre i { font-style: normal; font-size: 22px; }
.basim-kart > button { flex: none; padding: 6px 14px; }
.basim-kart > button.tehlike { background: #c8453a; color: #fff8e6; }
/* Faz 57: sıralı basım adedi (tasarıma uygun açılır liste) */
.adet-sec { position: relative; flex: none; }
.adet-sec > button { padding: 6px 10px; font-weight: 700; min-width: 56px; }
.adet-sec > button small { color: var(--altin); }
.adet-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 6px; width: max-content; min-width: 190px; background: #0f1c16; border: 1px solid var(--altin); border-radius: 6px; box-shadow: 0 8px 20px #000a; }
.adet-menu button { padding: 5px 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; background: #182b22; white-space: nowrap; }
.adet-menu button small { color: var(--soluk); font-weight: 400; font-size: 11px; }
.adet-menu button.secili { background: var(--altin); color: #1f2a20; border-color: #f0d590; }
.adet-menu button.secili small { color: #3a3a20; }
.basim-bilgi { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.basim-bilgi > b { font-size: 14px; }
.basim-bilgi > small { color: var(--soluk); }
.basim-teklif { font-size: 12px; color: var(--metin, #f1e6cf); }
.basim-sekme { display: flex; gap: 6px; margin: 0 0 10px; }
.basim-sekme button { padding: 6px 22px; font-size: 14px; }
.basim-cuzdan { color: #ffd86b; font-weight: 700; white-space: nowrap; }
/* Animasyonu atla: sekme satırının sağında, sekme düğmesi boyunda anahtarlı düğme; açıkken altın. */
.basim-sekme { flex-wrap: wrap; }
.basim-atla { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--altin); border-radius: 4px; background: #0f1c16; color: var(--krem); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; user-select: none; }
.basim-atla:hover { background: #22392e; }
.basim-atla input { position: absolute; opacity: 0; pointer-events: none; }
.basim-atla i { position: relative; width: 34px; height: 18px; border-radius: 9px; background: #3a4a42; transition: background .15s; }
.basim-atla i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #c9d2cc; transition: transform .15s, background .15s; }
.basim-atla:has(:checked) { background: #4a3a10; color: #ffd86b; }
.basim-atla:has(:checked) i { background: var(--altin); }
.basim-atla:has(:checked) i::after { transform: translateX(16px); background: #1a1408; }
.basim-atla:has(:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.basim-not { color: var(--soluk); font-size: 12px; }
.basim-tablo { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.basim-tablo span { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border: 1px solid var(--cizgi); border-radius: 6px; font-size: 12px; color: var(--soluk); }
.basim-tablo b { color: #ffd86b; font-size: 13px; }
.borsa-sira { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--soluk); }
.borsa-sira button { padding: 3px 10px; font-size: 12px; }
.borsa-sira button.secili { border-color: var(--altin); color: var(--altin); }
.borsa-arti { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.borsa-arti button { padding: 3px 8px; font-size: 12px; }
.borsa-arti button.secili { background: var(--altin); color: #16251f; }
.borsa-arti small { margin-left: 4px; color: var(--soluk); }
.borsa-defter { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.borsa-defter table { width: 100%; }
.borsa-defter tr[data-fiyat] { cursor: pointer; }
.borsa-defter tr[data-fiyat]:hover td { background: #22352b; }
.borsa-emir { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px; border: 1px solid var(--cizgi); border-radius: 8px; background: #0f1c16; }
.borsa-emir input { width: 150px; padding: 6px 8px; font: inherit; background: #0b1611; color: var(--krem); border: 1px solid var(--cizgi); border-radius: 6px; }
.borsa-emir small { color: var(--soluk); }
.borsa-yon { display: flex; align-items: center; gap: 6px; margin: 0; }
.borsa-yon button { padding: 6px 22px; font-size: 14px; }
.borsa-yon small { color: var(--soluk); margin-left: 6px; }
/* Demirci / kuyumcu geniş: kartlar iki sıra (dar ekranda tek). */
dialog#basimevi { width: min(1240px, 96vw); max-width: min(1240px, 96vw); }
#basimevi .ic { max-width: none; }
#basimevi .basim-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { #basimevi .basim-liste { grid-template-columns: 1fr; } }
#borsa-icerik .borsa-defter th:first-child, #borsa-icerik .borsa-defter td:first-child { text-align: left; }
/* Faz 46: sekmeli pencereler sabit boyutta: sekme ya da kategori değişince büyüyüp küçülmez, içerik pencerenin içinde kayar. */
dialog:is(#dukkan, #borsa, #luks, #lonca, #basimevi, #ordu) { width: min(1180px, 96vw); max-width: min(1180px, 96vw); height: min(760px, calc(100vh - 24px)); }
dialog#heybe { height: min(820px, calc(100vh - 24px)); }
dialog#gorunum { height: min(820px, calc(100vh - 24px)); }
dialog#yardim { height: min(860px, calc(100vh - 24px)); }
/* Sabit boyutlu pencerelerde alttaki düğmeler sağ altta küçük simge: içerik kısa da olsa uzun da olsa orada durur. */
dialog:is(#yardim, #gorunum) > .ic { min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
/* Faz 60: pencere esnek sütun: başlık, sekmeler sabit; yalnız içteki liste kayar. Kenar ve köşe tutamaklarıyla boyutlanır. */
dialog.pen[open]:not(#harita) { display: flex; flex-direction: column; overflow: hidden; }
dialog.pen > .ic { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; width: auto; }
dialog.pen > .ic > :is(#lonca-icerik, #luks-icerik, #borsa-icerik, #ordu-icerik, #parti-icerik, #arkadas-icerik, #hedef-icerik) { flex: 1 1 auto; min-height: 0; overflow: auto; }
dialog.pen #dukkan-liste { flex: 1 1 auto; min-height: 0; overflow: auto; }
dialog.pen #basimevi-icerik, dialog.pen #heybe-icerik { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
dialog.pen #basimevi-icerik > .basim-liste { flex: 1 1 auto; min-height: 120px; overflow: auto; align-content: start; padding-right: 4px; }
dialog.pen #heybe-icerik > .envanter { flex: 1 1 auto; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
@media (max-width: 760px) { dialog.pen #heybe-icerik > .envanter { grid-template-rows: none; overflow: auto; } }
dialog.pen #heybe-icerik > .envanter > section { min-height: 0; overflow: auto; padding-right: 4px; }
/* Faz 63: depo penceresi: solda heybe, sağda depo; her bölme kendi kayar. */
dialog#depo { width: min(1000px, 96vw); max-width: min(1000px, 96vw); height: min(680px, calc(100vh - 24px)); }
#depo .ic { max-width: none; }
dialog.pen #depo-icerik { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.depo-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex: 1 1 auto; min-height: 0; }
.depo-iki > section { min-height: 0; overflow: auto; padding-right: 4px; }
.depo-iki .eyebrow { margin: 0 0 8px; }
@media (max-width: 760px) { .depo-iki { grid-template-columns: 1fr; overflow: auto; } }
.adet-menu.depo-menu { position: fixed; right: auto; z-index: 60; }
dialog.pen#yardim > .ic > .ykartlar:not([hidden]) { flex: 1 1 auto; min-height: 0; overflow: auto; }
dialog.pen#gorunum .gorunum-govde { flex: 1 1 auto; min-height: 0; }
dialog.pen#gorunum #gorunum-secenekler { max-height: 100%; }
.tutamak { position: absolute; z-index: 2; }
.tutamak[data-yon=n], .tutamak[data-yon=s] { left: 10px; right: 10px; height: 7px; cursor: ns-resize; }
.tutamak[data-yon=e], .tutamak[data-yon=w] { top: 10px; bottom: 10px; width: 7px; cursor: ew-resize; }
.tutamak[data-yon=n] { top: 0; } .tutamak[data-yon=s] { bottom: 0; } .tutamak[data-yon=e] { right: 0; } .tutamak[data-yon=w] { left: 0; }
.tutamak[data-yon=ne], .tutamak[data-yon=nw], .tutamak[data-yon=se], .tutamak[data-yon=sw] { width: 14px; height: 14px; }
.tutamak[data-yon=ne] { top: 0; right: 0; cursor: nesw-resize; } .tutamak[data-yon=sw] { bottom: 0; left: 0; cursor: nesw-resize; }
.tutamak[data-yon=nw] { top: 0; left: 0; cursor: nwse-resize; } .tutamak[data-yon=se] { bottom: 0; right: 0; cursor: nwse-resize; }
.tutamak[data-yon=se]::after { content: ''; position: absolute; right: 3px; bottom: 3px; width: 8px; height: 8px; border-right: 2px solid #e0be6a88; border-bottom: 2px solid #e0be6a88; }
.alt-sag { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; position: sticky; bottom: 0; }
.alt-sag p { margin: 0 auto 0 0; }
.simge-dugme { flex: none; width: 44px; height: 44px; padding: 0; font-size: 20px; line-height: 1; letter-spacing: 0; }
/* Dükkân: Al / Sat seçimi en üstte. */
.dukkan-mod { display: flex; gap: 6px; margin: 0 0 12px; }
.dukkan-mod button { padding: 8px 22px; font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.dukkan-mod button.secili { background: var(--altin); color: #16251f; }
#dukkan-liste .kart.takili { border-color: #7ddc6a80; }
#gorev > div > .eyebrow:first-child { padding-right: 50px; }
dialog.pen .basim-tablo { flex: none; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); overflow-x: auto; padding-bottom: 2px; }

/* Faz 64: Tetik Meydanı (asıl oyunun göstergeleri, tk- önekli). Oynarken Juland'ın nişangâhı, yer adı, küçük harita, görev, kale ve skor kutuları gizlenir. */
body.tetikte #nisangah, body.tetikte #hedef-ad, body.tetikte #yer, body.tetikte #mini, body.tetikte #gorev, body.tetikte #gorev-ok, body.tetikte #istem, body.tetikte #kale, body.tetikte #skor, body.tetikte #suc, body.tetikte #parti-kutu, body.tetikte #sarj, body.tetikte #ilerleme { display: none !important; }
#tetik-ui { position: fixed; inset: 0; pointer-events: none; z-index: 4; isolation: isolate; color: #f1ead4; font: 14px/1.5 system-ui, -apple-system, Segoe UI, sans-serif; --tk-gold: #e2b25a; --tk-red: #d9573f; --tk-muted: #b9c0b8; }
#tetik-ui[hidden] { display: none; }
#tetik-ui .tk-panel { background: #1a2024e6; border: 1px solid #7f86785c; box-shadow: 0 8px 28px #0b0e1030; }
#tetik-ui .tk-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; color: var(--tk-gold); }
#tetik-ui .tk-meter { height: 4px; background: #3c423f; margin-top: 5px; overflow: hidden; }
#tetik-ui .tk-meter i { display: block; width: 100%; height: 100%; background: #a8c18a; transition: width .15s; }
#tk-ust { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
#tk-sure { font: 600 20px/1 system-ui; font-variant-numeric: tabular-nums; background: #141a1dd0; border: 1px solid #7f867860; padding: 6px 14px; letter-spacing: 1px; }
#tk-skorlar { display: flex; gap: 4px; font-size: 12px; } #tk-skorlar > span { background: #141a1dd0; padding: 3px 10px; border: 1px solid #7f867850; font-variant-numeric: tabular-nums; } #tk-skorlar .ben { border-color: var(--tk-gold); color: #ffe2a3; }
#tk-lesler { position: absolute; top: 64px; right: 18px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tk-les { background: #141a1dd8; border: 1px solid #7f867850; padding: 4px 10px; font-size: 12px; animation: tk-solgun 5s forwards; } .tk-les.benim { border-color: var(--tk-gold); }
.tk-les .s { color: var(--tk-gold); font-size: 10px; letter-spacing: 1px; margin: 0 7px; } .tk-les .kafa { color: var(--tk-red); margin-left: 4px; }
@keyframes tk-solgun { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
#tk-nisangah { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#tk-nisangah i { position: absolute; background: #f6f0dc; box-shadow: 0 0 2px #000c; transition: transform .05s; }
#tk-nisangah i:nth-child(1), #tk-nisangah i:nth-child(2) { width: 2px; height: 8px; left: -1px; } #tk-nisangah i:nth-child(3), #tk-nisangah i:nth-child(4) { width: 8px; height: 2px; top: -1px; }
#tk-nisangah b { position: absolute; width: 3px; height: 3px; left: -1.5px; top: -1.5px; background: var(--tk-red); border-radius: 50%; }
#tk-nisangah.gizli { display: none; }
#tk-isabet { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; opacity: 0; }
#tk-isabet::before, #tk-isabet::after { content: ""; position: absolute; left: 12px; top: -2px; width: 2px; height: 30px; background: #fff; transform: rotate(45deg); box-shadow: 0 0 3px #000; }
#tk-isabet::after { transform: rotate(-45deg); } #tk-isabet.vur { animation: tk-vur .22s; } #tk-isabet.kafa::before, #tk-isabet.kafa::after { background: #ffd76a; } #tk-isabet.olu::before, #tk-isabet.olu::after { background: var(--tk-red); width: 3px; }
@keyframes tk-vur { 0% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(.9); } }
#tk-yara-yon { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px; border-radius: 50%; opacity: 0; background: conic-gradient(from -20deg, #d9573fcc 0 40deg, transparent 40deg); -webkit-mask: radial-gradient(circle, transparent 95px, #000 97px, #000 106px, transparent 108px); mask: radial-gradient(circle, transparent 95px, #000 97px, #000 106px, transparent 108px); transition: opacity .6s; }
#tk-yara-yon.var { opacity: 1; transition: none; }
body.tk-yarali #tetik-ui { box-shadow: inset 0 0 140px #b0302acc; }
#tk-durbun { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, transparent 0, transparent min(34vh, 34vw), #050607 calc(min(34vh, 34vw) + 2px)); }
#tk-durbun[hidden] { display: none; }
#tk-durbun::before, #tk-durbun::after { content: ""; position: absolute; background: #050607cc; left: 50%; top: 50%; }
#tk-durbun::before { width: 1px; height: min(68vh, 68vw); transform: translate(-50%, -50%); } #tk-durbun::after { height: 1px; width: min(68vh, 68vw); transform: translate(-50%, -50%); }
#tk-mesaj { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); text-align: center; font: 700 22px Georgia, serif; letter-spacing: 2px; color: #ffe2a3; text-shadow: 0 2px 8px #000a; white-space: nowrap; opacity: 0; }
#tk-mesaj small { display: block; font: 600 11px system-ui; letter-spacing: 2px; color: #f1ead4; }
#tk-mesaj.goster { animation: tk-mesaj 1.8s forwards; } @keyframes tk-mesaj { 0% { opacity: 0; transform: translate(-50%, 8px); } 10%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
#tk-can-kutu { position: absolute; left: 22px; bottom: 22px; width: 230px; padding: 12px 16px; }
#tk-can-kutu b, #tk-cephane-kutu b { font: 32px/1 Georgia, serif; font-variant-numeric: tabular-nums; display: inline-block; margin-top: 4px; }
#tk-can-kutu.dusuk #tk-can-bar { background: var(--tk-red); } #tk-can-kutu.dusuk b { color: #ffb4a3; }
#tk-yetenekler { display: flex; gap: 6px; margin-top: 9px; } #tk-yetenekler span { font-size: 9px; letter-spacing: 1.5px; padding: 3px 7px; border: 1px solid #e2b25a90; color: #ffe2a3; } #tk-yetenekler span.bekle { opacity: .3; border-color: #777; }
#tk-cephane-kutu { position: absolute; right: 22px; bottom: 22px; width: 250px; padding: 12px 16px; text-align: right; }
#tk-cephane-yedek { color: var(--tk-muted); margin-left: 6px; font-size: 13px; } #tetik-ui #tk-doldur-bar { background: var(--tk-gold); width: 0; }
#tk-silahlar { display: flex; gap: 4px; justify-content: flex-end; margin-top: 9px; } #tk-silahlar span { font-size: 9px; padding: 3px 6px; border: 1px solid #7f867860; color: var(--tk-muted); }
#tk-silahlar span.secili { border-color: var(--tk-gold); color: #ffe2a3; background: #3f3a26; } #tk-silahlar span.yok { display: none; }
#tk-olum { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); text-align: center; background: #141a1dd8; border: 1px solid #d9573f80; padding: 16px 28px; min-width: 300px; }
#tk-olum[hidden], #tk-skor-tablo[hidden], #tk-son[hidden] { display: none; }
#tk-olum h2 { font: normal 26px Georgia, serif; margin: 6px 0; } #tk-olum p { color: var(--tk-muted); margin: 0; font-size: 12px; }
#tk-skor-tablo, #tk-son { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 20px 26px; min-width: min(440px, 92vw); }
#tk-son { text-align: center; } #tk-son h2 { font: normal 34px Georgia, serif; margin: 8px 0 14px; } #tk-son p { color: var(--tk-muted); font-size: 12px; margin: 14px 0 0; }
#tetik-ui table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
#tetik-ui th { font-size: 9px; letter-spacing: 1.6px; color: var(--tk-muted); text-align: left; padding: 4px 8px; border-bottom: 1px solid #7f867860; }
#tetik-ui td { padding: 5px 8px; border-bottom: 1px solid #7f867825; text-align: left; font-variant-numeric: tabular-nums; }
#tk-skor-tablo td:not(:first-child), #tk-skor-tablo th:not(:first-child), #tk-son td:nth-child(n+3), #tk-son th:nth-child(n+3) { text-align: right; }
#tetik-ui tr.ben td { color: #ffe2a3; } #tetik-ui td .bot { font-size: 9px; color: var(--tk-muted); margin-left: 6px; letter-spacing: 1px; }
#tk-etiketler { position: absolute; inset: 0; overflow: hidden; }
.tk-etiket { position: absolute; transform: translate(-50%, -100%); font-size: 11px; font-weight: 600; white-space: nowrap; text-shadow: 0 1px 3px #000, 0 0 2px #000; color: #ffc9bd; }
#tetik-ui .tk-etiket.dost { color: #bfe0ff; }
#tk-skorlar .mavi { border-color: #5aa2e0; color: #bfe0ff; } #tk-skorlar .kirmizi { border-color: #d9573f; color: #ffc9bd; }
#tetik-ui tr.mavi td:first-child { box-shadow: inset 3px 0 #5aa2e0; } #tetik-ui tr.kirmizi td:first-child { box-shadow: inset 3px 0 #d9573f; }
#tk-sure { white-space: nowrap; }
.tk-etiket i { display: block; height: 3px; background: #3c423f; margin-top: 2px; } .tk-etiket i b { display: block; height: 100%; background: #a8c18a; }
body.tetikte #sohbet { bottom: 132px; } /* Faz 64: Tetik Meydanı'nın can kutusunun üstünde */

/* Faz 101: basım animasyonu (örs, çekiç, kıvılcım, gerilim; İPTAL). Pencerenin üstünü örter. */
.basim-anim { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #2a1a0ef2, #0d1410f5 70%); border-radius: 8px; }
.basim-anim .ba-kutu { display: grid; justify-items: center; gap: 10px; padding: 20px; text-align: center; }
.basim-anim .ba-baslik { font: 800 18px/1.3 Georgia, serif; color: var(--krem); } .basim-anim .ba-baslik em { font-style: normal; color: var(--altin); }
.basim-anim .ba-sahne { position: relative; width: 240px; height: 150px; }
.basim-anim .ba-ors { position: absolute; left: 50%; bottom: 8px; width: 150px; height: 46px; transform: translateX(-50%); background: linear-gradient(#5a5f63, #2c3033); clip-path: polygon(0 0, 100% 0, 88% 40%, 70% 45%, 74% 100%, 26% 100%, 30% 45%, 12% 40%); box-shadow: 0 6px 12px #0009; }
.basim-anim .ba-esya { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); width: 58px; height: 58px; box-shadow: 0 0 18px #ff8a2e66; transition: box-shadow .3s, filter .4s, opacity .4s; }
.basim-anim .ba-isik { position: absolute; left: 50%; bottom: 40px; width: 160px; height: 110px; transform: translateX(-50%); background: radial-gradient(ellipse, #ff9a3a55, transparent 65%); opacity: .5; }
.basim-anim .ba-cekic { position: absolute; right: 18px; top: 4px; width: 90px; height: 90px; transform-origin: 85% 85%; transform: rotate(28deg); }
.basim-anim .ba-cekic::before { content: ''; position: absolute; right: 8px; bottom: 6px; width: 10px; height: 70px; background: linear-gradient(90deg, #7a5230, #a8754a); border-radius: 3px; transform: rotate(-45deg); transform-origin: bottom; }
.basim-anim .ba-cekic i { position: absolute; left: .5px; top: 17.5px; /* Faz 134: başın merkezi sapın ekseninde (sap dibi 77,84, −45°: y − x = 7); Faz 112 hâlâ 5 px yandaydı */ width: 46px; height: 26px; background: linear-gradient(#8a9095, #4a4f53); border-radius: 3px; transform: rotate(-45deg); box-shadow: inset 0 2px 0 #fff3; }
.basim-anim.vur .ba-cekic { animation: ba-vur .32s ease-in; }
@keyframes ba-vur { 0% { transform: rotate(28deg); } 45% { transform: rotate(-38deg); } 60% { transform: rotate(-30deg); } 100% { transform: rotate(28deg); } }
.basim-anim .ba-kivilcim { position: absolute; left: 50%; bottom: 96px; width: 4px; height: 4px; border-radius: 50%; opacity: 0; color: #ffc46b;
  box-shadow: 18px -10px 0 1px, -22px -6px 0, 30px 4px 0, -34px 8px 0 1px, 8px -24px 0, -12px -28px 0 1px, 42px -14px 0, -44px -12px 0, 24px -30px 0, -28px -22px 0; }
.basim-anim.sac .ba-kivilcim { animation: ba-sac .5s ease-out; }
@keyframes ba-sac { 0% { opacity: 1; transform: translateX(-50%) scale(.3); } 100% { opacity: 0; transform: translateX(-50%) scale(1.8) translateY(-8px); } }
.basim-anim.vur .ba-isik { animation: ba-parla .4s ease-out; } @keyframes ba-parla { 0% { opacity: 1; } 100% { opacity: .5; } }
.basim-anim.gerilim .ba-esya { animation: ba-titre .09s linear infinite; box-shadow: 0 0 30px #ffb24acc; }
.basim-anim.gerilim .ba-isik { opacity: .9; animation: ba-nabiz .5s ease-in-out infinite alternate; }
@keyframes ba-titre { 0% { transform: translateX(calc(-50% - 1.5px)); } 50% { transform: translateX(calc(-50% + 1.5px)) translateY(-1px); } 100% { transform: translateX(calc(-50% - 1px)); } }
@keyframes ba-nabiz { to { opacity: .45; } }
.basim-anim .ba-cubuk { width: 240px; height: 6px; background: #ffffff14; border-radius: 3px; overflow: hidden; } .basim-anim .ba-cubuk i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e0be6a, #ff8a2e); }
.basim-anim .ba-yazi { min-height: 18px; color: var(--soluk); font-size: 13px; font-weight: 700; }
.basim-anim.yuksek .ba-yazi { color: #ffb27a; }
.basim-anim .ba-iptal { padding: 9px 18px; font-weight: 800; letter-spacing: 1.2px; }
.basim-anim.tuttu .ba-esya { box-shadow: 0 0 40px #7dff8acc; } .basim-anim.tuttu .ba-isik { background: radial-gradient(ellipse, #7dff8a66, transparent 65%); opacity: 1; } .basim-anim.tuttu .ba-yazi { color: #8dff9a; font-size: 16px; }
.basim-anim.yandi .ba-esya { filter: grayscale(1) brightness(.5); opacity: .4; box-shadow: 0 0 30px #ff3b2e99; } .basim-anim.yandi .ba-isik { background: radial-gradient(ellipse, #ff3b2e55, transparent 65%); opacity: 1; } .basim-anim.yandi .ba-yazi { color: #ff7a6a; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .basim-anim.gerilim .ba-esya, .basim-anim.vur .ba-cekic { animation: none; } }
/* Faz 104: Kara Nal zindanı: içindeyken üstte şerit */
#zindan-serit { position: fixed; top: 54px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: rgba(16, 10, 24, .86); border: 1px solid #5a3f8a; color: #e4d6c4; font: 700 13px/1.3 inherit; white-space: nowrap; }
#zindan-serit button { padding: 2px 10px; font-size: 12px; }
.efsun-ozet span { color: #c9a6ff; }
.efsun-sec .hucre.takili { outline: 2px solid #c9a6ff; }
/* Kuyumcu birleştirmesi: eklenecek +9 seçimi (kart içinde küçük hücreler) */
.ikinci-sec { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.ikinci-sec > small { color: var(--soluk); margin-right: 2px; }
.ikinci-sec .hucre { position: relative; display: grid; place-items: center; width: 38px; height: 38px; cursor: pointer; }
.ikinci-sec .hucre i { font-size: 18px; }
.ikinci-sec .hucre.takili { outline: 2px solid #ffd86b; background: #3a3218; }
#zindan-serit[hidden] { display: none; }
/* T47: İz Peşinde şeridi (maçtakine rol, süre, puan) */
#iz-serit { position: fixed; top: 54px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: rgba(12, 24, 20, .86); border: 1px solid #3f8a74; color: #e4d6c4; font: 700 13px/1.3 inherit; white-space: nowrap; }
#iz-serit button { padding: 2px 10px; font-size: 12px; }
#iz-serit[hidden] { display: none; }
/* 2026-11-17: zindanda Tetik Meydanı'nın göstergesi (bkz. #tetik-ui); Juland'ın alt çubuğu gizli */
body.zindan-tufek #alt-cubuk, body.zindan-tufek #cubuk-ad, body.zindan-tufek #sarj { display: none !important; }
#zindan-ui { position: fixed; inset: 0; pointer-events: none; z-index: 5; color: #f1ead4; font: 14px/1.5 system-ui, -apple-system, Segoe UI, sans-serif; --tk-gold: #e2b25a; --tk-red: #d9573f; --tk-muted: #b9c0b8; }
#zindan-ui[hidden], #zu-olum[hidden] { display: none; }
#zindan-ui .tk-panel { background: #1a2024e6; border: 1px solid #7f86785c; box-shadow: 0 8px 28px #0b0e1030; }
#zindan-ui .tk-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; color: var(--tk-gold); }
#zindan-ui .tk-meter { height: 4px; background: #3c423f; margin-top: 5px; overflow: hidden; } #zindan-ui .tk-meter i { display: block; width: 100%; height: 100%; background: #a8c18a; transition: width .15s; }
#zu-can-kutu { position: absolute; left: 22px; bottom: 22px; width: 250px; padding: 12px 16px; }
#zu-can-kutu b, #zu-silah-kutu b { font: 32px/1 Georgia, serif; font-variant-numeric: tabular-nums; display: inline-block; margin-top: 4px; margin-left: 6px; }
#zindan-ui.dusuk #zu-can-bar { background: var(--tk-red); } #zindan-ui.dusuk #zu-can-n { color: #ffb4a3; }
.zu-yetenek { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; } .zu-yetenek span { font-size: 9px; letter-spacing: 1.5px; padding: 3px 7px; border: 1px solid #e2b25a90; color: #ffe2a3; }
#zu-silah-kutu { position: absolute; right: 22px; bottom: 22px; width: 290px; padding: 12px 16px; text-align: right; }
#zu-yedek { color: var(--tk-muted); margin-left: 6px; font-size: 13px; } #zindan-ui #zu-doldur-bar { background: var(--tk-gold); width: 0; }
#zu-silahlar { display: flex; gap: 4px; justify-content: flex-end; margin-top: 9px; } #zu-silahlar span { font-size: 11px; padding: 4px 8px; border: 1px solid #7f867860; color: var(--tk-muted); }
#zu-silahlar span.secili { border-color: var(--tk-gold); color: #ffe2a3; background: #3f3a26; }
/* 2026-11-28 (Yusuf): efsun hakkı kartı silah kutusunun hemen üstünde; kırmızı = ne yapmalı, yeşil = kazandın */
#zu-efsun { position: absolute; right: 0; bottom: calc(100% + 10px); width: max(100%, 240px); box-sizing: border-box; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left; padding: 10px 14px; border-radius: 10px; background: #2a1012eb; border: 2px solid #d9573f; color: #ffe2dc; box-shadow: 0 0 14px #d9573f66, 0 8px 24px #000a; }
#zu-efsun:empty { display: none; }
#zu-efsun i { grid-row: span 2; font-style: normal; font-size: 30px; line-height: 1; }
#zindan-ui #zu-efsun b { font: 700 13px/1.25 system-ui, sans-serif; letter-spacing: .05em; margin: 0; display: block; }
#zu-efsun small { font-size: 11px; opacity: .85; }
#zu-efsun.var { background: #0f2a17eb; border-color: #5fd27a; color: #dcffe4; box-shadow: 0 0 22px #5fd27a88, 0 8px 24px #000a; animation: zu-efsun-kazan .6s ease-out; }
@keyframes zu-efsun-kazan { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #zu-efsun.var { animation: none; } }
#zu-guc { display: block; font: 700 11px/1 system-ui; letter-spacing: 1.6px; color: #ffd36b; text-shadow: 0 0 8px #ffb02a80; margin-bottom: 4px; } #zu-guc:empty { display: none; }
#zu-olum { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); text-align: center; background: #141a1dd8; border: 1px solid #d9573f80; padding: 16px 28px; min-width: 300px; max-width: 92vw; }
#zu-olum h2 { font: normal 26px Georgia, serif; margin: 6px 0; } #zu-olum p { color: var(--tk-muted); margin: 0; font-size: 12px; } #zu-olum #zu-izle { color: #8dffb0; margin-top: 6px; font-weight: 700; } #zu-izle:empty { display: none; }
body.zindan-tufek #gorev, body.zindan-tufek #gorev-ok, body.zindan-tufek #ipucu { display: none !important; } body.zindan-tufek #sohbet { bottom: 170px; } /* zindanda görev kutusu ve tuş şeridi gizli, sohbet can panelinin üstünde */
@media (max-width: 700px) { #zu-can-kutu { width: auto; left: 10px; bottom: 10px; } #zu-silah-kutu { width: auto; right: 10px; bottom: 10px; } .zu-yetenek { display: none; } }
/* Faz 107: parti daveti soru kartı (önde, ortada üstte) */
#parti-sor { position: fixed; top: 120px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(92vw, 360px); padding: 14px 16px 10px; border-radius: 10px; background: rgba(22, 26, 20, .94); border: 1px solid #c9a24a; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); color: #efe6d2; text-align: center; font-size: 14px; }
#parti-sor[hidden] { display: none; }
#parti-sor p { margin: 4px 0 8px; } #parti-sor .not { color: #f0b46a; font-size: 12px; }
#parti-sor .dugmeler { justify-content: center; gap: 10px; margin: 6px 0 4px; }
#parti-sor small { color: #a99f8a; font-size: 11px; }
/* Faz 111: MAX (heybedeki tanelerin hepsi) menünün altında iki sütun boyunca */
.adet-menu [data-adet="max"] { grid-column: 1 / -1; }
/* Maç sonu karnesi (ortak; main.js karneHtml): takımlar ayrı bloklar, kendi satırın vurgulu, yıldız ⭐. */
.karne { width: 100%; border-collapse: collapse; margin: 12px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.karne th { font-size: 11px; font-weight: 600; color: var(--soluk); text-align: right; padding: 0 8px 4px; }
.karne td { text-align: right; padding: 4px 8px; border-top: 1px solid #ffffff14; }
.karne td:first-child, .karne th:first-child { text-align: left; white-space: nowrap; }
.karne td:first-child i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.karne tbody + tbody tr:first-child td { border-top: 2px solid #ffffff38; }
.karne tr.ben td { background: #e8c5471f; color: #fff2cc; font-weight: 600; }
/* Demirci tamir: hepsini tamir et satırı (listenin üstünde). */
.tamir-hepsi { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 8px; padding: 10px 12px; border: 1px solid var(--altin); border-radius: 6px; background: #e8c5470f; }
.tamir-hepsi small { color: var(--soluk); }
/* ---- Dokunmatik (telefon / tablet, ?touch; src/dokunmatik.js): Çayır Muhafızı düzeni. Solda beliren joystick, sağda bakış,
   sağ altta yuvarlak düğmeler, sağ üstte pencere çubuğu. HUD küçülür; pencereler sığsın diye ölçeklenir. ---- */
body.dokun, body.dokun canvas { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
#dokun { position: absolute; inset: 0; pointer-events: none; } /* z-index yok: bölgeler HUD'ın en altında, düğmeler en üstünde ayrı ayrı sıralanır */
#dokun[hidden] { display: none; }
#dokun .d-bolge { position: absolute; top: 0; bottom: 0; pointer-events: auto; touch-action: none; z-index: -1; } /* 2026-11-15: -1, yoksa takım çubuğu, görev kartı, mini harita dokunuşlarını yutuyordu */
#dokun .d-bolge.sol { left: 0; width: 42%; }
#dokun .d-bolge.sag { left: 42%; right: 0; }
#dokun .d-cubuk { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 6; pointer-events: none; }
#dokun .d-cubuk.bos { transform: none !important; left: calc(104px + env(safe-area-inset-left)); top: auto; bottom: calc(104px + env(safe-area-inset-bottom)); opacity: .32; }
#dokun .d-cubuk::before { content: ""; position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; background: #16251fb0; border: 2px solid #f6efd955; box-shadow: 0 6px 24px #0008; }
#dokun .d-cubuk i { position: absolute; left: -27px; top: -27px; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6de, #e6c25a); box-shadow: 0 4px 14px #0008; }
#dokun .d-dugmeler { position: absolute; right: calc(16px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 250px; height: 250px; z-index: 6; pointer-events: none; }
#dokun .d-btn { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #16251fd9; border: 2px solid #f6efd955; color: #f6efd9; box-shadow: 0 6px 20px #0008; pointer-events: auto; touch-action: none; transition: transform .08s, background .12s; }
#dokun .d-btn[hidden] { display: none; }
#dokun .d-btn b { font: 900 12px/1 system-ui, sans-serif; letter-spacing: 1px; }
#dokun .d-btn small { font: 800 7px/1 system-ui, sans-serif; letter-spacing: 1px; margin-top: 4px; opacity: .8; }
#dokun .d-btn.on { transform: scale(.9); background: #43563ee6; }
#dokun .d-btn[data-t=vur] { right: 0; bottom: 0; width: 96px; height: 96px; background: #c9a13de6; color: #1d1a10; border-color: #fff3; }
#dokun .d-btn[data-t=vur] b { font-size: 16px; }
#dokun .d-btn[data-t=vur].on { background: #e6c25a; }
/* 2026-11-15: takım düğmesi yok (alt çubuktaki numaraya dokunulur); ATIL vuruşun soluna, ZIPLA ikisinin üstüne indi: küçük haritanın altı açık. */
#dokun .d-btn[data-t=atil] { right: 102px; bottom: 4px; width: 72px; height: 72px; border-color: #8fd0ff88; }
#dokun .d-btn[data-t=zipla] { right: 78px; bottom: 84px; width: 62px; height: 62px; }
#dokun .d-btn:is([data-t=e], [data-t=f], [data-t=q]) { width: 54px; height: 54px; border-color: #e6c25a; }
#dokun .d-btn:is([data-t=e], [data-t=f], [data-t=q]) b { font-size: 18px; color: #ffd86b; }
#dokun .d-btn[data-t=e] { right: 14px; bottom: 108px; background: #5a4410e6; }
#dokun .d-btn[data-t=f] { right: 150px; bottom: 96px; }
#dokun .d-btn[data-t=q] { right: 186px; bottom: 26px; border-color: #ff8a7a; }
#dokun .d-btn[data-t=q] b { color: #ff9c8a; }
#dokun .d-ust { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); display: flex; gap: 6px; pointer-events: auto; z-index: 7; }
#dokun .d-ust button { width: 40px; height: 40px; padding: 0; font-size: 19px; border-radius: 10px; background: #16251fe8; border: 1px solid var(--cizgi); color: var(--krem); }
#dokun .d-daha { position: absolute; top: calc(56px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); display: grid; grid-template-columns: repeat(5, 76px); gap: 5px; padding: 7px; background: #16251ff2; border: 1px solid var(--cizgi); border-radius: 10px; pointer-events: auto; z-index: 8; }
#dokun .d-daha[hidden] { display: none; }
#dokun .d-daha button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px; font-size: 11px; border-radius: 8px; background: #22362ae8; border: 1px solid var(--cizgi); color: var(--krem); }
#dokun .d-daha button i { font-style: normal; font-size: 20px; }
/* HUD dokunmatikte: üstteki araç çubuğu menüde (Ses, Müzik), ipucu satırı yok, harita ve görev küçük, istem dokunulur (E). */
body.dokun #toptools, body.dokun #ipucu, body.dokun #tikla { display: none !important; }
body.dokun #mini { top: calc(54px + env(safe-area-inset-top)); right: 10px; width: 88px; height: 88px; }
body.dokun #gorev { position: relative; inset: auto; width: 250px; font-size: 11px; padding: 6px 9px; gap: 0; border-radius: 8px; pointer-events: auto; } /* sol sütuna taşınır (main.js): sağ altta düğmeler var */
body.dokun #sol-sutun { left: calc(10px + env(safe-area-inset-left)); top: 40px; gap: 4px; zoom: .85; }
body.dokun #istem { pointer-events: auto; bottom: auto; top: 54px; white-space: normal; width: max-content; max-width: min(520px, 60vw); font-size: 12px; padding: 7px 12px; }
body.dokun #alt-cubuk { bottom: 6px; left: 46%; transform: translateX(-50%) scale(.72); transform-origin: 50% 100%; }
body.dokun #cubuk { pointer-events: auto; }
body.dokun #cubuk div { touch-action: manipulation; }
body.dokun #mini { pointer-events: auto; }
body.dokun #cubuk-ad { display: none; }
/* Ekran sadeleştirmesi (2026-11-14): oyun adı ve bağlantı satırı yok; görev kartı yalnız asıl görevi gösterir (dokununca açılır);
   bildirim satırları sol sütunda görevin altında, en çok üçü (sol altta joystick var); sohbet açılınca eski yerinde. */
body.dokun .marka > b, body.dokun #durum { display: none; }
body.dokun #ust { padding: 8px 10px; }
body.dokun .marka :is(#cuzdan, #iyilik, #gunsaat, #unvan) { margin-top: 0; }
body.dokun #gorev::before, body.dokun #gorev .muhtar-yuz, body.dokun #gorev .gorev-gizle { display: none; }
body.dokun #gorev:not(.genis):has(.gorev-alt) :is(.eyebrow, q, .gunluk-bas, .gunluk) { display: none; }
body.dokun #gorev:not(.genis):has(.gorev-alt) { padding-right: 22px; }
body.dokun #gorev:has(.gorev-alt)::after { content: "▾"; position: absolute; right: 7px; top: 3px; color: #c9a24a; font-size: 13px; }
body.dokun #gorev.genis::after { content: "▴"; }
body.dokun #sohbet { position: static; width: 300px; font-size: 11.5px; }
body.dokun #sohbet:not(.acik) #sohbet-liste { padding: 0; }
body.dokun #sohbet:not(.acik) #sohbet-liste li:nth-last-child(n+4) { display: none; }
body.dokun #sohbet.acik { position: fixed; left: 10px; bottom: 70px; width: min(390px, 46vw); pointer-events: auto; z-index: 8; }
/* Boss çubuğu ve geri sayımı: üstte, sol haplarla sağ düğmelerin arasındaki boşlukta; tek satır ad + süre, altında ince can çubuğu, sıralama yok. */
body.dokun #hud #dunya-boss { top: calc(6px + env(safe-area-inset-top)); left: var(--boss-sol, calc(50vw - 36px)); width: var(--boss-en, clamp(130px, calc(100vw - 520px), 300px)); grid-template-columns: 1fr auto; gap: 3px 8px; padding: 4px 8px 5px; font-size: 11px; }
body.dokun #dunya-boss .db-sure { order: 2; }
body.dokun #dunya-boss .db-cubuk { order: 3; grid-column: 1 / -1; height: 13px; }
@media (max-width: 760px) { body.dokun .marka #iyilik { display: none; } } /* dar telefonda boss çubuğuna yer */
body.dokun #dunya-boss .db-yuzde { font-size: 9px; }
body.dokun #dunya-boss .db-sira { display: none; }
body.dokun #hud #dunya-boss.bekle { width: max-content; padding: 3px 9px; }
body.dokun:is(.macta, .tetikte, .karanalda, :has(#skor:not([hidden]), #hisar-ui:not([hidden]), #akin-hud:not([hidden]), #kale:not([hidden]))) #hud #dunya-boss { top: var(--boss-ust, 64px); left: 50%; } /* maçta maç şeridinin altına yapışır */
body.dokun #dunya-boss:not([hidden]) ~ #gece-uyari { top: max(92px, calc(var(--boss-alt, 40px) + 8px)); }
/* 2026-11-15: sohbet satırları 💬 ile açılır / kapanır (kapalıyken yeni söz gelince düğmede nokta); gizli görev kartı küçük; vuruş sayıları küçük; çevrim içi bilgisi ⋯ çekmecesinde. */
body.dokun.sohbet-gizli #sohbet:not(.acik) { display: none; }
body.dokun #sohbet { pointer-events: auto; }
#dokun .d-ust button { position: relative; }
#dokun .d-ust button.yeni::after { content: ""; position: absolute; right: 4px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #ff5a4a; border: 1px solid #16251f; }
body.dokun:not(.sohbet-gizli) #dokun .d-ust [data-u=sohbet] { border-color: var(--altin); background: #4a3a10e8; }
#dokun .d-daha .d-durum { grid-column: 1 / -1; margin: 0 0 2px; font-size: 11px; color: var(--soluk); text-align: center; }
body.dokun #gorev.gizli { width: auto; padding: 3px 5px; }
body.dokun #gorev kbd { display: none; }
body.dokun .hasar-sayi { font-size: 12px; }
body.dokun .hasar-sayi:is(.aldim, .akin-kalkan) { font-size: 13px; }
body.dokun .hasar-sayi:is(.kritik, .akin-kilic) { font-size: 16px; }
body.dokun .hasar-sayi:is(.kazanc, .delici, .kirici, .akin-yara) { font-size: 14px; }
body.dokun .hasar-sayi.akin-kilic.uzak { font-size: 10px; }
body.dokun .hasar-sayi small { font-size: 7px; }
body.dokun .harita-ust span { display: none; }
body.dokun .harita-ust::after { content: "Sürükle: kaydır · İki parmak: yakınlaştır · Dokun: işaret koy / kaldır"; font-size: 12px; color: var(--soluk); }
body.dokun #sozler { left: 10px; bottom: 70px; pointer-events: auto; z-index: 8; font-size: 14px; }
body.dokun #sozler div { padding: 7px 4px; }
body.dokun #skor, body.dokun #kale { top: 6px; transform: translateX(-50%) scale(.85); transform-origin: 50% 0; }
/* Pencereler küçük ekrana sığsın (dokunmatikte tıklanan yerler yine parmak boyu). */
@media (max-height: 560px), (max-width: 760px) { body.dokun dialog:not(#harita) { zoom: .72; } body.dokun header#ust { zoom: .8; } }
/* Dikey tutulan telefon: yan çevir perdesi. */
#dondur { display: none; }
@media (orientation: portrait) and (max-width: 760px) { body.dokun #dondur { position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #16251f; color: var(--krem); text-align: center; padding: 30px; } body.dokun #dondur b { font-size: 26px; color: var(--altin); } }

/* Arkadaşlık isteği kartı (parti daveti kartıyla aynı görünüş) ve düğmedeki bekleyen istek sayısı */
.sor-kart { position: fixed; top: 120px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(92vw, 360px); padding: 14px 16px 10px; border-radius: 10px; background: rgba(22, 26, 20, .94); border: 1px solid #c9a24a; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); color: #efe6d2; text-align: center; }
.sor-kart[hidden] { display: none; }
.sor-kart p { margin: 4px 0 8px; }
.sor-kart .dugmeler { justify-content: center; gap: 10px; margin: 6px 0 4px; }
.sor-kart small { color: #a99f8a; font-size: 11px; }
.rozet { display: inline-block; min-width: 16px; margin-left: 5px; padding: 0 4px; border-radius: 8px; background: #c0392b; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.rozet[hidden] { display: none; }

/* Seyiste basım (2026-11-12): örs ve çekiç yerine dörtnala koşan at. Eşya hücresi sol üstte küçük durur. */
.basim-anim.at .ba-esya { left: 6px; top: 0; bottom: auto; transform: scale(.72); transform-origin: 0 0; }
.basim-anim.at.gerilim .ba-esya { animation: none; }
.basim-anim.at { --at-hiz: .44s; } .basim-anim.at.yuksek { --at-hiz: .36s; } .basim-anim.at.gerilim { --at-hiz: .22s; }
.basim-anim .ba-at { position: absolute; left: 50%; bottom: 24px; font-size: 88px; line-height: 1; transform: translateX(-50%); filter: drop-shadow(0 6px 6px #0009); animation: ba-dortnal var(--at-hiz) ease-in-out infinite; }
@keyframes ba-dortnal { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(5deg); } 50% { transform: translateX(-50%) translateY(-15px) rotate(-7deg); } }
.basim-anim .ba-yer { position: absolute; left: 0; right: 0; bottom: 16px; height: 4px; border-radius: 2px; opacity: .85; background: repeating-linear-gradient(90deg, #c9a26a 0 22px, transparent 22px 40px); animation: ba-yer var(--at-hiz) linear infinite; }
@keyframes ba-yer { to { background-position: 40px 0; } }
.basim-anim .ba-toz { position: absolute; right: 44px; bottom: 20px; width: 14px; height: 14px; border-radius: 50%; background: #c9a26aaa; opacity: 0; }
.basim-anim.at.sac .ba-toz { animation: ba-toz .42s ease-out; }
@keyframes ba-toz { 0% { opacity: .85; transform: scale(.5); } 100% { opacity: 0; transform: translate(28px, -12px) scale(2.4); } }
.basim-anim.at.tuttu .ba-at { animation: ba-sahlan .6s ease-out forwards; filter: drop-shadow(0 0 18px #7dff8acc); }
@keyframes ba-sahlan { to { transform: translateX(-50%) translateY(-12px) rotate(20deg) scale(1.15); } }
.basim-anim.at.yandi .ba-at { animation: ba-kac .9s ease-in forwards; filter: grayscale(1) brightness(.6); }
@keyframes ba-kac { to { transform: translateX(-320%) translateY(0); opacity: 0; } }
.basim-anim.at.tuttu .ba-yer, .basim-anim.at.yandi .ba-yer { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .basim-anim .ba-at, .basim-anim .ba-yer { animation: none; } }

/* +9 basımı (2026-11-12): demirci, kuyumcu ve seyiste ortak heyecan sahnesi. --u: 0…1 ilerleme (JS yazar). */
.basim-anim.dokuz { background: radial-gradient(ellipse at 50% 45%, #3a1f0cf7, #070a08fb 70%); overflow: hidden; }
.basim-anim.dokuz .ba-sahne { overflow: visible; }
.basim-anim .ba-isin { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, #ffd23f40 0 8deg, transparent 8deg 20deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
  opacity: calc(var(--u, 0) * .9); animation: ba-don 9s linear infinite; }
@keyframes ba-don { to { transform: rotate(360deg); } }
.basim-anim .ba-dokuz { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(calc(.9 + var(--u, 0) * .7)); font: 900 96px/1 Georgia, serif; color: #ffd23f; opacity: calc(var(--u, 0) * .28); text-shadow: 0 0 30px #ff9a3a; pointer-events: none; white-space: nowrap; }
.basim-anim.dokuz .ba-isik { transform: translateX(-50%) scale(calc(1 + var(--u, 0) * 1.2)); opacity: calc(.5 + var(--u, 0) * .5); animation: none; }
.basim-anim.dokuz.d2 .ba-isik { background: radial-gradient(ellipse, #ffe2b0b0, transparent 65%); }
.basim-anim.dokuz.vur .ba-kutu { animation: ba-sars .26s linear; }
@keyframes ba-sars { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(calc(var(--u, 0) * -8px), calc(var(--u, 0) * 5px)); } 45% { transform: translate(calc(var(--u, 0) * 7px), calc(var(--u, 0) * -4px)); } 70% { transform: translate(calc(var(--u, 0) * -4px), calc(var(--u, 0) * 2px)); } }
.basim-anim.dokuz .ba-cubuk i { background: linear-gradient(90deg, #e0be6a, #ff5a2e); box-shadow: 0 0 10px #ff8a2e; }
.basim-anim.dokuz .ba-baslik em { font-size: 26px; text-shadow: 0 0 14px #ffb24a; }
.basim-anim.dokuz .ba-yazi { font-size: 14px; color: #ffcf8a; }
.basim-anim.dokuz.gerilim .ba-yazi { color: #ff9a5a; font-size: 15px; }
/* nefes: her şey kısılır, çekiç havada bekler, sahne kalp gibi atar */
.basim-anim.dokuz.nefes .ba-kutu { animation: ba-nefes .6s ease-in-out infinite; } @keyframes ba-nefes { 50% { transform: scale(1.03); } }
.basim-anim.dokuz.nefes .ba-cekic { transform: rotate(64deg); transition: transform .5s ease-out; }
.basim-anim.dokuz.nefes .ba-isin { animation-duration: 40s; }
.basim-anim.dokuz.nefes .ba-yazi { color: #fff3c4; font-size: 16px; letter-spacing: 1px; }
.basim-anim.dokuz::after { content: ''; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, transparent 22%, #000d 78%); opacity: 0; transition: opacity .5s; }
.basim-anim.dokuz.nefes::after { opacity: 1; }
.basim-anim.dokuz.patla::before { content: ''; position: absolute; inset: 0; border-radius: 8px; background: #fff; pointer-events: none; z-index: 3; animation: ba-flas .55s ease-out forwards; }
@keyframes ba-flas { 0% { opacity: .95; } 100% { opacity: 0; } }
/* sonuç */
.basim-anim.dokuz.tuttu .ba-dokuz { color: #fff3c4; text-shadow: 0 0 24px #ffd23f, 0 0 64px #ff9a3a; animation: ba-damga .7s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes ba-damga { 0% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1.7); opacity: .95; } }
.basim-anim.dokuz.tuttu .ba-isin { opacity: 1; background: repeating-conic-gradient(from 0deg, #fff3c470 0 8deg, transparent 8deg 20deg); animation-duration: 4s; }
.basim-anim.dokuz.tuttu .ba-isik { background: radial-gradient(ellipse, #ffe9a8aa, transparent 65%); }
.basim-anim.dokuz.tuttu:not(.at) .ba-esya { box-shadow: 0 0 46px #ffd23fee; z-index: 1; }
.basim-anim.dokuz.tuttu .ba-yazi { font-size: 20px; color: #ffe9a8; text-shadow: 0 0 12px #ffb24a; }
.basim-anim.dokuz.yandi .ba-dokuz { color: #ff3b2e; opacity: .6; animation: ba-dus .9s ease-in forwards; }
@keyframes ba-dus { to { transform: translate(-50%, 70%) rotate(18deg) scale(.7); opacity: 0; } }
.basim-anim.dokuz.yandi .ba-isin { opacity: 0; transition: opacity .3s; }
.basim-anim.dokuz.yandi .ba-kutu { animation: ba-sars2 .5s linear; } @keyframes ba-sars2 { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-9px, 4px); } 45% { transform: translate(8px, -3px); } 70% { transform: translate(-5px, 2px); } }
.basim-anim.dokuz.yandi .ba-yazi { font-size: 20px; }
.basim-anim .ba-parca { position: absolute; left: 50%; top: 46%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.basim-anim .ba-parca i { position: absolute; border-radius: 50%; opacity: 0; animation: ba-firla 1.2s cubic-bezier(.1, .7, .3, 1) var(--g, 0s) forwards; }
@keyframes ba-firla { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }
@media (prefers-reduced-motion: reduce) { .basim-anim .ba-isin, .basim-anim.dokuz .ba-kutu { animation: none !important; } }
.basim-anim.dokuz.yandi .ba-isik { background: radial-gradient(ellipse, #ff3b2e77, transparent 65%); }

/* 2026-11-19 (Yusuf): NPC pencereleri tam ekran, tek iskelet (dükkân, pazar, lüks, lonca, demirci/kuyumcu/seyis, depo).
   Üst şerit: ad · iş · sekmeler · ju · Esc Kapat. Gövde: sol (seçim), orta (satırlar), sağ (ayrıntı + tek ana düğme); altta heybe şeridi. */
dialog.npc:not(#harita) { inset: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; border-radius: 0; padding: 0; background: #14231c; overflow: hidden; box-shadow: none; }
dialog.npc[open] { display: flex; flex-direction: column; }
dialog.npc::backdrop { background: #0b130f; backdrop-filter: none; }
dialog.npc > .npc-ic { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.npc-serit { display: flex; align-items: center; gap: 14px; padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left)); background: linear-gradient(#1c3128, #172a22); border-bottom: 1px solid #2c4436; border-top: 4px solid var(--tente, var(--altin)); flex-wrap: wrap; flex: none; }
.npc-ad { display: grid; line-height: 1.15; min-width: 0; }
.npc-ad b { font: 400 22px Georgia, serif; }
.npc-ad small { color: #8a977f; font-size: 12px; }
.npc-sekmeler { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.npc-sekmeler > button { padding: 6px 14px; font-size: 13px; }
.npc-sekmeler > button.secili { border-color: var(--altin); background: #2c4535; color: var(--altin); }
.npc-sekmeler .basim-atla { margin-left: 8px; }
.npc-bosluk { flex: 1; }
.npc-ju { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--altin); white-space: nowrap; }
.npc-kapat { padding: 5px 11px; font-size: 12px; color: var(--soluk); }
.npc-kapat kbd { margin-right: 6px; }
.npc-govde { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr) 360px; }
.npc-govde.sagsiz { grid-template-columns: 250px minmax(0, 1fr); }
.npc-kolon { min-height: 0; min-width: 0; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.npc-kolon + .npc-kolon { border-left: 1px solid #2c4436; }
.npc-sag { background: #12211b; }
.npc-kolon > p, .npc-kolon .durum-yazi { margin: 0; }
.npc-kolon .eyebrow { margin: 0; }
.npc-not { color: #8a977f; font-size: 12px; margin: 0; line-height: 1.45; }
.npc-ara { width: 100%; box-sizing: border-box; }
/* sol ağaç */
.npc-agac { display: grid; gap: 2px; }
.npc-agac .grup { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #8a977f; text-transform: uppercase; padding: 10px 8px 3px; }
.npc-agac .grup:first-child { padding-top: 0; }
.npc-agac > button { text-align: left; background: transparent; border-color: transparent; padding: 6px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.npc-agac > button:hover { background: #22362c; }
.npc-agac > button.secili { background: #2c4535; box-shadow: inset 3px 0 var(--altin); }
.npc-agac > button small { color: #8a977f; font-variant-numeric: tabular-nums; }
.npc-agac > button.esyali { justify-content: flex-start; padding: 5px 8px; }
.npc-agac > button.esyali > span { display: grid; line-height: 1.25; min-width: 0; }
.npc-agac > button.esyali small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* satır tablosu */
.npc-tablo { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.npc-tablo th { text-align: left; font-size: 10px; letter-spacing: 1.6px; color: #8a977f; font-weight: 700; text-transform: uppercase; padding: 0 10px 8px; border-bottom: 1px solid #2c4436; position: sticky; top: -14px; background: #14231c; z-index: 1; }
.npc-tablo td { padding: 7px 10px; border-bottom: 1px solid #ffffff0d; vertical-align: middle; }
.npc-tablo .sagda { text-align: right; }
.npc-tablo tr[data-sec] { cursor: pointer; }
.npc-tablo tr[data-sec]:hover td { background: #1e352c; }
.npc-tablo tr.secili td { background: #2a4334; }
.npc-tablo tr.secili td:first-child { box-shadow: inset 3px 0 var(--altin); }
.npc-tablo tr.soluk td { color: #8a977f; }
.npc-tablo tr.alt-satir td:first-child { padding-left: 58px; }
.npc-esya { display: flex; align-items: center; gap: 10px; min-width: 0; }
.npc-esya > span { display: grid; line-height: 1.3; min-width: 0; }
.npc-esya b { font-weight: 600; }
.npc-esya small { color: #8a977f; font-size: 12px; }
.hucre.kucuk { width: 38px; height: 38px; flex: none; cursor: inherit; }
.hucre.kucuk i { font-size: 18px; font-style: normal; }
.hucre.buyuk { width: 60px; height: 60px; flex: none; cursor: default; }
.hucre.buyuk i { font-size: 30px; font-style: normal; }
.npc-simge { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 18px; border-radius: 6px; border: 1px solid #ffffff14; background: #13221b; font-style: normal; }
.npc-simge.buyuk { width: 60px; height: 60px; font-size: 30px; }
.npc-simge .blok { width: 20px; height: 20px; border-radius: 3px; display: block; }
.npc-rozet { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--cizgi); color: var(--soluk); white-space: nowrap; font-weight: 400; }
.npc-rozet.altin { color: var(--altin); border-color: #e0be6a66; }
.npc-rozet.iyi { color: #7fd38a; border-color: #7fd38a55; }
.npc-rozet.kotu { color: #ff7b6b; border-color: #ff7b6b55; }
.npc-fiyat { font-weight: 700; white-space: nowrap; }
.npc-fiyat::before { content: "◉ "; color: var(--altin); font-weight: 400; }
/* sağ ayrıntı */
.npc-bas { display: flex; gap: 12px; align-items: center; }
.npc-bas > span { display: grid; gap: 2px; min-width: 0; }
.npc-bas h3 { font: 400 20px/1.2 Georgia, serif; margin: 0; }
.npc-bas small { color: #8a977f; }
.npc-ozellik { display: grid; grid-template-columns: 1fr auto auto; gap: 5px 12px; font-variant-numeric: tabular-nums; align-items: baseline; }
.npc-ozellik > span:nth-child(3n+1) { color: var(--soluk); }
.npc-ozellik > b { text-align: right; }
.npc-fark { font-size: 12px; text-align: right; min-width: 64px; color: #8a977f; }
.npc-fark.iyi { color: #7fd38a; } .npc-fark.kotu { color: #ff7b6b; }
.npc-ayrac { border: 0; border-top: 1px solid #2c4436; margin: 2px 0; width: 100%; }
.npc-kutu { border: 1px solid #2c4436; border-radius: 5px; padding: 10px 12px; background: #11201a; display: grid; gap: 4px; font-size: 13px; }
.npc-kutu.uyari { border-color: #f0a94a55; background: #2a2215; color: #f5d6a8; }
.npc-kutu.tehlike { border-color: #ff7b6b55; background: #2a1915; color: #ffc7bd; }
.npc-isaret-kutu { grid-template-columns: auto 1fr; align-items: start; gap: 10px; cursor: pointer; }
.npc-isaret-kutu:hover { border-color: #e0be6a66; }
.npc-isaret-kutu.secili { border-color: #7fd38a88; background: #15291f; }
.npc-isaret-kutu input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #7fd38a; cursor: pointer; }
.npc-isaret-kutu span { display: grid; gap: 3px; }
.npc-isaret-kutu small { color: #8a977f; font-size: 12px; }
.npc-isaret-kutu.secili b { color: #7fd38a; }
.npc-dugme { margin-top: auto; display: grid; gap: 6px; padding-top: 6px; position: relative; }
.npc-dugme .birincil { width: 100%; }
.npc-dugme .npc-not { text-align: center; }
.npc-dugme .adet-sec { justify-self: stretch; }
.npc-dugme .adet-sec > button { width: 100%; }
.npc-buyuk { font: 400 44px/1 Georgia, serif; color: var(--altin); font-variant-numeric: tabular-nums; }
.npc-gecis { display: flex; align-items: center; gap: 10px; font: 400 22px Georgia, serif; flex-wrap: wrap; }
.npc-gecis span { color: #8a977f; font-size: 16px; }
.npc-cubuk { height: 6px; background: #0f1b16; border-radius: 3px; overflow: hidden; min-width: 50px; }
.npc-cubuk i { display: block; height: 100%; background: var(--altin); }
.npc-sans { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: center; }
.npc-merdiven tr.gecti td { color: #8a977f; }
.npc-merdiven tr.simdi td { background: #1e352c; }
.npc-merdiven tr.hedef td { background: #3a3320; }
.npc-merdiven tr.hedef td:first-child { box-shadow: inset 3px 0 var(--altin); }
.npc-merdiven td { padding: 6px 10px; }
.npc-merdiven td.etki { font-size: 12.5px; color: var(--soluk); }
/* yuva yuva birleştirme */
.npc-birlestir { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.npc-birlestir.iki { grid-template-columns: 1fr auto 1fr; }
.npc-slot { border: 1px dashed #4a6352; border-radius: 6px; padding: 12px 10px; display: grid; justify-items: center; gap: 6px; text-align: center; min-height: 120px; align-content: center; }
.npc-slot.dolu { border-style: solid; border-color: #e0be6a66; background: #1b2f26; }
.npc-slot small { color: #8a977f; font-size: 12px; }
.npc-satirlar { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12.5px; color: #d9d2bb; text-align: left; }
.npc-kutu .npc-satirlar { margin-bottom: 4px; }
.npc-satirlar li.yeni, .kart-satir li.yeni { color: #7fd38a; font-weight: 600; }
.npc-isaret { font-size: 22px; color: #8a977f; text-align: center; }
.npc-adaylar { display: flex; flex-wrap: wrap; gap: 6px; }
.npc-adaylar .hucre { cursor: pointer; }
.npc-adaylar .hucre.takili { outline: 2px solid var(--altin); }
/* pazar */
.npc-defter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.npc-defter h4 { margin: 0 0 4px; font-size: 10px; letter-spacing: 1.4px; color: #8a977f; }
.npc-defter table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
.npc-defter td { padding: 2px 4px; }
.npc-defter tr[data-fiyat] { cursor: pointer; }
.npc-defter tr[data-fiyat]:hover td { background: #1e352c; }
.npc-defter .s td:first-child { color: #ff9f8f; } .npc-defter .a td:first-child { color: #8fdc9a; }
.npc-defter td + td { text-align: right; color: var(--soluk); }
.npc-adim { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; }
.npc-adim button { padding: 6px 10px; }
.npc-adim input { min-width: 0; width: 100%; box-sizing: border-box; }
.npc-cift { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.npc-cift > button.secili { border-color: var(--altin); background: #2c4535; color: var(--altin); }
/* lüks */
.npc-aura { height: 200px; border-radius: 6px; background: radial-gradient(circle at 50% 75%, #24402f, #0f1b16 70%); border: 1px solid #2c4436; overflow: hidden; flex: none; }
.npc-aura canvas { width: 100%; height: 100%; display: block; }
/* lonca kartı (sağ) */
.npc-sag .lonca-sayilar { grid-template-columns: repeat(2, 1fr); }
.npc-sag .lonca-ust h2 { font-size: 22px; margin: 0; }
/* depo: iki sütun orta kolonda */
.npc-orta .depo-iki { flex: 1 1 auto; min-height: 0; }
@media (max-width: 1150px) { .npc-govde { grid-template-columns: 210px minmax(0, 1fr) 300px; } .npc-govde.sagsiz { grid-template-columns: 210px minmax(0, 1fr); } }
@media (max-width: 860px) {
  .npc-govde, .npc-govde.sagsiz { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .npc-kolon { overflow: visible; }
  .npc-kolon + .npc-kolon { border-left: 0; border-top: 1px solid #2c4436; }
  .npc-agac { grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .npc-agac .grup { display: none; }
  .npc-tablo .dar-gizle { display: none; }
  .npc-tablo th { position: static; }
  .npc-birlestir, .npc-birlestir.iki { grid-template-columns: 1fr; }
}
@media (max-height: 560px), (max-width: 760px) { body.dokun dialog.npc:not(#harita) { zoom: 1; } }
.npc-ara, .npc-kolon .esya-sira, .npc-sag input[type=text], .npc-sag input[type=number], .npc-orta .lonca-bagis input { background: #0f1c16; border: 1px solid var(--cizgi); border-radius: 4px; color: var(--krem); padding: 8px 11px; font: inherit; }
.npc-kolon .esya-sira { padding: 6px 8px; font-size: 13px; }
.npc-sag label .esya-sira { margin-left: 6px; }
.npc-kolon .eyebrow { text-transform: uppercase; }
.npc-defter td:first-child { text-align: left; }
@media (max-width: 860px) { .npc-govde, .npc-govde.sagsiz { grid-auto-rows: max-content; align-content: start; } .npc-kolon { min-height: auto; } .npc-serit { gap: 8px; padding-top: 6px; padding-bottom: 6px; } .npc-ad small { display: none; } .npc-ad b { font-size: 18px; } .npc-sekmeler > button { padding: 5px 10px; } .npc-dugme { margin-top: 6px; } .npc-buyuk { font-size: 34px; } }
.npc-govde.tek { grid-template-columns: minmax(0, 1fr); }
.npc-govde.tek > .npc-orta { width: 100%; max-width: 980px; margin: 0 auto; box-sizing: border-box; }
.npc-govde.solsuz { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 860px) { .npc-govde.tek, .npc-govde.solsuz { grid-template-columns: minmax(0, 1fr); } }
/* 2026-11-20: basım evinin açılır kapanır ağacı ve tamirde "Hepsini tamir et" şeridi */
.basim-agac { gap: 1px; }
.npc-agac > button.dal { font-weight: 600; padding: 7px 8px; }
.npc-agac > button.dal span { display: flex; gap: 6px; align-items: center; }
.npc-agac > button.dal i { font-style: normal; color: var(--altin); width: 12px; display: inline-block; }
.npc-agac > button.dal.alt { padding-left: 22px; font-weight: 500; color: var(--soluk); }
.npc-agac > button.dal.acik { color: var(--krem); }
.basim-agac > button.esyali { padding-top: 4px; padding-bottom: 4px; }
.basim-agac .hucre.kucuk { width: 34px; height: 34px; }
.npc-hepsi { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 6px; background: #233a2f; border: 1px solid #e0be6a66; flex-wrap: wrap; }
.npc-hepsi > span { display: grid; }
.npc-hepsi .birincil { padding: 11px 18px; }
.npc-agac > button.dal span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npc-agac > button.dal .dal-sayi { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.npc-agac > button.dal .dal-sayi em { font-style: normal; font-weight: 700; font-size: 11px; color: var(--altin); border: 1px solid #e0be6a55; border-radius: 9px; padding: 0 6px; min-width: 28px; text-align: center; }

/* ===== 2026-11-20 arayüz düzeni (Black Desert esinli), yalnız masaüstü =====
   Dört küme: sol üst karakter plakası · sağ üst simge sırası + saat + küçük harita + bölge + görev · alt orta iş kartı, can, takım · sol alt sohbet.
   Okunurluk kuralı: oyun alanının üstünde hiçbir yazı ve çubuk zeminsiz durmaz, hep koyu cam plakada (--cam). Çubuk renkleri anlamına göre:
   can kırmızı, XP ve dolum altın, dayanıklılık yeşil. Telefon düzeni (body.dokun) bu bölümden etkilenmez. */
:root { --cam: #0e1a15e0; --cam-kenar: #ffffff2a; }
#plaka-sv, #plaka-ad { display: none; }
.sd { position: relative; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; background: var(--cam); border: 1px solid var(--cam-kenar); border-radius: 4px; color: var(--soluk); cursor: pointer; box-shadow: 0 2px 10px #0006; }
.sd:hover { color: var(--altin); border-color: var(--altin); background: #1a2c24; }
.sd svg { width: 20px; height: 20px; }
.sd .tus { position: absolute; right: 2px; bottom: 0; font-size: 9px; font-weight: 700; color: var(--sonuk, #8a977f); }
.sd .rozet { position: absolute; right: -5px; top: -5px; }
.sd[data-ipucu]:hover::after { content: attr(data-ipucu); position: absolute; top: 44px; right: 0; white-space: nowrap; background: #0f1b16; border: 1px solid #2c4436; padding: 4px 8px; border-radius: 3px; font-size: 12px; color: var(--krem); z-index: 9; pointer-events: none; }
#toptools .eski { display: none; }
/* oyuna girmeden (giriş ekranı) simgeler yok, josephuz.com bağlantısı var; oyundayken tersi */
#app:not(:has(#hud:not([hidden]))) #toptools .sd { display: none; }
#app:has(#hud:not([hidden])) #toptools .giris-link { display: none; }

body:not(.dokun) #app:has(#hud:not([hidden])) .marka {
  display: grid; grid-template-columns: 56px auto auto auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 3px 12px;
  background: var(--cam); border: 1px solid var(--cam-kenar); border-radius: 4px; padding: 9px 16px 9px 10px; box-shadow: 0 2px 10px #0006; backdrop-filter: blur(6px);
}
body:not(.dokun) #app:has(#hud:not([hidden])) .marka > b { display: none; }
body:not(.dokun) #app:has(#hud:not([hidden])) #plaka-sv:not([hidden]) { display: grid; grid-row: 1 / 3; grid-column: 1; width: 52px; height: 52px; border-radius: 50%; place-items: center; position: relative;
  background: conic-gradient(var(--altin) 0 calc(var(--r, 0) * 100%), #ffffff1f 0 100%); }
body:not(.dokun) #plaka-sv::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0f1b16; }
body:not(.dokun) #plaka-sv b { position: relative; display: block; font: 400 19px/1 Georgia, serif; letter-spacing: 0; color: var(--krem); text-shadow: none; }
body:not(.dokun) #plaka-sv small { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 9px; letter-spacing: .5px; color: var(--altin); background: #0f1b16; padding: 0 4px; border-radius: 3px; text-shadow: none; }
body:not(.dokun) #app:has(#hud:not([hidden])) #plaka-ad { display: block; grid-row: 1; grid-column: 2; font: 400 18px/1.1 Georgia, serif; color: var(--krem); white-space: nowrap; }
body:not(.dokun) #app:has(#hud:not([hidden])) #durum { grid-row: 1; grid-column: 3 / 6; margin: 0; color: var(--soluk); text-shadow: none; white-space: nowrap; }
body:not(.dokun) #app:has(#hud:not([hidden])) .marka :is(#cuzdan, #iyilik, #unvan) { grid-row: 2; margin: 0; background: none; border: 0; padding: 0; font-size: 13px; }
body:not(.dokun) #app:has(#hud:not([hidden])) .marka #cuzdan { grid-column: 2; }
body:not(.dokun) #app:has(#hud:not([hidden])) .marka #iyilik { grid-column: 3; }
body:not(.dokun) #app:has(#hud:not([hidden])) .marka #unvan { grid-column: 4; background: #5c3e0ce0; border: 1px solid #c9a24a; border-radius: 10px; padding: 0 8px; font-size: 11px; }
body:not(.dokun) .marka #cuzdan b, body:not(.dokun) .marka #iyilik b { font-size: 13px; }
body:not(.dokun) #sol-sutun { top: 104px; }

/* sağ sütun: simgeler (üst çubukta) · saat · küçük harita · bölge · görev */
body:not(.dokun) #gunsaat { position: absolute; right: 20px; top: 62px; width: 300px; display: block; text-align: center; margin: 0; padding: 3px 10px; font-size: 12px; color: var(--soluk); background: var(--cam); border: 1px solid var(--cam-kenar); border-radius: 4px; }
body:not(.dokun) #gunsaat b { font: 700 12px/1.4 "Segoe UI", system-ui, sans-serif; color: #ffd86b; text-shadow: none; }
body:not(.dokun) #gunsaat.gece { background: #1b1f3ae6; border-color: #7f8cff; } body:not(.dokun) #gunsaat.gece b { color: #b9c2ff; }
body:not(.dokun) #mini { top: 94px; right: 80px; width: 180px; height: 180px; pointer-events: auto; cursor: pointer; box-shadow: 0 0 0 3px #0e1a15cc, 0 4px 14px #0008; }
body:not(.dokun) #yer { position: absolute; right: 20px; top: 282px; width: 300px; max-width: none; text-align: center; padding: 4px 10px; background: var(--cam); border: 1px solid var(--cam-kenar); border-radius: 4px; }
body:not(.dokun) #yer b { font: 400 15px Georgia, serif; color: var(--krem); }
body:not(.dokun) #sol-sutun > #gorev { position: relative; inset: auto; } /* 2026-11-20 (Yusuf): görev kartı sol sütunda, oyuncu kartının altında (main.js taşır) */

/* alt orta: can çubuğu takımın üstünde; XP ekranın en altında ince şerit */
body:not(.dokun) #alt-cubuk { bottom: 30px; flex-direction: column; gap: 6px; }
body:not(.dokun) #kutu-can { order: -1; width: 360px; height: 16px; border-radius: 3px; background: #2a0f0dd9; border: 1px solid #000a; }
body:not(.dokun) #kutu-can i { top: 0; bottom: 0; height: 100% !important; width: calc(var(--r, 1) * 100%); transition: width .25s ease; background: linear-gradient(#e0574c, #a3302a); }
body:not(.dokun) #kutu-can b { display: none; }
body:not(.dokun) #kutu-can small { top: 50%; bottom: auto; transform: translateY(-50%); font-size: 10.5px; color: #fff; text-shadow: 0 1px 2px #000; }
body:not(.dokun) #kutu-xp { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 5px; border: 0; border-radius: 0; background: #000b; overflow: visible; }
body:not(.dokun) #kutu-xp i { top: 0; bottom: 0; height: 100% !important; width: calc(var(--r, 0) * 100%); background: linear-gradient(90deg, #b99545, var(--altin)); }
body:not(.dokun) #kutu-xp b { display: none; }
body:not(.dokun) #kutu-xp small { top: auto; bottom: 8px; left: 50%; right: auto; transform: translateX(-50%); padding: 1px 8px; border-radius: 3px; background: var(--cam); border: 1px solid var(--cam-kenar); font-size: 10.5px; color: var(--krem); }
body:not(.dokun) #kutu-xp small::after { content: " · " attr(data-yuzde); }
body:not(.dokun) #cubuk { background: var(--cam); border-color: var(--cam-kenar); }

/* bağlam kartı: istem (iş, portal, NPC) ve elindeki eşya satırı tek kart olarak takımın üstünde */
body:not(.dokun) #cubuk-ad { bottom: 114px; width: 620px; max-width: calc(100vw - 40px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--cam); border: 1px solid var(--cam-kenar); border-radius: 4px; padding: 4px 12px; color: var(--soluk); }
body:not(.dokun) #istem { bottom: 141px; width: 620px; max-width: calc(100vw - 40px); background: var(--cam); border: 1px solid var(--cam-kenar); border-left: 3px solid var(--altin); border-radius: 4px; text-align: left; padding: 9px 14px; box-shadow: 0 2px 10px #0006; }
body:not(.dokun) #hud:has(#cubuk-ad:not(:empty)) #istem:not([hidden]) { border-radius: 4px 4px 0 0; border-bottom: 0; }
body:not(.dokun) #hud:has(#istem:not([hidden])) #cubuk-ad:not(:empty) { border-radius: 0 0 4px 4px; border-top: 1px solid #ffffff14; border-left: 3px solid var(--altin); }
body:not(.dokun) #istem small { display: inline; }

/* Esc menüsü: arama + solda karakter özeti + ortada karolar + altta çıkış satırı (telefonda da) */
dialog#menu { width: min(1120px, 96vw); max-width: min(1120px, 96vw); background: #12211bf5; border-color: #c9b46e55; border-radius: 4px; }
.esc-pano { display: grid; grid-template-columns: 270px 1fr; grid-template-rows: auto 1fr auto; }
.esc-ust { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #2c4436; }
.esc-marka { font: 400 21px/1 Georgia, serif; letter-spacing: 6px; color: var(--altin); cursor: move; }
.esc-ara { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; border: 1px solid #2c4436; background: #0b1511; border-radius: 3px; padding: 0 10px; }
.esc-ara:focus-within { border-color: var(--altin); }
.esc-ara svg { width: 16px; height: 16px; color: #8a977f; flex: none; }
.esc-ara input { flex: 1; border: 0; background: none; color: var(--krem); padding: 8px 0; font: inherit; outline: none; min-width: 0; }
.esc-kapat { margin-left: auto; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--soluk); font-size: 12px; cursor: pointer; }
.esc-sol { padding: 18px 20px; border-right: 1px solid #2c4436; display: grid; gap: 14px; align-content: start; background: linear-gradient(#162a22, transparent); }
.esc-kimlik { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.esc-kimlik b { display: block; font: 400 20px/1.1 Georgia, serif; color: var(--krem); }
.esc-kimlik small { color: #8a977f; }
.esc-sv { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--altin) 0 calc(var(--r, 0) * 100%), #ffffff1f 0 100%); }
.esc-sv::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0f1b16; }
.esc-sv b { position: relative; font-size: 19px !important; }
.esc-sv small { position: absolute; bottom: -7px; font-size: 9px; color: var(--altin) !important; background: #0f1b16; padding: 0 4px; border-radius: 3px; }
.esc-degerler { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.esc-degerler span { color: var(--soluk); }
.esc-degerler b { text-align: right; font-weight: 600; }
.esc-degerler b.altin { color: var(--altin); } .esc-degerler b.iyi { color: #9fd68a; } .esc-degerler b.kotu { color: #ff8a6a; }
#devam { width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; letter-spacing: 1.6px; }
#menu-macayril:not([hidden]) { width: 100%; letter-spacing: 1.6px; margin-top: -6px; background: #b8433a; border-color: #b8433a; } /* 2026-11-27: maçtayken Devam et'in altında */
#q-cikis { position: fixed; left: 50%; top: 58%; transform: translate(-50%, -50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
#q-cikis[hidden] { display: none; }
#q-cikis .halka { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#e8574b calc(var(--r, 0) * 360deg), rgba(255,255,255,.16) 0); box-shadow: 0 2px 12px rgba(0,0,0,.45); }
#q-cikis .halka b { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,16,20,.88); color: #fff; font: 700 20px/1 system-ui, sans-serif; }
#q-cikis span { padding: 5px 10px; border-radius: 6px; background: rgba(14,16,20,.82); color: #fff; font-size: 13px; white-space: nowrap; }
#q-cikis kbd { font: inherit; font-weight: 700; }
#menu-cik { width: 100%; letter-spacing: 1.6px; margin-top: -6px; } /* 2026-11-20: Devam et'in altında, giriş ekranına (lobi) döner */
#menu-nobet:not([hidden]) { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: -6px; } /* 2026-11-20: Karakterden çık'ın altında (önce alt şeritteydi) */
#menu-nobet svg { width: 16px; height: 16px; }
#devam kbd { color: #1f2a20; border-color: #1f2a2055; background: #fff3; }
.esc-orta { padding: 16px 20px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.esc-grup { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: #8a977f; text-transform: uppercase; margin-bottom: 8px; }
.esc-grup::after { content: ""; flex: 1; height: 1px; background: #2c4436; }
.esc-karolar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.esc-karo { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 10px; background: #182c25; border: 1px solid #ffffff14; border-radius: 3px; color: var(--krem); font-family: inherit; font-size: 13px; line-height: 1.2; text-align: center; cursor: pointer; }
.esc-karo svg { width: 28px; height: 28px; color: var(--soluk); transition: color .15s; }
.esc-karo:hover { background: #20382e; border-color: #c9b46e88; }
.esc-karo:hover svg { color: var(--altin); }
.esc-karo > kbd { position: absolute; right: 5px; top: 5px; }
.esc-karo.yatay { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; padding: 10px 14px; }
.esc-karo.yatay svg { width: 20px; height: 20px; }
.esc-karo.yatay > kbd { position: static; }
.esc-karo.soluk, .esc-ayar.soluk { opacity: .25; }
.esc-ayarlar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.esc-ayar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; background: #182c25; border: 1px solid #ffffff14; border-radius: 3px; }
.esc-ayar svg { width: 20px; height: 20px; color: var(--soluk); }
.esc-ayar input[type=range] { width: 100%; accent-color: var(--altin); }
.esc-ayar button { padding: 5px 10px; font-size: 12px; min-width: 104px; }
.esc-alt { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; padding: 10px 20px; border-top: 1px solid #2c4436; background: #0e1a15; }
.esc-alt :is(button, a) { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.esc-alt svg { width: 16px; height: 16px; }
.esc-alt small { margin-left: auto; color: #8a977f; }
@media (max-width: 900px) { .esc-pano { grid-template-columns: 1fr; } .esc-sol { border-right: 0; border-bottom: 1px solid #2c4436; } .esc-karolar { grid-template-columns: repeat(3, 1fr); } .esc-ayarlar { grid-template-columns: 1fr; } .esc-alt small { display: none; } }

/* Rehber: tam ekran ansiklopedi (solda ağaç, ortada sayfa, sağda bölümün öbür sayfaları). Eski sekmeler ve kartlar gizli kalır. */
dialog#yardim.ansiklopedi { position: fixed; inset: 0 !important; left: 0 !important; top: 0 !important; transform: none !important; width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; border: 0; border-radius: 0; background: #12211b; padding: 0; overflow: hidden; }
dialog#yardim.ansiklopedi > .ic { display: none; }
.r-kok { height: 100%; display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; grid-template-rows: auto minmax(0, 1fr); }
.r-ust { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #2c4436; background: linear-gradient(#1a2f26, #142620); }
.r-marka { font: 400 22px/1 Georgia, serif; color: var(--krem); margin-right: 8px; }
.r-marka small { display: block; font: 700 9px "Segoe UI", system-ui, sans-serif; letter-spacing: 2px; color: var(--altin); margin-bottom: 3px; }
.r-gezin { display: flex; gap: 2px; }
.r-gezin button { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; }
.r-gezin svg { width: 16px; height: 16px; }
.r-gezin button:disabled { opacity: .35; cursor: default; }
.r-iz { font-size: 13px; color: #8a977f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.r-iz b { color: var(--krem); font-weight: 600; }
.r-ara { margin-left: auto; max-width: 320px; }
.r-wiki { color: var(--altin); font-weight: 700; font-size: 13px; text-decoration: none; border: 1px solid #e0be6a88; border-radius: 4px; padding: 6px 12px; white-space: nowrap; }
.r-wiki:hover { background: #e0be6a1a; }
.r-agac { border-right: 1px solid #2c4436; overflow: auto; padding: 10px 8px 20px; }
.r-grup > button { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px; font-weight: 600; font-size: 13.5px; color: var(--krem); text-align: left; cursor: pointer; border-radius: 3px; }
.r-grup > button:hover { background: #1e352c; }
.r-grup > button small { color: #8a977f; font-weight: 400; }
.r-grup > button i { margin-left: auto; font-style: normal; color: #8a977f; font-size: 10px; transition: transform .15s; }
.r-grup.acik > button i { transform: rotate(90deg); }
.r-grup ul { list-style: none; margin: 0 0 6px; padding: 0 0 0 26px; display: none; }
.r-grup.acik ul { display: grid; }
.r-grup li button { width: 100%; text-align: left; background: none; border: 0; border-left: 1px solid #2c4436; border-radius: 0; padding: 5px 12px; font-size: 13px; color: var(--soluk); cursor: pointer; }
.r-grup li button:hover { color: var(--krem); background: #1e352c; }
.r-grup li button.secili { color: var(--altin); border-left: 2px solid var(--altin); background: #2c453566; }
.r-bos { color: #8a977f; padding: 10px; }
.r-orta { overflow: auto; padding: 34px 56px 56px; }
.r-orta > * { max-width: 76ch; }
.r-etiket { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: var(--altin); text-transform: uppercase; }
.r-orta h2 { font: 400 34px/1.15 Georgia, serif; margin: 0 0 16px; color: var(--krem); cursor: default; display: flex; gap: 12px; align-items: center; }
.r-metin { font-size: 15px; line-height: 1.7; color: var(--soluk); }
.r-metin p { margin: 0 0 12px; }
.r-metin ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 4px; }
.r-metin li { margin: 0; color: var(--soluk); }
.r-metin li::marker { color: var(--altin); }
.r-metin b { color: var(--krem); font-weight: 600; }
.r-metin a { color: var(--altin); }
.r-orta .r-kartlar { max-width: none; columns: 340px; column-gap: 12px; }
.r-sag { border-left: 1px solid #2c4436; background: #0f1d17; overflow: auto; padding: 20px; display: grid; gap: 10px; align-content: start; }
.r-sag-bas { margin: 8px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: #8a977f; text-transform: uppercase; }
.r-ilgili { display: grid; gap: 4px; }
.r-ilgili button { display: flex; justify-content: space-between; gap: 8px; text-align: left; font-size: 13px; padding: 7px 10px; }
.r-ilgili button small { color: #8a977f; }
.r-wiki-buyuk { margin-top: 10px; display: block; text-align: center; color: var(--altin); font-weight: 700; font-size: 13px; text-decoration: none; border: 1px solid #e0be6a66; border-radius: 4px; padding: 10px; }
@media (max-width: 1100px) { .r-kok { grid-template-columns: 240px minmax(0, 1fr); } .r-sag { display: none; } .r-orta { padding: 24px 28px 40px; } }
@media (max-width: 700px) { .r-kok { grid-template-columns: 180px minmax(0, 1fr); } .r-ara, .r-iz { display: none; } }
body.dokun dialog#yardim.ansiklopedi { zoom: 1; }

/* Harita (masaüstü): solda katmanlar ve renkler, ortada harita, sağda seçili yer ve yakındakiler. Telefonda eskisi gibi tam ekran. */
.h-sol, .h-sag { display: none; }
body:not(.dokun) dialog#harita #buyuk { position: absolute; left: 270px; top: 0; width: calc(100% - 580px); height: 100%; } /* tuval yerleşik öğe: left/right ile esnemez, en açıkça verilir */
body:not(.dokun) dialog#harita .h-sol, body:not(.dokun) dialog#harita .h-sag { display: grid; align-content: start; gap: 6px; position: absolute; top: 0; bottom: 0; overflow: auto; background: #12211b; padding: 16px; }
body:not(.dokun) dialog#harita .h-sol { left: 0; width: 270px; border-right: 1px solid #2c4436; }
body:not(.dokun) dialog#harita .h-sag { right: 0; width: 310px; border-left: 1px solid #2c4436; background: #0f1d17; }
body:not(.dokun) dialog#harita .harita-ust { left: 286px; }
body:not(.dokun) dialog#harita .harita-ust span, body:not(.dokun) dialog#harita .harita-alt { display: none; }
body:not(.dokun) dialog#harita .harita-sag { right: 326px; }
.h-bas { margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: #8a977f; }
.h-bas:first-child { margin-top: 0; }
.h-katman { display: grid; grid-template-columns: 16px 12px 1fr; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 3px; cursor: pointer; font-size: 13px; color: var(--krem); }
.h-katman:hover { background: #1e352c; }
.h-katman input { margin: 0; accent-color: var(--altin); }
.h-katman i { width: 11px; height: 11px; border-radius: 2px; }
.h-katman.kapali { color: #8a977f; }
.h-renk { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; color: var(--soluk); }
.h-renk i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.h-not { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #8a977f; }
.h-tur { text-transform: uppercase; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: var(--altin); }
.h-sag h3 { margin: 2px 0 4px; font: 400 24px/1.15 Georgia, serif; color: var(--krem); }
.h-acik { margin: 0; font-size: 13px; line-height: 1.55; color: var(--soluk); }
.h-deger { display: flex; justify-content: space-between; padding: 8px 10px; border: 1px solid #2c4436; border-radius: 3px; font-size: 13px; margin-top: 6px; }
.h-deger span { color: #8a977f; }
.h-dugmeler { display: grid; gap: 6px; margin-top: 6px; }
.h-yakin { display: grid; }
.h-yakin button { display: flex; justify-content: space-between; gap: 8px; text-align: left; background: none; border: 0; border-bottom: 1px solid #ffffff0d; border-radius: 0; padding: 7px 2px; font-size: 13px; color: var(--krem); cursor: pointer; }
.h-yakin button:hover { color: var(--altin); }
.h-yakin button small { color: #8a977f; white-space: nowrap; }
@media (max-width: 1000px) { body:not(.dokun) dialog#harita .h-sag { display: none; } body:not(.dokun) dialog#harita #buyuk { width: calc(100% - 270px); } body:not(.dokun) dialog#harita .harita-sag { right: 16px; } }

/* Arkadaşlar (B): sekmeler, solda liste, sağda seçili arkadaş */
dialog#arkadas { width: min(1000px, 96vw); max-width: min(1000px, 96vw); background: #12211bf5; }
.ark-sekme { display: flex; gap: 2px; border-bottom: 1px solid #2c4436; margin: 0 0 4px; }
.ark-sekme button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 9px 14px; color: #8a977f; font-size: 13px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.ark-sekme button.secili { color: var(--altin); border-bottom-color: var(--altin); }
.ark-sekme .rozet { position: static; }
.ark-govde { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; min-height: 360px; }
.ark-liste { padding: 4px 14px 10px 0; min-width: 0; }
.ark-grup { margin: 12px 0 4px; font-size: 10px; letter-spacing: 1.8px; color: #8a977f; font-weight: 700; }
/* Faz 153: Kent Toyu penceresi (Esc → Kent Toyu) */
/* 2026-11-20: Kent Toyu penceresi NPC iskeletinde (npcIskelet); yalnız ilan metni ve öneri kutusu kendine özgü. */
.npc-tablo td.kent-metin { overflow-wrap: anywhere; max-width: 0; width: 70%; }
.kent-kagit { background: #efe2bf; color: #2b2416; border-color: #a7835a; font-size: 14px; overflow-wrap: anywhere; }
.kent-oner { display: grid; gap: 6px; margin-bottom: 14px; }
.kent-oner textarea { width: 100%; resize: none; background: #10201a; color: var(--krem); border: 1px solid var(--cizgi); border-radius: 4px; padding: 8px; font: inherit; font-size: 13px; }
.kent-oner small { color: var(--soluk); font-size: 11px; }
.ark-satir { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 3px; }
.ark-satir[data-ark-sec] { cursor: pointer; }
.ark-satir[data-ark-sec]:hover { background: #1e352c; }
.ark-satir.secili { background: #2a4334; box-shadow: inset 3px 0 var(--altin); }
.ark-satir.yok { opacity: .55; }
.ark-satir b { font-weight: 600; color: var(--krem); }
.ark-satir small { display: block; color: #8a977f; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ark-satir .ark-ek { display: flex; gap: 6px; }
.ark-satir .ark-ek button { padding: 5px 10px; font-size: 12px; }
.ark-rozet { font-style: normal; font-size: 11px; padding: 0 7px; border-radius: 9px; border: 1px solid #7fd38a55; color: #7fd38a; }
.ark-av { width: 34px; height: 34px; border-radius: 3px; display: grid; place-items: center; background: #0f1b16; border: 1px solid #2c4436; font: 400 15px Georgia, serif; color: var(--krem); position: relative; }
.ark-av::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #182c25; background: #55665a; }
.ark-av.acik::after { background: #7fd38a; } .ark-av.is::after { background: #6fd3ff; }
.ark-av.buyuk { width: 54px; height: 54px; font-size: 24px; }
.ark-sag { border-left: 1px solid #2c4436; padding: 6px 0 6px 18px; display: grid; gap: 12px; align-content: start; }
.ark-kimlik { display: flex; gap: 12px; align-items: center; }
.ark-kimlik h3 { margin: 0; font: 400 22px/1.1 Georgia, serif; }
.ark-kimlik small { color: #8a977f; }
.ark-bilgi { display: grid; grid-template-columns: auto 1fr; border: 1px solid #2c4436; border-radius: 3px; font-size: 13px; }
.ark-bilgi span, .ark-bilgi b { padding: 6px 10px; border-bottom: 1px solid #ffffff0d; }
.ark-bilgi span { color: #8a977f; }
.ark-bilgi b { text-align: right; font-weight: 600; }
.ark-bilgi b.acik { color: #7fd38a; } .ark-bilgi b.is { color: #6fd3ff; }
.ark-dugmeler { display: grid; gap: 6px; }
.ark-not { margin: 0; font-size: 12px; line-height: 1.5; color: #8a977f; }
@media (max-width: 760px) { .ark-govde { grid-template-columns: 1fr; } .ark-sag { border-left: 0; border-top: 1px solid #2c4436; padding: 12px 0 0; } }

/* tuş şeridi yerine yalnız "F1 Kontroller", sağ altta */
body:not(.dokun) #ipucu { left: auto; right: 20px; bottom: 30px; padding: 5px 10px; background: var(--cam); border: 1px solid var(--cam-kenar); border-radius: 4px; font-size: 12px; }
body:not(.dokun) #ipucu .ipucu-btn { color: var(--krem); }

/* Kontroller sayfası (rehber): oyun sekmeleri, tuş kümeleri, sağda kullanılan tuşlar yanan klavye */
.kt-sekme { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.kt-sekme button { padding: 6px 12px; font-size: 13px; }
.kt-sekme button.secili { background: var(--altin); color: #16251f; border-color: var(--altin); }
.r-orta .kt-kume { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.kt-kume h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: 1.8px; color: var(--altin); text-transform: uppercase; }
.kt-kume dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; align-items: center; font-size: 14px; }
.kt-kume dt { display: flex; gap: 3px; justify-content: flex-end; }
.kt-kume dd { margin: 0; color: var(--soluk); }
.klavye { display: grid; gap: 3px; }
.klavye > div { display: flex; gap: 3px; }
.klavye span { width: 21px; height: 24px; border: 1px solid #ffffff26; border-bottom-width: 3px; border-radius: 4px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #8a977f; background: #0b1511; }
.klavye span.orta { width: 34px; }
.klavye span.gen { width: 100px; }
.klavye span.fare { width: auto; padding: 0 8px; }
.klavye span.on { color: #1f2a20; background: var(--altin); border-color: #f0d590; }
/* Esc menüsü kısa ekranda (telefon yatay): iki sütun kalır, karolar küçülür */
@media (max-height: 560px) {
  .esc-pano { grid-template-columns: 200px 1fr; }
  .esc-sol { border-right: 1px solid #2c4436; border-bottom: 0; padding: 12px; gap: 8px; }
  .esc-degerler { display: none; }
  .esc-orta { padding: 10px 12px; gap: 8px; }
  .esc-karolar { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .esc-karo { padding: 8px 4px 6px; gap: 3px; font-size: 11px; }
  .esc-karo svg { width: 20px; height: 20px; }
  .esc-karo > kbd { display: none; }
  .esc-ayarlar { grid-template-columns: 1fr 1fr; }
  .esc-ust, .esc-alt { padding: 8px 12px; }
}

/* 2026-11-20 (Yusuf): harita yakınlaştırma düğmeleri (masaüstü; dokunmatikte iki parmak). */
.harita-zoom { display: none; }
body:not(.dokun) dialog#harita .harita-zoom { display: grid; position: absolute; right: 326px; bottom: 16px; width: 46px; border: 1px solid #3c5a48; border-radius: 4px; background: #12211bf0; overflow: hidden; text-align: center; box-shadow: 0 4px 14px #0008; }
.harita-zoom button { all: unset; cursor: pointer; height: 40px; display: grid; place-items: center; font: 600 22px/1 system-ui, sans-serif; color: var(--krem); }
.harita-zoom button:hover { background: #2a4334; color: var(--altin); }
.harita-zoom span { font-size: 10px; color: #8a977f; padding: 3px 0; border-block: 1px solid #2c4436; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { body:not(.dokun) dialog#harita .harita-zoom { right: 16px; } }
/* Su Devi'nin bekleyen sayacı masaüstünde sağ sütunda olay satırı (yer adının altı, görev kartının üstü); dev çıkınca can çubuğu üst ortada kalır. */
body:not(.dokun) #hud #dunya-boss.bekle { left: auto; right: 20px; top: 322px; transform: none; width: 300px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 10px 5px 12px; border: 1px solid var(--cam-kenar); border-left: 2px solid #6fd3ff; border-radius: 4px; background: var(--cam); opacity: 1; font-size: 13px; }
body:not(.dokun) #dunya-boss.bekle .db-ad { color: var(--krem); font-weight: 600; letter-spacing: 0; }
body:not(.dokun) #dunya-boss.bekle .db-ad::after { content: "kente yürüyüşlerine"; display: block; font-size: 11px; font-weight: 400; color: var(--soluk); }
body:not(.dokun) #dunya-boss.bekle .db-sure { color: #9fe8ff; font-weight: 700; font-size: 15px; }
body:not(.dokun) #dunya-boss.bekle.yakin { border-color: #8fd2ff; border-left-color: #ffd76a; background: #16251fe6; }
body:not(.dokun) #dunya-boss.bekle.yakin .db-sure { color: #ffd76a; }
body:not(.dokun):has(#dunya-boss.bekle:not([hidden])) #ust-bildirim { top: 22px; }
/* 2026-11-20: parti penceresi arkadaşlar düzeninde (sekmeler, solda üyeler, sağda seçilen üye). */
dialog#parti { width: min(1000px, 96vw); max-width: min(1000px, 96vw); background: #12211bf5; }
.parti-can, .parti-xp { display: block; height: 8px; border-radius: 2px; background: #3a1712; overflow: hidden; border: 1px solid #0c0e13; }
.parti-can > b, .parti-xp > b { display: block; height: 100%; background: linear-gradient(#e05050, #b02a2a); }
.parti-can.olu > b { background: #555; } /* can rengi hep kırmızı (okunurluk kuralı) */
.parti-xp { background: #2a2410; } .parti-xp > b { background: linear-gradient(#ffd86b, #c9a24a); }
.ark-satir .ark-ek > .parti-can { width: 90px; }
.parti-cubuklar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; font-size: 12px; }
.parti-cubuklar span { color: #8a977f; } .parti-cubuklar small { color: var(--krem); font-variant-numeric: tabular-nums; }
.parti-cubuklar .parti-can, .parti-cubuklar .parti-xp { height: 10px; }
.ark-bilgi b.olu { color: #ff7b6b; }
/* 2026-11-20 (Yusuf): görünüm penceresi tam ekran NPC iskeletinde: solda bölgeler, ortada dönen karakter, sağda seçenekler ve onay şeridi. */
.gorunum-npc { grid-template-columns: 220px minmax(0, 1fr) minmax(420px, 540px); }
.gorunum-npc .gorunum-sahne { align-items: center; justify-content: center; padding: 0; background: radial-gradient(ellipse at 50% 55%, #2b3d33, #14231c 72%); }
dialog#gorunum #gorunum-onizleme { flex: 1 1 0; min-height: 260px; width: 100%; max-width: 620px; height: auto; border: 0; border-radius: 0; background: transparent; }
dialog#gorunum #gorunum-sekmeler { margin: 0; }
dialog#gorunum #gorunum-sekmeler > button { justify-content: flex-start; padding: 8px 12px; font-size: 14px; }
dialog#gorunum #gorunum-sekmeler > button.bekler::after { right: 10px; top: 50%; transform: translateY(-50%); }
dialog#gorunum #gorunum-secenekler { flex: 1 0 auto; max-height: none; overflow: visible; padding: 0; display: block; }
dialog#gorunum .satir { grid-template-columns: 1fr; gap: 7px; margin: 0 0 16px; }
dialog#gorunum .satir > span { font-size: 10px; letter-spacing: 1.6px; color: #8a977f; }
dialog#gorunum .gorunum-alt { position: sticky; bottom: -14px; z-index: 1; display: grid; gap: 8px; justify-content: stretch; margin: auto -16px -14px; padding: 12px 16px 14px; background: #12211b; border-top: 1px solid #2c4436; }
dialog#gorunum #gorunum-toplam { margin: 0; font-size: 13px; color: var(--krem); }
.gorunum-dugmeler { display: flex; gap: 8px; }
.gorunum-dugmeler button { padding: 9px 12px; font-size: 13px; }
.gorunum-dugmeler #gorunum-onayla { flex: 1; padding: 12px; letter-spacing: 2px; font-weight: 700; }
@media (max-width: 1150px) { .gorunum-npc { grid-template-columns: 180px minmax(0, 1fr) 380px; } }
@media (max-width: 860px) { .gorunum-npc { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.5fr); overflow: hidden; } .gorunum-npc > .npc-kolon { overflow: auto; } .gorunum-npc > .npc-kolon + .npc-kolon { border-top: 0; border-left: 1px solid #2c4436; } .gorunum-npc .npc-agac { grid-auto-flow: row; overflow: visible; } .gorunum-npc .npc-sol .npc-not { display: none; } dialog#gorunum #gorunum-onizleme { min-height: 160px; } dialog#gorunum #gorunum-sekmeler > button { padding: 6px 8px; font-size: 12px; } }
@media (max-width: 560px) { .gorunum-npc { grid-template-columns: minmax(0, 1fr); overflow: auto; } .gorunum-npc > .npc-kolon { overflow: visible; } .gorunum-npc .npc-agac { grid-auto-flow: column; overflow-x: auto; } dialog#gorunum #gorunum-onizleme { flex: none; height: 240px; } }
/* 2026-11-20 (Yusuf): heybe tam ekran NPC penceresi (üst şerit, üç kolon); boy ve en dialog.npc kuralından. */
dialog#heybe { padding: 0; width: min(1320px, 96vw); max-width: min(1320px, 96vw); height: min(840px, calc(100vh - 24px)); background: #14231c; overflow: hidden; }
dialog#heybe > .npc-ic { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }


dialog#heybe .npc-govde { grid-template-columns: 340px minmax(0, 1fr) 320px; }
dialog#heybe .npc-sekmeler > button small { color: #8a977f; margin-left: 3px; }
dialog#heybe .npc-sekmeler > button.secili small { color: var(--altin); }
dialog#heybe .npc-sekmeler .esya-sira { padding: 6px 8px; font: inherit; font-size: 13px; background: #0f1c16; color: var(--krem); border: 1px solid var(--cizgi); border-radius: 4px; margin-left: 6px; }
dialog#heybe .beden { margin: 0; }
dialog#heybe .npc-sag .takim-satir em { font-size: 12px; }
@media (max-width: 1150px) { dialog#heybe .npc-govde { grid-template-columns: 290px minmax(0, 1fr) 250px; } }
dialog#heybe .npc-sol .taki-sans { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0; }
dialog#heybe .npc-sol .taki-sans span { white-space: nowrap; }
dialog#heybe .npc-sol .taki-sans.guc-ozet { grid-template-columns: 1fr; }
/* 2026-11-20 (Yusuf): harita kapat düğmesi ekranın sağ üst köşesinde (sağ panelin üstünde). */
@media (min-width: 1001px) { body:not(.dokun) dialog#harita .harita-sag .kapat { position: fixed; right: 14px; top: 12px; z-index: 3; } }
dialog#heybe .npc-serit { flex-wrap: nowrap; }
dialog#heybe .npc-sekmeler { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
dialog#heybe .npc-sekmeler > button { flex: none; }
dialog#heybe .npc-bosluk { display: none; }
@media (max-width: 860px) { dialog#heybe .npc-govde { grid-template-columns: minmax(0, 1fr); overflow: auto; } dialog#heybe .npc-ad small { display: none; } }
dialog#heybe .npc-ad, dialog#heybe .npc-ju, dialog#heybe .npc-kapat { flex: none; white-space: nowrap; }
/* Heybe kolonlarındaki bölümler küçülmez (ızgara min-height ile ezilip taşıyordu); uzun heybede kolonun kendisi kayar. */
dialog#heybe .npc-kolon > * { flex-shrink: 0; }
@media (min-width: 861px) { dialog#heybe .npc-govde { grid-template-rows: minmax(0, 1fr); } }
/* 2026-11-20: haritanın sağ dizini (seçili, işaretli, Su Devi) */
.h-yakin button.secili { color: var(--altin); background: #2a4334; box-shadow: inset 3px 0 var(--altin); padding-left: 8px; }
.h-yakin button.su { color: #9fe8ff; font-weight: 600; }
.h-bas.h-su { color: #6fd3ff; }
.h-yakin button small { overflow: hidden; text-overflow: ellipsis; }
/* 2026-11-21: İz Peşinde devrilme penceresi (ortada, geri sayımlı; tıklamayı engellemez) */
/* #iz-olum kalktı (2026-11-22): İz Peşinde ortak ölüm ekranını kullanır (src/olum-ekrani.js). */
/* 2026-11-21: İz Peşinde Tab sıralaması (Tetik Meydanı'nınki gibi) */
#iz-skor { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 41; pointer-events: none; width: min(720px, calc(100vw - 32px)); padding: 16px 20px; background: #101a16ee; border: 1px solid #7a8a6e88; border-radius: 10px; color: #f3ecd6; }
#iz-skor[hidden] { display: none; }
#iz-skor > b { display: block; text-align: center; font-size: 18px; letter-spacing: .06em; margin-bottom: 10px; }
#iz-skor .iz-skor-satir { display: flex; gap: 16px; flex-wrap: wrap; }
#iz-skor .iz-skor-takim { flex: 1 1 260px; min-width: 0; }
#iz-skor h3 { margin: 0 0 6px; font-size: 16px; }
#iz-skor table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
#iz-skor th, #iz-skor td { padding: 4px 6px; text-align: right; border-top: 1px solid #7a8a6e44; }
#iz-skor th:first-child, #iz-skor td:first-child { text-align: left; }
#iz-skor tr.ben td { color: #ffd23f; font-weight: 700; }
/* 2026-11-21: kırık eşya heybede (giyilemez, tamir bekler) */
.hucre.kirik { opacity: .55; filter: grayscale(.8); cursor: not-allowed; border-color: #e07a5f; }
/* T68: kırık eşya yuvasında kırmızı durur (tamir edilince işe yarar) */
.yuva.kirik { border-color: #e04a3a; background: #4a1512; box-shadow: inset 0 0 0 1px #e04a3a66; cursor: pointer; position: relative; }
.yuva.kirik > i { filter: grayscale(.5) sepia(1) hue-rotate(-40deg) saturate(3); opacity: .8; }
.yuva.kirik .kirik-yazi { position: absolute; left: 3px; top: 3px; font: 700 9px/1 system-ui, sans-serif; letter-spacing: .04em; color: #fff; background: #b04a2f; padding: 2px 3px; border-radius: 2px; }
#cubuk i.kirik { filter: grayscale(.5) sepia(1) hue-rotate(-40deg) saturate(3); opacity: .75; }
.hucre.kirik .kirik-yazi { position: absolute; left: 2px; bottom: 2px; font: 700 9px/1 system-ui, sans-serif; letter-spacing: .04em; color: #fff; background: #b04a2f; padding: 2px 3px; border-radius: 2px; }
/* Kale Taşıma (2026-11-21, Yusuf): çuval taşırken ekranın sağında büyük simge */
#kt-cuval-ikon { position: fixed; right: 18px; top: 64%; transform: translateY(-50%); z-index: 40; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 16px; background: #1d1408e0; border: 3px solid var(--r, #c9a96b); border-radius: 12px; color: #fff3dc; box-shadow: 0 0 22px var(--r, #c9a96b), 0 8px 30px #000a; animation: kt-cuval-nabiz 1s ease-in-out infinite; }
#kt-cuval-ikon[hidden] { display: none; }
#kt-cuval-ikon i { font-style: normal; font-size: 54px; line-height: 1; }
#kt-cuval-ikon b { font-size: 16px; letter-spacing: .06em; }
#kt-cuval-ikon small { font-size: 12px; opacity: .85; }
@keyframes kt-cuval-nabiz { 50% { transform: translateY(-50%) scale(1.07); } }
@media (prefers-reduced-motion: reduce) { #kt-cuval-ikon { animation: none; } }
/* Kutu Hisar (2026-11-22, Yusuf): katılınca ortada geri sayım */
#hisar-sayac { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 40; pointer-events: none; min-width: min(360px, calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: 16px 24px; text-align: center; background: #1d1408e6; border: 2px solid #ffd23f; border-radius: 10px; color: #fff3dc; box-shadow: 0 10px 40px #000a; }
#hisar-sayac[hidden] { display: none; }
#hisar-sayac b { letter-spacing: .12em; color: #ffd23f; }
#hisar-sayac .hs-sayi { font-size: 64px; font-weight: 800; line-height: 1.1; margin: 4px 0; }
#hisar-sayac .hs-basla { color: #8fd18f; font-size: 48px; }
#hisar-sayac p { margin: 4px 0; }

/* İngilizce (docs/dil.md): CSS'te yazılı metinlerin karşılığı; main.js <html lang>'ı etkin dile göre ayarlar. */
html[lang="en"] body.dokun .harita-ust::after { content: "Drag: pan · Two fingers: zoom · Tap: set / remove marker"; }
html[lang="en"] body:not(.dokun) #dunya-boss.bekle .db-ad::after { content: "until their march on the town"; }

/* T72: tanıtım (src/tanitim.js). Kamera dünyayı gezerken oyunun arayüzü gizlenir; altta durak plakası, üstte ilerleme çizgisi,
   sonunda seçim kartları. Duraklar arasında ekran kararır (o arada gidilen yerin zemini yüklenir). */
body.tanitimda #app > *:not(#sahne), body.tanitimda #ust-bildirim, body.tanitimda #tip, body.tanitimda .yon-ok { display: none !important; }
#tanitim { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#tanitim .tn-karartma { position: absolute; inset: 0; background: #0b130f; opacity: 0; transition: opacity .45s; }
#tanitim.karanlik .tn-karartma { opacity: 1; }
#tanitim .tn-cubuk { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #ffffff14; }
#tanitim .tn-cubuk i { display: block; height: 100%; width: 0; background: var(--altin); transition: width .6s; }
#tanitim .tn-plaka { pointer-events: auto; cursor: pointer; position: absolute; left: max(16px, 4vw); bottom: 84px; max-width: min(560px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--cizgi); border-left: 3px solid var(--altin); border-radius: 4px; padding: 16px 20px 14px; box-shadow: 0 10px 30px #0008; opacity: 0; transform: translateY(10px); }
#tanitim .tn-plaka.acik { opacity: 1; transform: none; transition: opacity .5s .15s, transform .5s .15s; }
#tanitim .tn-ust { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; color: var(--altin); margin-bottom: 4px; }
#tanitim .tn-ad { display: block; font: 800 28px/1.1 Georgia, serif; color: var(--krem); margin-bottom: 10px; }
#tanitim .tn-satir { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 15px; color: var(--krem); }
#tanitim .tn-satir li::marker { color: var(--altin); }
#tanitim .tn-tuslar { position: absolute; left: max(16px, 4vw); right: max(16px, 4vw); bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; color: var(--soluk); }
#tanitim .tn-tuslar kbd { margin-right: 3px; }
#tanitim .tn-dugmeler { margin-left: auto; display: flex; gap: 8px; }
#tanitim .tn-dugmeler button { pointer-events: auto; padding: 8px 14px; background: #22362ccc; }
#tanitim .tn-ileri { border-color: var(--altin); }
#tanitim .tn-secim { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(880px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--cizgi); border-radius: 6px; padding: 24px; text-align: center; pointer-events: auto; box-shadow: 0 14px 40px #000a; }
#tanitim .tn-secim > b { display: block; font: 800 30px/1.1 Georgia, serif; color: var(--altin); }
#tanitim .tn-secim > p { margin: 8px 0 18px; color: var(--soluk); }
#tanitim .tn-kartlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#tanitim .tn-kartlar button { display: grid; gap: 6px; justify-items: center; padding: 16px 10px; background: #182c25; border-color: #ffffff1a; }
#tanitim .tn-kartlar button:hover { border-color: var(--altin); background: #22362c; }
#tanitim .tn-kartlar b { font-size: 16px; }
#tanitim .tn-kartlar small { color: var(--soluk); font-size: 12px; line-height: 1.3; }
@media (max-width: 720px) {
  #tanitim .tn-plaka { bottom: 70px; padding: 12px 14px; }
  #tanitim .tn-ad { font-size: 22px; }
  #tanitim .tn-satir { font-size: 13px; }
  #tanitim .tn-kartlar { grid-template-columns: 1fr 1fr; }
  #tanitim .tn-tuslar span { display: none; }
}

/* T87: gizli mağaranın kapanma sayacı: içerideyken sağ sütunda Dünya Devleri satırının altında (telefonda onun altında küçük hap). */
#gizli-sayac { position: absolute; z-index: 4; right: 20px; top: 366px; width: 300px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding: 5px 10px 5px 12px; border: 1px solid var(--cam-kenar); border-left: 2px solid #ffb060; border-radius: 4px; background: var(--cam); color: var(--krem); font-size: 13px; pointer-events: none; }
#gizli-sayac[hidden] { display: none !important; }
#gizli-sayac .gs-ad { grid-column: 1; font-weight: 600; }
#gizli-sayac .gs-alt { grid-column: 1; font-size: 11px; color: var(--soluk); }
#gizli-sayac .gs-sure { grid-column: 2; grid-row: 1 / 3; color: #ffcf8a; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
#gizli-sayac.yakin { border-color: #ffb060; } #gizli-sayac.yakin .gs-sure { color: #ff7a5a; }
/* 2026-11-28: Portal hakkı çubuğu (bir reisin canının %1'i vurulunca dolar) */
#gizli-sayac .gs-hak { grid-column: 1 / 3; display: grid; gap: 3px; margin-top: 4px; font-size: 11px; color: var(--soluk); }
#gizli-sayac .gs-hak i { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
#gizli-sayac .gs-hak b { display: block; height: 100%; width: 0; background: #ffb060; transition: width .3s; }
#gizli-sayac .gs-hak.tamam { color: #9fe39a; } #gizli-sayac .gs-hak.tamam b { background: #6fd36a; }
body.dokun #gizli-sayac .gs-hak { margin-top: 2px; font-size: 10px; }
body:not(.dokun):not(:has(#dunya-boss.bekle:not([hidden]))) #gizli-sayac { top: 322px; }
body.dokun #gizli-sayac { top: calc(36px + env(safe-area-inset-top)); left: 50%; right: auto; transform: translateX(-50%); width: max-content; padding: 3px 10px; font-size: 11px; grid-template-columns: auto auto; gap: 6px; }
body.dokun #gizli-sayac .gs-alt { display: none; } body.dokun #gizli-sayac .gs-sure { grid-row: 1; font-size: 12px; }

/* 2026-11-28 (Yusuf): Açık İnler kartı: sağ sütunda Dünya Devleri sayacının (ve gizli mağara kartının) altında; top main.js inKartYer. */
#acik-inler { position: absolute; z-index: 4; right: 20px; top: 366px; width: 300px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding: 5px 10px 5px 12px; border: 1px solid var(--cam-kenar); border-left: 2px solid #c9a6ff; border-radius: 4px; background: var(--cam); color: var(--krem); font: inherit; font-size: 13px; text-align: left; cursor: pointer; pointer-events: auto; }
#acik-inler[hidden] { display: none !important; }
#acik-inler:hover { border-color: #c9a6ff; background: #1c1630e6; }
#acik-inler .ai-ad { grid-column: 1; font-weight: 600; }
#acik-inler .ai-alt { grid-column: 1; font-size: 11px; color: var(--soluk); }
#acik-inler .ai-say { grid-column: 2; grid-row: 1 / 3; min-width: 26px; padding: 2px 8px; border-radius: 12px; background: #c9a6ff; color: #1a1228; font-weight: 700; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
body:is(.macta, .tetikte, .karanalda, .zindan-tufek, :has(#skor:not([hidden]), #hisar-ui:not([hidden]), #akin-hud:not([hidden]), #kale:not([hidden]), #giris:not([hidden]))) #acik-inler { display: none !important; }
body.dokun #acik-inler { left: 50%; right: auto; transform: translateX(-50%); width: max-content; padding: 3px 10px; font-size: 11px; grid-template-columns: auto auto; gap: 6px; }
body.dokun #acik-inler .ai-alt { display: none; } body.dokun #acik-inler .ai-say { grid-row: 1; font-size: 11px; padding: 1px 6px; }
/* Kapı penceresi: kimler görsün; Açık İnler listesi */
#zindan-pencere .zg-sec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0; font-size: 13px; }
#zindan-pencere .zg-sec label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
#in-liste .il-ust { display: flex; gap: 8px; margin: 8px 0; }
#in-liste .il-ust input { flex: 1; min-width: 0; }
#in-liste .il-grup { margin: 12px 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soluk); }
#in-liste .il-sat { display: grid; grid-template-columns: minmax(110px, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--cam-kenar); border-left: 3px solid var(--r); border-radius: 4px; background: rgba(255, 255, 255, .03); }
#in-liste .il-bas b { display: block; } #in-liste .il-bas small { color: var(--r); }
#in-liste .il-bilgi { display: flex; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#in-liste .il-yollar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
#in-liste .il-yollar button { padding: 4px 10px; font-size: 12px; }
#in-liste .il-not { margin-top: 10px; font-size: 12px; }
@media (max-width: 560px) { #in-liste .il-sat { grid-template-columns: 1fr; } }
#zindan-serit.yakin { border-color: #ff7a5a; box-shadow: 0 0 0 1px #ff7a5a55; } /* 2026-11-28: son 2 dakika */
