/* Köz — oyun içi arayüz teması ("kor ve demir").
   index.html'de EN SON yüklenir; stil.css ve arayuz.css yerleşimi verir, bu dosya bütün görünüşü belirler.
   JS içinden eklenen stiller (hizmet.js, gorev.js, menu.js, market.js, dovus.js, pazar.js, ozellik/index.js…) belgeye
   bu dosyadan SONRA girer; onları ezmek gereken yerde seçici `body` ile güçlendirildi.
   Giriş / karakter ekranı bu dosyada DEĞİL: istemci/giris.css.

   Tasarım dili (ayrıntı: tasarim/KOD-HARITASI.md → "Arayüz 3"):
   - Yüzey: isli koyu levha (düz renk, hafif üst ışık). Kenar: 1px siyah + içte ince çizgi. Köşe 2px. Altın çift çerçeve,
     süs karakteri, parlak eğik çubuk YOK.
   - Vurgu tek renk: kor (--k-kor). Yalnız etkin / seçili / ana eylem için kullanılır.
   - Yazı: başlık ve adlar serif (--y-baslik), sayı ve etiketler dar DIN (--y-sayi), gövde Segoe UI (--y-govde).
     Hepsi sistem yazı tipi; dosya indirilmez.
   - Pencere başlığının solundaki işaret "sacayağı" damgasıdır (--k-damga).
   Yeni pencere: `<section class="pano pencere"><header><h2>Başlık</h2><button class="kapat">×</button></header>…`
   Ortak sınıflar: .pano .pencere .kapat .kucuk .sekmeler(.secili) .yuva(.dolu/.bos/.secili) .cubuk(.can/.ofke/.xp)
                   .t-kutu (gömük kutu) .t-ana (ana eylem düğmesi) .t-tehlike .t-etiket (küçük başlık) .t-sayi */

:root {
  /* yüzeyler */
  --k-is: #0b0907;
  --k-kece: #13100d;
  --k-levha: #1b1713;
  --k-levha2: #282119;
  --k-levha3: #372d21;
  /* çizgiler */
  --k-cizgi: #3a3026;
  --k-cizgiAcik: #5e4f3d;
  --k-tunc: #b08a5a;
  --k-tuncAcik: #e6ca95;
  /* yazı */
  --k-kemik: #ece2d0;
  --k-soluk: #a39783;
  --k-sonuk: #6f6557;
  /* kor */
  --k-kor: #e8642a;
  --k-korAcik: #ffa552;
  --k-korKoyu: #7d2c10;
  /* anlam renkleri */
  --k-can: #bf3a2c;
  --k-iyi: #9ccf78;
  --k-kotu: #ef7b6b;
  --k-sikke: #f0cf7a;
  --k-mavi: #3d8bff;
  --k-kirmizi: #e5484d;
  /* yazı tipleri */
  --y-baslik: "Sitka Heading", "Sitka Text", Sitka, Constantia, "Palatino Linotype", Georgia, serif;
  --y-govde: "Segoe UI", system-ui, sans-serif;
  --y-sayi: Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  /* ara ve köşe */
  --a-1: 4px; --a-2: 8px; --a-3: 12px; --a-4: 16px; --a-5: 24px;
  --r: 2px;
  /* hazır kenar ve gölgeler */
  --k-kenar: inset 0 0 0 1px var(--k-cizgi);
  --k-kabarik: inset 0 0 0 1px var(--k-cizgi), inset 0 1px 0 #ffffff17;
  --k-gomuk: inset 0 1px 3px #000c, inset 0 0 0 1px #00000080;
  --k-golge: 0 10px 28px #000c;
  /* sacayağı damgası ve sikke (satır içi SVG) */
  --k-damga: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23e8642a' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='8' cy='5.6' r='3.6'/%3E%3Cpath d='M5.2 8.2L2.6 14.4M8 9.4v5.4M10.8 8.2l2.6 6.2'/%3E%3C/g%3E%3C/svg%3E");
  --t-sikke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.6' fill='%23d9b36a' stroke='%232a1c08' stroke-width='1'/%3E%3Ccircle cx='8' cy='8' r='4.1' fill='none' stroke='%237a5a22' stroke-width='1'/%3E%3Cpath d='M8 5.6l2.4 2.4L8 10.400 5.600 8z' fill='%237a5a22'/%3E%3C/svg%3E");

  /* eski adlar: başka dosyalardaki ve JS'ten eklenen stiller bunları kullanır; yeni dile eşlendi */
  --zemin: var(--k-is);
  --pano: #1b1713f7;
  --kenar: var(--k-cizgi);
  --kenarAcik: var(--k-cizgiAcik);
  --yazi: var(--k-kemik);
  --soluk: var(--k-soluk);
  --altin: var(--k-tuncAcik);
  --can: var(--k-can);
  --t-altin: var(--k-tunc);
  --t-altinAcik: var(--k-tuncAcik);
  --t-bronz: var(--k-cizgiAcik);
  --t-bronzKoyu: var(--k-cizgi);
  --t-koyu: #000;
  --t-deri1: var(--k-levha2);
  --t-deri2: var(--k-levha);
  --t-deri3: var(--k-kece);
  --t-yazi: var(--k-kemik);
  --t-serif: var(--y-baslik);
  --k-doku: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .86 0 0 0 0 .66 0 0 0 .22 -.07'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --t-doku: none;
  --t-zemin: var(--k-doku), linear-gradient(#221d17, #191511);
  --t-ciftKenar: inset 0 0 0 1px var(--k-cizgi);
  --t-gomuk: inset 0 1px 3px #000c;
}

html, body { font-family: var(--y-govde); color: var(--k-kemik); }

/* ================= 1) Ortak bileşenler ================= */

/* ---- düğme ---- */
button { font-family: var(--y-govde); color: var(--k-kemik); background: var(--k-levha2); border: 1px solid #000; border-radius: var(--r);
  box-shadow: var(--k-kabarik); text-shadow: none; }
button:hover { background: var(--k-levha3); }
button:where(:hover:not(:disabled)) { color: #fff8ea; box-shadow: inset 0 0 0 1px var(--k-tunc), inset 0 1px 0 #ffffff17; }
button:where(:active:not(:disabled)) { transform: translateY(1px); background: var(--k-levha); }
button:disabled { opacity: 0.42; cursor: not-allowed; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--k-korAcik); outline-offset: 1px; }
/* ana eylem: kor dolgulu, koyu yazı */
button.t-ana, body #hizmetPencere button.ana, body #gorevPencere .dugmeler button.ana, .ggDugmeler button.ana, body .mkOnay .mkDugmeler button.ana, body .dkSatir button.al {
  background: linear-gradient(#f07a35, #cf5320); color: #1c0d04; font-weight: 700; border-color: #000;
  box-shadow: inset 0 1px 0 #ffd0a066, inset 0 0 0 1px #8f3413; }
button.t-ana:hover:not(:disabled), body #hizmetPencere button.ana:hover:not(:disabled), body #gorevPencere .dugmeler button.ana:hover:not(:disabled), .ggDugmeler button.ana:hover:not(:disabled),
body .mkOnay .mkDugmeler button.ana:hover:not(:disabled), body .dkSatir button.al:hover:not(:disabled) {
  background: linear-gradient(#ff8d48, #dd5f28); color: #1c0d04; box-shadow: inset 0 1px 0 #ffe0b880, inset 0 0 0 1px #8f3413; }
button.t-tehlike { background: #4a1a14; box-shadow: inset 0 0 0 1px #8a3024; color: #ffc9bd; }
button.t-tehlike:hover:not(:disabled) { background: #5e2018; box-shadow: inset 0 0 0 1px #c2452f; }
kbd { margin: 0 2px; padding: 0 4px; font: 600 10.5px/1.5 var(--y-sayi); color: var(--k-tuncAcik); background: var(--k-is); border: 1px solid var(--k-cizgi); border-radius: var(--r); }

/* ---- küçük başlık ve sayı ---- */
.t-etiket { font: 600 11.5px/1.3 var(--y-sayi); letter-spacing: 0.6px; color: var(--k-soluk); }
.t-sayi { font-family: var(--y-sayi); font-variant-numeric: tabular-nums; }

/* ---- pano / pencere ---- */
.pano { background: var(--t-zemin); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kabarik), var(--k-golge); color: var(--k-kemik); }
.pencere { padding: 0 var(--a-3) var(--a-3); }
.pencere header, body #hizmetPencere header, body #gorevPencere header, body #dvGanimet header {
  display: flex; align-items: center; gap: var(--a-2); margin: 0 calc(-1 * var(--a-3)) var(--a-3); padding: 9px var(--a-2) 8px var(--a-3);
  background: #15120e; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--k-cizgi); border-radius: var(--r) var(--r) 0 0; }
.pencere h2, body #hizmetPencere header b, body #gorevPencere header b, body #dvGanimet header b {
  flex: 1; min-width: 0; margin: 0; padding-left: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 600 17px/1.25 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-tuncAcik);
  background: var(--k-damga) left center / 16px 16px no-repeat; }
.pencere header > span { font: 500 12px/1.3 var(--y-sayi); color: var(--k-soluk); font-variant-numeric: tabular-nums; }
.pencere header .kucuk { padding: 3px 10px; font: 600 12px/18px var(--y-sayi); letter-spacing: 0.3px; }
/* hizmet / görev / ganimet pencerelerinin başlığı: <header><div><b>ad</b><small>iş</small></div><button>×</button></header> */
body #hizmetPencere header, body #gorevPencere header { margin: 0; padding: 9px var(--a-2) 8px var(--a-3); }
body #dvGanimet header { margin: 0 -12px 8px; }
body #hizmetPencere header b, body #gorevPencere header b, body #dvGanimet header b { display: block; }
body #hizmetPencere header small, body #gorevPencere header small { padding-left: 24px; font: 500 11.5px/1.3 var(--y-sayi); letter-spacing: 0.4px; color: var(--k-soluk); }

/* kapat: köşede kare demir düğme */
.pencere header .kapat, .pano header .kapat, body #hizmetPencere header button, body #gorevPencere header button, body #dvGanimet header button {
  flex: none; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; font: 400 19px/1 var(--y-govde); color: var(--k-soluk);
  background: var(--k-levha2); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kabarik); }
.pencere header .kapat:hover, .pano header .kapat:hover, body #hizmetPencere header button:hover, body #gorevPencere header button:hover, body #dvGanimet header button:hover {
  color: #fff; background: #5a1f17; box-shadow: inset 0 0 0 1px #c2452f; }

/* pencere içi ara başlıklar */
#karakterIc h3, #ayarIcerik h3, #beceriListe h3, body #gmPanel h3, body #hizmetPencere .ikili h4, #gorevGunluk h4, body #dvGanimet .baslik {
  margin: var(--a-3) 0 var(--a-1); padding: 0 0 3px; font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.7px; text-transform: none; font-variant: normal;
  color: var(--k-tunc); border-bottom: 1px solid var(--k-cizgi); text-shadow: none; }
body #hizmetPencere h3, body #gorevPencere h3 { font: 600 17px/1.3 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-kemik); }

/* gömük kutu */
.t-kutu, #ayrinti, body #hizmetPencere .kutu, body #gorevPencere .onizleme {
  background: var(--k-kece); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-gomuk); }

/* ---- sekmeler: alt çizgili yazı sekmesi ---- */
#sohbetSekmeler, #ayarSekmeler, body .p2Sekmeler, .sekmeler { display: flex; gap: 2px; }
#ayarSekmeler, body .p2Sekmeler, body #hizmetPencere .sekmeler, body .gnSekmeler { border-bottom: 1px solid var(--k-cizgi); box-shadow: none; margin-bottom: var(--a-2); }
#sohbetSekmeler button, #ayarSekmeler button, body .p2Sekmeler button, .sekmeler > button, body #hizmetPencere .sekmeler button {
  flex: none; padding: 6px 13px 5px; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; opacity: 1;
  font: 600 13px/1.3 var(--y-sayi); letter-spacing: 0.4px; color: var(--k-soluk); text-shadow: none; }
#sohbetSekmeler button:hover, #ayarSekmeler button:hover, body .p2Sekmeler button:hover, .sekmeler > button:hover, body #hizmetPencere .sekmeler button:hover {
  background: #ffffff0a; color: var(--k-kemik); box-shadow: none; }
#sohbetSekmeler button.secili, #ayarSekmeler button.secili, body .p2Sekmeler button.secili, .sekmeler > button.secili, body #hizmetPencere .sekmeler button.secili {
  background: none; color: var(--k-kemik); border-bottom-color: var(--k-kor); box-shadow: none; font-weight: 600; }
#sohbetSekmeler button:active, #ayarSekmeler button:active, .sekmeler > button:active { transform: none; }

/* ---- kaydırma çubuğu ---- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--k-is); }
::-webkit-scrollbar-thumb { background: var(--k-cizgi); border: 2px solid var(--k-is); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--k-tunc); }
::-webkit-scrollbar-corner { background: var(--k-is); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: #5e4f3d #0b0907; } }

/* ---- giriş kutuları ---- */
:where(.pano:not(#giris *)) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea),
#sohbetGiris, .ayarKontrol select, body #gmPanel select, body #gmPanel input, body #hizmetPencere .sikkeSatir input {
  color: var(--k-kemik); background: var(--k-is); border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgi); outline: none; }
:where(.pano:not(#giris *)) :where(input, select, textarea):focus, #sohbetGiris:focus, .ayarKontrol select:focus, body #gmPanel select:focus, body #gmPanel input:focus,
body #hizmetPencere .sikkeSatir input:focus { border-color: #000; box-shadow: inset 0 0 0 1px var(--k-kor); }
.ayarKontrol input[type="range"] { accent-color: var(--k-kor); }
.anahtar i { background: var(--k-is); border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgi); }
.anahtar i::after { border-radius: 1px; background: var(--k-sonuk); }
.anahtar input:checked + i { background: var(--k-korKoyu); border-color: #000; box-shadow: inset 0 0 0 1px var(--k-kor); }
.anahtar input:checked + i::after { background: var(--k-korAcik); }
.ayarSatir { border-bottom-color: #ffffff0a; }
.tusDugme { font: 600 12.5px/1.4 var(--y-sayi); }
.tusDugme.degisik { color: var(--k-korAcik); box-shadow: inset 0 0 0 1px var(--k-kor); }
.ayarKontrol .deger { font-family: var(--y-sayi); color: var(--k-tuncAcik); }
.ayarAlt { border-top-color: var(--k-cizgi); }

/* ---- yuva (eşya gözü): nadirlik alt kenarda ince şerit + hafif iç ton ---- */
.yuva, body #hizmetPencere .hzYuva, body .tcYuva { border: 1px solid #000; border-radius: var(--r); background: var(--k-is); box-shadow: inset 0 0 0 1px #2a231c; padding: 4px; }
.yuva.dolu, body #hizmetPencere .hzYuva.dolu, body .tcYuva.dolu { border-color: #000; background: linear-gradient(color-mix(in srgb, var(--nadir) 14%, #17130f), #100d0a);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nadir) 55%, #1a1511), inset 0 -3px 0 -1px var(--nadir); }
.yuva.dolu:hover, body #hizmetPencere .hzYuva.dolu:hover { filter: none; background: linear-gradient(color-mix(in srgb, var(--nadir) 26%, #1c1712), #15110d); }
.yuva.secili, body #hizmetPencere .hzYuva.secili { outline: 2px solid var(--k-korAcik); outline-offset: -1px; }
.yuva.hedef, .byuva.hedef { outline: 2px dashed var(--k-iyi); outline-offset: -1px; }
.yuva.bos svg { opacity: 0.17; filter: none; }
.yuva .adet, .byuva .adet, body #hizmetPencere .hzYuva .adet { right: 3px; bottom: 1px; font: 700 11.5px/1 var(--y-sayi); font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.yuva .arti, body #hizmetPencere .hzYuva .arti { left: 3px; top: 2px; font: 700 11px/1 var(--y-sayi); color: var(--k-sikke); text-shadow: 0 1px 0 #000, 0 0 3px #000; }

/* ---- çubuk (can / kaynak / deneyim): düz dolgu, çeyrek çentikleri ---- */
.cubuk { background: var(--k-is); border: 1px solid #000; border-radius: 1px; box-shadow: none; margin-top: 3px; }
.cubuk::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), #00000073 calc(25% - 1px), #00000073 25%); }
.cubuk i { box-shadow: inset 0 1px 0 #ffffff38, inset 0 -1px 0 #00000059; }
.cubuk i::after { display: none; }
.cubuk b { z-index: 1; font: 600 11.5px/14px var(--y-sayi); letter-spacing: 0.3px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
.cubuk.can i { background: var(--k-can); }
.cubuk.ofke i { background: #d08a2e; }
.cubuk.xp i { background: var(--k-tunc); }

/* ---- ipucu ---- */
#ipucu { max-width: 300px; padding: 9px 12px 10px; background: #14110ef5; border: 1px solid #000; border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--k-cizgiAcik), 0 6px 18px #000c; font-size: 12.5px; line-height: 1.45; color: var(--k-kemik); }
#ipucu > b:first-child, #ipucu b { color: var(--k-tuncAcik); }
#ipucu > b:first-child { margin-bottom: 2px; font: 600 15px/1.25 var(--y-baslik); letter-spacing: 0.2px; }
#ipucu .satir, #ipucu .ipTur { font: 500 12px/1.4 var(--y-sayi); letter-spacing: 0.3px; color: var(--k-soluk); }
#ipucu .ipTur { color: var(--k-tunc); }
#ipucu .iyi { color: var(--k-iyi); } #ipucu .kotu { color: var(--k-kotu); }
#ipucu .kiyas { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--k-cizgi); }
#ipucu .not { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--k-cizgi); font-size: 11.5px; color: var(--k-soluk); }
#surukle { filter: none; opacity: 0.92; }

/* ================= 2) HUD ================= */

/* ---- seviye damgası: baklava içinde sayı (oyuncu ve hedef) ---- */
.portre { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: 700 17px/1 var(--y-sayi); color: var(--k-kemik); text-shadow: 0 1px 0 #000; font-variant-numeric: tabular-nums; }
.portre::before { content: ""; position: absolute; left: 50%; top: 50%; width: 31px; height: 31px; margin: -15.5px 0 0 -15.5px; transform: rotate(45deg);
  background: var(--k-levha2); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--kr, var(--k-tunc)), inset 0 0 0 2px #0009; }
.portre > b, .portre { z-index: 0; }
.portre > b { position: relative; }
#hedefSv { isolation: isolate; }
#hedefSv::before { z-index: -1; }
#benPortre { isolation: isolate; }
#benPortre::before { z-index: -1; }
body[data-kr="0"] #benPortre { --kr: var(--k-mavi); }
body[data-kr="1"] #benPortre { --kr: var(--k-kirmizi); }
.portre.guclu { color: #ff8a78; --kr: var(--k-can); }
.portre.zayif { color: var(--k-sonuk); --kr: var(--k-sonuk); }

/* ---- çerçeve: oyuncu (sol üst) ve hedef (üst orta) ---- */
.cerceve { gap: 6px; align-items: center; padding: 6px 12px 7px 4px; background: #14110ee8; border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kenar); }
.cerceve .govde { width: 252px; }
#oyuncuCerceve { left: 12px; top: 12px; }
.cerceve .baslik { margin: 0 0 3px; align-items: baseline; gap: var(--a-2); font: 600 15px/1.25 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-kemik); text-shadow: 0 1px 0 #000; }
.cerceve .baslik > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cerceve .cubuk.can { height: 19px; margin-top: 0; }
.cerceve .cubuk.can b { font-size: 12.5px; line-height: 17px; text-align: right; padding-right: 7px; }
.cerceve .cubuk.ofke { height: 16px; margin-top: 2px; }
.cerceve .cubuk.ofke b { font-size: 11px; line-height: 15px; text-align: right; padding-right: 7px; }

#hedefCerceve { top: 12px; gap: 6px; padding: 6px 12px 7px 4px; border-radius: var(--r); border-color: #000; box-shadow: var(--k-kenar), inset 0 -2px 0 var(--hd, var(--k-cizgiAcik)); }
#hedefCerceve .portre { width: 46px; height: 46px; font-size: 16px; }
#hedefCerceve .govde { width: 250px; }
#hedefCerceve.sakin { --hd: #8a7a52; border-color: #000; }
#hedefCerceve.saldirgan { --hd: var(--k-can); border-color: #000; }
#hedefCerceve.seckin { --hd: var(--k-sikke); border-color: #000; box-shadow: var(--k-kenar), inset 0 -2px 0 var(--k-sikke); }
#hedefCerceve.seckin #hedefAd { color: var(--k-sikke); }
#hedefCerceve.oyuncu { --hd: var(--k-mavi); border-color: #000; }
#hedefCerceve.oyuncu #hedefAd { color: #cfe4ff; }
#hedefRutbe { font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.4px; color: var(--k-tunc); }
#hedefTavir { margin-top: 3px; font: 500 11.5px/1.3 var(--y-sayi); letter-spacing: 0.3px; font-style: normal; color: var(--k-soluk); }

/* ---- etkiler: oyuncu çerçevesinin altında bir sıra ---- */
#etkiler { position: fixed; left: 12px; top: 91px; z-index: 1; width: 300px; margin: 0; gap: 4px; }
#etkiler .etki { width: 30px; height: 30px; padding: 3px; border-radius: var(--r); background: var(--k-is); border: 1px solid #000; box-shadow: inset 0 0 0 1px #4f7a3f; }
#etkiler .etki.kotu { border-color: #000; box-shadow: inset 0 0 0 1px #a5382b; }
#etkiler .etki .kalan { right: -2px; bottom: -4px; padding: 0 3px; border-radius: 1px; background: #000d; font: 700 10px/12px var(--y-sayi); }

/* ---- küçük harita (sağ üst): kutu sabit genişlikte; yazılar değişince harita kaymaz ---- */
#haritaKutu { right: 12px; top: 12px; width: 204px; text-align: center; }
#miniHarita { display: block; margin: 0 auto; border: 1px solid #000; background: var(--k-is); box-shadow: 0 0 0 3px #1b1713, 0 0 0 4px var(--k-cizgiAcik), 0 0 0 5px #000; }
#bolge { margin-top: 10px; padding: 6px 8px 0; background: #14110ee8; border: 1px solid #000; border-bottom: 0; border-radius: var(--r) var(--r) 0 0; box-shadow: inset 0 1px 0 var(--k-cizgi), inset 1px 0 0 var(--k-cizgi), inset -1px 0 0 var(--k-cizgi); text-shadow: none; }
#bolge b { font: 600 16px/1.2 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-kemik); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bolge span { font: 600 11.5px/1.4 var(--y-sayi); letter-spacing: 0.5px; }
#koordinat { display: block; box-sizing: border-box; width: 204px; min-width: 0; margin: 0; padding: 1px 8px 6px; text-align: center; white-space: nowrap; overflow: hidden;
  font: 500 12px/1.5 var(--y-sayi); letter-spacing: 0.4px; font-variant-numeric: tabular-nums; color: var(--k-soluk);
  background: #14110ee8; border: 1px solid #000; border-top: 0; border-radius: 0 0 var(--r) var(--r); box-shadow: inset 0 -1px 0 var(--k-cizgi), inset 1px 0 0 var(--k-cizgi), inset -1px 0 0 var(--k-cizgi); text-shadow: none; }
#fps { right: 228px; top: 12px; padding: 1px 7px; font: 600 12px/1.5 var(--y-sayi); color: #bfe6ae; background: #0b0907cc; border: 1px solid #000; border-radius: var(--r); box-shadow: none; }

/* görev izleyici ve yurda dön düğmesi (gorev.js, hizmet.js; #haritaKutu içinde) */
body #yurtDugme { margin: var(--a-2) 0 0; padding: 4px 6px; font: 600 12px/1.4 var(--y-sayi); letter-spacing: 0.4px; background: #14110ee8; }
body #gorevKutu { margin-top: var(--a-2); padding: 7px 10px 8px; text-align: left; background: #14110ee8; border: 1px solid #000; border-left: 0; border-radius: var(--r);
  box-shadow: var(--k-kenar), inset 3px 0 0 var(--k-kor); }
body #gorevKutu:hover { background: #1f1a15f2; }
body #gorevKutu b { display: block; margin: 0 0 2px; padding: 0; border: 0; font: 600 14px/1.3 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-tuncAcik); font-variant: normal; }
body #gorevKutu.tamam { background: #14110ee8; border-color: #000; box-shadow: var(--k-kenar), inset 3px 0 0 var(--k-iyi); animation: none; }
body #gorevKutu.tamam span { font-weight: 600; color: var(--k-iyi); }
body #gorevKutu.tamam span::before { content: none; }
body #gorevKutu.bitti { box-shadow: var(--k-kenar), inset 3px 0 0 #8fc4e8; }
body #gorevKutu .gkCubuk { display: block; position: relative; height: 4px; margin: 5px 0 2px; border: 0; border-radius: 0; background: var(--k-is); box-shadow: none; overflow: hidden; }
body #gorevKutu .gkCubuk i { position: absolute; inset: 0 auto 0 0; display: block; background: var(--k-kor); transition: width 0.25s ease; }
body #gorevKutu.menuParla { animation: none; box-shadow: inset 0 0 0 1px var(--k-korAcik), inset 3px 0 0 var(--k-kor); }
body #yurtCubuk { background: #14110ef2; border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kenar); font: 600 12.5px/1.4 var(--y-sayi); letter-spacing: 0.4px; padding: 7px 12px 9px; }
body #yurtCubuk .dolgu, body #binekCubuk .dolgu { height: 6px; border: 1px solid #000; border-radius: 0; background: var(--k-is); box-shadow: none; }
body #yurtCubuk .dolgu i, body #binekCubuk .dolgu i { background: var(--k-kor); }
body #binekCubuk { background: #14110ef2; border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kenar); font: 600 12.5px/1.4 var(--y-sayi); letter-spacing: 0.4px; }

/* ---- sohbet (sol alt) ---- */
#sohbet { left: 12px; bottom: 16px; }
#sohbetSekmeler { opacity: 0.9; width: fit-content; background: #0b0907b8; }
#sohbetSekmeler button { padding: 2px 9px 3px; font-size: 12px; text-shadow: 0 1px 0 #000, 0 0 4px #000; }
#sohbetSekmeler .sayac { background: var(--k-kor); color: #1c0d04; font: 700 10px/14px var(--y-sayi); border-radius: 1px; box-shadow: none; }
#gunluk { padding: 5px 8px; background: linear-gradient(90deg, #0b0907b8, #0b090766 70%, transparent); border: 0; border-radius: 0; box-shadow: none; font-size: 12.5px; line-height: 1.4; }
#sohbet.yaziyor #gunluk { background: linear-gradient(90deg, #0b0907e6, #0b0907b8 70%, #0b090766); }
#sohbetKanal { font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.4px; background: var(--k-levha2); border-color: #000; }
#sohbetGiris { padding: 6px 9px; }

/* ---- beceri çubuğu (alt orta) ---- */
#altSerit, #altDurum { display: none; }
#altCubuk { bottom: 16px; padding: 6px; background: #14110ee8; border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kenar); }
#beceriler { gap: 5px; }
.cubukSira { gap: 5px; }
.cubukSira.alt { align-items: center; }
.byuva.beceri { width: 50px; height: 50px; padding: 5px; border: 1px solid #000; border-radius: var(--r); background: var(--k-is); box-shadow: inset 0 0 0 1px #2a231c; }
.cubukSira.ust .byuva.beceri { width: 40px; height: 40px; padding: 4px; }
.byuva.beceri.dolu { border-width: 1px; border-color: #000; padding: 5px; background: linear-gradient(#2a231b, #15110d); box-shadow: inset 0 0 0 1px var(--k-cizgiAcik), inset 0 1px 0 #ffffff1f; }
.cubukSira.ust .byuva.beceri.dolu { padding: 4px; }
.byuva.beceri.dolu:hover { border-color: #000; box-shadow: inset 0 0 0 1px var(--k-tuncAcik); }
.byuva.beceri.nesne { border-color: #000; }
.byuva.beceri.nesne.dolu { box-shadow: inset 0 0 0 1px #6b4a3a, inset 0 1px 0 #ffffff1f; }
/* tuş harfi: sol üstte düz yazı */
.byuva .tus { left: 4px; top: 3px; padding: 0; min-width: 0; font: 700 11px/1 var(--y-sayi); color: var(--k-tuncAcik); opacity: 1; background: none; border: 0; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.byuva .tus:empty { display: none; }
.byuva:not(.dolu) .tus { color: var(--k-sonuk); opacity: 1; }
/* bekleme: koyu perde + ortada kalan süre */
.beceri .perde { background: conic-gradient(#000000c7 var(--kalan, 0deg), transparent 0); }
.beceri .sure { font: 700 17px/1 var(--y-sayi); color: #fff; text-shadow: 0 1px 0 #000, 0 0 4px #000; font-variant-numeric: tabular-nums; }
.cubukSira.ust .byuva .sure { font-size: 14px; }
/* bedel yetmiyor: simge söner, altta kaynak renginde ince çizgi · kilitli: daha da sönük, açılma seviyesi yazar · nesne bitti */
.byuva.beceri.yetersiz { border-color: #000; filter: none; box-shadow: inset 0 0 0 1px #3b4a66, inset 0 -3px 0 -1px #5b84c9; }
.byuva.beceri.yetersiz .simge { opacity: 0.34; }
.byuva.beceri.kilitli { filter: none; background: var(--k-is); box-shadow: inset 0 0 0 1px #2a231c; }
.byuva.beceri.kilitli .simge { opacity: 0.2; filter: grayscale(1); }
.byuva.beceri.kilitli::after { inset: auto 0 4px 0; font: 600 11px/1 var(--y-sayi); letter-spacing: 0.3px; color: var(--k-soluk); text-shadow: 0 1px 0 #000; }
.byuva .kilit { right: 3px; top: 3px; width: 13px; height: 13px; opacity: 0.75; }
.byuva.beceri.yok { filter: none; }
.byuva.beceri.yok .simge { opacity: 0.3; filter: grayscale(1); }
.byuva.beceri.yok .adet { color: var(--k-kotu); }
@keyframes parla { from { box-shadow: inset 0 0 0 2px var(--k-korAcik); } to { box-shadow: inset 0 0 0 1px var(--k-cizgiAcik); } }
/* büyük beceri (R): daha iri yuva, kor kenar */
.cubukSira .byuva.beceri.buyuk { width: 62px; height: 62px; margin: 0 5px; padding: 6px; border: 1px solid #000; border-radius: var(--r);
  background: linear-gradient(#3a2416, #170f0a); box-shadow: inset 0 0 0 1px var(--k-kor), inset 0 0 0 2px #000; }
.cubukSira .byuva.beceri.buyuk.dolu:hover { border-color: #000; box-shadow: inset 0 0 0 1px var(--k-korAcik), inset 0 0 0 2px #000; }
.cubukSira .byuva.beceri.buyuk.kilitli { border-color: #000; background: var(--k-is); box-shadow: inset 0 0 0 1px #5a3a26, inset 0 0 0 2px #000; }
.byuva.buyuk .tus { font-size: 12px; color: var(--k-korAcik); }
.byuva.buyuk .sure { font-size: 20px; }
.cubukKilitDugme { border-radius: var(--r); background: #14110ee8; }
#beceriler.kilitli .cubukKilitDugme { background: var(--k-levha2); box-shadow: inset 0 0 0 1px var(--k-tunc); }
#beceriler.ustGizli .cubukKilitDugme { top: -36px; }

/* ---- deneyim: ekranın alt kenarı boyunca ince çizgi (onda bir çentikli); yazı üstüne gelince görünür ---- */
#xpCubuk { position: fixed; left: 0; right: 0; bottom: 0; height: 6px; margin: 0; border: 0; border-top: 1px solid #000; border-radius: 0; background: #0b0907e0; overflow: visible; }
#xpCubuk::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; }
#xpCubuk::after { background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), #000000a6 calc(10% - 1px), #000000a6 10%); }
#xpCubuk i { box-shadow: inset 0 1px 0 #ffffff40; }
#xpCubuk b { inset: auto 0 9px auto; width: auto; right: 50%; transform: translateX(50%); padding: 2px 10px; white-space: nowrap; font: 600 12px/1.4 var(--y-sayi); background: #14110ef2; border: 1px solid #000;
  box-shadow: var(--k-kenar); opacity: 0; pointer-events: none; transition: opacity 0.12s; }
#xpCubuk:hover b { opacity: 1; }

/* ---- sağ alt: sikke + simge düğmeleri + Menü ---- */
body #dugmeler { right: 12px; bottom: 16px; gap: 5px; align-items: center; flex-wrap: nowrap; max-width: none; }
body #dugmeler .simgeD { position: relative; flex: none; width: 40px; height: 40px; padding: 8px; border-radius: var(--r); background: #14110ee8; }
body #dugmeler .simgeD:hover { background: var(--k-levha3); }
body #dugmeler .simgeD svg { display: block; width: 100%; height: 100%; pointer-events: none; }
body #dugmeler .simgeD kbd { position: absolute; right: 2px; bottom: 1px; margin: 0; padding: 0; font: 700 10px/1 var(--y-sayi); color: var(--k-tuncAcik); background: none; border: 0; text-shadow: 0 1px 0 #000, 0 0 3px #000; pointer-events: none; }
body #dugmeler #dMenu { flex: none; height: 40px; padding: 4px 14px; font: 600 14px/1 var(--y-sayi); letter-spacing: 0.6px; color: var(--k-kemik); background: #14110ee8; }
body #dugmeler #dMenu:hover { background: var(--k-levha3); }
body #dugmeler #dMenu kbd { margin-left: 6px; }
body #dugmeler #dKarakter.puan, body #dugmeler #dBinek.acik { border-color: #000; box-shadow: inset 0 0 0 1px var(--k-kor), inset 0 -3px 0 -1px var(--k-kor); }
body #dugmeler #dCanta.dolu { border-color: #000; box-shadow: inset 0 0 0 1px var(--k-can), inset 0 -3px 0 -1px var(--k-can); }
body #dugmeler #dBinek.cagri { animation: none; box-shadow: inset 0 0 0 1px var(--k-korAcik); }
#altAkce { flex: none; display: flex; align-items: center; gap: 6px; height: 40px; margin-right: 3px; padding: 0 12px 0 9px; white-space: nowrap;
  font: 600 14px/1 var(--y-sayi); letter-spacing: 0.3px; color: var(--k-sikke); font-variant-numeric: tabular-nums;
  background: #14110ee8; border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kenar); }
#altAkce::before, .heybeAlt::before { content: ""; flex: none; width: 15px; height: 15px; background: var(--t-sikke) center / contain no-repeat; }
#altAkce:empty { display: none; }

/* ---- ekran ortası yazıları: bölge geçişi, uyarı, duyuru ---- */
#bolgeGecis { top: 19%; text-shadow: 0 2px 0 #000, 0 0 18px #000; }
#bolgeGecis b { font: 600 38px/1.15 var(--y-baslik); letter-spacing: 0.5px; color: var(--k-kemik); font-variant: normal; }
#bolgeGecis b::after { width: 46px; height: 2px; margin: 9px auto 7px; background: var(--k-kor); }
#bolgeGecis span { font: 600 13.5px/1.3 var(--y-sayi); letter-spacing: 1.2px; font-style: normal; }
#bolgeGecis.guvenli span { color: var(--k-iyi); }
#bolgeGecis.tehlikeli span { color: #ffb38a; }
body #dvUyari { top: 96px; padding: 7px 22px; background: #2a0c08eb; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px #8a3024, inset 3px 0 0 var(--k-can);
  font: 600 14.5px/1.35 var(--y-govde); letter-spacing: 0.2px; color: #ffd9cc; text-shadow: none; }
body #ozDuyuru { top: 10px; padding: 8px 38px 8px 18px; background: #1f1509f2; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px #7a5a2a, inset 3px 0 0 var(--k-kor), 0 6px 16px #000a;
  font: 600 14.5px/1.35 var(--y-govde); letter-spacing: 0.2px; color: #ffeccb; }
body #ozDuyuru a { color: var(--k-korAcik); }
body #ozDuyuru .kapat { top: 4px; color: var(--k-soluk); }
#olum { background: #1a0504a6; }
#olum div { font: 600 56px/1.2 var(--y-baslik); letter-spacing: 1px; color: #ffb7a8; font-variant: normal; text-shadow: 0 2px 0 #000, 0 0 24px #000; }
#olum small { font: 600 14px/1.4 var(--y-sayi); letter-spacing: 0.8px; color: var(--k-soluk); }

/* ---- grup, davet, başkan listesi (ozellik/index.js) ---- */
body #ozGrup { top: 124px; width: 184px; font: 12px/1.3 var(--y-govde); color: var(--k-kemik); }
body #ozGrup .bas { padding: 3px 8px; background: #14110ef2; border: 1px solid #000; border-radius: var(--r) var(--r) 0 0; box-shadow: var(--k-kenar); font: 600 11.5px/1.5 var(--y-sayi); letter-spacing: 0.6px; color: var(--k-tunc); }
body #ozGrup .bas button { color: var(--k-soluk); box-shadow: none; }
body #ozGrup .uye { padding: 4px 8px 6px; background: #14110ed9; border: 1px solid #000; border-top: 0; box-shadow: none; }
body #ozGrup .uye .can { height: 5px; margin-top: 3px; border: 0; border-radius: 0; background: var(--k-is); box-shadow: none; }
body #ozGrup .uye .can i { background: #5aa85a; }
body #ozGrup .uye .can i.az { background: var(--k-can); }
body #ozDavet, body .tkDavet { padding: 16px 20px 14px; background: var(--t-zemin); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kabarik), var(--k-golge); color: var(--k-kemik); font: 13.5px/1.45 var(--y-govde); }
body #ozDavet button { color: var(--k-kemik); background: var(--k-levha2); border: 1px solid #000; border-radius: var(--r); padding: 5px 16px; }
body #ozDavet button.evet { background: linear-gradient(#f07a35, #cf5320); color: #1c0d04; font-weight: 700; box-shadow: inset 0 1px 0 #ffd0a066, inset 0 0 0 1px #8f3413; }
body #ozBaskan { right: 12px; top: 300px; width: 204px; padding: 6px 9px; background: #14110ed9; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px #6a2a20; font: 11.5px/1.5 var(--y-govde); }
body #ozBaskan b { font: 600 13px/1.4 var(--y-baslik); color: #ffb39a; }
/* düşük can uyarısı: tam ekran süzgeç animasyonu yerine saydamlık nabzı (ucuz) */
body #ozCan.nabiz { animation: ozNabizSade 1s ease-in-out infinite alternate; }
@keyframes ozNabizSade { from { background-color: transparent; } to { background-color: #7800001f; } }

/* ---- dünya etiketleri ve sayılar ---- */
.etiket { font: 600 12.5px/1.3 var(--y-govde); letter-spacing: 0.1px; text-shadow: 0 1px 0 #000, 0 0 4px #000; }
.etiket small { font: 600 11.5px/1 var(--y-sayi); opacity: 0.9; font-variant-numeric: tabular-nums; }
.etiket.seckin { font: 600 14px/1.3 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-sikke); }
.etiket .mini { width: 56px; height: 5px; margin: 3px auto 0; border: 1px solid #000; border-radius: 0; background: #000c; box-shadow: none; }
.etiket .mini i { background: var(--k-can); }
.etiket.serit, .etiket .serit { display: inline-block; padding: 2px 10px 3px; line-height: 1.25; color: var(--k-kemik); text-shadow: none;
  background: #14110ee6; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px #4f7a3f, inset 0 -2px 0 -1px var(--k-iyi); }
.etiket .serit { font: 600 13px/1.25 var(--y-baslik); letter-spacing: 0.2px; }
.etiket.serit.tezgah, .etiket .serit.tezgah { box-shadow: inset 0 0 0 1px #7a5a2a, inset 0 -2px 0 -1px var(--k-sikke); }
body .etiket.npc .npcIs { color: #c9dcae; font: 600 11.5px/1.3 var(--y-sayi); letter-spacing: 0.4px; }
.sayi { font: 700 19px/1 var(--y-sayi); text-shadow: 0 1px 0 #000, 0 -1px 0 #000a, 1px 0 0 #000a, -1px 0 0 #000a, 0 0 5px #000; font-variant-numeric: tabular-nums; }
.sayi.krit { font-size: 28px; color: #ffd24a; } .sayi.sv { font-size: 26px; color: var(--k-sikke); }
body .etiket.yerEsya { border-radius: var(--r); background: #0b0907d9; box-shadow: none; }
.esyaResim{display:contents}
.esyaResim img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}

/* ================= 3) Pencereler ================= */

/* ---- Envanter (I): solda kuşam + karakter + yoldaşlar, sağda çanta ---- */
#canta { --hy: 46px; --cy: 44px; right: 12px; bottom: 100px; width: auto; max-height: calc(100vh - 112px); overflow-x: hidden; overflow-y: auto; }
#canta .envanterIc { display: grid; grid-template-columns: 268px auto; gap: var(--a-3); align-items: start; }
.heybeSol, .heybeSag { display: grid; gap: var(--a-2); min-width: 0; }
.heybeUst { position: relative; background: var(--k-kece); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-gomuk); }
/* kuşam: iki yanda altışar yuva, ortada karakter; en altta ayrı sırada binek ve pet. Yerleşim data-y ile. */
#kusamAlan { display: grid; grid-template-columns: var(--hy) minmax(0, 1fr) var(--hy); grid-template-rows: repeat(6, var(--hy)) auto; gap: 4px; padding: 6px; background: none; border: 0; border-radius: 0; }
#kusamAlan > div:not(.yuva) { display: none; }
#kusamAlan > .yuva { width: var(--hy); height: var(--hy); }
#kusamAlan > [data-y="kask"] { grid-area: 1 / 1; }
#kusamAlan > [data-y="kolye"] { grid-area: 2 / 1; }
#kusamAlan > [data-y="zirh"] { grid-area: 3 / 1; }
#kusamAlan > [data-y="eldiven"] { grid-area: 4 / 1; }
#kusamAlan > [data-y="kemer"] { grid-area: 5 / 1; }
#kusamAlan > [data-y="cizme"] { grid-area: 6 / 1; }
#kusamAlan > [data-y="silah"] { grid-area: 1 / 3; }
#kusamAlan > [data-y="yanel"] { grid-area: 2 / 3; }
#kusamAlan > [data-y="pelerin"] { grid-area: 3 / 3; }
#kusamAlan > [data-y="yuzuk1"] { grid-area: 4 / 3; }
#kusamAlan > [data-y="yuzuk2"] { grid-area: 5 / 3; }
#kusamAlan > [data-y="binek"] { grid-area: 7 / 1; margin-top: 9px; }
#kusamAlan > [data-y="pet"] { grid-area: 7 / 3; margin-top: 9px; }
/* yoldaş sırası: binek solda, pet sağda; ortada adları */
#kusamAlan::before { content: "Binek"; grid-area: 7 / 2; align-self: center; margin-top: 9px; padding-left: 4px; text-align: left; font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.5px; color: var(--k-soluk); }
#kusamAlan::after { content: "Pet"; grid-area: 7 / 2; align-self: center; margin-top: 9px; padding-right: 4px; text-align: right; font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.5px; color: var(--k-soluk); }
#heybeSahne { position: absolute; left: calc(var(--hy) + 10px); right: calc(var(--hy) + 10px); top: 6px; height: calc(var(--hy) * 6 + 20px); pointer-events: none; overflow: hidden; border: 0; border-radius: 0;
  background: radial-gradient(ellipse 70% 16% at 50% 88%, #e8642a2e, transparent 70%); }
.heybeUst::after { content: ""; position: absolute; left: 6px; right: 6px; top: calc(var(--hy) * 6 + 31px); height: 1px; background: var(--k-cizgi); pointer-events: none; }
#heybeOnizleme { position: absolute; inset: 0; }
#heybeOnizleme:not(:empty) + #heybeSiluet { display: none; }
#heybeSiluet { position: absolute; left: 50%; top: 8%; height: 68%; transform: translateX(-50%); opacity: 0.3; }
#heybeAd { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 0 4px; text-align: center; line-height: 1.25; text-shadow: 0 1px 0 #000, 0 0 5px #000; background: linear-gradient(#13100d00, #13100de6 46%); }
#heybeAd b { display: block; padding: 0 6px; font: 600 16px/1.2 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-kemik); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant: normal; }
#heybeAd span { font: 600 11.5px/1.3 var(--y-sayi); letter-spacing: 0.4px; color: var(--k-soluk); }
/* nitelik özeti */
#heybeOzet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
#heybeOzet:empty { display: none; }
.ozetHucre { min-width: 0; padding: 3px 7px 4px; text-align: left; background: var(--k-kece); border: 1px solid #000; border-radius: var(--r); box-shadow: none; cursor: help; }
.ozetHucre i { display: block; font: 600 11px/1.3 var(--y-sayi); font-style: normal; letter-spacing: 0.4px; color: var(--k-soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ozetHucre b { display: block; font: 600 13.5px/1.3 var(--y-sayi); color: var(--k-kemik); font-variant-numeric: tabular-nums; white-space: nowrap; }
#heybeOzet button { min-width: 0; padding: 4px 4px; font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.3px; font-variant: normal; }
#heybeOzet button.puan { border-color: #000; color: var(--k-korAcik); box-shadow: inset 0 0 0 1px var(--k-kor); }
/* çanta ızgarası */
#cantaIzgara { display: grid; grid-template-columns: repeat(8, var(--cy)); grid-auto-rows: var(--cy); gap: 4px; justify-content: start; align-content: start; padding: 0; border: 0; }
.heybeAlt { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 5px 8px; background: var(--k-kece); border: 1px solid #000; border-radius: var(--r); }
.heybeAlt .ad { order: -1; margin-right: auto; font: 600 12px/1 var(--y-sayi); letter-spacing: 0.5px; color: var(--k-soluk); font-variant: normal; }
#sikke { font: 600 14px/1 var(--y-sayi); letter-spacing: 0.3px; color: var(--k-sikke); font-variant-numeric: tabular-nums; text-shadow: none; }
#ayrinti { margin-top: 0; min-height: 86px; max-width: calc(var(--cy) * 8 + 28px); padding: 8px 10px; font-size: 12.5px; }
#ayrinti h3 { margin: 0 0 2px; font: 600 15.5px/1.3 var(--y-baslik); letter-spacing: 0.2px; }
#ayrinti .satir { font: 500 12px/1.4 var(--y-sayi); letter-spacing: 0.3px; }
#ayrinti .bedel { color: #e3d2ad; }
#ayrinti button { padding: 4px 11px; font-size: 12.5px; }
@media (max-height: 700px) {
  #canta { --hy: 40px; --cy: 40px; }
  #canta .envanterIc { grid-template-columns: 232px auto; }
}
@media (max-width: 760px) {
  #canta .envanterIc { grid-template-columns: minmax(0, 1fr); }
  #canta { --cy: 40px; }
}

/* ---- Beceriler (K) ---- */
.beceriSatir { border-bottom-color: #ffffff0a; }
.beceriSimge { border: 1px solid #000; border-radius: var(--r); background: linear-gradient(#2a231b, #15110d); box-shadow: inset 0 0 0 1px var(--k-cizgiAcik); }
.beceriSatir.cubukta .beceriSimge { border-color: #000; }
.beceriAd b { font: 600 15.5px/1.3 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-tuncAcik); }
.beceriAd b i { margin-left: 6px; padding: 0 5px; font: 600 10.5px/1.5 var(--y-sayi); font-style: normal; letter-spacing: 0.4px; color: var(--k-korAcik); border: 1px solid #8f3413; border-radius: 1px; vertical-align: 2px; }
.beceriAd span { font: 500 12px/1.3 var(--y-sayi); letter-spacing: 0.3px; color: var(--k-soluk); }
.beceriGuc { color: #e3d2ad; font-family: var(--y-sayi); }
.beceriTus { border: 1px solid var(--k-cizgi); border-radius: var(--r); background: var(--k-is); font: 700 12px/16px var(--y-sayi); color: var(--k-tuncAcik); }
.beceriSatir.buyuk { border: 1px solid #000; border-radius: var(--r); background: #e8642a12; box-shadow: inset 0 0 0 1px #8f3413; }
.beceriSatir.buyuk .beceriSimge { border-color: #000; box-shadow: inset 0 0 0 1px var(--k-kor); }
#beceriListe .sinifAd { color: var(--k-tuncAcik); }

/* ---- Menü ızgarası (menu.js) ---- */
body #menuIzgara { grid-template-columns: repeat(4, 104px); gap: 6px; }
body .menuKare { height: 86px; gap: 6px; border: 1px solid #000; border-radius: var(--r); background: var(--k-levha2); box-shadow: var(--k-kabarik); }
body .menuKare:hover, body .menuKare:focus-visible { border-color: #000; background: var(--k-levha3); box-shadow: inset 0 0 0 1px var(--k-tunc), inset 0 -3px 0 -1px var(--k-kor); outline: none; }
body .menuKare svg { width: 30px; height: 30px; }
body .menuKare .ad { font: 600 12.5px/1.15 var(--y-sayi); letter-spacing: 0.4px; font-variant: normal; color: var(--k-kemik); text-shadow: none; }
body .menuKare kbd { right: 4px; top: 4px; padding: 0 3px; background: none; border: 0; color: var(--k-tunc); }
body .menuKare.isaret { box-shadow: inset 0 0 0 1px var(--k-kor), inset 0 -3px 0 -1px var(--k-kor); }
body .menuKare.tehlike:hover { box-shadow: inset 0 0 0 1px #c2452f; background: #3a1712; }
body .menuNot { max-width: 434px; }
@media (max-width: 520px) { body #menuIzgara { grid-template-columns: repeat(3, 96px); } }

/* ---- Etkinlikler / Sıralama (pencereler2.js), Günlük işler (gunluk.js) ---- */
body .p2Satir { background: var(--k-kece); border: 1px solid #000; border-left: 0; border-radius: var(--r); box-shadow: inset 3px 0 0 var(--k-cizgiAcik); }
body .p2Satir b { font: 600 15px/1.3 var(--y-baslik); letter-spacing: 0.2px; }
body .p2Satir.etkin { background: var(--k-kece); box-shadow: inset 3px 0 0 var(--k-kor); }
body .p2Satir.canli { box-shadow: inset 3px 0 0 var(--k-iyi); }
body .p2Tablo th { background: #15120e; color: var(--k-tunc); font: 600 12px/1.4 var(--y-sayi); letter-spacing: 0.6px; font-variant: normal; border-bottom: 1px solid var(--k-cizgi); }
body .p2Tablo td { font-variant-numeric: tabular-nums; }
body .p2Tablo tr:nth-child(even) td { background: #ffffff05; }
body .p2Tablo tr.ben td { background: #e8642a24; }

/* ---- Ölüm kutusu, ganimet (dovus.js) ---- */
body #dvOlum { background: radial-gradient(ellipse at center, #1a0504a8, #000000e0); }
body #dvOlum .kutu { width: min(440px, 92vw); padding: 26px 24px 18px; background: var(--t-zemin); border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px #6a2a20, inset 0 3px 0 -1px var(--k-can), var(--k-golge); color: var(--k-kemik); font: 14px/1.45 var(--y-govde); }
body #dvOlum h2 { font: 600 40px/1.15 var(--y-baslik); letter-spacing: 0.5px; color: #ffb7a8; text-shadow: 0 2px 0 #000; font-variant: normal; }
body #dvOlum h2::after { content: none; }
body #dvOlum p { margin: 8px 0 18px; font-style: normal; color: var(--k-soluk); }
body #dvOlum button { padding: 11px 8px; }
body #dvOlum button b { font: 600 16px/1.3 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-kemik); font-variant: normal; }
body #dvOlum button small { font: 500 11.5px/1.4 var(--y-sayi); letter-spacing: 0.3px; color: var(--k-soluk); }
body #dvOlum .alt { color: var(--k-soluk); }
body #dvGanimet { top: 90px; padding: 0 12px 10px; background: var(--t-zemin); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kabarik), var(--k-golge); color: var(--k-kemik); font: 13px/1.45 var(--y-govde); }
body #dvGanimet header small { font: 500 11.5px/1.3 var(--y-sayi); color: var(--k-soluk); }
body #dvGanimet .satir + .satir { border-top: 1px solid #ffffff0a; }
body #dvGanimet .not { border-top-color: var(--k-cizgi); color: var(--k-soluk); }
body #dvGanimetDugme { font: 600 12px/1.4 var(--y-sayi); letter-spacing: 0.3px; }

/* ---- Tüccar / demirci / depo (hizmet.js) ---- */
body #hizmetPencere { padding: 0 0 12px; background: var(--t-zemin); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kabarik), var(--k-golge); color: var(--k-kemik); }
body #hizmetPencere .govde { padding: 10px 12px 0; }
body #hizmetPencere .soz { font: italic 13.5px/1.5 var(--y-baslik); color: #dccdb2; }
body #hizmetPencere .sikke, body #hizmetPencere .mal em { font-family: var(--y-sayi); color: var(--k-sikke); font-variant-numeric: tabular-nums; }
body #hizmetPencere .eksik { color: var(--k-kotu); }
body #hizmetPencere .iyi { color: var(--k-iyi); }
body #hizmetPencere .mal { padding: 5px 0; border-top-color: #ffffff0a; }
body #hizmetPencere .mal .ad small { font: 500 11.5px/1.3 var(--y-sayi); letter-spacing: 0.3px; }
body #hizmetPencere .kutu .satir i { font: 500 12px/1.5 var(--y-sayi); letter-spacing: 0.3px; }
body #hizmetPencere .sonuc { border-radius: var(--r); }
body #hizmetPencere .sonuc.ok { background: #1c2a14; border: 1px solid #000; box-shadow: inset 0 0 0 1px #4f7a3f; color: #cdeebb; }
body #hizmetPencere .sonuc.kotu { background: #2a120d; border: 1px solid #000; box-shadow: inset 0 0 0 1px #8a3024; color: #ffc9bd; }

/* ---- Seyis / kuşçu dükkânı (binek.js, pet.js): yalnız satın alma; kuşanma çantadan ---- */
body #binekPencere, body #petPencere { left: 50%; top: calc(50% - 44px); transform: translate(-50%, -50%); width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 204px); overflow-y: auto; z-index: 12; }
.dkSoz { margin: 0 0 var(--a-2); font: italic 13.5px/1.5 var(--y-baslik); color: #dccdb2; }
.dkSatir { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid #ffffff0a; }
.dkSatir.kilitli .dkSimge, .dkSatir.kilitli .dkAd { opacity: 0.55; }
.dkSimge { width: 44px; height: 44px; padding: 5px; background: var(--k-is); border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgiAcik); }
.dkSimge svg { display: block; width: 100%; height: 100%; }
.dkAd { font: 600 15px/1.3 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-kemik); }
.dkAd small { margin-left: 8px; font: 600 12px/1 var(--y-sayi); letter-spacing: 0.3px; color: var(--k-iyi); }
.dkBilgi { font-size: 12px; line-height: 1.4; color: var(--k-soluk); }
.dkBilgi b { font-weight: 600; color: var(--k-kotu); }
.dkYan { display: grid; gap: 4px; justify-items: end; }
.dkFiyat { display: inline-flex; align-items: center; gap: 5px; font: 600 13.5px/1 var(--y-sayi); color: var(--k-sikke); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dkFiyat::before { content: ""; width: 13px; height: 13px; background: var(--t-sikke) center / contain no-repeat; }
.dkFiyat.eksik { color: var(--k-kotu); }
.dkSatir button, .dkAlt button { flex: none; padding: 4px 12px; font-size: 12.5px; white-space: nowrap; }
.dkAlt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: var(--a-2); padding-top: var(--a-2); border-top: 1px solid var(--k-cizgi); font-size: 12px; line-height: 1.4; color: var(--k-soluk); }

/* ---- Nesne Market (market.js): pencerenin bütün görünüşü market.js içindeki STIL metnindedir ---- */
body .etiket .mkUnvan { font: italic 600 11.5px/1.2 var(--y-baslik); color: #e3d2ad; }

/* ---- Günlük işler ve sezon (gunluk.js), Rehber (rehber.js): sekmeler ortak yazı sekmesi ---- */
body #gunlukGovde .gnSekmeler, body #rehberGovde .rhSekmeler { gap: 2px; margin-bottom: var(--a-2); border-bottom: 1px solid var(--k-cizgi); }
body #gunlukGovde .gnSekmeler button, body #rehberGovde .rhSekmeler button { padding: 6px 13px 5px; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none;
  font: 600 13px/1.3 var(--y-sayi); letter-spacing: 0.4px; color: var(--k-soluk); }
body #gunlukGovde .gnSekmeler button:hover, body #rehberGovde .rhSekmeler button:hover { background: #ffffff0a; color: var(--k-kemik); }
body #gunlukGovde .gnSekmeler button.secili, body #rehberGovde .rhSekmeler button.secili { background: none; color: var(--k-kemik); border-bottom-color: var(--k-kor); }
body #gunlukGovde .gnSekmeler i { border-radius: 1px; background: var(--k-kor); color: #1c0d04; font-family: var(--y-sayi); }
body .gnIs, body .szOzet, body .szKademe, body #rehberIc .rhKutu { background: var(--k-kece); border: 1px solid #000; border-radius: var(--r); }
body .gnIs { border-left: 0; box-shadow: inset 3px 0 0 var(--k-cizgiAcik); }
body .gnIs.ana { box-shadow: inset 3px 0 0 var(--k-tunc); }
body .gnIs.hazir { background: var(--k-kece); box-shadow: inset 3px 0 0 var(--k-kor); }
body .gnSandik { box-shadow: inset 3px 0 0 var(--k-iyi); }
body .gnIs b { font: 600 15px/1.3 var(--y-baslik); letter-spacing: 0.2px; }
body .gnIs .tur { border-radius: 1px; border: 1px solid var(--k-cizgi); font: 600 10.5px/1.5 var(--y-sayi); letter-spacing: 0.4px; }
body .gnIs.ana .tur { border-color: var(--k-tunc); color: var(--k-tuncAcik); }
body .gnCubuk { height: 6px; border: 1px solid #000; border-radius: 0; background: var(--k-is); }
body .gnCubuk i { background: var(--k-kor); }
body #gunlukGovde button.al:not(:disabled) { background: linear-gradient(#f07a35, #cf5320); color: #1c0d04; font-weight: 700; border-color: #000; box-shadow: inset 0 1px 0 #ffd0a066, inset 0 0 0 1px #8f3413; }
body .szOzet b { font: 600 16px/1.3 var(--y-baslik); color: var(--k-tuncAcik); }
body .szKademe .no { font: 700 11px/1.4 var(--y-sayi); }
body .szKademe.hak { border-color: #000; box-shadow: inset 0 0 0 1px var(--k-kor); }
body .szKademe.hak .no { color: var(--k-korAcik); }
body .szKademe.alindi { border-color: #000; box-shadow: inset 0 0 0 1px #4f7a3f; }
body .szKademe.kusam { background: var(--k-levha2); }
body #rehberIc h3 { font: 600 17px/1.3 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-tuncAcik); }
body #rehberIc h4 { color: var(--k-kemik); }
body #rehberIc kbd { border: 1px solid var(--k-cizgi); border-radius: var(--r); background: var(--k-is); color: var(--k-tuncAcik); font: 600 11.5px/18px var(--y-sayi); }
body #rehberIc th { background: #15120e; color: var(--k-tunc); font: 600 12px/1.4 var(--y-sayi); letter-spacing: 0.5px; border-bottom-color: var(--k-cizgi); }
body #rehberIc .rhKutu { border-left: 0; box-shadow: inset 3px 0 0 var(--k-kor); }
body #rehberIc .rozet { border-radius: 1px; border: 1px solid var(--k-cizgi); font: 600 10.5px/1.5 var(--y-sayi); }
body #rehberIc .rhSecim button.secili { border-color: #000; color: var(--k-kemik); box-shadow: inset 0 0 0 1px var(--k-kor), inset 0 -3px 0 -1px var(--k-kor); }

/* ---- Pazar tezgâhı ve takas (pazar.js, takas.js): .tcPencere ---- */
body .tcPencere { padding: 0 0 12px; background: var(--t-zemin); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kabarik), var(--k-golge); color: var(--k-kemik); }
body .tcPencere header { margin: 0; padding: 9px var(--a-2) 8px var(--a-3); background: #15120e; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--k-cizgi); }
body .tcPencere header b { display: block; padding-left: 24px; font: 600 17px/1.25 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-tuncAcik); background: var(--k-damga) left center / 16px 16px no-repeat; }
body .tcPencere header small { padding-left: 24px; font: 500 11.5px/1.3 var(--y-sayi); letter-spacing: 0.4px; color: var(--k-soluk); }
body .tcPencere header button { flex: none; width: 26px; height: 26px; padding: 0; font: 400 19px/1 var(--y-govde); color: var(--k-soluk); }
body .tcPencere header button:hover { color: #fff; background: #5a1f17; box-shadow: inset 0 0 0 1px #c2452f; }
body .tcPencere h4 { margin: 0 0 6px; padding-bottom: 3px; font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.7px; color: var(--k-tunc); border-bottom: 1px solid var(--k-cizgi); }
body .tcPencere .sikke, body .tcPencere .kalem em { font-family: var(--y-sayi); color: var(--k-sikke); font-variant-numeric: tabular-nums; }
body .tcPencere .eksik { color: var(--k-kotu); } body .tcPencere .iyi { color: var(--k-iyi); }
body .tcPencere button.ana, body #takasDavet button.evet { background: linear-gradient(#f07a35, #cf5320); color: #1c0d04; font-weight: 700; border-color: #000; box-shadow: inset 0 1px 0 #ffd0a066, inset 0 0 0 1px #8f3413; }
body .tcPencere button.tehlike { background: #4a1a14; border-color: #000; box-shadow: inset 0 0 0 1px #8a3024; color: #ffc9bd; }
body .tcPencere input { color: var(--k-kemik); background: var(--k-is); border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgi); outline: none; }
body .tcPencere input:focus { box-shadow: inset 0 0 0 1px var(--k-kor); }
body .tcPencere .kutu, body #takasPencere .sutun { background: var(--k-kece); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-gomuk); }
body #takasPencere .sutun.kilitli { border-color: #000; box-shadow: inset 0 0 0 1px var(--k-sikke); }
body #takasPencere .sutun.onayli { border-color: #000; box-shadow: inset 0 0 0 1px var(--k-iyi); }
body .tcYuva.dolu:hover { filter: none; }
body .tcYuva.secili { outline: 2px solid var(--k-korAcik); outline-offset: -1px; }
body #takasDavet, body #oyuncuMenu2 { background: var(--t-zemin); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kabarik), var(--k-golge); color: var(--k-kemik); }
body #oyuncuMenu2 b { font: 600 14.5px/1.3 var(--y-baslik); color: var(--k-tuncAcik); border-bottom-color: var(--k-cizgi); }
body #oyuncuMenu2 button { border-radius: 0; box-shadow: none; }
body #oyuncuMenu2 button:hover { background: #e8642a24; box-shadow: none; }

/* ---- Görev verenin penceresi (gorev.js #gorevPencere) ---- */
body #gorevPencere { padding: 0 0 12px; background: var(--t-zemin); border: 1px solid #000; border-radius: var(--r); box-shadow: var(--k-kabarik), var(--k-golge); color: var(--k-kemik); }
body #gorevPencere .govde { padding: 10px 12px 0; }
body #gorevPencere .soz { font: italic 13.5px/1.5 var(--y-baslik); color: #dccdb2; }
body #gorevPencere .satir i { font: 500 12px/1.5 var(--y-sayi); letter-spacing: 0.3px; }
body #gorevPencere .odul, body #gorevPencere .sikke, body #gorevPencere .mal em { color: var(--k-sikke); }
body #gorevPencere .hedef.tamam { color: var(--k-iyi); }
body .etiket.npc .npcIsaret { animation: none; font-family: var(--y-baslik); }

/* ---- Ocak Savaşı şeridi (ocak-savasi.js) ---- */
body #osSerit .osUst, body #osSerit .osAlt, body #osSerit .osZafer { border-radius: var(--r); background: #14110eeb; border: 1px solid #000; box-shadow: var(--k-kenar); }
body #osSerit .osPuan { font: 700 21px/1 var(--y-sayi); }
body #osSerit .osSure { font: 600 15px/1.2 var(--y-sayi); }
body #osSerit button { border-radius: var(--r); background: var(--k-levha2); border: 1px solid #000; box-shadow: var(--k-kabarik); font: 600 12px/1.4 var(--y-sayi); }
body #osSon { border-radius: var(--r); background: var(--t-zemin); border: 1px solid #000; box-shadow: var(--k-kabarik), var(--k-golge); }
body #osSon h3 { font: 600 20px/1.3 var(--y-baslik); }
body #osSon button { border-radius: var(--r); background: var(--k-levha2); }

/* ---- Yönetici paneli (gm.js): çerçeve ortak dile uyar, altın rozet GM'e özgü kalır ---- */
body #gmPanel { border-color: #000; box-shadow: inset 0 0 0 1px #8a6a2a, var(--k-golge); }
body #gmPanel header h2 { color: var(--k-sikke); }

/* ---- Yükleme ekranı (yukleme-ekrani.js): giriş ekranıyla aynı ad yazısı ---- */
body #yukEkran .ad { padding-top: 76px; font: 600 clamp(64px, 9vw, 112px)/1 var(--y-baslik); letter-spacing: 1px; margin-right: 0; color: var(--k-kemik); -webkit-text-fill-color: currentColor;
  background: var(--k-damga) center top / 60px 60px no-repeat; -webkit-background-clip: border-box; background-clip: border-box; text-shadow: 0 3px 0 #000; filter: none; }
body #yukEkran .cizgi { height: 2px; width: 46px; margin: 20px auto 16px; background: var(--k-kor); }
body #yukEkran .baslik { font: 600 23px/1.3 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-tuncAcik); }
body #yukEkran .alt { font: 600 13px/1.3 var(--y-sayi); letter-spacing: 1.4px; text-transform: none; color: var(--k-soluk); }
body #yukEkran .cubuk { height: 6px; border: 1px solid #000; border-radius: 0; background: var(--k-is); box-shadow: 0 0 0 1px var(--k-cizgi); }
body #yukEkran .cubuk b { border-radius: 0; background: var(--k-kor); }
body #yukEkran .cubuk b::after { content: none; }
body #yukEkran .durum { font: 500 12.5px/1.4 var(--y-sayi); letter-spacing: 0.3px; color: var(--k-soluk); }
body #yukEkran .ipucu { font: italic 15px/1.5 var(--y-baslik); color: #cdbb96; }

/* ---- Büyük harita (M): beceri çubuğunun üstünde bitsin ---- */
#buyukHarita { top: calc(50% - 38px); }
#haritaTuval { width: min(calc(100vh - 224px), 86vw, 820px); height: min(calc(100vh - 224px), 86vw, 820px); border: 1px solid #000; border-radius: var(--r); background: var(--k-is); }
#buyukHarita footer { padding-top: 8px; font: 500 12px/1.4 var(--y-sayi); letter-spacing: 0.3px; color: var(--k-soluk); }
#yardim td:first-child { color: var(--k-tuncAcik); }
#karakterIc tr + tr td, #yardim tr + tr td { border-top: 1px solid #ffffff0a; }

/* ---- dar ekranlar ---- */
@media (max-width: 1320px) {
  #altAkce { position: absolute; right: 0; bottom: calc(100% + 6px); margin: 0; height: 30px; }
  #sohbet { width: min(340px, 27vw); }
}
@media (max-width: 1100px) {
  .cerceve .govde { width: 190px; }
  #hedefCerceve .govde { width: 200px; }
  body #dugmeler #dMenu kbd { display: none; }
  /* sohbet beceri çubuğuyla aynı hizaya sığmaz: bir sıra yukarı */
  #sohbet { bottom: 86px; width: min(360px, 40vw); }
}
@media (prefers-reduced-motion: reduce) { #xpCubuk b { transition: none; } }

/* ================= Karakter penceresi (C; js/arayuz.js → karakterCiz) ================= */
/* Üstte dönen 3B önizleme + kimlik + nitelikler, altta iki sütun gruplu değerler ve kuşam özeti */
body #karakter { top: 92px; width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 200px); overflow-y: auto; }
#karakterIc { display: grid; gap: 8px; }
.kpUst { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.kpSahne { position: relative; min-height: 204px; border: 1px solid #000; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(ellipse 80% 40% at 50% 100%, #c8802a55, transparent 70%), var(--k-kece); box-shadow: var(--k-gomuk); }
#kpOnizleme { position: absolute; inset: 0; }
#kpKimlik { min-width: 0; display: grid; align-content: start; }
.kpAd { font: 600 23px/1.2 var(--t-serif); letter-spacing: 0.2px; color: var(--k-kemik); text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpSinif { font-size: 12.5px; color: var(--t-yazi); cursor: help; }
#karakterIc .kpXp { height: 15px; margin: 6px 0 0; cursor: help; }
#karakterIc .kpXp b { line-height: 13px; font-size: 10.5px; }
#karakterIc h3 { margin: 8px 0 2px; padding-bottom: 2px; }
#karakterIc h3 .puan { font: 600 11.5px/1 var(--y-sayi); letter-spacing: 0; font-variant: normal; color: var(--k-iyi); }
.kpDeger { display: flex; align-items: center; gap: 6px; min-height: 22px; padding: 1px 4px; font-size: 12.5px; border-top: 1px solid #ffffff0b; cursor: help; }
.kpDeger:first-of-type { border-top: 0; }
.kpDeger:hover { background: #ffffff0a; }
.kpDeger > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpDeger > b { color: var(--k-kemik); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpAna { font: normal 8px/1 var(--y-sayi); color: var(--t-altin); vertical-align: middle; }
#karakterIc .kpDeger .arti { flex: none; margin-left: 2px; padding: 0 7px; line-height: 18px; }
.kpGruplar { columns: 2; column-gap: 20px; }
.kpGruplar section { break-inside: avoid; padding-bottom: 4px; }
.kpGruplar section h3 { margin-top: 2px; }
#karakterIc .kpKusamBas { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.kpKusamBas span { font: 500 11.5px/1.2 var(--y-sayi); letter-spacing: 0; font-variant: normal; color: var(--soluk); cursor: help; white-space: nowrap; }
.kpKusamBas span b { color: var(--t-altinAcik); font-size: 13px; }
.kpKusam { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.kpYuva { position: relative; aspect-ratio: 1; min-width: 0; display: grid; place-items: center; padding: 3px; border: 1px solid #000; border-radius: var(--r); color: #d2b684;
  background: var(--k-is); box-shadow: inset 0 0 0 1px var(--nadir, var(--k-cizgi)), inset 0 0 10px #000a; cursor: help; }
.kpYuva svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.kpYuva.bos { opacity: 0.4; }
.kpArti { position: absolute; right: 2px; bottom: 0; font: 700 10.5px/1.2 var(--y-sayi); color: var(--k-sikke); text-shadow: 0 1px 2px #000, 0 0 3px #000; }
#karakterIc .ayarNot { margin: 2px 0 0; }
@media (max-width: 560px) {
  .kpUst { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
  .kpGruplar { columns: 1; }
  .kpKusam { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* ================= Görevler penceresi (J; js/gorev.js → #gorevGunluk) ve görev kutusu ================= */
/* İki sütun: solda bölümlü liste (Etkin / Sunulan / Tamamlanan; harita adına göre gruplu), sağda seçili görevin ayrıntısı */
#gorevGunluk { left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 16; width: min(840px, calc(100vw - 24px)); height: min(580px, calc(100vh - 120px));
  display: flex; flex-direction: column; pointer-events: auto; color: var(--t-yazi); font-size: 13px; line-height: 1.45; }
#gorevGunluk[hidden] { display: none; }
#gorevGunluk header { flex: none; margin-bottom: 8px; }
.ggIc { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 12px; }
.ggListe, .ggAyrinti { min-height: 0; overflow-y: auto; border: 1px solid #000; border-radius: var(--r); background: var(--k-kece); box-shadow: var(--k-gomuk); }
.ggListe { padding: 6px 6px 10px; }
.ggAyrinti { padding: 12px 16px 14px; }
.ggBolum + .ggBolum { margin-top: 8px; }
#gorevGunluk h4 { margin: 0; font: 600 12px/1.4 var(--y-sayi); letter-spacing: 0.7px; color: var(--k-tunc); text-shadow: none; }
.ggBolum h4 { display: flex; align-items: center; justify-content: space-between; padding: 3px 6px; border-bottom: 1px solid var(--k-cizgi); }
.ggBolum h4 em { font: 700 11px/1.5 var(--y-sayi); font-style: normal; letter-spacing: 0; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 1px; color: var(--t-altinAcik); background: #0a0704; border: 1px solid var(--k-cizgi); }
.ggHarita { margin: 6px 6px 2px; font-size: 10.5px; letter-spacing: 1px; color: var(--soluk); font-family: var(--y-sayi); font-weight: 600; }
.ggYok { margin: 5px 6px 0; font-size: 12px; color: #8a7a62; font-style: italic; }
#gorevGunluk .ggSatir { width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 7px; margin-top: 2px; padding: 5px 8px 5px 6px; text-align: left;
  font-size: 12.5px; color: var(--t-yazi); background: none; border: 1px solid transparent; border-radius: var(--r); box-shadow: none; text-shadow: none; }
#gorevGunluk .ggSatir:hover { background: #ffffff0d; border-color: var(--k-cizgi); color: var(--k-kemik); box-shadow: none; }
#gorevGunluk .ggSatir.secili { background: #e8642a1c; border-color: var(--t-altin); color: var(--k-kemik); box-shadow: inset 2px 0 0 var(--k-kor); }
.ggSatir span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ggSatir small { font-size: 11px; color: var(--soluk); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ggIm { width: 9px; height: 9px; justify-self: center; transform: rotate(45deg); background: var(--t-altin); border: 1px solid #000; box-shadow: 0 0 5px #d9b25c66; }
.ggSatir.hazir .ggIm { background: var(--k-iyi); box-shadow: 0 0 6px var(--k-iyi)99; }
.ggSatir.hazir small { color: var(--k-iyi); font-weight: 700; }
.ggSatir.sunulan .ggIm { background: #ffd84a; border-radius: 50%; transform: none; }
.ggSatir.sunulan small { color: var(--k-sikke); }
.ggSatir.bitmis { color: #b9a98a; }
.ggSatir.bitmis .ggIm { background: #5a4a36; box-shadow: none; }
.ggSatir.bitmis small { color: #8fb07a; }

.ggBaslik { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#gorevGunluk .ggBaslik h3 { margin: 0; min-width: 0; font: 600 21px/1.2 var(--t-serif); letter-spacing: 0.4px; color: var(--t-altinAcik); text-shadow: 0 1px 0 #000; }
.ggHal { flex: none; padding: 1px 9px; border-radius: 1px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; border: 1px solid var(--k-cizgi); background: #0a0704; color: var(--t-altin); white-space: nowrap; }
.ggHal.hazir { color: var(--k-iyi); border-color: #5f8a4a; }
.ggHal.sunulan { color: var(--k-sikke); }
.ggHal.bitmis { color: #8fb07a; }
.ggVeren { margin-top: 2px; font-size: 12px; color: var(--soluk); }
.ggVeren b { color: var(--t-yazi); font-weight: 600; }
.ggHikaye { margin: 10px 0 0; padding: 8px 12px; font: italic 13.5px/1.55 var(--t-serif); color: #e6d6b6; border-left: 2px solid var(--k-cizgiAcik); background: #ffffff06; border-radius: 0 3px 3px 0; }
.ggHikaye.bitis { margin-top: 6px; border-left-color: #5f8a4a; color: #cfe6c0; }
.ggAyrinti h4 { margin: 12px 0 5px; padding-bottom: 2px; border-bottom: 1px solid var(--k-cizgi); }
.ggHedef { display: grid; gap: 4px; }
.ggHedefAd { font-weight: 600; color: var(--k-kemik); }
.ggCubuk { position: relative; height: 18px; border: 1px solid #000; border-radius: var(--r); background: #0a0704; box-shadow: inset 0 1px 4px #000, 0 0 0 1px var(--k-cizgi)80; overflow: hidden; }
.ggCubuk i { position: absolute; inset: 0 auto 0 0; background: var(--k-kor); box-shadow: inset 0 1px 0 #ffffff40; transition: width 0.25s ease; }
.ggCubuk b { position: absolute; inset: 0; text-align: center; font: 700 11.5px/16px var(--y-sayi); color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
.ggHedef.tamam .ggCubuk i { background: #5f9a44; }
.ggHedef.tamam .ggHedefAd { color: var(--k-iyi); }
.ggIpucu { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 12.5px; color: var(--t-yazi); }
.ggIpucu span { min-width: 0; }
.ggIpucu i { font-style: normal; color: var(--soluk); }
.ggIpucu button { flex: none; padding: 3px 11px; font-size: 12px; }
/* ödül karoları: görev penceresi ve görev verenin penceresi ortak kullanır */
.ggOduller { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ggOdul { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 1px solid #000; border-radius: var(--r); background: var(--k-kece); box-shadow: inset 0 0 0 1px var(--k-cizgi)80; cursor: help; }
.ggSimge { width: 34px; height: 34px; display: grid; place-items: center; padding: 2px; border-radius: var(--r); color: #d2b684; background: var(--k-is); box-shadow: inset 0 0 0 1px var(--nadir, var(--k-cizgi)); }
.ggSimge svg { display: block; width: 100%; height: 100%; }
.ggXp { font: normal 19px/1 var(--y-sayi); color: #b79cf0; text-shadow: 0 0 8px #8a66e0; }
.ggSikke { display: block; width: 22px; height: 22px; background: var(--t-sikke) center / contain no-repeat; }
.ggOdulYazi { min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--k-kemik); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.ggOdulBas { margin: 8px 0 4px; font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.7px; color: var(--k-tunc); }
body #gorevPencere .ggOduller { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); margin-bottom: 6px; }
.ggDugmeler { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--k-cizgi); }
.ggDugmeler button { padding: 7px 18px; font-size: 13.5px; }
.ggDugmeler button.ana { font-weight: 700; }
.ggNot { font-size: 12px; color: var(--soluk); font-style: italic; }
.ggBos { display: grid; align-content: center; justify-items: center; gap: 4px; height: 100%; text-align: center; color: var(--soluk); }
.ggBos b { font: 600 17px/1.3 var(--t-serif); color: var(--t-altin); }
.ggBos p { margin: 0; max-width: 320px; font-size: 12.5px; }
/* zincir bitti: sıradaki haritaya yönlendiren kart */
.ggSon { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 8px 12px; border: 1px solid #5a8fb5; border-left: 3px solid #8fd0ff; border-radius: var(--r);
  background: linear-gradient(90deg, #1c3346cc, #150e09cc); box-shadow: inset 0 1px 0 #ffffff14; }
.ggSon[hidden] { display: none; }
.ggSonYazi { display: grid; gap: 1px; min-width: 0; }
.ggSonYazi b { font: 600 15px/1.3 var(--t-serif); color: #cfeaff; }
.ggSonYazi span { font-size: 12.5px; }
.ggSonYazi em { font-style: normal; font-size: 12px; color: #8fd0ff; }
.ggSonDugme { flex: none; display: flex; gap: 6px; }
.ggSonDugme button { padding: 5px 12px; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 700px) {
  .ggIc { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(110px, 34%) minmax(0, 1fr); }
  .ggSon { flex-wrap: wrap; }
}


/* ---- Oyuncu çerçevesi (sol üst): boyama levha (resim/arayuz/oyuncu-cerceve.webp; çizim kaynak-modeller/chatgpt/arayuz/oyuncu-cerceve.png,
   kesim cerceve_kes.py). Seviye diski, ad şeridi, can ve kaynak yuvaları resmin içindedir; öğeler yuvalara yüzdeyle oturur
   (sayılar cerceve_kes.py çıktısından). Hedef çerçevesi (#hedefCerceve) eski düz levhada kalır. ---- */
#oyuncuCerceve { left: 4px; top: 2px; display: block; width: 306px; aspect-ratio: 2.8459; padding: 0; gap: 0; background: url(/resim/arayuz/oyuncu-cerceve.webp) center / 100% 100% no-repeat;
  border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 3px 6px #000b); }
#oyuncuCerceve .portre { position: absolute; left: 6.77%; top: 24.08%; width: 17.6%; height: 51.45%; font: 700 25px/1 var(--y-sayi); color: #f6e7c4; text-shadow: 0 2px 0 #000, 0 0 10px #ff9a3c66; }
#oyuncuCerceve .portre::before { left: 9%; top: 9%; width: 82%; height: 82%; margin: 0; transform: none; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 2px var(--kr, transparent), inset 0 0 14px #000; opacity: 0.75; }
#oyuncuCerceve .govde { position: static; width: auto; }
#oyuncuCerceve .baslik { position: absolute; left: 36.9%; top: 21.97%; width: 44.89%; height: 11.75%; margin: 0; padding: 0 6px; display: flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--y-baslik); letter-spacing: 0.3px; color: #f0deb4; text-shadow: 0 1px 0 #000; }
#oyuncuCerceve .cubuk { position: absolute; left: 28.98%; width: 61.07%; margin: 0; border: 0; border-radius: 1px; background: none; }
#oyuncuCerceve .cubuk.can { top: 39.69%; height: 17.53%; }
#oyuncuCerceve .cubuk.ofke { top: 61.66%; height: 12.72%; }
#oyuncuCerceve .cubuk i { box-shadow: inset 0 1px 0 #ffffff55, inset 0 -3px 5px #00000066, 0 0 6px #00000080; transition: width 0.18s linear; }
#oyuncuCerceve .cubuk.can i { background: linear-gradient(#f0584a, #c22a25 55%, #8f1a1c); }
#oyuncuCerceve .cubuk.ofke i { background-image: linear-gradient(#ffffff38, #ffffff00 45%, #00000040) !important; }
#oyuncuCerceve .cubuk b { display: flex; align-items: center; justify-content: flex-end; height: 100%; padding-right: 6px; line-height: 1; }
#oyuncuCerceve .cubuk.can b { font-size: 11.5px; }
#oyuncuCerceve .cubuk.ofke b { font-size: 10px; }
@media (max-width: 760px) { #oyuncuCerceve { width: 260px; } #oyuncuCerceve .portre { font-size: 19px; } #oyuncuCerceve .baslik { font-size: 10.5px; } }
#etkiler { top: 114px; } /* yeni oyuncu çerçevesinin altı */

/* ---- Hedef çerçevesi (üst orta): oyuncu çerçevesinin kardeşi boyama levha (resim/arayuz/hedef-cerceve.webp; çizim
   kaynak-modeller/chatgpt/arayuz/hedef-cerceve.png, kesim cerceve_kes.py). Baklava = seviye, üst şerit = ad + rütbe, yuva = can;
   tavır yazısı levhanın altında. Tavır rengi (--hd) levhanın çevresindeki ışıltıdır. --w levha eni, --h boyu (en / 3,1367). ---- */
#hedefCerceve { --w: 330px; --h: calc(var(--w) / 3.1367); display: block; width: var(--w); height: calc(var(--h) + 13px); padding: 0; gap: 0; border: 0; border-radius: 0; box-shadow: none;
  background: url(/resim/arayuz/hedef-cerceve.webp) center top / 100% auto no-repeat; filter: drop-shadow(0 3px 6px #000b) drop-shadow(0 0 5px color-mix(in srgb, var(--hd, transparent) 55%, transparent)); }
#hedefCerceve.seckin { box-shadow: none; }
#hedefCerceve .portre { position: absolute; left: 5.53%; top: calc(var(--h) * 0.1714); width: 20.75%; height: calc(var(--h) * 0.6508); font: 700 18px/1 var(--y-sayi); text-shadow: 0 2px 0 #000; }
#hedefCerceve .portre::before { display: none; }
#hedefCerceve .govde { position: static; width: auto; }
#hedefCerceve .baslik { position: absolute; left: 25.24%; top: calc(var(--h) * 0.2625); width: 65.56%; height: calc(var(--h) * 0.0954); margin: 0; padding: 0 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font: 600 10.5px/1 var(--y-baslik); letter-spacing: 0.2px; }
#hedefCerceve .baslik > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hedefCerceve #hedefRutbe { flex: none; font-size: 9.5px; line-height: 1; }
#hedefCerceve .cubuk.can { position: absolute; left: 28.01%; top: calc(var(--h) * 0.4121); width: 62.38%; height: calc(var(--h) * 0.2646); margin: 0; border: 0; border-radius: 1px; background: none; }
#hedefCerceve .cubuk.can i { background: linear-gradient(#f0584a, #c22a25 55%, #8f1a1c); box-shadow: inset 0 1px 0 #ffffff55, inset 0 -4px 7px #00000066; }
#hedefCerceve .cubuk.can b { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0; font-size: 12px; line-height: 1; text-align: center; }
#hedefCerceve #hedefTavir { position: absolute; left: 25%; right: 6%; top: calc(var(--h) - 4px); margin: 0; text-align: center; font: 600 10.5px/1.3 var(--y-sayi); color: #e9dcc0; text-shadow: 0 1px 0 #000, 0 0 5px #000, 0 0 8px #000; white-space: nowrap; }
#hedefCerceve #dvGanimetDugme { position: absolute; left: calc(100% + 4px); top: calc(var(--h) * 0.44); margin: 0; }
@media (max-width: 760px) { #hedefCerceve { --w: 280px; } #hedefCerceve .portre { font-size: 17px; } #hedefCerceve .baslik { font-size: 10.5px; } #hedefCerceve #dvGanimetDugme { left: auto; right: 0; top: calc(var(--h) + 14px); } }

/* ---- Oyuncu çerçevesi portresi: madalyonun içinde sınıf + cinsiyet boyaması (arayuz.js portreAyarla → --portre);
   seviye madalyonun alt düğümünün üstündeki küçük rozette. Krallık rengi portrenin iç halkasıdır. ---- */
#oyuncuCerceve .portre.resimli::before { left: 5%; top: 5%; width: 90%; height: 90%; opacity: 1; background: var(--portre) center 18% / cover no-repeat;
  box-shadow: inset 0 0 0 2px var(--kr, #0000), inset 0 0 0 3px #000a, inset 0 -10px 14px #000a; }
#oyuncuCerceve .portre.resimli > b { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -38%); min-width: 22px; height: 17px; padding: 0 4px; display: grid; place-items: center;
  border: 1px solid #000; border-radius: 10px; background: linear-gradient(#2a1c10, #120c07); box-shadow: inset 0 0 0 1px #c9a05a, 0 2px 4px #000c;
  font: 700 11px/1 var(--y-sayi); color: #f6e7c4; text-shadow: 0 1px 0 #000; }
