/* Köz arayüzü: ayarlar, beceri çubuğu, beceri penceresi, sohbet, hedef çerçevesi, etkiler.
   Renkler stil.css'teki değişkenlerden gelir (--pano, --kenar, --kenarAcik, --altin, --yazi, --soluk). */

/* ---------- ortak parçalar ---------- */
.pencere header.tutamak { cursor: move; touch-action: none; }
.pencere header .kucuk { padding: 2px 9px; font-size: 12px; line-height: 20px; }
.pencere { max-width: calc(100vw - 16px); }
.ayarNot { margin: 0 0 8px; color: var(--soluk); font-size: 12px; line-height: 1.45; }

#sohbetSekmeler, #ayarSekmeler { display: flex; gap: 3px; }
#sohbetSekmeler button, #ayarSekmeler button { background: #0007; border: 1px solid var(--kenar); border-bottom: 0; border-radius: 5px 5px 0 0;
  color: var(--soluk); padding: 3px 12px; font-size: 12px; }
#sohbetSekmeler button:hover, #ayarSekmeler button:hover { color: var(--yazi); }
#sohbetSekmeler button.secili, #ayarSekmeler button.secili { background: linear-gradient(#4a3823, #2a1f15); color: var(--altin); border-color: var(--kenarAcik); }

/* ---------- hedef çerçevesi ---------- */
#hedefCerceve { gap: 8px; padding: 6px 10px 6px 6px; border-radius: 26px 8px 8px 26px; }
#hedefCerceve .portre { width: 38px; height: 38px; font-size: 15px; }
#hedefCerceve .govde { width: 230px; }
#hedefCerceve.sakin { border-color: #8a7a52; }
#hedefCerceve.saldirgan { border-color: #9c3b30; }
#hedefCerceve.seckin { border-color: var(--altin); box-shadow: 0 4px 16px #0008, 0 0 14px #e8b85a55; }
#hedefCerceve.seckin #hedefAd { color: #ffcf5a; }
#hedefCerceve.oyuncu { border-color: #4f7fa8; }
#hedefCerceve.oyuncu #hedefAd { color: #bfe3ff; }
#hedefAd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
#hedefRutbe { white-space: nowrap; font-size: 12px; }
#hedefTavir { margin-top: 3px; font-size: 11px; color: var(--soluk); }
.portre.guclu { color: #ff7a66; border-color: #c8362f; }
.portre.zayif { color: #9a9a9a; border-color: #6a6a6a; }

/* ---------- etkiler (buff / debuff) ---------- */
#etkiler { gap: 5px; min-height: 0; flex-wrap: wrap; }
#etkiler .etki { position: relative; width: 28px; height: 28px; padding: 3px; border-radius: 5px; background: radial-gradient(#4b3520, #1a120b);
  border: 1px solid #6fae5c; box-shadow: inset 0 0 6px #000; }
#etkiler .etki.kotu { border-color: #c8362f; }
#etkiler .etki svg { display: block; pointer-events: none; }
#etkiler .etki .kalan { position: absolute; right: -3px; bottom: -5px; padding: 0 3px; border: 0; border-radius: 3px; background: #000c;
  font-size: 10px; font-weight: 700; line-height: 13px; color: #fff; font-variant-numeric: tabular-nums; }
#etkiler .etki .kalan:empty { display: none; }
#etkiler .etki.bitiyor { animation: etkiBitiyor 0.6s ease-in-out infinite alternate; }
@keyframes etkiBitiyor { from { opacity: 1; } to { opacity: 0.35; } }

/* ---------- bölge geçiş yazısı, FPS ---------- */
#bolgeGecis { position: fixed; left: 50%; top: 21%; transform: translateX(-50%); text-align: center; pointer-events: none; white-space: nowrap;
  text-shadow: 0 2px 6px #000, 0 0 18px #000; animation: bolgeGecis 3.6s ease-out both; }
#bolgeGecis b { display: block; font: 600 34px/1.15 Georgia, "Times New Roman", serif; letter-spacing: 4px; color: var(--altin); }
#bolgeGecis b::after { content: ""; display: block; width: 220px; height: 1px; margin: 6px auto 5px; background: linear-gradient(90deg, transparent, var(--kenarAcik), transparent); }
#bolgeGecis span { font-size: 14px; letter-spacing: 1px; }
#bolgeGecis.guvenli span { color: #9fe58a; }
#bolgeGecis.tehlikeli span { color: #ffb38a; }
@keyframes bolgeGecis { 0% { opacity: 0; transform: translateX(-50%) translateY(10px); } 12% { opacity: 1; transform: translateX(-50%); } 75% { opacity: 1; } 100% { opacity: 0; } }
#fps { position: fixed; right: 204px; top: 12px; padding: 1px 8px; font: 600 12px ui-monospace, monospace; color: #c9f5bb; background: #000a;
  border: 1px solid var(--kenar); border-radius: 4px; pointer-events: none; }

/* ---------- sohbet / günlük ---------- */
#sohbet { position: fixed; left: 12px; bottom: 14px; width: min(380px, 30vw); }
#sohbetSekmeler { opacity: 0.55; transition: opacity 0.15s; }
#sohbet:hover #sohbetSekmeler, #sohbet:focus-within #sohbetSekmeler { opacity: 1; }
#sohbetSekmeler button { padding: 1px 9px; font-size: 11.5px; position: relative; }
/* okunmamış işareti: sayı (.sayac) ya da, sayı yoksa (Savaş), altın nokta; fısıltı geldiyse pembe */
#sohbetSekmeler .sayac { display: none; margin-left: 4px; padding: 0 4px; border-radius: 7px; background: var(--altin); color: #1a120b; font: 700 10px/14px system-ui, sans-serif; font-style: normal; }
#sohbetSekmeler button.yeni { color: var(--yazi); }
#sohbetSekmeler button.yeni .sayac:not(:empty) { display: inline-block; }
#sohbetSekmeler button.yeni .sayac:empty { display: block; position: absolute; right: 3px; top: 3px; width: 5px; height: 5px; padding: 0; margin: 0; border-radius: 50%; }
#sohbetSekmeler button.fisilti .sayac { background: #ff9ad5; }
#gunluk { position: static; width: auto; height: calc(var(--satir, 9) * 19px + 8px); max-height: calc(var(--satir, 9) * 19px + 8px); /* yükseklik sabit: sekme değişince kutu küçülmez */ padding: 4px 6px; background: linear-gradient(90deg, #0007, #0003 70%, transparent);
  border-left: 2px solid var(--kenar); border-radius: 0 4px 4px 0; line-height: 1.35; }
#gunluk div { min-height: 0; flex: none; overflow-wrap: anywhere; }
/* sekme = süzgeç: satırlar bir kez durur, etkin sekmenin türünde olmayanlar gizlenir ("Hepsi" hiçbirini gizlemez) */
#gunluk.s-sohbet > :not(.k-sohbet), #gunluk.s-savas > :not(.k-savas), #gunluk.s-ganimet > :not(.k-ganimet), #gunluk.s-sistem > :not(.k-sistem) { display: none; }
/* yazarken günlük tıklanır ve tekerlekle kaydırılır: satırlar yine dipte toplanır ama boşluk üstteki sahte öğeye verilir
   (flex-end ile taşan üst kısım kaydırılamaz). Yazmıyorken eski düzen (flex-end, taşan gizli) sürer. */
#sohbet.yaziyor #gunluk { justify-content: flex-start; pointer-events: auto; overflow-y: auto; scrollbar-width: thin; background: linear-gradient(90deg, #000a, #0006 70%, #0002); }
#sohbet.yaziyor #gunluk::before { content: ""; margin-top: auto; }
#sohbet.yaziyor #gunluk [data-kim] { cursor: pointer; }
#sohbet.yaziyor #gunluk [data-kim]:hover { text-decoration: underline; }
#gunluk .savas { color: #d6c7b0; } #gunluk .sohbet { color: #f3ead8; } #gunluk .duyuru { color: #ffd27a; }
#gunluk .kimden { color: #8fd0ff; font-weight: 600; } #gunluk .kimden.ben { color: #c9e6ff; }
#gunluk .kanal { font-weight: 600; }
#gunluk .kn-genel, #gunluk .kn-genel .kanal { color: #ffd9a0; } #gunluk .kn-grup, #gunluk .kn-grup .kanal { color: #a8d8ff; }
#gunluk .kn-ozel, #gunluk .kn-ozel .kanal, #gunluk .kn-ozel .kimden { color: #ff9ad5; }
#gunluk .esyaBag { font-weight: 600; }
#gunluk .kotu { color: #ff8f80; } #gunluk .krit { color: #ffd84a; font-weight: 700; } #gunluk span.iyi { color: #9fe58a; }
#sohbetForm { margin-top: 4px; display: flex; gap: 4px; align-items: stretch; }
/* etkin kanal etiketi: giriş kutusunun solunda; tıklayınca sıradaki kanal */
#sohbetKanal { flex: none; max-width: 42%; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #0c0906ee; border-color: var(--kenar); }
#sohbetKanal.kn-bolge { color: #f3ead8; } #sohbetKanal.kn-genel { color: #ffd9a0; } #sohbetKanal.kn-grup { color: #a8d8ff; } #sohbetKanal.kn-ozel { color: #ff9ad5; }
#sohbetGiris { flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 13px; padding: 5px 8px; color: var(--yazi); background: #0c0906ee; border: 1px solid var(--kenarAcik);
  border-radius: 4px; user-select: text; outline: none; }
#sohbetGiris:focus { border-color: var(--altin); box-shadow: 0 0 8px #e8b85a44; }

/* ---------- alt çubuk: beceri çubuğu ---------- */
#altCubuk { width: auto; padding: 7px 9px 8px; }
#beceriler { flex-direction: column; align-items: center; gap: 5px; }
.cubukSira { display: flex; gap: 5px; justify-content: center; }
/* sade çubuk: yeni oyuncuda üst sıra gizli (beceri-cubugu.js ustSiraYaz); bir şey sürüklenirken bırakılabilsin diye görünür */
#beceriler.ustGizli .cubukSira.ust { display: none; }
body.suruklemede #beceriler.ustGizli .cubukSira.ust { display: flex; }
#beceriler.ustGizli .cubukKilitDugme { top: -34px; }
#beceriler.ustGizli:not(.kilitli) .cubukKilitDugme { display: none; }
.byuva.beceri { width: 48px; height: 48px; padding: 6px; border-width: 1px; border-color: #4a3a26; border-radius: 6px; background: linear-gradient(#17110b, #0c0906);
  box-shadow: inset 0 0 8px #000; cursor: default; flex: none; }
.cubukSira.ust .byuva.beceri { width: 40px; height: 40px; padding: 5px; }
.byuva.beceri.dolu { border-width: 2px; border-color: var(--kenarAcik); background: radial-gradient(#4b3520, #1a120b); padding: 5px; cursor: pointer; }
.cubukSira.ust .byuva.beceri.dolu { padding: 4px; }
.byuva.beceri.dolu:hover { border-color: var(--altin); }
.byuva.beceri.nesne { border-color: #a04848; }
.byuva .simge { width: 100%; height: 100%; pointer-events: none; }
.byuva .simge svg { display: block; }
/* boyanmış beceri resmi (simgeler.js beceriSimge): yuvayı kenarına kadar doldurur; perde, süre, tuş ve kilit üstünde kalır */
.beceriResim { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.byuva .simge .beceriResim { width: calc(100% + 6px); height: calc(100% + 6px); margin: -3px; }
.beceriSimge .beceriResim { width: calc(100% + 8px); height: calc(100% + 8px); margin: -4px; }
.byuva .tus { left: 2px; top: 0; font-size: 9.5px; color: #e9dcc0; opacity: 0.9; pointer-events: none; }
.byuva:not(.dolu) .tus { color: var(--soluk); opacity: 0.6; }
.byuva .adet { pointer-events: none; }
.byuva .sure { font-size: 15px; }
.cubukSira.ust .byuva .sure { font-size: 13px; }
.byuva .kilit { display: none; position: absolute; right: 1px; top: 1px; width: 15px; height: 15px; pointer-events: none; z-index: 2; }
.byuva.kilitli .kilit { display: block; }
.byuva.beceri.kilitli { filter: grayscale(1) brightness(0.62); }
.byuva.beceri.yetersiz { border-color: #555; filter: saturate(0.25) brightness(0.7); }
.byuva.beceri.yok { filter: grayscale(0.9) brightness(0.55); }
.byuva.beceri.yok .adet { color: #ff8f80; }
.byuva.hedef { outline: 2px dashed #9fe58a; outline-offset: 1px; }
.byuva.basildi .simge { animation: yuvaBas 0.18s ease-out; }
@keyframes yuvaBas { from { transform: scale(0.82); } to { transform: scale(1); } }
#beceriler.kilitli .byuva.dolu { cursor: pointer; }
.cubuk.xp { height: 13px; margin-top: 7px; }
.cubuk.xp b { line-height: 11px; font-size: 10px; letter-spacing: 0.2px; }

.cubukSira.ust .beceri.kilitli::after { font-size: 9px; inset: auto 0 0 0; }
/* kontroller penceresi beceri çubuğunun üstüne inmesin */
#yardim { top: calc(50% - 70px); max-height: calc(100vh - 190px); overflow-y: auto; }
/* kamp hizmet penceresi (tüccar / demirci / depo; istemci/js/hizmet.js top: 96px ile açar): alt ucu beceri çubuğunun üstünde bitsin, içi kaysın.
   hizmet.js kendi stilini sonradan eklediği için kural `body` ile güçlendirildi. 270px = üstteki 96 + iki sıralı çubuk ve deneyim çubuğu (~160) + pay. */
body #hizmetPencere { max-height: calc(100vh - 270px); overflow-y: auto; }
/* üst sıra gizliyken (yeni oyuncu) çubuk kısadır: biraz daha yer kalır */
body:has(#beceriler.ustGizli) #hizmetPencere { max-height: calc(100vh - 225px); }

/* düğmeler: iki sıraya sığar, beceri çubuğuyla çakışmaz */
#dugmeler { flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 300px; }
#dugmeler button { padding: 4px 9px; font-size: 12.5px; }
#canta { bottom: 86px; }

/* ---------- beceri penceresi ---------- */
#beceriPencere { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 470px; }
#beceriListe { max-height: min(60vh, 520px); overflow-y: auto; padding-right: 4px; }
.beceriSatir { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; padding: 7px 6px; border-bottom: 1px solid #3a2c1c; }
.beceriSatir:last-child { border-bottom: 0; }
.beceriSatir:hover { background: #ffffff08; }
.beceriSimge { position: relative; width: 50px; height: 50px; padding: 6px; border: 2px solid var(--kenarAcik); border-radius: 7px;
  background: radial-gradient(#4b3520, #1a120b); box-shadow: inset 0 0 10px #000; cursor: grab; touch-action: none; }
.beceriSimge svg { display: block; pointer-events: none; }
.beceriSimge .kilit { position: absolute; right: 2px; bottom: 2px; width: 17px; height: 17px; }
.beceriSatir.kilitli .beceriSimge { filter: grayscale(1) brightness(0.6); }
.beceriSatir.cubukta .beceriSimge { border-color: var(--altin); }
.beceriAd { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.beceriAd b { color: var(--altin); font-size: 14px; }
.beceriAd span { font-size: 11.5px; white-space: nowrap; }
.beceriBilgi { font-size: 12.5px; min-width: 0; }
.beceriBilgi .iyi { color: #9fe58a; } .beceriBilgi .kotu { color: #ff8f80; }
.beceriAcik { margin-top: 2px; }
.beceriSatir button { padding: 3px 9px; font-size: 12px; white-space: nowrap; }

/* ---------- 5 + 1 düzeni (beceri-cubugu.js): büyük beceri yuvası, sabit yuvalar, pencere satırları ---------- */
.cubukSira.alt { align-items: flex-end; }
.cubukSira .byuva.beceri.buyuk { width: 62px; height: 62px; padding: 6px; margin: 0 7px; border: 2px solid #e8b84a; border-radius: 9px;
  background: radial-gradient(circle at 50% 32%, #6a4a1c, #1c1208 78%);
  box-shadow: inset 0 0 10px #000, 0 0 0 1px #5a3d10, 0 0 0 3px #1a120b, 0 0 0 4px #c9973a, 0 0 14px #f0c05a55; }
.cubukSira .byuva.beceri.buyuk.dolu:hover { border-color: #ffe08a; box-shadow: inset 0 0 10px #000, 0 0 0 1px #5a3d10, 0 0 0 3px #1a120b, 0 0 0 4px #ffd874, 0 0 18px #ffd87488; }
.cubukSira .byuva.beceri.buyuk.kilitli { border-color: #8a7446; box-shadow: inset 0 0 10px #000, 0 0 0 3px #1a120b, 0 0 0 4px #6a5a3a; }
.byuva.buyuk .sure { font-size: 19px; }
.byuva.buyuk .tus { font-size: 11px; }
.byuva.buyuk.kilitli::after { font-size: 12px; }
.byuva.beceri.sabit.dolu { cursor: pointer; }
.byuva.beceri.kilitli::after { text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.beceriSimge { cursor: default; }
.beceriSatir.kilitli { opacity: 0.55; }
.beceriSatir.kilitli:hover { opacity: 0.85; }
.beceriSatir.buyuk { border: 1px solid #c9973a; border-radius: 7px; background: linear-gradient(#e8b84a14, #e8b84a05); }
.beceriSatir.buyuk .beceriSimge { width: 58px; height: 58px; margin-left: -4px; border-color: #e8b84a; box-shadow: inset 0 0 10px #000, 0 0 10px #e8b84a66; }
.beceriAd b i { margin-left: 6px; font: italic 11px/1 inherit; color: #ffd874; }
.beceriGuc { margin-top: 1px; color: #e9cf8a; font-variant-numeric: tabular-nums; }
.beceriTus { min-width: 26px; padding: 2px 6px; border: 1px solid #5a4326; border-radius: 4px; background: #0008; text-align: center;
  font: 700 12px/16px ui-monospace, monospace; color: var(--altin); }
#beceriListe h3 { margin: 10px 0 4px; font-size: 13px; color: var(--soluk); letter-spacing: 0.4px; }

/* ---------- ayarlar penceresi ---------- */
#ayarlar { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 580px; }
#ayarSekmeler { border-bottom: 1px solid var(--kenarAcik); }
#ayarSekmeler button { padding: 5px 15px; font-size: 13px; }
#ayarIcerik { height: min(430px, calc(100vh - 250px)); overflow-y: auto; padding: 10px 6px 4px 2px; }
#ayarIcerik h3 { margin: 12px 0 2px; font-size: 11px; color: var(--soluk); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #3a2c1c; padding-bottom: 3px; }
.ayarSatir { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 6px 4px; border-bottom: 1px solid #2c2116; min-height: 38px; }
.ayarSatir:hover { background: #ffffff07; }
.ayarSatir.tus { min-height: 30px; padding: 3px 4px; }
.ayarAd { font-size: 13.5px; }
.ayarAd small { display: block; color: var(--soluk); font-size: 11.5px; line-height: 1.35; margin-top: 1px; }
.ayarKontrol { display: flex; align-items: center; gap: 10px; }
.ayarKontrol .deger { min-width: 46px; text-align: right; font-size: 12.5px; color: var(--altin); font-variant-numeric: tabular-nums; }
.ayarKontrol select { font: inherit; font-size: 13px; color: var(--yazi); background: #1a120b; border: 1px solid var(--kenarAcik); border-radius: 4px; padding: 4px 8px; min-width: 130px; }
.ayarKontrol input[type="range"] { width: 170px; accent-color: var(--altin); cursor: pointer; }
.anahtar { position: relative; display: inline-block; width: 42px; height: 22px; cursor: pointer; }
.anahtar input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.anahtar i { position: absolute; inset: 0; border-radius: 11px; background: #0c0906; border: 1px solid var(--kenar); transition: background 0.15s, border-color 0.15s; pointer-events: none; }
.anahtar i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--soluk); transition: transform 0.15s, background 0.15s; }
.anahtar input:checked + i { background: #5a4322; border-color: var(--altin); }
.anahtar input:checked + i::after { transform: translateX(20px); background: var(--altin); }
.anahtar input:focus-visible + i { outline: 2px solid var(--altin); outline-offset: 2px; }
.tusDugme { min-width: 110px; padding: 3px 10px; font: 600 12.5px ui-monospace, monospace; }
.tusDugme.degisik { border-color: var(--altin); color: var(--altin); }
.tusDugme.bekliyor { background: #5a2a1a; border-color: #ff9a6a; color: #ffd8c2; animation: etkiBitiyor 0.5s ease-in-out infinite alternate; }
.ayarAlt { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--kenar); }
#ayarDurum { flex: 1; font-size: 12px; color: #9fe58a; text-align: right; min-height: 1em; }

/* ---------- ipuçları ---------- */
#ipucu { max-width: 290px; line-height: 1.4; }
#ipucu .satir { color: var(--soluk); }
#ipucu .ipSatirlar { margin: 2px 0 4px; font-size: 12px; }
#ipucu .ipSatirlar span { display: block; }
#ipucu .ipAcik { color: var(--yazi); }
#ipucu .kiyas { margin-top: 5px; padding-top: 5px; border-top: 1px solid #4a3a26; }
#karakterIc tr.ipuclu { cursor: help; }
#karakterIc tr.ipuclu:hover td { background: #ffffff0a; color: #fff; }
#karakterIc .ayarNot { margin: 10px 0 0; font-size: 11.5px; }

/* ---------- çanta: nadirlik renkli kenar ---------- */
.yuva.dolu { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nadir) 55%, transparent), inset 0 0 8px #000, inset 0 0 14px color-mix(in srgb, var(--nadir) 40%, transparent); }

/* ---------- ayar: isim etiketleri ---------- */
body.etiketYok-oyuncu .etiket.oyuncu, body.etiketYok-canavar .etiket.mob, body.etiketYok-ben .etiket.ben { display: none !important; }

/* dar ekranlar (1280×720 ve altı) */
@media (max-width: 1320px) {
  #sohbet { width: min(360px, 29vw); }
  #dugmeler { max-width: 270px; }
}
@media (max-height: 760px) {
  #karakter { max-height: calc(100vh - 230px); }
  #beceriListe { max-height: 52vh; }
}

/* ---------- beceri penceresi: uzmanlık öbekleri, nihai ve pasif beceriler ---------- */
#beceriListe h3 { margin: 12px 0 2px; padding-bottom: 3px; font-size: 11px; color: var(--soluk); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #3a2c1c; }
#beceriListe .sinifAd { color: var(--altin); }
.beceriAd b i { font-style: normal; font-size: 10.5px; font-weight: 600; color: #ff9d2e; border: 1px solid #ff9d2e88; border-radius: 3px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.beceriSatir.nihai .beceriSimge { border-color: #ff9d2e; box-shadow: inset 0 0 10px #000, 0 0 8px #ff9d2e55; }
.beceriSatir.pasif .beceriSimge { cursor: default; border-style: dashed; border-color: var(--kenar); width: 40px; height: 40px; padding: 5px; margin: 0 5px; }
.beceriSatir.pasif { opacity: 0.85; }
#ipucu .ipTur { color: var(--altin); font-size: 11.5px; letter-spacing: 0.3px; }

/* beceri çubuğu kilit düğmesi (üst sıranın sağında) */
#beceriler { position: relative; }
.cubukKilitDugme { position: absolute; right: 0; top: 0; width: 24px; height: 24px; padding: 4px; border-color: var(--kenar); background: #0006; opacity: 0.45; }
.cubukKilitDugme:hover { opacity: 1; }
#beceriler.kilitli .cubukKilitDugme { opacity: 1; border-color: var(--altin); background: linear-gradient(#5a4322, #33261a); }
.cubukKilitDugme svg { display: block; pointer-events: none; }

/* çanta doluysa envanter düğmesi uyarır */
#dCanta.dolu { border-color: #c8362f; box-shadow: 0 0 8px #c8362f88; }

/* ---------- beceri kitabı sistemi (beceri-cubugu.js): okuma şeridi, kademe, kitap takası ---------- */
.beceriOkuma { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 11.5px; }
.beceriOkuma .okSv { min-width: 74px; color: #e9dcc0; font-variant-numeric: tabular-nums; }
.beceriOkuma.kd1 .okSv { color: #ffd874; } .beceriOkuma.kd2 .okSv { color: #e3a8ff; text-shadow: 0 0 6px #b06aff88; }
.okCubuk { flex: 1; min-width: 40px; height: 6px; border: 1px solid #000; border-radius: 3px; background: #1a120b; overflow: hidden; }
.okCubuk i { display: block; height: 100%; background: linear-gradient(90deg, #8a6a3a, #e9cf8a); }
.beceriOkuma.kd1 .okCubuk i { background: linear-gradient(90deg, #c9973a, #ffe08a); }
.beceriOkuma.kd2 .okCubuk i { background: linear-gradient(90deg, #7b3fc4, #e3a8ff); }
.okSans { color: var(--soluk); white-space: nowrap; }
.beceriOkuma.okBasari { animation: okBasari 1.4s ease-out; } .beceriOkuma.okYandi { animation: okYandi 1.4s ease-out; }
@keyframes okBasari { 0% { background: #9fe58a66; box-shadow: 0 0 10px #9fe58a; } 100% { background: transparent; box-shadow: none; } }
@keyframes okYandi { 0% { background: #ff6a3a66; box-shadow: 0 0 10px #ff6a3a; } 100% { background: transparent; box-shadow: none; } }
.beceriSatir.kademe1 .beceriSimge { border-color: #ffd874; box-shadow: inset 0 0 10px #000, 0 0 8px #ffd87466; }
.beceriSatir.kademe2 .beceriSimge { border-color: #e3a8ff; box-shadow: inset 0 0 10px #000, 0 0 10px #b06aff99; }
.kitapTakas { padding: 2px 6px 6px; }
.tkKitaplar { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tkKitap { padding: 3px 8px; font-size: 12px; border-left: 4px solid var(--tk, #c9a56a); }
.tkKitap small { color: var(--soluk); }
.tkKitap.secili { outline: 2px solid var(--altin); outline-offset: -1px; background: #e8b84a22; }
.tkAlt { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.tkAlt select { max-width: 210px; }
