/* DİYAR — KURT OS koyu tasarım dili */
:root {
  --bg: #09101b; --panel: rgba(13, 23, 37, .9); --panel-2: #111e30; --line: #203044; --line-soft: #19283b;
  --text: #dce5f1; --muted: #8597ae; --teal: #55ddc7; --cyan: #50c9eb; --amber: #d7b570; --red: #e06363; --green: #7ee08a;
  --gunhan: #d7b570; --ayhan: #6fc3ee; --r: 7px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.45 KurtUI, 'Segoe UI', system-ui, sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
#sahne { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.gunhan { color: var(--gunhan); } .ayhan { color: var(--ayhan); }

/* simge düğmeleri */
.ikon { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; padding: 0; transition: background .15s ease-out, border-color .15s ease-out; flex: none; }
.ikon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ikon:hover { background: var(--panel-2); border-color: #2c4260; }
.ikon:focus-visible, .beceri:focus-visible, .krallik-kart:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ikon.tehlike { color: var(--red); }
.ikon.birincil { background: var(--teal); color: #07231f; border-color: var(--teal); }
.ikon.buyuk { width: 56px; height: 56px; } .ikon.buyuk svg { width: 26px; height: 26px; }
.ikon.birincil svg { fill: currentColor; }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud .kart, #hud button, #hud input, #sohbet, #harita { pointer-events: auto; }
.kart { position: absolute; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; min-width: 210px; }
.satir { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.satir.alt { color: var(--muted); font-size: 11px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ad { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; flex: none; }
.bar { position: relative; height: 14px; margin-top: 6px; background: #1a2232; border-radius: 4px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#d9605a, #a83d3d); transition: width .15s ease-out; }
.bar b { position: absolute; inset: 0; font: 600 10px/14px KurtUI, 'Segoe UI', sans-serif; text-align: center; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
#ben-kart { left: calc(10px + env(safe-area-inset-left)); top: calc(10px + env(safe-area-inset-top)); }
#hedef-kart { left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); }
#sag-ust { position: absolute; right: calc(10px + env(safe-area-inset-right)); top: calc(10px + env(safe-area-inset-top)); display: grid; justify-items: end; gap: 6px; }
#harita { width: 168px; height: 168px; border-radius: var(--r); border: 1px solid var(--line); display: block; image-rendering: auto; }
#skor { display: flex; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 9px; font-size: 11px; font-variant-numeric: tabular-nums; }
#skor i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dugmeler { display: flex; gap: 6px; }

#alt-orta { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; }
#beceriler { display: flex; gap: 8px; }
.beceri { position: relative; width: 52px; height: 52px; border-radius: 10px; border: 1px solid #2c4260; background: var(--panel); cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--amber); overflow: hidden; }
.beceri svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.beceri kbd { position: absolute; left: 4px; top: 2px; font: 600 10px KurtUI, 'Segoe UI', sans-serif; color: var(--muted); }
.beceri .cd { position: absolute; inset: 0; pointer-events: none; }
.beceri.bekliyor { color: var(--muted); }
.beceri:hover { border-color: var(--amber); }
.beceri.yardimci { width: 42px; height: 42px; align-self: end; color: var(--text); border-radius: 50%; } .beceri.yardimci svg { width: 20px; height: 20px; }
.beceri.etkin { border-color: #e9eef5; color: #fff; box-shadow: 0 0 10px rgba(233, 238, 245, .35); }
#beceriler[data-sinif="okcu"] .beceri { color: #b8d98a; } #beceriler[data-sinif="buyucu"] .beceri { color: #c7a8ff; }
.etiket.yavas .ad { color: #9fe3ff !important; }
#xp { position: relative; width: min(420px, 70vw); height: 10px; background: #1a2232; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
#xp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #8f6fe0, #a48bef); transition: width .3s ease-out; }
#xp b { position: absolute; inset: 0; font: 600 9px/9px KurtUI, 'Segoe UI', sans-serif; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; opacity: 0; transition: opacity .15s; }
#xp:hover b { opacity: 1; }

#sohbet { position: absolute; left: calc(10px + env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(340px, 40vw); display: grid; gap: 4px; }
#sohbet-kayit { max-height: 150px; overflow-y: auto; font-size: 12px; text-shadow: 0 1px 2px #000; display: grid; gap: 1px; padding: 4px 2px; opacity: .55; transition: opacity .2s; scrollbar-width: none; }
#sohbet-kayit .sistem { color: #b9c6d6; font-style: italic; }
#sohbet.yeni #sohbet-kayit, #sohbet.yaziyor #sohbet-kayit, #sohbet:hover #sohbet-kayit { opacity: 1; }
#sohbet input { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: var(--r); padding: 7px 10px; font: inherit; outline: none; opacity: .0; transition: opacity .15s; user-select: text; }
#sohbet.yaziyor input, #sohbet input:focus { opacity: 1; border-color: var(--teal); }

#joy { position: fixed; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; border: 2px solid rgba(220, 229, 241, .35); background: rgba(9, 16, 27, .25); display: none; }
#joy.acik { display: grid; place-items: center; }
#joy i { width: 42px; height: 42px; border-radius: 50%; background: rgba(220, 229, 241, .45); }

#bildirim { position: fixed; left: 50%; top: 92px; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; pointer-events: none; z-index: 30; width: min(560px, 92vw); }
.not { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 14px; text-align: center; transition: opacity .4s; }
.not.uyari { border-color: #6b4a2a; color: #f0c88a; } .not.iyi { border-color: #2f6b5f; color: var(--teal); }
.not.gidiyor { opacity: 0; }
#olum { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: radial-gradient(rgba(60, 10, 10, .35), rgba(9, 16, 27, .6)); pointer-events: none; }
#olum strong { font-size: 28px; color: #ff8a8a; letter-spacing: .04em; }
#olum span { color: var(--text); }
#baglanti { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); background: #3a1f1f; border: 1px solid #6b2f2f; border-radius: var(--r); padding: 6px 12px; }

/* etiketler */
#etiketler { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.etiket { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 2px; margin-left: -60px; width: 120px; margin-top: -26px; will-change: transform; }
.etiket .ad { font: 600 11px/1.2 KurtUI, 'Segoe UI', sans-serif; text-shadow: 0 1px 2px #000, 0 0 4px #000; white-space: nowrap; }
.etiket .bar { width: 56px; height: 4px; margin: 0; border-radius: 2px; background: rgba(0, 0, 0, .55); }
.etiket.secili .ad { text-decoration: underline; text-underline-offset: 3px; }
.etiket .balon { position: absolute; bottom: 30px; max-width: 220px; width: max-content; background: rgba(240, 244, 250, .94); color: #111; padding: 4px 9px; border-radius: 10px; font-size: 12px; text-align: center; }
.sayi { position: absolute; left: 0; top: 0; font: 700 15px KurtUI, 'Segoe UI', sans-serif; text-shadow: 0 1px 2px #000, 0 0 3px #000; white-space: nowrap; transform-origin: center; margin-left: -20px; width: 40px; text-align: center; overflow: visible; }
.sayi.benim { color: #fff; } .sayi.guclu { color: #ffcf6b; font-size: 20px; } .sayi.bana { color: #ff6b6b; } .sayi.diger { color: #c9d2de; font-size: 12px; }
.sayi.xp { color: #b9a2ff; font-size: 13px; } .sayi.altin { color: var(--amber); font-size: 13px; } .sayi.sifa { color: var(--green); }

/* çanta ve sandık */
#canta, #ganimet { position: fixed; z-index: 35; background: rgba(13, 23, 37, .96); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; user-select: none; }
#canta { right: calc(10px + env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); width: 380px; max-height: 92vh; overflow-y: auto; }
#ganimet { left: 50%; top: 30%; transform: translateX(-50%); width: 300px; }
.canta-bas { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.canta-bas h3 { margin: 0; font-size: 15px; flex: 1; }
.canta-bas .altin { color: var(--amber); font-variant-numeric: tabular-nums; }
#canta h4 { margin: 10px 0 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
#canta h4 small { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.degerler { display: flex; gap: 14px; margin: 0; color: var(--muted); font-size: 12px; }
.degerler b { color: var(--text); font-variant-numeric: tabular-nums; }
.kusanim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yuvalar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 4px; }
.kusanim section:last-child .yuvalar { grid-template-columns: repeat(3, 1fr); }
.yuva { display: grid; justify-items: center; gap: 2px; }
.yuva span { font-size: 10px; color: var(--muted); }
.gozler { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.goz { position: relative; aspect-ratio: 1; width: 100%; min-width: 0; border-radius: 6px; border: 1px solid var(--line); background: #0a1320; display: grid; place-items: center; padding: 0; }
.yuva .goz { width: 46px; }
.goz svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.goz.bos { color: #2a3a50; }
.goz.dolu { cursor: pointer; color: var(--q, var(--text)); border-color: color-mix(in srgb, var(--q, #fff) 45%, var(--line)); background: color-mix(in srgb, var(--q, #fff) 8%, #0a1320); }
.goz.dolu:hover { border-color: var(--q); }
.goz.secili { box-shadow: 0 0 0 2px var(--q, var(--teal)); }
.goz small { position: absolute; right: 3px; bottom: 1px; font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums; }
.altin-goz { --q: var(--amber); }
.ayrinti { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.ayrinti strong { font-size: 14px; }
.ayrinti .alt { margin: 2px 0 6px; font-size: 11px; }
.ayrinti ul { margin: 0; padding-left: 16px; font-size: 12px; display: grid; gap: 2px; }
.ayrinti .eylemler { margin: 0; flex-direction: column; gap: 6px; }
.artı { color: var(--green); font-weight: 600; } .eksi { color: var(--red); font-weight: 600; }
.ganimet-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12px; }
.ganimet-liste .alt { font-size: 11px; }
@media (max-width: 760px) {
  #canta { left: 8px; right: 8px; top: auto; bottom: 8px; transform: none; width: auto; max-height: 78vh; }
  #ganimet { top: 18%; width: min(300px, 92vw); }
}

/* menü: botlar, misafirler */
.pencere h3.ara { margin: 18px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pencere h3.ara small { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.liste li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid var(--line-soft); border-radius: 6px; }
.liste li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.liste li > i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.liste li.alt { border: 0; padding: 0; }
.ikon.kucuk { width: 26px; height: 26px; } .ikon.kucuk svg { width: 14px; height: 14px; }
.bot-ekle { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.bot-ekle input { flex: 1; min-width: 120px; background: #0a1320; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); padding: 7px 10px; font: inherit; outline: none; user-select: text; }
.bot-ekle input:focus { border-color: var(--teal); }
.secimler { display: inline-flex; gap: 4px; }
.hap { border: 1px solid var(--line); background: #0a1320; border-radius: 999px; padding: 4px 10px; cursor: pointer; display: inline-grid; place-items: center; min-height: 28px; }
.hap svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hap.secili { border-color: var(--k, var(--amber)); color: var(--k, var(--amber)); }
.kod { background: #0a1320; border: 1px dashed var(--teal); border-radius: var(--r); padding: 8px 10px; margin: 8px 0; }
.kod b { font-size: 18px; letter-spacing: .14em; color: var(--teal); }
.secilebilir { user-select: all; }

/* pencere */
#pencere { position: fixed; inset: 0; background: rgba(5, 9, 16, .55); display: grid; place-items: center; z-index: 40; padding: 16px; }
.pencere { position: relative; width: min(520px, 100%); max-height: 86vh; overflow-y: auto; background: #0d1725; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; user-select: text; }
.pencere .kapat { position: absolute; right: 10px; top: 10px; }
.pencere h3 { margin: 0 0 8px; font-size: 15px; }
.yardim { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 5px; color: #c8d3e1; }

/* giriş */
#giris { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at center, rgba(9, 16, 27, .35), rgba(9, 16, 27, .85)); overflow-y: auto; z-index: 20; }
.giris-kutu { width: min(560px, 100%); background: rgba(13, 23, 37, .94); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.giris-kutu h1 { margin: 0; font-size: 30px; letter-spacing: .12em; font-weight: 700; }
.alt { color: var(--muted); margin: 2px 0 14px; }
.ipucu { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.uyari { color: #f0c88a; }
.baslik { margin: 14px 0 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.alan { display: grid; gap: 5px; }
.alan span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.alan input { background: #0a1320; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); padding: 9px 11px; font: inherit; font-size: 15px; outline: none; user-select: text; }
.alan input:focus { border-color: var(--teal); }
.krallik-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.krallik-kart { display: grid; justify-items: start; gap: 4px; text-align: left; background: #0a1320; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; cursor: pointer; transition: border-color .15s; }
.krallik-kart strong { color: var(--k); font-size: 15px; }
.krallik-kart small { color: var(--muted); font-size: 12px; }
.krallik-kart small.sayi-y, .krallik-kart .sayi { position: static; width: auto; margin: 0; color: var(--teal); font: inherit; font-size: 11px; text-shadow: none; }
.krallik-kart .takim-sayi { color: var(--teal); font-size: 11px; font-variant-numeric: tabular-nums; }
.krallik-kart:disabled { opacity: .45; cursor: not-allowed; }
.krallik-kart.secili { border-color: var(--k); box-shadow: inset 0 0 0 1px var(--k); }
.sinif-sec { display: grid; gap: 8px; }
button.sinif { width: 100%; text-align: left; cursor: pointer; border-color: var(--line); }
button.sinif.secili { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.sinif .olcu { color: #a9b6c8; font-size: 11px; }
.sinif { display: flex; gap: 10px; align-items: center; background: #0a1320; border: 1px solid var(--amber); border-radius: var(--r); padding: 10px 12px; }
.sinif svg { width: 26px; height: 26px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.sinif div { display: grid; } .sinif small { color: var(--muted); }
.eylemler { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.karakter { display: flex; gap: 14px; align-items: center; }
.karakter h3 { margin: 0; font-size: 18px; }
.karakter .alt { margin: 2px 0 0; }

@media (max-width: 760px) {
  .kart { min-width: 0; width: 46vw; padding: 6px 8px; }
  #hedef-kart { left: auto; right: calc(10px + env(safe-area-inset-right)); transform: none; top: calc(118px + env(safe-area-inset-top)); width: 40vw; }
  #harita { width: 104px; height: 104px; }
  #skor { font-size: 10px; gap: 6px; }
  #alt-orta { left: auto; right: calc(10px + env(safe-area-inset-right)); transform: none; justify-items: end; }
  #beceriler { flex-direction: column-reverse; }
  .beceri { width: 52px; height: 52px; }
  #xp { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: 5px; border-radius: 0; border: 0; }
  #sohbet { bottom: auto; top: calc(72px + env(safe-area-inset-top)); width: 52vw; }
  #sohbet-kayit { max-height: 90px; font-size: 11px; }
  #sohbet input { display: none; }
  #sohbet.yaziyor input { display: block; }
  .krallik-sec { grid-template-columns: 1fr; }
  .giris-kutu { padding: 18px 16px; }
}
@media (pointer: fine) { .dugmeler [data-eylem="sohbet-ac"], .beceri.yardimci { display: none; } }   /* Z R C klavyede standart; düğmeler yalnız dokunmatikte */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* savaş düzeni (13.11): sancak çubukları, kazanan ekranı, lobi kadroları */
#skor { flex-direction: column; gap: 4px; min-width: 168px; }
#skor .sure { text-align: center; color: var(--muted); }
#skor .sure b { color: var(--text); font-weight: 600; }
.kale-satir { display: grid; grid-template-columns: 8px auto 1fr auto; align-items: center; gap: 6px; }
.kale-satir i { margin: 0 !important; }
.kale-satir .alma { height: 6px; border-radius: 3px; background: #0a1320; border: 1px solid var(--line-soft); overflow: hidden; }
.kale-satir .alma em { display: block; height: 100%; width: 0; transition: width .2s ease-out; }
.kale-satir .alma.cekisme { animation: cekisme .5s ease-in-out infinite alternate; }
.kale-satir.tehlike span { color: var(--red); }
.kale-satir small { color: var(--muted); min-width: 14px; text-align: right; }
@keyframes cekisme { from { border-color: var(--line-soft); } to { border-color: var(--amber); } }
#mac-sonu { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: radial-gradient(rgba(9, 16, 27, .45), rgba(9, 16, 27, .85)); pointer-events: none; text-align: center; padding: 16px; }
#mac-sonu strong { font-size: 34px; letter-spacing: .04em; }
#mac-sonu.kazandi strong { color: var(--teal); } #mac-sonu.kaybetti strong { color: #ff8a8a; }
#mac-sonu span { font-size: 15px; } #mac-sonu small { color: var(--muted); }
.mac-durum { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #0a1320; font-size: 13px; }
.mac-durum.geri { border-color: var(--teal); color: var(--teal); }
.mac-durum.savas { border-color: #6b4a2a; }
.mac-durum p { margin: 0 0 6px; }
.mac-durum .eylemler { margin-top: 10px; }
.mini-alma { display: grid; grid-template-columns: 8px auto 1fr; align-items: center; gap: 6px; font-size: 12px; margin-top: 4px; }
.mini-alma i { width: 8px; height: 8px; border-radius: 50%; }
.mini-alma b { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; } .mini-alma em { display: block; height: 100%; }
.ikon.hazir-bekle { border-color: var(--teal); color: var(--teal); }
.ikon.hazir-bekle svg, .ikon.birincil[data-eylem="hazir"] svg { fill: none; stroke: currentColor; stroke-width: 2.4; }
.ikon:disabled { opacity: .4; cursor: not-allowed; }
.karakter { position: relative; }
.karakter .kucuk-sag { margin-left: auto; }
div.krallik-kart { cursor: pointer; align-content: start; }
.krallik-kart .kart-bas { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; width: 100%; }
.krallik-kart .kart-bas .arma { grid-row: span 2; }
.krallik-kart .kart-bas .zafer { grid-column: 2 / 4; }
.krallik-kart .liste { width: 100%; margin-top: 4px; }
.krallik-kart .liste li { font-size: 12px; padding: 3px 6px; }
.krallik-kart .liste li.ben { border-color: var(--k); }
.krallik-kart .liste li.yedek { opacity: .55; }
.krallik-kart .liste .tik { width: 16px; height: 16px; fill: none; stroke: var(--teal); stroke-width: 2.4; flex: none; }
.sinif-mini { width: 15px; height: 15px; fill: none; stroke: var(--k, var(--text)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.krallik-kart .bot-ekle { margin-top: 6px; }
.goz.uyku { opacity: .45; filter: grayscale(.6); }

/* savaş süresi: sağ üstte, haritanın altında (13.11 Atıl) */
#mac-sure { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 3px 10px; min-width: 168px; box-sizing: border-box; }
#mac-sure svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
#mac-sure b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 760px) { #mac-sure { min-width: 0; padding: 2px 8px; } #mac-sure b { font-size: 15px; } }

/* 20 bölüm: diyar haritası (16.11 Atıl) — 17.11 gece yolu görünümü (mağaralar, taş basamaklar, tabelalar, macera haritası) */
.dh-kutu { max-height: min(46vh, 420px); overflow-y: auto; border-radius: var(--r); border: 1px solid #22356a; margin: 4px 0 0; background: #0a1230; scrollbar-width: thin; scrollbar-color: #2c4486 transparent; }
.diyar-harita { width: 100%; display: block; }
.diyar-harita .dh-baslik { font-size: 19px; font-weight: 900; letter-spacing: .14em; fill: #fff; paint-order: stroke; stroke: #0b1a4a; stroke-width: 3px; }
.diyar-harita .dy { font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.diyar-harita .dy-alt { font-size: 8.5px; fill: #7f94c4; }
.diyar-harita .tas { fill: #26386a; stroke: #33497f; stroke-width: .6; }
.diyar-harita .tas.yanik { fill: #3b5a9e; stroke: #6f93e0; }
.diyar-harita .kaya { fill: #1f3168; stroke: #2e4a8f; stroke-width: 1.2; }
.diyar-harita .kaya-isik { fill: none; stroke: #4a6cbf; stroke-width: 2; stroke-linecap: round; opacity: .7; }
.diyar-harita .levha { fill: #4a6aa8; stroke: #a8c4f0; stroke-width: 1; }
.diyar-harita .levha.boss { fill: #6a2a1a; stroke: #ffb08a; }
.diyar-harita .levha-yazi { font-size: 8px; font-weight: 900; fill: #fff; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.diyar-harita .fener { fill: #ffc24a; filter: drop-shadow(0 0 3px #ffb02e); }
.diyar-harita .tik { fill: none; stroke: #6dff9a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diyar-harita .kilit { fill: none; stroke: #8fa3cf; stroke-width: 1.3; }
.diyar-harita .bn-ad { font-size: 10px; font-weight: 700; fill: #cfe0ff; }
.diyar-harita .bn.kilitli .bn-ad { fill: #5d6f9a; }
.diyar-harita .bn.kilitli .kaya { fill: #18254f; stroke: #24386a; }
.diyar-harita .bn.kilitli .levha { fill: #2c3a62; stroke: #4a5c88; }
.diyar-harita .bn.secili .bn-ad { fill: #ffd27a; }
.diyar-harita .bn .halka { fill: none; stroke: #ffd27a; stroke-width: 1.6; stroke-dasharray: 4 5; animation: bolum-nabiz 1.4s ease-in-out infinite; }
.diyar-harita .bn.secilir { cursor: pointer; } .diyar-harita .bn.secilir:hover .kaya { stroke: #8fb0ff; stroke-width: 2; }
.diyar-harita .bn:focus-visible { outline: none; } .diyar-harita .bn:focus-visible .kaya { stroke: #ffd27a; stroke-width: 2.4; }
.dh-macera { margin: 8px 0 0; padding: 8px 10px 4px; border-radius: var(--r); background: linear-gradient(180deg, #16275a, #0f1c45); border: 1px solid #2c4486; box-shadow: inset 0 0 0 3px #0b1534; }
.dh-macera-bas { margin: 0; text-align: center; font-size: 11px; font-weight: 700; color: #cfe0ff; letter-spacing: .06em; }
.dh-macera svg { width: 100%; display: block; }
.dh-macera .dh-cizgi { stroke: #4a6aa8; stroke-width: 1.4; stroke-dasharray: 3 4; fill: none; }
.dh-macera .dh-m-ad { font-size: 8.5px; font-weight: 700; fill: #b8c8ec; }
.dh-macera .dh-m-ad.burada { fill: #ffb02e; font-weight: 900; }
.dh-macera .dh-m-alt { font-size: 7.5px; fill: #8fa3cf; }
@keyframes bolum-nabiz { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .diyar-harita .bn .halka { animation: none; } }
.bolum-bilgi { margin: 6px 0 0; font-size: 12px; color: var(--muted); text-align: center; } .bolum-bilgi b { color: var(--text); }
.boss-yazi { color: #ff8a5a; }
.bolum-ad { font-size: 11px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 2px 8px; max-width: 168px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.kale-satir.boss-hedef { grid-template-columns: 1fr; color: #ff8a5a; text-align: center; }
#boss-bar { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(440px, 60vw); display: grid; gap: 4px; justify-items: center; pointer-events: none; }
#boss-bar span { font-size: 13px; font-weight: 700; color: #ffb08a; text-shadow: 0 1px 2px #000; }
#boss-bar i { display: block; width: 100%; height: 10px; border-radius: 5px; background: rgba(10, 19, 32, .85); border: 1px solid #6b2f1f; overflow: hidden; }
#boss-bar em { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff3a10, #ff8a3a); transition: width .2s ease-out; }
#mac-sonu .bolum-gecti { font-style: normal; color: var(--amber); font-size: 15px; }

/* canavar yetenekleri (16.11): zehir, yanma, öfke */
.etiket.zehirli .ad { text-shadow: 0 0 6px #7cff3a, 0 1px 2px #000; }
.etiket.yaniyor .ad { text-shadow: 0 0 6px #ff7a2a, 0 1px 2px #000; }
.etiket.ofkeli .ad { color: #ff6a5a !important; }
.etiket.ofkeli .bar i { background: #ff3a2a; }
.sayi.zehir { color: #8fff5a; } .sayi.yanma { color: #ff9a4a; } .sayi.ofke { color: #ff5a4a; font-weight: 800; letter-spacing: .06em; }
.bolum-bilgi.alt { margin-top: 2px; } .bolum-bilgi .yetenek { color: var(--amber); }

/* oyun imleci (16.11 Atıl): altın ok; düşman üstünde kılıç, arkadaş üstünde şifa, at ve sandık üstünde el */
#sahne { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M3 2l22 9-9.5 3.5L12 24z' fill='%23e8c36a' stroke='%231a1206' stroke-width='1.8' stroke-linejoin='round'/><path d='M6.5 6.5l11 4.5' stroke='%23fff3c4' stroke-width='1.2' stroke-linecap='round'/></svg>") 3 2, default; }
#sahne[data-imlec="saldir"] { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M3 3l16 16' stroke='%231a1206' stroke-width='5' stroke-linecap='round'/><path d='M3 3l16 16' stroke='%23e8eef4' stroke-width='2.6' stroke-linecap='round'/><path d='M15 23l8-8' stroke='%231a1206' stroke-width='4.6' stroke-linecap='round'/><path d='M15 23l8-8' stroke='%23d9a93e' stroke-width='2.6' stroke-linecap='round'/><path d='M20 20l7 7' stroke='%231a1206' stroke-width='4.6' stroke-linecap='round'/><path d='M20 20l7 7' stroke='%237a4a26' stroke-width='2.6' stroke-linecap='round'/><circle cx='27.5' cy='27.5' r='2.4' fill='%23d9a93e' stroke='%231a1206' stroke-width='1.2'/></svg>") 3 3, crosshair; }
#sahne[data-imlec="sifa"] { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='16' cy='16' r='11' fill='%231d5a3a' stroke='%230a1a10' stroke-width='2'/><path d='M16 9v14M9 16h14' stroke='%239dffb0' stroke-width='3.4' stroke-linecap='round'/></svg>") 16 16, pointer; }
#sahne[data-imlec="el"] { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M10 15V6.5a2 2 0 0 1 4 0V14V4.5a2 2 0 0 1 4 0V14V6a2 2 0 0 1 4 0v8.5V9.5a2 2 0 0 1 4 0V19c0 5-3.5 9-9 9-4 0-6-2-8.5-5.5L5 18.5a2 2 0 0 1 3-2.6z' fill='%23e8c36a' stroke='%231a1206' stroke-width='1.6' stroke-linejoin='round'/></svg>") 12 4, pointer; }
/* beceri kullanılınca düğme parlar, kullananın başında becerinin adı */
.beceri.basildi { animation: beceri-bas .45s ease-out; }
@keyframes beceri-bas { 0% { transform: scale(.86); box-shadow: 0 0 0 0 rgba(255, 211, 107, .9); border-color: #ffd36b; } 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(255, 211, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .beceri.basildi { animation: none; border-color: #ffd36b; } }
.sayi.beceri-ad { color: #ffd36b; font-weight: 800; font-size: 14px; letter-spacing: .03em; }

/* takım paneli (16.11 Atıl): sağ sütunda, haritanın ve düğmelerin altında */
#parti { display: grid; gap: 5px; width: 168px; }
.parti-uye { display: grid; grid-template-columns: 15px 1fr auto; grid-template-rows: auto auto; column-gap: 6px; row-gap: 3px; align-items: center; text-align: left; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 5px 7px; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; transition: border-color .15s ease-out; }
.parti-uye:hover { border-color: #2c4260; } .parti-uye:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.parti-uye .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .parti-uye .ad small { color: var(--muted); }
.parti-uye .lv { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.parti-uye .can { grid-column: 1 / 4; position: relative; display: block; height: 8px; border-radius: 4px; background: #0a1320; border: 1px solid var(--line-soft); overflow: hidden; }
.parti-uye .can em { display: block; height: 100%; background: #4fc46a; transition: width .2s ease-out; }
.parti-uye .can-y { display: none; }
.parti-uye.secili { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.parti-uye.dusuk .can em { background: #e05d5d; } .parti-uye.dusuk { animation: parti-dusuk 1s ease-in-out infinite alternate; }
@keyframes parti-dusuk { from { border-color: var(--line); } to { border-color: #e05d5d; } }
.parti-uye.olu { opacity: .45; } .parti-uye.olu .can em { width: 0 !important; }
.parti-uye.zehirli .can em { background: #8fd14a; } .parti-uye.yaniyor .can em { background: #ff8a3a; }
.parti-uye.uzak { opacity: .6; }
.parti-uye:hover .can-y { display: block; grid-column: 1 / 4; font-size: 10px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .parti-uye.dusuk { animation: none; border-color: #e05d5d; } }
@media (max-width: 760px) { #parti { width: 132px; gap: 4px; } .parti-uye { padding: 3px 5px; font-size: 11px; } }

/* bekçi gücü (16.11 Atıl): kalan süre */
.bekci-guc { font-size: 12px; font-weight: 700; border-radius: var(--r); padding: 3px 8px; min-width: 168px; box-sizing: border-box; text-align: center; font-variant-numeric: tabular-nums; border: 1px solid var(--line); background: var(--panel); }
.bekci-guc.biz { color: #ffd36b; border-color: #8a6a2a; } .bekci-guc.onlar { color: #ff8a8a; border-color: #6b2f2f; }
@media (max-width: 760px) { .bekci-guc { min-width: 0; font-size: 11px; } }

/* Sağ tık menüsü (OYUN-SAG-TIK-MENU, 16.11): yalnız oyun işleri */
#sag-menu { position: fixed; z-index: 60; width: 214px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 40px #000a; backdrop-filter: blur(4px); }
#sag-menu[hidden] { display: none; }
#sag-menu .sm-bas { font-size: 12px; color: var(--amber); padding: 2px 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sag-menu .sm-satir { display: flex; flex-wrap: wrap; gap: 6px; }
#sag-menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 7px 0; }
#sag-menu .ikon { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M10 15V6.5a2 2 0 0 1 4 0V14V4.5a2 2 0 0 1 4 0V14V6a2 2 0 0 1 4 0v8.5V9.5a2 2 0 0 1 4 0V19c0 5-3.5 9-9 9-4 0-6-2-8.5-5.5L5 18.5a2 2 0 0 1 3-2.6z' fill='%23e8c36a' stroke='%231a1206' stroke-width='1.6' stroke-linejoin='round'/></svg>") 12 4, pointer; }
